Add WooCommerce integration: sync orders to invoices/people with webhook, cron, and settings UI.

This commit is contained in:
2026-09-26 17:59:16 +03:30
parent 1b160c8cd3
commit 26085b54a9
15 changed files with 1571 additions and 2 deletions
@@ -0,0 +1,73 @@
import {
IsBoolean,
IsOptional,
IsString,
MaxLength,
MinLength,
} from 'class-validator';
export class CreateWooConnectionDto {
@IsString()
@MinLength(2)
@MaxLength(80)
label!: string;
@IsString()
@MinLength(8)
@MaxLength(300)
storeUrl!: string;
@IsString()
@MinLength(8)
@MaxLength(200)
consumerKey!: string;
@IsString()
@MinLength(8)
@MaxLength(200)
consumerSecret!: string;
@IsOptional()
@IsString()
@MaxLength(200)
webhookSecret?: string;
@IsOptional()
@IsBoolean()
enabled?: boolean;
}
export class UpdateWooConnectionDto {
@IsOptional()
@IsString()
@MinLength(2)
@MaxLength(80)
label?: string;
@IsOptional()
@IsString()
@MinLength(8)
@MaxLength(300)
storeUrl?: string;
@IsOptional()
@IsString()
@MinLength(8)
@MaxLength(200)
consumerKey?: string;
@IsOptional()
@IsString()
@MinLength(8)
@MaxLength(200)
consumerSecret?: string;
@IsOptional()
@IsString()
@MaxLength(200)
webhookSecret?: string | null;
@IsOptional()
@IsBoolean()
enabled?: boolean;
}