controlresell 2.1.14 → 2.2.1

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 (100) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/filters/SavedFilters.d.ts +133 -0
  3. package/src/com/controlresell/models/filters/SavedFilters.js +13 -0
  4. package/src/com/controlresell/models/filters/SavedFilters.ts +12 -0
  5. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +127 -0
  6. package/src/com/controlresell/models/filters/SavedFiltersPayload.js +10 -0
  7. package/src/com/controlresell/models/filters/SavedFiltersPayload.ts +9 -0
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +70 -70
  9. package/src/com/controlresell/models/items/Item.d.ts +36 -36
  10. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  12. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +70 -70
  13. package/src/com/controlresell/models/items/UpdatedItem.d.ts +70 -70
  14. package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +2 -2
  15. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +2 -2
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +4 -4
  17. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -3
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +1 -1
  19. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +1 -1
  20. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +5 -5
  21. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +2 -2
  22. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts +12 -0
  23. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js +9 -0
  24. package/src/com/controlresell/models/platforms/PlatformFiltersContext.ts +8 -0
  25. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +6 -6
  26. package/src/com/controlresell/models/platforms/orders/Order.d.ts +6 -6
  27. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +4 -4
  28. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +78 -78
  29. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +3 -0
  30. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +2 -1
  31. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +2 -1
  32. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +3 -0
  33. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +2 -1
  34. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +2 -1
  35. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +3 -0
  36. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +2 -1
  37. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +2 -1
  38. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +6 -6
  39. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +4 -4
  40. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +78 -78
  41. package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +18 -0
  42. package/src/com/controlresell/models/preferences/CreatePreferencePayload.js +11 -0
  43. package/src/com/controlresell/models/preferences/CreatePreferencePayload.ts +10 -0
  44. package/src/com/controlresell/models/preferences/Preference.d.ts +52 -0
  45. package/src/com/controlresell/models/preferences/Preference.js +16 -0
  46. package/src/com/controlresell/models/preferences/Preference.ts +15 -0
  47. package/src/com/controlresell/models/preferences/PreferenceType.d.ts +3 -0
  48. package/src/com/controlresell/models/preferences/PreferenceType.js +7 -0
  49. package/src/com/controlresell/models/preferences/PreferenceType.ts +6 -0
  50. package/src/com/controlresell/models/preferences/UpdatePreferencePayload.d.ts +12 -0
  51. package/src/com/controlresell/models/preferences/UpdatePreferencePayload.js +8 -0
  52. package/src/com/controlresell/models/preferences/UpdatePreferencePayload.ts +7 -0
  53. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +18 -0
  54. package/src/com/controlresell/models/preferences/cases/PreferenceCase.js +10 -0
  55. package/src/com/controlresell/models/preferences/cases/PreferenceCase.ts +9 -0
  56. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.d.ts +12 -0
  57. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.js +8 -0
  58. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.ts +7 -0
  59. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +12 -0
  60. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +9 -0
  61. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +8 -0
  62. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.d.ts +3 -0
  63. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.js +7 -0
  64. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.ts +6 -0
  65. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.d.ts +27 -0
  66. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.js +9 -0
  67. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.ts +8 -0
  68. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +45 -0
  69. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.js +8 -0
  70. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.ts +7 -0
  71. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayload.d.ts +24 -0
  72. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayload.js +8 -0
  73. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayload.ts +7 -0
  74. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayloadFee.d.ts +12 -0
  75. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayloadFee.js +8 -0
  76. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayloadFee.ts +7 -0
  77. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.d.ts +3 -0
  78. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.js +7 -0
  79. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.ts +6 -0
  80. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.d.ts +21 -0
  81. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.js +14 -0
  82. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.ts +13 -0
  83. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadRoundType.d.ts +3 -0
  84. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadRoundType.js +7 -0
  85. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadRoundType.ts +6 -0
  86. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType.d.ts +3 -0
  87. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType.js +7 -0
  88. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType.ts +6 -0
  89. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload.d.ts +9 -0
  90. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload.js +7 -0
  91. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload.ts +6 -0
  92. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.d.ts +45 -0
  93. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.js +19 -0
  94. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.ts +18 -0
  95. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  96. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  97. package/src/com/controlresell/models/users/preferences/UserPreference.d.ts +2 -2
  98. package/src/index.d.ts +21 -0
  99. package/src/index.js +46 -3
  100. package/src/index.ts +21 -0
@@ -264,7 +264,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
264
264
  accountId: string;
265
265
  }>>>;
266
266
  }, "strip", z.ZodTypeAny, {
267
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
267
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
268
268
  id: string;
269
269
  itemId: string | number;
270
270
  accountId: string;
@@ -279,7 +279,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
279
279
  accountId: string;
280
280
  } | null | undefined;
281
281
  }, {
282
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
282
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
283
283
  id: string;
284
284
  itemId: string | number;
285
285
  accountId: string;
@@ -305,6 +305,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
305
305
  sold: boolean;
306
306
  description?: string | null | undefined;
307
307
  customerId?: string | number | null | undefined;
308
+ sex?: string | null | undefined;
308
309
  state?: number | null | undefined;
309
310
  colorIds?: number[] | null | undefined;
310
311
  packageSizeId?: number | null | undefined;
@@ -321,6 +322,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
321
322
  userId?: string | number | null | undefined;
322
323
  } | null | undefined;
323
324
  }[] | null | undefined;
325
+ platforms?: {
326
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
327
+ id: string;
328
+ itemId: string | number;
329
+ accountId: string;
330
+ platformId: string;
331
+ platformUrl: string;
332
+ platformPrice: number;
333
+ account?: {
334
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
335
+ userId: string | number;
336
+ name: string;
337
+ platform: "VINTED" | "SHOPIFY";
338
+ accountId: string;
339
+ } | null | undefined;
340
+ }[] | null | undefined;
324
341
  files?: {
325
342
  fileId: string;
326
343
  itemId: string | number;
@@ -335,7 +352,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
335
352
  }[] | null | undefined;
336
353
  categoryId?: number | null | undefined;
337
354
  brandId?: string | number | null | undefined;
338
- sex?: string | null | undefined;
339
355
  purchasePrice?: number | null | undefined;
340
356
  purchaseDate?: Date | null | undefined;
341
357
  purchasePlaceId?: string | number | null | undefined;
@@ -390,22 +406,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
390
406
  itemId: string | number;
391
407
  data?: string | null | undefined;
392
408
  } | null | undefined;
393
- platforms?: {
394
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
395
- id: string;
396
- itemId: string | number;
397
- accountId: string;
398
- platformId: string;
399
- platformUrl: string;
400
- platformPrice: number;
401
- account?: {
402
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
403
- userId: string | number;
404
- name: string;
405
- platform: "VINTED" | "SHOPIFY";
406
- accountId: string;
407
- } | null | undefined;
408
- }[] | null | undefined;
409
409
  }, {
410
410
  id: string | number;
411
411
  userId: string | number;
@@ -415,6 +415,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
415
415
  sold: boolean;
416
416
  description?: string | null | undefined;
417
417
  customerId?: string | number | null | undefined;
418
+ sex?: string | null | undefined;
418
419
  state?: number | null | undefined;
419
420
  colorIds?: number[] | null | undefined;
420
421
  packageSizeId?: number | null | undefined;
@@ -431,6 +432,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
431
432
  userId?: string | number | null | undefined;
432
433
  } | null | undefined;
433
434
  }[] | null | undefined;
435
+ platforms?: {
436
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
437
+ id: string;
438
+ itemId: string | number;
439
+ accountId: string;
440
+ platformId: string;
441
+ platformUrl: string;
442
+ platformPrice: number;
443
+ account?: {
444
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
445
+ userId: string | number;
446
+ name: string;
447
+ platform: "VINTED" | "SHOPIFY";
448
+ accountId: string;
449
+ } | null | undefined;
450
+ }[] | null | undefined;
434
451
  files?: {
435
452
  fileId: string;
436
453
  itemId: string | number;
@@ -445,7 +462,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
445
462
  }[] | null | undefined;
446
463
  categoryId?: number | null | undefined;
447
464
  brandId?: string | number | null | undefined;
448
- sex?: string | null | undefined;
449
465
  purchasePrice?: number | null | undefined;
450
466
  purchaseDate?: Date | null | undefined;
451
467
  purchasePlaceId?: string | number | null | undefined;
@@ -500,22 +516,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
500
516
  itemId: string | number;
501
517
  data?: string | null | undefined;
502
518
  } | null | undefined;
503
- platforms?: {
504
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
505
- id: string;
506
- itemId: string | number;
507
- accountId: string;
508
- platformId: string;
509
- platformUrl: string;
510
- platformPrice: number;
511
- account?: {
512
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
513
- userId: string | number;
514
- name: string;
515
- platform: "VINTED" | "SHOPIFY";
516
- accountId: string;
517
- } | null | undefined;
518
- }[] | null | undefined;
519
519
  }>;
520
520
  newUserLabels: z.ZodArray<z.ZodObject<{
521
521
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -557,6 +557,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
557
557
  sold: boolean;
558
558
  description?: string | null | undefined;
559
559
  customerId?: string | number | null | undefined;
560
+ sex?: string | null | undefined;
560
561
  state?: number | null | undefined;
561
562
  colorIds?: number[] | null | undefined;
562
563
  packageSizeId?: number | null | undefined;
@@ -573,6 +574,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
573
574
  userId?: string | number | null | undefined;
574
575
  } | null | undefined;
575
576
  }[] | null | undefined;
577
+ platforms?: {
578
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
579
+ id: string;
580
+ itemId: string | number;
581
+ accountId: string;
582
+ platformId: string;
583
+ platformUrl: string;
584
+ platformPrice: number;
585
+ account?: {
586
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
587
+ userId: string | number;
588
+ name: string;
589
+ platform: "VINTED" | "SHOPIFY";
590
+ accountId: string;
591
+ } | null | undefined;
592
+ }[] | null | undefined;
576
593
  files?: {
577
594
  fileId: string;
578
595
  itemId: string | number;
@@ -587,7 +604,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
587
604
  }[] | null | undefined;
588
605
  categoryId?: number | null | undefined;
589
606
  brandId?: string | number | null | undefined;
590
- sex?: string | null | undefined;
591
607
  purchasePrice?: number | null | undefined;
592
608
  purchaseDate?: Date | null | undefined;
593
609
  purchasePlaceId?: string | number | null | undefined;
@@ -642,22 +658,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
642
658
  itemId: string | number;
643
659
  data?: string | null | undefined;
644
660
  } | null | undefined;
645
- platforms?: {
646
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
647
- id: string;
648
- itemId: string | number;
649
- accountId: string;
650
- platformId: string;
651
- platformUrl: string;
652
- platformPrice: number;
653
- account?: {
654
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
655
- userId: string | number;
656
- name: string;
657
- platform: "VINTED" | "SHOPIFY";
658
- accountId: string;
659
- } | null | undefined;
660
- }[] | null | undefined;
661
661
  };
662
662
  }, {
663
663
  newUserLabels: {
@@ -677,6 +677,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
677
677
  sold: boolean;
678
678
  description?: string | null | undefined;
679
679
  customerId?: string | number | null | undefined;
680
+ sex?: string | null | undefined;
680
681
  state?: number | null | undefined;
681
682
  colorIds?: number[] | null | undefined;
682
683
  packageSizeId?: number | null | undefined;
@@ -693,6 +694,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
693
694
  userId?: string | number | null | undefined;
694
695
  } | null | undefined;
695
696
  }[] | null | undefined;
697
+ platforms?: {
698
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
699
+ id: string;
700
+ itemId: string | number;
701
+ accountId: string;
702
+ platformId: string;
703
+ platformUrl: string;
704
+ platformPrice: number;
705
+ account?: {
706
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
707
+ userId: string | number;
708
+ name: string;
709
+ platform: "VINTED" | "SHOPIFY";
710
+ accountId: string;
711
+ } | null | undefined;
712
+ }[] | null | undefined;
696
713
  files?: {
697
714
  fileId: string;
698
715
  itemId: string | number;
@@ -707,7 +724,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
707
724
  }[] | null | undefined;
708
725
  categoryId?: number | null | undefined;
709
726
  brandId?: string | number | null | undefined;
710
- sex?: string | null | undefined;
711
727
  purchasePrice?: number | null | undefined;
712
728
  purchaseDate?: Date | null | undefined;
713
729
  purchasePlaceId?: string | number | null | undefined;
@@ -762,22 +778,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
762
778
  itemId: string | number;
763
779
  data?: string | null | undefined;
764
780
  } | null | undefined;
765
- platforms?: {
766
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
767
- id: string;
768
- itemId: string | number;
769
- accountId: string;
770
- platformId: string;
771
- platformUrl: string;
772
- platformPrice: number;
773
- account?: {
774
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
775
- userId: string | number;
776
- name: string;
777
- platform: "VINTED" | "SHOPIFY";
778
- accountId: string;
779
- } | null | undefined;
780
- }[] | null | undefined;
781
781
  };
782
782
  }>;
783
783
  export type UpdatedItem = z.infer<typeof UpdatedItemSchema>;
@@ -6,13 +6,13 @@ export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
6
6
  platformPrice: z.ZodNumber;
7
7
  status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
9
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
10
10
  accountId: string;
11
11
  platformId: string;
12
12
  platformUrl: string;
13
13
  platformPrice: number;
14
14
  }, {
15
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
15
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
16
16
  accountId: string;
17
17
  platformId: string;
18
18
  platformUrl: string;
@@ -27,7 +27,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
27
27
  accountId: string;
28
28
  }>>>;
29
29
  }, "strip", z.ZodTypeAny, {
30
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
30
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
31
31
  id: string;
32
32
  itemId: string | number;
33
33
  accountId: string;
@@ -42,7 +42,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
42
42
  accountId: string;
43
43
  } | null | undefined;
44
44
  }, {
45
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
45
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
46
46
  id: string;
47
47
  itemId: string | number;
48
48
  accountId: string;
@@ -80,8 +80,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
80
80
  };
81
81
  data?: string | null | undefined;
82
82
  createdAt?: Date | null | undefined;
83
- platformUrl?: string | null | undefined;
84
83
  sold?: boolean | null | undefined;
84
+ platformUrl?: string | null | undefined;
85
85
  }, {
86
86
  platformId: string;
87
87
  post: {
@@ -104,8 +104,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
104
104
  };
105
105
  data?: string | null | undefined;
106
106
  createdAt?: Date | null | undefined;
107
- platformUrl?: string | null | undefined;
108
107
  sold?: boolean | null | undefined;
108
+ platformUrl?: string | null | undefined;
109
109
  }>;
110
110
  account: z.ZodObject<{
111
111
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -156,8 +156,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
156
156
  };
157
157
  data?: string | null | undefined;
158
158
  createdAt?: Date | null | undefined;
159
- platformUrl?: string | null | undefined;
160
159
  sold?: boolean | null | undefined;
160
+ platformUrl?: string | null | undefined;
161
161
  };
162
162
  }, {
163
163
  account: {
@@ -189,8 +189,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
189
189
  };
190
190
  data?: string | null | undefined;
191
191
  createdAt?: Date | null | undefined;
192
- platformUrl?: string | null | undefined;
193
192
  sold?: boolean | null | undefined;
193
+ platformUrl?: string | null | undefined;
194
194
  };
195
195
  }>;
196
196
  export type ItemOnPlatformUpdateRequest = z.infer<typeof ItemOnPlatformUpdateRequestSchema>;
@@ -3,16 +3,16 @@ export declare const ItemOnPlatformsRequestSchema: z.ZodObject<{
3
3
  accountsId: z.ZodArray<z.ZodString, "many">;
4
4
  publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
5
5
  disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6
- overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
6
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  accountsId: string[];
9
9
  publishingDate?: Date | null | undefined;
10
10
  disableGetDraft?: boolean | null | undefined;
11
- overrideFileIds?: string[] | null | undefined;
11
+ locale?: string | null | undefined;
12
12
  }, {
13
13
  accountsId: string[];
14
14
  publishingDate?: Date | null | undefined;
15
15
  disableGetDraft?: boolean | null | undefined;
16
- overrideFileIds?: string[] | null | undefined;
16
+ locale?: string | null | undefined;
17
17
  }>;
18
18
  export type ItemOnPlatformsRequest = z.infer<typeof ItemOnPlatformsRequestSchema>;
@@ -6,5 +6,5 @@ exports.ItemOnPlatformsRequestSchema = zod_1.z.object({
6
6
  accountsId: zod_1.z.array(zod_1.z.string().uuid()),
7
7
  publishingDate: zod_1.z.coerce.date().nullish(),
8
8
  disableGetDraft: zod_1.z.boolean().nullish(),
9
- overrideFileIds: zod_1.z.array(zod_1.z.string().uuid()).nullish()
9
+ locale: zod_1.z.string().nullish()
10
10
  });
@@ -4,6 +4,6 @@ export const ItemOnPlatformsRequestSchema = z.object({
4
4
  accountsId: z.array(z.string().uuid()),
5
5
  publishingDate: z.coerce.date().nullish(),
6
6
  disableGetDraft: z.boolean().nullish(),
7
- overrideFileIds: z.array(z.string().uuid()).nullish()
7
+ locale: z.string().nullish()
8
8
  })
9
9
  export type ItemOnPlatformsRequest = z.infer<typeof ItemOnPlatformsRequestSchema>
@@ -4,17 +4,17 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
4
4
  accountsId: z.ZodArray<z.ZodString, "many">;
5
5
  publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
6
  disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7
- overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
7
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  accountsId: string[];
10
10
  publishingDate?: Date | null | undefined;
11
11
  disableGetDraft?: boolean | null | undefined;
12
- overrideFileIds?: string[] | null | undefined;
12
+ locale?: string | null | undefined;
13
13
  }, {
14
14
  accountsId: string[];
15
15
  publishingDate?: Date | null | undefined;
16
16
  disableGetDraft?: boolean | null | undefined;
17
- overrideFileIds?: string[] | null | undefined;
17
+ locale?: string | null | undefined;
18
18
  }>;
19
19
  itemId: z.ZodNumber;
20
20
  userId: z.ZodNumber;
@@ -25,7 +25,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
25
25
  accountsId: string[];
26
26
  publishingDate?: Date | null | undefined;
27
27
  disableGetDraft?: boolean | null | undefined;
28
- overrideFileIds?: string[] | null | undefined;
28
+ locale?: string | null | undefined;
29
29
  };
30
30
  }, {
31
31
  userId: number;
@@ -34,7 +34,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
34
34
  accountsId: string[];
35
35
  publishingDate?: Date | null | undefined;
36
36
  disableGetDraft?: boolean | null | undefined;
37
- overrideFileIds?: string[] | null | undefined;
37
+ locale?: string | null | undefined;
38
38
  };
39
39
  }>;
40
40
  export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>;
@@ -4,11 +4,11 @@ export declare const UpdateItemOnPlatformPayloadSchema: z.ZodObject<{
4
4
  platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
6
  }, "strip", z.ZodTypeAny, {
7
- status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
7
+ status?: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE" | null | undefined;
8
8
  platformUrl?: string | null | undefined;
9
9
  platformPrice?: number | null | undefined;
10
10
  }, {
11
- status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
11
+ status?: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE" | null | undefined;
12
12
  platformUrl?: string | null | undefined;
13
13
  platformPrice?: number | null | undefined;
14
14
  }>;
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const PlatformFiltersContextSchema: z.ZodObject<{
3
+ accountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
4
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["VINTED", "SHOPIFY"]>, "many">>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ accountIds?: string[] | null | undefined;
7
+ platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
8
+ }, {
9
+ accountIds?: string[] | null | undefined;
10
+ platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
11
+ }>;
12
+ export type PlatformFiltersContext = z.infer<typeof PlatformFiltersContextSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformFiltersContextSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const controlresell_connector_1 = require("controlresell-connector");
6
+ exports.PlatformFiltersContextSchema = zod_1.z.object({
7
+ accountIds: zod_1.z.array(zod_1.z.string().uuid()).nullish(),
8
+ platforms: zod_1.z.array(controlresell_connector_1.AccountPlatformSchema).nullish()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+ import {AccountPlatformSchema} from "controlresell-connector"
3
+
4
+ export const PlatformFiltersContextSchema = z.object({
5
+ accountIds: z.array(z.string().uuid()).nullish(),
6
+ platforms: z.array(AccountPlatformSchema).nullish()
7
+ })
8
+ export type PlatformFiltersContext = z.infer<typeof PlatformFiltersContextSchema>
@@ -235,8 +235,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
235
235
  };
236
236
  data?: string | null | undefined;
237
237
  createdAt?: Date | null | undefined;
238
- platformUrl?: string | null | undefined;
239
238
  sold?: boolean | null | undefined;
239
+ platformUrl?: string | null | undefined;
240
240
  }, {
241
241
  platformId: string;
242
242
  post: {
@@ -259,8 +259,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
259
259
  };
260
260
  data?: string | null | undefined;
261
261
  createdAt?: Date | null | undefined;
262
- platformUrl?: string | null | undefined;
263
262
  sold?: boolean | null | undefined;
263
+ platformUrl?: string | null | undefined;
264
264
  }>, "many">>>;
265
265
  orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
266
266
  id: z.ZodString;
@@ -384,8 +384,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
384
384
  };
385
385
  data?: string | null | undefined;
386
386
  createdAt?: Date | null | undefined;
387
- platformUrl?: string | null | undefined;
388
387
  sold?: boolean | null | undefined;
388
+ platformUrl?: string | null | undefined;
389
389
  }[] | null | undefined;
390
390
  orders?: {
391
391
  status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
@@ -477,8 +477,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
477
477
  };
478
478
  data?: string | null | undefined;
479
479
  createdAt?: Date | null | undefined;
480
- platformUrl?: string | null | undefined;
481
480
  sold?: boolean | null | undefined;
481
+ platformUrl?: string | null | undefined;
482
482
  }[] | null | undefined;
483
483
  orders?: {
484
484
  status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
@@ -598,8 +598,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
598
598
  };
599
599
  data?: string | null | undefined;
600
600
  createdAt?: Date | null | undefined;
601
- platformUrl?: string | null | undefined;
602
601
  sold?: boolean | null | undefined;
602
+ platformUrl?: string | null | undefined;
603
603
  }[] | null | undefined;
604
604
  orders?: {
605
605
  status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
@@ -700,8 +700,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
700
700
  };
701
701
  data?: string | null | undefined;
702
702
  createdAt?: Date | null | undefined;
703
- platformUrl?: string | null | undefined;
704
703
  sold?: boolean | null | undefined;
704
+ platformUrl?: string | null | undefined;
705
705
  }[] | null | undefined;
706
706
  orders?: {
707
707
  status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
@@ -39,7 +39,7 @@ export declare const OrderSchema: z.ZodObject<{
39
39
  accountId: string;
40
40
  }>>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
42
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
43
43
  id: string;
44
44
  itemId: string | number;
45
45
  accountId: string;
@@ -54,7 +54,7 @@ export declare const OrderSchema: z.ZodObject<{
54
54
  accountId: string;
55
55
  } | null | undefined;
56
56
  }, {
57
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
57
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
58
58
  id: string;
59
59
  itemId: string | number;
60
60
  accountId: string;
@@ -73,7 +73,7 @@ export declare const OrderSchema: z.ZodObject<{
73
73
  orderId: string;
74
74
  itemOnPlatformId: string;
75
75
  itemOnPlatform?: {
76
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
76
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
77
77
  id: string;
78
78
  itemId: string | number;
79
79
  accountId: string;
@@ -92,7 +92,7 @@ export declare const OrderSchema: z.ZodObject<{
92
92
  orderId: string;
93
93
  itemOnPlatformId: string;
94
94
  itemOnPlatform?: {
95
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
95
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
96
96
  id: string;
97
97
  itemId: string | number;
98
98
  accountId: string;
@@ -201,7 +201,7 @@ export declare const OrderSchema: z.ZodObject<{
201
201
  orderId: string;
202
202
  itemOnPlatformId: string;
203
203
  itemOnPlatform?: {
204
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
204
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
205
205
  id: string;
206
206
  itemId: string | number;
207
207
  accountId: string;
@@ -250,7 +250,7 @@ export declare const OrderSchema: z.ZodObject<{
250
250
  orderId: string;
251
251
  itemOnPlatformId: string;
252
252
  itemOnPlatform?: {
253
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
253
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
254
254
  id: string;
255
255
  itemId: string | number;
256
256
  accountId: string;
@@ -30,7 +30,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
30
30
  accountId: string;
31
31
  }>>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
33
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
34
34
  id: string;
35
35
  itemId: string | number;
36
36
  accountId: string;
@@ -45,7 +45,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
45
45
  accountId: string;
46
46
  } | null | undefined;
47
47
  }, {
48
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
48
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
49
49
  id: string;
50
50
  itemId: string | number;
51
51
  accountId: string;
@@ -64,7 +64,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
64
64
  orderId: string;
65
65
  itemOnPlatformId: string;
66
66
  itemOnPlatform?: {
67
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
67
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
68
68
  id: string;
69
69
  itemId: string | number;
70
70
  accountId: string;
@@ -83,7 +83,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
83
83
  orderId: string;
84
84
  itemOnPlatformId: string;
85
85
  itemOnPlatform?: {
86
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
86
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
87
87
  id: string;
88
88
  itemId: string | number;
89
89
  accountId: string;