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
@@ -2,56 +2,6 @@ import { z } from "zod";
2
2
  export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
3
3
  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"]>;
4
4
  data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5
- type: z.ZodLiteral<"EMPTY">;
6
- }, "strip", z.ZodTypeAny, {
7
- type: "EMPTY";
8
- }, {
9
- type: "EMPTY";
10
- }>, z.ZodObject<{
11
- type: z.ZodLiteral<"SCHEDULED">;
12
- data: z.ZodObject<{
13
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
14
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
15
- }, "strip", z.ZodTypeAny, {
16
- platform: "VINTED" | "SHOPIFY";
17
- publishingDate?: Date | null | undefined;
18
- }, {
19
- platform: "VINTED" | "SHOPIFY";
20
- publishingDate?: Date | null | undefined;
21
- }>;
22
- }, "strip", z.ZodTypeAny, {
23
- type: "SCHEDULED";
24
- data: {
25
- platform: "VINTED" | "SHOPIFY";
26
- publishingDate?: Date | null | undefined;
27
- };
28
- }, {
29
- type: "SCHEDULED";
30
- data: {
31
- platform: "VINTED" | "SHOPIFY";
32
- publishingDate?: Date | null | undefined;
33
- };
34
- }>, z.ZodObject<{
35
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
36
- data: z.ZodObject<{
37
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
38
- }, "strip", z.ZodTypeAny, {
39
- platform: "VINTED" | "SHOPIFY";
40
- }, {
41
- platform: "VINTED" | "SHOPIFY";
42
- }>;
43
- }, "strip", z.ZodTypeAny, {
44
- type: "FAILED_TO_PUBLISH";
45
- data: {
46
- platform: "VINTED" | "SHOPIFY";
47
- };
48
- }, {
49
- type: "FAILED_TO_PUBLISH";
50
- data: {
51
- platform: "VINTED" | "SHOPIFY";
52
- };
53
- }>, z.ZodObject<{
54
- type: z.ZodLiteral<"BUYER_PAID">;
55
5
  data: z.ZodObject<{
56
6
  soldAccountId: z.ZodString;
57
7
  soldOrderId: z.ZodString;
@@ -65,6 +15,7 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
65
15
  soldOrderId: string;
66
16
  soldConversationId?: string | null | undefined;
67
17
  }>;
18
+ type: z.ZodLiteral<"BUYER_PAID">;
68
19
  }, "strip", z.ZodTypeAny, {
69
20
  type: "BUYER_PAID";
70
21
  data: {
@@ -80,7 +31,6 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
80
31
  soldConversationId?: string | null | undefined;
81
32
  };
82
33
  }>, z.ZodObject<{
83
- type: z.ZodLiteral<"DELIVERED">;
84
34
  data: z.ZodObject<{
85
35
  soldAccountId: z.ZodString;
86
36
  soldOrderId: z.ZodString;
@@ -94,6 +44,7 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
94
44
  soldOrderId: string;
95
45
  soldConversationId?: string | null | undefined;
96
46
  }>;
47
+ type: z.ZodLiteral<"DELIVERED">;
97
48
  }, "strip", z.ZodTypeAny, {
98
49
  type: "DELIVERED";
99
50
  data: {
@@ -109,7 +60,31 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
109
60
  soldConversationId?: string | null | undefined;
110
61
  };
111
62
  }>, z.ZodObject<{
112
- type: z.ZodLiteral<"REPUBLISHING">;
63
+ type: z.ZodLiteral<"EMPTY">;
64
+ }, "strip", z.ZodTypeAny, {
65
+ type: "EMPTY";
66
+ }, {
67
+ type: "EMPTY";
68
+ }>, z.ZodObject<{
69
+ data: z.ZodObject<{
70
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ platform: "VINTED" | "SHOPIFY";
73
+ }, {
74
+ platform: "VINTED" | "SHOPIFY";
75
+ }>;
76
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type: "FAILED_TO_PUBLISH";
79
+ data: {
80
+ platform: "VINTED" | "SHOPIFY";
81
+ };
82
+ }, {
83
+ type: "FAILED_TO_PUBLISH";
84
+ data: {
85
+ platform: "VINTED" | "SHOPIFY";
86
+ };
87
+ }>, z.ZodObject<{
113
88
  data: z.ZodObject<{
114
89
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
115
90
  }, "strip", z.ZodTypeAny, {
@@ -117,6 +92,7 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
117
92
  }, {
118
93
  platform: "VINTED" | "SHOPIFY";
119
94
  }>;
95
+ type: z.ZodLiteral<"REPUBLISHING">;
120
96
  }, "strip", z.ZodTypeAny, {
121
97
  type: "REPUBLISHING";
122
98
  data: {
@@ -127,23 +103,34 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
127
103
  data: {
128
104
  platform: "VINTED" | "SHOPIFY";
129
105
  };
130
- }>]>;
131
- }, "strip", z.ZodTypeAny, {
132
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
133
- data: {
134
- type: "EMPTY";
135
- } | {
106
+ }>, z.ZodObject<{
107
+ data: z.ZodObject<{
108
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
109
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ platform: "VINTED" | "SHOPIFY";
112
+ publishingDate?: Date | null | undefined;
113
+ }, {
114
+ platform: "VINTED" | "SHOPIFY";
115
+ publishingDate?: Date | null | undefined;
116
+ }>;
117
+ type: z.ZodLiteral<"SCHEDULED">;
118
+ }, "strip", z.ZodTypeAny, {
136
119
  type: "SCHEDULED";
137
120
  data: {
138
121
  platform: "VINTED" | "SHOPIFY";
139
122
  publishingDate?: Date | null | undefined;
140
123
  };
141
- } | {
142
- type: "FAILED_TO_PUBLISH";
124
+ }, {
125
+ type: "SCHEDULED";
143
126
  data: {
144
127
  platform: "VINTED" | "SHOPIFY";
128
+ publishingDate?: Date | null | undefined;
145
129
  };
146
- } | {
130
+ }>]>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
133
+ data: {
147
134
  type: "BUYER_PAID";
148
135
  data: {
149
136
  soldAccountId: string;
@@ -158,27 +145,27 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
158
145
  soldConversationId?: string | null | undefined;
159
146
  };
160
147
  } | {
161
- type: "REPUBLISHING";
148
+ type: "EMPTY";
149
+ } | {
150
+ type: "FAILED_TO_PUBLISH";
162
151
  data: {
163
152
  platform: "VINTED" | "SHOPIFY";
164
153
  };
165
- };
166
- }, {
167
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
168
- data: {
169
- type: "EMPTY";
170
154
  } | {
171
- type: "SCHEDULED";
155
+ type: "REPUBLISHING";
172
156
  data: {
173
157
  platform: "VINTED" | "SHOPIFY";
174
- publishingDate?: Date | null | undefined;
175
158
  };
176
159
  } | {
177
- type: "FAILED_TO_PUBLISH";
160
+ type: "SCHEDULED";
178
161
  data: {
179
162
  platform: "VINTED" | "SHOPIFY";
163
+ publishingDate?: Date | null | undefined;
180
164
  };
181
- } | {
165
+ };
166
+ }, {
167
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
168
+ data: {
182
169
  type: "BUYER_PAID";
183
170
  data: {
184
171
  soldAccountId: string;
@@ -192,11 +179,24 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
192
179
  soldOrderId: string;
193
180
  soldConversationId?: string | null | undefined;
194
181
  };
182
+ } | {
183
+ type: "EMPTY";
184
+ } | {
185
+ type: "FAILED_TO_PUBLISH";
186
+ data: {
187
+ platform: "VINTED" | "SHOPIFY";
188
+ };
195
189
  } | {
196
190
  type: "REPUBLISHING";
197
191
  data: {
198
192
  platform: "VINTED" | "SHOPIFY";
199
193
  };
194
+ } | {
195
+ type: "SCHEDULED";
196
+ data: {
197
+ platform: "VINTED" | "SHOPIFY";
198
+ publishingDate?: Date | null | undefined;
199
+ };
200
200
  };
201
201
  }>;
202
202
  export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
@@ -4,56 +4,6 @@ export declare const ItemHistorySchema: z.ZodObject<{
4
4
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5
5
  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"]>;
6
6
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7
- type: z.ZodLiteral<"EMPTY">;
8
- }, "strip", z.ZodTypeAny, {
9
- type: "EMPTY";
10
- }, {
11
- type: "EMPTY";
12
- }>, z.ZodObject<{
13
- type: z.ZodLiteral<"SCHEDULED">;
14
- data: z.ZodObject<{
15
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
16
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
17
- }, "strip", z.ZodTypeAny, {
18
- platform: "VINTED" | "SHOPIFY";
19
- publishingDate?: Date | null | undefined;
20
- }, {
21
- platform: "VINTED" | "SHOPIFY";
22
- publishingDate?: Date | null | undefined;
23
- }>;
24
- }, "strip", z.ZodTypeAny, {
25
- type: "SCHEDULED";
26
- data: {
27
- platform: "VINTED" | "SHOPIFY";
28
- publishingDate?: Date | null | undefined;
29
- };
30
- }, {
31
- type: "SCHEDULED";
32
- data: {
33
- platform: "VINTED" | "SHOPIFY";
34
- publishingDate?: Date | null | undefined;
35
- };
36
- }>, z.ZodObject<{
37
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
38
- data: z.ZodObject<{
39
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
40
- }, "strip", z.ZodTypeAny, {
41
- platform: "VINTED" | "SHOPIFY";
42
- }, {
43
- platform: "VINTED" | "SHOPIFY";
44
- }>;
45
- }, "strip", z.ZodTypeAny, {
46
- type: "FAILED_TO_PUBLISH";
47
- data: {
48
- platform: "VINTED" | "SHOPIFY";
49
- };
50
- }, {
51
- type: "FAILED_TO_PUBLISH";
52
- data: {
53
- platform: "VINTED" | "SHOPIFY";
54
- };
55
- }>, z.ZodObject<{
56
- type: z.ZodLiteral<"BUYER_PAID">;
57
7
  data: z.ZodObject<{
58
8
  soldAccountId: z.ZodString;
59
9
  soldOrderId: z.ZodString;
@@ -67,6 +17,7 @@ export declare const ItemHistorySchema: z.ZodObject<{
67
17
  soldOrderId: string;
68
18
  soldConversationId?: string | null | undefined;
69
19
  }>;
20
+ type: z.ZodLiteral<"BUYER_PAID">;
70
21
  }, "strip", z.ZodTypeAny, {
71
22
  type: "BUYER_PAID";
72
23
  data: {
@@ -82,7 +33,6 @@ export declare const ItemHistorySchema: z.ZodObject<{
82
33
  soldConversationId?: string | null | undefined;
83
34
  };
84
35
  }>, z.ZodObject<{
85
- type: z.ZodLiteral<"DELIVERED">;
86
36
  data: z.ZodObject<{
87
37
  soldAccountId: z.ZodString;
88
38
  soldOrderId: z.ZodString;
@@ -96,6 +46,7 @@ export declare const ItemHistorySchema: z.ZodObject<{
96
46
  soldOrderId: string;
97
47
  soldConversationId?: string | null | undefined;
98
48
  }>;
49
+ type: z.ZodLiteral<"DELIVERED">;
99
50
  }, "strip", z.ZodTypeAny, {
100
51
  type: "DELIVERED";
101
52
  data: {
@@ -111,7 +62,31 @@ export declare const ItemHistorySchema: z.ZodObject<{
111
62
  soldConversationId?: string | null | undefined;
112
63
  };
113
64
  }>, z.ZodObject<{
114
- type: z.ZodLiteral<"REPUBLISHING">;
65
+ type: z.ZodLiteral<"EMPTY">;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "EMPTY";
68
+ }, {
69
+ type: "EMPTY";
70
+ }>, z.ZodObject<{
71
+ data: z.ZodObject<{
72
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ platform: "VINTED" | "SHOPIFY";
75
+ }, {
76
+ platform: "VINTED" | "SHOPIFY";
77
+ }>;
78
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
79
+ }, "strip", z.ZodTypeAny, {
80
+ type: "FAILED_TO_PUBLISH";
81
+ data: {
82
+ platform: "VINTED" | "SHOPIFY";
83
+ };
84
+ }, {
85
+ type: "FAILED_TO_PUBLISH";
86
+ data: {
87
+ platform: "VINTED" | "SHOPIFY";
88
+ };
89
+ }>, z.ZodObject<{
115
90
  data: z.ZodObject<{
116
91
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
117
92
  }, "strip", z.ZodTypeAny, {
@@ -119,6 +94,7 @@ export declare const ItemHistorySchema: z.ZodObject<{
119
94
  }, {
120
95
  platform: "VINTED" | "SHOPIFY";
121
96
  }>;
97
+ type: z.ZodLiteral<"REPUBLISHING">;
122
98
  }, "strip", z.ZodTypeAny, {
123
99
  type: "REPUBLISHING";
124
100
  data: {
@@ -129,27 +105,38 @@ export declare const ItemHistorySchema: z.ZodObject<{
129
105
  data: {
130
106
  platform: "VINTED" | "SHOPIFY";
131
107
  };
132
- }>]>>>;
133
- createdAt: z.ZodDate;
134
- }, "strip", z.ZodTypeAny, {
135
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
136
- id: string;
137
- createdAt: Date;
138
- itemId: string | number;
139
- data?: {
140
- type: "EMPTY";
141
- } | {
108
+ }>, z.ZodObject<{
109
+ data: z.ZodObject<{
110
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
111
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ platform: "VINTED" | "SHOPIFY";
114
+ publishingDate?: Date | null | undefined;
115
+ }, {
116
+ platform: "VINTED" | "SHOPIFY";
117
+ publishingDate?: Date | null | undefined;
118
+ }>;
119
+ type: z.ZodLiteral<"SCHEDULED">;
120
+ }, "strip", z.ZodTypeAny, {
142
121
  type: "SCHEDULED";
143
122
  data: {
144
123
  platform: "VINTED" | "SHOPIFY";
145
124
  publishingDate?: Date | null | undefined;
146
125
  };
147
- } | {
148
- type: "FAILED_TO_PUBLISH";
126
+ }, {
127
+ type: "SCHEDULED";
149
128
  data: {
150
129
  platform: "VINTED" | "SHOPIFY";
130
+ publishingDate?: Date | null | undefined;
151
131
  };
152
- } | {
132
+ }>]>>>;
133
+ createdAt: z.ZodDate;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
136
+ id: string;
137
+ createdAt: Date;
138
+ itemId: string | number;
139
+ data?: {
153
140
  type: "BUYER_PAID";
154
141
  data: {
155
142
  soldAccountId: string;
@@ -164,30 +151,30 @@ export declare const ItemHistorySchema: z.ZodObject<{
164
151
  soldConversationId?: string | null | undefined;
165
152
  };
166
153
  } | {
167
- type: "REPUBLISHING";
154
+ type: "EMPTY";
155
+ } | {
156
+ type: "FAILED_TO_PUBLISH";
168
157
  data: {
169
158
  platform: "VINTED" | "SHOPIFY";
170
159
  };
171
- } | null | undefined;
172
- }, {
173
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
174
- id: string;
175
- createdAt: Date;
176
- itemId: string | number;
177
- data?: {
178
- type: "EMPTY";
179
160
  } | {
180
- type: "SCHEDULED";
161
+ type: "REPUBLISHING";
181
162
  data: {
182
163
  platform: "VINTED" | "SHOPIFY";
183
- publishingDate?: Date | null | undefined;
184
164
  };
185
165
  } | {
186
- type: "FAILED_TO_PUBLISH";
166
+ type: "SCHEDULED";
187
167
  data: {
188
168
  platform: "VINTED" | "SHOPIFY";
169
+ publishingDate?: Date | null | undefined;
189
170
  };
190
- } | {
171
+ } | null | undefined;
172
+ }, {
173
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
174
+ id: string;
175
+ createdAt: Date;
176
+ itemId: string | number;
177
+ data?: {
191
178
  type: "BUYER_PAID";
192
179
  data: {
193
180
  soldAccountId: string;
@@ -201,11 +188,24 @@ export declare const ItemHistorySchema: z.ZodObject<{
201
188
  soldOrderId: string;
202
189
  soldConversationId?: string | null | undefined;
203
190
  };
191
+ } | {
192
+ type: "EMPTY";
193
+ } | {
194
+ type: "FAILED_TO_PUBLISH";
195
+ data: {
196
+ platform: "VINTED" | "SHOPIFY";
197
+ };
204
198
  } | {
205
199
  type: "REPUBLISHING";
206
200
  data: {
207
201
  platform: "VINTED" | "SHOPIFY";
208
202
  };
203
+ } | {
204
+ type: "SCHEDULED";
205
+ data: {
206
+ platform: "VINTED" | "SHOPIFY";
207
+ publishingDate?: Date | null | undefined;
208
+ };
209
209
  } | null | undefined;
210
210
  }>;
211
211
  export type ItemHistory = z.infer<typeof ItemHistorySchema>;