controlresell 2.2.12 → 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/catalogs/Catalog.d.ts +3 -6
- package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
- package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
- package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
- package/src/com/controlresell/models/items/CreatedItems.d.ts +139 -130
- package/src/com/controlresell/models/items/Item.d.ts +111 -104
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +139 -130
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +139 -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/items/platforms/ItemOnPlatform.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
- package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +150 -130
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +150 -130
- package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +144 -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 +3476 -41
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
- 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/platforms/PlatformAuthRequest.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
- 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 +2 -0
- package/src/index.js +7 -3
- package/src/index.ts +2 -0
|
@@ -25,6 +25,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
25
25
|
accountId: z.ZodString;
|
|
26
26
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
27
27
|
name: z.ZodString;
|
|
28
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
29
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
29
30
|
}, "strip", z.ZodTypeAny, {
|
|
30
31
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -32,12 +33,14 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
32
33
|
name: string;
|
|
33
34
|
platform: "VINTED" | "SHOPIFY";
|
|
34
35
|
accountId: string;
|
|
36
|
+
locale?: string | null | undefined;
|
|
35
37
|
}, {
|
|
36
38
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
37
39
|
userId: string | number;
|
|
38
40
|
name: string;
|
|
39
41
|
platform: "VINTED" | "SHOPIFY";
|
|
40
42
|
accountId: string;
|
|
43
|
+
locale?: string | null | undefined;
|
|
41
44
|
}>>>;
|
|
42
45
|
}, "strip", z.ZodTypeAny, {
|
|
43
46
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -53,6 +56,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
53
56
|
name: string;
|
|
54
57
|
platform: "VINTED" | "SHOPIFY";
|
|
55
58
|
accountId: string;
|
|
59
|
+
locale?: string | null | undefined;
|
|
56
60
|
} | null | undefined;
|
|
57
61
|
}, {
|
|
58
62
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -68,6 +72,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
68
72
|
name: string;
|
|
69
73
|
platform: "VINTED" | "SHOPIFY";
|
|
70
74
|
accountId: string;
|
|
75
|
+
locale?: string | null | undefined;
|
|
71
76
|
} | null | undefined;
|
|
72
77
|
}>>>;
|
|
73
78
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -87,6 +92,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
87
92
|
name: string;
|
|
88
93
|
platform: "VINTED" | "SHOPIFY";
|
|
89
94
|
accountId: string;
|
|
95
|
+
locale?: string | null | undefined;
|
|
90
96
|
} | null | undefined;
|
|
91
97
|
} | null | undefined;
|
|
92
98
|
}, {
|
|
@@ -106,6 +112,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
106
112
|
name: string;
|
|
107
113
|
platform: "VINTED" | "SHOPIFY";
|
|
108
114
|
accountId: string;
|
|
115
|
+
locale?: string | null | undefined;
|
|
109
116
|
} | null | undefined;
|
|
110
117
|
} | null | undefined;
|
|
111
118
|
}>, "many">>>;
|
|
@@ -215,6 +222,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
215
222
|
name: string;
|
|
216
223
|
platform: "VINTED" | "SHOPIFY";
|
|
217
224
|
accountId: string;
|
|
225
|
+
locale?: string | null | undefined;
|
|
218
226
|
} | null | undefined;
|
|
219
227
|
} | null | undefined;
|
|
220
228
|
}[] | null | undefined;
|
|
@@ -264,6 +272,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
264
272
|
name: string;
|
|
265
273
|
platform: "VINTED" | "SHOPIFY";
|
|
266
274
|
accountId: string;
|
|
275
|
+
locale?: string | null | undefined;
|
|
267
276
|
} | null | undefined;
|
|
268
277
|
} | null | undefined;
|
|
269
278
|
}[] | null | undefined;
|
|
@@ -512,56 +521,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
512
521
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
513
522
|
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"]>;
|
|
514
523
|
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
515
|
-
type: z.ZodLiteral<"EMPTY">;
|
|
516
|
-
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
type: "EMPTY";
|
|
518
|
-
}, {
|
|
519
|
-
type: "EMPTY";
|
|
520
|
-
}>, z.ZodObject<{
|
|
521
|
-
type: z.ZodLiteral<"SCHEDULED">;
|
|
522
|
-
data: z.ZodObject<{
|
|
523
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
524
|
-
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
525
|
-
}, "strip", z.ZodTypeAny, {
|
|
526
|
-
platform: "VINTED" | "SHOPIFY";
|
|
527
|
-
publishingDate?: Date | null | undefined;
|
|
528
|
-
}, {
|
|
529
|
-
platform: "VINTED" | "SHOPIFY";
|
|
530
|
-
publishingDate?: Date | null | undefined;
|
|
531
|
-
}>;
|
|
532
|
-
}, "strip", z.ZodTypeAny, {
|
|
533
|
-
type: "SCHEDULED";
|
|
534
|
-
data: {
|
|
535
|
-
platform: "VINTED" | "SHOPIFY";
|
|
536
|
-
publishingDate?: Date | null | undefined;
|
|
537
|
-
};
|
|
538
|
-
}, {
|
|
539
|
-
type: "SCHEDULED";
|
|
540
|
-
data: {
|
|
541
|
-
platform: "VINTED" | "SHOPIFY";
|
|
542
|
-
publishingDate?: Date | null | undefined;
|
|
543
|
-
};
|
|
544
|
-
}>, z.ZodObject<{
|
|
545
|
-
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
546
|
-
data: z.ZodObject<{
|
|
547
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
548
|
-
}, "strip", z.ZodTypeAny, {
|
|
549
|
-
platform: "VINTED" | "SHOPIFY";
|
|
550
|
-
}, {
|
|
551
|
-
platform: "VINTED" | "SHOPIFY";
|
|
552
|
-
}>;
|
|
553
|
-
}, "strip", z.ZodTypeAny, {
|
|
554
|
-
type: "FAILED_TO_PUBLISH";
|
|
555
|
-
data: {
|
|
556
|
-
platform: "VINTED" | "SHOPIFY";
|
|
557
|
-
};
|
|
558
|
-
}, {
|
|
559
|
-
type: "FAILED_TO_PUBLISH";
|
|
560
|
-
data: {
|
|
561
|
-
platform: "VINTED" | "SHOPIFY";
|
|
562
|
-
};
|
|
563
|
-
}>, z.ZodObject<{
|
|
564
|
-
type: z.ZodLiteral<"BUYER_PAID">;
|
|
565
524
|
data: z.ZodObject<{
|
|
566
525
|
soldAccountId: z.ZodString;
|
|
567
526
|
soldOrderId: z.ZodString;
|
|
@@ -575,6 +534,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
575
534
|
soldOrderId: string;
|
|
576
535
|
soldConversationId?: string | null | undefined;
|
|
577
536
|
}>;
|
|
537
|
+
type: z.ZodLiteral<"BUYER_PAID">;
|
|
578
538
|
}, "strip", z.ZodTypeAny, {
|
|
579
539
|
type: "BUYER_PAID";
|
|
580
540
|
data: {
|
|
@@ -590,7 +550,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
590
550
|
soldConversationId?: string | null | undefined;
|
|
591
551
|
};
|
|
592
552
|
}>, z.ZodObject<{
|
|
593
|
-
type: z.ZodLiteral<"DELIVERED">;
|
|
594
553
|
data: z.ZodObject<{
|
|
595
554
|
soldAccountId: z.ZodString;
|
|
596
555
|
soldOrderId: z.ZodString;
|
|
@@ -604,6 +563,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
604
563
|
soldOrderId: string;
|
|
605
564
|
soldConversationId?: string | null | undefined;
|
|
606
565
|
}>;
|
|
566
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
607
567
|
}, "strip", z.ZodTypeAny, {
|
|
608
568
|
type: "DELIVERED";
|
|
609
569
|
data: {
|
|
@@ -619,7 +579,31 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
619
579
|
soldConversationId?: string | null | undefined;
|
|
620
580
|
};
|
|
621
581
|
}>, z.ZodObject<{
|
|
622
|
-
type: z.ZodLiteral<"
|
|
582
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
583
|
+
}, "strip", z.ZodTypeAny, {
|
|
584
|
+
type: "EMPTY";
|
|
585
|
+
}, {
|
|
586
|
+
type: "EMPTY";
|
|
587
|
+
}>, z.ZodObject<{
|
|
588
|
+
data: z.ZodObject<{
|
|
589
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
platform: "VINTED" | "SHOPIFY";
|
|
592
|
+
}, {
|
|
593
|
+
platform: "VINTED" | "SHOPIFY";
|
|
594
|
+
}>;
|
|
595
|
+
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
|
+
type: "FAILED_TO_PUBLISH";
|
|
598
|
+
data: {
|
|
599
|
+
platform: "VINTED" | "SHOPIFY";
|
|
600
|
+
};
|
|
601
|
+
}, {
|
|
602
|
+
type: "FAILED_TO_PUBLISH";
|
|
603
|
+
data: {
|
|
604
|
+
platform: "VINTED" | "SHOPIFY";
|
|
605
|
+
};
|
|
606
|
+
}>, z.ZodObject<{
|
|
623
607
|
data: z.ZodObject<{
|
|
624
608
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
625
609
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -627,6 +611,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
627
611
|
}, {
|
|
628
612
|
platform: "VINTED" | "SHOPIFY";
|
|
629
613
|
}>;
|
|
614
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
630
615
|
}, "strip", z.ZodTypeAny, {
|
|
631
616
|
type: "REPUBLISHING";
|
|
632
617
|
data: {
|
|
@@ -637,27 +622,38 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
637
622
|
data: {
|
|
638
623
|
platform: "VINTED" | "SHOPIFY";
|
|
639
624
|
};
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
625
|
+
}>, z.ZodObject<{
|
|
626
|
+
data: z.ZodObject<{
|
|
627
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
628
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
629
|
+
}, "strip", z.ZodTypeAny, {
|
|
630
|
+
platform: "VINTED" | "SHOPIFY";
|
|
631
|
+
publishingDate?: Date | null | undefined;
|
|
632
|
+
}, {
|
|
633
|
+
platform: "VINTED" | "SHOPIFY";
|
|
634
|
+
publishingDate?: Date | null | undefined;
|
|
635
|
+
}>;
|
|
636
|
+
type: z.ZodLiteral<"SCHEDULED">;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
650
638
|
type: "SCHEDULED";
|
|
651
639
|
data: {
|
|
652
640
|
platform: "VINTED" | "SHOPIFY";
|
|
653
641
|
publishingDate?: Date | null | undefined;
|
|
654
642
|
};
|
|
655
|
-
}
|
|
656
|
-
type: "
|
|
643
|
+
}, {
|
|
644
|
+
type: "SCHEDULED";
|
|
657
645
|
data: {
|
|
658
646
|
platform: "VINTED" | "SHOPIFY";
|
|
647
|
+
publishingDate?: Date | null | undefined;
|
|
659
648
|
};
|
|
660
|
-
}
|
|
649
|
+
}>]>>>;
|
|
650
|
+
createdAt: z.ZodDate;
|
|
651
|
+
}, "strip", z.ZodTypeAny, {
|
|
652
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
653
|
+
id: string;
|
|
654
|
+
createdAt: Date;
|
|
655
|
+
itemId: string | number;
|
|
656
|
+
data?: {
|
|
661
657
|
type: "BUYER_PAID";
|
|
662
658
|
data: {
|
|
663
659
|
soldAccountId: string;
|
|
@@ -672,30 +668,30 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
672
668
|
soldConversationId?: string | null | undefined;
|
|
673
669
|
};
|
|
674
670
|
} | {
|
|
675
|
-
type: "
|
|
671
|
+
type: "EMPTY";
|
|
672
|
+
} | {
|
|
673
|
+
type: "FAILED_TO_PUBLISH";
|
|
676
674
|
data: {
|
|
677
675
|
platform: "VINTED" | "SHOPIFY";
|
|
678
676
|
};
|
|
679
|
-
} | null | undefined;
|
|
680
|
-
}, {
|
|
681
|
-
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
682
|
-
id: string;
|
|
683
|
-
createdAt: Date;
|
|
684
|
-
itemId: string | number;
|
|
685
|
-
data?: {
|
|
686
|
-
type: "EMPTY";
|
|
687
677
|
} | {
|
|
688
|
-
type: "
|
|
678
|
+
type: "REPUBLISHING";
|
|
689
679
|
data: {
|
|
690
680
|
platform: "VINTED" | "SHOPIFY";
|
|
691
|
-
publishingDate?: Date | null | undefined;
|
|
692
681
|
};
|
|
693
682
|
} | {
|
|
694
|
-
type: "
|
|
683
|
+
type: "SCHEDULED";
|
|
695
684
|
data: {
|
|
696
685
|
platform: "VINTED" | "SHOPIFY";
|
|
686
|
+
publishingDate?: Date | null | undefined;
|
|
697
687
|
};
|
|
698
|
-
} |
|
|
688
|
+
} | null | undefined;
|
|
689
|
+
}, {
|
|
690
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
691
|
+
id: string;
|
|
692
|
+
createdAt: Date;
|
|
693
|
+
itemId: string | number;
|
|
694
|
+
data?: {
|
|
699
695
|
type: "BUYER_PAID";
|
|
700
696
|
data: {
|
|
701
697
|
soldAccountId: string;
|
|
@@ -709,11 +705,24 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
709
705
|
soldOrderId: string;
|
|
710
706
|
soldConversationId?: string | null | undefined;
|
|
711
707
|
};
|
|
708
|
+
} | {
|
|
709
|
+
type: "EMPTY";
|
|
710
|
+
} | {
|
|
711
|
+
type: "FAILED_TO_PUBLISH";
|
|
712
|
+
data: {
|
|
713
|
+
platform: "VINTED" | "SHOPIFY";
|
|
714
|
+
};
|
|
712
715
|
} | {
|
|
713
716
|
type: "REPUBLISHING";
|
|
714
717
|
data: {
|
|
715
718
|
platform: "VINTED" | "SHOPIFY";
|
|
716
719
|
};
|
|
720
|
+
} | {
|
|
721
|
+
type: "SCHEDULED";
|
|
722
|
+
data: {
|
|
723
|
+
platform: "VINTED" | "SHOPIFY";
|
|
724
|
+
publishingDate?: Date | null | undefined;
|
|
725
|
+
};
|
|
717
726
|
} | null | undefined;
|
|
718
727
|
}>>>;
|
|
719
728
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -729,6 +738,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
729
738
|
accountId: z.ZodString;
|
|
730
739
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
731
740
|
name: z.ZodString;
|
|
741
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
732
742
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
733
743
|
}, "strip", z.ZodTypeAny, {
|
|
734
744
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -736,12 +746,14 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
736
746
|
name: string;
|
|
737
747
|
platform: "VINTED" | "SHOPIFY";
|
|
738
748
|
accountId: string;
|
|
749
|
+
locale?: string | null | undefined;
|
|
739
750
|
}, {
|
|
740
751
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
741
752
|
userId: string | number;
|
|
742
753
|
name: string;
|
|
743
754
|
platform: "VINTED" | "SHOPIFY";
|
|
744
755
|
accountId: string;
|
|
756
|
+
locale?: string | null | undefined;
|
|
745
757
|
}>>>;
|
|
746
758
|
}, "strip", z.ZodTypeAny, {
|
|
747
759
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -757,6 +769,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
757
769
|
name: string;
|
|
758
770
|
platform: "VINTED" | "SHOPIFY";
|
|
759
771
|
accountId: string;
|
|
772
|
+
locale?: string | null | undefined;
|
|
760
773
|
} | null | undefined;
|
|
761
774
|
}, {
|
|
762
775
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -772,6 +785,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
772
785
|
name: string;
|
|
773
786
|
platform: "VINTED" | "SHOPIFY";
|
|
774
787
|
accountId: string;
|
|
788
|
+
locale?: string | null | undefined;
|
|
775
789
|
} | null | undefined;
|
|
776
790
|
}>, "many">>>;
|
|
777
791
|
createdAt: z.ZodDate;
|
|
@@ -816,6 +830,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
816
830
|
name: string;
|
|
817
831
|
platform: "VINTED" | "SHOPIFY";
|
|
818
832
|
accountId: string;
|
|
833
|
+
locale?: string | null | undefined;
|
|
819
834
|
} | null | undefined;
|
|
820
835
|
}[] | null | undefined;
|
|
821
836
|
files?: {
|
|
@@ -885,19 +900,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
885
900
|
createdAt: Date;
|
|
886
901
|
itemId: string | number;
|
|
887
902
|
data?: {
|
|
888
|
-
type: "EMPTY";
|
|
889
|
-
} | {
|
|
890
|
-
type: "SCHEDULED";
|
|
891
|
-
data: {
|
|
892
|
-
platform: "VINTED" | "SHOPIFY";
|
|
893
|
-
publishingDate?: Date | null | undefined;
|
|
894
|
-
};
|
|
895
|
-
} | {
|
|
896
|
-
type: "FAILED_TO_PUBLISH";
|
|
897
|
-
data: {
|
|
898
|
-
platform: "VINTED" | "SHOPIFY";
|
|
899
|
-
};
|
|
900
|
-
} | {
|
|
901
903
|
type: "BUYER_PAID";
|
|
902
904
|
data: {
|
|
903
905
|
soldAccountId: string;
|
|
@@ -911,11 +913,24 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
911
913
|
soldOrderId: string;
|
|
912
914
|
soldConversationId?: string | null | undefined;
|
|
913
915
|
};
|
|
916
|
+
} | {
|
|
917
|
+
type: "EMPTY";
|
|
918
|
+
} | {
|
|
919
|
+
type: "FAILED_TO_PUBLISH";
|
|
920
|
+
data: {
|
|
921
|
+
platform: "VINTED" | "SHOPIFY";
|
|
922
|
+
};
|
|
914
923
|
} | {
|
|
915
924
|
type: "REPUBLISHING";
|
|
916
925
|
data: {
|
|
917
926
|
platform: "VINTED" | "SHOPIFY";
|
|
918
927
|
};
|
|
928
|
+
} | {
|
|
929
|
+
type: "SCHEDULED";
|
|
930
|
+
data: {
|
|
931
|
+
platform: "VINTED" | "SHOPIFY";
|
|
932
|
+
publishingDate?: Date | null | undefined;
|
|
933
|
+
};
|
|
919
934
|
} | null | undefined;
|
|
920
935
|
} | null | undefined;
|
|
921
936
|
}, {
|
|
@@ -958,6 +973,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
958
973
|
name: string;
|
|
959
974
|
platform: "VINTED" | "SHOPIFY";
|
|
960
975
|
accountId: string;
|
|
976
|
+
locale?: string | null | undefined;
|
|
961
977
|
} | null | undefined;
|
|
962
978
|
}[] | null | undefined;
|
|
963
979
|
files?: {
|
|
@@ -1027,19 +1043,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1027
1043
|
createdAt: Date;
|
|
1028
1044
|
itemId: string | number;
|
|
1029
1045
|
data?: {
|
|
1030
|
-
type: "EMPTY";
|
|
1031
|
-
} | {
|
|
1032
|
-
type: "SCHEDULED";
|
|
1033
|
-
data: {
|
|
1034
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1035
|
-
publishingDate?: Date | null | undefined;
|
|
1036
|
-
};
|
|
1037
|
-
} | {
|
|
1038
|
-
type: "FAILED_TO_PUBLISH";
|
|
1039
|
-
data: {
|
|
1040
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1041
|
-
};
|
|
1042
|
-
} | {
|
|
1043
1046
|
type: "BUYER_PAID";
|
|
1044
1047
|
data: {
|
|
1045
1048
|
soldAccountId: string;
|
|
@@ -1053,11 +1056,24 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1053
1056
|
soldOrderId: string;
|
|
1054
1057
|
soldConversationId?: string | null | undefined;
|
|
1055
1058
|
};
|
|
1059
|
+
} | {
|
|
1060
|
+
type: "EMPTY";
|
|
1061
|
+
} | {
|
|
1062
|
+
type: "FAILED_TO_PUBLISH";
|
|
1063
|
+
data: {
|
|
1064
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1065
|
+
};
|
|
1056
1066
|
} | {
|
|
1057
1067
|
type: "REPUBLISHING";
|
|
1058
1068
|
data: {
|
|
1059
1069
|
platform: "VINTED" | "SHOPIFY";
|
|
1060
1070
|
};
|
|
1071
|
+
} | {
|
|
1072
|
+
type: "SCHEDULED";
|
|
1073
|
+
data: {
|
|
1074
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1075
|
+
publishingDate?: Date | null | undefined;
|
|
1076
|
+
};
|
|
1061
1077
|
} | null | undefined;
|
|
1062
1078
|
} | null | undefined;
|
|
1063
1079
|
}>, "many">;
|
|
@@ -1102,6 +1118,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1102
1118
|
name: string;
|
|
1103
1119
|
platform: "VINTED" | "SHOPIFY";
|
|
1104
1120
|
accountId: string;
|
|
1121
|
+
locale?: string | null | undefined;
|
|
1105
1122
|
} | null | undefined;
|
|
1106
1123
|
}[] | null | undefined;
|
|
1107
1124
|
files?: {
|
|
@@ -1171,19 +1188,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1171
1188
|
createdAt: Date;
|
|
1172
1189
|
itemId: string | number;
|
|
1173
1190
|
data?: {
|
|
1174
|
-
type: "EMPTY";
|
|
1175
|
-
} | {
|
|
1176
|
-
type: "SCHEDULED";
|
|
1177
|
-
data: {
|
|
1178
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1179
|
-
publishingDate?: Date | null | undefined;
|
|
1180
|
-
};
|
|
1181
|
-
} | {
|
|
1182
|
-
type: "FAILED_TO_PUBLISH";
|
|
1183
|
-
data: {
|
|
1184
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1185
|
-
};
|
|
1186
|
-
} | {
|
|
1187
1191
|
type: "BUYER_PAID";
|
|
1188
1192
|
data: {
|
|
1189
1193
|
soldAccountId: string;
|
|
@@ -1197,11 +1201,24 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1197
1201
|
soldOrderId: string;
|
|
1198
1202
|
soldConversationId?: string | null | undefined;
|
|
1199
1203
|
};
|
|
1204
|
+
} | {
|
|
1205
|
+
type: "EMPTY";
|
|
1206
|
+
} | {
|
|
1207
|
+
type: "FAILED_TO_PUBLISH";
|
|
1208
|
+
data: {
|
|
1209
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1210
|
+
};
|
|
1200
1211
|
} | {
|
|
1201
1212
|
type: "REPUBLISHING";
|
|
1202
1213
|
data: {
|
|
1203
1214
|
platform: "VINTED" | "SHOPIFY";
|
|
1204
1215
|
};
|
|
1216
|
+
} | {
|
|
1217
|
+
type: "SCHEDULED";
|
|
1218
|
+
data: {
|
|
1219
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1220
|
+
publishingDate?: Date | null | undefined;
|
|
1221
|
+
};
|
|
1205
1222
|
} | null | undefined;
|
|
1206
1223
|
} | null | undefined;
|
|
1207
1224
|
}[];
|
|
@@ -1229,6 +1246,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1229
1246
|
name: string;
|
|
1230
1247
|
platform: "VINTED" | "SHOPIFY";
|
|
1231
1248
|
accountId: string;
|
|
1249
|
+
locale?: string | null | undefined;
|
|
1232
1250
|
} | null | undefined;
|
|
1233
1251
|
} | null | undefined;
|
|
1234
1252
|
}[] | null | undefined;
|
|
@@ -1296,6 +1314,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1296
1314
|
name: string;
|
|
1297
1315
|
platform: "VINTED" | "SHOPIFY";
|
|
1298
1316
|
accountId: string;
|
|
1317
|
+
locale?: string | null | undefined;
|
|
1299
1318
|
} | null | undefined;
|
|
1300
1319
|
}[] | null | undefined;
|
|
1301
1320
|
files?: {
|
|
@@ -1365,19 +1384,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1365
1384
|
createdAt: Date;
|
|
1366
1385
|
itemId: string | number;
|
|
1367
1386
|
data?: {
|
|
1368
|
-
type: "EMPTY";
|
|
1369
|
-
} | {
|
|
1370
|
-
type: "SCHEDULED";
|
|
1371
|
-
data: {
|
|
1372
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1373
|
-
publishingDate?: Date | null | undefined;
|
|
1374
|
-
};
|
|
1375
|
-
} | {
|
|
1376
|
-
type: "FAILED_TO_PUBLISH";
|
|
1377
|
-
data: {
|
|
1378
|
-
platform: "VINTED" | "SHOPIFY";
|
|
1379
|
-
};
|
|
1380
|
-
} | {
|
|
1381
1387
|
type: "BUYER_PAID";
|
|
1382
1388
|
data: {
|
|
1383
1389
|
soldAccountId: string;
|
|
@@ -1391,11 +1397,24 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1391
1397
|
soldOrderId: string;
|
|
1392
1398
|
soldConversationId?: string | null | undefined;
|
|
1393
1399
|
};
|
|
1400
|
+
} | {
|
|
1401
|
+
type: "EMPTY";
|
|
1402
|
+
} | {
|
|
1403
|
+
type: "FAILED_TO_PUBLISH";
|
|
1404
|
+
data: {
|
|
1405
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1406
|
+
};
|
|
1394
1407
|
} | {
|
|
1395
1408
|
type: "REPUBLISHING";
|
|
1396
1409
|
data: {
|
|
1397
1410
|
platform: "VINTED" | "SHOPIFY";
|
|
1398
1411
|
};
|
|
1412
|
+
} | {
|
|
1413
|
+
type: "SCHEDULED";
|
|
1414
|
+
data: {
|
|
1415
|
+
platform: "VINTED" | "SHOPIFY";
|
|
1416
|
+
publishingDate?: Date | null | undefined;
|
|
1417
|
+
};
|
|
1399
1418
|
} | null | undefined;
|
|
1400
1419
|
} | null | undefined;
|
|
1401
1420
|
}[];
|
|
@@ -1423,6 +1442,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1423
1442
|
name: string;
|
|
1424
1443
|
platform: "VINTED" | "SHOPIFY";
|
|
1425
1444
|
accountId: string;
|
|
1445
|
+
locale?: string | null | undefined;
|
|
1426
1446
|
} | null | undefined;
|
|
1427
1447
|
} | null | undefined;
|
|
1428
1448
|
}[] | null | undefined;
|
|
@@ -23,6 +23,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
23
23
|
accountId: z.ZodString;
|
|
24
24
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
25
25
|
name: z.ZodString;
|
|
26
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
27
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
27
28
|
}, "strip", z.ZodTypeAny, {
|
|
28
29
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -30,12 +31,14 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
30
31
|
name: string;
|
|
31
32
|
platform: "VINTED" | "SHOPIFY";
|
|
32
33
|
accountId: string;
|
|
34
|
+
locale?: string | null | undefined;
|
|
33
35
|
}, {
|
|
34
36
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
35
37
|
userId: string | number;
|
|
36
38
|
name: string;
|
|
37
39
|
platform: "VINTED" | "SHOPIFY";
|
|
38
40
|
accountId: string;
|
|
41
|
+
locale?: string | null | undefined;
|
|
39
42
|
}>>>;
|
|
40
43
|
}, "strip", z.ZodTypeAny, {
|
|
41
44
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -51,6 +54,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
51
54
|
name: string;
|
|
52
55
|
platform: "VINTED" | "SHOPIFY";
|
|
53
56
|
accountId: string;
|
|
57
|
+
locale?: string | null | undefined;
|
|
54
58
|
} | null | undefined;
|
|
55
59
|
}, {
|
|
56
60
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -66,6 +70,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
66
70
|
name: string;
|
|
67
71
|
platform: "VINTED" | "SHOPIFY";
|
|
68
72
|
accountId: string;
|
|
73
|
+
locale?: string | null | undefined;
|
|
69
74
|
} | null | undefined;
|
|
70
75
|
}>>>;
|
|
71
76
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -85,6 +90,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
85
90
|
name: string;
|
|
86
91
|
platform: "VINTED" | "SHOPIFY";
|
|
87
92
|
accountId: string;
|
|
93
|
+
locale?: string | null | undefined;
|
|
88
94
|
} | null | undefined;
|
|
89
95
|
} | null | undefined;
|
|
90
96
|
}, {
|
|
@@ -104,6 +110,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
104
110
|
name: string;
|
|
105
111
|
platform: "VINTED" | "SHOPIFY";
|
|
106
112
|
accountId: string;
|
|
113
|
+
locale?: string | null | undefined;
|
|
107
114
|
} | null | undefined;
|
|
108
115
|
} | null | undefined;
|
|
109
116
|
}>, "many">>>;
|
|
@@ -128,6 +135,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
128
135
|
name: string;
|
|
129
136
|
platform: "VINTED" | "SHOPIFY";
|
|
130
137
|
accountId: string;
|
|
138
|
+
locale?: string | null | undefined;
|
|
131
139
|
} | null | undefined;
|
|
132
140
|
} | null | undefined;
|
|
133
141
|
}[] | null | undefined;
|
|
@@ -156,6 +164,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
156
164
|
name: string;
|
|
157
165
|
platform: "VINTED" | "SHOPIFY";
|
|
158
166
|
accountId: string;
|
|
167
|
+
locale?: string | null | undefined;
|
|
159
168
|
} | null | undefined;
|
|
160
169
|
} | null | undefined;
|
|
161
170
|
}[] | null | undefined;
|