controlresell 0.0.47 → 0.0.49

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 (24) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +127 -14
  3. package/src/com/controlresell/models/items/Item.d.ts +93 -10
  4. package/src/com/controlresell/models/items/Item.js +2 -0
  5. package/src/com/controlresell/models/items/Item.ts +2 -0
  6. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +127 -14
  7. package/src/com/controlresell/models/items/UpdatedItem.d.ts +127 -14
  8. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +6 -6
  9. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.js +1 -1
  10. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.ts +1 -1
  11. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +6 -6
  12. package/src/com/controlresell/models/items/history/ItemHistory.js +1 -1
  13. package/src/com/controlresell/models/items/history/ItemHistory.ts +1 -1
  14. package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
  15. package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
  16. package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
  17. package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +2 -2
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +2 -2
  19. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +127 -14
  20. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +2 -2
  21. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
  22. package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -9
  23. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  24. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +4 -4
@@ -211,22 +211,75 @@ export declare const UpdatedItemSchema: z.ZodObject<{
211
211
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
212
212
  id: z.ZodString;
213
213
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
214
- type: z.ZodEnum<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
215
- data: z.ZodString;
214
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
215
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
216
  createdAt: z.ZodDate;
217
217
  }, "strip", z.ZodTypeAny, {
218
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
218
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
219
219
  id: string;
220
- data: string;
221
220
  createdAt: Date;
222
221
  itemId: string | number;
222
+ data?: string | null | undefined;
223
223
  }, {
224
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
224
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
225
225
  id: string;
226
- data: string;
227
226
  createdAt: Date;
228
227
  itemId: string | number;
228
+ data?: string | null | undefined;
229
229
  }>>>;
230
+ itemOnPlatforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
231
+ id: z.ZodString;
232
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
233
+ accountId: z.ZodString;
234
+ platformId: z.ZodString;
235
+ platformUrl: z.ZodString;
236
+ platformPrice: z.ZodNumber;
237
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
238
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
239
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
240
+ accountId: z.ZodString;
241
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
242
+ name: z.ZodString;
243
+ }, "strip", z.ZodTypeAny, {
244
+ platform: "VINTED" | "SHOPIFY";
245
+ accountId: string;
246
+ userId: string | number;
247
+ name: string;
248
+ }, {
249
+ platform: "VINTED" | "SHOPIFY";
250
+ accountId: string;
251
+ userId: string | number;
252
+ name: string;
253
+ }>>>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
256
+ id: string;
257
+ accountId: string;
258
+ itemId: string | number;
259
+ platformId: string;
260
+ platformUrl: string;
261
+ platformPrice: number;
262
+ account?: {
263
+ platform: "VINTED" | "SHOPIFY";
264
+ accountId: string;
265
+ userId: string | number;
266
+ name: string;
267
+ } | null | undefined;
268
+ }, {
269
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
270
+ id: string;
271
+ accountId: string;
272
+ itemId: string | number;
273
+ platformId: string;
274
+ platformUrl: string;
275
+ platformPrice: number;
276
+ account?: {
277
+ platform: "VINTED" | "SHOPIFY";
278
+ accountId: string;
279
+ userId: string | number;
280
+ name: string;
281
+ } | null | undefined;
282
+ }>, "many">>>;
230
283
  createdAt: z.ZodDate;
231
284
  updatedAt: z.ZodDate;
232
285
  }, "strip", z.ZodTypeAny, {
@@ -316,12 +369,27 @@ export declare const UpdatedItemSchema: z.ZodObject<{
316
369
  fieldId: string | number;
317
370
  }[] | null | undefined;
318
371
  lastHistory?: {
319
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
372
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
320
373
  id: string;
321
- data: string;
322
374
  createdAt: Date;
323
375
  itemId: string | number;
376
+ data?: string | null | undefined;
324
377
  } | null | undefined;
378
+ itemOnPlatforms?: {
379
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
380
+ id: string;
381
+ accountId: string;
382
+ itemId: string | number;
383
+ platformId: string;
384
+ platformUrl: string;
385
+ platformPrice: number;
386
+ account?: {
387
+ platform: "VINTED" | "SHOPIFY";
388
+ accountId: string;
389
+ userId: string | number;
390
+ name: string;
391
+ } | null | undefined;
392
+ }[] | null | undefined;
325
393
  }, {
326
394
  id: string | number;
327
395
  userId: string | number;
@@ -409,12 +477,27 @@ export declare const UpdatedItemSchema: z.ZodObject<{
409
477
  fieldId: string | number;
410
478
  }[] | null | undefined;
411
479
  lastHistory?: {
412
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
480
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
413
481
  id: string;
414
- data: string;
415
482
  createdAt: Date;
416
483
  itemId: string | number;
484
+ data?: string | null | undefined;
417
485
  } | null | undefined;
486
+ itemOnPlatforms?: {
487
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
488
+ id: string;
489
+ accountId: string;
490
+ itemId: string | number;
491
+ platformId: string;
492
+ platformUrl: string;
493
+ platformPrice: number;
494
+ account?: {
495
+ platform: "VINTED" | "SHOPIFY";
496
+ accountId: string;
497
+ userId: string | number;
498
+ name: string;
499
+ } | null | undefined;
500
+ }[] | null | undefined;
418
501
  }>;
419
502
  newUserLabels: z.ZodArray<z.ZodObject<{
420
503
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -526,12 +609,27 @@ export declare const UpdatedItemSchema: z.ZodObject<{
526
609
  fieldId: string | number;
527
610
  }[] | null | undefined;
528
611
  lastHistory?: {
529
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
612
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
530
613
  id: string;
531
- data: string;
532
614
  createdAt: Date;
533
615
  itemId: string | number;
616
+ data?: string | null | undefined;
534
617
  } | null | undefined;
618
+ itemOnPlatforms?: {
619
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
620
+ id: string;
621
+ accountId: string;
622
+ itemId: string | number;
623
+ platformId: string;
624
+ platformUrl: string;
625
+ platformPrice: number;
626
+ account?: {
627
+ platform: "VINTED" | "SHOPIFY";
628
+ accountId: string;
629
+ userId: string | number;
630
+ name: string;
631
+ } | null | undefined;
632
+ }[] | null | undefined;
535
633
  };
536
634
  }, {
537
635
  newUserLabels: {
@@ -627,12 +725,27 @@ export declare const UpdatedItemSchema: z.ZodObject<{
627
725
  fieldId: string | number;
628
726
  }[] | null | undefined;
629
727
  lastHistory?: {
630
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
728
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
631
729
  id: string;
632
- data: string;
633
730
  createdAt: Date;
634
731
  itemId: string | number;
732
+ data?: string | null | undefined;
635
733
  } | null | undefined;
734
+ itemOnPlatforms?: {
735
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
736
+ id: string;
737
+ accountId: string;
738
+ itemId: string | number;
739
+ platformId: string;
740
+ platformUrl: string;
741
+ platformPrice: number;
742
+ account?: {
743
+ platform: "VINTED" | "SHOPIFY";
744
+ accountId: string;
745
+ userId: string | number;
746
+ name: string;
747
+ } | null | undefined;
748
+ }[] | null | undefined;
636
749
  };
637
750
  }>;
638
751
  export type UpdatedItem = z.infer<typeof UpdatedItemSchema>;
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
3
- type: z.ZodEnum<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
4
- data: z.ZodString;
3
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
4
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
7
- data: string;
6
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
7
+ data?: string | null | undefined;
8
8
  }, {
9
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
10
- data: string;
9
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
10
+ data?: string | null | undefined;
11
11
  }>;
12
12
  export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
@@ -5,5 +5,5 @@ const zod_1 = require("zod");
5
5
  const ItemHistoryType_1 = require("./ItemHistoryType");
6
6
  exports.CreateItemHistoryPayloadSchema = zod_1.z.object({
7
7
  type: ItemHistoryType_1.ItemHistoryTypeSchema,
8
- data: zod_1.z.string()
8
+ data: zod_1.z.string().nullish()
9
9
  });
@@ -3,6 +3,6 @@ import {ItemHistoryTypeSchema} from "./ItemHistoryType"
3
3
 
4
4
  export const CreateItemHistoryPayloadSchema = z.object({
5
5
  type: ItemHistoryTypeSchema,
6
- data: z.string()
6
+ data: z.string().nullish()
7
7
  })
8
8
  export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>
@@ -2,20 +2,20 @@ 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<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
6
- data: z.ZodString;
5
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
6
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  createdAt: z.ZodDate;
8
8
  }, "strip", z.ZodTypeAny, {
9
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
9
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
10
10
  id: string;
11
- data: string;
12
11
  createdAt: Date;
13
12
  itemId: string | number;
13
+ data?: string | null | undefined;
14
14
  }, {
15
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
15
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
16
16
  id: string;
17
- data: string;
18
17
  createdAt: Date;
19
18
  itemId: string | number;
19
+ data?: string | null | undefined;
20
20
  }>;
21
21
  export type ItemHistory = z.infer<typeof ItemHistorySchema>;
@@ -8,6 +8,6 @@ exports.ItemHistorySchema = zod_1.z.object({
8
8
  id: zod_1.z.string().uuid(),
9
9
  itemId: zodable_idschema_1.IdSchema,
10
10
  type: ItemHistoryType_1.ItemHistoryTypeSchema,
11
- data: zod_1.z.string(),
11
+ data: zod_1.z.string().nullish(),
12
12
  createdAt: zod_1.z.coerce.date()
13
13
  });
@@ -6,7 +6,7 @@ export const ItemHistorySchema = z.object({
6
6
  id: z.string().uuid(),
7
7
  itemId: IdSchema,
8
8
  type: ItemHistoryTypeSchema,
9
- data: z.string(),
9
+ data: z.string().nullish(),
10
10
  createdAt: z.coerce.date()
11
11
  })
12
12
  export type ItemHistory = z.infer<typeof ItemHistorySchema>
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
2
+ export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
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
- "IMPORT", "CREATE", "UPDATE", "DELETE"
6
+ "IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"
7
7
  ]);
@@ -1,6 +1,6 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const ItemHistoryTypeSchema = z.enum([
4
- "IMPORT", "CREATE", "UPDATE", "DELETE"
4
+ "IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"
5
5
  ])
6
6
  export type ItemHistoryType = z.infer<typeof ItemHistoryTypeSchema>
@@ -6,13 +6,13 @@ export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
6
6
  platformPrice: z.ZodNumber;
7
7
  status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
9
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
10
10
  accountId: string;
11
11
  platformId: string;
12
12
  platformUrl: string;
13
13
  platformPrice: number;
14
14
  }, {
15
- status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
15
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
16
16
  accountId: string;
17
17
  platformId: string;
18
18
  platformUrl: string;
@@ -24,7 +24,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
24
24
  name: string;
25
25
  }>>>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
27
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
28
28
  id: string;
29
29
  accountId: string;
30
30
  itemId: string | number;
@@ -38,7 +38,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
38
38
  name: string;
39
39
  } | null | undefined;
40
40
  }, {
41
- status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
41
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
42
42
  id: string;
43
43
  accountId: string;
44
44
  itemId: string | number;
@@ -221,22 +221,75 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
221
221
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
222
222
  id: z.ZodString;
223
223
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
224
- type: z.ZodEnum<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
225
- data: z.ZodString;
224
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
225
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
226
  createdAt: z.ZodDate;
227
227
  }, "strip", z.ZodTypeAny, {
228
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
228
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
229
229
  id: string;
230
- data: string;
231
230
  createdAt: Date;
232
231
  itemId: string | number;
232
+ data?: string | null | undefined;
233
233
  }, {
234
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
234
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
235
235
  id: string;
236
- data: string;
237
236
  createdAt: Date;
238
237
  itemId: string | number;
238
+ data?: string | null | undefined;
239
239
  }>>>;
240
+ itemOnPlatforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
241
+ id: z.ZodString;
242
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
243
+ accountId: z.ZodString;
244
+ platformId: z.ZodString;
245
+ platformUrl: z.ZodString;
246
+ platformPrice: z.ZodNumber;
247
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
248
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
249
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
250
+ accountId: z.ZodString;
251
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
252
+ name: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ platform: "VINTED" | "SHOPIFY";
255
+ accountId: string;
256
+ userId: string | number;
257
+ name: string;
258
+ }, {
259
+ platform: "VINTED" | "SHOPIFY";
260
+ accountId: string;
261
+ userId: string | number;
262
+ name: string;
263
+ }>>>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
266
+ id: string;
267
+ accountId: string;
268
+ itemId: string | number;
269
+ platformId: string;
270
+ platformUrl: string;
271
+ platformPrice: number;
272
+ account?: {
273
+ platform: "VINTED" | "SHOPIFY";
274
+ accountId: string;
275
+ userId: string | number;
276
+ name: string;
277
+ } | null | undefined;
278
+ }, {
279
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
280
+ id: string;
281
+ accountId: string;
282
+ itemId: string | number;
283
+ platformId: string;
284
+ platformUrl: string;
285
+ platformPrice: number;
286
+ account?: {
287
+ platform: "VINTED" | "SHOPIFY";
288
+ accountId: string;
289
+ userId: string | number;
290
+ name: string;
291
+ } | null | undefined;
292
+ }>, "many">>>;
240
293
  createdAt: z.ZodDate;
241
294
  updatedAt: z.ZodDate;
242
295
  }, "strip", z.ZodTypeAny, {
@@ -326,12 +379,27 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
326
379
  fieldId: string | number;
327
380
  }[] | null | undefined;
328
381
  lastHistory?: {
329
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
382
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
330
383
  id: string;
331
- data: string;
332
384
  createdAt: Date;
333
385
  itemId: string | number;
386
+ data?: string | null | undefined;
334
387
  } | null | undefined;
388
+ itemOnPlatforms?: {
389
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
390
+ id: string;
391
+ accountId: string;
392
+ itemId: string | number;
393
+ platformId: string;
394
+ platformUrl: string;
395
+ platformPrice: number;
396
+ account?: {
397
+ platform: "VINTED" | "SHOPIFY";
398
+ accountId: string;
399
+ userId: string | number;
400
+ name: string;
401
+ } | null | undefined;
402
+ }[] | null | undefined;
335
403
  }, {
336
404
  id: string | number;
337
405
  userId: string | number;
@@ -419,12 +487,27 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
419
487
  fieldId: string | number;
420
488
  }[] | null | undefined;
421
489
  lastHistory?: {
422
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
490
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
423
491
  id: string;
424
- data: string;
425
492
  createdAt: Date;
426
493
  itemId: string | number;
494
+ data?: string | null | undefined;
427
495
  } | null | undefined;
496
+ itemOnPlatforms?: {
497
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
498
+ id: string;
499
+ accountId: string;
500
+ itemId: string | number;
501
+ platformId: string;
502
+ platformUrl: string;
503
+ platformPrice: number;
504
+ account?: {
505
+ platform: "VINTED" | "SHOPIFY";
506
+ accountId: string;
507
+ userId: string | number;
508
+ name: string;
509
+ } | null | undefined;
510
+ }[] | null | undefined;
428
511
  }>;
429
512
  }, "strip", z.ZodTypeAny, {
430
513
  item: {
@@ -514,12 +597,27 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
514
597
  fieldId: string | number;
515
598
  }[] | null | undefined;
516
599
  lastHistory?: {
517
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
600
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
518
601
  id: string;
519
- data: string;
520
602
  createdAt: Date;
521
603
  itemId: string | number;
604
+ data?: string | null | undefined;
522
605
  } | null | undefined;
606
+ itemOnPlatforms?: {
607
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
608
+ id: string;
609
+ accountId: string;
610
+ itemId: string | number;
611
+ platformId: string;
612
+ platformUrl: string;
613
+ platformPrice: number;
614
+ account?: {
615
+ platform: "VINTED" | "SHOPIFY";
616
+ accountId: string;
617
+ userId: string | number;
618
+ name: string;
619
+ } | null | undefined;
620
+ }[] | null | undefined;
523
621
  };
524
622
  request: {
525
623
  accountsId: string[];
@@ -613,12 +711,27 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
613
711
  fieldId: string | number;
614
712
  }[] | null | undefined;
615
713
  lastHistory?: {
616
- type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
714
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
617
715
  id: string;
618
- data: string;
619
716
  createdAt: Date;
620
717
  itemId: string | number;
718
+ data?: string | null | undefined;
621
719
  } | null | undefined;
720
+ itemOnPlatforms?: {
721
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
722
+ id: string;
723
+ accountId: string;
724
+ itemId: string | number;
725
+ platformId: string;
726
+ platformUrl: string;
727
+ platformPrice: number;
728
+ account?: {
729
+ platform: "VINTED" | "SHOPIFY";
730
+ accountId: string;
731
+ userId: string | number;
732
+ name: string;
733
+ } | null | undefined;
734
+ }[] | null | undefined;
622
735
  };
623
736
  request: {
624
737
  accountsId: string[];
@@ -3,10 +3,10 @@ export declare const UpdateItemOnPlatformPayloadSchema: z.ZodObject<{
3
3
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>>>;
4
4
  platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- status?: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
6
+ status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
7
7
  platformPrice?: number | null | undefined;
8
8
  }, {
9
- status?: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
9
+ status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
10
10
  platformPrice?: number | null | undefined;
11
11
  }>;
12
12
  export type UpdateItemOnPlatformPayload = z.infer<typeof UpdateItemOnPlatformPayloadSchema>;
@@ -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"]>;
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"]>;
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";
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";
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";
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";
16
16
  date: Date;
17
17
  price: number;
18
18
  platformOrderId: string;