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.
- package/package.json +2 -2
- package/src/com/controlresell/models/items/CreatedItems.d.ts +130 -130
- package/src/com/controlresell/models/items/Item.d.ts +104 -104
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +130 -130
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +130 -130
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +130 -130
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +130 -130
- package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +130 -130
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
- package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +1417 -1417
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -1
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.2
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"controlresell-connector": "^0.3.7",
|
|
21
|
-
"zod": "^3.25.
|
|
21
|
+
"zod": "^3.25.76",
|
|
22
22
|
"zodable-idschema": "^1.0.0",
|
|
23
23
|
"zodable-kotlin-primitives": "^1.0.0"
|
|
24
24
|
}
|
|
@@ -222,56 +222,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
222
222
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
223
223
|
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"]>;
|
|
224
224
|
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
225
|
-
type: z.ZodLiteral<"EMPTY">;
|
|
226
|
-
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
type: "EMPTY";
|
|
228
|
-
}, {
|
|
229
|
-
type: "EMPTY";
|
|
230
|
-
}>, z.ZodObject<{
|
|
231
|
-
type: z.ZodLiteral<"SCHEDULED">;
|
|
232
|
-
data: z.ZodObject<{
|
|
233
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
234
|
-
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
235
|
-
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
platform: "VINTED" | "SHOPIFY";
|
|
237
|
-
publishingDate?: Date | null | undefined;
|
|
238
|
-
}, {
|
|
239
|
-
platform: "VINTED" | "SHOPIFY";
|
|
240
|
-
publishingDate?: Date | null | undefined;
|
|
241
|
-
}>;
|
|
242
|
-
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
type: "SCHEDULED";
|
|
244
|
-
data: {
|
|
245
|
-
platform: "VINTED" | "SHOPIFY";
|
|
246
|
-
publishingDate?: Date | null | undefined;
|
|
247
|
-
};
|
|
248
|
-
}, {
|
|
249
|
-
type: "SCHEDULED";
|
|
250
|
-
data: {
|
|
251
|
-
platform: "VINTED" | "SHOPIFY";
|
|
252
|
-
publishingDate?: Date | null | undefined;
|
|
253
|
-
};
|
|
254
|
-
}>, z.ZodObject<{
|
|
255
|
-
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
256
|
-
data: z.ZodObject<{
|
|
257
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
258
|
-
}, "strip", z.ZodTypeAny, {
|
|
259
|
-
platform: "VINTED" | "SHOPIFY";
|
|
260
|
-
}, {
|
|
261
|
-
platform: "VINTED" | "SHOPIFY";
|
|
262
|
-
}>;
|
|
263
|
-
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
type: "FAILED_TO_PUBLISH";
|
|
265
|
-
data: {
|
|
266
|
-
platform: "VINTED" | "SHOPIFY";
|
|
267
|
-
};
|
|
268
|
-
}, {
|
|
269
|
-
type: "FAILED_TO_PUBLISH";
|
|
270
|
-
data: {
|
|
271
|
-
platform: "VINTED" | "SHOPIFY";
|
|
272
|
-
};
|
|
273
|
-
}>, z.ZodObject<{
|
|
274
|
-
type: z.ZodLiteral<"BUYER_PAID">;
|
|
275
225
|
data: z.ZodObject<{
|
|
276
226
|
soldAccountId: z.ZodString;
|
|
277
227
|
soldOrderId: z.ZodString;
|
|
@@ -285,6 +235,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
285
235
|
soldOrderId: string;
|
|
286
236
|
soldConversationId?: string | null | undefined;
|
|
287
237
|
}>;
|
|
238
|
+
type: z.ZodLiteral<"BUYER_PAID">;
|
|
288
239
|
}, "strip", z.ZodTypeAny, {
|
|
289
240
|
type: "BUYER_PAID";
|
|
290
241
|
data: {
|
|
@@ -300,7 +251,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
300
251
|
soldConversationId?: string | null | undefined;
|
|
301
252
|
};
|
|
302
253
|
}>, z.ZodObject<{
|
|
303
|
-
type: z.ZodLiteral<"DELIVERED">;
|
|
304
254
|
data: z.ZodObject<{
|
|
305
255
|
soldAccountId: z.ZodString;
|
|
306
256
|
soldOrderId: z.ZodString;
|
|
@@ -314,6 +264,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
314
264
|
soldOrderId: string;
|
|
315
265
|
soldConversationId?: string | null | undefined;
|
|
316
266
|
}>;
|
|
267
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
317
268
|
}, "strip", z.ZodTypeAny, {
|
|
318
269
|
type: "DELIVERED";
|
|
319
270
|
data: {
|
|
@@ -329,7 +280,31 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
329
280
|
soldConversationId?: string | null | undefined;
|
|
330
281
|
};
|
|
331
282
|
}>, z.ZodObject<{
|
|
332
|
-
type: z.ZodLiteral<"
|
|
283
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
type: "EMPTY";
|
|
286
|
+
}, {
|
|
287
|
+
type: "EMPTY";
|
|
288
|
+
}>, z.ZodObject<{
|
|
289
|
+
data: z.ZodObject<{
|
|
290
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
platform: "VINTED" | "SHOPIFY";
|
|
293
|
+
}, {
|
|
294
|
+
platform: "VINTED" | "SHOPIFY";
|
|
295
|
+
}>;
|
|
296
|
+
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
type: "FAILED_TO_PUBLISH";
|
|
299
|
+
data: {
|
|
300
|
+
platform: "VINTED" | "SHOPIFY";
|
|
301
|
+
};
|
|
302
|
+
}, {
|
|
303
|
+
type: "FAILED_TO_PUBLISH";
|
|
304
|
+
data: {
|
|
305
|
+
platform: "VINTED" | "SHOPIFY";
|
|
306
|
+
};
|
|
307
|
+
}>, z.ZodObject<{
|
|
333
308
|
data: z.ZodObject<{
|
|
334
309
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
335
310
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -337,6 +312,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
337
312
|
}, {
|
|
338
313
|
platform: "VINTED" | "SHOPIFY";
|
|
339
314
|
}>;
|
|
315
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
340
316
|
}, "strip", z.ZodTypeAny, {
|
|
341
317
|
type: "REPUBLISHING";
|
|
342
318
|
data: {
|
|
@@ -347,27 +323,38 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
347
323
|
data: {
|
|
348
324
|
platform: "VINTED" | "SHOPIFY";
|
|
349
325
|
};
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
326
|
+
}>, z.ZodObject<{
|
|
327
|
+
data: z.ZodObject<{
|
|
328
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
329
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
platform: "VINTED" | "SHOPIFY";
|
|
332
|
+
publishingDate?: Date | null | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
platform: "VINTED" | "SHOPIFY";
|
|
335
|
+
publishingDate?: Date | null | undefined;
|
|
336
|
+
}>;
|
|
337
|
+
type: z.ZodLiteral<"SCHEDULED">;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
339
|
type: "SCHEDULED";
|
|
361
340
|
data: {
|
|
362
341
|
platform: "VINTED" | "SHOPIFY";
|
|
363
342
|
publishingDate?: Date | null | undefined;
|
|
364
343
|
};
|
|
365
|
-
}
|
|
366
|
-
type: "
|
|
344
|
+
}, {
|
|
345
|
+
type: "SCHEDULED";
|
|
367
346
|
data: {
|
|
368
347
|
platform: "VINTED" | "SHOPIFY";
|
|
348
|
+
publishingDate?: Date | null | undefined;
|
|
369
349
|
};
|
|
370
|
-
}
|
|
350
|
+
}>]>>>;
|
|
351
|
+
createdAt: z.ZodDate;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
354
|
+
id: string;
|
|
355
|
+
createdAt: Date;
|
|
356
|
+
itemId: string | number;
|
|
357
|
+
data?: {
|
|
371
358
|
type: "BUYER_PAID";
|
|
372
359
|
data: {
|
|
373
360
|
soldAccountId: string;
|
|
@@ -382,30 +369,30 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
382
369
|
soldConversationId?: string | null | undefined;
|
|
383
370
|
};
|
|
384
371
|
} | {
|
|
385
|
-
type: "
|
|
372
|
+
type: "EMPTY";
|
|
373
|
+
} | {
|
|
374
|
+
type: "FAILED_TO_PUBLISH";
|
|
386
375
|
data: {
|
|
387
376
|
platform: "VINTED" | "SHOPIFY";
|
|
388
377
|
};
|
|
389
|
-
} | null | undefined;
|
|
390
|
-
}, {
|
|
391
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
392
|
-
id: string;
|
|
393
|
-
createdAt: Date;
|
|
394
|
-
itemId: string | number;
|
|
395
|
-
data?: {
|
|
396
|
-
type: "EMPTY";
|
|
397
378
|
} | {
|
|
398
|
-
type: "
|
|
379
|
+
type: "REPUBLISHING";
|
|
399
380
|
data: {
|
|
400
381
|
platform: "VINTED" | "SHOPIFY";
|
|
401
|
-
publishingDate?: Date | null | undefined;
|
|
402
382
|
};
|
|
403
383
|
} | {
|
|
404
|
-
type: "
|
|
384
|
+
type: "SCHEDULED";
|
|
405
385
|
data: {
|
|
406
386
|
platform: "VINTED" | "SHOPIFY";
|
|
387
|
+
publishingDate?: Date | null | undefined;
|
|
407
388
|
};
|
|
408
|
-
} |
|
|
389
|
+
} | null | undefined;
|
|
390
|
+
}, {
|
|
391
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
392
|
+
id: string;
|
|
393
|
+
createdAt: Date;
|
|
394
|
+
itemId: string | number;
|
|
395
|
+
data?: {
|
|
409
396
|
type: "BUYER_PAID";
|
|
410
397
|
data: {
|
|
411
398
|
soldAccountId: string;
|
|
@@ -419,11 +406,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
419
406
|
soldOrderId: string;
|
|
420
407
|
soldConversationId?: string | null | undefined;
|
|
421
408
|
};
|
|
409
|
+
} | {
|
|
410
|
+
type: "EMPTY";
|
|
411
|
+
} | {
|
|
412
|
+
type: "FAILED_TO_PUBLISH";
|
|
413
|
+
data: {
|
|
414
|
+
platform: "VINTED" | "SHOPIFY";
|
|
415
|
+
};
|
|
422
416
|
} | {
|
|
423
417
|
type: "REPUBLISHING";
|
|
424
418
|
data: {
|
|
425
419
|
platform: "VINTED" | "SHOPIFY";
|
|
426
420
|
};
|
|
421
|
+
} | {
|
|
422
|
+
type: "SCHEDULED";
|
|
423
|
+
data: {
|
|
424
|
+
platform: "VINTED" | "SHOPIFY";
|
|
425
|
+
publishingDate?: Date | null | undefined;
|
|
426
|
+
};
|
|
427
427
|
} | null | undefined;
|
|
428
428
|
}>>>;
|
|
429
429
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -601,19 +601,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
601
601
|
createdAt: Date;
|
|
602
602
|
itemId: string | number;
|
|
603
603
|
data?: {
|
|
604
|
-
type: "EMPTY";
|
|
605
|
-
} | {
|
|
606
|
-
type: "SCHEDULED";
|
|
607
|
-
data: {
|
|
608
|
-
platform: "VINTED" | "SHOPIFY";
|
|
609
|
-
publishingDate?: Date | null | undefined;
|
|
610
|
-
};
|
|
611
|
-
} | {
|
|
612
|
-
type: "FAILED_TO_PUBLISH";
|
|
613
|
-
data: {
|
|
614
|
-
platform: "VINTED" | "SHOPIFY";
|
|
615
|
-
};
|
|
616
|
-
} | {
|
|
617
604
|
type: "BUYER_PAID";
|
|
618
605
|
data: {
|
|
619
606
|
soldAccountId: string;
|
|
@@ -627,11 +614,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
627
614
|
soldOrderId: string;
|
|
628
615
|
soldConversationId?: string | null | undefined;
|
|
629
616
|
};
|
|
617
|
+
} | {
|
|
618
|
+
type: "EMPTY";
|
|
619
|
+
} | {
|
|
620
|
+
type: "FAILED_TO_PUBLISH";
|
|
621
|
+
data: {
|
|
622
|
+
platform: "VINTED" | "SHOPIFY";
|
|
623
|
+
};
|
|
630
624
|
} | {
|
|
631
625
|
type: "REPUBLISHING";
|
|
632
626
|
data: {
|
|
633
627
|
platform: "VINTED" | "SHOPIFY";
|
|
634
628
|
};
|
|
629
|
+
} | {
|
|
630
|
+
type: "SCHEDULED";
|
|
631
|
+
data: {
|
|
632
|
+
platform: "VINTED" | "SHOPIFY";
|
|
633
|
+
publishingDate?: Date | null | undefined;
|
|
634
|
+
};
|
|
635
635
|
} | null | undefined;
|
|
636
636
|
} | null | undefined;
|
|
637
637
|
}, {
|
|
@@ -744,19 +744,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
744
744
|
createdAt: Date;
|
|
745
745
|
itemId: string | number;
|
|
746
746
|
data?: {
|
|
747
|
-
type: "EMPTY";
|
|
748
|
-
} | {
|
|
749
|
-
type: "SCHEDULED";
|
|
750
|
-
data: {
|
|
751
|
-
platform: "VINTED" | "SHOPIFY";
|
|
752
|
-
publishingDate?: Date | null | undefined;
|
|
753
|
-
};
|
|
754
|
-
} | {
|
|
755
|
-
type: "FAILED_TO_PUBLISH";
|
|
756
|
-
data: {
|
|
757
|
-
platform: "VINTED" | "SHOPIFY";
|
|
758
|
-
};
|
|
759
|
-
} | {
|
|
760
747
|
type: "BUYER_PAID";
|
|
761
748
|
data: {
|
|
762
749
|
soldAccountId: string;
|
|
@@ -770,11 +757,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
770
757
|
soldOrderId: string;
|
|
771
758
|
soldConversationId?: string | null | undefined;
|
|
772
759
|
};
|
|
760
|
+
} | {
|
|
761
|
+
type: "EMPTY";
|
|
762
|
+
} | {
|
|
763
|
+
type: "FAILED_TO_PUBLISH";
|
|
764
|
+
data: {
|
|
765
|
+
platform: "VINTED" | "SHOPIFY";
|
|
766
|
+
};
|
|
773
767
|
} | {
|
|
774
768
|
type: "REPUBLISHING";
|
|
775
769
|
data: {
|
|
776
770
|
platform: "VINTED" | "SHOPIFY";
|
|
777
771
|
};
|
|
772
|
+
} | {
|
|
773
|
+
type: "SCHEDULED";
|
|
774
|
+
data: {
|
|
775
|
+
platform: "VINTED" | "SHOPIFY";
|
|
776
|
+
publishingDate?: Date | null | undefined;
|
|
777
|
+
};
|
|
778
778
|
} | null | undefined;
|
|
779
779
|
} | null | undefined;
|
|
780
780
|
}>, "many">;
|
|
@@ -911,19 +911,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
911
911
|
createdAt: Date;
|
|
912
912
|
itemId: string | number;
|
|
913
913
|
data?: {
|
|
914
|
-
type: "EMPTY";
|
|
915
|
-
} | {
|
|
916
|
-
type: "SCHEDULED";
|
|
917
|
-
data: {
|
|
918
|
-
platform: "VINTED" | "SHOPIFY";
|
|
919
|
-
publishingDate?: Date | null | undefined;
|
|
920
|
-
};
|
|
921
|
-
} | {
|
|
922
|
-
type: "FAILED_TO_PUBLISH";
|
|
923
|
-
data: {
|
|
924
|
-
platform: "VINTED" | "SHOPIFY";
|
|
925
|
-
};
|
|
926
|
-
} | {
|
|
927
914
|
type: "BUYER_PAID";
|
|
928
915
|
data: {
|
|
929
916
|
soldAccountId: string;
|
|
@@ -937,11 +924,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
937
924
|
soldOrderId: string;
|
|
938
925
|
soldConversationId?: string | null | undefined;
|
|
939
926
|
};
|
|
927
|
+
} | {
|
|
928
|
+
type: "EMPTY";
|
|
929
|
+
} | {
|
|
930
|
+
type: "FAILED_TO_PUBLISH";
|
|
931
|
+
data: {
|
|
932
|
+
platform: "VINTED" | "SHOPIFY";
|
|
933
|
+
};
|
|
940
934
|
} | {
|
|
941
935
|
type: "REPUBLISHING";
|
|
942
936
|
data: {
|
|
943
937
|
platform: "VINTED" | "SHOPIFY";
|
|
944
938
|
};
|
|
939
|
+
} | {
|
|
940
|
+
type: "SCHEDULED";
|
|
941
|
+
data: {
|
|
942
|
+
platform: "VINTED" | "SHOPIFY";
|
|
943
|
+
publishingDate?: Date | null | undefined;
|
|
944
|
+
};
|
|
945
945
|
} | null | undefined;
|
|
946
946
|
} | null | undefined;
|
|
947
947
|
}[];
|
|
@@ -1064,19 +1064,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1064
1064
|
createdAt: Date;
|
|
1065
1065
|
itemId: string | number;
|
|
1066
1066
|
data?: {
|
|
1067
|
-
type: "EMPTY";
|
|
1068
|
-
} | {
|
|
1069
|
-
type: "SCHEDULED";
|
|
1070
|
-
data: {
|
|
1071
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1072
|
-
publishingDate?: Date | null | undefined;
|
|
1073
|
-
};
|
|
1074
|
-
} | {
|
|
1075
|
-
type: "FAILED_TO_PUBLISH";
|
|
1076
|
-
data: {
|
|
1077
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1078
|
-
};
|
|
1079
|
-
} | {
|
|
1080
1067
|
type: "BUYER_PAID";
|
|
1081
1068
|
data: {
|
|
1082
1069
|
soldAccountId: string;
|
|
@@ -1090,11 +1077,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1090
1077
|
soldOrderId: string;
|
|
1091
1078
|
soldConversationId?: string | null | undefined;
|
|
1092
1079
|
};
|
|
1080
|
+
} | {
|
|
1081
|
+
type: "EMPTY";
|
|
1082
|
+
} | {
|
|
1083
|
+
type: "FAILED_TO_PUBLISH";
|
|
1084
|
+
data: {
|
|
1085
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1086
|
+
};
|
|
1093
1087
|
} | {
|
|
1094
1088
|
type: "REPUBLISHING";
|
|
1095
1089
|
data: {
|
|
1096
1090
|
platform: "VINTED" | "SHOPIFY";
|
|
1097
1091
|
};
|
|
1092
|
+
} | {
|
|
1093
|
+
type: "SCHEDULED";
|
|
1094
|
+
data: {
|
|
1095
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1096
|
+
publishingDate?: Date | null | undefined;
|
|
1097
|
+
};
|
|
1098
1098
|
} | null | undefined;
|
|
1099
1099
|
} | null | undefined;
|
|
1100
1100
|
}[];
|