controlresell 2.0.1 → 2.0.3

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 (44) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -3
  3. package/src/com/controlresell/models/catalogs/Catalog.js +1 -1
  4. package/src/com/controlresell/models/catalogs/Catalog.ts +1 -1
  5. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -5
  6. package/src/com/controlresell/models/customers/contracts/ContractItem.d.ts +2 -2
  7. package/src/com/controlresell/models/customers/contracts/PrepareContractPayload.d.ts +4 -4
  8. package/src/com/controlresell/models/fees/Fee.d.ts +2 -2
  9. package/src/com/controlresell/models/items/CreatedItems.d.ts +37 -42
  10. package/src/com/controlresell/models/items/Item.d.ts +23 -26
  11. package/src/com/controlresell/models/items/Item.js +0 -1
  12. package/src/com/controlresell/models/items/Item.ts +0 -1
  13. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -3
  14. package/src/com/controlresell/models/items/ItemSort.d.ts +1 -1
  15. package/src/com/controlresell/models/items/ItemSort.js +1 -1
  16. package/src/com/controlresell/models/items/ItemSort.ts +1 -1
  17. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +43 -48
  18. package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -1
  19. package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -1
  20. package/src/com/controlresell/models/items/UpdatedItem.d.ts +37 -42
  21. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +3 -3
  22. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +3 -3
  23. package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
  24. package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
  25. package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
  26. package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +4 -4
  27. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +4 -4
  28. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +33 -38
  29. package/src/com/controlresell/models/metadata/brands/Brand.d.ts +2 -2
  30. package/src/com/controlresell/models/metadata/labels/Label.d.ts +2 -2
  31. package/src/com/controlresell/models/metadata/places/Place.d.ts +2 -2
  32. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
  33. package/src/com/controlresell/models/platforms/orders/Order.d.ts +11 -11
  34. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  35. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +6 -6
  36. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +6 -0
  37. package/src/com/controlresell/models/users/UpdateUserPayload.js +2 -0
  38. package/src/com/controlresell/models/users/UpdateUserPayload.ts +2 -0
  39. package/src/com/controlresell/models/users/User.d.ts +3 -0
  40. package/src/com/controlresell/models/users/User.js +2 -1
  41. package/src/com/controlresell/models/users/User.ts +2 -1
  42. package/src/com/controlresell/models/users/fields/Field.d.ts +2 -2
  43. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +4 -4
  44. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +2 -2
@@ -5,7 +5,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
5
5
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
6
6
  name: z.ZodString;
7
7
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- images: z.ZodArray<z.ZodString, "many">;
9
8
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
10
9
  fileId: z.ZodString;
11
10
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -84,10 +83,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
84
83
  value: number;
85
84
  type: string;
86
85
  id: string | number;
86
+ name: string;
87
87
  userId: string | number;
88
88
  createdAt: Date;
89
89
  updatedAt: Date;
90
- name: string;
91
90
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
92
91
  startDate: Date;
93
92
  active: boolean;
@@ -99,10 +98,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
99
98
  value: number;
100
99
  type: string;
101
100
  id: string | number;
101
+ name: string;
102
102
  userId: string | number;
103
103
  createdAt: Date;
104
104
  updatedAt: Date;
105
- name: string;
106
105
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
107
106
  startDate: Date;
108
107
  active: boolean;
@@ -123,14 +122,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
123
122
  createdAt: z.ZodDate;
124
123
  }, "strip", z.ZodTypeAny, {
125
124
  id: string | number;
126
- createdAt: Date;
127
125
  name: string;
126
+ createdAt: Date;
128
127
  isUserLabel: boolean;
129
128
  userId?: string | number | null | undefined;
130
129
  }, {
131
130
  id: string | number;
132
- createdAt: Date;
133
131
  name: string;
132
+ createdAt: Date;
134
133
  isUserLabel: boolean;
135
134
  userId?: string | number | null | undefined;
136
135
  }>>>;
@@ -139,8 +138,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
139
138
  labelId: string | number;
140
139
  label?: {
141
140
  id: string | number;
142
- createdAt: Date;
143
141
  name: string;
142
+ createdAt: Date;
144
143
  isUserLabel: boolean;
145
144
  userId?: string | number | null | undefined;
146
145
  } | null | undefined;
@@ -149,8 +148,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
149
148
  labelId: string | number;
150
149
  label?: {
151
150
  id: string | number;
152
- createdAt: Date;
153
151
  name: string;
152
+ createdAt: Date;
154
153
  isUserLabel: boolean;
155
154
  userId?: string | number | null | undefined;
156
155
  } | null | undefined;
@@ -216,17 +215,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
216
215
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
217
216
  id: z.ZodString;
218
217
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
219
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
218
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
220
219
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
220
  createdAt: z.ZodDate;
222
221
  }, "strip", z.ZodTypeAny, {
223
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
222
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
224
223
  id: string;
225
224
  createdAt: Date;
226
225
  itemId: string | number;
227
226
  data?: string | null | undefined;
228
227
  }, {
229
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
228
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
230
229
  id: string;
231
230
  createdAt: Date;
232
231
  itemId: string | number;
@@ -250,14 +249,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
250
249
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
251
250
  platform: "VINTED" | "SHOPIFY";
252
251
  accountId: string;
253
- userId: string | number;
254
252
  name: string;
253
+ userId: string | number;
255
254
  }, {
256
255
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
257
256
  platform: "VINTED" | "SHOPIFY";
258
257
  accountId: string;
259
- userId: string | number;
260
258
  name: string;
259
+ userId: string | number;
261
260
  }>>>;
262
261
  }, "strip", z.ZodTypeAny, {
263
262
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -271,8 +270,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
271
270
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
272
271
  platform: "VINTED" | "SHOPIFY";
273
272
  accountId: string;
274
- userId: string | number;
275
273
  name: string;
274
+ userId: string | number;
276
275
  } | null | undefined;
277
276
  }, {
278
277
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -286,19 +285,18 @@ export declare const UpdatedItemSchema: z.ZodObject<{
286
285
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
287
286
  platform: "VINTED" | "SHOPIFY";
288
287
  accountId: string;
289
- userId: string | number;
290
288
  name: string;
289
+ userId: string | number;
291
290
  } | null | undefined;
292
291
  }>, "many">>>;
293
292
  createdAt: z.ZodDate;
294
293
  updatedAt: z.ZodDate;
295
294
  }, "strip", z.ZodTypeAny, {
296
295
  id: string | number;
296
+ name: string;
297
297
  userId: string | number;
298
298
  createdAt: Date;
299
299
  updatedAt: Date;
300
- name: string;
301
- images: string[];
302
300
  sold: boolean;
303
301
  description?: string | null | undefined;
304
302
  colorIds?: number[] | null | undefined;
@@ -332,10 +330,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
332
330
  value: number;
333
331
  type: string;
334
332
  id: string | number;
333
+ name: string;
335
334
  userId: string | number;
336
335
  createdAt: Date;
337
336
  updatedAt: Date;
338
- name: string;
339
337
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
340
338
  startDate: Date;
341
339
  active: boolean;
@@ -350,8 +348,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
350
348
  labelId: string | number;
351
349
  label?: {
352
350
  id: string | number;
353
- createdAt: Date;
354
351
  name: string;
352
+ createdAt: Date;
355
353
  isUserLabel: boolean;
356
354
  userId?: string | number | null | undefined;
357
355
  } | null | undefined;
@@ -380,7 +378,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
380
378
  fieldId: string | number;
381
379
  }[] | null | undefined;
382
380
  lastHistory?: {
383
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
381
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
384
382
  id: string;
385
383
  createdAt: Date;
386
384
  itemId: string | number;
@@ -398,17 +396,16 @@ export declare const UpdatedItemSchema: z.ZodObject<{
398
396
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
399
397
  platform: "VINTED" | "SHOPIFY";
400
398
  accountId: string;
401
- userId: string | number;
402
399
  name: string;
400
+ userId: string | number;
403
401
  } | null | undefined;
404
402
  }[] | null | undefined;
405
403
  }, {
406
404
  id: string | number;
405
+ name: string;
407
406
  userId: string | number;
408
407
  createdAt: Date;
409
408
  updatedAt: Date;
410
- name: string;
411
- images: string[];
412
409
  sold: boolean;
413
410
  description?: string | null | undefined;
414
411
  colorIds?: number[] | null | undefined;
@@ -442,10 +439,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
442
439
  value: number;
443
440
  type: string;
444
441
  id: string | number;
442
+ name: string;
445
443
  userId: string | number;
446
444
  createdAt: Date;
447
445
  updatedAt: Date;
448
- name: string;
449
446
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
450
447
  startDate: Date;
451
448
  active: boolean;
@@ -460,8 +457,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
460
457
  labelId: string | number;
461
458
  label?: {
462
459
  id: string | number;
463
- createdAt: Date;
464
460
  name: string;
461
+ createdAt: Date;
465
462
  isUserLabel: boolean;
466
463
  userId?: string | number | null | undefined;
467
464
  } | null | undefined;
@@ -490,7 +487,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
490
487
  fieldId: string | number;
491
488
  }[] | null | undefined;
492
489
  lastHistory?: {
493
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
490
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
494
491
  id: string;
495
492
  createdAt: Date;
496
493
  itemId: string | number;
@@ -508,8 +505,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
508
505
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
509
506
  platform: "VINTED" | "SHOPIFY";
510
507
  accountId: string;
511
- userId: string | number;
512
508
  name: string;
509
+ userId: string | number;
513
510
  } | null | undefined;
514
511
  }[] | null | undefined;
515
512
  }>;
@@ -521,32 +518,31 @@ export declare const UpdatedItemSchema: z.ZodObject<{
521
518
  createdAt: z.ZodDate;
522
519
  }, "strip", z.ZodTypeAny, {
523
520
  id: string | number;
524
- createdAt: Date;
525
521
  name: string;
522
+ createdAt: Date;
526
523
  isUserLabel: boolean;
527
524
  userId?: string | number | null | undefined;
528
525
  }, {
529
526
  id: string | number;
530
- createdAt: Date;
531
527
  name: string;
528
+ createdAt: Date;
532
529
  isUserLabel: boolean;
533
530
  userId?: string | number | null | undefined;
534
531
  }>, "many">;
535
532
  }, "strip", z.ZodTypeAny, {
536
533
  newUserLabels: {
537
534
  id: string | number;
538
- createdAt: Date;
539
535
  name: string;
536
+ createdAt: Date;
540
537
  isUserLabel: boolean;
541
538
  userId?: string | number | null | undefined;
542
539
  }[];
543
540
  item: {
544
541
  id: string | number;
542
+ name: string;
545
543
  userId: string | number;
546
544
  createdAt: Date;
547
545
  updatedAt: Date;
548
- name: string;
549
- images: string[];
550
546
  sold: boolean;
551
547
  description?: string | null | undefined;
552
548
  colorIds?: number[] | null | undefined;
@@ -580,10 +576,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
580
576
  value: number;
581
577
  type: string;
582
578
  id: string | number;
579
+ name: string;
583
580
  userId: string | number;
584
581
  createdAt: Date;
585
582
  updatedAt: Date;
586
- name: string;
587
583
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
588
584
  startDate: Date;
589
585
  active: boolean;
@@ -598,8 +594,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
598
594
  labelId: string | number;
599
595
  label?: {
600
596
  id: string | number;
601
- createdAt: Date;
602
597
  name: string;
598
+ createdAt: Date;
603
599
  isUserLabel: boolean;
604
600
  userId?: string | number | null | undefined;
605
601
  } | null | undefined;
@@ -628,7 +624,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
628
624
  fieldId: string | number;
629
625
  }[] | null | undefined;
630
626
  lastHistory?: {
631
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
627
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
632
628
  id: string;
633
629
  createdAt: Date;
634
630
  itemId: string | number;
@@ -646,26 +642,25 @@ export declare const UpdatedItemSchema: z.ZodObject<{
646
642
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
647
643
  platform: "VINTED" | "SHOPIFY";
648
644
  accountId: string;
649
- userId: string | number;
650
645
  name: string;
646
+ userId: string | number;
651
647
  } | null | undefined;
652
648
  }[] | null | undefined;
653
649
  };
654
650
  }, {
655
651
  newUserLabels: {
656
652
  id: string | number;
657
- createdAt: Date;
658
653
  name: string;
654
+ createdAt: Date;
659
655
  isUserLabel: boolean;
660
656
  userId?: string | number | null | undefined;
661
657
  }[];
662
658
  item: {
663
659
  id: string | number;
660
+ name: string;
664
661
  userId: string | number;
665
662
  createdAt: Date;
666
663
  updatedAt: Date;
667
- name: string;
668
- images: string[];
669
664
  sold: boolean;
670
665
  description?: string | null | undefined;
671
666
  colorIds?: number[] | null | undefined;
@@ -699,10 +694,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
699
694
  value: number;
700
695
  type: string;
701
696
  id: string | number;
697
+ name: string;
702
698
  userId: string | number;
703
699
  createdAt: Date;
704
700
  updatedAt: Date;
705
- name: string;
706
701
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
707
702
  startDate: Date;
708
703
  active: boolean;
@@ -717,8 +712,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
717
712
  labelId: string | number;
718
713
  label?: {
719
714
  id: string | number;
720
- createdAt: Date;
721
715
  name: string;
716
+ createdAt: Date;
722
717
  isUserLabel: boolean;
723
718
  userId?: string | number | null | undefined;
724
719
  } | null | undefined;
@@ -747,7 +742,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
747
742
  fieldId: string | number;
748
743
  }[] | null | undefined;
749
744
  lastHistory?: {
750
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
745
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
751
746
  id: string;
752
747
  createdAt: Date;
753
748
  itemId: string | number;
@@ -765,8 +760,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
765
760
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
766
761
  platform: "VINTED" | "SHOPIFY";
767
762
  accountId: string;
768
- userId: string | number;
769
763
  name: string;
764
+ userId: string | number;
770
765
  } | null | undefined;
771
766
  }[] | null | undefined;
772
767
  };
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
3
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
3
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
4
4
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
6
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
7
7
  data?: string | null | undefined;
8
8
  }, {
9
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
9
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
10
10
  data?: string | null | undefined;
11
11
  }>;
12
12
  export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
@@ -2,17 +2,17 @@ import { z } from "zod";
2
2
  export declare const ItemHistorySchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
5
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
6
6
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  createdAt: z.ZodDate;
8
8
  }, "strip", z.ZodTypeAny, {
9
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
9
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
10
10
  id: string;
11
11
  createdAt: Date;
12
12
  itemId: string | number;
13
13
  data?: string | null | undefined;
14
14
  }, {
15
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
15
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
16
16
  id: string;
17
17
  createdAt: Date;
18
18
  itemId: string | number;
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
2
+ export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
3
3
  export type ItemHistoryType = z.infer<typeof ItemHistoryTypeSchema>;
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemHistoryTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ItemHistoryTypeSchema = zod_1.z.enum([
6
- "IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"
6
+ "IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
7
7
  ]);
@@ -1,6 +1,6 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const ItemHistoryTypeSchema = z.enum([
4
- "IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"
4
+ "IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
5
5
  ])
6
6
  export type ItemHistoryType = z.infer<typeof ItemHistoryTypeSchema>
@@ -10,14 +10,14 @@ export declare const ItemLabelSchema: z.ZodObject<{
10
10
  createdAt: z.ZodDate;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  id: string | number;
13
- createdAt: Date;
14
13
  name: string;
14
+ createdAt: Date;
15
15
  isUserLabel: boolean;
16
16
  userId?: string | number | null | undefined;
17
17
  }, {
18
18
  id: string | number;
19
- createdAt: Date;
20
19
  name: string;
20
+ createdAt: Date;
21
21
  isUserLabel: boolean;
22
22
  userId?: string | number | null | undefined;
23
23
  }>>>;
@@ -26,8 +26,8 @@ export declare const ItemLabelSchema: z.ZodObject<{
26
26
  labelId: string | number;
27
27
  label?: {
28
28
  id: string | number;
29
- createdAt: Date;
30
29
  name: string;
30
+ createdAt: Date;
31
31
  isUserLabel: boolean;
32
32
  userId?: string | number | null | undefined;
33
33
  } | null | undefined;
@@ -36,8 +36,8 @@ export declare const ItemLabelSchema: z.ZodObject<{
36
36
  labelId: string | number;
37
37
  label?: {
38
38
  id: string | number;
39
- createdAt: Date;
40
39
  name: string;
40
+ createdAt: Date;
41
41
  isUserLabel: boolean;
42
42
  userId?: string | number | null | undefined;
43
43
  } | null | undefined;
@@ -17,14 +17,14 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
17
17
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
18
18
  platform: "VINTED" | "SHOPIFY";
19
19
  accountId: string;
20
- userId: string | number;
21
20
  name: string;
21
+ userId: string | number;
22
22
  }, {
23
23
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
24
24
  platform: "VINTED" | "SHOPIFY";
25
25
  accountId: string;
26
- userId: string | number;
27
26
  name: string;
27
+ userId: string | number;
28
28
  }>>>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -38,8 +38,8 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
38
38
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
39
39
  platform: "VINTED" | "SHOPIFY";
40
40
  accountId: string;
41
- userId: string | number;
42
41
  name: string;
42
+ userId: string | number;
43
43
  } | null | undefined;
44
44
  }, {
45
45
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -53,8 +53,8 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
53
53
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
54
54
  platform: "VINTED" | "SHOPIFY";
55
55
  accountId: string;
56
- userId: string | number;
57
56
  name: string;
57
+ userId: string | number;
58
58
  } | null | undefined;
59
59
  }>;
60
60
  export type ItemOnPlatform = z.infer<typeof ItemOnPlatformSchema>;