controlresell 2.2.18 → 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 (37) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +130 -130
  3. package/src/com/controlresell/models/items/Item.d.ts +104 -104
  4. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +130 -130
  5. package/src/com/controlresell/models/items/UpdatedItem.d.ts +130 -130
  6. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
  7. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
  8. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
  9. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
  10. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
  11. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +130 -130
  12. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +130 -130
  13. package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
  14. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +130 -130
  15. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
  16. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
  17. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
  18. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
  19. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
  20. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
  21. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
  22. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
  23. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
  24. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
  25. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +1417 -1417
  26. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
  27. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
  28. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
  29. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
  30. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
  31. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
  32. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
  33. package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
  34. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
  35. package/src/index.d.ts +1 -0
  36. package/src/index.js +3 -1
  37. package/src/index.ts +1 -0
@@ -222,56 +222,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
222
222
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
223
223
  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"]>;
224
224
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
225
- type: z.ZodLiteral<"EMPTY">;
226
- }, "strip", z.ZodTypeAny, {
227
- type: "EMPTY";
228
- }, {
229
- type: "EMPTY";
230
- }>, z.ZodObject<{
231
- type: z.ZodLiteral<"SCHEDULED">;
232
- data: z.ZodObject<{
233
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
234
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
235
- }, "strip", z.ZodTypeAny, {
236
- platform: "VINTED" | "SHOPIFY";
237
- publishingDate?: Date | null | undefined;
238
- }, {
239
- platform: "VINTED" | "SHOPIFY";
240
- publishingDate?: Date | null | undefined;
241
- }>;
242
- }, "strip", z.ZodTypeAny, {
243
- type: "SCHEDULED";
244
- data: {
245
- platform: "VINTED" | "SHOPIFY";
246
- publishingDate?: Date | null | undefined;
247
- };
248
- }, {
249
- type: "SCHEDULED";
250
- data: {
251
- platform: "VINTED" | "SHOPIFY";
252
- publishingDate?: Date | null | undefined;
253
- };
254
- }>, z.ZodObject<{
255
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
256
- data: z.ZodObject<{
257
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
258
- }, "strip", z.ZodTypeAny, {
259
- platform: "VINTED" | "SHOPIFY";
260
- }, {
261
- platform: "VINTED" | "SHOPIFY";
262
- }>;
263
- }, "strip", z.ZodTypeAny, {
264
- type: "FAILED_TO_PUBLISH";
265
- data: {
266
- platform: "VINTED" | "SHOPIFY";
267
- };
268
- }, {
269
- type: "FAILED_TO_PUBLISH";
270
- data: {
271
- platform: "VINTED" | "SHOPIFY";
272
- };
273
- }>, z.ZodObject<{
274
- type: z.ZodLiteral<"BUYER_PAID">;
275
225
  data: z.ZodObject<{
276
226
  soldAccountId: z.ZodString;
277
227
  soldOrderId: z.ZodString;
@@ -285,6 +235,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
285
235
  soldOrderId: string;
286
236
  soldConversationId?: string | null | undefined;
287
237
  }>;
238
+ type: z.ZodLiteral<"BUYER_PAID">;
288
239
  }, "strip", z.ZodTypeAny, {
289
240
  type: "BUYER_PAID";
290
241
  data: {
@@ -300,7 +251,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
300
251
  soldConversationId?: string | null | undefined;
301
252
  };
302
253
  }>, z.ZodObject<{
303
- type: z.ZodLiteral<"DELIVERED">;
304
254
  data: z.ZodObject<{
305
255
  soldAccountId: z.ZodString;
306
256
  soldOrderId: z.ZodString;
@@ -314,6 +264,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
314
264
  soldOrderId: string;
315
265
  soldConversationId?: string | null | undefined;
316
266
  }>;
267
+ type: z.ZodLiteral<"DELIVERED">;
317
268
  }, "strip", z.ZodTypeAny, {
318
269
  type: "DELIVERED";
319
270
  data: {
@@ -329,7 +280,31 @@ export declare const UpdatedItemSchema: z.ZodObject<{
329
280
  soldConversationId?: string | null | undefined;
330
281
  };
331
282
  }>, z.ZodObject<{
332
- type: z.ZodLiteral<"REPUBLISHING">;
283
+ type: z.ZodLiteral<"EMPTY">;
284
+ }, "strip", z.ZodTypeAny, {
285
+ type: "EMPTY";
286
+ }, {
287
+ type: "EMPTY";
288
+ }>, z.ZodObject<{
289
+ data: z.ZodObject<{
290
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ platform: "VINTED" | "SHOPIFY";
293
+ }, {
294
+ platform: "VINTED" | "SHOPIFY";
295
+ }>;
296
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "FAILED_TO_PUBLISH";
299
+ data: {
300
+ platform: "VINTED" | "SHOPIFY";
301
+ };
302
+ }, {
303
+ type: "FAILED_TO_PUBLISH";
304
+ data: {
305
+ platform: "VINTED" | "SHOPIFY";
306
+ };
307
+ }>, z.ZodObject<{
333
308
  data: z.ZodObject<{
334
309
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
335
310
  }, "strip", z.ZodTypeAny, {
@@ -337,6 +312,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
337
312
  }, {
338
313
  platform: "VINTED" | "SHOPIFY";
339
314
  }>;
315
+ type: z.ZodLiteral<"REPUBLISHING">;
340
316
  }, "strip", z.ZodTypeAny, {
341
317
  type: "REPUBLISHING";
342
318
  data: {
@@ -347,27 +323,38 @@ export declare const UpdatedItemSchema: z.ZodObject<{
347
323
  data: {
348
324
  platform: "VINTED" | "SHOPIFY";
349
325
  };
350
- }>]>>>;
351
- createdAt: z.ZodDate;
352
- }, "strip", z.ZodTypeAny, {
353
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
354
- id: string;
355
- createdAt: Date;
356
- itemId: string | number;
357
- data?: {
358
- type: "EMPTY";
359
- } | {
326
+ }>, z.ZodObject<{
327
+ data: z.ZodObject<{
328
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
329
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ platform: "VINTED" | "SHOPIFY";
332
+ publishingDate?: Date | null | undefined;
333
+ }, {
334
+ platform: "VINTED" | "SHOPIFY";
335
+ publishingDate?: Date | null | undefined;
336
+ }>;
337
+ type: z.ZodLiteral<"SCHEDULED">;
338
+ }, "strip", z.ZodTypeAny, {
360
339
  type: "SCHEDULED";
361
340
  data: {
362
341
  platform: "VINTED" | "SHOPIFY";
363
342
  publishingDate?: Date | null | undefined;
364
343
  };
365
- } | {
366
- type: "FAILED_TO_PUBLISH";
344
+ }, {
345
+ type: "SCHEDULED";
367
346
  data: {
368
347
  platform: "VINTED" | "SHOPIFY";
348
+ publishingDate?: Date | null | undefined;
369
349
  };
370
- } | {
350
+ }>]>>>;
351
+ createdAt: z.ZodDate;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
354
+ id: string;
355
+ createdAt: Date;
356
+ itemId: string | number;
357
+ data?: {
371
358
  type: "BUYER_PAID";
372
359
  data: {
373
360
  soldAccountId: string;
@@ -382,30 +369,30 @@ export declare const UpdatedItemSchema: z.ZodObject<{
382
369
  soldConversationId?: string | null | undefined;
383
370
  };
384
371
  } | {
385
- type: "REPUBLISHING";
372
+ type: "EMPTY";
373
+ } | {
374
+ type: "FAILED_TO_PUBLISH";
386
375
  data: {
387
376
  platform: "VINTED" | "SHOPIFY";
388
377
  };
389
- } | null | undefined;
390
- }, {
391
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
392
- id: string;
393
- createdAt: Date;
394
- itemId: string | number;
395
- data?: {
396
- type: "EMPTY";
397
378
  } | {
398
- type: "SCHEDULED";
379
+ type: "REPUBLISHING";
399
380
  data: {
400
381
  platform: "VINTED" | "SHOPIFY";
401
- publishingDate?: Date | null | undefined;
402
382
  };
403
383
  } | {
404
- type: "FAILED_TO_PUBLISH";
384
+ type: "SCHEDULED";
405
385
  data: {
406
386
  platform: "VINTED" | "SHOPIFY";
387
+ publishingDate?: Date | null | undefined;
407
388
  };
408
- } | {
389
+ } | null | undefined;
390
+ }, {
391
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
392
+ id: string;
393
+ createdAt: Date;
394
+ itemId: string | number;
395
+ data?: {
409
396
  type: "BUYER_PAID";
410
397
  data: {
411
398
  soldAccountId: string;
@@ -419,11 +406,24 @@ export declare const UpdatedItemSchema: z.ZodObject<{
419
406
  soldOrderId: string;
420
407
  soldConversationId?: string | null | undefined;
421
408
  };
409
+ } | {
410
+ type: "EMPTY";
411
+ } | {
412
+ type: "FAILED_TO_PUBLISH";
413
+ data: {
414
+ platform: "VINTED" | "SHOPIFY";
415
+ };
422
416
  } | {
423
417
  type: "REPUBLISHING";
424
418
  data: {
425
419
  platform: "VINTED" | "SHOPIFY";
426
420
  };
421
+ } | {
422
+ type: "SCHEDULED";
423
+ data: {
424
+ platform: "VINTED" | "SHOPIFY";
425
+ publishingDate?: Date | null | undefined;
426
+ };
427
427
  } | null | undefined;
428
428
  }>>>;
429
429
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -601,19 +601,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
601
601
  createdAt: Date;
602
602
  itemId: string | number;
603
603
  data?: {
604
- type: "EMPTY";
605
- } | {
606
- type: "SCHEDULED";
607
- data: {
608
- platform: "VINTED" | "SHOPIFY";
609
- publishingDate?: Date | null | undefined;
610
- };
611
- } | {
612
- type: "FAILED_TO_PUBLISH";
613
- data: {
614
- platform: "VINTED" | "SHOPIFY";
615
- };
616
- } | {
617
604
  type: "BUYER_PAID";
618
605
  data: {
619
606
  soldAccountId: string;
@@ -627,11 +614,24 @@ export declare const UpdatedItemSchema: z.ZodObject<{
627
614
  soldOrderId: string;
628
615
  soldConversationId?: string | null | undefined;
629
616
  };
617
+ } | {
618
+ type: "EMPTY";
619
+ } | {
620
+ type: "FAILED_TO_PUBLISH";
621
+ data: {
622
+ platform: "VINTED" | "SHOPIFY";
623
+ };
630
624
  } | {
631
625
  type: "REPUBLISHING";
632
626
  data: {
633
627
  platform: "VINTED" | "SHOPIFY";
634
628
  };
629
+ } | {
630
+ type: "SCHEDULED";
631
+ data: {
632
+ platform: "VINTED" | "SHOPIFY";
633
+ publishingDate?: Date | null | undefined;
634
+ };
635
635
  } | null | undefined;
636
636
  } | null | undefined;
637
637
  }, {
@@ -744,19 +744,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
744
744
  createdAt: Date;
745
745
  itemId: string | number;
746
746
  data?: {
747
- type: "EMPTY";
748
- } | {
749
- type: "SCHEDULED";
750
- data: {
751
- platform: "VINTED" | "SHOPIFY";
752
- publishingDate?: Date | null | undefined;
753
- };
754
- } | {
755
- type: "FAILED_TO_PUBLISH";
756
- data: {
757
- platform: "VINTED" | "SHOPIFY";
758
- };
759
- } | {
760
747
  type: "BUYER_PAID";
761
748
  data: {
762
749
  soldAccountId: string;
@@ -770,11 +757,24 @@ export declare const UpdatedItemSchema: z.ZodObject<{
770
757
  soldOrderId: string;
771
758
  soldConversationId?: string | null | undefined;
772
759
  };
760
+ } | {
761
+ type: "EMPTY";
762
+ } | {
763
+ type: "FAILED_TO_PUBLISH";
764
+ data: {
765
+ platform: "VINTED" | "SHOPIFY";
766
+ };
773
767
  } | {
774
768
  type: "REPUBLISHING";
775
769
  data: {
776
770
  platform: "VINTED" | "SHOPIFY";
777
771
  };
772
+ } | {
773
+ type: "SCHEDULED";
774
+ data: {
775
+ platform: "VINTED" | "SHOPIFY";
776
+ publishingDate?: Date | null | undefined;
777
+ };
778
778
  } | null | undefined;
779
779
  } | null | undefined;
780
780
  }>;
@@ -919,19 +919,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
919
919
  createdAt: Date;
920
920
  itemId: string | number;
921
921
  data?: {
922
- type: "EMPTY";
923
- } | {
924
- type: "SCHEDULED";
925
- data: {
926
- platform: "VINTED" | "SHOPIFY";
927
- publishingDate?: Date | null | undefined;
928
- };
929
- } | {
930
- type: "FAILED_TO_PUBLISH";
931
- data: {
932
- platform: "VINTED" | "SHOPIFY";
933
- };
934
- } | {
935
922
  type: "BUYER_PAID";
936
923
  data: {
937
924
  soldAccountId: string;
@@ -945,11 +932,24 @@ export declare const UpdatedItemSchema: z.ZodObject<{
945
932
  soldOrderId: string;
946
933
  soldConversationId?: string | null | undefined;
947
934
  };
935
+ } | {
936
+ type: "EMPTY";
937
+ } | {
938
+ type: "FAILED_TO_PUBLISH";
939
+ data: {
940
+ platform: "VINTED" | "SHOPIFY";
941
+ };
948
942
  } | {
949
943
  type: "REPUBLISHING";
950
944
  data: {
951
945
  platform: "VINTED" | "SHOPIFY";
952
946
  };
947
+ } | {
948
+ type: "SCHEDULED";
949
+ data: {
950
+ platform: "VINTED" | "SHOPIFY";
951
+ publishingDate?: Date | null | undefined;
952
+ };
953
953
  } | null | undefined;
954
954
  } | null | undefined;
955
955
  };
@@ -1072,19 +1072,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
1072
1072
  createdAt: Date;
1073
1073
  itemId: string | number;
1074
1074
  data?: {
1075
- type: "EMPTY";
1076
- } | {
1077
- type: "SCHEDULED";
1078
- data: {
1079
- platform: "VINTED" | "SHOPIFY";
1080
- publishingDate?: Date | null | undefined;
1081
- };
1082
- } | {
1083
- type: "FAILED_TO_PUBLISH";
1084
- data: {
1085
- platform: "VINTED" | "SHOPIFY";
1086
- };
1087
- } | {
1088
1075
  type: "BUYER_PAID";
1089
1076
  data: {
1090
1077
  soldAccountId: string;
@@ -1098,11 +1085,24 @@ export declare const UpdatedItemSchema: z.ZodObject<{
1098
1085
  soldOrderId: string;
1099
1086
  soldConversationId?: string | null | undefined;
1100
1087
  };
1088
+ } | {
1089
+ type: "EMPTY";
1090
+ } | {
1091
+ type: "FAILED_TO_PUBLISH";
1092
+ data: {
1093
+ platform: "VINTED" | "SHOPIFY";
1094
+ };
1101
1095
  } | {
1102
1096
  type: "REPUBLISHING";
1103
1097
  data: {
1104
1098
  platform: "VINTED" | "SHOPIFY";
1105
1099
  };
1100
+ } | {
1101
+ type: "SCHEDULED";
1102
+ data: {
1103
+ platform: "VINTED" | "SHOPIFY";
1104
+ publishingDate?: Date | null | undefined;
1105
+ };
1106
1106
  } | null | undefined;
1107
1107
  } | null | undefined;
1108
1108
  };
@@ -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>;