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
@@ -224,56 +224,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
224
224
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
225
225
  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"]>;
226
226
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
227
- type: z.ZodLiteral<"EMPTY">;
228
- }, "strip", z.ZodTypeAny, {
229
- type: "EMPTY";
230
- }, {
231
- type: "EMPTY";
232
- }>, z.ZodObject<{
233
- type: z.ZodLiteral<"SCHEDULED">;
234
- data: z.ZodObject<{
235
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
236
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
237
- }, "strip", z.ZodTypeAny, {
238
- platform: "VINTED" | "SHOPIFY";
239
- publishingDate?: Date | null | undefined;
240
- }, {
241
- platform: "VINTED" | "SHOPIFY";
242
- publishingDate?: Date | null | undefined;
243
- }>;
244
- }, "strip", z.ZodTypeAny, {
245
- type: "SCHEDULED";
246
- data: {
247
- platform: "VINTED" | "SHOPIFY";
248
- publishingDate?: Date | null | undefined;
249
- };
250
- }, {
251
- type: "SCHEDULED";
252
- data: {
253
- platform: "VINTED" | "SHOPIFY";
254
- publishingDate?: Date | null | undefined;
255
- };
256
- }>, z.ZodObject<{
257
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
258
- data: z.ZodObject<{
259
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
260
- }, "strip", z.ZodTypeAny, {
261
- platform: "VINTED" | "SHOPIFY";
262
- }, {
263
- platform: "VINTED" | "SHOPIFY";
264
- }>;
265
- }, "strip", z.ZodTypeAny, {
266
- type: "FAILED_TO_PUBLISH";
267
- data: {
268
- platform: "VINTED" | "SHOPIFY";
269
- };
270
- }, {
271
- type: "FAILED_TO_PUBLISH";
272
- data: {
273
- platform: "VINTED" | "SHOPIFY";
274
- };
275
- }>, z.ZodObject<{
276
- type: z.ZodLiteral<"BUYER_PAID">;
277
227
  data: z.ZodObject<{
278
228
  soldAccountId: z.ZodString;
279
229
  soldOrderId: z.ZodString;
@@ -287,6 +237,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
287
237
  soldOrderId: string;
288
238
  soldConversationId?: string | null | undefined;
289
239
  }>;
240
+ type: z.ZodLiteral<"BUYER_PAID">;
290
241
  }, "strip", z.ZodTypeAny, {
291
242
  type: "BUYER_PAID";
292
243
  data: {
@@ -302,7 +253,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
302
253
  soldConversationId?: string | null | undefined;
303
254
  };
304
255
  }>, z.ZodObject<{
305
- type: z.ZodLiteral<"DELIVERED">;
306
256
  data: z.ZodObject<{
307
257
  soldAccountId: z.ZodString;
308
258
  soldOrderId: z.ZodString;
@@ -316,6 +266,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
316
266
  soldOrderId: string;
317
267
  soldConversationId?: string | null | undefined;
318
268
  }>;
269
+ type: z.ZodLiteral<"DELIVERED">;
319
270
  }, "strip", z.ZodTypeAny, {
320
271
  type: "DELIVERED";
321
272
  data: {
@@ -331,7 +282,31 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
331
282
  soldConversationId?: string | null | undefined;
332
283
  };
333
284
  }>, z.ZodObject<{
334
- type: z.ZodLiteral<"REPUBLISHING">;
285
+ type: z.ZodLiteral<"EMPTY">;
286
+ }, "strip", z.ZodTypeAny, {
287
+ type: "EMPTY";
288
+ }, {
289
+ type: "EMPTY";
290
+ }>, z.ZodObject<{
291
+ data: z.ZodObject<{
292
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ platform: "VINTED" | "SHOPIFY";
295
+ }, {
296
+ platform: "VINTED" | "SHOPIFY";
297
+ }>;
298
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
299
+ }, "strip", z.ZodTypeAny, {
300
+ type: "FAILED_TO_PUBLISH";
301
+ data: {
302
+ platform: "VINTED" | "SHOPIFY";
303
+ };
304
+ }, {
305
+ type: "FAILED_TO_PUBLISH";
306
+ data: {
307
+ platform: "VINTED" | "SHOPIFY";
308
+ };
309
+ }>, z.ZodObject<{
335
310
  data: z.ZodObject<{
336
311
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
337
312
  }, "strip", z.ZodTypeAny, {
@@ -339,6 +314,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
339
314
  }, {
340
315
  platform: "VINTED" | "SHOPIFY";
341
316
  }>;
317
+ type: z.ZodLiteral<"REPUBLISHING">;
342
318
  }, "strip", z.ZodTypeAny, {
343
319
  type: "REPUBLISHING";
344
320
  data: {
@@ -349,27 +325,38 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
349
325
  data: {
350
326
  platform: "VINTED" | "SHOPIFY";
351
327
  };
352
- }>]>>>;
353
- createdAt: z.ZodDate;
354
- }, "strip", z.ZodTypeAny, {
355
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
356
- id: string;
357
- createdAt: Date;
358
- itemId: string | number;
359
- data?: {
360
- type: "EMPTY";
361
- } | {
328
+ }>, z.ZodObject<{
329
+ data: z.ZodObject<{
330
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
331
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ platform: "VINTED" | "SHOPIFY";
334
+ publishingDate?: Date | null | undefined;
335
+ }, {
336
+ platform: "VINTED" | "SHOPIFY";
337
+ publishingDate?: Date | null | undefined;
338
+ }>;
339
+ type: z.ZodLiteral<"SCHEDULED">;
340
+ }, "strip", z.ZodTypeAny, {
362
341
  type: "SCHEDULED";
363
342
  data: {
364
343
  platform: "VINTED" | "SHOPIFY";
365
344
  publishingDate?: Date | null | undefined;
366
345
  };
367
- } | {
368
- type: "FAILED_TO_PUBLISH";
346
+ }, {
347
+ type: "SCHEDULED";
369
348
  data: {
370
349
  platform: "VINTED" | "SHOPIFY";
350
+ publishingDate?: Date | null | undefined;
371
351
  };
372
- } | {
352
+ }>]>>>;
353
+ createdAt: z.ZodDate;
354
+ }, "strip", z.ZodTypeAny, {
355
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
356
+ id: string;
357
+ createdAt: Date;
358
+ itemId: string | number;
359
+ data?: {
373
360
  type: "BUYER_PAID";
374
361
  data: {
375
362
  soldAccountId: string;
@@ -384,30 +371,30 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
384
371
  soldConversationId?: string | null | undefined;
385
372
  };
386
373
  } | {
387
- type: "REPUBLISHING";
374
+ type: "EMPTY";
375
+ } | {
376
+ type: "FAILED_TO_PUBLISH";
388
377
  data: {
389
378
  platform: "VINTED" | "SHOPIFY";
390
379
  };
391
- } | null | undefined;
392
- }, {
393
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
394
- id: string;
395
- createdAt: Date;
396
- itemId: string | number;
397
- data?: {
398
- type: "EMPTY";
399
380
  } | {
400
- type: "SCHEDULED";
381
+ type: "REPUBLISHING";
401
382
  data: {
402
383
  platform: "VINTED" | "SHOPIFY";
403
- publishingDate?: Date | null | undefined;
404
384
  };
405
385
  } | {
406
- type: "FAILED_TO_PUBLISH";
386
+ type: "SCHEDULED";
407
387
  data: {
408
388
  platform: "VINTED" | "SHOPIFY";
389
+ publishingDate?: Date | null | undefined;
409
390
  };
410
- } | {
391
+ } | null | undefined;
392
+ }, {
393
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
394
+ id: string;
395
+ createdAt: Date;
396
+ itemId: string | number;
397
+ data?: {
411
398
  type: "BUYER_PAID";
412
399
  data: {
413
400
  soldAccountId: string;
@@ -421,11 +408,24 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
421
408
  soldOrderId: string;
422
409
  soldConversationId?: string | null | undefined;
423
410
  };
411
+ } | {
412
+ type: "EMPTY";
413
+ } | {
414
+ type: "FAILED_TO_PUBLISH";
415
+ data: {
416
+ platform: "VINTED" | "SHOPIFY";
417
+ };
424
418
  } | {
425
419
  type: "REPUBLISHING";
426
420
  data: {
427
421
  platform: "VINTED" | "SHOPIFY";
428
422
  };
423
+ } | {
424
+ type: "SCHEDULED";
425
+ data: {
426
+ platform: "VINTED" | "SHOPIFY";
427
+ publishingDate?: Date | null | undefined;
428
+ };
429
429
  } | null | undefined;
430
430
  }>>>;
431
431
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -603,19 +603,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
603
603
  createdAt: Date;
604
604
  itemId: string | number;
605
605
  data?: {
606
- type: "EMPTY";
607
- } | {
608
- type: "SCHEDULED";
609
- data: {
610
- platform: "VINTED" | "SHOPIFY";
611
- publishingDate?: Date | null | undefined;
612
- };
613
- } | {
614
- type: "FAILED_TO_PUBLISH";
615
- data: {
616
- platform: "VINTED" | "SHOPIFY";
617
- };
618
- } | {
619
606
  type: "BUYER_PAID";
620
607
  data: {
621
608
  soldAccountId: string;
@@ -629,11 +616,24 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
629
616
  soldOrderId: string;
630
617
  soldConversationId?: string | null | undefined;
631
618
  };
619
+ } | {
620
+ type: "EMPTY";
621
+ } | {
622
+ type: "FAILED_TO_PUBLISH";
623
+ data: {
624
+ platform: "VINTED" | "SHOPIFY";
625
+ };
632
626
  } | {
633
627
  type: "REPUBLISHING";
634
628
  data: {
635
629
  platform: "VINTED" | "SHOPIFY";
636
630
  };
631
+ } | {
632
+ type: "SCHEDULED";
633
+ data: {
634
+ platform: "VINTED" | "SHOPIFY";
635
+ publishingDate?: Date | null | undefined;
636
+ };
637
637
  } | null | undefined;
638
638
  } | null | undefined;
639
639
  }, {
@@ -746,19 +746,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
746
746
  createdAt: Date;
747
747
  itemId: string | number;
748
748
  data?: {
749
- type: "EMPTY";
750
- } | {
751
- type: "SCHEDULED";
752
- data: {
753
- platform: "VINTED" | "SHOPIFY";
754
- publishingDate?: Date | null | undefined;
755
- };
756
- } | {
757
- type: "FAILED_TO_PUBLISH";
758
- data: {
759
- platform: "VINTED" | "SHOPIFY";
760
- };
761
- } | {
762
749
  type: "BUYER_PAID";
763
750
  data: {
764
751
  soldAccountId: string;
@@ -772,11 +759,24 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
772
759
  soldOrderId: string;
773
760
  soldConversationId?: string | null | undefined;
774
761
  };
762
+ } | {
763
+ type: "EMPTY";
764
+ } | {
765
+ type: "FAILED_TO_PUBLISH";
766
+ data: {
767
+ platform: "VINTED" | "SHOPIFY";
768
+ };
775
769
  } | {
776
770
  type: "REPUBLISHING";
777
771
  data: {
778
772
  platform: "VINTED" | "SHOPIFY";
779
773
  };
774
+ } | {
775
+ type: "SCHEDULED";
776
+ data: {
777
+ platform: "VINTED" | "SHOPIFY";
778
+ publishingDate?: Date | null | undefined;
779
+ };
780
780
  } | null | undefined;
781
781
  } | null | undefined;
782
782
  }>, "many">;
@@ -895,19 +895,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
895
895
  createdAt: Date;
896
896
  itemId: string | number;
897
897
  data?: {
898
- type: "EMPTY";
899
- } | {
900
- type: "SCHEDULED";
901
- data: {
902
- platform: "VINTED" | "SHOPIFY";
903
- publishingDate?: Date | null | undefined;
904
- };
905
- } | {
906
- type: "FAILED_TO_PUBLISH";
907
- data: {
908
- platform: "VINTED" | "SHOPIFY";
909
- };
910
- } | {
911
898
  type: "BUYER_PAID";
912
899
  data: {
913
900
  soldAccountId: string;
@@ -921,11 +908,24 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
921
908
  soldOrderId: string;
922
909
  soldConversationId?: string | null | undefined;
923
910
  };
911
+ } | {
912
+ type: "EMPTY";
913
+ } | {
914
+ type: "FAILED_TO_PUBLISH";
915
+ data: {
916
+ platform: "VINTED" | "SHOPIFY";
917
+ };
924
918
  } | {
925
919
  type: "REPUBLISHING";
926
920
  data: {
927
921
  platform: "VINTED" | "SHOPIFY";
928
922
  };
923
+ } | {
924
+ type: "SCHEDULED";
925
+ data: {
926
+ platform: "VINTED" | "SHOPIFY";
927
+ publishingDate?: Date | null | undefined;
928
+ };
929
929
  } | null | undefined;
930
930
  } | null | undefined;
931
931
  }[];
@@ -1044,19 +1044,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
1044
1044
  createdAt: Date;
1045
1045
  itemId: string | number;
1046
1046
  data?: {
1047
- type: "EMPTY";
1048
- } | {
1049
- type: "SCHEDULED";
1050
- data: {
1051
- platform: "VINTED" | "SHOPIFY";
1052
- publishingDate?: Date | null | undefined;
1053
- };
1054
- } | {
1055
- type: "FAILED_TO_PUBLISH";
1056
- data: {
1057
- platform: "VINTED" | "SHOPIFY";
1058
- };
1059
- } | {
1060
1047
  type: "BUYER_PAID";
1061
1048
  data: {
1062
1049
  soldAccountId: string;
@@ -1070,11 +1057,24 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
1070
1057
  soldOrderId: string;
1071
1058
  soldConversationId?: string | null | undefined;
1072
1059
  };
1060
+ } | {
1061
+ type: "EMPTY";
1062
+ } | {
1063
+ type: "FAILED_TO_PUBLISH";
1064
+ data: {
1065
+ platform: "VINTED" | "SHOPIFY";
1066
+ };
1073
1067
  } | {
1074
1068
  type: "REPUBLISHING";
1075
1069
  data: {
1076
1070
  platform: "VINTED" | "SHOPIFY";
1077
1071
  };
1072
+ } | {
1073
+ type: "SCHEDULED";
1074
+ data: {
1075
+ platform: "VINTED" | "SHOPIFY";
1076
+ publishingDate?: Date | null | undefined;
1077
+ };
1078
1078
  } | null | undefined;
1079
1079
  } | null | undefined;
1080
1080
  }[];