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
@@ -221,56 +221,6 @@ export declare const ItemSchema: z.ZodObject<{
221
221
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
222
222
  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"]>;
223
223
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
224
- type: z.ZodLiteral<"EMPTY">;
225
- }, "strip", z.ZodTypeAny, {
226
- type: "EMPTY";
227
- }, {
228
- type: "EMPTY";
229
- }>, z.ZodObject<{
230
- type: z.ZodLiteral<"SCHEDULED">;
231
- data: z.ZodObject<{
232
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
233
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
234
- }, "strip", z.ZodTypeAny, {
235
- platform: "VINTED" | "SHOPIFY";
236
- publishingDate?: Date | null | undefined;
237
- }, {
238
- platform: "VINTED" | "SHOPIFY";
239
- publishingDate?: Date | null | undefined;
240
- }>;
241
- }, "strip", z.ZodTypeAny, {
242
- type: "SCHEDULED";
243
- data: {
244
- platform: "VINTED" | "SHOPIFY";
245
- publishingDate?: Date | null | undefined;
246
- };
247
- }, {
248
- type: "SCHEDULED";
249
- data: {
250
- platform: "VINTED" | "SHOPIFY";
251
- publishingDate?: Date | null | undefined;
252
- };
253
- }>, z.ZodObject<{
254
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
255
- data: z.ZodObject<{
256
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
257
- }, "strip", z.ZodTypeAny, {
258
- platform: "VINTED" | "SHOPIFY";
259
- }, {
260
- platform: "VINTED" | "SHOPIFY";
261
- }>;
262
- }, "strip", z.ZodTypeAny, {
263
- type: "FAILED_TO_PUBLISH";
264
- data: {
265
- platform: "VINTED" | "SHOPIFY";
266
- };
267
- }, {
268
- type: "FAILED_TO_PUBLISH";
269
- data: {
270
- platform: "VINTED" | "SHOPIFY";
271
- };
272
- }>, z.ZodObject<{
273
- type: z.ZodLiteral<"BUYER_PAID">;
274
224
  data: z.ZodObject<{
275
225
  soldAccountId: z.ZodString;
276
226
  soldOrderId: z.ZodString;
@@ -284,6 +234,7 @@ export declare const ItemSchema: z.ZodObject<{
284
234
  soldOrderId: string;
285
235
  soldConversationId?: string | null | undefined;
286
236
  }>;
237
+ type: z.ZodLiteral<"BUYER_PAID">;
287
238
  }, "strip", z.ZodTypeAny, {
288
239
  type: "BUYER_PAID";
289
240
  data: {
@@ -299,7 +250,6 @@ export declare const ItemSchema: z.ZodObject<{
299
250
  soldConversationId?: string | null | undefined;
300
251
  };
301
252
  }>, z.ZodObject<{
302
- type: z.ZodLiteral<"DELIVERED">;
303
253
  data: z.ZodObject<{
304
254
  soldAccountId: z.ZodString;
305
255
  soldOrderId: z.ZodString;
@@ -313,6 +263,7 @@ export declare const ItemSchema: z.ZodObject<{
313
263
  soldOrderId: string;
314
264
  soldConversationId?: string | null | undefined;
315
265
  }>;
266
+ type: z.ZodLiteral<"DELIVERED">;
316
267
  }, "strip", z.ZodTypeAny, {
317
268
  type: "DELIVERED";
318
269
  data: {
@@ -328,7 +279,31 @@ export declare const ItemSchema: z.ZodObject<{
328
279
  soldConversationId?: string | null | undefined;
329
280
  };
330
281
  }>, z.ZodObject<{
331
- type: z.ZodLiteral<"REPUBLISHING">;
282
+ type: z.ZodLiteral<"EMPTY">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ type: "EMPTY";
285
+ }, {
286
+ type: "EMPTY";
287
+ }>, z.ZodObject<{
288
+ data: z.ZodObject<{
289
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ platform: "VINTED" | "SHOPIFY";
292
+ }, {
293
+ platform: "VINTED" | "SHOPIFY";
294
+ }>;
295
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
296
+ }, "strip", z.ZodTypeAny, {
297
+ type: "FAILED_TO_PUBLISH";
298
+ data: {
299
+ platform: "VINTED" | "SHOPIFY";
300
+ };
301
+ }, {
302
+ type: "FAILED_TO_PUBLISH";
303
+ data: {
304
+ platform: "VINTED" | "SHOPIFY";
305
+ };
306
+ }>, z.ZodObject<{
332
307
  data: z.ZodObject<{
333
308
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
334
309
  }, "strip", z.ZodTypeAny, {
@@ -336,6 +311,7 @@ export declare const ItemSchema: z.ZodObject<{
336
311
  }, {
337
312
  platform: "VINTED" | "SHOPIFY";
338
313
  }>;
314
+ type: z.ZodLiteral<"REPUBLISHING">;
339
315
  }, "strip", z.ZodTypeAny, {
340
316
  type: "REPUBLISHING";
341
317
  data: {
@@ -346,27 +322,38 @@ export declare const ItemSchema: z.ZodObject<{
346
322
  data: {
347
323
  platform: "VINTED" | "SHOPIFY";
348
324
  };
349
- }>]>>>;
350
- createdAt: z.ZodDate;
351
- }, "strip", z.ZodTypeAny, {
352
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
353
- id: string;
354
- createdAt: Date;
355
- itemId: string | number;
356
- data?: {
357
- type: "EMPTY";
358
- } | {
325
+ }>, z.ZodObject<{
326
+ data: z.ZodObject<{
327
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
328
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ platform: "VINTED" | "SHOPIFY";
331
+ publishingDate?: Date | null | undefined;
332
+ }, {
333
+ platform: "VINTED" | "SHOPIFY";
334
+ publishingDate?: Date | null | undefined;
335
+ }>;
336
+ type: z.ZodLiteral<"SCHEDULED">;
337
+ }, "strip", z.ZodTypeAny, {
359
338
  type: "SCHEDULED";
360
339
  data: {
361
340
  platform: "VINTED" | "SHOPIFY";
362
341
  publishingDate?: Date | null | undefined;
363
342
  };
364
- } | {
365
- type: "FAILED_TO_PUBLISH";
343
+ }, {
344
+ type: "SCHEDULED";
366
345
  data: {
367
346
  platform: "VINTED" | "SHOPIFY";
347
+ publishingDate?: Date | null | undefined;
368
348
  };
369
- } | {
349
+ }>]>>>;
350
+ createdAt: z.ZodDate;
351
+ }, "strip", z.ZodTypeAny, {
352
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
353
+ id: string;
354
+ createdAt: Date;
355
+ itemId: string | number;
356
+ data?: {
370
357
  type: "BUYER_PAID";
371
358
  data: {
372
359
  soldAccountId: string;
@@ -381,30 +368,30 @@ export declare const ItemSchema: z.ZodObject<{
381
368
  soldConversationId?: string | null | undefined;
382
369
  };
383
370
  } | {
384
- type: "REPUBLISHING";
371
+ type: "EMPTY";
372
+ } | {
373
+ type: "FAILED_TO_PUBLISH";
385
374
  data: {
386
375
  platform: "VINTED" | "SHOPIFY";
387
376
  };
388
- } | null | undefined;
389
- }, {
390
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
391
- id: string;
392
- createdAt: Date;
393
- itemId: string | number;
394
- data?: {
395
- type: "EMPTY";
396
377
  } | {
397
- type: "SCHEDULED";
378
+ type: "REPUBLISHING";
398
379
  data: {
399
380
  platform: "VINTED" | "SHOPIFY";
400
- publishingDate?: Date | null | undefined;
401
381
  };
402
382
  } | {
403
- type: "FAILED_TO_PUBLISH";
383
+ type: "SCHEDULED";
404
384
  data: {
405
385
  platform: "VINTED" | "SHOPIFY";
386
+ publishingDate?: Date | null | undefined;
406
387
  };
407
- } | {
388
+ } | null | undefined;
389
+ }, {
390
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
391
+ id: string;
392
+ createdAt: Date;
393
+ itemId: string | number;
394
+ data?: {
408
395
  type: "BUYER_PAID";
409
396
  data: {
410
397
  soldAccountId: string;
@@ -418,11 +405,24 @@ export declare const ItemSchema: z.ZodObject<{
418
405
  soldOrderId: string;
419
406
  soldConversationId?: string | null | undefined;
420
407
  };
408
+ } | {
409
+ type: "EMPTY";
410
+ } | {
411
+ type: "FAILED_TO_PUBLISH";
412
+ data: {
413
+ platform: "VINTED" | "SHOPIFY";
414
+ };
421
415
  } | {
422
416
  type: "REPUBLISHING";
423
417
  data: {
424
418
  platform: "VINTED" | "SHOPIFY";
425
419
  };
420
+ } | {
421
+ type: "SCHEDULED";
422
+ data: {
423
+ platform: "VINTED" | "SHOPIFY";
424
+ publishingDate?: Date | null | undefined;
425
+ };
426
426
  } | null | undefined;
427
427
  }>>>;
428
428
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -600,19 +600,6 @@ export declare const ItemSchema: z.ZodObject<{
600
600
  createdAt: Date;
601
601
  itemId: string | number;
602
602
  data?: {
603
- type: "EMPTY";
604
- } | {
605
- type: "SCHEDULED";
606
- data: {
607
- platform: "VINTED" | "SHOPIFY";
608
- publishingDate?: Date | null | undefined;
609
- };
610
- } | {
611
- type: "FAILED_TO_PUBLISH";
612
- data: {
613
- platform: "VINTED" | "SHOPIFY";
614
- };
615
- } | {
616
603
  type: "BUYER_PAID";
617
604
  data: {
618
605
  soldAccountId: string;
@@ -626,11 +613,24 @@ export declare const ItemSchema: z.ZodObject<{
626
613
  soldOrderId: string;
627
614
  soldConversationId?: string | null | undefined;
628
615
  };
616
+ } | {
617
+ type: "EMPTY";
618
+ } | {
619
+ type: "FAILED_TO_PUBLISH";
620
+ data: {
621
+ platform: "VINTED" | "SHOPIFY";
622
+ };
629
623
  } | {
630
624
  type: "REPUBLISHING";
631
625
  data: {
632
626
  platform: "VINTED" | "SHOPIFY";
633
627
  };
628
+ } | {
629
+ type: "SCHEDULED";
630
+ data: {
631
+ platform: "VINTED" | "SHOPIFY";
632
+ publishingDate?: Date | null | undefined;
633
+ };
634
634
  } | null | undefined;
635
635
  } | null | undefined;
636
636
  }, {
@@ -743,19 +743,6 @@ export declare const ItemSchema: z.ZodObject<{
743
743
  createdAt: Date;
744
744
  itemId: string | number;
745
745
  data?: {
746
- type: "EMPTY";
747
- } | {
748
- type: "SCHEDULED";
749
- data: {
750
- platform: "VINTED" | "SHOPIFY";
751
- publishingDate?: Date | null | undefined;
752
- };
753
- } | {
754
- type: "FAILED_TO_PUBLISH";
755
- data: {
756
- platform: "VINTED" | "SHOPIFY";
757
- };
758
- } | {
759
746
  type: "BUYER_PAID";
760
747
  data: {
761
748
  soldAccountId: string;
@@ -769,11 +756,24 @@ export declare const ItemSchema: z.ZodObject<{
769
756
  soldOrderId: string;
770
757
  soldConversationId?: string | null | undefined;
771
758
  };
759
+ } | {
760
+ type: "EMPTY";
761
+ } | {
762
+ type: "FAILED_TO_PUBLISH";
763
+ data: {
764
+ platform: "VINTED" | "SHOPIFY";
765
+ };
772
766
  } | {
773
767
  type: "REPUBLISHING";
774
768
  data: {
775
769
  platform: "VINTED" | "SHOPIFY";
776
770
  };
771
+ } | {
772
+ type: "SCHEDULED";
773
+ data: {
774
+ platform: "VINTED" | "SHOPIFY";
775
+ publishingDate?: Date | null | undefined;
776
+ };
777
777
  } | null | undefined;
778
778
  } | null | undefined;
779
779
  }>;