controlresell 2.20.11 → 2.20.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/api/responses/items/ItemActionStatusResponse.d.ts +10 -0
  3. package/src/com/controlresell/api/responses/items/ItemActionStatusResponse.d.ts.map +1 -0
  4. package/src/com/controlresell/api/responses/items/ItemActionStatusResponse.js +6 -0
  5. package/src/com/controlresell/api/responses/items/ItemActionStatusResponse.js.map +1 -0
  6. package/src/com/controlresell/api/responses/items/ItemActionStatusResponse.ts +7 -0
  7. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +1204 -0
  8. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
  9. package/src/com/controlresell/api/responses/items/ListedItem.d.ts +968 -0
  10. package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
  11. package/src/com/controlresell/api/responses/items/ListedItem.js +6 -1
  12. package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -1
  13. package/src/com/controlresell/api/responses/items/ListedItem.ts +6 -1
  14. package/src/com/controlresell/api/responses/items/ListedItemOrder.d.ts +732 -0
  15. package/src/com/controlresell/api/responses/items/ListedItemOrder.d.ts.map +1 -0
  16. package/src/com/controlresell/api/responses/items/ListedItemOrder.js +10 -0
  17. package/src/com/controlresell/api/responses/items/ListedItemOrder.js.map +1 -0
  18. package/src/com/controlresell/api/responses/items/ListedItemOrder.ts +11 -0
  19. package/src/com/controlresell/models/items/CreatedItems.d.ts +1208 -4
  20. package/src/com/controlresell/models/items/CreatedItems.d.ts.map +1 -1
  21. package/src/com/controlresell/models/items/Item.d.ts +2 -2
  22. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  23. package/src/com/controlresell/models/items/ItemUpdate.d.ts +1204 -0
  24. package/src/com/controlresell/models/items/ItemUpdate.d.ts.map +1 -1
  25. package/src/com/controlresell/models/items/UpdatedItem.d.ts +1208 -4
  26. package/src/com/controlresell/models/items/UpdatedItem.d.ts.map +1 -1
  27. package/src/com/controlresell/models/items/actions/ItemActionStatus.d.ts +4 -0
  28. package/src/com/controlresell/models/items/actions/ItemActionStatus.d.ts.map +1 -0
  29. package/src/com/controlresell/models/items/actions/ItemActionStatus.js +5 -0
  30. package/src/com/controlresell/models/items/actions/ItemActionStatus.js.map +1 -0
  31. package/src/com/controlresell/models/items/actions/ItemActionStatus.ts +6 -0
  32. package/src/com/controlresell/models/metadata/platforms/ItemListingPreview.d.ts +4 -4
  33. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +1448 -8
  34. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  35. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +1204 -0
  36. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  37. package/src/com/controlresell/models/transactions/items/TransactionWithItems.d.ts +1204 -0
  38. package/src/com/controlresell/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
  39. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +3230 -822
  40. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  41. package/src/index.d.ts +3 -4
  42. package/src/index.d.ts.map +1 -1
  43. package/src/index.js +3 -4
  44. package/src/index.js.map +1 -1
  45. package/src/index.ts +3 -4
  46. package/src/com/controlresell/models/platforms/metrics/DailyMetrics.d.ts +0 -16
  47. package/src/com/controlresell/models/platforms/metrics/DailyMetrics.d.ts.map +0 -1
  48. package/src/com/controlresell/models/platforms/metrics/DailyMetrics.js +0 -7
  49. package/src/com/controlresell/models/platforms/metrics/DailyMetrics.js.map +0 -1
  50. package/src/com/controlresell/models/platforms/metrics/DailyMetrics.ts +0 -8
  51. package/src/com/controlresell/models/platforms/metrics/HourlyMetrics.d.ts +0 -16
  52. package/src/com/controlresell/models/platforms/metrics/HourlyMetrics.d.ts.map +0 -1
  53. package/src/com/controlresell/models/platforms/metrics/HourlyMetrics.js +0 -7
  54. package/src/com/controlresell/models/platforms/metrics/HourlyMetrics.js.map +0 -1
  55. package/src/com/controlresell/models/platforms/metrics/HourlyMetrics.ts +0 -8
  56. package/src/com/controlresell/models/platforms/metrics/ItemMetricsResponse.d.ts +0 -62
  57. package/src/com/controlresell/models/platforms/metrics/ItemMetricsResponse.d.ts.map +0 -1
  58. package/src/com/controlresell/models/platforms/metrics/ItemMetricsResponse.js +0 -11
  59. package/src/com/controlresell/models/platforms/metrics/ItemMetricsResponse.js.map +0 -1
  60. package/src/com/controlresell/models/platforms/metrics/ItemMetricsResponse.ts +0 -12
  61. package/src/com/controlresell/models/platforms/metrics/ItemsMetricsResponse.d.ts +0 -96
  62. package/src/com/controlresell/models/platforms/metrics/ItemsMetricsResponse.d.ts.map +0 -1
  63. package/src/com/controlresell/models/platforms/metrics/ItemsMetricsResponse.js +0 -6
  64. package/src/com/controlresell/models/platforms/metrics/ItemsMetricsResponse.js.map +0 -1
  65. package/src/com/controlresell/models/platforms/metrics/ItemsMetricsResponse.ts +0 -7
@@ -1287,6 +1287,9 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
1287
1287
  }>, "many">>>;
1288
1288
  colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1289
1289
  packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1290
+ materialIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1291
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1292
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1290
1293
  fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1291
1294
  itemId: z.ZodNumber;
1292
1295
  fieldId: z.ZodNumber;
@@ -3557,86 +3560,97 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
3557
3560
  createdAt: z.ZodDate;
3558
3561
  updatedAt: z.ZodDate;
3559
3562
  sourceInConversation: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<["ORDER", "TRANSACTION", "DELETED", "UNKNOWN"]>>>>;
3560
- }, "strip", z.ZodTypeAny, {
3561
- actions: {
3562
- perAccount: Record<string, ("REPUBLISH" | "UNKNOWN" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE" | "UPDATE_CANCEL")[]>;
3563
- };
3564
- name: string;
3565
- id: number;
3566
- createdAt: Date;
3567
- userId: number;
3568
- updatedAt: Date;
3569
- sold: boolean;
3570
- fees?: {
3571
- value: number;
3572
- type: string;
3573
- name: string;
3574
- id: number;
3575
- createdAt: Date;
3576
- userId: number;
3577
- updatedAt: Date;
3578
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3579
- startDate: Date;
3580
- active: boolean;
3581
- description?: string | null | undefined;
3582
- itemId?: number | null | undefined;
3583
- endDate?: Date | null | undefined;
3584
- parentFeeId?: number | null | undefined;
3585
- }[] | null | undefined;
3586
- description?: string | null | undefined;
3587
- categoryId?: number | null | undefined;
3588
- sizeId?: number | null | undefined;
3589
- colorIds?: number[] | null | undefined;
3590
- packageSizeId?: number | null | undefined;
3591
- state?: number | null | undefined;
3592
- labels?: {
3593
- itemId: number;
3594
- labelId: number;
3595
- label?: {
3596
- name: string;
3597
- id: number;
3598
- createdAt: Date;
3599
- isUserLabel: boolean;
3600
- itemCount?: number | null | undefined;
3601
- userId?: number | null | undefined;
3602
- parentId?: unknown;
3603
- } | null | undefined;
3604
- }[] | null | undefined;
3605
- attributes?: {
3606
- value: string;
3607
- fieldKey: string;
3608
- }[] | null | undefined;
3609
- sex?: string | null | undefined;
3610
- platforms?: {
3611
- status: "ERROR" | "UNKNOWN" | "PENDING" | "DRAFT" | "ARCHIVED" | "DISPUTE" | "DELETED" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
3612
- id: string;
3613
- createdAt: Date;
3614
- accountId: string;
3615
- itemId: number;
3616
- platformId: string;
3617
- platformUrl: string;
3618
- platformPrice: number;
3619
- updatedAt: Date;
3620
- publishedAt: Date;
3621
- conversationId?: string | null | undefined;
3622
- viewsCount?: number | null | undefined;
3623
- favoritesCount?: number | null | undefined;
3624
- account?: {
3625
- status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
3626
- name: string;
3627
- userId: number;
3628
- accountId: string;
3629
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3630
- locale?: string | null | undefined;
3631
- night?: {
3632
- startsAt: Date;
3633
- endsAt: Date;
3563
+ order: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3564
+ transactionType: z.ZodEnum<["SINGLE_ITEM", "BUNDLE"]>;
3565
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3566
+ id: z.ZodString;
3567
+ orderId: z.ZodString;
3568
+ fileId: z.ZodString;
3569
+ nonCroppedFileId: z.ZodString;
3570
+ originalFileId: z.ZodString;
3571
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3572
+ id: z.ZodString;
3573
+ userId: z.ZodNumber;
3574
+ path: z.ZodString;
3575
+ signedUrl: z.ZodString;
3576
+ createdAt: z.ZodDate;
3577
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
3578
+ }, "strip", z.ZodTypeAny, {
3579
+ path: string;
3580
+ id: string;
3581
+ createdAt: Date;
3582
+ userId: number;
3583
+ signedUrl: string;
3584
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3585
+ }, {
3586
+ path: string;
3587
+ id: string;
3588
+ createdAt: Date;
3589
+ userId: number;
3590
+ signedUrl: string;
3591
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3592
+ }>>>;
3593
+ nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3594
+ id: z.ZodString;
3595
+ userId: z.ZodNumber;
3596
+ path: z.ZodString;
3597
+ signedUrl: z.ZodString;
3598
+ createdAt: z.ZodDate;
3599
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
3600
+ }, "strip", z.ZodTypeAny, {
3601
+ path: string;
3602
+ id: string;
3603
+ createdAt: Date;
3604
+ userId: number;
3605
+ signedUrl: string;
3606
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3607
+ }, {
3608
+ path: string;
3609
+ id: string;
3610
+ createdAt: Date;
3611
+ userId: number;
3612
+ signedUrl: string;
3613
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3614
+ }>>>;
3615
+ originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3616
+ id: z.ZodString;
3617
+ userId: z.ZodNumber;
3618
+ path: z.ZodString;
3619
+ signedUrl: z.ZodString;
3620
+ createdAt: z.ZodDate;
3621
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
3622
+ }, "strip", z.ZodTypeAny, {
3623
+ path: string;
3624
+ id: string;
3625
+ createdAt: Date;
3626
+ userId: number;
3627
+ signedUrl: string;
3628
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3629
+ }, {
3630
+ path: string;
3631
+ id: string;
3632
+ createdAt: Date;
3633
+ userId: number;
3634
+ signedUrl: string;
3635
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3636
+ }>>>;
3637
+ carrier: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<["MONDIAL_RELAY", "MONDIAL_RELAY_2", "MONDIAL_RELAY_3", "MONDIAL_RELAY_4", "MONDIAL_RELAY_5", "UPS", "CHRONOPOST", "COLISSIMO", "RELAIS_COLIS", "VINTED_GO", "VINTED_GO_BE", "VINTED_VERIF", "B_POST", "VINTED_GO_IT", "DPD", "VINTED_GO_DIGITAL", "DHL", "DHL_ECONOMY", "UNKNOWN"]>>>>;
3638
+ }, "strip", z.ZodTypeAny, {
3639
+ id: string;
3640
+ fileId: string;
3641
+ orderId: string;
3642
+ nonCroppedFileId: string;
3643
+ originalFileId: string;
3644
+ originalFile?: {
3645
+ path: string;
3646
+ id: string;
3647
+ createdAt: Date;
3648
+ userId: number;
3649
+ signedUrl: string;
3650
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3634
3651
  } | null | undefined;
3635
- favoritesMaxDelay?: number | null | undefined;
3636
- ordersMaxDelay?: number | null | undefined;
3637
- conversationsMaxDelay?: number | null | undefined;
3638
- profilePictureFileId?: string | null | undefined;
3639
- profilePicture?: {
3652
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
3653
+ file?: {
3640
3654
  path: string;
3641
3655
  id: string;
3642
3656
  createdAt: Date;
@@ -3644,318 +3658,659 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
3644
3658
  signedUrl: string;
3645
3659
  status?: "PENDING" | "CONFIRMED" | null | undefined;
3646
3660
  } | null | undefined;
3647
- } | null | undefined;
3648
- }[] | null | undefined;
3649
- brandId?: number | null | undefined;
3650
- estimatedPrice?: number | null | undefined;
3651
- purchaseDate?: Date | null | undefined;
3652
- sellingDate?: Date | null | undefined;
3653
- fields?: {
3654
- value: string;
3655
- itemId: number;
3656
- fieldId: number;
3657
- }[] | null | undefined;
3658
- sku?: string | null | undefined;
3659
- files?: {
3660
- fileId: string;
3661
- itemId: number;
3662
- file?: {
3663
- path: string;
3661
+ nonCroppedFile?: {
3662
+ path: string;
3663
+ id: string;
3664
+ createdAt: Date;
3665
+ userId: number;
3666
+ signedUrl: string;
3667
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3668
+ } | null | undefined;
3669
+ }, {
3664
3670
  id: string;
3665
- createdAt: Date;
3666
- userId: number;
3667
- signedUrl: string;
3668
- status?: "PENDING" | "CONFIRMED" | null | undefined;
3669
- } | null | undefined;
3670
- index?: number | null | undefined;
3671
- }[] | null | undefined;
3672
- purchasePrice?: number | null | undefined;
3673
- purchasePlaceId?: number | null | undefined;
3674
- purchased?: boolean | null | undefined;
3675
- sellingPrice?: number | null | undefined;
3676
- sellingPlaceId?: number | null | undefined;
3677
- feesSum?: number | null | undefined;
3678
- enumValues?: {
3679
- id: string;
3680
- createdAt: Date;
3681
- itemId: number;
3682
- updatedAt: Date;
3683
- enumKey: string;
3684
- enumValue: string;
3685
- }[] | null | undefined;
3686
- lastHistory?: {
3687
- type: "DELETING" | "UNKNOWN" | "CANCELED" | "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "FAILED_TO_UPDATE" | "DISPUTE" | "DELETED" | "DELETE_CANCELED" | "FAILED_TO_DELETE" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
3688
- id: string;
3689
- createdAt: Date;
3690
- itemId: number;
3691
- data?: {
3692
- type: "ACTION_CANCELED";
3693
- data: {
3694
- targetItemHistoryId: string;
3695
- };
3696
- } | {
3697
- type: "BUYER_PAID";
3698
- data: {
3699
- soldAccountId: string;
3700
- soldOrderId: string;
3701
- soldConversationId?: string | null | undefined;
3702
- };
3703
- } | {
3704
- type: "DELETED";
3705
- data: {
3706
- sourceConversationId?: string | null | undefined;
3707
- };
3708
- } | {
3709
- type: "DELIVERED";
3710
- data: {
3711
- soldAccountId: string;
3712
- soldOrderId: string;
3713
- soldConversationId?: string | null | undefined;
3714
- };
3715
- } | {
3716
- type: "EMPTY";
3717
- } | {
3718
- type: "FAILED_TO_PUBLISH";
3719
- data: {
3720
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3721
- accountId?: string | null | undefined;
3722
- reason?: string | null | undefined;
3723
- fields?: {
3724
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
3725
- autoFixable: boolean;
3726
- error?: string | null | undefined;
3727
- }[] | null | undefined;
3728
- itemHistoryId?: string | null | undefined;
3729
- };
3730
- } | {
3731
- type: "IMAGE_PROCESSING_DONE";
3732
- data: {
3733
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3734
- variations?: {
3735
- fileId: string;
3736
- seed: number;
3737
- phash: string;
3738
- distanceOriginal: number;
3739
- originalImageUrl: string;
3740
- originalPhash: string;
3741
- whash?: string | null | undefined;
3742
- originalWhash?: string | null | undefined;
3743
- }[] | null | undefined;
3744
- originalPhashes?: string[] | null | undefined;
3745
- historyId?: string | null | undefined;
3746
- };
3747
- } | {
3748
- type: "IMPORTED";
3749
- data: {
3750
- post: {
3751
- platformId: string;
3752
- post: {
3753
- status?: string | null | undefined;
3754
- title?: string | null | undefined;
3755
- description?: string | null | undefined;
3756
- brand?: string | null | undefined;
3757
- statusId?: number | null | undefined;
3758
- sizeId?: number | null | undefined;
3759
- colorIds?: number[] | null | undefined;
3760
- packageSizeId?: number | null | undefined;
3761
- price?: number | null | undefined;
3762
- currency?: string | null | undefined;
3763
- catalog?: string | null | undefined;
3764
- catalogId?: number | null | undefined;
3765
- colors?: string[] | null | undefined;
3766
- measurementLength?: number | null | undefined;
3767
- measurementWidth?: number | null | undefined;
3768
- photoUrls?: string[] | null | undefined;
3769
- size?: string | null | undefined;
3770
- isDraft?: boolean | null | undefined;
3771
- isArchived?: boolean | null | undefined;
3772
- isUnisex?: boolean | null | undefined;
3773
- availableQuantity?: number | null | undefined;
3774
- material?: number[] | null | undefined;
3775
- manufacturerLabelling?: string | null | undefined;
3776
- labels?: string[] | null | undefined;
3777
- platformCategoryId?: string | null | undefined;
3778
- platformBrandId?: string | null | undefined;
3779
- platformSizeId?: string | null | undefined;
3780
- platformColorIds?: string[] | null | undefined;
3781
- platformCondition?: string | null | undefined;
3782
- platformEnumValues?: {
3783
- enumType: string;
3784
- platformValueId: string;
3785
- displayName?: string | null | undefined;
3786
- }[] | null | undefined;
3787
- attributes?: {
3788
- value: string;
3789
- fieldKey: string;
3790
- }[] | null | undefined;
3791
- isHidden?: boolean | null | undefined;
3792
- isDeleted?: boolean | null | undefined;
3793
- };
3794
- createdAt?: Date | null | undefined;
3795
- platformUrl?: string | null | undefined;
3796
- viewsCount?: number | null | undefined;
3797
- favoritesCount?: number | null | undefined;
3798
- };
3799
- };
3800
- } | {
3801
- type: "LIFECYCLE_COMPLETED";
3802
- data: {
3803
- accountId: string;
3804
- };
3805
- } | {
3806
- type: "LIFECYCLE_STARTED";
3807
- data: {
3808
- caseId: string;
3809
- accountId: string;
3810
- };
3811
- } | {
3812
- type: "PUBLISHED";
3813
- data: {
3814
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3815
- accountId?: string | null | undefined;
3816
- itemHistoryId?: string | null | undefined;
3817
- };
3818
- } | {
3819
- type: "REPUBLISHING";
3820
- data: {
3821
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3822
- payload?: {
3823
- priceDropPayload?: {
3824
- value: number;
3825
- type: "PERCENTAGE" | "ABSOLUTE";
3826
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3827
- roundStep?: number | null | undefined;
3828
- negotiationProfile?: "AUTO" | null | undefined;
3829
- maxRounds?: number | null | undefined;
3830
- } | null | undefined;
3831
- priceVariationPayload?: {
3832
- amount: number;
3833
- } | null | undefined;
3834
- rewriteForRepublish?: boolean | null | undefined;
3835
- imageVariationSettings?: {
3836
- cropPercentage?: number | null | undefined;
3837
- rotationDegrees?: number | null | undefined;
3838
- translationPixels?: number | null | undefined;
3839
- enableToneVariations?: boolean | null | undefined;
3840
- enableNoiseVariations?: boolean | null | undefined;
3841
- enableGradientVariation?: boolean | null | undefined;
3842
- framePercentage?: number | null | undefined;
3843
- elasticWarpEnabled?: boolean | null | undefined;
3844
- } | null | undefined;
3845
- } | null | undefined;
3846
- publishingDate?: Date | null | undefined;
3847
- isTransfer?: boolean | null | undefined;
3848
- targetAccountId?: string | null | undefined;
3849
- allowIfDeleted?: boolean | null | undefined;
3850
- };
3851
- } | {
3852
- type: "REPUBLISHING_RETRY";
3853
- data: {
3854
- maxAttempts: number;
3855
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3856
- attemptNumber: number;
3857
- previousHistoryId: string;
3858
- originalFailureDate: Date;
3859
- payload?: {
3860
- priceDropPayload?: {
3861
- value: number;
3862
- type: "PERCENTAGE" | "ABSOLUTE";
3863
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3864
- roundStep?: number | null | undefined;
3865
- negotiationProfile?: "AUTO" | null | undefined;
3866
- maxRounds?: number | null | undefined;
3867
- } | null | undefined;
3868
- priceVariationPayload?: {
3869
- amount: number;
3870
- } | null | undefined;
3871
- rewriteForRepublish?: boolean | null | undefined;
3872
- imageVariationSettings?: {
3873
- cropPercentage?: number | null | undefined;
3874
- rotationDegrees?: number | null | undefined;
3875
- translationPixels?: number | null | undefined;
3876
- enableToneVariations?: boolean | null | undefined;
3877
- enableNoiseVariations?: boolean | null | undefined;
3878
- enableGradientVariation?: boolean | null | undefined;
3879
- framePercentage?: number | null | undefined;
3880
- elasticWarpEnabled?: boolean | null | undefined;
3881
- } | null | undefined;
3671
+ fileId: string;
3672
+ orderId: string;
3673
+ nonCroppedFileId: string;
3674
+ originalFileId: string;
3675
+ originalFile?: {
3676
+ path: string;
3677
+ id: string;
3678
+ createdAt: Date;
3679
+ userId: number;
3680
+ signedUrl: string;
3681
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3682
+ } | null | undefined;
3683
+ carrier?: unknown;
3684
+ file?: {
3685
+ path: string;
3686
+ id: string;
3687
+ createdAt: Date;
3688
+ userId: number;
3689
+ signedUrl: string;
3690
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3691
+ } | null | undefined;
3692
+ nonCroppedFile?: {
3693
+ path: string;
3694
+ id: string;
3695
+ createdAt: Date;
3696
+ userId: number;
3697
+ signedUrl: string;
3698
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3699
+ } | null | undefined;
3700
+ }>, "many">>>;
3701
+ invoices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3702
+ id: z.ZodString;
3703
+ invoiceNumber: z.ZodString;
3704
+ userId: z.ZodNumber;
3705
+ businessProfileId: z.ZodString;
3706
+ businessProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3707
+ id: z.ZodString;
3708
+ userId: z.ZodNumber;
3709
+ businessName: z.ZodString;
3710
+ address: z.ZodString;
3711
+ siret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3712
+ vatNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3713
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3714
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3715
+ logoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3716
+ logo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3717
+ id: z.ZodString;
3718
+ userId: z.ZodNumber;
3719
+ path: z.ZodString;
3720
+ signedUrl: z.ZodString;
3721
+ createdAt: z.ZodDate;
3722
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
3723
+ }, "strip", z.ZodTypeAny, {
3724
+ path: string;
3725
+ id: string;
3726
+ createdAt: Date;
3727
+ userId: number;
3728
+ signedUrl: string;
3729
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3730
+ }, {
3731
+ path: string;
3732
+ id: string;
3733
+ createdAt: Date;
3734
+ userId: number;
3735
+ signedUrl: string;
3736
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3737
+ }>>>;
3738
+ isActive: z.ZodBoolean;
3739
+ createdAt: z.ZodDate;
3740
+ updatedAt: z.ZodDate;
3741
+ }, "strip", z.ZodTypeAny, {
3742
+ id: string;
3743
+ createdAt: Date;
3744
+ userId: number;
3745
+ updatedAt: Date;
3746
+ businessName: string;
3747
+ address: string;
3748
+ isActive: boolean;
3749
+ email?: string | null | undefined;
3750
+ phone?: string | null | undefined;
3751
+ siret?: string | null | undefined;
3752
+ vatNumber?: string | null | undefined;
3753
+ logoFileId?: string | null | undefined;
3754
+ logo?: {
3755
+ path: string;
3756
+ id: string;
3757
+ createdAt: Date;
3758
+ userId: number;
3759
+ signedUrl: string;
3760
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3882
3761
  } | null | undefined;
3883
- fields?: {
3884
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
3885
- autoFixable: boolean;
3886
- error?: string | null | undefined;
3887
- }[] | null | undefined;
3888
- };
3889
- } | {
3890
- type: "SCHEDULED";
3891
- data: {
3892
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3893
- publishingDate?: Date | null | undefined;
3894
- };
3895
- } | {
3896
- type: "SCHEDULED_RETRY";
3897
- data: {
3898
- maxAttempts: number;
3899
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3900
- attemptNumber: number;
3901
- previousHistoryId: string;
3902
- originalFailureDate: Date;
3903
- fields?: {
3904
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
3905
- autoFixable: boolean;
3906
- error?: string | null | undefined;
3907
- }[] | null | undefined;
3908
- };
3909
- } | {
3910
- type: "UPDATED";
3911
- data: {
3912
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3913
- };
3914
- } | {
3915
- type: "UPDATING";
3916
- data: {
3917
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
3918
- payload?: {
3919
- priceDropPayload?: {
3920
- value: number;
3921
- type: "PERCENTAGE" | "ABSOLUTE";
3922
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3923
- roundStep?: number | null | undefined;
3924
- negotiationProfile?: "AUTO" | null | undefined;
3925
- maxRounds?: number | null | undefined;
3926
- } | null | undefined;
3762
+ }, {
3763
+ id: string;
3764
+ createdAt: Date;
3765
+ userId: number;
3766
+ updatedAt: Date;
3767
+ businessName: string;
3768
+ address: string;
3769
+ isActive: boolean;
3770
+ email?: string | null | undefined;
3771
+ phone?: string | null | undefined;
3772
+ siret?: string | null | undefined;
3773
+ vatNumber?: string | null | undefined;
3774
+ logoFileId?: string | null | undefined;
3775
+ logo?: {
3776
+ path: string;
3777
+ id: string;
3778
+ createdAt: Date;
3779
+ userId: number;
3780
+ signedUrl: string;
3781
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3927
3782
  } | null | undefined;
3928
- targetDate?: Date | null | undefined;
3929
- };
3930
- } | null | undefined;
3931
- accountId?: string | null | undefined;
3932
- targetDate?: Date | null | undefined;
3933
- requestId?: string | null | undefined;
3934
- targetHistoryId?: string | null | undefined;
3935
- } | null | undefined;
3936
- sourceInConversation?: "UNKNOWN" | "DELETED" | "ORDER" | "TRANSACTION" | null | undefined;
3937
- }, {
3938
- actions: {
3939
- perAccount: Record<string, unknown[]>;
3940
- };
3941
- name: string;
3942
- id: number;
3943
- createdAt: Date;
3944
- userId: number;
3945
- updatedAt: Date;
3946
- sold: boolean;
3947
- fees?: {
3948
- value: number;
3949
- type: string;
3950
- name: string;
3951
- id: number;
3952
- createdAt: Date;
3953
- userId: number;
3954
- updatedAt: Date;
3955
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3956
- startDate: Date;
3957
- active: boolean;
3958
- description?: string | null | undefined;
3783
+ }>>>;
3784
+ customerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3785
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3786
+ id: z.ZodString;
3787
+ userId: z.ZodNumber;
3788
+ firstName: z.ZodString;
3789
+ lastName: z.ZodString;
3790
+ birthDate: z.ZodDate;
3791
+ email: z.ZodString;
3792
+ idNumber: z.ZodString;
3793
+ phone: z.ZodString;
3794
+ iban: z.ZodString;
3795
+ bic: z.ZodString;
3796
+ phoneVerified: z.ZodBoolean;
3797
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3798
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3799
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3800
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3801
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3802
+ }, "strip", z.ZodTypeAny, {
3803
+ id: string;
3804
+ userId: number;
3805
+ firstName: string;
3806
+ lastName: string;
3807
+ birthDate: Date;
3808
+ email: string;
3809
+ idNumber: string;
3810
+ phone: string;
3811
+ iban: string;
3812
+ bic: string;
3813
+ phoneVerified: boolean;
3814
+ addressLine1?: string | null | undefined;
3815
+ addressLine2?: string | null | undefined;
3816
+ city?: string | null | undefined;
3817
+ postalCode?: string | null | undefined;
3818
+ country?: string | null | undefined;
3819
+ }, {
3820
+ id: string;
3821
+ userId: number;
3822
+ firstName: string;
3823
+ lastName: string;
3824
+ birthDate: Date;
3825
+ email: string;
3826
+ idNumber: string;
3827
+ phone: string;
3828
+ iban: string;
3829
+ bic: string;
3830
+ phoneVerified: boolean;
3831
+ addressLine1?: string | null | undefined;
3832
+ addressLine2?: string | null | undefined;
3833
+ city?: string | null | undefined;
3834
+ postalCode?: string | null | undefined;
3835
+ country?: string | null | undefined;
3836
+ }>>>;
3837
+ orderId: z.ZodString;
3838
+ fileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3839
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3840
+ id: z.ZodString;
3841
+ userId: z.ZodNumber;
3842
+ path: z.ZodString;
3843
+ signedUrl: z.ZodString;
3844
+ createdAt: z.ZodDate;
3845
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
3846
+ }, "strip", z.ZodTypeAny, {
3847
+ path: string;
3848
+ id: string;
3849
+ createdAt: Date;
3850
+ userId: number;
3851
+ signedUrl: string;
3852
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3853
+ }, {
3854
+ path: string;
3855
+ id: string;
3856
+ createdAt: Date;
3857
+ userId: number;
3858
+ signedUrl: string;
3859
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3860
+ }>>>;
3861
+ type: z.ZodEnum<["PURCHASE", "SALE"]>;
3862
+ status: z.ZodString;
3863
+ issueDate: z.ZodDate;
3864
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3865
+ subtotal: z.ZodNumber;
3866
+ vatRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3867
+ vatAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3868
+ total: z.ZodNumber;
3869
+ currency: z.ZodString;
3870
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3871
+ lineItems: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3872
+ id: z.ZodNumber;
3873
+ invoiceId: z.ZodString;
3874
+ itemOnPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3875
+ description: z.ZodString;
3876
+ quantity: z.ZodNumber;
3877
+ unitPrice: z.ZodNumber;
3878
+ vatRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3879
+ total: z.ZodNumber;
3880
+ createdAt: z.ZodDate;
3881
+ }, "strip", z.ZodTypeAny, {
3882
+ description: string;
3883
+ id: number;
3884
+ createdAt: Date;
3885
+ invoiceId: string;
3886
+ quantity: number;
3887
+ unitPrice: number;
3888
+ total: number;
3889
+ itemOnPlatformId?: string | null | undefined;
3890
+ vatRate?: number | null | undefined;
3891
+ }, {
3892
+ description: string;
3893
+ id: number;
3894
+ createdAt: Date;
3895
+ invoiceId: string;
3896
+ quantity: number;
3897
+ unitPrice: number;
3898
+ total: number;
3899
+ itemOnPlatformId?: string | null | undefined;
3900
+ vatRate?: number | null | undefined;
3901
+ }>, "many">>>;
3902
+ createdAt: z.ZodDate;
3903
+ updatedAt: z.ZodDate;
3904
+ }, "strip", z.ZodTypeAny, {
3905
+ type: "SALE" | "PURCHASE";
3906
+ status: string;
3907
+ id: string;
3908
+ createdAt: Date;
3909
+ userId: number;
3910
+ currency: string;
3911
+ orderId: string;
3912
+ updatedAt: Date;
3913
+ total: number;
3914
+ invoiceNumber: string;
3915
+ businessProfileId: string;
3916
+ issueDate: Date;
3917
+ subtotal: number;
3918
+ fileId?: string | null | undefined;
3919
+ file?: {
3920
+ path: string;
3921
+ id: string;
3922
+ createdAt: Date;
3923
+ userId: number;
3924
+ signedUrl: string;
3925
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3926
+ } | null | undefined;
3927
+ vatRate?: number | null | undefined;
3928
+ businessProfile?: {
3929
+ id: string;
3930
+ createdAt: Date;
3931
+ userId: number;
3932
+ updatedAt: Date;
3933
+ businessName: string;
3934
+ address: string;
3935
+ isActive: boolean;
3936
+ email?: string | null | undefined;
3937
+ phone?: string | null | undefined;
3938
+ siret?: string | null | undefined;
3939
+ vatNumber?: string | null | undefined;
3940
+ logoFileId?: string | null | undefined;
3941
+ logo?: {
3942
+ path: string;
3943
+ id: string;
3944
+ createdAt: Date;
3945
+ userId: number;
3946
+ signedUrl: string;
3947
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
3948
+ } | null | undefined;
3949
+ } | null | undefined;
3950
+ customerId?: string | null | undefined;
3951
+ customer?: {
3952
+ id: string;
3953
+ userId: number;
3954
+ firstName: string;
3955
+ lastName: string;
3956
+ birthDate: Date;
3957
+ email: string;
3958
+ idNumber: string;
3959
+ phone: string;
3960
+ iban: string;
3961
+ bic: string;
3962
+ phoneVerified: boolean;
3963
+ addressLine1?: string | null | undefined;
3964
+ addressLine2?: string | null | undefined;
3965
+ city?: string | null | undefined;
3966
+ postalCode?: string | null | undefined;
3967
+ country?: string | null | undefined;
3968
+ } | null | undefined;
3969
+ dueDate?: Date | null | undefined;
3970
+ vatAmount?: number | null | undefined;
3971
+ notes?: string | null | undefined;
3972
+ lineItems?: {
3973
+ description: string;
3974
+ id: number;
3975
+ createdAt: Date;
3976
+ invoiceId: string;
3977
+ quantity: number;
3978
+ unitPrice: number;
3979
+ total: number;
3980
+ itemOnPlatformId?: string | null | undefined;
3981
+ vatRate?: number | null | undefined;
3982
+ }[] | null | undefined;
3983
+ }, {
3984
+ type: "SALE" | "PURCHASE";
3985
+ status: string;
3986
+ id: string;
3987
+ createdAt: Date;
3988
+ userId: number;
3989
+ currency: string;
3990
+ orderId: string;
3991
+ updatedAt: Date;
3992
+ total: number;
3993
+ invoiceNumber: string;
3994
+ businessProfileId: string;
3995
+ issueDate: Date;
3996
+ subtotal: number;
3997
+ fileId?: string | null | undefined;
3998
+ file?: {
3999
+ path: string;
4000
+ id: string;
4001
+ createdAt: Date;
4002
+ userId: number;
4003
+ signedUrl: string;
4004
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4005
+ } | null | undefined;
4006
+ vatRate?: number | null | undefined;
4007
+ businessProfile?: {
4008
+ id: string;
4009
+ createdAt: Date;
4010
+ userId: number;
4011
+ updatedAt: Date;
4012
+ businessName: string;
4013
+ address: string;
4014
+ isActive: boolean;
4015
+ email?: string | null | undefined;
4016
+ phone?: string | null | undefined;
4017
+ siret?: string | null | undefined;
4018
+ vatNumber?: string | null | undefined;
4019
+ logoFileId?: string | null | undefined;
4020
+ logo?: {
4021
+ path: string;
4022
+ id: string;
4023
+ createdAt: Date;
4024
+ userId: number;
4025
+ signedUrl: string;
4026
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4027
+ } | null | undefined;
4028
+ } | null | undefined;
4029
+ customerId?: string | null | undefined;
4030
+ customer?: {
4031
+ id: string;
4032
+ userId: number;
4033
+ firstName: string;
4034
+ lastName: string;
4035
+ birthDate: Date;
4036
+ email: string;
4037
+ idNumber: string;
4038
+ phone: string;
4039
+ iban: string;
4040
+ bic: string;
4041
+ phoneVerified: boolean;
4042
+ addressLine1?: string | null | undefined;
4043
+ addressLine2?: string | null | undefined;
4044
+ city?: string | null | undefined;
4045
+ postalCode?: string | null | undefined;
4046
+ country?: string | null | undefined;
4047
+ } | null | undefined;
4048
+ dueDate?: Date | null | undefined;
4049
+ vatAmount?: number | null | undefined;
4050
+ notes?: string | null | undefined;
4051
+ lineItems?: {
4052
+ description: string;
4053
+ id: number;
4054
+ createdAt: Date;
4055
+ invoiceId: string;
4056
+ quantity: number;
4057
+ unitPrice: number;
4058
+ total: number;
4059
+ itemOnPlatformId?: string | null | undefined;
4060
+ vatRate?: number | null | undefined;
4061
+ }[] | null | undefined;
4062
+ }>, "many">>>;
4063
+ }, "strip", z.ZodTypeAny, {
4064
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
4065
+ labels?: {
4066
+ id: string;
4067
+ fileId: string;
4068
+ orderId: string;
4069
+ nonCroppedFileId: string;
4070
+ originalFileId: string;
4071
+ originalFile?: {
4072
+ path: string;
4073
+ id: string;
4074
+ createdAt: Date;
4075
+ userId: number;
4076
+ signedUrl: string;
4077
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4078
+ } | null | undefined;
4079
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
4080
+ file?: {
4081
+ path: string;
4082
+ id: string;
4083
+ createdAt: Date;
4084
+ userId: number;
4085
+ signedUrl: string;
4086
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4087
+ } | null | undefined;
4088
+ nonCroppedFile?: {
4089
+ path: string;
4090
+ id: string;
4091
+ createdAt: Date;
4092
+ userId: number;
4093
+ signedUrl: string;
4094
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4095
+ } | null | undefined;
4096
+ }[] | null | undefined;
4097
+ invoices?: {
4098
+ type: "SALE" | "PURCHASE";
4099
+ status: string;
4100
+ id: string;
4101
+ createdAt: Date;
4102
+ userId: number;
4103
+ currency: string;
4104
+ orderId: string;
4105
+ updatedAt: Date;
4106
+ total: number;
4107
+ invoiceNumber: string;
4108
+ businessProfileId: string;
4109
+ issueDate: Date;
4110
+ subtotal: number;
4111
+ fileId?: string | null | undefined;
4112
+ file?: {
4113
+ path: string;
4114
+ id: string;
4115
+ createdAt: Date;
4116
+ userId: number;
4117
+ signedUrl: string;
4118
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4119
+ } | null | undefined;
4120
+ vatRate?: number | null | undefined;
4121
+ businessProfile?: {
4122
+ id: string;
4123
+ createdAt: Date;
4124
+ userId: number;
4125
+ updatedAt: Date;
4126
+ businessName: string;
4127
+ address: string;
4128
+ isActive: boolean;
4129
+ email?: string | null | undefined;
4130
+ phone?: string | null | undefined;
4131
+ siret?: string | null | undefined;
4132
+ vatNumber?: string | null | undefined;
4133
+ logoFileId?: string | null | undefined;
4134
+ logo?: {
4135
+ path: string;
4136
+ id: string;
4137
+ createdAt: Date;
4138
+ userId: number;
4139
+ signedUrl: string;
4140
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4141
+ } | null | undefined;
4142
+ } | null | undefined;
4143
+ customerId?: string | null | undefined;
4144
+ customer?: {
4145
+ id: string;
4146
+ userId: number;
4147
+ firstName: string;
4148
+ lastName: string;
4149
+ birthDate: Date;
4150
+ email: string;
4151
+ idNumber: string;
4152
+ phone: string;
4153
+ iban: string;
4154
+ bic: string;
4155
+ phoneVerified: boolean;
4156
+ addressLine1?: string | null | undefined;
4157
+ addressLine2?: string | null | undefined;
4158
+ city?: string | null | undefined;
4159
+ postalCode?: string | null | undefined;
4160
+ country?: string | null | undefined;
4161
+ } | null | undefined;
4162
+ dueDate?: Date | null | undefined;
4163
+ vatAmount?: number | null | undefined;
4164
+ notes?: string | null | undefined;
4165
+ lineItems?: {
4166
+ description: string;
4167
+ id: number;
4168
+ createdAt: Date;
4169
+ invoiceId: string;
4170
+ quantity: number;
4171
+ unitPrice: number;
4172
+ total: number;
4173
+ itemOnPlatformId?: string | null | undefined;
4174
+ vatRate?: number | null | undefined;
4175
+ }[] | null | undefined;
4176
+ }[] | null | undefined;
4177
+ }, {
4178
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
4179
+ labels?: {
4180
+ id: string;
4181
+ fileId: string;
4182
+ orderId: string;
4183
+ nonCroppedFileId: string;
4184
+ originalFileId: string;
4185
+ originalFile?: {
4186
+ path: string;
4187
+ id: string;
4188
+ createdAt: Date;
4189
+ userId: number;
4190
+ signedUrl: string;
4191
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4192
+ } | null | undefined;
4193
+ carrier?: unknown;
4194
+ file?: {
4195
+ path: string;
4196
+ id: string;
4197
+ createdAt: Date;
4198
+ userId: number;
4199
+ signedUrl: string;
4200
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4201
+ } | null | undefined;
4202
+ nonCroppedFile?: {
4203
+ path: string;
4204
+ id: string;
4205
+ createdAt: Date;
4206
+ userId: number;
4207
+ signedUrl: string;
4208
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4209
+ } | null | undefined;
4210
+ }[] | null | undefined;
4211
+ invoices?: {
4212
+ type: "SALE" | "PURCHASE";
4213
+ status: string;
4214
+ id: string;
4215
+ createdAt: Date;
4216
+ userId: number;
4217
+ currency: string;
4218
+ orderId: string;
4219
+ updatedAt: Date;
4220
+ total: number;
4221
+ invoiceNumber: string;
4222
+ businessProfileId: string;
4223
+ issueDate: Date;
4224
+ subtotal: number;
4225
+ fileId?: string | null | undefined;
4226
+ file?: {
4227
+ path: string;
4228
+ id: string;
4229
+ createdAt: Date;
4230
+ userId: number;
4231
+ signedUrl: string;
4232
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4233
+ } | null | undefined;
4234
+ vatRate?: number | null | undefined;
4235
+ businessProfile?: {
4236
+ id: string;
4237
+ createdAt: Date;
4238
+ userId: number;
4239
+ updatedAt: Date;
4240
+ businessName: string;
4241
+ address: string;
4242
+ isActive: boolean;
4243
+ email?: string | null | undefined;
4244
+ phone?: string | null | undefined;
4245
+ siret?: string | null | undefined;
4246
+ vatNumber?: string | null | undefined;
4247
+ logoFileId?: string | null | undefined;
4248
+ logo?: {
4249
+ path: string;
4250
+ id: string;
4251
+ createdAt: Date;
4252
+ userId: number;
4253
+ signedUrl: string;
4254
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4255
+ } | null | undefined;
4256
+ } | null | undefined;
4257
+ customerId?: string | null | undefined;
4258
+ customer?: {
4259
+ id: string;
4260
+ userId: number;
4261
+ firstName: string;
4262
+ lastName: string;
4263
+ birthDate: Date;
4264
+ email: string;
4265
+ idNumber: string;
4266
+ phone: string;
4267
+ iban: string;
4268
+ bic: string;
4269
+ phoneVerified: boolean;
4270
+ addressLine1?: string | null | undefined;
4271
+ addressLine2?: string | null | undefined;
4272
+ city?: string | null | undefined;
4273
+ postalCode?: string | null | undefined;
4274
+ country?: string | null | undefined;
4275
+ } | null | undefined;
4276
+ dueDate?: Date | null | undefined;
4277
+ vatAmount?: number | null | undefined;
4278
+ notes?: string | null | undefined;
4279
+ lineItems?: {
4280
+ description: string;
4281
+ id: number;
4282
+ createdAt: Date;
4283
+ invoiceId: string;
4284
+ quantity: number;
4285
+ unitPrice: number;
4286
+ total: number;
4287
+ itemOnPlatformId?: string | null | undefined;
4288
+ vatRate?: number | null | undefined;
4289
+ }[] | null | undefined;
4290
+ }[] | null | undefined;
4291
+ }>>>;
4292
+ }, "strip", z.ZodTypeAny, {
4293
+ actions: {
4294
+ perAccount: Record<string, ("REPUBLISH" | "UNKNOWN" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE" | "UPDATE_CANCEL")[]>;
4295
+ };
4296
+ name: string;
4297
+ id: number;
4298
+ createdAt: Date;
4299
+ userId: number;
4300
+ updatedAt: Date;
4301
+ sold: boolean;
4302
+ fees?: {
4303
+ value: number;
4304
+ type: string;
4305
+ name: string;
4306
+ id: number;
4307
+ createdAt: Date;
4308
+ userId: number;
4309
+ updatedAt: Date;
4310
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4311
+ startDate: Date;
4312
+ active: boolean;
4313
+ description?: string | null | undefined;
3959
4314
  itemId?: number | null | undefined;
3960
4315
  endDate?: Date | null | undefined;
3961
4316
  parentFeeId?: number | null | undefined;
@@ -3966,6 +4321,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
3966
4321
  colorIds?: number[] | null | undefined;
3967
4322
  packageSizeId?: number | null | undefined;
3968
4323
  state?: number | null | undefined;
4324
+ measurementLength?: number | null | undefined;
4325
+ measurementWidth?: number | null | undefined;
3969
4326
  labels?: {
3970
4327
  itemId: number;
3971
4328
  labelId: number;
@@ -3985,6 +4342,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
3985
4342
  }[] | null | undefined;
3986
4343
  sex?: string | null | undefined;
3987
4344
  platforms?: {
4345
+ status: "ERROR" | "UNKNOWN" | "PENDING" | "DRAFT" | "ARCHIVED" | "DISPUTE" | "DELETED" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
3988
4346
  id: string;
3989
4347
  createdAt: Date;
3990
4348
  accountId: string;
@@ -3994,7 +4352,6 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
3994
4352
  platformPrice: number;
3995
4353
  updatedAt: Date;
3996
4354
  publishedAt: Date;
3997
- status?: unknown;
3998
4355
  conversationId?: string | null | undefined;
3999
4356
  viewsCount?: number | null | undefined;
4000
4357
  favoritesCount?: number | null | undefined;
@@ -4052,6 +4409,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4052
4409
  sellingPrice?: number | null | undefined;
4053
4410
  sellingPlaceId?: number | null | undefined;
4054
4411
  feesSum?: number | null | undefined;
4412
+ materialIds?: number[] | null | undefined;
4055
4413
  enumValues?: {
4056
4414
  id: string;
4057
4415
  createdAt: Date;
@@ -4061,10 +4419,10 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4061
4419
  enumValue: string;
4062
4420
  }[] | null | undefined;
4063
4421
  lastHistory?: {
4422
+ type: "DELETING" | "UNKNOWN" | "CANCELED" | "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "FAILED_TO_UPDATE" | "DISPUTE" | "DELETED" | "DELETE_CANCELED" | "FAILED_TO_DELETE" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
4064
4423
  id: string;
4065
4424
  createdAt: Date;
4066
4425
  itemId: number;
4067
- type?: unknown;
4068
4426
  data?: {
4069
4427
  type: "ACTION_CANCELED";
4070
4428
  data: {
@@ -4098,8 +4456,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4098
4456
  accountId?: string | null | undefined;
4099
4457
  reason?: string | null | undefined;
4100
4458
  fields?: {
4459
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
4101
4460
  autoFixable: boolean;
4102
- field?: unknown;
4103
4461
  error?: string | null | undefined;
4104
4462
  }[] | null | undefined;
4105
4463
  itemHistoryId?: string | null | undefined;
@@ -4202,7 +4560,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4202
4560
  type: "PERCENTAGE" | "ABSOLUTE";
4203
4561
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4204
4562
  roundStep?: number | null | undefined;
4205
- negotiationProfile?: unknown;
4563
+ negotiationProfile?: "AUTO" | null | undefined;
4206
4564
  maxRounds?: number | null | undefined;
4207
4565
  } | null | undefined;
4208
4566
  priceVariationPayload?: {
@@ -4239,7 +4597,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4239
4597
  type: "PERCENTAGE" | "ABSOLUTE";
4240
4598
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4241
4599
  roundStep?: number | null | undefined;
4242
- negotiationProfile?: unknown;
4600
+ negotiationProfile?: "AUTO" | null | undefined;
4243
4601
  maxRounds?: number | null | undefined;
4244
4602
  } | null | undefined;
4245
4603
  priceVariationPayload?: {
@@ -4258,8 +4616,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4258
4616
  } | null | undefined;
4259
4617
  } | null | undefined;
4260
4618
  fields?: {
4619
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
4261
4620
  autoFixable: boolean;
4262
- field?: unknown;
4263
4621
  error?: string | null | undefined;
4264
4622
  }[] | null | undefined;
4265
4623
  };
@@ -4278,8 +4636,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4278
4636
  previousHistoryId: string;
4279
4637
  originalFailureDate: Date;
4280
4638
  fields?: {
4639
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
4281
4640
  autoFixable: boolean;
4282
- field?: unknown;
4283
4641
  error?: string | null | undefined;
4284
4642
  }[] | null | undefined;
4285
4643
  };
@@ -4298,7 +4656,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4298
4656
  type: "PERCENTAGE" | "ABSOLUTE";
4299
4657
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4300
4658
  roundStep?: number | null | undefined;
4301
- negotiationProfile?: unknown;
4659
+ negotiationProfile?: "AUTO" | null | undefined;
4302
4660
  maxRounds?: number | null | undefined;
4303
4661
  } | null | undefined;
4304
4662
  } | null | undefined;
@@ -4310,44 +4668,156 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4310
4668
  requestId?: string | null | undefined;
4311
4669
  targetHistoryId?: string | null | undefined;
4312
4670
  } | null | undefined;
4313
- sourceInConversation?: unknown;
4314
- }>;
4315
- deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4316
- type: z.ZodLiteral<"ITEM">;
4317
- }, "strip", z.ZodTypeAny, {
4318
- type: "ITEM";
4319
- item: {
4320
- actions: {
4321
- perAccount: Record<string, ("REPUBLISH" | "UNKNOWN" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE" | "UPDATE_CANCEL")[]>;
4322
- };
4323
- name: string;
4324
- id: number;
4325
- createdAt: Date;
4326
- userId: number;
4327
- updatedAt: Date;
4328
- sold: boolean;
4329
- fees?: {
4330
- value: number;
4331
- type: string;
4332
- name: string;
4333
- id: number;
4334
- createdAt: Date;
4335
- userId: number;
4336
- updatedAt: Date;
4337
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4338
- startDate: Date;
4339
- active: boolean;
4340
- description?: string | null | undefined;
4341
- itemId?: number | null | undefined;
4342
- endDate?: Date | null | undefined;
4343
- parentFeeId?: number | null | undefined;
4344
- }[] | null | undefined;
4345
- description?: string | null | undefined;
4346
- categoryId?: number | null | undefined;
4347
- sizeId?: number | null | undefined;
4348
- colorIds?: number[] | null | undefined;
4349
- packageSizeId?: number | null | undefined;
4671
+ sourceInConversation?: "UNKNOWN" | "DELETED" | "ORDER" | "TRANSACTION" | null | undefined;
4672
+ order?: {
4673
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
4674
+ labels?: {
4675
+ id: string;
4676
+ fileId: string;
4677
+ orderId: string;
4678
+ nonCroppedFileId: string;
4679
+ originalFileId: string;
4680
+ originalFile?: {
4681
+ path: string;
4682
+ id: string;
4683
+ createdAt: Date;
4684
+ userId: number;
4685
+ signedUrl: string;
4686
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4687
+ } | null | undefined;
4688
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
4689
+ file?: {
4690
+ path: string;
4691
+ id: string;
4692
+ createdAt: Date;
4693
+ userId: number;
4694
+ signedUrl: string;
4695
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4696
+ } | null | undefined;
4697
+ nonCroppedFile?: {
4698
+ path: string;
4699
+ id: string;
4700
+ createdAt: Date;
4701
+ userId: number;
4702
+ signedUrl: string;
4703
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4704
+ } | null | undefined;
4705
+ }[] | null | undefined;
4706
+ invoices?: {
4707
+ type: "SALE" | "PURCHASE";
4708
+ status: string;
4709
+ id: string;
4710
+ createdAt: Date;
4711
+ userId: number;
4712
+ currency: string;
4713
+ orderId: string;
4714
+ updatedAt: Date;
4715
+ total: number;
4716
+ invoiceNumber: string;
4717
+ businessProfileId: string;
4718
+ issueDate: Date;
4719
+ subtotal: number;
4720
+ fileId?: string | null | undefined;
4721
+ file?: {
4722
+ path: string;
4723
+ id: string;
4724
+ createdAt: Date;
4725
+ userId: number;
4726
+ signedUrl: string;
4727
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4728
+ } | null | undefined;
4729
+ vatRate?: number | null | undefined;
4730
+ businessProfile?: {
4731
+ id: string;
4732
+ createdAt: Date;
4733
+ userId: number;
4734
+ updatedAt: Date;
4735
+ businessName: string;
4736
+ address: string;
4737
+ isActive: boolean;
4738
+ email?: string | null | undefined;
4739
+ phone?: string | null | undefined;
4740
+ siret?: string | null | undefined;
4741
+ vatNumber?: string | null | undefined;
4742
+ logoFileId?: string | null | undefined;
4743
+ logo?: {
4744
+ path: string;
4745
+ id: string;
4746
+ createdAt: Date;
4747
+ userId: number;
4748
+ signedUrl: string;
4749
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
4750
+ } | null | undefined;
4751
+ } | null | undefined;
4752
+ customerId?: string | null | undefined;
4753
+ customer?: {
4754
+ id: string;
4755
+ userId: number;
4756
+ firstName: string;
4757
+ lastName: string;
4758
+ birthDate: Date;
4759
+ email: string;
4760
+ idNumber: string;
4761
+ phone: string;
4762
+ iban: string;
4763
+ bic: string;
4764
+ phoneVerified: boolean;
4765
+ addressLine1?: string | null | undefined;
4766
+ addressLine2?: string | null | undefined;
4767
+ city?: string | null | undefined;
4768
+ postalCode?: string | null | undefined;
4769
+ country?: string | null | undefined;
4770
+ } | null | undefined;
4771
+ dueDate?: Date | null | undefined;
4772
+ vatAmount?: number | null | undefined;
4773
+ notes?: string | null | undefined;
4774
+ lineItems?: {
4775
+ description: string;
4776
+ id: number;
4777
+ createdAt: Date;
4778
+ invoiceId: string;
4779
+ quantity: number;
4780
+ unitPrice: number;
4781
+ total: number;
4782
+ itemOnPlatformId?: string | null | undefined;
4783
+ vatRate?: number | null | undefined;
4784
+ }[] | null | undefined;
4785
+ }[] | null | undefined;
4786
+ } | null | undefined;
4787
+ }, {
4788
+ actions: {
4789
+ perAccount: Record<string, unknown[]>;
4790
+ };
4791
+ name: string;
4792
+ id: number;
4793
+ createdAt: Date;
4794
+ userId: number;
4795
+ updatedAt: Date;
4796
+ sold: boolean;
4797
+ fees?: {
4798
+ value: number;
4799
+ type: string;
4800
+ name: string;
4801
+ id: number;
4802
+ createdAt: Date;
4803
+ userId: number;
4804
+ updatedAt: Date;
4805
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4806
+ startDate: Date;
4807
+ active: boolean;
4808
+ description?: string | null | undefined;
4809
+ itemId?: number | null | undefined;
4810
+ endDate?: Date | null | undefined;
4811
+ parentFeeId?: number | null | undefined;
4812
+ }[] | null | undefined;
4813
+ description?: string | null | undefined;
4814
+ categoryId?: number | null | undefined;
4815
+ sizeId?: number | null | undefined;
4816
+ colorIds?: number[] | null | undefined;
4817
+ packageSizeId?: number | null | undefined;
4350
4818
  state?: number | null | undefined;
4819
+ measurementLength?: number | null | undefined;
4820
+ measurementWidth?: number | null | undefined;
4351
4821
  labels?: {
4352
4822
  itemId: number;
4353
4823
  labelId: number;
@@ -4367,7 +4837,6 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4367
4837
  }[] | null | undefined;
4368
4838
  sex?: string | null | undefined;
4369
4839
  platforms?: {
4370
- status: "ERROR" | "UNKNOWN" | "PENDING" | "DRAFT" | "ARCHIVED" | "DISPUTE" | "DELETED" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
4371
4840
  id: string;
4372
4841
  createdAt: Date;
4373
4842
  accountId: string;
@@ -4377,6 +4846,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4377
4846
  platformPrice: number;
4378
4847
  updatedAt: Date;
4379
4848
  publishedAt: Date;
4849
+ status?: unknown;
4380
4850
  conversationId?: string | null | undefined;
4381
4851
  viewsCount?: number | null | undefined;
4382
4852
  favoritesCount?: number | null | undefined;
@@ -4434,6 +4904,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4434
4904
  sellingPrice?: number | null | undefined;
4435
4905
  sellingPlaceId?: number | null | undefined;
4436
4906
  feesSum?: number | null | undefined;
4907
+ materialIds?: number[] | null | undefined;
4437
4908
  enumValues?: {
4438
4909
  id: string;
4439
4910
  createdAt: Date;
@@ -4443,10 +4914,10 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4443
4914
  enumValue: string;
4444
4915
  }[] | null | undefined;
4445
4916
  lastHistory?: {
4446
- type: "DELETING" | "UNKNOWN" | "CANCELED" | "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "FAILED_TO_UPDATE" | "DISPUTE" | "DELETED" | "DELETE_CANCELED" | "FAILED_TO_DELETE" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
4447
4917
  id: string;
4448
4918
  createdAt: Date;
4449
4919
  itemId: number;
4920
+ type?: unknown;
4450
4921
  data?: {
4451
4922
  type: "ACTION_CANCELED";
4452
4923
  data: {
@@ -4480,8 +4951,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4480
4951
  accountId?: string | null | undefined;
4481
4952
  reason?: string | null | undefined;
4482
4953
  fields?: {
4483
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
4484
4954
  autoFixable: boolean;
4955
+ field?: unknown;
4485
4956
  error?: string | null | undefined;
4486
4957
  }[] | null | undefined;
4487
4958
  itemHistoryId?: string | null | undefined;
@@ -4584,7 +5055,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4584
5055
  type: "PERCENTAGE" | "ABSOLUTE";
4585
5056
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4586
5057
  roundStep?: number | null | undefined;
4587
- negotiationProfile?: "AUTO" | null | undefined;
5058
+ negotiationProfile?: unknown;
4588
5059
  maxRounds?: number | null | undefined;
4589
5060
  } | null | undefined;
4590
5061
  priceVariationPayload?: {
@@ -4621,7 +5092,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4621
5092
  type: "PERCENTAGE" | "ABSOLUTE";
4622
5093
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4623
5094
  roundStep?: number | null | undefined;
4624
- negotiationProfile?: "AUTO" | null | undefined;
5095
+ negotiationProfile?: unknown;
4625
5096
  maxRounds?: number | null | undefined;
4626
5097
  } | null | undefined;
4627
5098
  priceVariationPayload?: {
@@ -4640,8 +5111,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4640
5111
  } | null | undefined;
4641
5112
  } | null | undefined;
4642
5113
  fields?: {
4643
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
4644
5114
  autoFixable: boolean;
5115
+ field?: unknown;
4645
5116
  error?: string | null | undefined;
4646
5117
  }[] | null | undefined;
4647
5118
  };
@@ -4660,8 +5131,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4660
5131
  previousHistoryId: string;
4661
5132
  originalFailureDate: Date;
4662
5133
  fields?: {
4663
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
4664
5134
  autoFixable: boolean;
5135
+ field?: unknown;
4665
5136
  error?: string | null | undefined;
4666
5137
  }[] | null | undefined;
4667
5138
  };
@@ -4680,7 +5151,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4680
5151
  type: "PERCENTAGE" | "ABSOLUTE";
4681
5152
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4682
5153
  roundStep?: number | null | undefined;
4683
- negotiationProfile?: "AUTO" | null | undefined;
5154
+ negotiationProfile?: unknown;
4684
5155
  maxRounds?: number | null | undefined;
4685
5156
  } | null | undefined;
4686
5157
  } | null | undefined;
@@ -4692,14 +5163,130 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4692
5163
  requestId?: string | null | undefined;
4693
5164
  targetHistoryId?: string | null | undefined;
4694
5165
  } | null | undefined;
4695
- sourceInConversation?: "UNKNOWN" | "DELETED" | "ORDER" | "TRANSACTION" | null | undefined;
4696
- };
4697
- deleted?: boolean | null | undefined;
4698
- }, {
5166
+ sourceInConversation?: unknown;
5167
+ order?: {
5168
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
5169
+ labels?: {
5170
+ id: string;
5171
+ fileId: string;
5172
+ orderId: string;
5173
+ nonCroppedFileId: string;
5174
+ originalFileId: string;
5175
+ originalFile?: {
5176
+ path: string;
5177
+ id: string;
5178
+ createdAt: Date;
5179
+ userId: number;
5180
+ signedUrl: string;
5181
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5182
+ } | null | undefined;
5183
+ carrier?: unknown;
5184
+ file?: {
5185
+ path: string;
5186
+ id: string;
5187
+ createdAt: Date;
5188
+ userId: number;
5189
+ signedUrl: string;
5190
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5191
+ } | null | undefined;
5192
+ nonCroppedFile?: {
5193
+ path: string;
5194
+ id: string;
5195
+ createdAt: Date;
5196
+ userId: number;
5197
+ signedUrl: string;
5198
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5199
+ } | null | undefined;
5200
+ }[] | null | undefined;
5201
+ invoices?: {
5202
+ type: "SALE" | "PURCHASE";
5203
+ status: string;
5204
+ id: string;
5205
+ createdAt: Date;
5206
+ userId: number;
5207
+ currency: string;
5208
+ orderId: string;
5209
+ updatedAt: Date;
5210
+ total: number;
5211
+ invoiceNumber: string;
5212
+ businessProfileId: string;
5213
+ issueDate: Date;
5214
+ subtotal: number;
5215
+ fileId?: string | null | undefined;
5216
+ file?: {
5217
+ path: string;
5218
+ id: string;
5219
+ createdAt: Date;
5220
+ userId: number;
5221
+ signedUrl: string;
5222
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5223
+ } | null | undefined;
5224
+ vatRate?: number | null | undefined;
5225
+ businessProfile?: {
5226
+ id: string;
5227
+ createdAt: Date;
5228
+ userId: number;
5229
+ updatedAt: Date;
5230
+ businessName: string;
5231
+ address: string;
5232
+ isActive: boolean;
5233
+ email?: string | null | undefined;
5234
+ phone?: string | null | undefined;
5235
+ siret?: string | null | undefined;
5236
+ vatNumber?: string | null | undefined;
5237
+ logoFileId?: string | null | undefined;
5238
+ logo?: {
5239
+ path: string;
5240
+ id: string;
5241
+ createdAt: Date;
5242
+ userId: number;
5243
+ signedUrl: string;
5244
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5245
+ } | null | undefined;
5246
+ } | null | undefined;
5247
+ customerId?: string | null | undefined;
5248
+ customer?: {
5249
+ id: string;
5250
+ userId: number;
5251
+ firstName: string;
5252
+ lastName: string;
5253
+ birthDate: Date;
5254
+ email: string;
5255
+ idNumber: string;
5256
+ phone: string;
5257
+ iban: string;
5258
+ bic: string;
5259
+ phoneVerified: boolean;
5260
+ addressLine1?: string | null | undefined;
5261
+ addressLine2?: string | null | undefined;
5262
+ city?: string | null | undefined;
5263
+ postalCode?: string | null | undefined;
5264
+ country?: string | null | undefined;
5265
+ } | null | undefined;
5266
+ dueDate?: Date | null | undefined;
5267
+ vatAmount?: number | null | undefined;
5268
+ notes?: string | null | undefined;
5269
+ lineItems?: {
5270
+ description: string;
5271
+ id: number;
5272
+ createdAt: Date;
5273
+ invoiceId: string;
5274
+ quantity: number;
5275
+ unitPrice: number;
5276
+ total: number;
5277
+ itemOnPlatformId?: string | null | undefined;
5278
+ vatRate?: number | null | undefined;
5279
+ }[] | null | undefined;
5280
+ }[] | null | undefined;
5281
+ } | null | undefined;
5282
+ }>;
5283
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5284
+ type: z.ZodLiteral<"ITEM">;
5285
+ }, "strip", z.ZodTypeAny, {
4699
5286
  type: "ITEM";
4700
5287
  item: {
4701
5288
  actions: {
4702
- perAccount: Record<string, unknown[]>;
5289
+ perAccount: Record<string, ("REPUBLISH" | "UNKNOWN" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE" | "UPDATE_CANCEL")[]>;
4703
5290
  };
4704
5291
  name: string;
4705
5292
  id: number;
@@ -4729,6 +5316,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4729
5316
  colorIds?: number[] | null | undefined;
4730
5317
  packageSizeId?: number | null | undefined;
4731
5318
  state?: number | null | undefined;
5319
+ measurementLength?: number | null | undefined;
5320
+ measurementWidth?: number | null | undefined;
4732
5321
  labels?: {
4733
5322
  itemId: number;
4734
5323
  labelId: number;
@@ -4748,6 +5337,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4748
5337
  }[] | null | undefined;
4749
5338
  sex?: string | null | undefined;
4750
5339
  platforms?: {
5340
+ status: "ERROR" | "UNKNOWN" | "PENDING" | "DRAFT" | "ARCHIVED" | "DISPUTE" | "DELETED" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
4751
5341
  id: string;
4752
5342
  createdAt: Date;
4753
5343
  accountId: string;
@@ -4757,7 +5347,6 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4757
5347
  platformPrice: number;
4758
5348
  updatedAt: Date;
4759
5349
  publishedAt: Date;
4760
- status?: unknown;
4761
5350
  conversationId?: string | null | undefined;
4762
5351
  viewsCount?: number | null | undefined;
4763
5352
  favoritesCount?: number | null | undefined;
@@ -4815,6 +5404,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4815
5404
  sellingPrice?: number | null | undefined;
4816
5405
  sellingPlaceId?: number | null | undefined;
4817
5406
  feesSum?: number | null | undefined;
5407
+ materialIds?: number[] | null | undefined;
4818
5408
  enumValues?: {
4819
5409
  id: string;
4820
5410
  createdAt: Date;
@@ -4824,10 +5414,10 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4824
5414
  enumValue: string;
4825
5415
  }[] | null | undefined;
4826
5416
  lastHistory?: {
5417
+ type: "DELETING" | "UNKNOWN" | "CANCELED" | "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "FAILED_TO_UPDATE" | "DISPUTE" | "DELETED" | "DELETE_CANCELED" | "FAILED_TO_DELETE" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
4827
5418
  id: string;
4828
5419
  createdAt: Date;
4829
5420
  itemId: number;
4830
- type?: unknown;
4831
5421
  data?: {
4832
5422
  type: "ACTION_CANCELED";
4833
5423
  data: {
@@ -4861,8 +5451,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4861
5451
  accountId?: string | null | undefined;
4862
5452
  reason?: string | null | undefined;
4863
5453
  fields?: {
5454
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
4864
5455
  autoFixable: boolean;
4865
- field?: unknown;
4866
5456
  error?: string | null | undefined;
4867
5457
  }[] | null | undefined;
4868
5458
  itemHistoryId?: string | null | undefined;
@@ -4965,7 +5555,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
4965
5555
  type: "PERCENTAGE" | "ABSOLUTE";
4966
5556
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4967
5557
  roundStep?: number | null | undefined;
4968
- negotiationProfile?: unknown;
5558
+ negotiationProfile?: "AUTO" | null | undefined;
4969
5559
  maxRounds?: number | null | undefined;
4970
5560
  } | null | undefined;
4971
5561
  priceVariationPayload?: {
@@ -5002,7 +5592,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
5002
5592
  type: "PERCENTAGE" | "ABSOLUTE";
5003
5593
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5004
5594
  roundStep?: number | null | undefined;
5005
- negotiationProfile?: unknown;
5595
+ negotiationProfile?: "AUTO" | null | undefined;
5006
5596
  maxRounds?: number | null | undefined;
5007
5597
  } | null | undefined;
5008
5598
  priceVariationPayload?: {
@@ -5021,8 +5611,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
5021
5611
  } | null | undefined;
5022
5612
  } | null | undefined;
5023
5613
  fields?: {
5614
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
5024
5615
  autoFixable: boolean;
5025
- field?: unknown;
5026
5616
  error?: string | null | undefined;
5027
5617
  }[] | null | undefined;
5028
5618
  };
@@ -5041,8 +5631,8 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
5041
5631
  previousHistoryId: string;
5042
5632
  originalFailureDate: Date;
5043
5633
  fields?: {
5634
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS" | "MATERIAL" | "MEASUREMENT_LENGTH" | "MEASUREMENT_WIDTH" | "IS_UNISEX";
5044
5635
  autoFixable: boolean;
5045
- field?: unknown;
5046
5636
  error?: string | null | undefined;
5047
5637
  }[] | null | undefined;
5048
5638
  };
@@ -5061,7 +5651,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
5061
5651
  type: "PERCENTAGE" | "ABSOLUTE";
5062
5652
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5063
5653
  roundStep?: number | null | undefined;
5064
- negotiationProfile?: unknown;
5654
+ negotiationProfile?: "AUTO" | null | undefined;
5065
5655
  maxRounds?: number | null | undefined;
5066
5656
  } | null | undefined;
5067
5657
  } | null | undefined;
@@ -5073,198 +5663,812 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
5073
5663
  requestId?: string | null | undefined;
5074
5664
  targetHistoryId?: string | null | undefined;
5075
5665
  } | null | undefined;
5076
- sourceInConversation?: unknown;
5666
+ sourceInConversation?: "UNKNOWN" | "DELETED" | "ORDER" | "TRANSACTION" | null | undefined;
5667
+ order?: {
5668
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
5669
+ labels?: {
5670
+ id: string;
5671
+ fileId: string;
5672
+ orderId: string;
5673
+ nonCroppedFileId: string;
5674
+ originalFileId: string;
5675
+ originalFile?: {
5676
+ path: string;
5677
+ id: string;
5678
+ createdAt: Date;
5679
+ userId: number;
5680
+ signedUrl: string;
5681
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5682
+ } | null | undefined;
5683
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
5684
+ file?: {
5685
+ path: string;
5686
+ id: string;
5687
+ createdAt: Date;
5688
+ userId: number;
5689
+ signedUrl: string;
5690
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5691
+ } | null | undefined;
5692
+ nonCroppedFile?: {
5693
+ path: string;
5694
+ id: string;
5695
+ createdAt: Date;
5696
+ userId: number;
5697
+ signedUrl: string;
5698
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5699
+ } | null | undefined;
5700
+ }[] | null | undefined;
5701
+ invoices?: {
5702
+ type: "SALE" | "PURCHASE";
5703
+ status: string;
5704
+ id: string;
5705
+ createdAt: Date;
5706
+ userId: number;
5707
+ currency: string;
5708
+ orderId: string;
5709
+ updatedAt: Date;
5710
+ total: number;
5711
+ invoiceNumber: string;
5712
+ businessProfileId: string;
5713
+ issueDate: Date;
5714
+ subtotal: number;
5715
+ fileId?: string | null | undefined;
5716
+ file?: {
5717
+ path: string;
5718
+ id: string;
5719
+ createdAt: Date;
5720
+ userId: number;
5721
+ signedUrl: string;
5722
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5723
+ } | null | undefined;
5724
+ vatRate?: number | null | undefined;
5725
+ businessProfile?: {
5726
+ id: string;
5727
+ createdAt: Date;
5728
+ userId: number;
5729
+ updatedAt: Date;
5730
+ businessName: string;
5731
+ address: string;
5732
+ isActive: boolean;
5733
+ email?: string | null | undefined;
5734
+ phone?: string | null | undefined;
5735
+ siret?: string | null | undefined;
5736
+ vatNumber?: string | null | undefined;
5737
+ logoFileId?: string | null | undefined;
5738
+ logo?: {
5739
+ path: string;
5740
+ id: string;
5741
+ createdAt: Date;
5742
+ userId: number;
5743
+ signedUrl: string;
5744
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5745
+ } | null | undefined;
5746
+ } | null | undefined;
5747
+ customerId?: string | null | undefined;
5748
+ customer?: {
5749
+ id: string;
5750
+ userId: number;
5751
+ firstName: string;
5752
+ lastName: string;
5753
+ birthDate: Date;
5754
+ email: string;
5755
+ idNumber: string;
5756
+ phone: string;
5757
+ iban: string;
5758
+ bic: string;
5759
+ phoneVerified: boolean;
5760
+ addressLine1?: string | null | undefined;
5761
+ addressLine2?: string | null | undefined;
5762
+ city?: string | null | undefined;
5763
+ postalCode?: string | null | undefined;
5764
+ country?: string | null | undefined;
5765
+ } | null | undefined;
5766
+ dueDate?: Date | null | undefined;
5767
+ vatAmount?: number | null | undefined;
5768
+ notes?: string | null | undefined;
5769
+ lineItems?: {
5770
+ description: string;
5771
+ id: number;
5772
+ createdAt: Date;
5773
+ invoiceId: string;
5774
+ quantity: number;
5775
+ unitPrice: number;
5776
+ total: number;
5777
+ itemOnPlatformId?: string | null | undefined;
5778
+ vatRate?: number | null | undefined;
5779
+ }[] | null | undefined;
5780
+ }[] | null | undefined;
5781
+ } | null | undefined;
5077
5782
  };
5078
5783
  deleted?: boolean | null | undefined;
5079
- }>;
5080
- export type UserWsPayloadItemUpdated = z.infer<typeof UserWsPayloadItemUpdatedSchema>;
5081
- export declare const UserWsPayloadLimitsSchema: z.ZodObject<{
5082
- data: z.ZodObject<{
5083
- activeLevels: z.ZodArray<z.ZodObject<{
5084
- id: z.ZodNumber;
5085
- name: z.ZodString;
5086
- multiplier: z.ZodNumber;
5087
- discordRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5088
- }, "strip", z.ZodTypeAny, {
5089
- name: string;
5090
- id: number;
5091
- multiplier: number;
5092
- discordRoleId?: string | null | undefined;
5093
- }, {
5784
+ }, {
5785
+ type: "ITEM";
5786
+ item: {
5787
+ actions: {
5788
+ perAccount: Record<string, unknown[]>;
5789
+ };
5790
+ name: string;
5791
+ id: number;
5792
+ createdAt: Date;
5793
+ userId: number;
5794
+ updatedAt: Date;
5795
+ sold: boolean;
5796
+ fees?: {
5797
+ value: number;
5798
+ type: string;
5094
5799
  name: string;
5095
5800
  id: number;
5096
- multiplier: number;
5097
- discordRoleId?: string | null | undefined;
5098
- }>, "many">;
5099
- platformsCount: z.ZodObject<{
5100
- used: z.ZodNumber;
5101
- allowed: z.ZodNumber;
5102
- period: z.ZodEnum<["MONTHLY", "DAILY"]>;
5103
- pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5104
- amount: z.ZodNumber;
5105
- currency: z.ZodString;
5106
- }, "strip", z.ZodTypeAny, {
5107
- amount: number;
5108
- currency: string;
5109
- }, {
5110
- amount: number;
5111
- currency: string;
5112
- }>>>;
5113
- }, "strip", z.ZodTypeAny, {
5114
- allowed: number;
5115
- used: number;
5116
- period: "MONTHLY" | "DAILY";
5117
- pricePerExtraUnit?: {
5118
- amount: number;
5119
- currency: string;
5120
- } | null | undefined;
5121
- }, {
5122
- allowed: number;
5123
- used: number;
5124
- period: "MONTHLY" | "DAILY";
5125
- pricePerExtraUnit?: {
5126
- amount: number;
5127
- currency: string;
5128
- } | null | undefined;
5129
- }>;
5130
- accountsCount: z.ZodObject<{
5131
- used: z.ZodNumber;
5132
- allowed: z.ZodNumber;
5133
- period: z.ZodEnum<["MONTHLY", "DAILY"]>;
5134
- pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5135
- amount: z.ZodNumber;
5136
- currency: z.ZodString;
5137
- }, "strip", z.ZodTypeAny, {
5138
- amount: number;
5139
- currency: string;
5140
- }, {
5141
- amount: number;
5142
- currency: string;
5143
- }>>>;
5144
- }, "strip", z.ZodTypeAny, {
5145
- allowed: number;
5146
- used: number;
5147
- period: "MONTHLY" | "DAILY";
5148
- pricePerExtraUnit?: {
5149
- amount: number;
5150
- currency: string;
5151
- } | null | undefined;
5152
- }, {
5153
- allowed: number;
5154
- used: number;
5155
- period: "MONTHLY" | "DAILY";
5156
- pricePerExtraUnit?: {
5157
- amount: number;
5158
- currency: string;
5159
- } | null | undefined;
5160
- }>;
5161
- aiListingsCount: z.ZodObject<{
5162
- used: z.ZodNumber;
5163
- allowed: z.ZodNumber;
5164
- period: z.ZodEnum<["MONTHLY", "DAILY"]>;
5165
- pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5166
- amount: z.ZodNumber;
5167
- currency: z.ZodString;
5168
- }, "strip", z.ZodTypeAny, {
5169
- amount: number;
5170
- currency: string;
5171
- }, {
5172
- amount: number;
5173
- currency: string;
5174
- }>>>;
5175
- }, "strip", z.ZodTypeAny, {
5176
- allowed: number;
5177
- used: number;
5178
- period: "MONTHLY" | "DAILY";
5179
- pricePerExtraUnit?: {
5180
- amount: number;
5181
- currency: string;
5182
- } | null | undefined;
5183
- }, {
5184
- allowed: number;
5185
- used: number;
5186
- period: "MONTHLY" | "DAILY";
5187
- pricePerExtraUnit?: {
5188
- amount: number;
5189
- currency: string;
5190
- } | null | undefined;
5191
- }>;
5192
- aiMessagesCount: z.ZodObject<{
5193
- used: z.ZodNumber;
5194
- allowed: z.ZodNumber;
5195
- period: z.ZodEnum<["MONTHLY", "DAILY"]>;
5196
- pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5197
- amount: z.ZodNumber;
5198
- currency: z.ZodString;
5199
- }, "strip", z.ZodTypeAny, {
5200
- amount: number;
5201
- currency: string;
5202
- }, {
5203
- amount: number;
5204
- currency: string;
5205
- }>>>;
5206
- }, "strip", z.ZodTypeAny, {
5207
- allowed: number;
5208
- used: number;
5209
- period: "MONTHLY" | "DAILY";
5210
- pricePerExtraUnit?: {
5211
- amount: number;
5212
- currency: string;
5213
- } | null | undefined;
5214
- }, {
5215
- allowed: number;
5216
- used: number;
5217
- period: "MONTHLY" | "DAILY";
5218
- pricePerExtraUnit?: {
5219
- amount: number;
5220
- currency: string;
5801
+ createdAt: Date;
5802
+ userId: number;
5803
+ updatedAt: Date;
5804
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
5805
+ startDate: Date;
5806
+ active: boolean;
5807
+ description?: string | null | undefined;
5808
+ itemId?: number | null | undefined;
5809
+ endDate?: Date | null | undefined;
5810
+ parentFeeId?: number | null | undefined;
5811
+ }[] | null | undefined;
5812
+ description?: string | null | undefined;
5813
+ categoryId?: number | null | undefined;
5814
+ sizeId?: number | null | undefined;
5815
+ colorIds?: number[] | null | undefined;
5816
+ packageSizeId?: number | null | undefined;
5817
+ state?: number | null | undefined;
5818
+ measurementLength?: number | null | undefined;
5819
+ measurementWidth?: number | null | undefined;
5820
+ labels?: {
5821
+ itemId: number;
5822
+ labelId: number;
5823
+ label?: {
5824
+ name: string;
5825
+ id: number;
5826
+ createdAt: Date;
5827
+ isUserLabel: boolean;
5828
+ itemCount?: number | null | undefined;
5829
+ userId?: number | null | undefined;
5830
+ parentId?: unknown;
5221
5831
  } | null | undefined;
5222
- }>;
5223
- aiOffersCount: z.ZodObject<{
5224
- used: z.ZodNumber;
5225
- allowed: z.ZodNumber;
5226
- period: z.ZodEnum<["MONTHLY", "DAILY"]>;
5227
- pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5228
- amount: z.ZodNumber;
5229
- currency: z.ZodString;
5230
- }, "strip", z.ZodTypeAny, {
5231
- amount: number;
5232
- currency: string;
5233
- }, {
5234
- amount: number;
5235
- currency: string;
5236
- }>>>;
5237
- }, "strip", z.ZodTypeAny, {
5238
- allowed: number;
5239
- used: number;
5240
- period: "MONTHLY" | "DAILY";
5241
- pricePerExtraUnit?: {
5242
- amount: number;
5243
- currency: string;
5832
+ }[] | null | undefined;
5833
+ attributes?: {
5834
+ value: string;
5835
+ fieldKey: string;
5836
+ }[] | null | undefined;
5837
+ sex?: string | null | undefined;
5838
+ platforms?: {
5839
+ id: string;
5840
+ createdAt: Date;
5841
+ accountId: string;
5842
+ itemId: number;
5843
+ platformId: string;
5844
+ platformUrl: string;
5845
+ platformPrice: number;
5846
+ updatedAt: Date;
5847
+ publishedAt: Date;
5848
+ status?: unknown;
5849
+ conversationId?: string | null | undefined;
5850
+ viewsCount?: number | null | undefined;
5851
+ favoritesCount?: number | null | undefined;
5852
+ account?: {
5853
+ status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
5854
+ name: string;
5855
+ userId: number;
5856
+ accountId: string;
5857
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
5858
+ locale?: string | null | undefined;
5859
+ night?: {
5860
+ startsAt: Date;
5861
+ endsAt: Date;
5862
+ } | null | undefined;
5863
+ favoritesMaxDelay?: number | null | undefined;
5864
+ ordersMaxDelay?: number | null | undefined;
5865
+ conversationsMaxDelay?: number | null | undefined;
5866
+ profilePictureFileId?: string | null | undefined;
5867
+ profilePicture?: {
5868
+ path: string;
5869
+ id: string;
5870
+ createdAt: Date;
5871
+ userId: number;
5872
+ signedUrl: string;
5873
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5874
+ } | null | undefined;
5244
5875
  } | null | undefined;
5245
- }, {
5246
- allowed: number;
5247
- used: number;
5248
- period: "MONTHLY" | "DAILY";
5249
- pricePerExtraUnit?: {
5250
- amount: number;
5251
- currency: string;
5876
+ }[] | null | undefined;
5877
+ brandId?: number | null | undefined;
5878
+ estimatedPrice?: number | null | undefined;
5879
+ purchaseDate?: Date | null | undefined;
5880
+ sellingDate?: Date | null | undefined;
5881
+ fields?: {
5882
+ value: string;
5883
+ itemId: number;
5884
+ fieldId: number;
5885
+ }[] | null | undefined;
5886
+ sku?: string | null | undefined;
5887
+ files?: {
5888
+ fileId: string;
5889
+ itemId: number;
5890
+ file?: {
5891
+ path: string;
5892
+ id: string;
5893
+ createdAt: Date;
5894
+ userId: number;
5895
+ signedUrl: string;
5896
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
5252
5897
  } | null | undefined;
5253
- }>;
5254
- republishCount: z.ZodObject<{
5255
- used: z.ZodNumber;
5256
- allowed: z.ZodNumber;
5257
- period: z.ZodEnum<["MONTHLY", "DAILY"]>;
5258
- pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5259
- amount: z.ZodNumber;
5260
- currency: z.ZodString;
5261
- }, "strip", z.ZodTypeAny, {
5262
- amount: number;
5263
- currency: string;
5264
- }, {
5265
- amount: number;
5266
- currency: string;
5267
- }>>>;
5898
+ index?: number | null | undefined;
5899
+ }[] | null | undefined;
5900
+ purchasePrice?: number | null | undefined;
5901
+ purchasePlaceId?: number | null | undefined;
5902
+ purchased?: boolean | null | undefined;
5903
+ sellingPrice?: number | null | undefined;
5904
+ sellingPlaceId?: number | null | undefined;
5905
+ feesSum?: number | null | undefined;
5906
+ materialIds?: number[] | null | undefined;
5907
+ enumValues?: {
5908
+ id: string;
5909
+ createdAt: Date;
5910
+ itemId: number;
5911
+ updatedAt: Date;
5912
+ enumKey: string;
5913
+ enumValue: string;
5914
+ }[] | null | undefined;
5915
+ lastHistory?: {
5916
+ id: string;
5917
+ createdAt: Date;
5918
+ itemId: number;
5919
+ type?: unknown;
5920
+ data?: {
5921
+ type: "ACTION_CANCELED";
5922
+ data: {
5923
+ targetItemHistoryId: string;
5924
+ };
5925
+ } | {
5926
+ type: "BUYER_PAID";
5927
+ data: {
5928
+ soldAccountId: string;
5929
+ soldOrderId: string;
5930
+ soldConversationId?: string | null | undefined;
5931
+ };
5932
+ } | {
5933
+ type: "DELETED";
5934
+ data: {
5935
+ sourceConversationId?: string | null | undefined;
5936
+ };
5937
+ } | {
5938
+ type: "DELIVERED";
5939
+ data: {
5940
+ soldAccountId: string;
5941
+ soldOrderId: string;
5942
+ soldConversationId?: string | null | undefined;
5943
+ };
5944
+ } | {
5945
+ type: "EMPTY";
5946
+ } | {
5947
+ type: "FAILED_TO_PUBLISH";
5948
+ data: {
5949
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
5950
+ accountId?: string | null | undefined;
5951
+ reason?: string | null | undefined;
5952
+ fields?: {
5953
+ autoFixable: boolean;
5954
+ field?: unknown;
5955
+ error?: string | null | undefined;
5956
+ }[] | null | undefined;
5957
+ itemHistoryId?: string | null | undefined;
5958
+ };
5959
+ } | {
5960
+ type: "IMAGE_PROCESSING_DONE";
5961
+ data: {
5962
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
5963
+ variations?: {
5964
+ fileId: string;
5965
+ seed: number;
5966
+ phash: string;
5967
+ distanceOriginal: number;
5968
+ originalImageUrl: string;
5969
+ originalPhash: string;
5970
+ whash?: string | null | undefined;
5971
+ originalWhash?: string | null | undefined;
5972
+ }[] | null | undefined;
5973
+ originalPhashes?: string[] | null | undefined;
5974
+ historyId?: string | null | undefined;
5975
+ };
5976
+ } | {
5977
+ type: "IMPORTED";
5978
+ data: {
5979
+ post: {
5980
+ platformId: string;
5981
+ post: {
5982
+ status?: string | null | undefined;
5983
+ title?: string | null | undefined;
5984
+ description?: string | null | undefined;
5985
+ brand?: string | null | undefined;
5986
+ statusId?: number | null | undefined;
5987
+ sizeId?: number | null | undefined;
5988
+ colorIds?: number[] | null | undefined;
5989
+ packageSizeId?: number | null | undefined;
5990
+ price?: number | null | undefined;
5991
+ currency?: string | null | undefined;
5992
+ catalog?: string | null | undefined;
5993
+ catalogId?: number | null | undefined;
5994
+ colors?: string[] | null | undefined;
5995
+ measurementLength?: number | null | undefined;
5996
+ measurementWidth?: number | null | undefined;
5997
+ photoUrls?: string[] | null | undefined;
5998
+ size?: string | null | undefined;
5999
+ isDraft?: boolean | null | undefined;
6000
+ isArchived?: boolean | null | undefined;
6001
+ isUnisex?: boolean | null | undefined;
6002
+ availableQuantity?: number | null | undefined;
6003
+ material?: number[] | null | undefined;
6004
+ manufacturerLabelling?: string | null | undefined;
6005
+ labels?: string[] | null | undefined;
6006
+ platformCategoryId?: string | null | undefined;
6007
+ platformBrandId?: string | null | undefined;
6008
+ platformSizeId?: string | null | undefined;
6009
+ platformColorIds?: string[] | null | undefined;
6010
+ platformCondition?: string | null | undefined;
6011
+ platformEnumValues?: {
6012
+ enumType: string;
6013
+ platformValueId: string;
6014
+ displayName?: string | null | undefined;
6015
+ }[] | null | undefined;
6016
+ attributes?: {
6017
+ value: string;
6018
+ fieldKey: string;
6019
+ }[] | null | undefined;
6020
+ isHidden?: boolean | null | undefined;
6021
+ isDeleted?: boolean | null | undefined;
6022
+ };
6023
+ createdAt?: Date | null | undefined;
6024
+ platformUrl?: string | null | undefined;
6025
+ viewsCount?: number | null | undefined;
6026
+ favoritesCount?: number | null | undefined;
6027
+ };
6028
+ };
6029
+ } | {
6030
+ type: "LIFECYCLE_COMPLETED";
6031
+ data: {
6032
+ accountId: string;
6033
+ };
6034
+ } | {
6035
+ type: "LIFECYCLE_STARTED";
6036
+ data: {
6037
+ caseId: string;
6038
+ accountId: string;
6039
+ };
6040
+ } | {
6041
+ type: "PUBLISHED";
6042
+ data: {
6043
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
6044
+ accountId?: string | null | undefined;
6045
+ itemHistoryId?: string | null | undefined;
6046
+ };
6047
+ } | {
6048
+ type: "REPUBLISHING";
6049
+ data: {
6050
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
6051
+ payload?: {
6052
+ priceDropPayload?: {
6053
+ value: number;
6054
+ type: "PERCENTAGE" | "ABSOLUTE";
6055
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
6056
+ roundStep?: number | null | undefined;
6057
+ negotiationProfile?: unknown;
6058
+ maxRounds?: number | null | undefined;
6059
+ } | null | undefined;
6060
+ priceVariationPayload?: {
6061
+ amount: number;
6062
+ } | null | undefined;
6063
+ rewriteForRepublish?: boolean | null | undefined;
6064
+ imageVariationSettings?: {
6065
+ cropPercentage?: number | null | undefined;
6066
+ rotationDegrees?: number | null | undefined;
6067
+ translationPixels?: number | null | undefined;
6068
+ enableToneVariations?: boolean | null | undefined;
6069
+ enableNoiseVariations?: boolean | null | undefined;
6070
+ enableGradientVariation?: boolean | null | undefined;
6071
+ framePercentage?: number | null | undefined;
6072
+ elasticWarpEnabled?: boolean | null | undefined;
6073
+ } | null | undefined;
6074
+ } | null | undefined;
6075
+ publishingDate?: Date | null | undefined;
6076
+ isTransfer?: boolean | null | undefined;
6077
+ targetAccountId?: string | null | undefined;
6078
+ allowIfDeleted?: boolean | null | undefined;
6079
+ };
6080
+ } | {
6081
+ type: "REPUBLISHING_RETRY";
6082
+ data: {
6083
+ maxAttempts: number;
6084
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
6085
+ attemptNumber: number;
6086
+ previousHistoryId: string;
6087
+ originalFailureDate: Date;
6088
+ payload?: {
6089
+ priceDropPayload?: {
6090
+ value: number;
6091
+ type: "PERCENTAGE" | "ABSOLUTE";
6092
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
6093
+ roundStep?: number | null | undefined;
6094
+ negotiationProfile?: unknown;
6095
+ maxRounds?: number | null | undefined;
6096
+ } | null | undefined;
6097
+ priceVariationPayload?: {
6098
+ amount: number;
6099
+ } | null | undefined;
6100
+ rewriteForRepublish?: boolean | null | undefined;
6101
+ imageVariationSettings?: {
6102
+ cropPercentage?: number | null | undefined;
6103
+ rotationDegrees?: number | null | undefined;
6104
+ translationPixels?: number | null | undefined;
6105
+ enableToneVariations?: boolean | null | undefined;
6106
+ enableNoiseVariations?: boolean | null | undefined;
6107
+ enableGradientVariation?: boolean | null | undefined;
6108
+ framePercentage?: number | null | undefined;
6109
+ elasticWarpEnabled?: boolean | null | undefined;
6110
+ } | null | undefined;
6111
+ } | null | undefined;
6112
+ fields?: {
6113
+ autoFixable: boolean;
6114
+ field?: unknown;
6115
+ error?: string | null | undefined;
6116
+ }[] | null | undefined;
6117
+ };
6118
+ } | {
6119
+ type: "SCHEDULED";
6120
+ data: {
6121
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
6122
+ publishingDate?: Date | null | undefined;
6123
+ };
6124
+ } | {
6125
+ type: "SCHEDULED_RETRY";
6126
+ data: {
6127
+ maxAttempts: number;
6128
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
6129
+ attemptNumber: number;
6130
+ previousHistoryId: string;
6131
+ originalFailureDate: Date;
6132
+ fields?: {
6133
+ autoFixable: boolean;
6134
+ field?: unknown;
6135
+ error?: string | null | undefined;
6136
+ }[] | null | undefined;
6137
+ };
6138
+ } | {
6139
+ type: "UPDATED";
6140
+ data: {
6141
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
6142
+ };
6143
+ } | {
6144
+ type: "UPDATING";
6145
+ data: {
6146
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
6147
+ payload?: {
6148
+ priceDropPayload?: {
6149
+ value: number;
6150
+ type: "PERCENTAGE" | "ABSOLUTE";
6151
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
6152
+ roundStep?: number | null | undefined;
6153
+ negotiationProfile?: unknown;
6154
+ maxRounds?: number | null | undefined;
6155
+ } | null | undefined;
6156
+ } | null | undefined;
6157
+ targetDate?: Date | null | undefined;
6158
+ };
6159
+ } | null | undefined;
6160
+ accountId?: string | null | undefined;
6161
+ targetDate?: Date | null | undefined;
6162
+ requestId?: string | null | undefined;
6163
+ targetHistoryId?: string | null | undefined;
6164
+ } | null | undefined;
6165
+ sourceInConversation?: unknown;
6166
+ order?: {
6167
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
6168
+ labels?: {
6169
+ id: string;
6170
+ fileId: string;
6171
+ orderId: string;
6172
+ nonCroppedFileId: string;
6173
+ originalFileId: string;
6174
+ originalFile?: {
6175
+ path: string;
6176
+ id: string;
6177
+ createdAt: Date;
6178
+ userId: number;
6179
+ signedUrl: string;
6180
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
6181
+ } | null | undefined;
6182
+ carrier?: unknown;
6183
+ file?: {
6184
+ path: string;
6185
+ id: string;
6186
+ createdAt: Date;
6187
+ userId: number;
6188
+ signedUrl: string;
6189
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
6190
+ } | null | undefined;
6191
+ nonCroppedFile?: {
6192
+ path: string;
6193
+ id: string;
6194
+ createdAt: Date;
6195
+ userId: number;
6196
+ signedUrl: string;
6197
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
6198
+ } | null | undefined;
6199
+ }[] | null | undefined;
6200
+ invoices?: {
6201
+ type: "SALE" | "PURCHASE";
6202
+ status: string;
6203
+ id: string;
6204
+ createdAt: Date;
6205
+ userId: number;
6206
+ currency: string;
6207
+ orderId: string;
6208
+ updatedAt: Date;
6209
+ total: number;
6210
+ invoiceNumber: string;
6211
+ businessProfileId: string;
6212
+ issueDate: Date;
6213
+ subtotal: number;
6214
+ fileId?: string | null | undefined;
6215
+ file?: {
6216
+ path: string;
6217
+ id: string;
6218
+ createdAt: Date;
6219
+ userId: number;
6220
+ signedUrl: string;
6221
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
6222
+ } | null | undefined;
6223
+ vatRate?: number | null | undefined;
6224
+ businessProfile?: {
6225
+ id: string;
6226
+ createdAt: Date;
6227
+ userId: number;
6228
+ updatedAt: Date;
6229
+ businessName: string;
6230
+ address: string;
6231
+ isActive: boolean;
6232
+ email?: string | null | undefined;
6233
+ phone?: string | null | undefined;
6234
+ siret?: string | null | undefined;
6235
+ vatNumber?: string | null | undefined;
6236
+ logoFileId?: string | null | undefined;
6237
+ logo?: {
6238
+ path: string;
6239
+ id: string;
6240
+ createdAt: Date;
6241
+ userId: number;
6242
+ signedUrl: string;
6243
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
6244
+ } | null | undefined;
6245
+ } | null | undefined;
6246
+ customerId?: string | null | undefined;
6247
+ customer?: {
6248
+ id: string;
6249
+ userId: number;
6250
+ firstName: string;
6251
+ lastName: string;
6252
+ birthDate: Date;
6253
+ email: string;
6254
+ idNumber: string;
6255
+ phone: string;
6256
+ iban: string;
6257
+ bic: string;
6258
+ phoneVerified: boolean;
6259
+ addressLine1?: string | null | undefined;
6260
+ addressLine2?: string | null | undefined;
6261
+ city?: string | null | undefined;
6262
+ postalCode?: string | null | undefined;
6263
+ country?: string | null | undefined;
6264
+ } | null | undefined;
6265
+ dueDate?: Date | null | undefined;
6266
+ vatAmount?: number | null | undefined;
6267
+ notes?: string | null | undefined;
6268
+ lineItems?: {
6269
+ description: string;
6270
+ id: number;
6271
+ createdAt: Date;
6272
+ invoiceId: string;
6273
+ quantity: number;
6274
+ unitPrice: number;
6275
+ total: number;
6276
+ itemOnPlatformId?: string | null | undefined;
6277
+ vatRate?: number | null | undefined;
6278
+ }[] | null | undefined;
6279
+ }[] | null | undefined;
6280
+ } | null | undefined;
6281
+ };
6282
+ deleted?: boolean | null | undefined;
6283
+ }>;
6284
+ export type UserWsPayloadItemUpdated = z.infer<typeof UserWsPayloadItemUpdatedSchema>;
6285
+ export declare const UserWsPayloadLimitsSchema: z.ZodObject<{
6286
+ data: z.ZodObject<{
6287
+ activeLevels: z.ZodArray<z.ZodObject<{
6288
+ id: z.ZodNumber;
6289
+ name: z.ZodString;
6290
+ multiplier: z.ZodNumber;
6291
+ discordRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6292
+ }, "strip", z.ZodTypeAny, {
6293
+ name: string;
6294
+ id: number;
6295
+ multiplier: number;
6296
+ discordRoleId?: string | null | undefined;
6297
+ }, {
6298
+ name: string;
6299
+ id: number;
6300
+ multiplier: number;
6301
+ discordRoleId?: string | null | undefined;
6302
+ }>, "many">;
6303
+ platformsCount: z.ZodObject<{
6304
+ used: z.ZodNumber;
6305
+ allowed: z.ZodNumber;
6306
+ period: z.ZodEnum<["MONTHLY", "DAILY"]>;
6307
+ pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6308
+ amount: z.ZodNumber;
6309
+ currency: z.ZodString;
6310
+ }, "strip", z.ZodTypeAny, {
6311
+ amount: number;
6312
+ currency: string;
6313
+ }, {
6314
+ amount: number;
6315
+ currency: string;
6316
+ }>>>;
6317
+ }, "strip", z.ZodTypeAny, {
6318
+ allowed: number;
6319
+ used: number;
6320
+ period: "MONTHLY" | "DAILY";
6321
+ pricePerExtraUnit?: {
6322
+ amount: number;
6323
+ currency: string;
6324
+ } | null | undefined;
6325
+ }, {
6326
+ allowed: number;
6327
+ used: number;
6328
+ period: "MONTHLY" | "DAILY";
6329
+ pricePerExtraUnit?: {
6330
+ amount: number;
6331
+ currency: string;
6332
+ } | null | undefined;
6333
+ }>;
6334
+ accountsCount: z.ZodObject<{
6335
+ used: z.ZodNumber;
6336
+ allowed: z.ZodNumber;
6337
+ period: z.ZodEnum<["MONTHLY", "DAILY"]>;
6338
+ pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6339
+ amount: z.ZodNumber;
6340
+ currency: z.ZodString;
6341
+ }, "strip", z.ZodTypeAny, {
6342
+ amount: number;
6343
+ currency: string;
6344
+ }, {
6345
+ amount: number;
6346
+ currency: string;
6347
+ }>>>;
6348
+ }, "strip", z.ZodTypeAny, {
6349
+ allowed: number;
6350
+ used: number;
6351
+ period: "MONTHLY" | "DAILY";
6352
+ pricePerExtraUnit?: {
6353
+ amount: number;
6354
+ currency: string;
6355
+ } | null | undefined;
6356
+ }, {
6357
+ allowed: number;
6358
+ used: number;
6359
+ period: "MONTHLY" | "DAILY";
6360
+ pricePerExtraUnit?: {
6361
+ amount: number;
6362
+ currency: string;
6363
+ } | null | undefined;
6364
+ }>;
6365
+ aiListingsCount: z.ZodObject<{
6366
+ used: z.ZodNumber;
6367
+ allowed: z.ZodNumber;
6368
+ period: z.ZodEnum<["MONTHLY", "DAILY"]>;
6369
+ pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6370
+ amount: z.ZodNumber;
6371
+ currency: z.ZodString;
6372
+ }, "strip", z.ZodTypeAny, {
6373
+ amount: number;
6374
+ currency: string;
6375
+ }, {
6376
+ amount: number;
6377
+ currency: string;
6378
+ }>>>;
6379
+ }, "strip", z.ZodTypeAny, {
6380
+ allowed: number;
6381
+ used: number;
6382
+ period: "MONTHLY" | "DAILY";
6383
+ pricePerExtraUnit?: {
6384
+ amount: number;
6385
+ currency: string;
6386
+ } | null | undefined;
6387
+ }, {
6388
+ allowed: number;
6389
+ used: number;
6390
+ period: "MONTHLY" | "DAILY";
6391
+ pricePerExtraUnit?: {
6392
+ amount: number;
6393
+ currency: string;
6394
+ } | null | undefined;
6395
+ }>;
6396
+ aiMessagesCount: z.ZodObject<{
6397
+ used: z.ZodNumber;
6398
+ allowed: z.ZodNumber;
6399
+ period: z.ZodEnum<["MONTHLY", "DAILY"]>;
6400
+ pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6401
+ amount: z.ZodNumber;
6402
+ currency: z.ZodString;
6403
+ }, "strip", z.ZodTypeAny, {
6404
+ amount: number;
6405
+ currency: string;
6406
+ }, {
6407
+ amount: number;
6408
+ currency: string;
6409
+ }>>>;
6410
+ }, "strip", z.ZodTypeAny, {
6411
+ allowed: number;
6412
+ used: number;
6413
+ period: "MONTHLY" | "DAILY";
6414
+ pricePerExtraUnit?: {
6415
+ amount: number;
6416
+ currency: string;
6417
+ } | null | undefined;
6418
+ }, {
6419
+ allowed: number;
6420
+ used: number;
6421
+ period: "MONTHLY" | "DAILY";
6422
+ pricePerExtraUnit?: {
6423
+ amount: number;
6424
+ currency: string;
6425
+ } | null | undefined;
6426
+ }>;
6427
+ aiOffersCount: z.ZodObject<{
6428
+ used: z.ZodNumber;
6429
+ allowed: z.ZodNumber;
6430
+ period: z.ZodEnum<["MONTHLY", "DAILY"]>;
6431
+ pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6432
+ amount: z.ZodNumber;
6433
+ currency: z.ZodString;
6434
+ }, "strip", z.ZodTypeAny, {
6435
+ amount: number;
6436
+ currency: string;
6437
+ }, {
6438
+ amount: number;
6439
+ currency: string;
6440
+ }>>>;
6441
+ }, "strip", z.ZodTypeAny, {
6442
+ allowed: number;
6443
+ used: number;
6444
+ period: "MONTHLY" | "DAILY";
6445
+ pricePerExtraUnit?: {
6446
+ amount: number;
6447
+ currency: string;
6448
+ } | null | undefined;
6449
+ }, {
6450
+ allowed: number;
6451
+ used: number;
6452
+ period: "MONTHLY" | "DAILY";
6453
+ pricePerExtraUnit?: {
6454
+ amount: number;
6455
+ currency: string;
6456
+ } | null | undefined;
6457
+ }>;
6458
+ republishCount: z.ZodObject<{
6459
+ used: z.ZodNumber;
6460
+ allowed: z.ZodNumber;
6461
+ period: z.ZodEnum<["MONTHLY", "DAILY"]>;
6462
+ pricePerExtraUnit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6463
+ amount: z.ZodNumber;
6464
+ currency: z.ZodString;
6465
+ }, "strip", z.ZodTypeAny, {
6466
+ amount: number;
6467
+ currency: string;
6468
+ }, {
6469
+ amount: number;
6470
+ currency: string;
6471
+ }>>>;
5268
6472
  }, "strip", z.ZodTypeAny, {
5269
6473
  allowed: number;
5270
6474
  used: number;
@@ -7738,6 +8942,9 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7738
8942
  }>, "many">>>;
7739
8943
  colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
7740
8944
  packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8945
+ materialIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
8946
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8947
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7741
8948
  fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
7742
8949
  itemId: z.ZodNumber;
7743
8950
  fieldId: z.ZodNumber;
@@ -9764,92 +10971,527 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
9764
10971
  elasticWarpEnabled?: boolean | null | undefined;
9765
10972
  } | null | undefined;
9766
10973
  } | null | undefined;
9767
- fields?: {
9768
- autoFixable: boolean;
9769
- field?: unknown;
9770
- error?: string | null | undefined;
9771
- }[] | null | undefined;
9772
- };
9773
- } | {
9774
- type: "SCHEDULED";
9775
- data: {
9776
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9777
- publishingDate?: Date | null | undefined;
9778
- };
9779
- } | {
9780
- type: "SCHEDULED_RETRY";
9781
- data: {
9782
- maxAttempts: number;
9783
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9784
- attemptNumber: number;
9785
- previousHistoryId: string;
9786
- originalFailureDate: Date;
9787
- fields?: {
9788
- autoFixable: boolean;
9789
- field?: unknown;
9790
- error?: string | null | undefined;
9791
- }[] | null | undefined;
9792
- };
9793
- } | {
9794
- type: "UPDATED";
9795
- data: {
9796
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9797
- };
9798
- } | {
9799
- type: "UPDATING";
9800
- data: {
9801
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9802
- payload?: {
9803
- priceDropPayload?: {
9804
- value: number;
9805
- type: "PERCENTAGE" | "ABSOLUTE";
9806
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
9807
- roundStep?: number | null | undefined;
9808
- negotiationProfile?: unknown;
9809
- maxRounds?: number | null | undefined;
9810
- } | null | undefined;
10974
+ fields?: {
10975
+ autoFixable: boolean;
10976
+ field?: unknown;
10977
+ error?: string | null | undefined;
10978
+ }[] | null | undefined;
10979
+ };
10980
+ } | {
10981
+ type: "SCHEDULED";
10982
+ data: {
10983
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
10984
+ publishingDate?: Date | null | undefined;
10985
+ };
10986
+ } | {
10987
+ type: "SCHEDULED_RETRY";
10988
+ data: {
10989
+ maxAttempts: number;
10990
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
10991
+ attemptNumber: number;
10992
+ previousHistoryId: string;
10993
+ originalFailureDate: Date;
10994
+ fields?: {
10995
+ autoFixable: boolean;
10996
+ field?: unknown;
10997
+ error?: string | null | undefined;
10998
+ }[] | null | undefined;
10999
+ };
11000
+ } | {
11001
+ type: "UPDATED";
11002
+ data: {
11003
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
11004
+ };
11005
+ } | {
11006
+ type: "UPDATING";
11007
+ data: {
11008
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
11009
+ payload?: {
11010
+ priceDropPayload?: {
11011
+ value: number;
11012
+ type: "PERCENTAGE" | "ABSOLUTE";
11013
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
11014
+ roundStep?: number | null | undefined;
11015
+ negotiationProfile?: unknown;
11016
+ maxRounds?: number | null | undefined;
11017
+ } | null | undefined;
11018
+ } | null | undefined;
11019
+ targetDate?: Date | null | undefined;
11020
+ };
11021
+ } | null | undefined;
11022
+ accountId?: string | null | undefined;
11023
+ targetDate?: Date | null | undefined;
11024
+ requestId?: string | null | undefined;
11025
+ targetHistoryId?: string | null | undefined;
11026
+ }>>>;
11027
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11028
+ id: z.ZodString;
11029
+ itemId: z.ZodNumber;
11030
+ accountId: z.ZodString;
11031
+ platformId: z.ZodString;
11032
+ platformUrl: z.ZodString;
11033
+ platformPrice: z.ZodNumber;
11034
+ status: z.ZodCatch<z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE", "UNKNOWN"]>>;
11035
+ createdAt: z.ZodDate;
11036
+ publishedAt: z.ZodDate;
11037
+ updatedAt: z.ZodDate;
11038
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11039
+ userId: z.ZodNumber;
11040
+ accountId: z.ZodString;
11041
+ platform: z.ZodEnum<["EBAY", "ETSY", "SHOPIFY", "VINTED", "VESTIAIRE"]>;
11042
+ name: z.ZodString;
11043
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11044
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "LOCKED"]>;
11045
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11046
+ startsAt: z.ZodDate;
11047
+ endsAt: z.ZodDate;
11048
+ }, "strip", z.ZodTypeAny, {
11049
+ startsAt: Date;
11050
+ endsAt: Date;
11051
+ }, {
11052
+ startsAt: Date;
11053
+ endsAt: Date;
11054
+ }>>>;
11055
+ favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11056
+ ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11057
+ conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11058
+ profilePictureFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11059
+ profilePicture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11060
+ id: z.ZodString;
11061
+ userId: z.ZodNumber;
11062
+ path: z.ZodString;
11063
+ signedUrl: z.ZodString;
11064
+ createdAt: z.ZodDate;
11065
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
11066
+ }, "strip", z.ZodTypeAny, {
11067
+ path: string;
11068
+ id: string;
11069
+ createdAt: Date;
11070
+ userId: number;
11071
+ signedUrl: string;
11072
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11073
+ }, {
11074
+ path: string;
11075
+ id: string;
11076
+ createdAt: Date;
11077
+ userId: number;
11078
+ signedUrl: string;
11079
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11080
+ }>>>;
11081
+ }, "strip", z.ZodTypeAny, {
11082
+ status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
11083
+ name: string;
11084
+ userId: number;
11085
+ accountId: string;
11086
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
11087
+ locale?: string | null | undefined;
11088
+ night?: {
11089
+ startsAt: Date;
11090
+ endsAt: Date;
11091
+ } | null | undefined;
11092
+ favoritesMaxDelay?: number | null | undefined;
11093
+ ordersMaxDelay?: number | null | undefined;
11094
+ conversationsMaxDelay?: number | null | undefined;
11095
+ profilePictureFileId?: string | null | undefined;
11096
+ profilePicture?: {
11097
+ path: string;
11098
+ id: string;
11099
+ createdAt: Date;
11100
+ userId: number;
11101
+ signedUrl: string;
11102
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11103
+ } | null | undefined;
11104
+ }, {
11105
+ status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
11106
+ name: string;
11107
+ userId: number;
11108
+ accountId: string;
11109
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
11110
+ locale?: string | null | undefined;
11111
+ night?: {
11112
+ startsAt: Date;
11113
+ endsAt: Date;
11114
+ } | null | undefined;
11115
+ favoritesMaxDelay?: number | null | undefined;
11116
+ ordersMaxDelay?: number | null | undefined;
11117
+ conversationsMaxDelay?: number | null | undefined;
11118
+ profilePictureFileId?: string | null | undefined;
11119
+ profilePicture?: {
11120
+ path: string;
11121
+ id: string;
11122
+ createdAt: Date;
11123
+ userId: number;
11124
+ signedUrl: string;
11125
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11126
+ } | null | undefined;
11127
+ }>>>;
11128
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11129
+ viewsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11130
+ favoritesCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11131
+ }, "strip", z.ZodTypeAny, {
11132
+ status: "ERROR" | "UNKNOWN" | "PENDING" | "DRAFT" | "ARCHIVED" | "DISPUTE" | "DELETED" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
11133
+ id: string;
11134
+ createdAt: Date;
11135
+ accountId: string;
11136
+ itemId: number;
11137
+ platformId: string;
11138
+ platformUrl: string;
11139
+ platformPrice: number;
11140
+ updatedAt: Date;
11141
+ publishedAt: Date;
11142
+ conversationId?: string | null | undefined;
11143
+ viewsCount?: number | null | undefined;
11144
+ favoritesCount?: number | null | undefined;
11145
+ account?: {
11146
+ status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
11147
+ name: string;
11148
+ userId: number;
11149
+ accountId: string;
11150
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
11151
+ locale?: string | null | undefined;
11152
+ night?: {
11153
+ startsAt: Date;
11154
+ endsAt: Date;
11155
+ } | null | undefined;
11156
+ favoritesMaxDelay?: number | null | undefined;
11157
+ ordersMaxDelay?: number | null | undefined;
11158
+ conversationsMaxDelay?: number | null | undefined;
11159
+ profilePictureFileId?: string | null | undefined;
11160
+ profilePicture?: {
11161
+ path: string;
11162
+ id: string;
11163
+ createdAt: Date;
11164
+ userId: number;
11165
+ signedUrl: string;
11166
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11167
+ } | null | undefined;
11168
+ } | null | undefined;
11169
+ }, {
11170
+ id: string;
11171
+ createdAt: Date;
11172
+ accountId: string;
11173
+ itemId: number;
11174
+ platformId: string;
11175
+ platformUrl: string;
11176
+ platformPrice: number;
11177
+ updatedAt: Date;
11178
+ publishedAt: Date;
11179
+ status?: unknown;
11180
+ conversationId?: string | null | undefined;
11181
+ viewsCount?: number | null | undefined;
11182
+ favoritesCount?: number | null | undefined;
11183
+ account?: {
11184
+ status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
11185
+ name: string;
11186
+ userId: number;
11187
+ accountId: string;
11188
+ platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
11189
+ locale?: string | null | undefined;
11190
+ night?: {
11191
+ startsAt: Date;
11192
+ endsAt: Date;
11193
+ } | null | undefined;
11194
+ favoritesMaxDelay?: number | null | undefined;
11195
+ ordersMaxDelay?: number | null | undefined;
11196
+ conversationsMaxDelay?: number | null | undefined;
11197
+ profilePictureFileId?: string | null | undefined;
11198
+ profilePicture?: {
11199
+ path: string;
11200
+ id: string;
11201
+ createdAt: Date;
11202
+ userId: number;
11203
+ signedUrl: string;
11204
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11205
+ } | null | undefined;
11206
+ } | null | undefined;
11207
+ }>, "many">>>;
11208
+ actions: z.ZodObject<{
11209
+ perAccount: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCatch<z.ZodEnum<["PUBLISH", "PUBLISH_CANCEL", "REPUBLISH", "REPUBLISH_CANCEL", "UPDATE", "UPDATE_CANCEL", "UNKNOWN"]>>, "many">>;
11210
+ }, "strip", z.ZodTypeAny, {
11211
+ perAccount: Record<string, ("REPUBLISH" | "UNKNOWN" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE" | "UPDATE_CANCEL")[]>;
11212
+ }, {
11213
+ perAccount: Record<string, unknown[]>;
11214
+ }>;
11215
+ createdAt: z.ZodDate;
11216
+ updatedAt: z.ZodDate;
11217
+ sourceInConversation: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<["ORDER", "TRANSACTION", "DELETED", "UNKNOWN"]>>>>;
11218
+ order: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11219
+ transactionType: z.ZodEnum<["SINGLE_ITEM", "BUNDLE"]>;
11220
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11221
+ id: z.ZodString;
11222
+ orderId: z.ZodString;
11223
+ fileId: z.ZodString;
11224
+ nonCroppedFileId: z.ZodString;
11225
+ originalFileId: z.ZodString;
11226
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11227
+ id: z.ZodString;
11228
+ userId: z.ZodNumber;
11229
+ path: z.ZodString;
11230
+ signedUrl: z.ZodString;
11231
+ createdAt: z.ZodDate;
11232
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
11233
+ }, "strip", z.ZodTypeAny, {
11234
+ path: string;
11235
+ id: string;
11236
+ createdAt: Date;
11237
+ userId: number;
11238
+ signedUrl: string;
11239
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11240
+ }, {
11241
+ path: string;
11242
+ id: string;
11243
+ createdAt: Date;
11244
+ userId: number;
11245
+ signedUrl: string;
11246
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11247
+ }>>>;
11248
+ nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11249
+ id: z.ZodString;
11250
+ userId: z.ZodNumber;
11251
+ path: z.ZodString;
11252
+ signedUrl: z.ZodString;
11253
+ createdAt: z.ZodDate;
11254
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
11255
+ }, "strip", z.ZodTypeAny, {
11256
+ path: string;
11257
+ id: string;
11258
+ createdAt: Date;
11259
+ userId: number;
11260
+ signedUrl: string;
11261
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11262
+ }, {
11263
+ path: string;
11264
+ id: string;
11265
+ createdAt: Date;
11266
+ userId: number;
11267
+ signedUrl: string;
11268
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11269
+ }>>>;
11270
+ originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11271
+ id: z.ZodString;
11272
+ userId: z.ZodNumber;
11273
+ path: z.ZodString;
11274
+ signedUrl: z.ZodString;
11275
+ createdAt: z.ZodDate;
11276
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
11277
+ }, "strip", z.ZodTypeAny, {
11278
+ path: string;
11279
+ id: string;
11280
+ createdAt: Date;
11281
+ userId: number;
11282
+ signedUrl: string;
11283
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11284
+ }, {
11285
+ path: string;
11286
+ id: string;
11287
+ createdAt: Date;
11288
+ userId: number;
11289
+ signedUrl: string;
11290
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11291
+ }>>>;
11292
+ carrier: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<["MONDIAL_RELAY", "MONDIAL_RELAY_2", "MONDIAL_RELAY_3", "MONDIAL_RELAY_4", "MONDIAL_RELAY_5", "UPS", "CHRONOPOST", "COLISSIMO", "RELAIS_COLIS", "VINTED_GO", "VINTED_GO_BE", "VINTED_VERIF", "B_POST", "VINTED_GO_IT", "DPD", "VINTED_GO_DIGITAL", "DHL", "DHL_ECONOMY", "UNKNOWN"]>>>>;
11293
+ }, "strip", z.ZodTypeAny, {
11294
+ id: string;
11295
+ fileId: string;
11296
+ orderId: string;
11297
+ nonCroppedFileId: string;
11298
+ originalFileId: string;
11299
+ originalFile?: {
11300
+ path: string;
11301
+ id: string;
11302
+ createdAt: Date;
11303
+ userId: number;
11304
+ signedUrl: string;
11305
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11306
+ } | null | undefined;
11307
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
11308
+ file?: {
11309
+ path: string;
11310
+ id: string;
11311
+ createdAt: Date;
11312
+ userId: number;
11313
+ signedUrl: string;
11314
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11315
+ } | null | undefined;
11316
+ nonCroppedFile?: {
11317
+ path: string;
11318
+ id: string;
11319
+ createdAt: Date;
11320
+ userId: number;
11321
+ signedUrl: string;
11322
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11323
+ } | null | undefined;
11324
+ }, {
11325
+ id: string;
11326
+ fileId: string;
11327
+ orderId: string;
11328
+ nonCroppedFileId: string;
11329
+ originalFileId: string;
11330
+ originalFile?: {
11331
+ path: string;
11332
+ id: string;
11333
+ createdAt: Date;
11334
+ userId: number;
11335
+ signedUrl: string;
11336
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11337
+ } | null | undefined;
11338
+ carrier?: unknown;
11339
+ file?: {
11340
+ path: string;
11341
+ id: string;
11342
+ createdAt: Date;
11343
+ userId: number;
11344
+ signedUrl: string;
11345
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11346
+ } | null | undefined;
11347
+ nonCroppedFile?: {
11348
+ path: string;
11349
+ id: string;
11350
+ createdAt: Date;
11351
+ userId: number;
11352
+ signedUrl: string;
11353
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11354
+ } | null | undefined;
11355
+ }>, "many">>>;
11356
+ invoices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11357
+ id: z.ZodString;
11358
+ invoiceNumber: z.ZodString;
11359
+ userId: z.ZodNumber;
11360
+ businessProfileId: z.ZodString;
11361
+ businessProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11362
+ id: z.ZodString;
11363
+ userId: z.ZodNumber;
11364
+ businessName: z.ZodString;
11365
+ address: z.ZodString;
11366
+ siret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11367
+ vatNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11368
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11369
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11370
+ logoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11371
+ logo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11372
+ id: z.ZodString;
11373
+ userId: z.ZodNumber;
11374
+ path: z.ZodString;
11375
+ signedUrl: z.ZodString;
11376
+ createdAt: z.ZodDate;
11377
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "CONFIRMED"]>>>;
11378
+ }, "strip", z.ZodTypeAny, {
11379
+ path: string;
11380
+ id: string;
11381
+ createdAt: Date;
11382
+ userId: number;
11383
+ signedUrl: string;
11384
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11385
+ }, {
11386
+ path: string;
11387
+ id: string;
11388
+ createdAt: Date;
11389
+ userId: number;
11390
+ signedUrl: string;
11391
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11392
+ }>>>;
11393
+ isActive: z.ZodBoolean;
11394
+ createdAt: z.ZodDate;
11395
+ updatedAt: z.ZodDate;
11396
+ }, "strip", z.ZodTypeAny, {
11397
+ id: string;
11398
+ createdAt: Date;
11399
+ userId: number;
11400
+ updatedAt: Date;
11401
+ businessName: string;
11402
+ address: string;
11403
+ isActive: boolean;
11404
+ email?: string | null | undefined;
11405
+ phone?: string | null | undefined;
11406
+ siret?: string | null | undefined;
11407
+ vatNumber?: string | null | undefined;
11408
+ logoFileId?: string | null | undefined;
11409
+ logo?: {
11410
+ path: string;
11411
+ id: string;
11412
+ createdAt: Date;
11413
+ userId: number;
11414
+ signedUrl: string;
11415
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11416
+ } | null | undefined;
11417
+ }, {
11418
+ id: string;
11419
+ createdAt: Date;
11420
+ userId: number;
11421
+ updatedAt: Date;
11422
+ businessName: string;
11423
+ address: string;
11424
+ isActive: boolean;
11425
+ email?: string | null | undefined;
11426
+ phone?: string | null | undefined;
11427
+ siret?: string | null | undefined;
11428
+ vatNumber?: string | null | undefined;
11429
+ logoFileId?: string | null | undefined;
11430
+ logo?: {
11431
+ path: string;
11432
+ id: string;
11433
+ createdAt: Date;
11434
+ userId: number;
11435
+ signedUrl: string;
11436
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
9811
11437
  } | null | undefined;
9812
- targetDate?: Date | null | undefined;
9813
- };
9814
- } | null | undefined;
9815
- accountId?: string | null | undefined;
9816
- targetDate?: Date | null | undefined;
9817
- requestId?: string | null | undefined;
9818
- targetHistoryId?: string | null | undefined;
9819
- }>>>;
9820
- platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
9821
- id: z.ZodString;
9822
- itemId: z.ZodNumber;
9823
- accountId: z.ZodString;
9824
- platformId: z.ZodString;
9825
- platformUrl: z.ZodString;
9826
- platformPrice: z.ZodNumber;
9827
- status: z.ZodCatch<z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE", "UNKNOWN"]>>;
9828
- createdAt: z.ZodDate;
9829
- publishedAt: z.ZodDate;
9830
- updatedAt: z.ZodDate;
9831
- account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9832
- userId: z.ZodNumber;
9833
- accountId: z.ZodString;
9834
- platform: z.ZodEnum<["EBAY", "ETSY", "SHOPIFY", "VINTED", "VESTIAIRE"]>;
9835
- name: z.ZodString;
9836
- locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9837
- status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "LOCKED"]>;
9838
- night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9839
- startsAt: z.ZodDate;
9840
- endsAt: z.ZodDate;
11438
+ }>>>;
11439
+ customerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11440
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11441
+ id: z.ZodString;
11442
+ userId: z.ZodNumber;
11443
+ firstName: z.ZodString;
11444
+ lastName: z.ZodString;
11445
+ birthDate: z.ZodDate;
11446
+ email: z.ZodString;
11447
+ idNumber: z.ZodString;
11448
+ phone: z.ZodString;
11449
+ iban: z.ZodString;
11450
+ bic: z.ZodString;
11451
+ phoneVerified: z.ZodBoolean;
11452
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11453
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11454
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11455
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11456
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9841
11457
  }, "strip", z.ZodTypeAny, {
9842
- startsAt: Date;
9843
- endsAt: Date;
11458
+ id: string;
11459
+ userId: number;
11460
+ firstName: string;
11461
+ lastName: string;
11462
+ birthDate: Date;
11463
+ email: string;
11464
+ idNumber: string;
11465
+ phone: string;
11466
+ iban: string;
11467
+ bic: string;
11468
+ phoneVerified: boolean;
11469
+ addressLine1?: string | null | undefined;
11470
+ addressLine2?: string | null | undefined;
11471
+ city?: string | null | undefined;
11472
+ postalCode?: string | null | undefined;
11473
+ country?: string | null | undefined;
9844
11474
  }, {
9845
- startsAt: Date;
9846
- endsAt: Date;
11475
+ id: string;
11476
+ userId: number;
11477
+ firstName: string;
11478
+ lastName: string;
11479
+ birthDate: Date;
11480
+ email: string;
11481
+ idNumber: string;
11482
+ phone: string;
11483
+ iban: string;
11484
+ bic: string;
11485
+ phoneVerified: boolean;
11486
+ addressLine1?: string | null | undefined;
11487
+ addressLine2?: string | null | undefined;
11488
+ city?: string | null | undefined;
11489
+ postalCode?: string | null | undefined;
11490
+ country?: string | null | undefined;
9847
11491
  }>>>;
9848
- favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9849
- ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9850
- conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9851
- profilePictureFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9852
- profilePicture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11492
+ orderId: z.ZodString;
11493
+ fileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11494
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9853
11495
  id: z.ZodString;
9854
11496
  userId: z.ZodNumber;
9855
11497
  path: z.ZodString;
@@ -9871,22 +11513,65 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
9871
11513
  signedUrl: string;
9872
11514
  status?: "PENDING" | "CONFIRMED" | null | undefined;
9873
11515
  }>>>;
11516
+ type: z.ZodEnum<["PURCHASE", "SALE"]>;
11517
+ status: z.ZodString;
11518
+ issueDate: z.ZodDate;
11519
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11520
+ subtotal: z.ZodNumber;
11521
+ vatRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11522
+ vatAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11523
+ total: z.ZodNumber;
11524
+ currency: z.ZodString;
11525
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11526
+ lineItems: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11527
+ id: z.ZodNumber;
11528
+ invoiceId: z.ZodString;
11529
+ itemOnPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11530
+ description: z.ZodString;
11531
+ quantity: z.ZodNumber;
11532
+ unitPrice: z.ZodNumber;
11533
+ vatRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11534
+ total: z.ZodNumber;
11535
+ createdAt: z.ZodDate;
11536
+ }, "strip", z.ZodTypeAny, {
11537
+ description: string;
11538
+ id: number;
11539
+ createdAt: Date;
11540
+ invoiceId: string;
11541
+ quantity: number;
11542
+ unitPrice: number;
11543
+ total: number;
11544
+ itemOnPlatformId?: string | null | undefined;
11545
+ vatRate?: number | null | undefined;
11546
+ }, {
11547
+ description: string;
11548
+ id: number;
11549
+ createdAt: Date;
11550
+ invoiceId: string;
11551
+ quantity: number;
11552
+ unitPrice: number;
11553
+ total: number;
11554
+ itemOnPlatformId?: string | null | undefined;
11555
+ vatRate?: number | null | undefined;
11556
+ }>, "many">>>;
11557
+ createdAt: z.ZodDate;
11558
+ updatedAt: z.ZodDate;
9874
11559
  }, "strip", z.ZodTypeAny, {
9875
- status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
9876
- name: string;
11560
+ type: "SALE" | "PURCHASE";
11561
+ status: string;
11562
+ id: string;
11563
+ createdAt: Date;
9877
11564
  userId: number;
9878
- accountId: string;
9879
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9880
- locale?: string | null | undefined;
9881
- night?: {
9882
- startsAt: Date;
9883
- endsAt: Date;
9884
- } | null | undefined;
9885
- favoritesMaxDelay?: number | null | undefined;
9886
- ordersMaxDelay?: number | null | undefined;
9887
- conversationsMaxDelay?: number | null | undefined;
9888
- profilePictureFileId?: string | null | undefined;
9889
- profilePicture?: {
11565
+ currency: string;
11566
+ orderId: string;
11567
+ updatedAt: Date;
11568
+ total: number;
11569
+ invoiceNumber: string;
11570
+ businessProfileId: string;
11571
+ issueDate: Date;
11572
+ subtotal: number;
11573
+ fileId?: string | null | undefined;
11574
+ file?: {
9890
11575
  path: string;
9891
11576
  id: string;
9892
11577
  createdAt: Date;
@@ -9894,22 +11579,78 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
9894
11579
  signedUrl: string;
9895
11580
  status?: "PENDING" | "CONFIRMED" | null | undefined;
9896
11581
  } | null | undefined;
11582
+ vatRate?: number | null | undefined;
11583
+ businessProfile?: {
11584
+ id: string;
11585
+ createdAt: Date;
11586
+ userId: number;
11587
+ updatedAt: Date;
11588
+ businessName: string;
11589
+ address: string;
11590
+ isActive: boolean;
11591
+ email?: string | null | undefined;
11592
+ phone?: string | null | undefined;
11593
+ siret?: string | null | undefined;
11594
+ vatNumber?: string | null | undefined;
11595
+ logoFileId?: string | null | undefined;
11596
+ logo?: {
11597
+ path: string;
11598
+ id: string;
11599
+ createdAt: Date;
11600
+ userId: number;
11601
+ signedUrl: string;
11602
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11603
+ } | null | undefined;
11604
+ } | null | undefined;
11605
+ customerId?: string | null | undefined;
11606
+ customer?: {
11607
+ id: string;
11608
+ userId: number;
11609
+ firstName: string;
11610
+ lastName: string;
11611
+ birthDate: Date;
11612
+ email: string;
11613
+ idNumber: string;
11614
+ phone: string;
11615
+ iban: string;
11616
+ bic: string;
11617
+ phoneVerified: boolean;
11618
+ addressLine1?: string | null | undefined;
11619
+ addressLine2?: string | null | undefined;
11620
+ city?: string | null | undefined;
11621
+ postalCode?: string | null | undefined;
11622
+ country?: string | null | undefined;
11623
+ } | null | undefined;
11624
+ dueDate?: Date | null | undefined;
11625
+ vatAmount?: number | null | undefined;
11626
+ notes?: string | null | undefined;
11627
+ lineItems?: {
11628
+ description: string;
11629
+ id: number;
11630
+ createdAt: Date;
11631
+ invoiceId: string;
11632
+ quantity: number;
11633
+ unitPrice: number;
11634
+ total: number;
11635
+ itemOnPlatformId?: string | null | undefined;
11636
+ vatRate?: number | null | undefined;
11637
+ }[] | null | undefined;
9897
11638
  }, {
9898
- status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
9899
- name: string;
11639
+ type: "SALE" | "PURCHASE";
11640
+ status: string;
11641
+ id: string;
11642
+ createdAt: Date;
9900
11643
  userId: number;
9901
- accountId: string;
9902
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9903
- locale?: string | null | undefined;
9904
- night?: {
9905
- startsAt: Date;
9906
- endsAt: Date;
9907
- } | null | undefined;
9908
- favoritesMaxDelay?: number | null | undefined;
9909
- ordersMaxDelay?: number | null | undefined;
9910
- conversationsMaxDelay?: number | null | undefined;
9911
- profilePictureFileId?: string | null | undefined;
9912
- profilePicture?: {
11644
+ currency: string;
11645
+ orderId: string;
11646
+ updatedAt: Date;
11647
+ total: number;
11648
+ invoiceNumber: string;
11649
+ businessProfileId: string;
11650
+ issueDate: Date;
11651
+ subtotal: number;
11652
+ fileId?: string | null | undefined;
11653
+ file?: {
9913
11654
  path: string;
9914
11655
  id: string;
9915
11656
  createdAt: Date;
@@ -9917,40 +11658,203 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
9917
11658
  signedUrl: string;
9918
11659
  status?: "PENDING" | "CONFIRMED" | null | undefined;
9919
11660
  } | null | undefined;
9920
- }>>>;
9921
- conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9922
- viewsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9923
- favoritesCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11661
+ vatRate?: number | null | undefined;
11662
+ businessProfile?: {
11663
+ id: string;
11664
+ createdAt: Date;
11665
+ userId: number;
11666
+ updatedAt: Date;
11667
+ businessName: string;
11668
+ address: string;
11669
+ isActive: boolean;
11670
+ email?: string | null | undefined;
11671
+ phone?: string | null | undefined;
11672
+ siret?: string | null | undefined;
11673
+ vatNumber?: string | null | undefined;
11674
+ logoFileId?: string | null | undefined;
11675
+ logo?: {
11676
+ path: string;
11677
+ id: string;
11678
+ createdAt: Date;
11679
+ userId: number;
11680
+ signedUrl: string;
11681
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11682
+ } | null | undefined;
11683
+ } | null | undefined;
11684
+ customerId?: string | null | undefined;
11685
+ customer?: {
11686
+ id: string;
11687
+ userId: number;
11688
+ firstName: string;
11689
+ lastName: string;
11690
+ birthDate: Date;
11691
+ email: string;
11692
+ idNumber: string;
11693
+ phone: string;
11694
+ iban: string;
11695
+ bic: string;
11696
+ phoneVerified: boolean;
11697
+ addressLine1?: string | null | undefined;
11698
+ addressLine2?: string | null | undefined;
11699
+ city?: string | null | undefined;
11700
+ postalCode?: string | null | undefined;
11701
+ country?: string | null | undefined;
11702
+ } | null | undefined;
11703
+ dueDate?: Date | null | undefined;
11704
+ vatAmount?: number | null | undefined;
11705
+ notes?: string | null | undefined;
11706
+ lineItems?: {
11707
+ description: string;
11708
+ id: number;
11709
+ createdAt: Date;
11710
+ invoiceId: string;
11711
+ quantity: number;
11712
+ unitPrice: number;
11713
+ total: number;
11714
+ itemOnPlatformId?: string | null | undefined;
11715
+ vatRate?: number | null | undefined;
11716
+ }[] | null | undefined;
11717
+ }>, "many">>>;
9924
11718
  }, "strip", z.ZodTypeAny, {
9925
- status: "ERROR" | "UNKNOWN" | "PENDING" | "DRAFT" | "ARCHIVED" | "DISPUTE" | "DELETED" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
9926
- id: string;
9927
- createdAt: Date;
9928
- accountId: string;
9929
- itemId: number;
9930
- platformId: string;
9931
- platformUrl: string;
9932
- platformPrice: number;
9933
- updatedAt: Date;
9934
- publishedAt: Date;
9935
- conversationId?: string | null | undefined;
9936
- viewsCount?: number | null | undefined;
9937
- favoritesCount?: number | null | undefined;
9938
- account?: {
9939
- status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
9940
- name: string;
11719
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
11720
+ labels?: {
11721
+ id: string;
11722
+ fileId: string;
11723
+ orderId: string;
11724
+ nonCroppedFileId: string;
11725
+ originalFileId: string;
11726
+ originalFile?: {
11727
+ path: string;
11728
+ id: string;
11729
+ createdAt: Date;
11730
+ userId: number;
11731
+ signedUrl: string;
11732
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11733
+ } | null | undefined;
11734
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
11735
+ file?: {
11736
+ path: string;
11737
+ id: string;
11738
+ createdAt: Date;
11739
+ userId: number;
11740
+ signedUrl: string;
11741
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11742
+ } | null | undefined;
11743
+ nonCroppedFile?: {
11744
+ path: string;
11745
+ id: string;
11746
+ createdAt: Date;
11747
+ userId: number;
11748
+ signedUrl: string;
11749
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11750
+ } | null | undefined;
11751
+ }[] | null | undefined;
11752
+ invoices?: {
11753
+ type: "SALE" | "PURCHASE";
11754
+ status: string;
11755
+ id: string;
11756
+ createdAt: Date;
9941
11757
  userId: number;
9942
- accountId: string;
9943
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9944
- locale?: string | null | undefined;
9945
- night?: {
9946
- startsAt: Date;
9947
- endsAt: Date;
11758
+ currency: string;
11759
+ orderId: string;
11760
+ updatedAt: Date;
11761
+ total: number;
11762
+ invoiceNumber: string;
11763
+ businessProfileId: string;
11764
+ issueDate: Date;
11765
+ subtotal: number;
11766
+ fileId?: string | null | undefined;
11767
+ file?: {
11768
+ path: string;
11769
+ id: string;
11770
+ createdAt: Date;
11771
+ userId: number;
11772
+ signedUrl: string;
11773
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11774
+ } | null | undefined;
11775
+ vatRate?: number | null | undefined;
11776
+ businessProfile?: {
11777
+ id: string;
11778
+ createdAt: Date;
11779
+ userId: number;
11780
+ updatedAt: Date;
11781
+ businessName: string;
11782
+ address: string;
11783
+ isActive: boolean;
11784
+ email?: string | null | undefined;
11785
+ phone?: string | null | undefined;
11786
+ siret?: string | null | undefined;
11787
+ vatNumber?: string | null | undefined;
11788
+ logoFileId?: string | null | undefined;
11789
+ logo?: {
11790
+ path: string;
11791
+ id: string;
11792
+ createdAt: Date;
11793
+ userId: number;
11794
+ signedUrl: string;
11795
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11796
+ } | null | undefined;
11797
+ } | null | undefined;
11798
+ customerId?: string | null | undefined;
11799
+ customer?: {
11800
+ id: string;
11801
+ userId: number;
11802
+ firstName: string;
11803
+ lastName: string;
11804
+ birthDate: Date;
11805
+ email: string;
11806
+ idNumber: string;
11807
+ phone: string;
11808
+ iban: string;
11809
+ bic: string;
11810
+ phoneVerified: boolean;
11811
+ addressLine1?: string | null | undefined;
11812
+ addressLine2?: string | null | undefined;
11813
+ city?: string | null | undefined;
11814
+ postalCode?: string | null | undefined;
11815
+ country?: string | null | undefined;
11816
+ } | null | undefined;
11817
+ dueDate?: Date | null | undefined;
11818
+ vatAmount?: number | null | undefined;
11819
+ notes?: string | null | undefined;
11820
+ lineItems?: {
11821
+ description: string;
11822
+ id: number;
11823
+ createdAt: Date;
11824
+ invoiceId: string;
11825
+ quantity: number;
11826
+ unitPrice: number;
11827
+ total: number;
11828
+ itemOnPlatformId?: string | null | undefined;
11829
+ vatRate?: number | null | undefined;
11830
+ }[] | null | undefined;
11831
+ }[] | null | undefined;
11832
+ }, {
11833
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
11834
+ labels?: {
11835
+ id: string;
11836
+ fileId: string;
11837
+ orderId: string;
11838
+ nonCroppedFileId: string;
11839
+ originalFileId: string;
11840
+ originalFile?: {
11841
+ path: string;
11842
+ id: string;
11843
+ createdAt: Date;
11844
+ userId: number;
11845
+ signedUrl: string;
11846
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11847
+ } | null | undefined;
11848
+ carrier?: unknown;
11849
+ file?: {
11850
+ path: string;
11851
+ id: string;
11852
+ createdAt: Date;
11853
+ userId: number;
11854
+ signedUrl: string;
11855
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
9948
11856
  } | null | undefined;
9949
- favoritesMaxDelay?: number | null | undefined;
9950
- ordersMaxDelay?: number | null | undefined;
9951
- conversationsMaxDelay?: number | null | undefined;
9952
- profilePictureFileId?: string | null | undefined;
9953
- profilePicture?: {
11857
+ nonCroppedFile?: {
9954
11858
  path: string;
9955
11859
  id: string;
9956
11860
  createdAt: Date;
@@ -9958,37 +11862,23 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
9958
11862
  signedUrl: string;
9959
11863
  status?: "PENDING" | "CONFIRMED" | null | undefined;
9960
11864
  } | null | undefined;
9961
- } | null | undefined;
9962
- }, {
9963
- id: string;
9964
- createdAt: Date;
9965
- accountId: string;
9966
- itemId: number;
9967
- platformId: string;
9968
- platformUrl: string;
9969
- platformPrice: number;
9970
- updatedAt: Date;
9971
- publishedAt: Date;
9972
- status?: unknown;
9973
- conversationId?: string | null | undefined;
9974
- viewsCount?: number | null | undefined;
9975
- favoritesCount?: number | null | undefined;
9976
- account?: {
9977
- status: "CONNECTED" | "DISCONNECTED" | "LOCKED";
9978
- name: string;
11865
+ }[] | null | undefined;
11866
+ invoices?: {
11867
+ type: "SALE" | "PURCHASE";
11868
+ status: string;
11869
+ id: string;
11870
+ createdAt: Date;
9979
11871
  userId: number;
9980
- accountId: string;
9981
- platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
9982
- locale?: string | null | undefined;
9983
- night?: {
9984
- startsAt: Date;
9985
- endsAt: Date;
9986
- } | null | undefined;
9987
- favoritesMaxDelay?: number | null | undefined;
9988
- ordersMaxDelay?: number | null | undefined;
9989
- conversationsMaxDelay?: number | null | undefined;
9990
- profilePictureFileId?: string | null | undefined;
9991
- profilePicture?: {
11872
+ currency: string;
11873
+ orderId: string;
11874
+ updatedAt: Date;
11875
+ total: number;
11876
+ invoiceNumber: string;
11877
+ businessProfileId: string;
11878
+ issueDate: Date;
11879
+ subtotal: number;
11880
+ fileId?: string | null | undefined;
11881
+ file?: {
9992
11882
  path: string;
9993
11883
  id: string;
9994
11884
  createdAt: Date;
@@ -9996,18 +11886,64 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
9996
11886
  signedUrl: string;
9997
11887
  status?: "PENDING" | "CONFIRMED" | null | undefined;
9998
11888
  } | null | undefined;
9999
- } | null | undefined;
10000
- }>, "many">>>;
10001
- actions: z.ZodObject<{
10002
- perAccount: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCatch<z.ZodEnum<["PUBLISH", "PUBLISH_CANCEL", "REPUBLISH", "REPUBLISH_CANCEL", "UPDATE", "UPDATE_CANCEL", "UNKNOWN"]>>, "many">>;
10003
- }, "strip", z.ZodTypeAny, {
10004
- perAccount: Record<string, ("REPUBLISH" | "UNKNOWN" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE" | "UPDATE_CANCEL")[]>;
10005
- }, {
10006
- perAccount: Record<string, unknown[]>;
10007
- }>;
10008
- createdAt: z.ZodDate;
10009
- updatedAt: z.ZodDate;
10010
- sourceInConversation: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<["ORDER", "TRANSACTION", "DELETED", "UNKNOWN"]>>>>;
11889
+ vatRate?: number | null | undefined;
11890
+ businessProfile?: {
11891
+ id: string;
11892
+ createdAt: Date;
11893
+ userId: number;
11894
+ updatedAt: Date;
11895
+ businessName: string;
11896
+ address: string;
11897
+ isActive: boolean;
11898
+ email?: string | null | undefined;
11899
+ phone?: string | null | undefined;
11900
+ siret?: string | null | undefined;
11901
+ vatNumber?: string | null | undefined;
11902
+ logoFileId?: string | null | undefined;
11903
+ logo?: {
11904
+ path: string;
11905
+ id: string;
11906
+ createdAt: Date;
11907
+ userId: number;
11908
+ signedUrl: string;
11909
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
11910
+ } | null | undefined;
11911
+ } | null | undefined;
11912
+ customerId?: string | null | undefined;
11913
+ customer?: {
11914
+ id: string;
11915
+ userId: number;
11916
+ firstName: string;
11917
+ lastName: string;
11918
+ birthDate: Date;
11919
+ email: string;
11920
+ idNumber: string;
11921
+ phone: string;
11922
+ iban: string;
11923
+ bic: string;
11924
+ phoneVerified: boolean;
11925
+ addressLine1?: string | null | undefined;
11926
+ addressLine2?: string | null | undefined;
11927
+ city?: string | null | undefined;
11928
+ postalCode?: string | null | undefined;
11929
+ country?: string | null | undefined;
11930
+ } | null | undefined;
11931
+ dueDate?: Date | null | undefined;
11932
+ vatAmount?: number | null | undefined;
11933
+ notes?: string | null | undefined;
11934
+ lineItems?: {
11935
+ description: string;
11936
+ id: number;
11937
+ createdAt: Date;
11938
+ invoiceId: string;
11939
+ quantity: number;
11940
+ unitPrice: number;
11941
+ total: number;
11942
+ itemOnPlatformId?: string | null | undefined;
11943
+ vatRate?: number | null | undefined;
11944
+ }[] | null | undefined;
11945
+ }[] | null | undefined;
11946
+ }>>>;
10011
11947
  }, "strip", z.ZodTypeAny, {
10012
11948
  actions: {
10013
11949
  perAccount: Record<string, ("REPUBLISH" | "UNKNOWN" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE" | "UPDATE_CANCEL")[]>;
@@ -10040,6 +11976,8 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10040
11976
  colorIds?: number[] | null | undefined;
10041
11977
  packageSizeId?: number | null | undefined;
10042
11978
  state?: number | null | undefined;
11979
+ measurementLength?: number | null | undefined;
11980
+ measurementWidth?: number | null | undefined;
10043
11981
  labels?: {
10044
11982
  itemId: number;
10045
11983
  labelId: number;
@@ -10126,6 +12064,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10126
12064
  sellingPrice?: number | null | undefined;
10127
12065
  sellingPlaceId?: number | null | undefined;
10128
12066
  feesSum?: number | null | undefined;
12067
+ materialIds?: number[] | null | undefined;
10129
12068
  enumValues?: {
10130
12069
  id: string;
10131
12070
  createdAt: Date;
@@ -10385,6 +12324,121 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10385
12324
  targetHistoryId?: string | null | undefined;
10386
12325
  } | null | undefined;
10387
12326
  sourceInConversation?: "UNKNOWN" | "DELETED" | "ORDER" | "TRANSACTION" | null | undefined;
12327
+ order?: {
12328
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
12329
+ labels?: {
12330
+ id: string;
12331
+ fileId: string;
12332
+ orderId: string;
12333
+ nonCroppedFileId: string;
12334
+ originalFileId: string;
12335
+ originalFile?: {
12336
+ path: string;
12337
+ id: string;
12338
+ createdAt: Date;
12339
+ userId: number;
12340
+ signedUrl: string;
12341
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12342
+ } | null | undefined;
12343
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
12344
+ file?: {
12345
+ path: string;
12346
+ id: string;
12347
+ createdAt: Date;
12348
+ userId: number;
12349
+ signedUrl: string;
12350
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12351
+ } | null | undefined;
12352
+ nonCroppedFile?: {
12353
+ path: string;
12354
+ id: string;
12355
+ createdAt: Date;
12356
+ userId: number;
12357
+ signedUrl: string;
12358
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12359
+ } | null | undefined;
12360
+ }[] | null | undefined;
12361
+ invoices?: {
12362
+ type: "SALE" | "PURCHASE";
12363
+ status: string;
12364
+ id: string;
12365
+ createdAt: Date;
12366
+ userId: number;
12367
+ currency: string;
12368
+ orderId: string;
12369
+ updatedAt: Date;
12370
+ total: number;
12371
+ invoiceNumber: string;
12372
+ businessProfileId: string;
12373
+ issueDate: Date;
12374
+ subtotal: number;
12375
+ fileId?: string | null | undefined;
12376
+ file?: {
12377
+ path: string;
12378
+ id: string;
12379
+ createdAt: Date;
12380
+ userId: number;
12381
+ signedUrl: string;
12382
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12383
+ } | null | undefined;
12384
+ vatRate?: number | null | undefined;
12385
+ businessProfile?: {
12386
+ id: string;
12387
+ createdAt: Date;
12388
+ userId: number;
12389
+ updatedAt: Date;
12390
+ businessName: string;
12391
+ address: string;
12392
+ isActive: boolean;
12393
+ email?: string | null | undefined;
12394
+ phone?: string | null | undefined;
12395
+ siret?: string | null | undefined;
12396
+ vatNumber?: string | null | undefined;
12397
+ logoFileId?: string | null | undefined;
12398
+ logo?: {
12399
+ path: string;
12400
+ id: string;
12401
+ createdAt: Date;
12402
+ userId: number;
12403
+ signedUrl: string;
12404
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12405
+ } | null | undefined;
12406
+ } | null | undefined;
12407
+ customerId?: string | null | undefined;
12408
+ customer?: {
12409
+ id: string;
12410
+ userId: number;
12411
+ firstName: string;
12412
+ lastName: string;
12413
+ birthDate: Date;
12414
+ email: string;
12415
+ idNumber: string;
12416
+ phone: string;
12417
+ iban: string;
12418
+ bic: string;
12419
+ phoneVerified: boolean;
12420
+ addressLine1?: string | null | undefined;
12421
+ addressLine2?: string | null | undefined;
12422
+ city?: string | null | undefined;
12423
+ postalCode?: string | null | undefined;
12424
+ country?: string | null | undefined;
12425
+ } | null | undefined;
12426
+ dueDate?: Date | null | undefined;
12427
+ vatAmount?: number | null | undefined;
12428
+ notes?: string | null | undefined;
12429
+ lineItems?: {
12430
+ description: string;
12431
+ id: number;
12432
+ createdAt: Date;
12433
+ invoiceId: string;
12434
+ quantity: number;
12435
+ unitPrice: number;
12436
+ total: number;
12437
+ itemOnPlatformId?: string | null | undefined;
12438
+ vatRate?: number | null | undefined;
12439
+ }[] | null | undefined;
12440
+ }[] | null | undefined;
12441
+ } | null | undefined;
10388
12442
  }, {
10389
12443
  actions: {
10390
12444
  perAccount: Record<string, unknown[]>;
@@ -10417,6 +12471,8 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10417
12471
  colorIds?: number[] | null | undefined;
10418
12472
  packageSizeId?: number | null | undefined;
10419
12473
  state?: number | null | undefined;
12474
+ measurementLength?: number | null | undefined;
12475
+ measurementWidth?: number | null | undefined;
10420
12476
  labels?: {
10421
12477
  itemId: number;
10422
12478
  labelId: number;
@@ -10503,6 +12559,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10503
12559
  sellingPrice?: number | null | undefined;
10504
12560
  sellingPlaceId?: number | null | undefined;
10505
12561
  feesSum?: number | null | undefined;
12562
+ materialIds?: number[] | null | undefined;
10506
12563
  enumValues?: {
10507
12564
  id: string;
10508
12565
  createdAt: Date;
@@ -10762,6 +12819,121 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10762
12819
  targetHistoryId?: string | null | undefined;
10763
12820
  } | null | undefined;
10764
12821
  sourceInConversation?: unknown;
12822
+ order?: {
12823
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
12824
+ labels?: {
12825
+ id: string;
12826
+ fileId: string;
12827
+ orderId: string;
12828
+ nonCroppedFileId: string;
12829
+ originalFileId: string;
12830
+ originalFile?: {
12831
+ path: string;
12832
+ id: string;
12833
+ createdAt: Date;
12834
+ userId: number;
12835
+ signedUrl: string;
12836
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12837
+ } | null | undefined;
12838
+ carrier?: unknown;
12839
+ file?: {
12840
+ path: string;
12841
+ id: string;
12842
+ createdAt: Date;
12843
+ userId: number;
12844
+ signedUrl: string;
12845
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12846
+ } | null | undefined;
12847
+ nonCroppedFile?: {
12848
+ path: string;
12849
+ id: string;
12850
+ createdAt: Date;
12851
+ userId: number;
12852
+ signedUrl: string;
12853
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12854
+ } | null | undefined;
12855
+ }[] | null | undefined;
12856
+ invoices?: {
12857
+ type: "SALE" | "PURCHASE";
12858
+ status: string;
12859
+ id: string;
12860
+ createdAt: Date;
12861
+ userId: number;
12862
+ currency: string;
12863
+ orderId: string;
12864
+ updatedAt: Date;
12865
+ total: number;
12866
+ invoiceNumber: string;
12867
+ businessProfileId: string;
12868
+ issueDate: Date;
12869
+ subtotal: number;
12870
+ fileId?: string | null | undefined;
12871
+ file?: {
12872
+ path: string;
12873
+ id: string;
12874
+ createdAt: Date;
12875
+ userId: number;
12876
+ signedUrl: string;
12877
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12878
+ } | null | undefined;
12879
+ vatRate?: number | null | undefined;
12880
+ businessProfile?: {
12881
+ id: string;
12882
+ createdAt: Date;
12883
+ userId: number;
12884
+ updatedAt: Date;
12885
+ businessName: string;
12886
+ address: string;
12887
+ isActive: boolean;
12888
+ email?: string | null | undefined;
12889
+ phone?: string | null | undefined;
12890
+ siret?: string | null | undefined;
12891
+ vatNumber?: string | null | undefined;
12892
+ logoFileId?: string | null | undefined;
12893
+ logo?: {
12894
+ path: string;
12895
+ id: string;
12896
+ createdAt: Date;
12897
+ userId: number;
12898
+ signedUrl: string;
12899
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
12900
+ } | null | undefined;
12901
+ } | null | undefined;
12902
+ customerId?: string | null | undefined;
12903
+ customer?: {
12904
+ id: string;
12905
+ userId: number;
12906
+ firstName: string;
12907
+ lastName: string;
12908
+ birthDate: Date;
12909
+ email: string;
12910
+ idNumber: string;
12911
+ phone: string;
12912
+ iban: string;
12913
+ bic: string;
12914
+ phoneVerified: boolean;
12915
+ addressLine1?: string | null | undefined;
12916
+ addressLine2?: string | null | undefined;
12917
+ city?: string | null | undefined;
12918
+ postalCode?: string | null | undefined;
12919
+ country?: string | null | undefined;
12920
+ } | null | undefined;
12921
+ dueDate?: Date | null | undefined;
12922
+ vatAmount?: number | null | undefined;
12923
+ notes?: string | null | undefined;
12924
+ lineItems?: {
12925
+ description: string;
12926
+ id: number;
12927
+ createdAt: Date;
12928
+ invoiceId: string;
12929
+ quantity: number;
12930
+ unitPrice: number;
12931
+ total: number;
12932
+ itemOnPlatformId?: string | null | undefined;
12933
+ vatRate?: number | null | undefined;
12934
+ }[] | null | undefined;
12935
+ }[] | null | undefined;
12936
+ } | null | undefined;
10765
12937
  }>;
10766
12938
  deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10767
12939
  type: z.ZodLiteral<"ITEM">;
@@ -10799,6 +12971,8 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10799
12971
  colorIds?: number[] | null | undefined;
10800
12972
  packageSizeId?: number | null | undefined;
10801
12973
  state?: number | null | undefined;
12974
+ measurementLength?: number | null | undefined;
12975
+ measurementWidth?: number | null | undefined;
10802
12976
  labels?: {
10803
12977
  itemId: number;
10804
12978
  labelId: number;
@@ -10885,6 +13059,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
10885
13059
  sellingPrice?: number | null | undefined;
10886
13060
  sellingPlaceId?: number | null | undefined;
10887
13061
  feesSum?: number | null | undefined;
13062
+ materialIds?: number[] | null | undefined;
10888
13063
  enumValues?: {
10889
13064
  id: string;
10890
13065
  createdAt: Date;
@@ -11144,6 +13319,121 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
11144
13319
  targetHistoryId?: string | null | undefined;
11145
13320
  } | null | undefined;
11146
13321
  sourceInConversation?: "UNKNOWN" | "DELETED" | "ORDER" | "TRANSACTION" | null | undefined;
13322
+ order?: {
13323
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
13324
+ labels?: {
13325
+ id: string;
13326
+ fileId: string;
13327
+ orderId: string;
13328
+ nonCroppedFileId: string;
13329
+ originalFileId: string;
13330
+ originalFile?: {
13331
+ path: string;
13332
+ id: string;
13333
+ createdAt: Date;
13334
+ userId: number;
13335
+ signedUrl: string;
13336
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13337
+ } | null | undefined;
13338
+ carrier?: "UNKNOWN" | "MONDIAL_RELAY" | "MONDIAL_RELAY_2" | "MONDIAL_RELAY_3" | "MONDIAL_RELAY_4" | "MONDIAL_RELAY_5" | "UPS" | "CHRONOPOST" | "COLISSIMO" | "RELAIS_COLIS" | "VINTED_GO" | "VINTED_GO_BE" | "VINTED_VERIF" | "B_POST" | "VINTED_GO_IT" | "DPD" | "VINTED_GO_DIGITAL" | "DHL" | "DHL_ECONOMY" | null | undefined;
13339
+ file?: {
13340
+ path: string;
13341
+ id: string;
13342
+ createdAt: Date;
13343
+ userId: number;
13344
+ signedUrl: string;
13345
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13346
+ } | null | undefined;
13347
+ nonCroppedFile?: {
13348
+ path: string;
13349
+ id: string;
13350
+ createdAt: Date;
13351
+ userId: number;
13352
+ signedUrl: string;
13353
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13354
+ } | null | undefined;
13355
+ }[] | null | undefined;
13356
+ invoices?: {
13357
+ type: "SALE" | "PURCHASE";
13358
+ status: string;
13359
+ id: string;
13360
+ createdAt: Date;
13361
+ userId: number;
13362
+ currency: string;
13363
+ orderId: string;
13364
+ updatedAt: Date;
13365
+ total: number;
13366
+ invoiceNumber: string;
13367
+ businessProfileId: string;
13368
+ issueDate: Date;
13369
+ subtotal: number;
13370
+ fileId?: string | null | undefined;
13371
+ file?: {
13372
+ path: string;
13373
+ id: string;
13374
+ createdAt: Date;
13375
+ userId: number;
13376
+ signedUrl: string;
13377
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13378
+ } | null | undefined;
13379
+ vatRate?: number | null | undefined;
13380
+ businessProfile?: {
13381
+ id: string;
13382
+ createdAt: Date;
13383
+ userId: number;
13384
+ updatedAt: Date;
13385
+ businessName: string;
13386
+ address: string;
13387
+ isActive: boolean;
13388
+ email?: string | null | undefined;
13389
+ phone?: string | null | undefined;
13390
+ siret?: string | null | undefined;
13391
+ vatNumber?: string | null | undefined;
13392
+ logoFileId?: string | null | undefined;
13393
+ logo?: {
13394
+ path: string;
13395
+ id: string;
13396
+ createdAt: Date;
13397
+ userId: number;
13398
+ signedUrl: string;
13399
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13400
+ } | null | undefined;
13401
+ } | null | undefined;
13402
+ customerId?: string | null | undefined;
13403
+ customer?: {
13404
+ id: string;
13405
+ userId: number;
13406
+ firstName: string;
13407
+ lastName: string;
13408
+ birthDate: Date;
13409
+ email: string;
13410
+ idNumber: string;
13411
+ phone: string;
13412
+ iban: string;
13413
+ bic: string;
13414
+ phoneVerified: boolean;
13415
+ addressLine1?: string | null | undefined;
13416
+ addressLine2?: string | null | undefined;
13417
+ city?: string | null | undefined;
13418
+ postalCode?: string | null | undefined;
13419
+ country?: string | null | undefined;
13420
+ } | null | undefined;
13421
+ dueDate?: Date | null | undefined;
13422
+ vatAmount?: number | null | undefined;
13423
+ notes?: string | null | undefined;
13424
+ lineItems?: {
13425
+ description: string;
13426
+ id: number;
13427
+ createdAt: Date;
13428
+ invoiceId: string;
13429
+ quantity: number;
13430
+ unitPrice: number;
13431
+ total: number;
13432
+ itemOnPlatformId?: string | null | undefined;
13433
+ vatRate?: number | null | undefined;
13434
+ }[] | null | undefined;
13435
+ }[] | null | undefined;
13436
+ } | null | undefined;
11147
13437
  };
11148
13438
  deleted?: boolean | null | undefined;
11149
13439
  }, {
@@ -11180,6 +13470,8 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
11180
13470
  colorIds?: number[] | null | undefined;
11181
13471
  packageSizeId?: number | null | undefined;
11182
13472
  state?: number | null | undefined;
13473
+ measurementLength?: number | null | undefined;
13474
+ measurementWidth?: number | null | undefined;
11183
13475
  labels?: {
11184
13476
  itemId: number;
11185
13477
  labelId: number;
@@ -11266,6 +13558,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
11266
13558
  sellingPrice?: number | null | undefined;
11267
13559
  sellingPlaceId?: number | null | undefined;
11268
13560
  feesSum?: number | null | undefined;
13561
+ materialIds?: number[] | null | undefined;
11269
13562
  enumValues?: {
11270
13563
  id: string;
11271
13564
  createdAt: Date;
@@ -11525,6 +13818,121 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
11525
13818
  targetHistoryId?: string | null | undefined;
11526
13819
  } | null | undefined;
11527
13820
  sourceInConversation?: unknown;
13821
+ order?: {
13822
+ transactionType: "SINGLE_ITEM" | "BUNDLE";
13823
+ labels?: {
13824
+ id: string;
13825
+ fileId: string;
13826
+ orderId: string;
13827
+ nonCroppedFileId: string;
13828
+ originalFileId: string;
13829
+ originalFile?: {
13830
+ path: string;
13831
+ id: string;
13832
+ createdAt: Date;
13833
+ userId: number;
13834
+ signedUrl: string;
13835
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13836
+ } | null | undefined;
13837
+ carrier?: unknown;
13838
+ file?: {
13839
+ path: string;
13840
+ id: string;
13841
+ createdAt: Date;
13842
+ userId: number;
13843
+ signedUrl: string;
13844
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13845
+ } | null | undefined;
13846
+ nonCroppedFile?: {
13847
+ path: string;
13848
+ id: string;
13849
+ createdAt: Date;
13850
+ userId: number;
13851
+ signedUrl: string;
13852
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13853
+ } | null | undefined;
13854
+ }[] | null | undefined;
13855
+ invoices?: {
13856
+ type: "SALE" | "PURCHASE";
13857
+ status: string;
13858
+ id: string;
13859
+ createdAt: Date;
13860
+ userId: number;
13861
+ currency: string;
13862
+ orderId: string;
13863
+ updatedAt: Date;
13864
+ total: number;
13865
+ invoiceNumber: string;
13866
+ businessProfileId: string;
13867
+ issueDate: Date;
13868
+ subtotal: number;
13869
+ fileId?: string | null | undefined;
13870
+ file?: {
13871
+ path: string;
13872
+ id: string;
13873
+ createdAt: Date;
13874
+ userId: number;
13875
+ signedUrl: string;
13876
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13877
+ } | null | undefined;
13878
+ vatRate?: number | null | undefined;
13879
+ businessProfile?: {
13880
+ id: string;
13881
+ createdAt: Date;
13882
+ userId: number;
13883
+ updatedAt: Date;
13884
+ businessName: string;
13885
+ address: string;
13886
+ isActive: boolean;
13887
+ email?: string | null | undefined;
13888
+ phone?: string | null | undefined;
13889
+ siret?: string | null | undefined;
13890
+ vatNumber?: string | null | undefined;
13891
+ logoFileId?: string | null | undefined;
13892
+ logo?: {
13893
+ path: string;
13894
+ id: string;
13895
+ createdAt: Date;
13896
+ userId: number;
13897
+ signedUrl: string;
13898
+ status?: "PENDING" | "CONFIRMED" | null | undefined;
13899
+ } | null | undefined;
13900
+ } | null | undefined;
13901
+ customerId?: string | null | undefined;
13902
+ customer?: {
13903
+ id: string;
13904
+ userId: number;
13905
+ firstName: string;
13906
+ lastName: string;
13907
+ birthDate: Date;
13908
+ email: string;
13909
+ idNumber: string;
13910
+ phone: string;
13911
+ iban: string;
13912
+ bic: string;
13913
+ phoneVerified: boolean;
13914
+ addressLine1?: string | null | undefined;
13915
+ addressLine2?: string | null | undefined;
13916
+ city?: string | null | undefined;
13917
+ postalCode?: string | null | undefined;
13918
+ country?: string | null | undefined;
13919
+ } | null | undefined;
13920
+ dueDate?: Date | null | undefined;
13921
+ vatAmount?: number | null | undefined;
13922
+ notes?: string | null | undefined;
13923
+ lineItems?: {
13924
+ description: string;
13925
+ id: number;
13926
+ createdAt: Date;
13927
+ invoiceId: string;
13928
+ quantity: number;
13929
+ unitPrice: number;
13930
+ total: number;
13931
+ itemOnPlatformId?: string | null | undefined;
13932
+ vatRate?: number | null | undefined;
13933
+ }[] | null | undefined;
13934
+ }[] | null | undefined;
13935
+ } | null | undefined;
11528
13936
  };
11529
13937
  deleted?: boolean | null | undefined;
11530
13938
  }>, z.ZodObject<{