controlresell 2.2.8 → 2.2.10
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 +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
- package/src/com/controlresell/models/filters/SavedFilters.d.ts +5 -5
- package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +5 -5
- package/src/com/controlresell/models/items/CreatedItems.d.ts +127 -7
- package/src/com/controlresell/models/items/Item.d.ts +101 -5
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -3
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +127 -7
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +127 -7
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +75 -3
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +75 -3
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +48 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +10 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +10 -0
- package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.d.ts +3 -3
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.d.ts +9 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.js +8 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.ts +7 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +1 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +1 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +8 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.js +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.ts +2 -1
- package/src/com/controlresell/models/items/platforms/PlatformInfo.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/PlatformInfo.js +2 -1
- package/src/com/controlresell/models/items/platforms/PlatformInfo.ts +2 -1
- package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.d.ts +131 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.js +11 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.ts +10 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +127 -7
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +127 -7
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +127 -7
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +2 -1
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +2 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +7 -3
- package/src/index.ts +2 -0
|
@@ -222,7 +222,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
222
222
|
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
223
223
|
id: z.ZodString;
|
|
224
224
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
225
|
-
type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
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
227
|
type: z.ZodLiteral<"EMPTY">;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -301,10 +301,58 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
301
301
|
soldOrderId: string;
|
|
302
302
|
soldConversationId?: string | null | undefined;
|
|
303
303
|
};
|
|
304
|
+
}>, z.ZodObject<{
|
|
305
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
306
|
+
data: z.ZodObject<{
|
|
307
|
+
soldAccountId: z.ZodString;
|
|
308
|
+
soldOrderId: z.ZodString;
|
|
309
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
soldAccountId: string;
|
|
312
|
+
soldOrderId: string;
|
|
313
|
+
soldConversationId?: string | null | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
soldAccountId: string;
|
|
316
|
+
soldOrderId: string;
|
|
317
|
+
soldConversationId?: string | null | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
type: "DELIVERED";
|
|
321
|
+
data: {
|
|
322
|
+
soldAccountId: string;
|
|
323
|
+
soldOrderId: string;
|
|
324
|
+
soldConversationId?: string | null | undefined;
|
|
325
|
+
};
|
|
326
|
+
}, {
|
|
327
|
+
type: "DELIVERED";
|
|
328
|
+
data: {
|
|
329
|
+
soldAccountId: string;
|
|
330
|
+
soldOrderId: string;
|
|
331
|
+
soldConversationId?: string | null | undefined;
|
|
332
|
+
};
|
|
333
|
+
}>, z.ZodObject<{
|
|
334
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
335
|
+
data: z.ZodObject<{
|
|
336
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
platform: "VINTED" | "SHOPIFY";
|
|
339
|
+
}, {
|
|
340
|
+
platform: "VINTED" | "SHOPIFY";
|
|
341
|
+
}>;
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
type: "REPUBLISHING";
|
|
344
|
+
data: {
|
|
345
|
+
platform: "VINTED" | "SHOPIFY";
|
|
346
|
+
};
|
|
347
|
+
}, {
|
|
348
|
+
type: "REPUBLISHING";
|
|
349
|
+
data: {
|
|
350
|
+
platform: "VINTED" | "SHOPIFY";
|
|
351
|
+
};
|
|
304
352
|
}>]>>>;
|
|
305
353
|
createdAt: z.ZodDate;
|
|
306
354
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
355
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
308
356
|
id: string;
|
|
309
357
|
createdAt: Date;
|
|
310
358
|
itemId: string | number;
|
|
@@ -328,9 +376,21 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
328
376
|
soldOrderId: string;
|
|
329
377
|
soldConversationId?: string | null | undefined;
|
|
330
378
|
};
|
|
379
|
+
} | {
|
|
380
|
+
type: "DELIVERED";
|
|
381
|
+
data: {
|
|
382
|
+
soldAccountId: string;
|
|
383
|
+
soldOrderId: string;
|
|
384
|
+
soldConversationId?: string | null | undefined;
|
|
385
|
+
};
|
|
386
|
+
} | {
|
|
387
|
+
type: "REPUBLISHING";
|
|
388
|
+
data: {
|
|
389
|
+
platform: "VINTED" | "SHOPIFY";
|
|
390
|
+
};
|
|
331
391
|
} | null | undefined;
|
|
332
392
|
}, {
|
|
333
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
393
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
334
394
|
id: string;
|
|
335
395
|
createdAt: Date;
|
|
336
396
|
itemId: string | number;
|
|
@@ -354,6 +414,18 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
354
414
|
soldOrderId: string;
|
|
355
415
|
soldConversationId?: string | null | undefined;
|
|
356
416
|
};
|
|
417
|
+
} | {
|
|
418
|
+
type: "DELIVERED";
|
|
419
|
+
data: {
|
|
420
|
+
soldAccountId: string;
|
|
421
|
+
soldOrderId: string;
|
|
422
|
+
soldConversationId?: string | null | undefined;
|
|
423
|
+
};
|
|
424
|
+
} | {
|
|
425
|
+
type: "REPUBLISHING";
|
|
426
|
+
data: {
|
|
427
|
+
platform: "VINTED" | "SHOPIFY";
|
|
428
|
+
};
|
|
357
429
|
} | null | undefined;
|
|
358
430
|
}>>>;
|
|
359
431
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -520,7 +592,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
520
592
|
fieldId: string | number;
|
|
521
593
|
}[] | null | undefined;
|
|
522
594
|
lastHistory?: {
|
|
523
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
595
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
524
596
|
id: string;
|
|
525
597
|
createdAt: Date;
|
|
526
598
|
itemId: string | number;
|
|
@@ -544,6 +616,18 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
544
616
|
soldOrderId: string;
|
|
545
617
|
soldConversationId?: string | null | undefined;
|
|
546
618
|
};
|
|
619
|
+
} | {
|
|
620
|
+
type: "DELIVERED";
|
|
621
|
+
data: {
|
|
622
|
+
soldAccountId: string;
|
|
623
|
+
soldOrderId: string;
|
|
624
|
+
soldConversationId?: string | null | undefined;
|
|
625
|
+
};
|
|
626
|
+
} | {
|
|
627
|
+
type: "REPUBLISHING";
|
|
628
|
+
data: {
|
|
629
|
+
platform: "VINTED" | "SHOPIFY";
|
|
630
|
+
};
|
|
547
631
|
} | null | undefined;
|
|
548
632
|
} | null | undefined;
|
|
549
633
|
}, {
|
|
@@ -650,7 +734,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
650
734
|
fieldId: string | number;
|
|
651
735
|
}[] | null | undefined;
|
|
652
736
|
lastHistory?: {
|
|
653
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
737
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
654
738
|
id: string;
|
|
655
739
|
createdAt: Date;
|
|
656
740
|
itemId: string | number;
|
|
@@ -674,6 +758,18 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
674
758
|
soldOrderId: string;
|
|
675
759
|
soldConversationId?: string | null | undefined;
|
|
676
760
|
};
|
|
761
|
+
} | {
|
|
762
|
+
type: "DELIVERED";
|
|
763
|
+
data: {
|
|
764
|
+
soldAccountId: string;
|
|
765
|
+
soldOrderId: string;
|
|
766
|
+
soldConversationId?: string | null | undefined;
|
|
767
|
+
};
|
|
768
|
+
} | {
|
|
769
|
+
type: "REPUBLISHING";
|
|
770
|
+
data: {
|
|
771
|
+
platform: "VINTED" | "SHOPIFY";
|
|
772
|
+
};
|
|
677
773
|
} | null | undefined;
|
|
678
774
|
} | null | undefined;
|
|
679
775
|
}>, "many">;
|
|
@@ -786,7 +882,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
786
882
|
fieldId: string | number;
|
|
787
883
|
}[] | null | undefined;
|
|
788
884
|
lastHistory?: {
|
|
789
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
885
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
790
886
|
id: string;
|
|
791
887
|
createdAt: Date;
|
|
792
888
|
itemId: string | number;
|
|
@@ -810,6 +906,18 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
810
906
|
soldOrderId: string;
|
|
811
907
|
soldConversationId?: string | null | undefined;
|
|
812
908
|
};
|
|
909
|
+
} | {
|
|
910
|
+
type: "DELIVERED";
|
|
911
|
+
data: {
|
|
912
|
+
soldAccountId: string;
|
|
913
|
+
soldOrderId: string;
|
|
914
|
+
soldConversationId?: string | null | undefined;
|
|
915
|
+
};
|
|
916
|
+
} | {
|
|
917
|
+
type: "REPUBLISHING";
|
|
918
|
+
data: {
|
|
919
|
+
platform: "VINTED" | "SHOPIFY";
|
|
920
|
+
};
|
|
813
921
|
} | null | undefined;
|
|
814
922
|
} | null | undefined;
|
|
815
923
|
}[];
|
|
@@ -922,7 +1030,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
922
1030
|
fieldId: string | number;
|
|
923
1031
|
}[] | null | undefined;
|
|
924
1032
|
lastHistory?: {
|
|
925
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
1033
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
926
1034
|
id: string;
|
|
927
1035
|
createdAt: Date;
|
|
928
1036
|
itemId: string | number;
|
|
@@ -946,6 +1054,18 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
946
1054
|
soldOrderId: string;
|
|
947
1055
|
soldConversationId?: string | null | undefined;
|
|
948
1056
|
};
|
|
1057
|
+
} | {
|
|
1058
|
+
type: "DELIVERED";
|
|
1059
|
+
data: {
|
|
1060
|
+
soldAccountId: string;
|
|
1061
|
+
soldOrderId: string;
|
|
1062
|
+
soldConversationId?: string | null | undefined;
|
|
1063
|
+
};
|
|
1064
|
+
} | {
|
|
1065
|
+
type: "REPUBLISHING";
|
|
1066
|
+
data: {
|
|
1067
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1068
|
+
};
|
|
949
1069
|
} | null | undefined;
|
|
950
1070
|
} | null | undefined;
|
|
951
1071
|
}[];
|
|
@@ -220,7 +220,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
220
220
|
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
221
221
|
id: z.ZodString;
|
|
222
222
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
223
|
-
type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
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
225
|
type: z.ZodLiteral<"EMPTY">;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -299,10 +299,58 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
299
299
|
soldOrderId: string;
|
|
300
300
|
soldConversationId?: string | null | undefined;
|
|
301
301
|
};
|
|
302
|
+
}>, z.ZodObject<{
|
|
303
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
304
|
+
data: z.ZodObject<{
|
|
305
|
+
soldAccountId: z.ZodString;
|
|
306
|
+
soldOrderId: z.ZodString;
|
|
307
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
soldAccountId: string;
|
|
310
|
+
soldOrderId: string;
|
|
311
|
+
soldConversationId?: string | null | undefined;
|
|
312
|
+
}, {
|
|
313
|
+
soldAccountId: string;
|
|
314
|
+
soldOrderId: string;
|
|
315
|
+
soldConversationId?: string | null | undefined;
|
|
316
|
+
}>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
type: "DELIVERED";
|
|
319
|
+
data: {
|
|
320
|
+
soldAccountId: string;
|
|
321
|
+
soldOrderId: string;
|
|
322
|
+
soldConversationId?: string | null | undefined;
|
|
323
|
+
};
|
|
324
|
+
}, {
|
|
325
|
+
type: "DELIVERED";
|
|
326
|
+
data: {
|
|
327
|
+
soldAccountId: string;
|
|
328
|
+
soldOrderId: string;
|
|
329
|
+
soldConversationId?: string | null | undefined;
|
|
330
|
+
};
|
|
331
|
+
}>, z.ZodObject<{
|
|
332
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
333
|
+
data: z.ZodObject<{
|
|
334
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
platform: "VINTED" | "SHOPIFY";
|
|
337
|
+
}, {
|
|
338
|
+
platform: "VINTED" | "SHOPIFY";
|
|
339
|
+
}>;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
type: "REPUBLISHING";
|
|
342
|
+
data: {
|
|
343
|
+
platform: "VINTED" | "SHOPIFY";
|
|
344
|
+
};
|
|
345
|
+
}, {
|
|
346
|
+
type: "REPUBLISHING";
|
|
347
|
+
data: {
|
|
348
|
+
platform: "VINTED" | "SHOPIFY";
|
|
349
|
+
};
|
|
302
350
|
}>]>>>;
|
|
303
351
|
createdAt: z.ZodDate;
|
|
304
352
|
}, "strip", z.ZodTypeAny, {
|
|
305
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
353
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
306
354
|
id: string;
|
|
307
355
|
createdAt: Date;
|
|
308
356
|
itemId: string | number;
|
|
@@ -326,9 +374,21 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
326
374
|
soldOrderId: string;
|
|
327
375
|
soldConversationId?: string | null | undefined;
|
|
328
376
|
};
|
|
377
|
+
} | {
|
|
378
|
+
type: "DELIVERED";
|
|
379
|
+
data: {
|
|
380
|
+
soldAccountId: string;
|
|
381
|
+
soldOrderId: string;
|
|
382
|
+
soldConversationId?: string | null | undefined;
|
|
383
|
+
};
|
|
384
|
+
} | {
|
|
385
|
+
type: "REPUBLISHING";
|
|
386
|
+
data: {
|
|
387
|
+
platform: "VINTED" | "SHOPIFY";
|
|
388
|
+
};
|
|
329
389
|
} | null | undefined;
|
|
330
390
|
}, {
|
|
331
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
391
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
332
392
|
id: string;
|
|
333
393
|
createdAt: Date;
|
|
334
394
|
itemId: string | number;
|
|
@@ -352,6 +412,18 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
352
412
|
soldOrderId: string;
|
|
353
413
|
soldConversationId?: string | null | undefined;
|
|
354
414
|
};
|
|
415
|
+
} | {
|
|
416
|
+
type: "DELIVERED";
|
|
417
|
+
data: {
|
|
418
|
+
soldAccountId: string;
|
|
419
|
+
soldOrderId: string;
|
|
420
|
+
soldConversationId?: string | null | undefined;
|
|
421
|
+
};
|
|
422
|
+
} | {
|
|
423
|
+
type: "REPUBLISHING";
|
|
424
|
+
data: {
|
|
425
|
+
platform: "VINTED" | "SHOPIFY";
|
|
426
|
+
};
|
|
355
427
|
} | null | undefined;
|
|
356
428
|
}>>>;
|
|
357
429
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -518,7 +590,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
518
590
|
fieldId: string | number;
|
|
519
591
|
}[] | null | undefined;
|
|
520
592
|
lastHistory?: {
|
|
521
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
593
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
522
594
|
id: string;
|
|
523
595
|
createdAt: Date;
|
|
524
596
|
itemId: string | number;
|
|
@@ -542,6 +614,18 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
542
614
|
soldOrderId: string;
|
|
543
615
|
soldConversationId?: string | null | undefined;
|
|
544
616
|
};
|
|
617
|
+
} | {
|
|
618
|
+
type: "DELIVERED";
|
|
619
|
+
data: {
|
|
620
|
+
soldAccountId: string;
|
|
621
|
+
soldOrderId: string;
|
|
622
|
+
soldConversationId?: string | null | undefined;
|
|
623
|
+
};
|
|
624
|
+
} | {
|
|
625
|
+
type: "REPUBLISHING";
|
|
626
|
+
data: {
|
|
627
|
+
platform: "VINTED" | "SHOPIFY";
|
|
628
|
+
};
|
|
545
629
|
} | null | undefined;
|
|
546
630
|
} | null | undefined;
|
|
547
631
|
}, {
|
|
@@ -648,7 +732,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
648
732
|
fieldId: string | number;
|
|
649
733
|
}[] | null | undefined;
|
|
650
734
|
lastHistory?: {
|
|
651
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
735
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
652
736
|
id: string;
|
|
653
737
|
createdAt: Date;
|
|
654
738
|
itemId: string | number;
|
|
@@ -672,6 +756,18 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
672
756
|
soldOrderId: string;
|
|
673
757
|
soldConversationId?: string | null | undefined;
|
|
674
758
|
};
|
|
759
|
+
} | {
|
|
760
|
+
type: "DELIVERED";
|
|
761
|
+
data: {
|
|
762
|
+
soldAccountId: string;
|
|
763
|
+
soldOrderId: string;
|
|
764
|
+
soldConversationId?: string | null | undefined;
|
|
765
|
+
};
|
|
766
|
+
} | {
|
|
767
|
+
type: "REPUBLISHING";
|
|
768
|
+
data: {
|
|
769
|
+
platform: "VINTED" | "SHOPIFY";
|
|
770
|
+
};
|
|
675
771
|
} | null | undefined;
|
|
676
772
|
} | null | undefined;
|
|
677
773
|
}>;
|
|
@@ -810,7 +906,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
810
906
|
fieldId: string | number;
|
|
811
907
|
}[] | null | undefined;
|
|
812
908
|
lastHistory?: {
|
|
813
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
909
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
814
910
|
id: string;
|
|
815
911
|
createdAt: Date;
|
|
816
912
|
itemId: string | number;
|
|
@@ -834,6 +930,18 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
834
930
|
soldOrderId: string;
|
|
835
931
|
soldConversationId?: string | null | undefined;
|
|
836
932
|
};
|
|
933
|
+
} | {
|
|
934
|
+
type: "DELIVERED";
|
|
935
|
+
data: {
|
|
936
|
+
soldAccountId: string;
|
|
937
|
+
soldOrderId: string;
|
|
938
|
+
soldConversationId?: string | null | undefined;
|
|
939
|
+
};
|
|
940
|
+
} | {
|
|
941
|
+
type: "REPUBLISHING";
|
|
942
|
+
data: {
|
|
943
|
+
platform: "VINTED" | "SHOPIFY";
|
|
944
|
+
};
|
|
837
945
|
} | null | undefined;
|
|
838
946
|
} | null | undefined;
|
|
839
947
|
};
|
|
@@ -950,7 +1058,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
950
1058
|
fieldId: string | number;
|
|
951
1059
|
}[] | null | undefined;
|
|
952
1060
|
lastHistory?: {
|
|
953
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
1061
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
954
1062
|
id: string;
|
|
955
1063
|
createdAt: Date;
|
|
956
1064
|
itemId: string | number;
|
|
@@ -974,6 +1082,18 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
974
1082
|
soldOrderId: string;
|
|
975
1083
|
soldConversationId?: string | null | undefined;
|
|
976
1084
|
};
|
|
1085
|
+
} | {
|
|
1086
|
+
type: "DELIVERED";
|
|
1087
|
+
data: {
|
|
1088
|
+
soldAccountId: string;
|
|
1089
|
+
soldOrderId: string;
|
|
1090
|
+
soldConversationId?: string | null | undefined;
|
|
1091
|
+
};
|
|
1092
|
+
} | {
|
|
1093
|
+
type: "REPUBLISHING";
|
|
1094
|
+
data: {
|
|
1095
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1096
|
+
};
|
|
977
1097
|
} | null | undefined;
|
|
978
1098
|
} | null | undefined;
|
|
979
1099
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
|
|
3
|
-
type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
3
|
+
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"]>;
|
|
4
4
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5
5
|
type: z.ZodLiteral<"EMPTY">;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -79,9 +79,57 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
|
|
|
79
79
|
soldOrderId: string;
|
|
80
80
|
soldConversationId?: string | null | undefined;
|
|
81
81
|
};
|
|
82
|
+
}>, z.ZodObject<{
|
|
83
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
84
|
+
data: z.ZodObject<{
|
|
85
|
+
soldAccountId: z.ZodString;
|
|
86
|
+
soldOrderId: z.ZodString;
|
|
87
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
soldAccountId: string;
|
|
90
|
+
soldOrderId: string;
|
|
91
|
+
soldConversationId?: string | null | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
soldAccountId: string;
|
|
94
|
+
soldOrderId: string;
|
|
95
|
+
soldConversationId?: string | null | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
type: "DELIVERED";
|
|
99
|
+
data: {
|
|
100
|
+
soldAccountId: string;
|
|
101
|
+
soldOrderId: string;
|
|
102
|
+
soldConversationId?: string | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
type: "DELIVERED";
|
|
106
|
+
data: {
|
|
107
|
+
soldAccountId: string;
|
|
108
|
+
soldOrderId: string;
|
|
109
|
+
soldConversationId?: string | null | undefined;
|
|
110
|
+
};
|
|
111
|
+
}>, z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
113
|
+
data: z.ZodObject<{
|
|
114
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
platform: "VINTED" | "SHOPIFY";
|
|
117
|
+
}, {
|
|
118
|
+
platform: "VINTED" | "SHOPIFY";
|
|
119
|
+
}>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
type: "REPUBLISHING";
|
|
122
|
+
data: {
|
|
123
|
+
platform: "VINTED" | "SHOPIFY";
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
type: "REPUBLISHING";
|
|
127
|
+
data: {
|
|
128
|
+
platform: "VINTED" | "SHOPIFY";
|
|
129
|
+
};
|
|
82
130
|
}>]>;
|
|
83
131
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
132
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
85
133
|
data: {
|
|
86
134
|
type: "EMPTY";
|
|
87
135
|
} | {
|
|
@@ -102,9 +150,21 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
|
|
|
102
150
|
soldOrderId: string;
|
|
103
151
|
soldConversationId?: string | null | undefined;
|
|
104
152
|
};
|
|
153
|
+
} | {
|
|
154
|
+
type: "DELIVERED";
|
|
155
|
+
data: {
|
|
156
|
+
soldAccountId: string;
|
|
157
|
+
soldOrderId: string;
|
|
158
|
+
soldConversationId?: string | null | undefined;
|
|
159
|
+
};
|
|
160
|
+
} | {
|
|
161
|
+
type: "REPUBLISHING";
|
|
162
|
+
data: {
|
|
163
|
+
platform: "VINTED" | "SHOPIFY";
|
|
164
|
+
};
|
|
105
165
|
};
|
|
106
166
|
}, {
|
|
107
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
167
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
108
168
|
data: {
|
|
109
169
|
type: "EMPTY";
|
|
110
170
|
} | {
|
|
@@ -125,6 +185,18 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
|
|
|
125
185
|
soldOrderId: string;
|
|
126
186
|
soldConversationId?: string | null | undefined;
|
|
127
187
|
};
|
|
188
|
+
} | {
|
|
189
|
+
type: "DELIVERED";
|
|
190
|
+
data: {
|
|
191
|
+
soldAccountId: string;
|
|
192
|
+
soldOrderId: string;
|
|
193
|
+
soldConversationId?: string | null | undefined;
|
|
194
|
+
};
|
|
195
|
+
} | {
|
|
196
|
+
type: "REPUBLISHING";
|
|
197
|
+
data: {
|
|
198
|
+
platform: "VINTED" | "SHOPIFY";
|
|
199
|
+
};
|
|
128
200
|
};
|
|
129
201
|
}>;
|
|
130
202
|
export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
|
|
@@ -2,7 +2,7 @@ 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<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
5
|
+
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"]>;
|
|
6
6
|
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7
7
|
type: z.ZodLiteral<"EMPTY">;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -81,10 +81,58 @@ export declare const ItemHistorySchema: z.ZodObject<{
|
|
|
81
81
|
soldOrderId: string;
|
|
82
82
|
soldConversationId?: string | null | undefined;
|
|
83
83
|
};
|
|
84
|
+
}>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
86
|
+
data: z.ZodObject<{
|
|
87
|
+
soldAccountId: z.ZodString;
|
|
88
|
+
soldOrderId: z.ZodString;
|
|
89
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
soldAccountId: string;
|
|
92
|
+
soldOrderId: string;
|
|
93
|
+
soldConversationId?: string | null | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
soldAccountId: string;
|
|
96
|
+
soldOrderId: string;
|
|
97
|
+
soldConversationId?: string | null | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
type: "DELIVERED";
|
|
101
|
+
data: {
|
|
102
|
+
soldAccountId: string;
|
|
103
|
+
soldOrderId: string;
|
|
104
|
+
soldConversationId?: string | null | undefined;
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
type: "DELIVERED";
|
|
108
|
+
data: {
|
|
109
|
+
soldAccountId: string;
|
|
110
|
+
soldOrderId: string;
|
|
111
|
+
soldConversationId?: string | null | undefined;
|
|
112
|
+
};
|
|
113
|
+
}>, z.ZodObject<{
|
|
114
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
115
|
+
data: z.ZodObject<{
|
|
116
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
platform: "VINTED" | "SHOPIFY";
|
|
119
|
+
}, {
|
|
120
|
+
platform: "VINTED" | "SHOPIFY";
|
|
121
|
+
}>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
type: "REPUBLISHING";
|
|
124
|
+
data: {
|
|
125
|
+
platform: "VINTED" | "SHOPIFY";
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
type: "REPUBLISHING";
|
|
129
|
+
data: {
|
|
130
|
+
platform: "VINTED" | "SHOPIFY";
|
|
131
|
+
};
|
|
84
132
|
}>]>>>;
|
|
85
133
|
createdAt: z.ZodDate;
|
|
86
134
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
135
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
88
136
|
id: string;
|
|
89
137
|
createdAt: Date;
|
|
90
138
|
itemId: string | number;
|
|
@@ -108,9 +156,21 @@ export declare const ItemHistorySchema: z.ZodObject<{
|
|
|
108
156
|
soldOrderId: string;
|
|
109
157
|
soldConversationId?: string | null | undefined;
|
|
110
158
|
};
|
|
159
|
+
} | {
|
|
160
|
+
type: "DELIVERED";
|
|
161
|
+
data: {
|
|
162
|
+
soldAccountId: string;
|
|
163
|
+
soldOrderId: string;
|
|
164
|
+
soldConversationId?: string | null | undefined;
|
|
165
|
+
};
|
|
166
|
+
} | {
|
|
167
|
+
type: "REPUBLISHING";
|
|
168
|
+
data: {
|
|
169
|
+
platform: "VINTED" | "SHOPIFY";
|
|
170
|
+
};
|
|
111
171
|
} | null | undefined;
|
|
112
172
|
}, {
|
|
113
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
173
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
114
174
|
id: string;
|
|
115
175
|
createdAt: Date;
|
|
116
176
|
itemId: string | number;
|
|
@@ -134,6 +194,18 @@ export declare const ItemHistorySchema: z.ZodObject<{
|
|
|
134
194
|
soldOrderId: string;
|
|
135
195
|
soldConversationId?: string | null | undefined;
|
|
136
196
|
};
|
|
197
|
+
} | {
|
|
198
|
+
type: "DELIVERED";
|
|
199
|
+
data: {
|
|
200
|
+
soldAccountId: string;
|
|
201
|
+
soldOrderId: string;
|
|
202
|
+
soldConversationId?: string | null | undefined;
|
|
203
|
+
};
|
|
204
|
+
} | {
|
|
205
|
+
type: "REPUBLISHING";
|
|
206
|
+
data: {
|
|
207
|
+
platform: "VINTED" | "SHOPIFY";
|
|
208
|
+
};
|
|
137
209
|
} | null | undefined;
|
|
138
210
|
}>;
|
|
139
211
|
export type ItemHistory = z.infer<typeof ItemHistorySchema>;
|