controlresell 2.2.12 → 2.3.2

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 (81) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -6
  3. package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
  4. package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
  5. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
  6. package/src/com/controlresell/models/items/CreatedItems.d.ts +139 -130
  7. package/src/com/controlresell/models/items/Item.d.ts +111 -104
  8. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +139 -130
  9. package/src/com/controlresell/models/items/UpdatedItem.d.ts +139 -130
  10. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
  11. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
  12. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
  13. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
  14. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
  15. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
  17. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
  19. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
  20. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
  21. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
  22. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
  23. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
  24. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
  25. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
  26. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
  27. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
  28. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
  29. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
  30. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
  38. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
  39. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
  40. package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
  41. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
  42. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
  43. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +150 -130
  44. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
  45. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
  46. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +150 -130
  47. package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
  48. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +144 -130
  49. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
  50. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
  51. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
  52. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
  53. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
  54. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
  55. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
  56. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
  57. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
  58. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
  59. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3476 -41
  60. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
  61. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
  62. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
  63. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
  64. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
  65. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
  66. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
  67. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
  68. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +5 -0
  69. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
  70. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
  71. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
  72. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
  73. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
  74. package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
  75. package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
  76. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
  77. package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
  78. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
  79. package/src/index.d.ts +2 -0
  80. package/src/index.js +7 -3
  81. package/src/index.ts +2 -0
@@ -15,6 +15,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
15
15
  accountId: z.ZodString;
16
16
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
17
17
  name: z.ZodString;
18
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
19
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
@@ -22,12 +23,14 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
22
23
  name: string;
23
24
  platform: "VINTED" | "SHOPIFY";
24
25
  accountId: string;
26
+ locale?: string | null | undefined;
25
27
  }, {
26
28
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
27
29
  userId: string | number;
28
30
  name: string;
29
31
  platform: "VINTED" | "SHOPIFY";
30
32
  accountId: string;
33
+ locale?: string | null | undefined;
31
34
  }>>>;
32
35
  }, "strip", z.ZodTypeAny, {
33
36
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -43,6 +46,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
43
46
  name: string;
44
47
  platform: "VINTED" | "SHOPIFY";
45
48
  accountId: string;
49
+ locale?: string | null | undefined;
46
50
  } | null | undefined;
47
51
  }, {
48
52
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -58,6 +62,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
58
62
  name: string;
59
63
  platform: "VINTED" | "SHOPIFY";
60
64
  accountId: string;
65
+ locale?: string | null | undefined;
61
66
  } | null | undefined;
62
67
  }>>>;
63
68
  }, "strip", z.ZodTypeAny, {
@@ -77,6 +82,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
77
82
  name: string;
78
83
  platform: "VINTED" | "SHOPIFY";
79
84
  accountId: string;
85
+ locale?: string | null | undefined;
80
86
  } | null | undefined;
81
87
  } | null | undefined;
82
88
  }, {
@@ -96,6 +102,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
96
102
  name: string;
97
103
  platform: "VINTED" | "SHOPIFY";
98
104
  accountId: string;
105
+ locale?: string | null | undefined;
99
106
  } | null | undefined;
100
107
  } | null | undefined;
101
108
  }>;
@@ -24,6 +24,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
24
24
  accountId: z.ZodString;
25
25
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
26
26
  name: z.ZodString;
27
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
28
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
28
29
  }, "strip", z.ZodTypeAny, {
29
30
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
@@ -31,12 +32,14 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
31
32
  name: string;
32
33
  platform: "VINTED" | "SHOPIFY";
33
34
  accountId: string;
35
+ locale?: string | null | undefined;
34
36
  }, {
35
37
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
36
38
  userId: string | number;
37
39
  name: string;
38
40
  platform: "VINTED" | "SHOPIFY";
39
41
  accountId: string;
42
+ locale?: string | null | undefined;
40
43
  }>>>;
41
44
  }, "strip", z.ZodTypeAny, {
42
45
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -52,6 +55,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
52
55
  name: string;
53
56
  platform: "VINTED" | "SHOPIFY";
54
57
  accountId: string;
58
+ locale?: string | null | undefined;
55
59
  } | null | undefined;
56
60
  }, {
57
61
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -67,6 +71,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
67
71
  name: string;
68
72
  platform: "VINTED" | "SHOPIFY";
69
73
  accountId: string;
74
+ locale?: string | null | undefined;
70
75
  } | null | undefined;
71
76
  }>>>;
72
77
  }, "strip", z.ZodTypeAny, {
@@ -86,6 +91,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
86
91
  name: string;
87
92
  platform: "VINTED" | "SHOPIFY";
88
93
  accountId: string;
94
+ locale?: string | null | undefined;
89
95
  } | null | undefined;
90
96
  } | null | undefined;
91
97
  }, {
@@ -105,6 +111,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
105
111
  name: string;
106
112
  platform: "VINTED" | "SHOPIFY";
107
113
  accountId: string;
114
+ locale?: string | null | undefined;
108
115
  } | null | undefined;
109
116
  } | null | undefined;
110
117
  }>, "many">>>;
@@ -129,6 +136,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
129
136
  name: string;
130
137
  platform: "VINTED" | "SHOPIFY";
131
138
  accountId: string;
139
+ locale?: string | null | undefined;
132
140
  } | null | undefined;
133
141
  } | null | undefined;
134
142
  }[] | null | undefined;
@@ -157,6 +165,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
157
165
  name: string;
158
166
  platform: "VINTED" | "SHOPIFY";
159
167
  accountId: string;
168
+ locale?: string | null | undefined;
160
169
  } | null | undefined;
161
170
  } | null | undefined;
162
171
  }[] | null | undefined;
@@ -387,56 +396,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
387
396
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
388
397
  type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
389
398
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
390
- type: z.ZodLiteral<"EMPTY">;
391
- }, "strip", z.ZodTypeAny, {
392
- type: "EMPTY";
393
- }, {
394
- type: "EMPTY";
395
- }>, z.ZodObject<{
396
- type: z.ZodLiteral<"SCHEDULED">;
397
- data: z.ZodObject<{
398
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
399
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
400
- }, "strip", z.ZodTypeAny, {
401
- platform: "VINTED" | "SHOPIFY";
402
- publishingDate?: Date | null | undefined;
403
- }, {
404
- platform: "VINTED" | "SHOPIFY";
405
- publishingDate?: Date | null | undefined;
406
- }>;
407
- }, "strip", z.ZodTypeAny, {
408
- type: "SCHEDULED";
409
- data: {
410
- platform: "VINTED" | "SHOPIFY";
411
- publishingDate?: Date | null | undefined;
412
- };
413
- }, {
414
- type: "SCHEDULED";
415
- data: {
416
- platform: "VINTED" | "SHOPIFY";
417
- publishingDate?: Date | null | undefined;
418
- };
419
- }>, z.ZodObject<{
420
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
421
- data: z.ZodObject<{
422
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
423
- }, "strip", z.ZodTypeAny, {
424
- platform: "VINTED" | "SHOPIFY";
425
- }, {
426
- platform: "VINTED" | "SHOPIFY";
427
- }>;
428
- }, "strip", z.ZodTypeAny, {
429
- type: "FAILED_TO_PUBLISH";
430
- data: {
431
- platform: "VINTED" | "SHOPIFY";
432
- };
433
- }, {
434
- type: "FAILED_TO_PUBLISH";
435
- data: {
436
- platform: "VINTED" | "SHOPIFY";
437
- };
438
- }>, z.ZodObject<{
439
- type: z.ZodLiteral<"BUYER_PAID">;
440
399
  data: z.ZodObject<{
441
400
  soldAccountId: z.ZodString;
442
401
  soldOrderId: z.ZodString;
@@ -450,6 +409,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
450
409
  soldOrderId: string;
451
410
  soldConversationId?: string | null | undefined;
452
411
  }>;
412
+ type: z.ZodLiteral<"BUYER_PAID">;
453
413
  }, "strip", z.ZodTypeAny, {
454
414
  type: "BUYER_PAID";
455
415
  data: {
@@ -465,7 +425,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
465
425
  soldConversationId?: string | null | undefined;
466
426
  };
467
427
  }>, z.ZodObject<{
468
- type: z.ZodLiteral<"DELIVERED">;
469
428
  data: z.ZodObject<{
470
429
  soldAccountId: z.ZodString;
471
430
  soldOrderId: z.ZodString;
@@ -479,6 +438,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
479
438
  soldOrderId: string;
480
439
  soldConversationId?: string | null | undefined;
481
440
  }>;
441
+ type: z.ZodLiteral<"DELIVERED">;
482
442
  }, "strip", z.ZodTypeAny, {
483
443
  type: "DELIVERED";
484
444
  data: {
@@ -494,7 +454,31 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
494
454
  soldConversationId?: string | null | undefined;
495
455
  };
496
456
  }>, z.ZodObject<{
497
- type: z.ZodLiteral<"REPUBLISHING">;
457
+ type: z.ZodLiteral<"EMPTY">;
458
+ }, "strip", z.ZodTypeAny, {
459
+ type: "EMPTY";
460
+ }, {
461
+ type: "EMPTY";
462
+ }>, z.ZodObject<{
463
+ data: z.ZodObject<{
464
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ platform: "VINTED" | "SHOPIFY";
467
+ }, {
468
+ platform: "VINTED" | "SHOPIFY";
469
+ }>;
470
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
471
+ }, "strip", z.ZodTypeAny, {
472
+ type: "FAILED_TO_PUBLISH";
473
+ data: {
474
+ platform: "VINTED" | "SHOPIFY";
475
+ };
476
+ }, {
477
+ type: "FAILED_TO_PUBLISH";
478
+ data: {
479
+ platform: "VINTED" | "SHOPIFY";
480
+ };
481
+ }>, z.ZodObject<{
498
482
  data: z.ZodObject<{
499
483
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
500
484
  }, "strip", z.ZodTypeAny, {
@@ -502,6 +486,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
502
486
  }, {
503
487
  platform: "VINTED" | "SHOPIFY";
504
488
  }>;
489
+ type: z.ZodLiteral<"REPUBLISHING">;
505
490
  }, "strip", z.ZodTypeAny, {
506
491
  type: "REPUBLISHING";
507
492
  data: {
@@ -512,27 +497,38 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
512
497
  data: {
513
498
  platform: "VINTED" | "SHOPIFY";
514
499
  };
515
- }>]>>>;
516
- createdAt: z.ZodDate;
517
- }, "strip", z.ZodTypeAny, {
518
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
519
- id: string;
520
- createdAt: Date;
521
- itemId: string | number;
522
- data?: {
523
- type: "EMPTY";
524
- } | {
500
+ }>, z.ZodObject<{
501
+ data: z.ZodObject<{
502
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
503
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ platform: "VINTED" | "SHOPIFY";
506
+ publishingDate?: Date | null | undefined;
507
+ }, {
508
+ platform: "VINTED" | "SHOPIFY";
509
+ publishingDate?: Date | null | undefined;
510
+ }>;
511
+ type: z.ZodLiteral<"SCHEDULED">;
512
+ }, "strip", z.ZodTypeAny, {
525
513
  type: "SCHEDULED";
526
514
  data: {
527
515
  platform: "VINTED" | "SHOPIFY";
528
516
  publishingDate?: Date | null | undefined;
529
517
  };
530
- } | {
531
- type: "FAILED_TO_PUBLISH";
518
+ }, {
519
+ type: "SCHEDULED";
532
520
  data: {
533
521
  platform: "VINTED" | "SHOPIFY";
522
+ publishingDate?: Date | null | undefined;
534
523
  };
535
- } | {
524
+ }>]>>>;
525
+ createdAt: z.ZodDate;
526
+ }, "strip", z.ZodTypeAny, {
527
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
528
+ id: string;
529
+ createdAt: Date;
530
+ itemId: string | number;
531
+ data?: {
536
532
  type: "BUYER_PAID";
537
533
  data: {
538
534
  soldAccountId: string;
@@ -547,30 +543,30 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
547
543
  soldConversationId?: string | null | undefined;
548
544
  };
549
545
  } | {
550
- type: "REPUBLISHING";
546
+ type: "EMPTY";
547
+ } | {
548
+ type: "FAILED_TO_PUBLISH";
551
549
  data: {
552
550
  platform: "VINTED" | "SHOPIFY";
553
551
  };
554
- } | null | undefined;
555
- }, {
556
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
557
- id: string;
558
- createdAt: Date;
559
- itemId: string | number;
560
- data?: {
561
- type: "EMPTY";
562
552
  } | {
563
- type: "SCHEDULED";
553
+ type: "REPUBLISHING";
564
554
  data: {
565
555
  platform: "VINTED" | "SHOPIFY";
566
- publishingDate?: Date | null | undefined;
567
556
  };
568
557
  } | {
569
- type: "FAILED_TO_PUBLISH";
558
+ type: "SCHEDULED";
570
559
  data: {
571
560
  platform: "VINTED" | "SHOPIFY";
561
+ publishingDate?: Date | null | undefined;
572
562
  };
573
- } | {
563
+ } | null | undefined;
564
+ }, {
565
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
566
+ id: string;
567
+ createdAt: Date;
568
+ itemId: string | number;
569
+ data?: {
574
570
  type: "BUYER_PAID";
575
571
  data: {
576
572
  soldAccountId: string;
@@ -584,11 +580,24 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
584
580
  soldOrderId: string;
585
581
  soldConversationId?: string | null | undefined;
586
582
  };
583
+ } | {
584
+ type: "EMPTY";
585
+ } | {
586
+ type: "FAILED_TO_PUBLISH";
587
+ data: {
588
+ platform: "VINTED" | "SHOPIFY";
589
+ };
587
590
  } | {
588
591
  type: "REPUBLISHING";
589
592
  data: {
590
593
  platform: "VINTED" | "SHOPIFY";
591
594
  };
595
+ } | {
596
+ type: "SCHEDULED";
597
+ data: {
598
+ platform: "VINTED" | "SHOPIFY";
599
+ publishingDate?: Date | null | undefined;
600
+ };
592
601
  } | null | undefined;
593
602
  }>>>;
594
603
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -604,6 +613,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
604
613
  accountId: z.ZodString;
605
614
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
606
615
  name: z.ZodString;
616
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
617
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
608
618
  }, "strip", z.ZodTypeAny, {
609
619
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
@@ -611,12 +621,14 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
611
621
  name: string;
612
622
  platform: "VINTED" | "SHOPIFY";
613
623
  accountId: string;
624
+ locale?: string | null | undefined;
614
625
  }, {
615
626
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
616
627
  userId: string | number;
617
628
  name: string;
618
629
  platform: "VINTED" | "SHOPIFY";
619
630
  accountId: string;
631
+ locale?: string | null | undefined;
620
632
  }>>>;
621
633
  }, "strip", z.ZodTypeAny, {
622
634
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -632,6 +644,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
632
644
  name: string;
633
645
  platform: "VINTED" | "SHOPIFY";
634
646
  accountId: string;
647
+ locale?: string | null | undefined;
635
648
  } | null | undefined;
636
649
  }, {
637
650
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -647,6 +660,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
647
660
  name: string;
648
661
  platform: "VINTED" | "SHOPIFY";
649
662
  accountId: string;
663
+ locale?: string | null | undefined;
650
664
  } | null | undefined;
651
665
  }>, "many">>>;
652
666
  createdAt: z.ZodDate;
@@ -691,6 +705,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
691
705
  name: string;
692
706
  platform: "VINTED" | "SHOPIFY";
693
707
  accountId: string;
708
+ locale?: string | null | undefined;
694
709
  } | null | undefined;
695
710
  }[] | null | undefined;
696
711
  files?: {
@@ -760,19 +775,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
760
775
  createdAt: Date;
761
776
  itemId: string | number;
762
777
  data?: {
763
- type: "EMPTY";
764
- } | {
765
- type: "SCHEDULED";
766
- data: {
767
- platform: "VINTED" | "SHOPIFY";
768
- publishingDate?: Date | null | undefined;
769
- };
770
- } | {
771
- type: "FAILED_TO_PUBLISH";
772
- data: {
773
- platform: "VINTED" | "SHOPIFY";
774
- };
775
- } | {
776
778
  type: "BUYER_PAID";
777
779
  data: {
778
780
  soldAccountId: string;
@@ -786,11 +788,24 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
786
788
  soldOrderId: string;
787
789
  soldConversationId?: string | null | undefined;
788
790
  };
791
+ } | {
792
+ type: "EMPTY";
793
+ } | {
794
+ type: "FAILED_TO_PUBLISH";
795
+ data: {
796
+ platform: "VINTED" | "SHOPIFY";
797
+ };
789
798
  } | {
790
799
  type: "REPUBLISHING";
791
800
  data: {
792
801
  platform: "VINTED" | "SHOPIFY";
793
802
  };
803
+ } | {
804
+ type: "SCHEDULED";
805
+ data: {
806
+ platform: "VINTED" | "SHOPIFY";
807
+ publishingDate?: Date | null | undefined;
808
+ };
794
809
  } | null | undefined;
795
810
  } | null | undefined;
796
811
  }, {
@@ -833,6 +848,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
833
848
  name: string;
834
849
  platform: "VINTED" | "SHOPIFY";
835
850
  accountId: string;
851
+ locale?: string | null | undefined;
836
852
  } | null | undefined;
837
853
  }[] | null | undefined;
838
854
  files?: {
@@ -902,19 +918,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
902
918
  createdAt: Date;
903
919
  itemId: string | number;
904
920
  data?: {
905
- type: "EMPTY";
906
- } | {
907
- type: "SCHEDULED";
908
- data: {
909
- platform: "VINTED" | "SHOPIFY";
910
- publishingDate?: Date | null | undefined;
911
- };
912
- } | {
913
- type: "FAILED_TO_PUBLISH";
914
- data: {
915
- platform: "VINTED" | "SHOPIFY";
916
- };
917
- } | {
918
921
  type: "BUYER_PAID";
919
922
  data: {
920
923
  soldAccountId: string;
@@ -928,11 +931,24 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
928
931
  soldOrderId: string;
929
932
  soldConversationId?: string | null | undefined;
930
933
  };
934
+ } | {
935
+ type: "EMPTY";
936
+ } | {
937
+ type: "FAILED_TO_PUBLISH";
938
+ data: {
939
+ platform: "VINTED" | "SHOPIFY";
940
+ };
931
941
  } | {
932
942
  type: "REPUBLISHING";
933
943
  data: {
934
944
  platform: "VINTED" | "SHOPIFY";
935
945
  };
946
+ } | {
947
+ type: "SCHEDULED";
948
+ data: {
949
+ platform: "VINTED" | "SHOPIFY";
950
+ publishingDate?: Date | null | undefined;
951
+ };
936
952
  } | null | undefined;
937
953
  } | null | undefined;
938
954
  }>, "many">;
@@ -977,6 +993,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
977
993
  name: string;
978
994
  platform: "VINTED" | "SHOPIFY";
979
995
  accountId: string;
996
+ locale?: string | null | undefined;
980
997
  } | null | undefined;
981
998
  }[] | null | undefined;
982
999
  files?: {
@@ -1046,19 +1063,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1046
1063
  createdAt: Date;
1047
1064
  itemId: string | number;
1048
1065
  data?: {
1049
- type: "EMPTY";
1050
- } | {
1051
- type: "SCHEDULED";
1052
- data: {
1053
- platform: "VINTED" | "SHOPIFY";
1054
- publishingDate?: Date | null | undefined;
1055
- };
1056
- } | {
1057
- type: "FAILED_TO_PUBLISH";
1058
- data: {
1059
- platform: "VINTED" | "SHOPIFY";
1060
- };
1061
- } | {
1062
1066
  type: "BUYER_PAID";
1063
1067
  data: {
1064
1068
  soldAccountId: string;
@@ -1072,11 +1076,24 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1072
1076
  soldOrderId: string;
1073
1077
  soldConversationId?: string | null | undefined;
1074
1078
  };
1079
+ } | {
1080
+ type: "EMPTY";
1081
+ } | {
1082
+ type: "FAILED_TO_PUBLISH";
1083
+ data: {
1084
+ platform: "VINTED" | "SHOPIFY";
1085
+ };
1075
1086
  } | {
1076
1087
  type: "REPUBLISHING";
1077
1088
  data: {
1078
1089
  platform: "VINTED" | "SHOPIFY";
1079
1090
  };
1091
+ } | {
1092
+ type: "SCHEDULED";
1093
+ data: {
1094
+ platform: "VINTED" | "SHOPIFY";
1095
+ publishingDate?: Date | null | undefined;
1096
+ };
1080
1097
  } | null | undefined;
1081
1098
  } | null | undefined;
1082
1099
  }[];
@@ -1101,6 +1118,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1101
1118
  name: string;
1102
1119
  platform: "VINTED" | "SHOPIFY";
1103
1120
  accountId: string;
1121
+ locale?: string | null | undefined;
1104
1122
  } | null | undefined;
1105
1123
  } | null | undefined;
1106
1124
  }[] | null | undefined;
@@ -1150,6 +1168,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1150
1168
  name: string;
1151
1169
  platform: "VINTED" | "SHOPIFY";
1152
1170
  accountId: string;
1171
+ locale?: string | null | undefined;
1153
1172
  } | null | undefined;
1154
1173
  }[] | null | undefined;
1155
1174
  files?: {
@@ -1219,19 +1238,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1219
1238
  createdAt: Date;
1220
1239
  itemId: string | number;
1221
1240
  data?: {
1222
- type: "EMPTY";
1223
- } | {
1224
- type: "SCHEDULED";
1225
- data: {
1226
- platform: "VINTED" | "SHOPIFY";
1227
- publishingDate?: Date | null | undefined;
1228
- };
1229
- } | {
1230
- type: "FAILED_TO_PUBLISH";
1231
- data: {
1232
- platform: "VINTED" | "SHOPIFY";
1233
- };
1234
- } | {
1235
1241
  type: "BUYER_PAID";
1236
1242
  data: {
1237
1243
  soldAccountId: string;
@@ -1245,11 +1251,24 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1245
1251
  soldOrderId: string;
1246
1252
  soldConversationId?: string | null | undefined;
1247
1253
  };
1254
+ } | {
1255
+ type: "EMPTY";
1256
+ } | {
1257
+ type: "FAILED_TO_PUBLISH";
1258
+ data: {
1259
+ platform: "VINTED" | "SHOPIFY";
1260
+ };
1248
1261
  } | {
1249
1262
  type: "REPUBLISHING";
1250
1263
  data: {
1251
1264
  platform: "VINTED" | "SHOPIFY";
1252
1265
  };
1266
+ } | {
1267
+ type: "SCHEDULED";
1268
+ data: {
1269
+ platform: "VINTED" | "SHOPIFY";
1270
+ publishingDate?: Date | null | undefined;
1271
+ };
1253
1272
  } | null | undefined;
1254
1273
  } | null | undefined;
1255
1274
  }[];
@@ -1274,6 +1293,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1274
1293
  name: string;
1275
1294
  platform: "VINTED" | "SHOPIFY";
1276
1295
  accountId: string;
1296
+ locale?: string | null | undefined;
1277
1297
  } | null | undefined;
1278
1298
  } | null | undefined;
1279
1299
  }[] | null | undefined;