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
@@ -15,7 +15,6 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
15
15
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
16
16
  name: z.ZodString;
17
17
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- images: z.ZodArray<z.ZodString, "many">;
19
18
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
19
  fileId: z.ZodString;
21
20
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -94,10 +93,10 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
94
93
  value: number;
95
94
  type: string;
96
95
  id: string | number;
96
+ name: string;
97
97
  userId: string | number;
98
98
  createdAt: Date;
99
99
  updatedAt: Date;
100
- name: string;
101
100
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
102
101
  startDate: Date;
103
102
  active: boolean;
@@ -109,10 +108,10 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
109
108
  value: number;
110
109
  type: string;
111
110
  id: string | number;
111
+ name: string;
112
112
  userId: string | number;
113
113
  createdAt: Date;
114
114
  updatedAt: Date;
115
- name: string;
116
115
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
117
116
  startDate: Date;
118
117
  active: boolean;
@@ -133,14 +132,14 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
133
132
  createdAt: z.ZodDate;
134
133
  }, "strip", z.ZodTypeAny, {
135
134
  id: string | number;
136
- createdAt: Date;
137
135
  name: string;
136
+ createdAt: Date;
138
137
  isUserLabel: boolean;
139
138
  userId?: string | number | null | undefined;
140
139
  }, {
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
  }>>>;
@@ -149,8 +148,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: 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;
@@ -159,8 +158,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
159
158
  labelId: string | number;
160
159
  label?: {
161
160
  id: string | number;
162
- createdAt: Date;
163
161
  name: string;
162
+ createdAt: Date;
164
163
  isUserLabel: boolean;
165
164
  userId?: string | number | null | undefined;
166
165
  } | null | undefined;
@@ -226,17 +225,17 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
226
225
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
227
226
  id: z.ZodString;
228
227
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
229
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
228
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
230
229
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
230
  createdAt: z.ZodDate;
232
231
  }, "strip", z.ZodTypeAny, {
233
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
232
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
234
233
  id: string;
235
234
  createdAt: Date;
236
235
  itemId: string | number;
237
236
  data?: string | null | undefined;
238
237
  }, {
239
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
238
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
240
239
  id: string;
241
240
  createdAt: Date;
242
241
  itemId: string | number;
@@ -260,14 +259,14 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
260
259
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
261
260
  platform: "VINTED" | "SHOPIFY";
262
261
  accountId: string;
263
- userId: string | number;
264
262
  name: string;
263
+ userId: string | number;
265
264
  }, {
266
265
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
267
266
  platform: "VINTED" | "SHOPIFY";
268
267
  accountId: string;
269
- userId: string | number;
270
268
  name: string;
269
+ userId: string | number;
271
270
  }>>>;
272
271
  }, "strip", z.ZodTypeAny, {
273
272
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -281,8 +280,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
281
280
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
282
281
  platform: "VINTED" | "SHOPIFY";
283
282
  accountId: string;
284
- userId: string | number;
285
283
  name: string;
284
+ userId: string | number;
286
285
  } | null | undefined;
287
286
  }, {
288
287
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -296,19 +295,18 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
296
295
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
297
296
  platform: "VINTED" | "SHOPIFY";
298
297
  accountId: string;
299
- userId: string | number;
300
298
  name: string;
299
+ userId: string | number;
301
300
  } | null | undefined;
302
301
  }>, "many">>>;
303
302
  createdAt: z.ZodDate;
304
303
  updatedAt: z.ZodDate;
305
304
  }, "strip", z.ZodTypeAny, {
306
305
  id: string | number;
306
+ name: string;
307
307
  userId: string | number;
308
308
  createdAt: Date;
309
309
  updatedAt: Date;
310
- name: string;
311
- images: string[];
312
310
  sold: boolean;
313
311
  description?: string | null | undefined;
314
312
  colorIds?: number[] | null | undefined;
@@ -342,10 +340,10 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
342
340
  value: number;
343
341
  type: string;
344
342
  id: string | number;
343
+ name: string;
345
344
  userId: string | number;
346
345
  createdAt: Date;
347
346
  updatedAt: Date;
348
- name: string;
349
347
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
350
348
  startDate: Date;
351
349
  active: boolean;
@@ -360,8 +358,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
360
358
  labelId: string | number;
361
359
  label?: {
362
360
  id: string | number;
363
- createdAt: Date;
364
361
  name: string;
362
+ createdAt: Date;
365
363
  isUserLabel: boolean;
366
364
  userId?: string | number | null | undefined;
367
365
  } | null | undefined;
@@ -390,7 +388,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
390
388
  fieldId: string | number;
391
389
  }[] | null | undefined;
392
390
  lastHistory?: {
393
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
391
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
394
392
  id: string;
395
393
  createdAt: Date;
396
394
  itemId: string | number;
@@ -408,17 +406,16 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
408
406
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
409
407
  platform: "VINTED" | "SHOPIFY";
410
408
  accountId: string;
411
- userId: string | number;
412
409
  name: string;
410
+ userId: string | number;
413
411
  } | null | undefined;
414
412
  }[] | null | undefined;
415
413
  }, {
416
414
  id: string | number;
415
+ name: string;
417
416
  userId: string | number;
418
417
  createdAt: Date;
419
418
  updatedAt: Date;
420
- name: string;
421
- images: string[];
422
419
  sold: boolean;
423
420
  description?: string | null | undefined;
424
421
  colorIds?: number[] | null | undefined;
@@ -452,10 +449,10 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
452
449
  value: number;
453
450
  type: string;
454
451
  id: string | number;
452
+ name: string;
455
453
  userId: string | number;
456
454
  createdAt: Date;
457
455
  updatedAt: Date;
458
- name: string;
459
456
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
460
457
  startDate: Date;
461
458
  active: boolean;
@@ -470,8 +467,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
470
467
  labelId: string | number;
471
468
  label?: {
472
469
  id: string | number;
473
- createdAt: Date;
474
470
  name: string;
471
+ createdAt: Date;
475
472
  isUserLabel: boolean;
476
473
  userId?: string | number | null | undefined;
477
474
  } | null | undefined;
@@ -500,7 +497,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
500
497
  fieldId: string | number;
501
498
  }[] | null | undefined;
502
499
  lastHistory?: {
503
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
500
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
504
501
  id: string;
505
502
  createdAt: Date;
506
503
  itemId: string | number;
@@ -518,19 +515,18 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
518
515
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
519
516
  platform: "VINTED" | "SHOPIFY";
520
517
  accountId: string;
521
- userId: string | number;
522
518
  name: string;
519
+ userId: string | number;
523
520
  } | null | undefined;
524
521
  }[] | null | undefined;
525
522
  }>;
526
523
  }, "strip", z.ZodTypeAny, {
527
524
  item: {
528
525
  id: string | number;
526
+ name: string;
529
527
  userId: string | number;
530
528
  createdAt: Date;
531
529
  updatedAt: Date;
532
- name: string;
533
- images: string[];
534
530
  sold: boolean;
535
531
  description?: string | null | undefined;
536
532
  colorIds?: number[] | null | undefined;
@@ -564,10 +560,10 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
564
560
  value: number;
565
561
  type: string;
566
562
  id: string | number;
563
+ name: string;
567
564
  userId: string | number;
568
565
  createdAt: Date;
569
566
  updatedAt: Date;
570
- name: string;
571
567
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
572
568
  startDate: Date;
573
569
  active: boolean;
@@ -582,8 +578,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
582
578
  labelId: string | number;
583
579
  label?: {
584
580
  id: string | number;
585
- createdAt: Date;
586
581
  name: string;
582
+ createdAt: Date;
587
583
  isUserLabel: boolean;
588
584
  userId?: string | number | null | undefined;
589
585
  } | null | undefined;
@@ -612,7 +608,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
612
608
  fieldId: string | number;
613
609
  }[] | null | undefined;
614
610
  lastHistory?: {
615
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
611
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
616
612
  id: string;
617
613
  createdAt: Date;
618
614
  itemId: string | number;
@@ -630,8 +626,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
630
626
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
631
627
  platform: "VINTED" | "SHOPIFY";
632
628
  accountId: string;
633
- userId: string | number;
634
629
  name: string;
630
+ userId: string | number;
635
631
  } | null | undefined;
636
632
  }[] | null | undefined;
637
633
  };
@@ -642,11 +638,10 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
642
638
  }, {
643
639
  item: {
644
640
  id: string | number;
641
+ name: string;
645
642
  userId: string | number;
646
643
  createdAt: Date;
647
644
  updatedAt: Date;
648
- name: string;
649
- images: string[];
650
645
  sold: boolean;
651
646
  description?: string | null | undefined;
652
647
  colorIds?: number[] | null | undefined;
@@ -680,10 +675,10 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
680
675
  value: number;
681
676
  type: string;
682
677
  id: string | number;
678
+ name: string;
683
679
  userId: string | number;
684
680
  createdAt: Date;
685
681
  updatedAt: Date;
686
- name: string;
687
682
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
688
683
  startDate: Date;
689
684
  active: boolean;
@@ -698,8 +693,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
698
693
  labelId: string | number;
699
694
  label?: {
700
695
  id: string | number;
701
- createdAt: Date;
702
696
  name: string;
697
+ createdAt: Date;
703
698
  isUserLabel: boolean;
704
699
  userId?: string | number | null | undefined;
705
700
  } | null | undefined;
@@ -728,7 +723,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
728
723
  fieldId: string | number;
729
724
  }[] | null | undefined;
730
725
  lastHistory?: {
731
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
726
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
732
727
  id: string;
733
728
  createdAt: Date;
734
729
  itemId: string | number;
@@ -746,8 +741,8 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
746
741
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
747
742
  platform: "VINTED" | "SHOPIFY";
748
743
  accountId: string;
749
- userId: string | number;
750
744
  name: string;
745
+ userId: string | number;
751
746
  } | null | undefined;
752
747
  }[] | null | undefined;
753
748
  };
@@ -7,14 +7,14 @@ export declare const BrandSchema: z.ZodObject<{
7
7
  itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  id: string | number;
10
- createdAt: Date;
11
10
  name: string;
11
+ createdAt: Date;
12
12
  itemCount?: number | null | undefined;
13
13
  userId?: string | number | null | undefined;
14
14
  }, {
15
15
  id: string | number;
16
- createdAt: Date;
17
16
  name: string;
17
+ createdAt: Date;
18
18
  itemCount?: number | null | undefined;
19
19
  userId?: string | number | null | undefined;
20
20
  }>;
@@ -7,14 +7,14 @@ export declare const LabelSchema: z.ZodObject<{
7
7
  createdAt: z.ZodDate;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  id: string | number;
10
- createdAt: Date;
11
10
  name: string;
11
+ createdAt: Date;
12
12
  isUserLabel: boolean;
13
13
  userId?: string | number | null | undefined;
14
14
  }, {
15
15
  id: string | number;
16
- createdAt: Date;
17
16
  name: string;
17
+ createdAt: Date;
18
18
  isUserLabel: boolean;
19
19
  userId?: string | number | null | undefined;
20
20
  }>;
@@ -6,13 +6,13 @@ export declare const PlaceSchema: z.ZodObject<{
6
6
  createdAt: z.ZodDate;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  id: string | number;
9
- createdAt: Date;
10
9
  name: string;
10
+ createdAt: Date;
11
11
  userId?: string | number | null | undefined;
12
12
  }, {
13
13
  id: string | number;
14
- createdAt: Date;
15
14
  name: string;
15
+ createdAt: Date;
16
16
  userId?: string | number | null | undefined;
17
17
  }>;
18
18
  export type Place = z.infer<typeof PlaceSchema>;
@@ -1,18 +1,18 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreateOrderPayloadSchema: z.ZodObject<{
3
3
  platformOrderId: z.ZodString;
4
- status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
4
+ status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
5
5
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  price: z.ZodNumber;
7
7
  date: z.ZodDate;
8
8
  }, "strip", z.ZodTypeAny, {
9
- status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
9
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
10
10
  date: Date;
11
11
  price: number;
12
12
  platformOrderId: string;
13
13
  conversationId?: string | null | undefined;
14
14
  }, {
15
- status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
15
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
16
16
  date: Date;
17
17
  price: number;
18
18
  platformOrderId: string;
@@ -3,7 +3,7 @@ export declare const OrderSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  accountId: z.ZodString;
5
5
  platformOrderId: z.ZodString;
6
- status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
6
+ status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
7
7
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
8
  price: z.ZodNumber;
9
9
  date: z.ZodDate;
@@ -28,14 +28,14 @@ export declare const OrderSchema: z.ZodObject<{
28
28
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
29
29
  platform: "VINTED" | "SHOPIFY";
30
30
  accountId: string;
31
- userId: string | number;
32
31
  name: string;
32
+ userId: string | number;
33
33
  }, {
34
34
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
35
35
  platform: "VINTED" | "SHOPIFY";
36
36
  accountId: string;
37
- userId: string | number;
38
37
  name: string;
38
+ userId: string | number;
39
39
  }>>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -49,8 +49,8 @@ export declare const OrderSchema: z.ZodObject<{
49
49
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
50
50
  platform: "VINTED" | "SHOPIFY";
51
51
  accountId: string;
52
- userId: string | number;
53
52
  name: string;
53
+ userId: string | number;
54
54
  } | null | undefined;
55
55
  }, {
56
56
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -64,8 +64,8 @@ export declare const OrderSchema: z.ZodObject<{
64
64
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
65
65
  platform: "VINTED" | "SHOPIFY";
66
66
  accountId: string;
67
- userId: string | number;
68
67
  name: string;
68
+ userId: string | number;
69
69
  } | null | undefined;
70
70
  }>>>;
71
71
  }, "strip", z.ZodTypeAny, {
@@ -83,8 +83,8 @@ export declare const OrderSchema: z.ZodObject<{
83
83
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
84
84
  platform: "VINTED" | "SHOPIFY";
85
85
  accountId: string;
86
- userId: string | number;
87
86
  name: string;
87
+ userId: string | number;
88
88
  } | null | undefined;
89
89
  } | null | undefined;
90
90
  }, {
@@ -102,8 +102,8 @@ export declare const OrderSchema: z.ZodObject<{
102
102
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
103
103
  platform: "VINTED" | "SHOPIFY";
104
104
  accountId: string;
105
- userId: string | number;
106
105
  name: string;
106
+ userId: string | number;
107
107
  } | null | undefined;
108
108
  } | null | undefined;
109
109
  }>, "many">>>;
@@ -190,7 +190,7 @@ export declare const OrderSchema: z.ZodObject<{
190
190
  } | null | undefined;
191
191
  }>, "many">>>;
192
192
  }, "strip", z.ZodTypeAny, {
193
- status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
193
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
194
194
  id: string;
195
195
  date: Date;
196
196
  accountId: string;
@@ -212,8 +212,8 @@ export declare const OrderSchema: z.ZodObject<{
212
212
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
213
213
  platform: "VINTED" | "SHOPIFY";
214
214
  accountId: string;
215
- userId: string | number;
216
215
  name: string;
216
+ userId: string | number;
217
217
  } | null | undefined;
218
218
  } | null | undefined;
219
219
  }[] | null | undefined;
@@ -238,7 +238,7 @@ export declare const OrderSchema: z.ZodObject<{
238
238
  } | null | undefined;
239
239
  }[] | null | undefined;
240
240
  }, {
241
- status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
241
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
242
242
  id: string;
243
243
  date: Date;
244
244
  accountId: string;
@@ -260,8 +260,8 @@ export declare const OrderSchema: z.ZodObject<{
260
260
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
261
261
  platform: "VINTED" | "SHOPIFY";
262
262
  accountId: string;
263
- userId: string | number;
264
263
  name: string;
264
+ userId: string | number;
265
265
  } | null | undefined;
266
266
  } | null | undefined;
267
267
  }[] | null | undefined;
@@ -1,16 +1,16 @@
1
1
  import { z } from "zod";
2
2
  export declare const UpdateOrderPayloadSchema: z.ZodObject<{
3
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>>>;
3
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>>>;
4
4
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
6
  date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- status?: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN" | null | undefined;
8
+ status?: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN" | null | undefined;
9
9
  date?: Date | null | undefined;
10
10
  conversationId?: string | null | undefined;
11
11
  price?: number | null | undefined;
12
12
  }, {
13
- status?: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN" | null | undefined;
13
+ status?: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN" | null | undefined;
14
14
  date?: Date | null | undefined;
15
15
  conversationId?: string | null | undefined;
16
16
  price?: number | null | undefined;
@@ -20,14 +20,14 @@ export declare const ItemInOrderSchema: z.ZodObject<{
20
20
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
21
21
  platform: "VINTED" | "SHOPIFY";
22
22
  accountId: string;
23
- userId: string | number;
24
23
  name: string;
24
+ userId: string | number;
25
25
  }, {
26
26
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
27
27
  platform: "VINTED" | "SHOPIFY";
28
28
  accountId: string;
29
- userId: string | number;
30
29
  name: string;
30
+ userId: string | number;
31
31
  }>>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -41,8 +41,8 @@ export declare const ItemInOrderSchema: z.ZodObject<{
41
41
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
42
42
  platform: "VINTED" | "SHOPIFY";
43
43
  accountId: string;
44
- userId: string | number;
45
44
  name: string;
45
+ userId: string | number;
46
46
  } | null | undefined;
47
47
  }, {
48
48
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
@@ -56,8 +56,8 @@ export declare const ItemInOrderSchema: z.ZodObject<{
56
56
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
57
57
  platform: "VINTED" | "SHOPIFY";
58
58
  accountId: string;
59
- userId: string | number;
60
59
  name: string;
60
+ userId: string | number;
61
61
  } | null | undefined;
62
62
  }>>>;
63
63
  }, "strip", z.ZodTypeAny, {
@@ -75,8 +75,8 @@ export declare const ItemInOrderSchema: z.ZodObject<{
75
75
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
76
76
  platform: "VINTED" | "SHOPIFY";
77
77
  accountId: string;
78
- userId: string | number;
79
78
  name: string;
79
+ userId: string | number;
80
80
  } | null | undefined;
81
81
  } | null | undefined;
82
82
  }, {
@@ -94,8 +94,8 @@ export declare const ItemInOrderSchema: z.ZodObject<{
94
94
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
95
95
  platform: "VINTED" | "SHOPIFY";
96
96
  accountId: string;
97
- userId: string | number;
98
97
  name: string;
98
+ userId: string | number;
99
99
  } | null | undefined;
100
100
  } | null | undefined;
101
101
  }>;
@@ -2,6 +2,8 @@ import { z } from "zod";
2
2
  export declare const UpdateUserPayloadSchema: z.ZodObject<{
3
3
  username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
7
  affiliate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
8
  notificationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
9
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -18,7 +20,9 @@ export declare const UpdateUserPayloadSchema: z.ZodObject<{
18
20
  }>, "many">>>;
19
21
  }, "strip", z.ZodTypeAny, {
20
22
  username?: string | null | undefined;
23
+ password?: string | null | undefined;
21
24
  firstName?: string | null | undefined;
25
+ email?: string | null | undefined;
22
26
  affiliate?: string | null | undefined;
23
27
  notificationToken?: string | null | undefined;
24
28
  phoneNumber?: string | null | undefined;
@@ -29,7 +33,9 @@ export declare const UpdateUserPayloadSchema: z.ZodObject<{
29
33
  }[] | null | undefined;
30
34
  }, {
31
35
  username?: string | null | undefined;
36
+ password?: string | null | undefined;
32
37
  firstName?: string | null | undefined;
38
+ email?: string | null | undefined;
33
39
  affiliate?: string | null | undefined;
34
40
  notificationToken?: string | null | undefined;
35
41
  phoneNumber?: string | null | undefined;
@@ -6,6 +6,8 @@ const FieldConfig_1 = require("./fields/FieldConfig");
6
6
  exports.UpdateUserPayloadSchema = zod_1.z.object({
7
7
  username: zod_1.z.string().nullish(),
8
8
  firstName: zod_1.z.string().nullish(),
9
+ email: zod_1.z.string().nullish(),
10
+ password: zod_1.z.string().nullish(),
9
11
  affiliate: zod_1.z.string().nullish(),
10
12
  notificationToken: zod_1.z.string().nullish(),
11
13
  phoneNumber: zod_1.z.string().nullish(),
@@ -4,6 +4,8 @@ import {FieldConfigSchema} from "./fields/FieldConfig"
4
4
  export const UpdateUserPayloadSchema = z.object({
5
5
  username: z.string().nullish(),
6
6
  firstName: z.string().nullish(),
7
+ email: z.string().nullish(),
8
+ password: z.string().nullish(),
7
9
  affiliate: z.string().nullish(),
8
10
  notificationToken: z.string().nullish(),
9
11
  phoneNumber: z.string().nullish(),
@@ -59,12 +59,14 @@ export declare const UserSchema: z.ZodObject<{
59
59
  }>, "many">>>;
60
60
  createdAt: z.ZodDate;
61
61
  updatedAt: z.ZodDate;
62
+ lastLoginAt: z.ZodDate;
62
63
  }, "strip", z.ZodTypeAny, {
63
64
  id: string | number;
64
65
  username: string;
65
66
  createdAt: Date;
66
67
  updatedAt: Date;
67
68
  anonymous: boolean;
69
+ lastLoginAt: Date;
68
70
  password?: string | null | undefined;
69
71
  firstName?: string | null | undefined;
70
72
  email?: string | null | undefined;
@@ -95,6 +97,7 @@ export declare const UserSchema: z.ZodObject<{
95
97
  createdAt: Date;
96
98
  updatedAt: Date;
97
99
  anonymous: boolean;
100
+ lastLoginAt: Date;
98
101
  password?: string | null | undefined;
99
102
  firstName?: string | null | undefined;
100
103
  email?: string | null | undefined;