controlresell 2.2.7 → 2.2.9
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/items/CreatedItems.d.ts +71 -0
- package/src/com/controlresell/models/items/Item.d.ts +57 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +71 -0
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +71 -0
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +43 -0
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +43 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +29 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +5 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +5 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.d.ts +42 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.js +9 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.ts +8 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.d.ts +82 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.js +9 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.ts +8 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +71 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +71 -0
- package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +3 -3
- package/src/com/controlresell/models/preferences/Preference.d.ts +28 -298
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +71 -0
- package/src/com/controlresell/models/preferences/PreferenceType.d.ts +1 -1
- package/src/com/controlresell/models/preferences/PreferenceType.js +1 -1
- package/src/com/controlresell/models/preferences/PreferenceType.ts +1 -1
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +80 -890
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +21 -259
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +21 -259
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +21 -259
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +5 -115
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +2 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +2 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +0 -79
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +0 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +0 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +9 -151
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.d.ts +82 -0
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.js +9 -0
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.ts +8 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +12 -151
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +2 -1
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +2 -1
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +17 -223
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +17 -223
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +13 -187
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +17 -223
- package/src/index.d.ts +3 -0
- package/src/index.js +9 -3
- package/src/index.ts +3 -0
package/package.json
CHANGED
|
@@ -299,6 +299,35 @@ export declare const CreatedItemsSchema: 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
|
+
};
|
|
302
331
|
}>]>>>;
|
|
303
332
|
createdAt: z.ZodDate;
|
|
304
333
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -326,6 +355,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
326
355
|
soldOrderId: string;
|
|
327
356
|
soldConversationId?: string | null | undefined;
|
|
328
357
|
};
|
|
358
|
+
} | {
|
|
359
|
+
type: "DELIVERED";
|
|
360
|
+
data: {
|
|
361
|
+
soldAccountId: string;
|
|
362
|
+
soldOrderId: string;
|
|
363
|
+
soldConversationId?: string | null | undefined;
|
|
364
|
+
};
|
|
329
365
|
} | null | undefined;
|
|
330
366
|
}, {
|
|
331
367
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -352,6 +388,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
352
388
|
soldOrderId: string;
|
|
353
389
|
soldConversationId?: string | null | undefined;
|
|
354
390
|
};
|
|
391
|
+
} | {
|
|
392
|
+
type: "DELIVERED";
|
|
393
|
+
data: {
|
|
394
|
+
soldAccountId: string;
|
|
395
|
+
soldOrderId: string;
|
|
396
|
+
soldConversationId?: string | null | undefined;
|
|
397
|
+
};
|
|
355
398
|
} | null | undefined;
|
|
356
399
|
}>>>;
|
|
357
400
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -542,6 +585,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
542
585
|
soldOrderId: string;
|
|
543
586
|
soldConversationId?: string | null | undefined;
|
|
544
587
|
};
|
|
588
|
+
} | {
|
|
589
|
+
type: "DELIVERED";
|
|
590
|
+
data: {
|
|
591
|
+
soldAccountId: string;
|
|
592
|
+
soldOrderId: string;
|
|
593
|
+
soldConversationId?: string | null | undefined;
|
|
594
|
+
};
|
|
545
595
|
} | null | undefined;
|
|
546
596
|
} | null | undefined;
|
|
547
597
|
}, {
|
|
@@ -672,6 +722,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
672
722
|
soldOrderId: string;
|
|
673
723
|
soldConversationId?: string | null | undefined;
|
|
674
724
|
};
|
|
725
|
+
} | {
|
|
726
|
+
type: "DELIVERED";
|
|
727
|
+
data: {
|
|
728
|
+
soldAccountId: string;
|
|
729
|
+
soldOrderId: string;
|
|
730
|
+
soldConversationId?: string | null | undefined;
|
|
731
|
+
};
|
|
675
732
|
} | null | undefined;
|
|
676
733
|
} | null | undefined;
|
|
677
734
|
}>, "many">;
|
|
@@ -826,6 +883,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
826
883
|
soldOrderId: string;
|
|
827
884
|
soldConversationId?: string | null | undefined;
|
|
828
885
|
};
|
|
886
|
+
} | {
|
|
887
|
+
type: "DELIVERED";
|
|
888
|
+
data: {
|
|
889
|
+
soldAccountId: string;
|
|
890
|
+
soldOrderId: string;
|
|
891
|
+
soldConversationId?: string | null | undefined;
|
|
892
|
+
};
|
|
829
893
|
} | null | undefined;
|
|
830
894
|
} | null | undefined;
|
|
831
895
|
}[];
|
|
@@ -966,6 +1030,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
966
1030
|
soldOrderId: string;
|
|
967
1031
|
soldConversationId?: string | null | undefined;
|
|
968
1032
|
};
|
|
1033
|
+
} | {
|
|
1034
|
+
type: "DELIVERED";
|
|
1035
|
+
data: {
|
|
1036
|
+
soldAccountId: string;
|
|
1037
|
+
soldOrderId: string;
|
|
1038
|
+
soldConversationId?: string | null | undefined;
|
|
1039
|
+
};
|
|
969
1040
|
} | null | undefined;
|
|
970
1041
|
} | null | undefined;
|
|
971
1042
|
}[];
|
|
@@ -298,6 +298,35 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
298
298
|
soldOrderId: string;
|
|
299
299
|
soldConversationId?: string | null | undefined;
|
|
300
300
|
};
|
|
301
|
+
}>, z.ZodObject<{
|
|
302
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
303
|
+
data: z.ZodObject<{
|
|
304
|
+
soldAccountId: z.ZodString;
|
|
305
|
+
soldOrderId: z.ZodString;
|
|
306
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
soldAccountId: string;
|
|
309
|
+
soldOrderId: string;
|
|
310
|
+
soldConversationId?: string | null | undefined;
|
|
311
|
+
}, {
|
|
312
|
+
soldAccountId: string;
|
|
313
|
+
soldOrderId: string;
|
|
314
|
+
soldConversationId?: string | null | undefined;
|
|
315
|
+
}>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
type: "DELIVERED";
|
|
318
|
+
data: {
|
|
319
|
+
soldAccountId: string;
|
|
320
|
+
soldOrderId: string;
|
|
321
|
+
soldConversationId?: string | null | undefined;
|
|
322
|
+
};
|
|
323
|
+
}, {
|
|
324
|
+
type: "DELIVERED";
|
|
325
|
+
data: {
|
|
326
|
+
soldAccountId: string;
|
|
327
|
+
soldOrderId: string;
|
|
328
|
+
soldConversationId?: string | null | undefined;
|
|
329
|
+
};
|
|
301
330
|
}>]>>>;
|
|
302
331
|
createdAt: z.ZodDate;
|
|
303
332
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -325,6 +354,13 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
325
354
|
soldOrderId: string;
|
|
326
355
|
soldConversationId?: string | null | undefined;
|
|
327
356
|
};
|
|
357
|
+
} | {
|
|
358
|
+
type: "DELIVERED";
|
|
359
|
+
data: {
|
|
360
|
+
soldAccountId: string;
|
|
361
|
+
soldOrderId: string;
|
|
362
|
+
soldConversationId?: string | null | undefined;
|
|
363
|
+
};
|
|
328
364
|
} | null | undefined;
|
|
329
365
|
}, {
|
|
330
366
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -351,6 +387,13 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
351
387
|
soldOrderId: string;
|
|
352
388
|
soldConversationId?: string | null | undefined;
|
|
353
389
|
};
|
|
390
|
+
} | {
|
|
391
|
+
type: "DELIVERED";
|
|
392
|
+
data: {
|
|
393
|
+
soldAccountId: string;
|
|
394
|
+
soldOrderId: string;
|
|
395
|
+
soldConversationId?: string | null | undefined;
|
|
396
|
+
};
|
|
354
397
|
} | null | undefined;
|
|
355
398
|
}>>>;
|
|
356
399
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -541,6 +584,13 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
541
584
|
soldOrderId: string;
|
|
542
585
|
soldConversationId?: string | null | undefined;
|
|
543
586
|
};
|
|
587
|
+
} | {
|
|
588
|
+
type: "DELIVERED";
|
|
589
|
+
data: {
|
|
590
|
+
soldAccountId: string;
|
|
591
|
+
soldOrderId: string;
|
|
592
|
+
soldConversationId?: string | null | undefined;
|
|
593
|
+
};
|
|
544
594
|
} | null | undefined;
|
|
545
595
|
} | null | undefined;
|
|
546
596
|
}, {
|
|
@@ -671,6 +721,13 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
671
721
|
soldOrderId: string;
|
|
672
722
|
soldConversationId?: string | null | undefined;
|
|
673
723
|
};
|
|
724
|
+
} | {
|
|
725
|
+
type: "DELIVERED";
|
|
726
|
+
data: {
|
|
727
|
+
soldAccountId: string;
|
|
728
|
+
soldOrderId: string;
|
|
729
|
+
soldConversationId?: string | null | undefined;
|
|
730
|
+
};
|
|
674
731
|
} | null | undefined;
|
|
675
732
|
} | null | undefined;
|
|
676
733
|
}>;
|
|
@@ -301,6 +301,35 @@ 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
|
+
};
|
|
304
333
|
}>]>>>;
|
|
305
334
|
createdAt: z.ZodDate;
|
|
306
335
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -328,6 +357,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
328
357
|
soldOrderId: string;
|
|
329
358
|
soldConversationId?: string | null | undefined;
|
|
330
359
|
};
|
|
360
|
+
} | {
|
|
361
|
+
type: "DELIVERED";
|
|
362
|
+
data: {
|
|
363
|
+
soldAccountId: string;
|
|
364
|
+
soldOrderId: string;
|
|
365
|
+
soldConversationId?: string | null | undefined;
|
|
366
|
+
};
|
|
331
367
|
} | null | undefined;
|
|
332
368
|
}, {
|
|
333
369
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -354,6 +390,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
354
390
|
soldOrderId: string;
|
|
355
391
|
soldConversationId?: string | null | undefined;
|
|
356
392
|
};
|
|
393
|
+
} | {
|
|
394
|
+
type: "DELIVERED";
|
|
395
|
+
data: {
|
|
396
|
+
soldAccountId: string;
|
|
397
|
+
soldOrderId: string;
|
|
398
|
+
soldConversationId?: string | null | undefined;
|
|
399
|
+
};
|
|
357
400
|
} | null | undefined;
|
|
358
401
|
}>>>;
|
|
359
402
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -544,6 +587,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
544
587
|
soldOrderId: string;
|
|
545
588
|
soldConversationId?: string | null | undefined;
|
|
546
589
|
};
|
|
590
|
+
} | {
|
|
591
|
+
type: "DELIVERED";
|
|
592
|
+
data: {
|
|
593
|
+
soldAccountId: string;
|
|
594
|
+
soldOrderId: string;
|
|
595
|
+
soldConversationId?: string | null | undefined;
|
|
596
|
+
};
|
|
547
597
|
} | null | undefined;
|
|
548
598
|
} | null | undefined;
|
|
549
599
|
}, {
|
|
@@ -674,6 +724,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
674
724
|
soldOrderId: string;
|
|
675
725
|
soldConversationId?: string | null | undefined;
|
|
676
726
|
};
|
|
727
|
+
} | {
|
|
728
|
+
type: "DELIVERED";
|
|
729
|
+
data: {
|
|
730
|
+
soldAccountId: string;
|
|
731
|
+
soldOrderId: string;
|
|
732
|
+
soldConversationId?: string | null | undefined;
|
|
733
|
+
};
|
|
677
734
|
} | null | undefined;
|
|
678
735
|
} | null | undefined;
|
|
679
736
|
}>, "many">;
|
|
@@ -810,6 +867,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
810
867
|
soldOrderId: string;
|
|
811
868
|
soldConversationId?: string | null | undefined;
|
|
812
869
|
};
|
|
870
|
+
} | {
|
|
871
|
+
type: "DELIVERED";
|
|
872
|
+
data: {
|
|
873
|
+
soldAccountId: string;
|
|
874
|
+
soldOrderId: string;
|
|
875
|
+
soldConversationId?: string | null | undefined;
|
|
876
|
+
};
|
|
813
877
|
} | null | undefined;
|
|
814
878
|
} | null | undefined;
|
|
815
879
|
}[];
|
|
@@ -946,6 +1010,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
946
1010
|
soldOrderId: string;
|
|
947
1011
|
soldConversationId?: string | null | undefined;
|
|
948
1012
|
};
|
|
1013
|
+
} | {
|
|
1014
|
+
type: "DELIVERED";
|
|
1015
|
+
data: {
|
|
1016
|
+
soldAccountId: string;
|
|
1017
|
+
soldOrderId: string;
|
|
1018
|
+
soldConversationId?: string | null | undefined;
|
|
1019
|
+
};
|
|
949
1020
|
} | null | undefined;
|
|
950
1021
|
} | null | undefined;
|
|
951
1022
|
}[];
|
|
@@ -299,6 +299,35 @@ 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
|
+
};
|
|
302
331
|
}>]>>>;
|
|
303
332
|
createdAt: z.ZodDate;
|
|
304
333
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -326,6 +355,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
326
355
|
soldOrderId: string;
|
|
327
356
|
soldConversationId?: string | null | undefined;
|
|
328
357
|
};
|
|
358
|
+
} | {
|
|
359
|
+
type: "DELIVERED";
|
|
360
|
+
data: {
|
|
361
|
+
soldAccountId: string;
|
|
362
|
+
soldOrderId: string;
|
|
363
|
+
soldConversationId?: string | null | undefined;
|
|
364
|
+
};
|
|
329
365
|
} | null | undefined;
|
|
330
366
|
}, {
|
|
331
367
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -352,6 +388,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
352
388
|
soldOrderId: string;
|
|
353
389
|
soldConversationId?: string | null | undefined;
|
|
354
390
|
};
|
|
391
|
+
} | {
|
|
392
|
+
type: "DELIVERED";
|
|
393
|
+
data: {
|
|
394
|
+
soldAccountId: string;
|
|
395
|
+
soldOrderId: string;
|
|
396
|
+
soldConversationId?: string | null | undefined;
|
|
397
|
+
};
|
|
355
398
|
} | null | undefined;
|
|
356
399
|
}>>>;
|
|
357
400
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -542,6 +585,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
542
585
|
soldOrderId: string;
|
|
543
586
|
soldConversationId?: string | null | undefined;
|
|
544
587
|
};
|
|
588
|
+
} | {
|
|
589
|
+
type: "DELIVERED";
|
|
590
|
+
data: {
|
|
591
|
+
soldAccountId: string;
|
|
592
|
+
soldOrderId: string;
|
|
593
|
+
soldConversationId?: string | null | undefined;
|
|
594
|
+
};
|
|
545
595
|
} | null | undefined;
|
|
546
596
|
} | null | undefined;
|
|
547
597
|
}, {
|
|
@@ -672,6 +722,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
672
722
|
soldOrderId: string;
|
|
673
723
|
soldConversationId?: string | null | undefined;
|
|
674
724
|
};
|
|
725
|
+
} | {
|
|
726
|
+
type: "DELIVERED";
|
|
727
|
+
data: {
|
|
728
|
+
soldAccountId: string;
|
|
729
|
+
soldOrderId: string;
|
|
730
|
+
soldConversationId?: string | null | undefined;
|
|
731
|
+
};
|
|
675
732
|
} | null | undefined;
|
|
676
733
|
} | null | undefined;
|
|
677
734
|
}>;
|
|
@@ -834,6 +891,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
834
891
|
soldOrderId: string;
|
|
835
892
|
soldConversationId?: string | null | undefined;
|
|
836
893
|
};
|
|
894
|
+
} | {
|
|
895
|
+
type: "DELIVERED";
|
|
896
|
+
data: {
|
|
897
|
+
soldAccountId: string;
|
|
898
|
+
soldOrderId: string;
|
|
899
|
+
soldConversationId?: string | null | undefined;
|
|
900
|
+
};
|
|
837
901
|
} | null | undefined;
|
|
838
902
|
} | null | undefined;
|
|
839
903
|
};
|
|
@@ -974,6 +1038,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
974
1038
|
soldOrderId: string;
|
|
975
1039
|
soldConversationId?: string | null | undefined;
|
|
976
1040
|
};
|
|
1041
|
+
} | {
|
|
1042
|
+
type: "DELIVERED";
|
|
1043
|
+
data: {
|
|
1044
|
+
soldAccountId: string;
|
|
1045
|
+
soldOrderId: string;
|
|
1046
|
+
soldConversationId?: string | null | undefined;
|
|
1047
|
+
};
|
|
977
1048
|
} | null | undefined;
|
|
978
1049
|
} | null | undefined;
|
|
979
1050
|
};
|
|
@@ -79,6 +79,35 @@ 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
|
+
};
|
|
82
111
|
}>]>;
|
|
83
112
|
}, "strip", z.ZodTypeAny, {
|
|
84
113
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -102,6 +131,13 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
|
|
|
102
131
|
soldOrderId: string;
|
|
103
132
|
soldConversationId?: string | null | undefined;
|
|
104
133
|
};
|
|
134
|
+
} | {
|
|
135
|
+
type: "DELIVERED";
|
|
136
|
+
data: {
|
|
137
|
+
soldAccountId: string;
|
|
138
|
+
soldOrderId: string;
|
|
139
|
+
soldConversationId?: string | null | undefined;
|
|
140
|
+
};
|
|
105
141
|
};
|
|
106
142
|
}, {
|
|
107
143
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -125,6 +161,13 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
|
|
|
125
161
|
soldOrderId: string;
|
|
126
162
|
soldConversationId?: string | null | undefined;
|
|
127
163
|
};
|
|
164
|
+
} | {
|
|
165
|
+
type: "DELIVERED";
|
|
166
|
+
data: {
|
|
167
|
+
soldAccountId: string;
|
|
168
|
+
soldOrderId: string;
|
|
169
|
+
soldConversationId?: string | null | undefined;
|
|
170
|
+
};
|
|
128
171
|
};
|
|
129
172
|
}>;
|
|
130
173
|
export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
|
|
@@ -81,6 +81,35 @@ 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
|
+
};
|
|
84
113
|
}>]>>>;
|
|
85
114
|
createdAt: z.ZodDate;
|
|
86
115
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -108,6 +137,13 @@ export declare const ItemHistorySchema: z.ZodObject<{
|
|
|
108
137
|
soldOrderId: string;
|
|
109
138
|
soldConversationId?: string | null | undefined;
|
|
110
139
|
};
|
|
140
|
+
} | {
|
|
141
|
+
type: "DELIVERED";
|
|
142
|
+
data: {
|
|
143
|
+
soldAccountId: string;
|
|
144
|
+
soldOrderId: string;
|
|
145
|
+
soldConversationId?: string | null | undefined;
|
|
146
|
+
};
|
|
111
147
|
} | null | undefined;
|
|
112
148
|
}, {
|
|
113
149
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -134,6 +170,13 @@ export declare const ItemHistorySchema: z.ZodObject<{
|
|
|
134
170
|
soldOrderId: string;
|
|
135
171
|
soldConversationId?: string | null | undefined;
|
|
136
172
|
};
|
|
173
|
+
} | {
|
|
174
|
+
type: "DELIVERED";
|
|
175
|
+
data: {
|
|
176
|
+
soldAccountId: string;
|
|
177
|
+
soldOrderId: string;
|
|
178
|
+
soldConversationId?: string | null | undefined;
|
|
179
|
+
};
|
|
137
180
|
} | null | undefined;
|
|
138
181
|
}>;
|
|
139
182
|
export type ItemHistory = z.infer<typeof ItemHistorySchema>;
|
|
@@ -77,5 +77,34 @@ export declare const ItemHistoryDecodedPayloadSchema: z.ZodDiscriminatedUnion<"t
|
|
|
77
77
|
soldOrderId: string;
|
|
78
78
|
soldConversationId?: string | null | undefined;
|
|
79
79
|
};
|
|
80
|
+
}>, z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
82
|
+
data: z.ZodObject<{
|
|
83
|
+
soldAccountId: z.ZodString;
|
|
84
|
+
soldOrderId: z.ZodString;
|
|
85
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
soldAccountId: string;
|
|
88
|
+
soldOrderId: string;
|
|
89
|
+
soldConversationId?: string | null | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
soldAccountId: string;
|
|
92
|
+
soldOrderId: string;
|
|
93
|
+
soldConversationId?: string | null | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
type: "DELIVERED";
|
|
97
|
+
data: {
|
|
98
|
+
soldAccountId: string;
|
|
99
|
+
soldOrderId: string;
|
|
100
|
+
soldConversationId?: string | null | undefined;
|
|
101
|
+
};
|
|
102
|
+
}, {
|
|
103
|
+
type: "DELIVERED";
|
|
104
|
+
data: {
|
|
105
|
+
soldAccountId: string;
|
|
106
|
+
soldOrderId: string;
|
|
107
|
+
soldConversationId?: string | null | undefined;
|
|
108
|
+
};
|
|
80
109
|
}>]>;
|
|
81
110
|
export type ItemHistoryDecodedPayload = z.infer<typeof ItemHistoryDecodedPayloadSchema>;
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const ItemHistoryScheduledPayload_1 = require("./data/ItemHistoryScheduledPayload");
|
|
6
6
|
const ItemHistoryFailedToPublishPayload_1 = require("./data/ItemHistoryFailedToPublishPayload");
|
|
7
7
|
const ItemHistoryBuyerPaidPayload_1 = require("./data/ItemHistoryBuyerPaidPayload");
|
|
8
|
+
const ItemHistoryDeliveredPayload_1 = require("./data/ItemHistoryDeliveredPayload");
|
|
8
9
|
exports.ItemHistoryDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
|
|
9
10
|
zod_1.z.object({
|
|
10
11
|
type: zod_1.z.literal("EMPTY"),
|
|
@@ -21,4 +22,8 @@ exports.ItemHistoryDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
|
|
|
21
22
|
type: zod_1.z.literal("BUYER_PAID"),
|
|
22
23
|
data: ItemHistoryBuyerPaidPayload_1.ItemHistoryBuyerPaidPayloadSchema,
|
|
23
24
|
}),
|
|
25
|
+
zod_1.z.object({
|
|
26
|
+
type: zod_1.z.literal("DELIVERED"),
|
|
27
|
+
data: ItemHistoryDeliveredPayload_1.ItemHistoryDeliveredPayloadSchema,
|
|
28
|
+
}),
|
|
24
29
|
]);
|
|
@@ -3,6 +3,7 @@ import {z} from "zod"
|
|
|
3
3
|
import {ItemHistoryScheduledPayloadSchema} from "./data/ItemHistoryScheduledPayload"
|
|
4
4
|
import {ItemHistoryFailedToPublishPayloadSchema} from "./data/ItemHistoryFailedToPublishPayload"
|
|
5
5
|
import {ItemHistoryBuyerPaidPayloadSchema} from "./data/ItemHistoryBuyerPaidPayload"
|
|
6
|
+
import {ItemHistoryDeliveredPayloadSchema} from "./data/ItemHistoryDeliveredPayload"
|
|
6
7
|
|
|
7
8
|
export const ItemHistoryDecodedPayloadSchema = z.discriminatedUnion("type", [
|
|
8
9
|
z.object({
|
|
@@ -20,5 +21,9 @@ export const ItemHistoryDecodedPayloadSchema = z.discriminatedUnion("type", [
|
|
|
20
21
|
type: z.literal("BUYER_PAID"),
|
|
21
22
|
data: ItemHistoryBuyerPaidPayloadSchema,
|
|
22
23
|
}),
|
|
24
|
+
z.object({
|
|
25
|
+
type: z.literal("DELIVERED"),
|
|
26
|
+
data: ItemHistoryDeliveredPayloadSchema,
|
|
27
|
+
}),
|
|
23
28
|
])
|
|
24
29
|
export type ItemHistoryDecodedPayload = z.infer<typeof ItemHistoryDecodedPayloadSchema>
|