controlresell 2.9.7 → 2.10.0
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/api/responses/items/ItemsWithFilters.d.ts +26 -0
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts +22 -0
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +6 -6
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js +2 -2
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.ts +2 -2
- package/src/com/controlresell/inbox/models/conversations/ConversationOnPlatformUpdateRequest.d.ts +21 -7
- package/src/com/controlresell/inbox/models/conversations/ConversationOnPlatformUpdateRequest.d.ts.map +1 -1
- package/src/com/controlresell/inbox/models/preferences/MessageStreamResponse.d.ts +14 -0
- package/src/com/controlresell/inbox/models/preferences/MessageStreamResponse.d.ts.map +1 -1
- package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +52 -0
- package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +52 -0
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.d.ts +44 -0
- package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +351 -2705
- package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/ItemUpdate.js +2 -2
- package/src/com/controlresell/inventory/models/items/ItemUpdate.js.map +1 -1
- package/src/com/controlresell/inventory/models/items/ItemUpdate.ts +2 -2
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +52 -0
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts +18 -0
- package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts +18 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts +28 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryImportedPayload.d.ts +10 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryImportedPayload.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +10 -0
- package/src/com/controlresell/inventory/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +4 -4
- package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts +5 -5
- package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/BatchUpdateOrdersPayload.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +681 -3463
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +255 -2609
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js +2 -2
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.ts +2 -2
- package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistory.d.ts +4 -4
- package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryMetadata.d.ts +4 -4
- package/src/com/controlresell/models/subscriptions/UserLimitCounter.d.ts +13 -0
- package/src/com/controlresell/models/subscriptions/UserLimitCounter.d.ts.map +1 -0
- package/src/com/controlresell/models/subscriptions/UserLimitCounter.js +6 -0
- package/src/com/controlresell/models/subscriptions/UserLimitCounter.js.map +1 -0
- package/src/com/controlresell/models/subscriptions/UserLimitCounter.ts +7 -0
- package/src/com/controlresell/models/subscriptions/UserLimits.d.ts +43 -0
- package/src/com/controlresell/models/subscriptions/UserLimits.d.ts.map +1 -0
- package/src/com/controlresell/models/subscriptions/UserLimits.js +7 -0
- package/src/com/controlresell/models/subscriptions/UserLimits.js.map +1 -0
- package/src/com/controlresell/models/subscriptions/UserLimits.ts +8 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +2309 -7017
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.js +2 -2
- package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.ts +2 -2
- package/src/index.d.ts +8 -7
- package/src/index.d.ts.map +1 -1
- package/src/index.js +8 -7
- package/src/index.js.map +1 -1
- package/src/index.ts +8 -7
- package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.d.ts +0 -128
- package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.d.ts.map +0 -1
- package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.js +0 -14
- package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.js.map +0 -1
- package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.ts +0 -15
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/CancellationReason.d.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/CancellationReason.d.ts.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/CancellationReason.js +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/CancellationReason.js.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/CancellationReason.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistory.d.ts.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistory.js +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistory.js.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistory.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryMetadata.d.ts.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryMetadata.js +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryMetadata.js.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryMetadata.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistorySource.d.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistorySource.d.ts.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistorySource.js +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistorySource.js.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistorySource.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryType.d.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryType.d.ts.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryType.js +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryType.js.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionHistoryType.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionState.d.ts +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionState.d.ts.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionState.js +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionState.js.map +0 -0
- /package/src/com/controlresell/{subscriptions/models → models/subscriptions}/SubscriptionState.ts +0 -0
|
@@ -4,7 +4,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
accountId: z.ZodString;
|
|
6
6
|
platformOrderId: z.ZodString;
|
|
7
|
-
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "ORDER_RETURNED_TO_SENDER", "UNKNOWN"]>;
|
|
7
|
+
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "ORDER_RETURNED_TO_SENDER", "PAYMENT_FAILED", "ORDER_SUSPENDED", "SHIPPING_TO_VERIFICATION_CENTER", "PAYMENT_IN_PROGRESS", "SENT_TO_VERIFICATION_CENTER", "SHIPPING_FROM_VERIFICATION_CENTER", "UNKNOWN"]>;
|
|
8
8
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
price: z.ZodNumber;
|
|
@@ -408,7 +408,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
408
408
|
isPrepared: z.ZodBoolean;
|
|
409
409
|
}, "strip", z.ZodTypeAny, {
|
|
410
410
|
type: "SALE" | "PURCHASE";
|
|
411
|
-
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
|
|
411
|
+
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER" | "PAYMENT_FAILED" | "ORDER_SUSPENDED" | "SHIPPING_TO_VERIFICATION_CENTER" | "PAYMENT_IN_PROGRESS" | "SENT_TO_VERIFICATION_CENTER" | "SHIPPING_FROM_VERIFICATION_CENTER";
|
|
412
412
|
date: Date;
|
|
413
413
|
id: string;
|
|
414
414
|
price: number;
|
|
@@ -502,7 +502,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
502
502
|
}[] | null | undefined;
|
|
503
503
|
}, {
|
|
504
504
|
type: "SALE" | "PURCHASE";
|
|
505
|
-
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
|
|
505
|
+
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER" | "PAYMENT_FAILED" | "ORDER_SUSPENDED" | "SHIPPING_TO_VERIFICATION_CENTER" | "PAYMENT_IN_PROGRESS" | "SENT_TO_VERIFICATION_CENTER" | "SHIPPING_FROM_VERIFICATION_CENTER";
|
|
506
506
|
date: Date;
|
|
507
507
|
id: string;
|
|
508
508
|
price: number;
|
|
@@ -596,8 +596,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
596
596
|
}[] | null | undefined;
|
|
597
597
|
}>;
|
|
598
598
|
items: z.ZodArray<z.ZodObject<{
|
|
599
|
-
id: z.
|
|
600
|
-
userId: z.
|
|
599
|
+
id: z.ZodNumber;
|
|
600
|
+
userId: z.ZodNumber;
|
|
601
601
|
name: z.ZodString;
|
|
602
602
|
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
603
603
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -648,18 +648,18 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
648
648
|
} | null | undefined;
|
|
649
649
|
}>, "many">>>;
|
|
650
650
|
categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
651
|
-
brandId: z.ZodOptional<z.ZodNullable<z.
|
|
651
|
+
brandId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
652
652
|
sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
653
|
state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
654
654
|
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
655
655
|
purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
656
656
|
purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
657
|
-
purchasePlaceId: z.ZodOptional<z.ZodNullable<z.
|
|
657
|
+
purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
658
658
|
sold: z.ZodBoolean;
|
|
659
659
|
purchased: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
660
660
|
sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
661
661
|
sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
662
|
-
sellingPlaceId: z.ZodOptional<z.ZodNullable<z.
|
|
662
|
+
sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
663
663
|
estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
664
664
|
fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
665
665
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -763,49 +763,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
763
763
|
}>, "many">>>;
|
|
764
764
|
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
765
765
|
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
766
|
-
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
767
|
-
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
768
|
-
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
769
|
-
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
770
|
-
firstName: z.ZodString;
|
|
771
|
-
lastName: z.ZodString;
|
|
772
|
-
birthDate: z.ZodDate;
|
|
773
|
-
email: z.ZodString;
|
|
774
|
-
idNumber: z.ZodString;
|
|
775
|
-
phone: z.ZodString;
|
|
776
|
-
iban: z.ZodString;
|
|
777
|
-
bic: z.ZodString;
|
|
778
|
-
phoneVerified: z.ZodBoolean;
|
|
779
|
-
}, "strip", z.ZodTypeAny, {
|
|
780
|
-
userId: string | number;
|
|
781
|
-
id: string | number;
|
|
782
|
-
email: string;
|
|
783
|
-
firstName: string;
|
|
784
|
-
lastName: string;
|
|
785
|
-
birthDate: Date;
|
|
786
|
-
idNumber: string;
|
|
787
|
-
phone: string;
|
|
788
|
-
iban: string;
|
|
789
|
-
bic: string;
|
|
790
|
-
phoneVerified: boolean;
|
|
791
|
-
}, {
|
|
792
|
-
userId: string | number;
|
|
793
|
-
id: string | number;
|
|
794
|
-
email: string;
|
|
795
|
-
firstName: string;
|
|
796
|
-
lastName: string;
|
|
797
|
-
birthDate: Date;
|
|
798
|
-
idNumber: string;
|
|
799
|
-
phone: string;
|
|
800
|
-
iban: string;
|
|
801
|
-
bic: string;
|
|
802
|
-
phoneVerified: boolean;
|
|
803
|
-
}>>>;
|
|
804
|
-
customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
805
|
-
customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
806
|
-
customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
807
|
-
customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
808
|
-
contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
809
766
|
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
810
767
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
811
768
|
fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -1130,6 +1087,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1130
1087
|
manufacturerLabelling?: string | null | undefined;
|
|
1131
1088
|
labels?: string[] | null | undefined;
|
|
1132
1089
|
}>;
|
|
1090
|
+
viewsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1091
|
+
favoritesCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1133
1092
|
}, "strip", z.ZodTypeAny, {
|
|
1134
1093
|
platformId: string;
|
|
1135
1094
|
post: {
|
|
@@ -1159,6 +1118,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1159
1118
|
};
|
|
1160
1119
|
createdAt?: Date | null | undefined;
|
|
1161
1120
|
platformUrl?: string | null | undefined;
|
|
1121
|
+
viewsCount?: number | null | undefined;
|
|
1122
|
+
favoritesCount?: number | null | undefined;
|
|
1162
1123
|
}, {
|
|
1163
1124
|
platformId: string;
|
|
1164
1125
|
post: {
|
|
@@ -1188,6 +1149,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1188
1149
|
};
|
|
1189
1150
|
createdAt?: Date | null | undefined;
|
|
1190
1151
|
platformUrl?: string | null | undefined;
|
|
1152
|
+
viewsCount?: number | null | undefined;
|
|
1153
|
+
favoritesCount?: number | null | undefined;
|
|
1191
1154
|
}>;
|
|
1192
1155
|
}, "strip", z.ZodTypeAny, {
|
|
1193
1156
|
post: {
|
|
@@ -1219,6 +1182,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1219
1182
|
};
|
|
1220
1183
|
createdAt?: Date | null | undefined;
|
|
1221
1184
|
platformUrl?: string | null | undefined;
|
|
1185
|
+
viewsCount?: number | null | undefined;
|
|
1186
|
+
favoritesCount?: number | null | undefined;
|
|
1222
1187
|
};
|
|
1223
1188
|
}, {
|
|
1224
1189
|
post: {
|
|
@@ -1250,6 +1215,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1250
1215
|
};
|
|
1251
1216
|
createdAt?: Date | null | undefined;
|
|
1252
1217
|
platformUrl?: string | null | undefined;
|
|
1218
|
+
viewsCount?: number | null | undefined;
|
|
1219
|
+
favoritesCount?: number | null | undefined;
|
|
1253
1220
|
};
|
|
1254
1221
|
}>;
|
|
1255
1222
|
type: z.ZodLiteral<"IMPORTED">;
|
|
@@ -1285,6 +1252,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1285
1252
|
};
|
|
1286
1253
|
createdAt?: Date | null | undefined;
|
|
1287
1254
|
platformUrl?: string | null | undefined;
|
|
1255
|
+
viewsCount?: number | null | undefined;
|
|
1256
|
+
favoritesCount?: number | null | undefined;
|
|
1288
1257
|
};
|
|
1289
1258
|
};
|
|
1290
1259
|
}, {
|
|
@@ -1319,6 +1288,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1319
1288
|
};
|
|
1320
1289
|
createdAt?: Date | null | undefined;
|
|
1321
1290
|
platformUrl?: string | null | undefined;
|
|
1291
|
+
viewsCount?: number | null | undefined;
|
|
1292
|
+
favoritesCount?: number | null | undefined;
|
|
1322
1293
|
};
|
|
1323
1294
|
};
|
|
1324
1295
|
}>, z.ZodObject<{
|
|
@@ -1985,6 +1956,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1985
1956
|
};
|
|
1986
1957
|
createdAt?: Date | null | undefined;
|
|
1987
1958
|
platformUrl?: string | null | undefined;
|
|
1959
|
+
viewsCount?: number | null | undefined;
|
|
1960
|
+
favoritesCount?: number | null | undefined;
|
|
1988
1961
|
};
|
|
1989
1962
|
};
|
|
1990
1963
|
} | {
|
|
@@ -2184,6 +2157,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2184
2157
|
};
|
|
2185
2158
|
createdAt?: Date | null | undefined;
|
|
2186
2159
|
platformUrl?: string | null | undefined;
|
|
2160
|
+
viewsCount?: number | null | undefined;
|
|
2161
|
+
favoritesCount?: number | null | undefined;
|
|
2187
2162
|
};
|
|
2188
2163
|
};
|
|
2189
2164
|
} | {
|
|
@@ -2421,135 +2396,116 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2421
2396
|
viewsCount?: number | null | undefined;
|
|
2422
2397
|
favoritesCount?: number | null | undefined;
|
|
2423
2398
|
}>, "many">>>;
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2399
|
+
actions: z.ZodObject<{
|
|
2400
|
+
perAccount: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["PUBLISH", "PUBLISH_CANCEL", "REPUBLISH", "REPUBLISH_CANCEL", "UPDATE"]>, "many">>;
|
|
2401
|
+
}, "strip", z.ZodTypeAny, {
|
|
2402
|
+
perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
|
|
2403
|
+
}, {
|
|
2404
|
+
perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
|
|
2405
|
+
}>;
|
|
2406
|
+
createdAt: z.ZodDate;
|
|
2407
|
+
updatedAt: z.ZodDate;
|
|
2408
|
+
}, "strip", z.ZodTypeAny, {
|
|
2409
|
+
userId: number;
|
|
2410
|
+
id: number;
|
|
2411
|
+
updatedAt: Date;
|
|
2412
|
+
name: string;
|
|
2413
|
+
createdAt: Date;
|
|
2414
|
+
sold: boolean;
|
|
2415
|
+
actions: {
|
|
2416
|
+
perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
|
|
2417
|
+
};
|
|
2418
|
+
state?: number | null | undefined;
|
|
2419
|
+
colorIds?: number[] | null | undefined;
|
|
2420
|
+
description?: string | null | undefined;
|
|
2421
|
+
packageSizeId?: number | null | undefined;
|
|
2422
|
+
sizeId?: number | null | undefined;
|
|
2423
|
+
labels?: {
|
|
2424
|
+
itemId: string | number;
|
|
2425
|
+
labelId: string | number;
|
|
2426
|
+
label?: {
|
|
2427
|
+
id: string | number;
|
|
2428
|
+
name: string;
|
|
2429
|
+
createdAt: Date;
|
|
2430
|
+
isUserLabel: boolean;
|
|
2431
|
+
userId?: string | number | null | undefined;
|
|
2432
|
+
itemCount?: number | null | undefined;
|
|
2433
|
+
parentId?: unknown;
|
|
2434
|
+
} | null | undefined;
|
|
2435
|
+
}[] | null | undefined;
|
|
2436
|
+
files?: {
|
|
2437
|
+
itemId: string | number;
|
|
2438
|
+
fileId: string;
|
|
2439
|
+
index?: number | null | undefined;
|
|
2440
|
+
file?: {
|
|
2441
|
+
path: string;
|
|
2442
|
+
userId: string | number;
|
|
2443
|
+
id: string;
|
|
2444
|
+
createdAt: Date;
|
|
2445
|
+
signedUrl: string;
|
|
2446
|
+
} | null | undefined;
|
|
2447
|
+
}[] | null | undefined;
|
|
2448
|
+
fields?: {
|
|
2449
|
+
value: string;
|
|
2450
|
+
itemId: string | number;
|
|
2451
|
+
fieldId: string | number;
|
|
2452
|
+
}[] | null | undefined;
|
|
2453
|
+
sku?: string | null | undefined;
|
|
2454
|
+
categoryId?: number | null | undefined;
|
|
2455
|
+
brandId?: number | null | undefined;
|
|
2456
|
+
sex?: string | null | undefined;
|
|
2457
|
+
purchasePrice?: number | null | undefined;
|
|
2458
|
+
purchaseDate?: Date | null | undefined;
|
|
2459
|
+
purchasePlaceId?: number | null | undefined;
|
|
2460
|
+
purchased?: boolean | null | undefined;
|
|
2461
|
+
sellingPrice?: number | null | undefined;
|
|
2462
|
+
sellingDate?: Date | null | undefined;
|
|
2463
|
+
sellingPlaceId?: number | null | undefined;
|
|
2464
|
+
estimatedPrice?: number | null | undefined;
|
|
2465
|
+
fees?: {
|
|
2466
|
+
value: number;
|
|
2467
|
+
type: string;
|
|
2468
|
+
userId: string | number;
|
|
2469
|
+
id: string | number;
|
|
2470
|
+
updatedAt: Date;
|
|
2471
|
+
name: string;
|
|
2472
|
+
createdAt: Date;
|
|
2473
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
2474
|
+
startDate: Date;
|
|
2475
|
+
active: boolean;
|
|
2476
|
+
description?: string | null | undefined;
|
|
2477
|
+
itemId?: string | number | null | undefined;
|
|
2478
|
+
endDate?: Date | null | undefined;
|
|
2479
|
+
parentFeeId?: string | number | null | undefined;
|
|
2480
|
+
}[] | null | undefined;
|
|
2481
|
+
feesSum?: number | null | undefined;
|
|
2482
|
+
lastHistory?: {
|
|
2483
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
2484
|
+
id: string;
|
|
2485
|
+
createdAt: Date;
|
|
2486
|
+
itemId: string | number;
|
|
2487
|
+
data?: {
|
|
2443
2488
|
type: "ACTION_CANCELED";
|
|
2444
2489
|
data: {
|
|
2445
2490
|
targetItemHistoryId: string;
|
|
2446
2491
|
};
|
|
2447
|
-
}
|
|
2448
|
-
data: z.ZodObject<{
|
|
2449
|
-
soldAccountId: z.ZodString;
|
|
2450
|
-
soldOrderId: z.ZodString;
|
|
2451
|
-
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2452
|
-
}, "strip", z.ZodTypeAny, {
|
|
2453
|
-
soldAccountId: string;
|
|
2454
|
-
soldOrderId: string;
|
|
2455
|
-
soldConversationId?: string | null | undefined;
|
|
2456
|
-
}, {
|
|
2457
|
-
soldAccountId: string;
|
|
2458
|
-
soldOrderId: string;
|
|
2459
|
-
soldConversationId?: string | null | undefined;
|
|
2460
|
-
}>;
|
|
2461
|
-
type: z.ZodLiteral<"BUYER_PAID">;
|
|
2462
|
-
}, "strip", z.ZodTypeAny, {
|
|
2463
|
-
type: "BUYER_PAID";
|
|
2464
|
-
data: {
|
|
2465
|
-
soldAccountId: string;
|
|
2466
|
-
soldOrderId: string;
|
|
2467
|
-
soldConversationId?: string | null | undefined;
|
|
2468
|
-
};
|
|
2469
|
-
}, {
|
|
2492
|
+
} | {
|
|
2470
2493
|
type: "BUYER_PAID";
|
|
2471
2494
|
data: {
|
|
2472
2495
|
soldAccountId: string;
|
|
2473
2496
|
soldOrderId: string;
|
|
2474
2497
|
soldConversationId?: string | null | undefined;
|
|
2475
2498
|
};
|
|
2476
|
-
}
|
|
2477
|
-
data: z.ZodObject<{
|
|
2478
|
-
soldAccountId: z.ZodString;
|
|
2479
|
-
soldOrderId: z.ZodString;
|
|
2480
|
-
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2481
|
-
}, "strip", z.ZodTypeAny, {
|
|
2482
|
-
soldAccountId: string;
|
|
2483
|
-
soldOrderId: string;
|
|
2484
|
-
soldConversationId?: string | null | undefined;
|
|
2485
|
-
}, {
|
|
2486
|
-
soldAccountId: string;
|
|
2487
|
-
soldOrderId: string;
|
|
2488
|
-
soldConversationId?: string | null | undefined;
|
|
2489
|
-
}>;
|
|
2490
|
-
type: z.ZodLiteral<"DELIVERED">;
|
|
2491
|
-
}, "strip", z.ZodTypeAny, {
|
|
2492
|
-
type: "DELIVERED";
|
|
2493
|
-
data: {
|
|
2494
|
-
soldAccountId: string;
|
|
2495
|
-
soldOrderId: string;
|
|
2496
|
-
soldConversationId?: string | null | undefined;
|
|
2497
|
-
};
|
|
2498
|
-
}, {
|
|
2499
|
+
} | {
|
|
2499
2500
|
type: "DELIVERED";
|
|
2500
2501
|
data: {
|
|
2501
2502
|
soldAccountId: string;
|
|
2502
2503
|
soldOrderId: string;
|
|
2503
2504
|
soldConversationId?: string | null | undefined;
|
|
2504
2505
|
};
|
|
2505
|
-
}
|
|
2506
|
-
type: z.ZodLiteral<"EMPTY">;
|
|
2507
|
-
}, "strip", z.ZodTypeAny, {
|
|
2508
|
-
type: "EMPTY";
|
|
2509
|
-
}, {
|
|
2506
|
+
} | {
|
|
2510
2507
|
type: "EMPTY";
|
|
2511
|
-
}
|
|
2512
|
-
data: z.ZodObject<{
|
|
2513
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2514
|
-
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2515
|
-
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2516
|
-
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2517
|
-
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2518
|
-
autoFixable: z.ZodBoolean;
|
|
2519
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2520
|
-
}, "strip", z.ZodTypeAny, {
|
|
2521
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2522
|
-
autoFixable: boolean;
|
|
2523
|
-
error?: string | null | undefined;
|
|
2524
|
-
}, {
|
|
2525
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2526
|
-
autoFixable: boolean;
|
|
2527
|
-
error?: string | null | undefined;
|
|
2528
|
-
}>, "many">>>;
|
|
2529
|
-
itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2530
|
-
}, "strip", z.ZodTypeAny, {
|
|
2531
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2532
|
-
accountId?: string | null | undefined;
|
|
2533
|
-
reason?: string | null | undefined;
|
|
2534
|
-
fields?: {
|
|
2535
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2536
|
-
autoFixable: boolean;
|
|
2537
|
-
error?: string | null | undefined;
|
|
2538
|
-
}[] | null | undefined;
|
|
2539
|
-
itemHistoryId?: string | null | undefined;
|
|
2540
|
-
}, {
|
|
2541
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2542
|
-
accountId?: string | null | undefined;
|
|
2543
|
-
reason?: string | null | undefined;
|
|
2544
|
-
fields?: {
|
|
2545
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2546
|
-
autoFixable: boolean;
|
|
2547
|
-
error?: string | null | undefined;
|
|
2548
|
-
}[] | null | undefined;
|
|
2549
|
-
itemHistoryId?: string | null | undefined;
|
|
2550
|
-
}>;
|
|
2551
|
-
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
2552
|
-
}, "strip", z.ZodTypeAny, {
|
|
2508
|
+
} | {
|
|
2553
2509
|
type: "FAILED_TO_PUBLISH";
|
|
2554
2510
|
data: {
|
|
2555
2511
|
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
@@ -2562,1998 +2518,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2562
2518
|
}[] | null | undefined;
|
|
2563
2519
|
itemHistoryId?: string | null | undefined;
|
|
2564
2520
|
};
|
|
2565
|
-
}
|
|
2566
|
-
type: "
|
|
2567
|
-
data: {
|
|
2568
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2569
|
-
accountId?: string | null | undefined;
|
|
2570
|
-
reason?: string | null | undefined;
|
|
2571
|
-
fields?: {
|
|
2572
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2573
|
-
autoFixable: boolean;
|
|
2574
|
-
error?: string | null | undefined;
|
|
2575
|
-
}[] | null | undefined;
|
|
2576
|
-
itemHistoryId?: string | null | undefined;
|
|
2577
|
-
};
|
|
2578
|
-
}>, z.ZodObject<{
|
|
2579
|
-
data: z.ZodObject<{
|
|
2580
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2581
|
-
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2582
|
-
fileId: z.ZodString;
|
|
2583
|
-
seed: z.ZodNumber;
|
|
2584
|
-
phash: z.ZodString;
|
|
2585
|
-
distanceOriginal: z.ZodNumber;
|
|
2586
|
-
originalImageUrl: z.ZodString;
|
|
2587
|
-
originalPhash: z.ZodString;
|
|
2588
|
-
}, "strip", z.ZodTypeAny, {
|
|
2589
|
-
fileId: string;
|
|
2590
|
-
seed: number;
|
|
2591
|
-
phash: string;
|
|
2592
|
-
distanceOriginal: number;
|
|
2593
|
-
originalImageUrl: string;
|
|
2594
|
-
originalPhash: string;
|
|
2595
|
-
}, {
|
|
2596
|
-
fileId: string;
|
|
2597
|
-
seed: number;
|
|
2598
|
-
phash: string;
|
|
2599
|
-
distanceOriginal: number;
|
|
2600
|
-
originalImageUrl: string;
|
|
2601
|
-
originalPhash: string;
|
|
2602
|
-
}>, "many">>>;
|
|
2603
|
-
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2604
|
-
}, "strip", z.ZodTypeAny, {
|
|
2605
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2606
|
-
variations?: {
|
|
2607
|
-
fileId: string;
|
|
2608
|
-
seed: number;
|
|
2609
|
-
phash: string;
|
|
2610
|
-
distanceOriginal: number;
|
|
2611
|
-
originalImageUrl: string;
|
|
2612
|
-
originalPhash: string;
|
|
2613
|
-
}[] | null | undefined;
|
|
2614
|
-
originalPhashes?: string[] | null | undefined;
|
|
2615
|
-
}, {
|
|
2616
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2617
|
-
variations?: {
|
|
2618
|
-
fileId: string;
|
|
2619
|
-
seed: number;
|
|
2620
|
-
phash: string;
|
|
2621
|
-
distanceOriginal: number;
|
|
2622
|
-
originalImageUrl: string;
|
|
2623
|
-
originalPhash: string;
|
|
2624
|
-
}[] | null | undefined;
|
|
2625
|
-
originalPhashes?: string[] | null | undefined;
|
|
2626
|
-
}>;
|
|
2627
|
-
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
2628
|
-
}, "strip", z.ZodTypeAny, {
|
|
2629
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
2630
|
-
data: {
|
|
2631
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2632
|
-
variations?: {
|
|
2633
|
-
fileId: string;
|
|
2634
|
-
seed: number;
|
|
2635
|
-
phash: string;
|
|
2636
|
-
distanceOriginal: number;
|
|
2637
|
-
originalImageUrl: string;
|
|
2638
|
-
originalPhash: string;
|
|
2639
|
-
}[] | null | undefined;
|
|
2640
|
-
originalPhashes?: string[] | null | undefined;
|
|
2641
|
-
};
|
|
2642
|
-
}, {
|
|
2643
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
2644
|
-
data: {
|
|
2645
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2646
|
-
variations?: {
|
|
2647
|
-
fileId: string;
|
|
2648
|
-
seed: number;
|
|
2649
|
-
phash: string;
|
|
2650
|
-
distanceOriginal: number;
|
|
2651
|
-
originalImageUrl: string;
|
|
2652
|
-
originalPhash: string;
|
|
2653
|
-
}[] | null | undefined;
|
|
2654
|
-
originalPhashes?: string[] | null | undefined;
|
|
2655
|
-
};
|
|
2656
|
-
}>, z.ZodObject<{
|
|
2657
|
-
data: z.ZodObject<{
|
|
2658
|
-
post: z.ZodObject<{
|
|
2659
|
-
platformId: z.ZodString;
|
|
2660
|
-
platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2661
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2662
|
-
post: z.ZodObject<{
|
|
2663
|
-
brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2664
|
-
catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2665
|
-
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2666
|
-
colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2667
|
-
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2668
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2669
|
-
measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2670
|
-
measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2671
|
-
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2672
|
-
photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2673
|
-
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2674
|
-
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2675
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2676
|
-
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2677
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2678
|
-
statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2679
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2680
|
-
isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2681
|
-
isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2682
|
-
availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2683
|
-
material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2684
|
-
manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2685
|
-
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2686
|
-
}, "strip", z.ZodTypeAny, {
|
|
2687
|
-
status?: string | null | undefined;
|
|
2688
|
-
price?: number | null | undefined;
|
|
2689
|
-
currency?: string | null | undefined;
|
|
2690
|
-
brand?: string | null | undefined;
|
|
2691
|
-
catalog?: string | null | undefined;
|
|
2692
|
-
catalogId?: number | null | undefined;
|
|
2693
|
-
colors?: string[] | null | undefined;
|
|
2694
|
-
colorIds?: number[] | null | undefined;
|
|
2695
|
-
description?: string | null | undefined;
|
|
2696
|
-
measurementLength?: number | null | undefined;
|
|
2697
|
-
measurementWidth?: number | null | undefined;
|
|
2698
|
-
packageSizeId?: number | null | undefined;
|
|
2699
|
-
photoUrls?: string[] | null | undefined;
|
|
2700
|
-
size?: string | null | undefined;
|
|
2701
|
-
sizeId?: number | null | undefined;
|
|
2702
|
-
statusId?: number | null | undefined;
|
|
2703
|
-
title?: string | null | undefined;
|
|
2704
|
-
isDraft?: boolean | null | undefined;
|
|
2705
|
-
isArchived?: boolean | null | undefined;
|
|
2706
|
-
availableQuantity?: number | null | undefined;
|
|
2707
|
-
material?: number[] | null | undefined;
|
|
2708
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2709
|
-
labels?: string[] | null | undefined;
|
|
2710
|
-
}, {
|
|
2711
|
-
status?: string | null | undefined;
|
|
2712
|
-
price?: number | null | undefined;
|
|
2713
|
-
currency?: string | null | undefined;
|
|
2714
|
-
brand?: string | null | undefined;
|
|
2715
|
-
catalog?: string | null | undefined;
|
|
2716
|
-
catalogId?: number | null | undefined;
|
|
2717
|
-
colors?: string[] | null | undefined;
|
|
2718
|
-
colorIds?: number[] | null | undefined;
|
|
2719
|
-
description?: string | null | undefined;
|
|
2720
|
-
measurementLength?: number | null | undefined;
|
|
2721
|
-
measurementWidth?: number | null | undefined;
|
|
2722
|
-
packageSizeId?: number | null | undefined;
|
|
2723
|
-
photoUrls?: string[] | null | undefined;
|
|
2724
|
-
size?: string | null | undefined;
|
|
2725
|
-
sizeId?: number | null | undefined;
|
|
2726
|
-
statusId?: number | null | undefined;
|
|
2727
|
-
title?: string | null | undefined;
|
|
2728
|
-
isDraft?: boolean | null | undefined;
|
|
2729
|
-
isArchived?: boolean | null | undefined;
|
|
2730
|
-
availableQuantity?: number | null | undefined;
|
|
2731
|
-
material?: number[] | null | undefined;
|
|
2732
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2733
|
-
labels?: string[] | null | undefined;
|
|
2734
|
-
}>;
|
|
2735
|
-
}, "strip", z.ZodTypeAny, {
|
|
2736
|
-
platformId: string;
|
|
2737
|
-
post: {
|
|
2738
|
-
status?: string | null | undefined;
|
|
2739
|
-
price?: number | null | undefined;
|
|
2740
|
-
currency?: string | null | undefined;
|
|
2741
|
-
brand?: string | null | undefined;
|
|
2742
|
-
catalog?: string | null | undefined;
|
|
2743
|
-
catalogId?: number | null | undefined;
|
|
2744
|
-
colors?: string[] | null | undefined;
|
|
2745
|
-
colorIds?: number[] | null | undefined;
|
|
2746
|
-
description?: string | null | undefined;
|
|
2747
|
-
measurementLength?: number | null | undefined;
|
|
2748
|
-
measurementWidth?: number | null | undefined;
|
|
2749
|
-
packageSizeId?: number | null | undefined;
|
|
2750
|
-
photoUrls?: string[] | null | undefined;
|
|
2751
|
-
size?: string | null | undefined;
|
|
2752
|
-
sizeId?: number | null | undefined;
|
|
2753
|
-
statusId?: number | null | undefined;
|
|
2754
|
-
title?: string | null | undefined;
|
|
2755
|
-
isDraft?: boolean | null | undefined;
|
|
2756
|
-
isArchived?: boolean | null | undefined;
|
|
2757
|
-
availableQuantity?: number | null | undefined;
|
|
2758
|
-
material?: number[] | null | undefined;
|
|
2759
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2760
|
-
labels?: string[] | null | undefined;
|
|
2761
|
-
};
|
|
2762
|
-
createdAt?: Date | null | undefined;
|
|
2763
|
-
platformUrl?: string | null | undefined;
|
|
2764
|
-
}, {
|
|
2765
|
-
platformId: string;
|
|
2766
|
-
post: {
|
|
2767
|
-
status?: string | null | undefined;
|
|
2768
|
-
price?: number | null | undefined;
|
|
2769
|
-
currency?: string | null | undefined;
|
|
2770
|
-
brand?: string | null | undefined;
|
|
2771
|
-
catalog?: string | null | undefined;
|
|
2772
|
-
catalogId?: number | null | undefined;
|
|
2773
|
-
colors?: string[] | null | undefined;
|
|
2774
|
-
colorIds?: number[] | null | undefined;
|
|
2775
|
-
description?: string | null | undefined;
|
|
2776
|
-
measurementLength?: number | null | undefined;
|
|
2777
|
-
measurementWidth?: number | null | undefined;
|
|
2778
|
-
packageSizeId?: number | null | undefined;
|
|
2779
|
-
photoUrls?: string[] | null | undefined;
|
|
2780
|
-
size?: string | null | undefined;
|
|
2781
|
-
sizeId?: number | null | undefined;
|
|
2782
|
-
statusId?: number | null | undefined;
|
|
2783
|
-
title?: string | null | undefined;
|
|
2784
|
-
isDraft?: boolean | null | undefined;
|
|
2785
|
-
isArchived?: boolean | null | undefined;
|
|
2786
|
-
availableQuantity?: number | null | undefined;
|
|
2787
|
-
material?: number[] | null | undefined;
|
|
2788
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2789
|
-
labels?: string[] | null | undefined;
|
|
2790
|
-
};
|
|
2791
|
-
createdAt?: Date | null | undefined;
|
|
2792
|
-
platformUrl?: string | null | undefined;
|
|
2793
|
-
}>;
|
|
2794
|
-
}, "strip", z.ZodTypeAny, {
|
|
2795
|
-
post: {
|
|
2796
|
-
platformId: string;
|
|
2797
|
-
post: {
|
|
2798
|
-
status?: string | null | undefined;
|
|
2799
|
-
price?: number | null | undefined;
|
|
2800
|
-
currency?: string | null | undefined;
|
|
2801
|
-
brand?: string | null | undefined;
|
|
2802
|
-
catalog?: string | null | undefined;
|
|
2803
|
-
catalogId?: number | null | undefined;
|
|
2804
|
-
colors?: string[] | null | undefined;
|
|
2805
|
-
colorIds?: number[] | null | undefined;
|
|
2806
|
-
description?: string | null | undefined;
|
|
2807
|
-
measurementLength?: number | null | undefined;
|
|
2808
|
-
measurementWidth?: number | null | undefined;
|
|
2809
|
-
packageSizeId?: number | null | undefined;
|
|
2810
|
-
photoUrls?: string[] | null | undefined;
|
|
2811
|
-
size?: string | null | undefined;
|
|
2812
|
-
sizeId?: number | null | undefined;
|
|
2813
|
-
statusId?: number | null | undefined;
|
|
2814
|
-
title?: string | null | undefined;
|
|
2815
|
-
isDraft?: boolean | null | undefined;
|
|
2816
|
-
isArchived?: boolean | null | undefined;
|
|
2817
|
-
availableQuantity?: number | null | undefined;
|
|
2818
|
-
material?: number[] | null | undefined;
|
|
2819
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2820
|
-
labels?: string[] | null | undefined;
|
|
2821
|
-
};
|
|
2822
|
-
createdAt?: Date | null | undefined;
|
|
2823
|
-
platformUrl?: string | null | undefined;
|
|
2824
|
-
};
|
|
2825
|
-
}, {
|
|
2826
|
-
post: {
|
|
2827
|
-
platformId: string;
|
|
2828
|
-
post: {
|
|
2829
|
-
status?: string | null | undefined;
|
|
2830
|
-
price?: number | null | undefined;
|
|
2831
|
-
currency?: string | null | undefined;
|
|
2832
|
-
brand?: string | null | undefined;
|
|
2833
|
-
catalog?: string | null | undefined;
|
|
2834
|
-
catalogId?: number | null | undefined;
|
|
2835
|
-
colors?: string[] | null | undefined;
|
|
2836
|
-
colorIds?: number[] | null | undefined;
|
|
2837
|
-
description?: string | null | undefined;
|
|
2838
|
-
measurementLength?: number | null | undefined;
|
|
2839
|
-
measurementWidth?: number | null | undefined;
|
|
2840
|
-
packageSizeId?: number | null | undefined;
|
|
2841
|
-
photoUrls?: string[] | null | undefined;
|
|
2842
|
-
size?: string | null | undefined;
|
|
2843
|
-
sizeId?: number | null | undefined;
|
|
2844
|
-
statusId?: number | null | undefined;
|
|
2845
|
-
title?: string | null | undefined;
|
|
2846
|
-
isDraft?: boolean | null | undefined;
|
|
2847
|
-
isArchived?: boolean | null | undefined;
|
|
2848
|
-
availableQuantity?: number | null | undefined;
|
|
2849
|
-
material?: number[] | null | undefined;
|
|
2850
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2851
|
-
labels?: string[] | null | undefined;
|
|
2852
|
-
};
|
|
2853
|
-
createdAt?: Date | null | undefined;
|
|
2854
|
-
platformUrl?: string | null | undefined;
|
|
2855
|
-
};
|
|
2856
|
-
}>;
|
|
2857
|
-
type: z.ZodLiteral<"IMPORTED">;
|
|
2858
|
-
}, "strip", z.ZodTypeAny, {
|
|
2859
|
-
type: "IMPORTED";
|
|
2860
|
-
data: {
|
|
2861
|
-
post: {
|
|
2862
|
-
platformId: string;
|
|
2863
|
-
post: {
|
|
2864
|
-
status?: string | null | undefined;
|
|
2865
|
-
price?: number | null | undefined;
|
|
2866
|
-
currency?: string | null | undefined;
|
|
2867
|
-
brand?: string | null | undefined;
|
|
2868
|
-
catalog?: string | null | undefined;
|
|
2869
|
-
catalogId?: number | null | undefined;
|
|
2870
|
-
colors?: string[] | null | undefined;
|
|
2871
|
-
colorIds?: number[] | null | undefined;
|
|
2872
|
-
description?: string | null | undefined;
|
|
2873
|
-
measurementLength?: number | null | undefined;
|
|
2874
|
-
measurementWidth?: number | null | undefined;
|
|
2875
|
-
packageSizeId?: number | null | undefined;
|
|
2876
|
-
photoUrls?: string[] | null | undefined;
|
|
2877
|
-
size?: string | null | undefined;
|
|
2878
|
-
sizeId?: number | null | undefined;
|
|
2879
|
-
statusId?: number | null | undefined;
|
|
2880
|
-
title?: string | null | undefined;
|
|
2881
|
-
isDraft?: boolean | null | undefined;
|
|
2882
|
-
isArchived?: boolean | null | undefined;
|
|
2883
|
-
availableQuantity?: number | null | undefined;
|
|
2884
|
-
material?: number[] | null | undefined;
|
|
2885
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2886
|
-
labels?: string[] | null | undefined;
|
|
2887
|
-
};
|
|
2888
|
-
createdAt?: Date | null | undefined;
|
|
2889
|
-
platformUrl?: string | null | undefined;
|
|
2890
|
-
};
|
|
2891
|
-
};
|
|
2892
|
-
}, {
|
|
2893
|
-
type: "IMPORTED";
|
|
2894
|
-
data: {
|
|
2895
|
-
post: {
|
|
2896
|
-
platformId: string;
|
|
2897
|
-
post: {
|
|
2898
|
-
status?: string | null | undefined;
|
|
2899
|
-
price?: number | null | undefined;
|
|
2900
|
-
currency?: string | null | undefined;
|
|
2901
|
-
brand?: string | null | undefined;
|
|
2902
|
-
catalog?: string | null | undefined;
|
|
2903
|
-
catalogId?: number | null | undefined;
|
|
2904
|
-
colors?: string[] | null | undefined;
|
|
2905
|
-
colorIds?: number[] | null | undefined;
|
|
2906
|
-
description?: string | null | undefined;
|
|
2907
|
-
measurementLength?: number | null | undefined;
|
|
2908
|
-
measurementWidth?: number | null | undefined;
|
|
2909
|
-
packageSizeId?: number | null | undefined;
|
|
2910
|
-
photoUrls?: string[] | null | undefined;
|
|
2911
|
-
size?: string | null | undefined;
|
|
2912
|
-
sizeId?: number | null | undefined;
|
|
2913
|
-
statusId?: number | null | undefined;
|
|
2914
|
-
title?: string | null | undefined;
|
|
2915
|
-
isDraft?: boolean | null | undefined;
|
|
2916
|
-
isArchived?: boolean | null | undefined;
|
|
2917
|
-
availableQuantity?: number | null | undefined;
|
|
2918
|
-
material?: number[] | null | undefined;
|
|
2919
|
-
manufacturerLabelling?: string | null | undefined;
|
|
2920
|
-
labels?: string[] | null | undefined;
|
|
2921
|
-
};
|
|
2922
|
-
createdAt?: Date | null | undefined;
|
|
2923
|
-
platformUrl?: string | null | undefined;
|
|
2924
|
-
};
|
|
2925
|
-
};
|
|
2926
|
-
}>, z.ZodObject<{
|
|
2927
|
-
data: z.ZodObject<{
|
|
2928
|
-
accountId: z.ZodString;
|
|
2929
|
-
}, "strip", z.ZodTypeAny, {
|
|
2930
|
-
accountId: string;
|
|
2931
|
-
}, {
|
|
2932
|
-
accountId: string;
|
|
2933
|
-
}>;
|
|
2934
|
-
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
2935
|
-
}, "strip", z.ZodTypeAny, {
|
|
2936
|
-
type: "LIFECYCLE_COMPLETED";
|
|
2937
|
-
data: {
|
|
2938
|
-
accountId: string;
|
|
2939
|
-
};
|
|
2940
|
-
}, {
|
|
2941
|
-
type: "LIFECYCLE_COMPLETED";
|
|
2942
|
-
data: {
|
|
2943
|
-
accountId: string;
|
|
2944
|
-
};
|
|
2945
|
-
}>, z.ZodObject<{
|
|
2946
|
-
data: z.ZodObject<{
|
|
2947
|
-
accountId: z.ZodString;
|
|
2948
|
-
caseId: z.ZodString;
|
|
2949
|
-
}, "strip", z.ZodTypeAny, {
|
|
2950
|
-
accountId: string;
|
|
2951
|
-
caseId: string;
|
|
2952
|
-
}, {
|
|
2953
|
-
accountId: string;
|
|
2954
|
-
caseId: string;
|
|
2955
|
-
}>;
|
|
2956
|
-
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
2957
|
-
}, "strip", z.ZodTypeAny, {
|
|
2958
|
-
type: "LIFECYCLE_STARTED";
|
|
2959
|
-
data: {
|
|
2960
|
-
accountId: string;
|
|
2961
|
-
caseId: string;
|
|
2962
|
-
};
|
|
2963
|
-
}, {
|
|
2964
|
-
type: "LIFECYCLE_STARTED";
|
|
2965
|
-
data: {
|
|
2966
|
-
accountId: string;
|
|
2967
|
-
caseId: string;
|
|
2968
|
-
};
|
|
2969
|
-
}>, z.ZodObject<{
|
|
2970
|
-
data: z.ZodObject<{
|
|
2971
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2972
|
-
}, "strip", z.ZodTypeAny, {
|
|
2973
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2974
|
-
}, {
|
|
2975
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2976
|
-
}>;
|
|
2977
|
-
type: z.ZodLiteral<"PUBLISHED">;
|
|
2978
|
-
}, "strip", z.ZodTypeAny, {
|
|
2979
|
-
type: "PUBLISHED";
|
|
2980
|
-
data: {
|
|
2981
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2982
|
-
};
|
|
2983
|
-
}, {
|
|
2984
|
-
type: "PUBLISHED";
|
|
2985
|
-
data: {
|
|
2986
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2987
|
-
};
|
|
2988
|
-
}>, z.ZodObject<{
|
|
2989
|
-
data: z.ZodObject<{
|
|
2990
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2991
|
-
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2992
|
-
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2993
|
-
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
2994
|
-
value: z.ZodNumber;
|
|
2995
|
-
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
2996
|
-
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2997
|
-
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2998
|
-
}, "strip", z.ZodTypeAny, {
|
|
2999
|
-
value: number;
|
|
3000
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3001
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3002
|
-
roundStep?: number | null | undefined;
|
|
3003
|
-
maxRounds?: number | null | undefined;
|
|
3004
|
-
}, {
|
|
3005
|
-
value: number;
|
|
3006
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3007
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3008
|
-
roundStep?: number | null | undefined;
|
|
3009
|
-
maxRounds?: number | null | undefined;
|
|
3010
|
-
}>>>;
|
|
3011
|
-
isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3012
|
-
targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3013
|
-
}, "strip", z.ZodTypeAny, {
|
|
3014
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3015
|
-
publishingDate?: Date | null | undefined;
|
|
3016
|
-
priceDropPayload?: {
|
|
3017
|
-
value: number;
|
|
3018
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3019
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3020
|
-
roundStep?: number | null | undefined;
|
|
3021
|
-
maxRounds?: number | null | undefined;
|
|
3022
|
-
} | null | undefined;
|
|
3023
|
-
isTransfer?: boolean | null | undefined;
|
|
3024
|
-
targetAccountId?: string | null | undefined;
|
|
3025
|
-
}, {
|
|
3026
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3027
|
-
publishingDate?: Date | null | undefined;
|
|
3028
|
-
priceDropPayload?: {
|
|
3029
|
-
value: number;
|
|
3030
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3031
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3032
|
-
roundStep?: number | null | undefined;
|
|
3033
|
-
maxRounds?: number | null | undefined;
|
|
3034
|
-
} | null | undefined;
|
|
3035
|
-
isTransfer?: boolean | null | undefined;
|
|
3036
|
-
targetAccountId?: string | null | undefined;
|
|
3037
|
-
}>;
|
|
3038
|
-
type: z.ZodLiteral<"REPUBLISHING">;
|
|
3039
|
-
}, "strip", z.ZodTypeAny, {
|
|
3040
|
-
type: "REPUBLISHING";
|
|
3041
|
-
data: {
|
|
3042
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3043
|
-
publishingDate?: Date | null | undefined;
|
|
3044
|
-
priceDropPayload?: {
|
|
3045
|
-
value: number;
|
|
3046
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3047
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3048
|
-
roundStep?: number | null | undefined;
|
|
3049
|
-
maxRounds?: number | null | undefined;
|
|
3050
|
-
} | null | undefined;
|
|
3051
|
-
isTransfer?: boolean | null | undefined;
|
|
3052
|
-
targetAccountId?: string | null | undefined;
|
|
3053
|
-
};
|
|
3054
|
-
}, {
|
|
3055
|
-
type: "REPUBLISHING";
|
|
3056
|
-
data: {
|
|
3057
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3058
|
-
publishingDate?: Date | null | undefined;
|
|
3059
|
-
priceDropPayload?: {
|
|
3060
|
-
value: number;
|
|
3061
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3062
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3063
|
-
roundStep?: number | null | undefined;
|
|
3064
|
-
maxRounds?: number | null | undefined;
|
|
3065
|
-
} | null | undefined;
|
|
3066
|
-
isTransfer?: boolean | null | undefined;
|
|
3067
|
-
targetAccountId?: string | null | undefined;
|
|
3068
|
-
};
|
|
3069
|
-
}>, z.ZodObject<{
|
|
3070
|
-
data: z.ZodObject<{
|
|
3071
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
3072
|
-
attemptNumber: z.ZodNumber;
|
|
3073
|
-
maxAttempts: z.ZodNumber;
|
|
3074
|
-
previousHistoryId: z.ZodString;
|
|
3075
|
-
originalFailureDate: z.ZodDate;
|
|
3076
|
-
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3077
|
-
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
3078
|
-
autoFixable: z.ZodBoolean;
|
|
3079
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3080
|
-
}, "strip", z.ZodTypeAny, {
|
|
3081
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3082
|
-
autoFixable: boolean;
|
|
3083
|
-
error?: string | null | undefined;
|
|
3084
|
-
}, {
|
|
3085
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3086
|
-
autoFixable: boolean;
|
|
3087
|
-
error?: string | null | undefined;
|
|
3088
|
-
}>, "many">>>;
|
|
3089
|
-
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3090
|
-
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
3091
|
-
value: z.ZodNumber;
|
|
3092
|
-
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
3093
|
-
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3094
|
-
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3095
|
-
}, "strip", z.ZodTypeAny, {
|
|
3096
|
-
value: number;
|
|
3097
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3098
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3099
|
-
roundStep?: number | null | undefined;
|
|
3100
|
-
maxRounds?: number | null | undefined;
|
|
3101
|
-
}, {
|
|
3102
|
-
value: number;
|
|
3103
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3104
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3105
|
-
roundStep?: number | null | undefined;
|
|
3106
|
-
maxRounds?: number | null | undefined;
|
|
3107
|
-
}>>>;
|
|
3108
|
-
}, "strip", z.ZodTypeAny, {
|
|
3109
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3110
|
-
attemptNumber: number;
|
|
3111
|
-
maxAttempts: number;
|
|
3112
|
-
previousHistoryId: string;
|
|
3113
|
-
originalFailureDate: Date;
|
|
3114
|
-
fields?: {
|
|
3115
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3116
|
-
autoFixable: boolean;
|
|
3117
|
-
error?: string | null | undefined;
|
|
3118
|
-
}[] | null | undefined;
|
|
3119
|
-
priceDropPayload?: {
|
|
3120
|
-
value: number;
|
|
3121
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3122
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3123
|
-
roundStep?: number | null | undefined;
|
|
3124
|
-
maxRounds?: number | null | undefined;
|
|
3125
|
-
} | null | undefined;
|
|
3126
|
-
}, {
|
|
3127
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3128
|
-
attemptNumber: number;
|
|
3129
|
-
maxAttempts: number;
|
|
3130
|
-
previousHistoryId: string;
|
|
3131
|
-
originalFailureDate: Date;
|
|
3132
|
-
fields?: {
|
|
3133
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3134
|
-
autoFixable: boolean;
|
|
3135
|
-
error?: string | null | undefined;
|
|
3136
|
-
}[] | null | undefined;
|
|
3137
|
-
priceDropPayload?: {
|
|
3138
|
-
value: number;
|
|
3139
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3140
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3141
|
-
roundStep?: number | null | undefined;
|
|
3142
|
-
maxRounds?: number | null | undefined;
|
|
3143
|
-
} | null | undefined;
|
|
3144
|
-
}>;
|
|
3145
|
-
type: z.ZodLiteral<"REPUBLISHING_RETRY">;
|
|
3146
|
-
}, "strip", z.ZodTypeAny, {
|
|
3147
|
-
type: "REPUBLISHING_RETRY";
|
|
3148
|
-
data: {
|
|
3149
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3150
|
-
attemptNumber: number;
|
|
3151
|
-
maxAttempts: number;
|
|
3152
|
-
previousHistoryId: string;
|
|
3153
|
-
originalFailureDate: Date;
|
|
3154
|
-
fields?: {
|
|
3155
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3156
|
-
autoFixable: boolean;
|
|
3157
|
-
error?: string | null | undefined;
|
|
3158
|
-
}[] | null | undefined;
|
|
3159
|
-
priceDropPayload?: {
|
|
3160
|
-
value: number;
|
|
3161
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3162
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3163
|
-
roundStep?: number | null | undefined;
|
|
3164
|
-
maxRounds?: number | null | undefined;
|
|
3165
|
-
} | null | undefined;
|
|
3166
|
-
};
|
|
3167
|
-
}, {
|
|
3168
|
-
type: "REPUBLISHING_RETRY";
|
|
3169
|
-
data: {
|
|
3170
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3171
|
-
attemptNumber: number;
|
|
3172
|
-
maxAttempts: number;
|
|
3173
|
-
previousHistoryId: string;
|
|
3174
|
-
originalFailureDate: Date;
|
|
3175
|
-
fields?: {
|
|
3176
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3177
|
-
autoFixable: boolean;
|
|
3178
|
-
error?: string | null | undefined;
|
|
3179
|
-
}[] | null | undefined;
|
|
3180
|
-
priceDropPayload?: {
|
|
3181
|
-
value: number;
|
|
3182
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3183
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3184
|
-
roundStep?: number | null | undefined;
|
|
3185
|
-
maxRounds?: number | null | undefined;
|
|
3186
|
-
} | null | undefined;
|
|
3187
|
-
};
|
|
3188
|
-
}>, z.ZodObject<{
|
|
3189
|
-
data: z.ZodObject<{
|
|
3190
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
3191
|
-
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3192
|
-
}, "strip", z.ZodTypeAny, {
|
|
3193
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3194
|
-
publishingDate?: Date | null | undefined;
|
|
3195
|
-
}, {
|
|
3196
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3197
|
-
publishingDate?: Date | null | undefined;
|
|
3198
|
-
}>;
|
|
3199
|
-
type: z.ZodLiteral<"SCHEDULED">;
|
|
3200
|
-
}, "strip", z.ZodTypeAny, {
|
|
3201
|
-
type: "SCHEDULED";
|
|
3202
|
-
data: {
|
|
3203
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3204
|
-
publishingDate?: Date | null | undefined;
|
|
3205
|
-
};
|
|
3206
|
-
}, {
|
|
3207
|
-
type: "SCHEDULED";
|
|
3208
|
-
data: {
|
|
3209
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3210
|
-
publishingDate?: Date | null | undefined;
|
|
3211
|
-
};
|
|
3212
|
-
}>, z.ZodObject<{
|
|
3213
|
-
data: z.ZodObject<{
|
|
3214
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
3215
|
-
attemptNumber: z.ZodNumber;
|
|
3216
|
-
maxAttempts: z.ZodNumber;
|
|
3217
|
-
previousHistoryId: z.ZodString;
|
|
3218
|
-
originalFailureDate: z.ZodDate;
|
|
3219
|
-
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3220
|
-
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
3221
|
-
autoFixable: z.ZodBoolean;
|
|
3222
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3223
|
-
}, "strip", z.ZodTypeAny, {
|
|
3224
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3225
|
-
autoFixable: boolean;
|
|
3226
|
-
error?: string | null | undefined;
|
|
3227
|
-
}, {
|
|
3228
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3229
|
-
autoFixable: boolean;
|
|
3230
|
-
error?: string | null | undefined;
|
|
3231
|
-
}>, "many">>>;
|
|
3232
|
-
}, "strip", z.ZodTypeAny, {
|
|
3233
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3234
|
-
attemptNumber: number;
|
|
3235
|
-
maxAttempts: number;
|
|
3236
|
-
previousHistoryId: string;
|
|
3237
|
-
originalFailureDate: Date;
|
|
3238
|
-
fields?: {
|
|
3239
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3240
|
-
autoFixable: boolean;
|
|
3241
|
-
error?: string | null | undefined;
|
|
3242
|
-
}[] | null | undefined;
|
|
3243
|
-
}, {
|
|
3244
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3245
|
-
attemptNumber: number;
|
|
3246
|
-
maxAttempts: number;
|
|
3247
|
-
previousHistoryId: string;
|
|
3248
|
-
originalFailureDate: Date;
|
|
3249
|
-
fields?: {
|
|
3250
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3251
|
-
autoFixable: boolean;
|
|
3252
|
-
error?: string | null | undefined;
|
|
3253
|
-
}[] | null | undefined;
|
|
3254
|
-
}>;
|
|
3255
|
-
type: z.ZodLiteral<"SCHEDULED_RETRY">;
|
|
3256
|
-
}, "strip", z.ZodTypeAny, {
|
|
3257
|
-
type: "SCHEDULED_RETRY";
|
|
3258
|
-
data: {
|
|
3259
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3260
|
-
attemptNumber: number;
|
|
3261
|
-
maxAttempts: number;
|
|
3262
|
-
previousHistoryId: string;
|
|
3263
|
-
originalFailureDate: Date;
|
|
3264
|
-
fields?: {
|
|
3265
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3266
|
-
autoFixable: boolean;
|
|
3267
|
-
error?: string | null | undefined;
|
|
3268
|
-
}[] | null | undefined;
|
|
3269
|
-
};
|
|
3270
|
-
}, {
|
|
3271
|
-
type: "SCHEDULED_RETRY";
|
|
3272
|
-
data: {
|
|
3273
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3274
|
-
attemptNumber: number;
|
|
3275
|
-
maxAttempts: number;
|
|
3276
|
-
previousHistoryId: string;
|
|
3277
|
-
originalFailureDate: Date;
|
|
3278
|
-
fields?: {
|
|
3279
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3280
|
-
autoFixable: boolean;
|
|
3281
|
-
error?: string | null | undefined;
|
|
3282
|
-
}[] | null | undefined;
|
|
3283
|
-
};
|
|
3284
|
-
}>, z.ZodObject<{
|
|
3285
|
-
data: z.ZodObject<{
|
|
3286
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
3287
|
-
}, "strip", z.ZodTypeAny, {
|
|
3288
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3289
|
-
}, {
|
|
3290
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3291
|
-
}>;
|
|
3292
|
-
type: z.ZodLiteral<"UPDATED">;
|
|
3293
|
-
}, "strip", z.ZodTypeAny, {
|
|
3294
|
-
type: "UPDATED";
|
|
3295
|
-
data: {
|
|
3296
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3297
|
-
};
|
|
3298
|
-
}, {
|
|
3299
|
-
type: "UPDATED";
|
|
3300
|
-
data: {
|
|
3301
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3302
|
-
};
|
|
3303
|
-
}>, z.ZodObject<{
|
|
3304
|
-
data: z.ZodObject<{
|
|
3305
|
-
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
3306
|
-
post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3307
|
-
brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3308
|
-
catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3309
|
-
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3310
|
-
colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3311
|
-
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
3312
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3313
|
-
measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3314
|
-
measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3315
|
-
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3316
|
-
photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3317
|
-
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3318
|
-
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3319
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3320
|
-
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3321
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3322
|
-
statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3323
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3324
|
-
isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3325
|
-
isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3326
|
-
availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3327
|
-
material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
3328
|
-
manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3329
|
-
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3330
|
-
}, "strip", z.ZodTypeAny, {
|
|
3331
|
-
status?: string | null | undefined;
|
|
3332
|
-
price?: number | null | undefined;
|
|
3333
|
-
currency?: string | null | undefined;
|
|
3334
|
-
brand?: string | null | undefined;
|
|
3335
|
-
catalog?: string | null | undefined;
|
|
3336
|
-
catalogId?: number | null | undefined;
|
|
3337
|
-
colors?: string[] | null | undefined;
|
|
3338
|
-
colorIds?: number[] | null | undefined;
|
|
3339
|
-
description?: string | null | undefined;
|
|
3340
|
-
measurementLength?: number | null | undefined;
|
|
3341
|
-
measurementWidth?: number | null | undefined;
|
|
3342
|
-
packageSizeId?: number | null | undefined;
|
|
3343
|
-
photoUrls?: string[] | null | undefined;
|
|
3344
|
-
size?: string | null | undefined;
|
|
3345
|
-
sizeId?: number | null | undefined;
|
|
3346
|
-
statusId?: number | null | undefined;
|
|
3347
|
-
title?: string | null | undefined;
|
|
3348
|
-
isDraft?: boolean | null | undefined;
|
|
3349
|
-
isArchived?: boolean | null | undefined;
|
|
3350
|
-
availableQuantity?: number | null | undefined;
|
|
3351
|
-
material?: number[] | null | undefined;
|
|
3352
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3353
|
-
labels?: string[] | null | undefined;
|
|
3354
|
-
}, {
|
|
3355
|
-
status?: string | null | undefined;
|
|
3356
|
-
price?: number | null | undefined;
|
|
3357
|
-
currency?: string | null | undefined;
|
|
3358
|
-
brand?: string | null | undefined;
|
|
3359
|
-
catalog?: string | null | undefined;
|
|
3360
|
-
catalogId?: number | null | undefined;
|
|
3361
|
-
colors?: string[] | null | undefined;
|
|
3362
|
-
colorIds?: number[] | null | undefined;
|
|
3363
|
-
description?: string | null | undefined;
|
|
3364
|
-
measurementLength?: number | null | undefined;
|
|
3365
|
-
measurementWidth?: number | null | undefined;
|
|
3366
|
-
packageSizeId?: number | null | undefined;
|
|
3367
|
-
photoUrls?: string[] | null | undefined;
|
|
3368
|
-
size?: string | null | undefined;
|
|
3369
|
-
sizeId?: number | null | undefined;
|
|
3370
|
-
statusId?: number | null | undefined;
|
|
3371
|
-
title?: string | null | undefined;
|
|
3372
|
-
isDraft?: boolean | null | undefined;
|
|
3373
|
-
isArchived?: boolean | null | undefined;
|
|
3374
|
-
availableQuantity?: number | null | undefined;
|
|
3375
|
-
material?: number[] | null | undefined;
|
|
3376
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3377
|
-
labels?: string[] | null | undefined;
|
|
3378
|
-
}>>>;
|
|
3379
|
-
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3380
|
-
}, "strip", z.ZodTypeAny, {
|
|
3381
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3382
|
-
post?: {
|
|
3383
|
-
status?: string | null | undefined;
|
|
3384
|
-
price?: number | null | undefined;
|
|
3385
|
-
currency?: string | null | undefined;
|
|
3386
|
-
brand?: string | null | undefined;
|
|
3387
|
-
catalog?: string | null | undefined;
|
|
3388
|
-
catalogId?: number | null | undefined;
|
|
3389
|
-
colors?: string[] | null | undefined;
|
|
3390
|
-
colorIds?: number[] | null | undefined;
|
|
3391
|
-
description?: string | null | undefined;
|
|
3392
|
-
measurementLength?: number | null | undefined;
|
|
3393
|
-
measurementWidth?: number | null | undefined;
|
|
3394
|
-
packageSizeId?: number | null | undefined;
|
|
3395
|
-
photoUrls?: string[] | null | undefined;
|
|
3396
|
-
size?: string | null | undefined;
|
|
3397
|
-
sizeId?: number | null | undefined;
|
|
3398
|
-
statusId?: number | null | undefined;
|
|
3399
|
-
title?: string | null | undefined;
|
|
3400
|
-
isDraft?: boolean | null | undefined;
|
|
3401
|
-
isArchived?: boolean | null | undefined;
|
|
3402
|
-
availableQuantity?: number | null | undefined;
|
|
3403
|
-
material?: number[] | null | undefined;
|
|
3404
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3405
|
-
labels?: string[] | null | undefined;
|
|
3406
|
-
} | null | undefined;
|
|
3407
|
-
targetDate?: Date | null | undefined;
|
|
3408
|
-
}, {
|
|
3409
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3410
|
-
post?: {
|
|
3411
|
-
status?: string | null | undefined;
|
|
3412
|
-
price?: number | null | undefined;
|
|
3413
|
-
currency?: string | null | undefined;
|
|
3414
|
-
brand?: string | null | undefined;
|
|
3415
|
-
catalog?: string | null | undefined;
|
|
3416
|
-
catalogId?: number | null | undefined;
|
|
3417
|
-
colors?: string[] | null | undefined;
|
|
3418
|
-
colorIds?: number[] | null | undefined;
|
|
3419
|
-
description?: string | null | undefined;
|
|
3420
|
-
measurementLength?: number | null | undefined;
|
|
3421
|
-
measurementWidth?: number | null | undefined;
|
|
3422
|
-
packageSizeId?: number | null | undefined;
|
|
3423
|
-
photoUrls?: string[] | null | undefined;
|
|
3424
|
-
size?: string | null | undefined;
|
|
3425
|
-
sizeId?: number | null | undefined;
|
|
3426
|
-
statusId?: number | null | undefined;
|
|
3427
|
-
title?: string | null | undefined;
|
|
3428
|
-
isDraft?: boolean | null | undefined;
|
|
3429
|
-
isArchived?: boolean | null | undefined;
|
|
3430
|
-
availableQuantity?: number | null | undefined;
|
|
3431
|
-
material?: number[] | null | undefined;
|
|
3432
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3433
|
-
labels?: string[] | null | undefined;
|
|
3434
|
-
} | null | undefined;
|
|
3435
|
-
targetDate?: Date | null | undefined;
|
|
3436
|
-
}>;
|
|
3437
|
-
type: z.ZodLiteral<"UPDATING">;
|
|
3438
|
-
}, "strip", z.ZodTypeAny, {
|
|
3439
|
-
type: "UPDATING";
|
|
3440
|
-
data: {
|
|
3441
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3442
|
-
post?: {
|
|
3443
|
-
status?: string | null | undefined;
|
|
3444
|
-
price?: number | null | undefined;
|
|
3445
|
-
currency?: string | null | undefined;
|
|
3446
|
-
brand?: string | null | undefined;
|
|
3447
|
-
catalog?: string | null | undefined;
|
|
3448
|
-
catalogId?: number | null | undefined;
|
|
3449
|
-
colors?: string[] | null | undefined;
|
|
3450
|
-
colorIds?: number[] | null | undefined;
|
|
3451
|
-
description?: string | null | undefined;
|
|
3452
|
-
measurementLength?: number | null | undefined;
|
|
3453
|
-
measurementWidth?: number | null | undefined;
|
|
3454
|
-
packageSizeId?: number | null | undefined;
|
|
3455
|
-
photoUrls?: string[] | null | undefined;
|
|
3456
|
-
size?: string | null | undefined;
|
|
3457
|
-
sizeId?: number | null | undefined;
|
|
3458
|
-
statusId?: number | null | undefined;
|
|
3459
|
-
title?: string | null | undefined;
|
|
3460
|
-
isDraft?: boolean | null | undefined;
|
|
3461
|
-
isArchived?: boolean | null | undefined;
|
|
3462
|
-
availableQuantity?: number | null | undefined;
|
|
3463
|
-
material?: number[] | null | undefined;
|
|
3464
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3465
|
-
labels?: string[] | null | undefined;
|
|
3466
|
-
} | null | undefined;
|
|
3467
|
-
targetDate?: Date | null | undefined;
|
|
3468
|
-
};
|
|
3469
|
-
}, {
|
|
3470
|
-
type: "UPDATING";
|
|
3471
|
-
data: {
|
|
3472
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3473
|
-
post?: {
|
|
3474
|
-
status?: string | null | undefined;
|
|
3475
|
-
price?: number | null | undefined;
|
|
3476
|
-
currency?: string | null | undefined;
|
|
3477
|
-
brand?: string | null | undefined;
|
|
3478
|
-
catalog?: string | null | undefined;
|
|
3479
|
-
catalogId?: number | null | undefined;
|
|
3480
|
-
colors?: string[] | null | undefined;
|
|
3481
|
-
colorIds?: number[] | null | undefined;
|
|
3482
|
-
description?: string | null | undefined;
|
|
3483
|
-
measurementLength?: number | null | undefined;
|
|
3484
|
-
measurementWidth?: number | null | undefined;
|
|
3485
|
-
packageSizeId?: number | null | undefined;
|
|
3486
|
-
photoUrls?: string[] | null | undefined;
|
|
3487
|
-
size?: string | null | undefined;
|
|
3488
|
-
sizeId?: number | null | undefined;
|
|
3489
|
-
statusId?: number | null | undefined;
|
|
3490
|
-
title?: string | null | undefined;
|
|
3491
|
-
isDraft?: boolean | null | undefined;
|
|
3492
|
-
isArchived?: boolean | null | undefined;
|
|
3493
|
-
availableQuantity?: number | null | undefined;
|
|
3494
|
-
material?: number[] | null | undefined;
|
|
3495
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3496
|
-
labels?: string[] | null | undefined;
|
|
3497
|
-
} | null | undefined;
|
|
3498
|
-
targetDate?: Date | null | undefined;
|
|
3499
|
-
};
|
|
3500
|
-
}>]>>>;
|
|
3501
|
-
createdAt: z.ZodDate;
|
|
3502
|
-
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3503
|
-
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3504
|
-
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3505
|
-
}, "strip", z.ZodTypeAny, {
|
|
3506
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3507
|
-
id: string;
|
|
3508
|
-
createdAt: Date;
|
|
3509
|
-
itemId: string | number;
|
|
3510
|
-
data?: {
|
|
3511
|
-
type: "ACTION_CANCELED";
|
|
3512
|
-
data: {
|
|
3513
|
-
targetItemHistoryId: string;
|
|
3514
|
-
};
|
|
3515
|
-
} | {
|
|
3516
|
-
type: "BUYER_PAID";
|
|
3517
|
-
data: {
|
|
3518
|
-
soldAccountId: string;
|
|
3519
|
-
soldOrderId: string;
|
|
3520
|
-
soldConversationId?: string | null | undefined;
|
|
3521
|
-
};
|
|
3522
|
-
} | {
|
|
3523
|
-
type: "DELIVERED";
|
|
3524
|
-
data: {
|
|
3525
|
-
soldAccountId: string;
|
|
3526
|
-
soldOrderId: string;
|
|
3527
|
-
soldConversationId?: string | null | undefined;
|
|
3528
|
-
};
|
|
3529
|
-
} | {
|
|
3530
|
-
type: "EMPTY";
|
|
3531
|
-
} | {
|
|
3532
|
-
type: "FAILED_TO_PUBLISH";
|
|
3533
|
-
data: {
|
|
3534
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3535
|
-
accountId?: string | null | undefined;
|
|
3536
|
-
reason?: string | null | undefined;
|
|
3537
|
-
fields?: {
|
|
3538
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3539
|
-
autoFixable: boolean;
|
|
3540
|
-
error?: string | null | undefined;
|
|
3541
|
-
}[] | null | undefined;
|
|
3542
|
-
itemHistoryId?: string | null | undefined;
|
|
3543
|
-
};
|
|
3544
|
-
} | {
|
|
3545
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
3546
|
-
data: {
|
|
3547
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3548
|
-
variations?: {
|
|
3549
|
-
fileId: string;
|
|
3550
|
-
seed: number;
|
|
3551
|
-
phash: string;
|
|
3552
|
-
distanceOriginal: number;
|
|
3553
|
-
originalImageUrl: string;
|
|
3554
|
-
originalPhash: string;
|
|
3555
|
-
}[] | null | undefined;
|
|
3556
|
-
originalPhashes?: string[] | null | undefined;
|
|
3557
|
-
};
|
|
3558
|
-
} | {
|
|
3559
|
-
type: "IMPORTED";
|
|
3560
|
-
data: {
|
|
3561
|
-
post: {
|
|
3562
|
-
platformId: string;
|
|
3563
|
-
post: {
|
|
3564
|
-
status?: string | null | undefined;
|
|
3565
|
-
price?: number | null | undefined;
|
|
3566
|
-
currency?: string | null | undefined;
|
|
3567
|
-
brand?: string | null | undefined;
|
|
3568
|
-
catalog?: string | null | undefined;
|
|
3569
|
-
catalogId?: number | null | undefined;
|
|
3570
|
-
colors?: string[] | null | undefined;
|
|
3571
|
-
colorIds?: number[] | null | undefined;
|
|
3572
|
-
description?: string | null | undefined;
|
|
3573
|
-
measurementLength?: number | null | undefined;
|
|
3574
|
-
measurementWidth?: number | null | undefined;
|
|
3575
|
-
packageSizeId?: number | null | undefined;
|
|
3576
|
-
photoUrls?: string[] | null | undefined;
|
|
3577
|
-
size?: string | null | undefined;
|
|
3578
|
-
sizeId?: number | null | undefined;
|
|
3579
|
-
statusId?: number | null | undefined;
|
|
3580
|
-
title?: string | null | undefined;
|
|
3581
|
-
isDraft?: boolean | null | undefined;
|
|
3582
|
-
isArchived?: boolean | null | undefined;
|
|
3583
|
-
availableQuantity?: number | null | undefined;
|
|
3584
|
-
material?: number[] | null | undefined;
|
|
3585
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3586
|
-
labels?: string[] | null | undefined;
|
|
3587
|
-
};
|
|
3588
|
-
createdAt?: Date | null | undefined;
|
|
3589
|
-
platformUrl?: string | null | undefined;
|
|
3590
|
-
};
|
|
3591
|
-
};
|
|
3592
|
-
} | {
|
|
3593
|
-
type: "LIFECYCLE_COMPLETED";
|
|
3594
|
-
data: {
|
|
3595
|
-
accountId: string;
|
|
3596
|
-
};
|
|
3597
|
-
} | {
|
|
3598
|
-
type: "LIFECYCLE_STARTED";
|
|
3599
|
-
data: {
|
|
3600
|
-
accountId: string;
|
|
3601
|
-
caseId: string;
|
|
3602
|
-
};
|
|
3603
|
-
} | {
|
|
3604
|
-
type: "PUBLISHED";
|
|
3605
|
-
data: {
|
|
3606
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3607
|
-
};
|
|
3608
|
-
} | {
|
|
3609
|
-
type: "REPUBLISHING";
|
|
3610
|
-
data: {
|
|
3611
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3612
|
-
publishingDate?: Date | null | undefined;
|
|
3613
|
-
priceDropPayload?: {
|
|
3614
|
-
value: number;
|
|
3615
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3616
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3617
|
-
roundStep?: number | null | undefined;
|
|
3618
|
-
maxRounds?: number | null | undefined;
|
|
3619
|
-
} | null | undefined;
|
|
3620
|
-
isTransfer?: boolean | null | undefined;
|
|
3621
|
-
targetAccountId?: string | null | undefined;
|
|
3622
|
-
};
|
|
3623
|
-
} | {
|
|
3624
|
-
type: "REPUBLISHING_RETRY";
|
|
3625
|
-
data: {
|
|
3626
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3627
|
-
attemptNumber: number;
|
|
3628
|
-
maxAttempts: number;
|
|
3629
|
-
previousHistoryId: string;
|
|
3630
|
-
originalFailureDate: Date;
|
|
3631
|
-
fields?: {
|
|
3632
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3633
|
-
autoFixable: boolean;
|
|
3634
|
-
error?: string | null | undefined;
|
|
3635
|
-
}[] | null | undefined;
|
|
3636
|
-
priceDropPayload?: {
|
|
3637
|
-
value: number;
|
|
3638
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3639
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3640
|
-
roundStep?: number | null | undefined;
|
|
3641
|
-
maxRounds?: number | null | undefined;
|
|
3642
|
-
} | null | undefined;
|
|
3643
|
-
};
|
|
3644
|
-
} | {
|
|
3645
|
-
type: "SCHEDULED";
|
|
3646
|
-
data: {
|
|
3647
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3648
|
-
publishingDate?: Date | null | undefined;
|
|
3649
|
-
};
|
|
3650
|
-
} | {
|
|
3651
|
-
type: "SCHEDULED_RETRY";
|
|
3652
|
-
data: {
|
|
3653
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3654
|
-
attemptNumber: number;
|
|
3655
|
-
maxAttempts: number;
|
|
3656
|
-
previousHistoryId: string;
|
|
3657
|
-
originalFailureDate: Date;
|
|
3658
|
-
fields?: {
|
|
3659
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3660
|
-
autoFixable: boolean;
|
|
3661
|
-
error?: string | null | undefined;
|
|
3662
|
-
}[] | null | undefined;
|
|
3663
|
-
};
|
|
3664
|
-
} | {
|
|
3665
|
-
type: "UPDATED";
|
|
3666
|
-
data: {
|
|
3667
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3668
|
-
};
|
|
3669
|
-
} | {
|
|
3670
|
-
type: "UPDATING";
|
|
3671
|
-
data: {
|
|
3672
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3673
|
-
post?: {
|
|
3674
|
-
status?: string | null | undefined;
|
|
3675
|
-
price?: number | null | undefined;
|
|
3676
|
-
currency?: string | null | undefined;
|
|
3677
|
-
brand?: string | null | undefined;
|
|
3678
|
-
catalog?: string | null | undefined;
|
|
3679
|
-
catalogId?: number | null | undefined;
|
|
3680
|
-
colors?: string[] | null | undefined;
|
|
3681
|
-
colorIds?: number[] | null | undefined;
|
|
3682
|
-
description?: string | null | undefined;
|
|
3683
|
-
measurementLength?: number | null | undefined;
|
|
3684
|
-
measurementWidth?: number | null | undefined;
|
|
3685
|
-
packageSizeId?: number | null | undefined;
|
|
3686
|
-
photoUrls?: string[] | null | undefined;
|
|
3687
|
-
size?: string | null | undefined;
|
|
3688
|
-
sizeId?: number | null | undefined;
|
|
3689
|
-
statusId?: number | null | undefined;
|
|
3690
|
-
title?: string | null | undefined;
|
|
3691
|
-
isDraft?: boolean | null | undefined;
|
|
3692
|
-
isArchived?: boolean | null | undefined;
|
|
3693
|
-
availableQuantity?: number | null | undefined;
|
|
3694
|
-
material?: number[] | null | undefined;
|
|
3695
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3696
|
-
labels?: string[] | null | undefined;
|
|
3697
|
-
} | null | undefined;
|
|
3698
|
-
targetDate?: Date | null | undefined;
|
|
3699
|
-
};
|
|
3700
|
-
} | null | undefined;
|
|
3701
|
-
accountId?: string | null | undefined;
|
|
3702
|
-
requestId?: string | null | undefined;
|
|
3703
|
-
targetDate?: Date | null | undefined;
|
|
3704
|
-
}, {
|
|
3705
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3706
|
-
id: string;
|
|
3707
|
-
createdAt: Date;
|
|
3708
|
-
itemId: string | number;
|
|
3709
|
-
data?: {
|
|
3710
|
-
type: "ACTION_CANCELED";
|
|
3711
|
-
data: {
|
|
3712
|
-
targetItemHistoryId: string;
|
|
3713
|
-
};
|
|
3714
|
-
} | {
|
|
3715
|
-
type: "BUYER_PAID";
|
|
3716
|
-
data: {
|
|
3717
|
-
soldAccountId: string;
|
|
3718
|
-
soldOrderId: string;
|
|
3719
|
-
soldConversationId?: string | null | undefined;
|
|
3720
|
-
};
|
|
3721
|
-
} | {
|
|
3722
|
-
type: "DELIVERED";
|
|
3723
|
-
data: {
|
|
3724
|
-
soldAccountId: string;
|
|
3725
|
-
soldOrderId: string;
|
|
3726
|
-
soldConversationId?: string | null | undefined;
|
|
3727
|
-
};
|
|
3728
|
-
} | {
|
|
3729
|
-
type: "EMPTY";
|
|
3730
|
-
} | {
|
|
3731
|
-
type: "FAILED_TO_PUBLISH";
|
|
3732
|
-
data: {
|
|
3733
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3734
|
-
accountId?: string | null | undefined;
|
|
3735
|
-
reason?: string | null | undefined;
|
|
3736
|
-
fields?: {
|
|
3737
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3738
|
-
autoFixable: boolean;
|
|
3739
|
-
error?: string | null | undefined;
|
|
3740
|
-
}[] | null | undefined;
|
|
3741
|
-
itemHistoryId?: string | null | undefined;
|
|
3742
|
-
};
|
|
3743
|
-
} | {
|
|
3744
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
3745
|
-
data: {
|
|
3746
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3747
|
-
variations?: {
|
|
3748
|
-
fileId: string;
|
|
3749
|
-
seed: number;
|
|
3750
|
-
phash: string;
|
|
3751
|
-
distanceOriginal: number;
|
|
3752
|
-
originalImageUrl: string;
|
|
3753
|
-
originalPhash: string;
|
|
3754
|
-
}[] | null | undefined;
|
|
3755
|
-
originalPhashes?: string[] | null | undefined;
|
|
3756
|
-
};
|
|
3757
|
-
} | {
|
|
3758
|
-
type: "IMPORTED";
|
|
3759
|
-
data: {
|
|
3760
|
-
post: {
|
|
3761
|
-
platformId: string;
|
|
3762
|
-
post: {
|
|
3763
|
-
status?: string | null | undefined;
|
|
3764
|
-
price?: number | null | undefined;
|
|
3765
|
-
currency?: string | null | undefined;
|
|
3766
|
-
brand?: string | null | undefined;
|
|
3767
|
-
catalog?: string | null | undefined;
|
|
3768
|
-
catalogId?: number | null | undefined;
|
|
3769
|
-
colors?: string[] | null | undefined;
|
|
3770
|
-
colorIds?: number[] | null | undefined;
|
|
3771
|
-
description?: string | null | undefined;
|
|
3772
|
-
measurementLength?: number | null | undefined;
|
|
3773
|
-
measurementWidth?: number | null | undefined;
|
|
3774
|
-
packageSizeId?: number | null | undefined;
|
|
3775
|
-
photoUrls?: string[] | null | undefined;
|
|
3776
|
-
size?: string | null | undefined;
|
|
3777
|
-
sizeId?: number | null | undefined;
|
|
3778
|
-
statusId?: number | null | undefined;
|
|
3779
|
-
title?: string | null | undefined;
|
|
3780
|
-
isDraft?: boolean | null | undefined;
|
|
3781
|
-
isArchived?: boolean | null | undefined;
|
|
3782
|
-
availableQuantity?: number | null | undefined;
|
|
3783
|
-
material?: number[] | null | undefined;
|
|
3784
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3785
|
-
labels?: string[] | null | undefined;
|
|
3786
|
-
};
|
|
3787
|
-
createdAt?: Date | null | undefined;
|
|
3788
|
-
platformUrl?: string | null | undefined;
|
|
3789
|
-
};
|
|
3790
|
-
};
|
|
3791
|
-
} | {
|
|
3792
|
-
type: "LIFECYCLE_COMPLETED";
|
|
3793
|
-
data: {
|
|
3794
|
-
accountId: string;
|
|
3795
|
-
};
|
|
3796
|
-
} | {
|
|
3797
|
-
type: "LIFECYCLE_STARTED";
|
|
3798
|
-
data: {
|
|
3799
|
-
accountId: string;
|
|
3800
|
-
caseId: string;
|
|
3801
|
-
};
|
|
3802
|
-
} | {
|
|
3803
|
-
type: "PUBLISHED";
|
|
3804
|
-
data: {
|
|
3805
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3806
|
-
};
|
|
3807
|
-
} | {
|
|
3808
|
-
type: "REPUBLISHING";
|
|
3809
|
-
data: {
|
|
3810
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3811
|
-
publishingDate?: Date | null | undefined;
|
|
3812
|
-
priceDropPayload?: {
|
|
3813
|
-
value: number;
|
|
3814
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3815
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3816
|
-
roundStep?: number | null | undefined;
|
|
3817
|
-
maxRounds?: number | null | undefined;
|
|
3818
|
-
} | null | undefined;
|
|
3819
|
-
isTransfer?: boolean | null | undefined;
|
|
3820
|
-
targetAccountId?: string | null | undefined;
|
|
3821
|
-
};
|
|
3822
|
-
} | {
|
|
3823
|
-
type: "REPUBLISHING_RETRY";
|
|
3824
|
-
data: {
|
|
3825
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3826
|
-
attemptNumber: number;
|
|
3827
|
-
maxAttempts: number;
|
|
3828
|
-
previousHistoryId: string;
|
|
3829
|
-
originalFailureDate: Date;
|
|
3830
|
-
fields?: {
|
|
3831
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3832
|
-
autoFixable: boolean;
|
|
3833
|
-
error?: string | null | undefined;
|
|
3834
|
-
}[] | null | undefined;
|
|
3835
|
-
priceDropPayload?: {
|
|
3836
|
-
value: number;
|
|
3837
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3838
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3839
|
-
roundStep?: number | null | undefined;
|
|
3840
|
-
maxRounds?: number | null | undefined;
|
|
3841
|
-
} | null | undefined;
|
|
3842
|
-
};
|
|
3843
|
-
} | {
|
|
3844
|
-
type: "SCHEDULED";
|
|
3845
|
-
data: {
|
|
3846
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3847
|
-
publishingDate?: Date | null | undefined;
|
|
3848
|
-
};
|
|
3849
|
-
} | {
|
|
3850
|
-
type: "SCHEDULED_RETRY";
|
|
3851
|
-
data: {
|
|
3852
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3853
|
-
attemptNumber: number;
|
|
3854
|
-
maxAttempts: number;
|
|
3855
|
-
previousHistoryId: string;
|
|
3856
|
-
originalFailureDate: Date;
|
|
3857
|
-
fields?: {
|
|
3858
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3859
|
-
autoFixable: boolean;
|
|
3860
|
-
error?: string | null | undefined;
|
|
3861
|
-
}[] | null | undefined;
|
|
3862
|
-
};
|
|
3863
|
-
} | {
|
|
3864
|
-
type: "UPDATED";
|
|
3865
|
-
data: {
|
|
3866
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3867
|
-
};
|
|
3868
|
-
} | {
|
|
3869
|
-
type: "UPDATING";
|
|
3870
|
-
data: {
|
|
3871
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3872
|
-
post?: {
|
|
3873
|
-
status?: string | null | undefined;
|
|
3874
|
-
price?: number | null | undefined;
|
|
3875
|
-
currency?: string | null | undefined;
|
|
3876
|
-
brand?: string | null | undefined;
|
|
3877
|
-
catalog?: string | null | undefined;
|
|
3878
|
-
catalogId?: number | null | undefined;
|
|
3879
|
-
colors?: string[] | null | undefined;
|
|
3880
|
-
colorIds?: number[] | null | undefined;
|
|
3881
|
-
description?: string | null | undefined;
|
|
3882
|
-
measurementLength?: number | null | undefined;
|
|
3883
|
-
measurementWidth?: number | null | undefined;
|
|
3884
|
-
packageSizeId?: number | null | undefined;
|
|
3885
|
-
photoUrls?: string[] | null | undefined;
|
|
3886
|
-
size?: string | null | undefined;
|
|
3887
|
-
sizeId?: number | null | undefined;
|
|
3888
|
-
statusId?: number | null | undefined;
|
|
3889
|
-
title?: string | null | undefined;
|
|
3890
|
-
isDraft?: boolean | null | undefined;
|
|
3891
|
-
isArchived?: boolean | null | undefined;
|
|
3892
|
-
availableQuantity?: number | null | undefined;
|
|
3893
|
-
material?: number[] | null | undefined;
|
|
3894
|
-
manufacturerLabelling?: string | null | undefined;
|
|
3895
|
-
labels?: string[] | null | undefined;
|
|
3896
|
-
} | null | undefined;
|
|
3897
|
-
targetDate?: Date | null | undefined;
|
|
3898
|
-
};
|
|
3899
|
-
} | null | undefined;
|
|
3900
|
-
accountId?: string | null | undefined;
|
|
3901
|
-
requestId?: string | null | undefined;
|
|
3902
|
-
targetDate?: Date | null | undefined;
|
|
3903
|
-
}>, "many">>>;
|
|
3904
|
-
createdAt: z.ZodDate;
|
|
3905
|
-
updatedAt: z.ZodDate;
|
|
3906
|
-
}, "strip", z.ZodTypeAny, {
|
|
3907
|
-
userId: string | number;
|
|
3908
|
-
id: string | number;
|
|
3909
|
-
updatedAt: Date;
|
|
3910
|
-
name: string;
|
|
3911
|
-
createdAt: Date;
|
|
3912
|
-
sold: boolean;
|
|
3913
|
-
state?: number | null | undefined;
|
|
3914
|
-
colorIds?: number[] | null | undefined;
|
|
3915
|
-
description?: string | null | undefined;
|
|
3916
|
-
packageSizeId?: number | null | undefined;
|
|
3917
|
-
sizeId?: number | null | undefined;
|
|
3918
|
-
labels?: {
|
|
3919
|
-
itemId: string | number;
|
|
3920
|
-
labelId: string | number;
|
|
3921
|
-
label?: {
|
|
3922
|
-
id: string | number;
|
|
3923
|
-
name: string;
|
|
3924
|
-
createdAt: Date;
|
|
3925
|
-
isUserLabel: boolean;
|
|
3926
|
-
userId?: string | number | null | undefined;
|
|
3927
|
-
itemCount?: number | null | undefined;
|
|
3928
|
-
parentId?: unknown;
|
|
3929
|
-
} | null | undefined;
|
|
3930
|
-
}[] | null | undefined;
|
|
3931
|
-
files?: {
|
|
3932
|
-
itemId: string | number;
|
|
3933
|
-
fileId: string;
|
|
3934
|
-
index?: number | null | undefined;
|
|
3935
|
-
file?: {
|
|
3936
|
-
path: string;
|
|
3937
|
-
userId: string | number;
|
|
3938
|
-
id: string;
|
|
3939
|
-
createdAt: Date;
|
|
3940
|
-
signedUrl: string;
|
|
3941
|
-
} | null | undefined;
|
|
3942
|
-
}[] | null | undefined;
|
|
3943
|
-
fields?: {
|
|
3944
|
-
value: string;
|
|
3945
|
-
itemId: string | number;
|
|
3946
|
-
fieldId: string | number;
|
|
3947
|
-
}[] | null | undefined;
|
|
3948
|
-
sku?: string | null | undefined;
|
|
3949
|
-
categoryId?: number | null | undefined;
|
|
3950
|
-
brandId?: string | number | null | undefined;
|
|
3951
|
-
sex?: string | null | undefined;
|
|
3952
|
-
purchasePrice?: number | null | undefined;
|
|
3953
|
-
purchaseDate?: Date | null | undefined;
|
|
3954
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
3955
|
-
purchased?: boolean | null | undefined;
|
|
3956
|
-
sellingPrice?: number | null | undefined;
|
|
3957
|
-
sellingDate?: Date | null | undefined;
|
|
3958
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
3959
|
-
estimatedPrice?: number | null | undefined;
|
|
3960
|
-
fees?: {
|
|
3961
|
-
value: number;
|
|
3962
|
-
type: string;
|
|
3963
|
-
userId: string | number;
|
|
3964
|
-
id: string | number;
|
|
3965
|
-
updatedAt: Date;
|
|
3966
|
-
name: string;
|
|
3967
|
-
createdAt: Date;
|
|
3968
|
-
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3969
|
-
startDate: Date;
|
|
3970
|
-
active: boolean;
|
|
3971
|
-
description?: string | null | undefined;
|
|
3972
|
-
itemId?: string | number | null | undefined;
|
|
3973
|
-
endDate?: Date | null | undefined;
|
|
3974
|
-
parentFeeId?: string | number | null | undefined;
|
|
3975
|
-
}[] | null | undefined;
|
|
3976
|
-
feesSum?: number | null | undefined;
|
|
3977
|
-
customerId?: string | number | null | undefined;
|
|
3978
|
-
customer?: {
|
|
3979
|
-
userId: string | number;
|
|
3980
|
-
id: string | number;
|
|
3981
|
-
email: string;
|
|
3982
|
-
firstName: string;
|
|
3983
|
-
lastName: string;
|
|
3984
|
-
birthDate: Date;
|
|
3985
|
-
idNumber: string;
|
|
3986
|
-
phone: string;
|
|
3987
|
-
iban: string;
|
|
3988
|
-
bic: string;
|
|
3989
|
-
phoneVerified: boolean;
|
|
3990
|
-
} | null | undefined;
|
|
3991
|
-
customerType?: string | null | undefined;
|
|
3992
|
-
customerPaid?: boolean | null | undefined;
|
|
3993
|
-
customerPaidDate?: Date | null | undefined;
|
|
3994
|
-
customerPaidType?: string | null | undefined;
|
|
3995
|
-
contractId?: string | number | null | undefined;
|
|
3996
|
-
lastHistory?: {
|
|
3997
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3998
|
-
id: string;
|
|
3999
|
-
createdAt: Date;
|
|
4000
|
-
itemId: string | number;
|
|
4001
|
-
data?: {
|
|
4002
|
-
type: "ACTION_CANCELED";
|
|
4003
|
-
data: {
|
|
4004
|
-
targetItemHistoryId: string;
|
|
4005
|
-
};
|
|
4006
|
-
} | {
|
|
4007
|
-
type: "BUYER_PAID";
|
|
4008
|
-
data: {
|
|
4009
|
-
soldAccountId: string;
|
|
4010
|
-
soldOrderId: string;
|
|
4011
|
-
soldConversationId?: string | null | undefined;
|
|
4012
|
-
};
|
|
4013
|
-
} | {
|
|
4014
|
-
type: "DELIVERED";
|
|
4015
|
-
data: {
|
|
4016
|
-
soldAccountId: string;
|
|
4017
|
-
soldOrderId: string;
|
|
4018
|
-
soldConversationId?: string | null | undefined;
|
|
4019
|
-
};
|
|
4020
|
-
} | {
|
|
4021
|
-
type: "EMPTY";
|
|
4022
|
-
} | {
|
|
4023
|
-
type: "FAILED_TO_PUBLISH";
|
|
4024
|
-
data: {
|
|
4025
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4026
|
-
accountId?: string | null | undefined;
|
|
4027
|
-
reason?: string | null | undefined;
|
|
4028
|
-
fields?: {
|
|
4029
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4030
|
-
autoFixable: boolean;
|
|
4031
|
-
error?: string | null | undefined;
|
|
4032
|
-
}[] | null | undefined;
|
|
4033
|
-
itemHistoryId?: string | null | undefined;
|
|
4034
|
-
};
|
|
4035
|
-
} | {
|
|
4036
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
4037
|
-
data: {
|
|
4038
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4039
|
-
variations?: {
|
|
4040
|
-
fileId: string;
|
|
4041
|
-
seed: number;
|
|
4042
|
-
phash: string;
|
|
4043
|
-
distanceOriginal: number;
|
|
4044
|
-
originalImageUrl: string;
|
|
4045
|
-
originalPhash: string;
|
|
4046
|
-
}[] | null | undefined;
|
|
4047
|
-
originalPhashes?: string[] | null | undefined;
|
|
4048
|
-
};
|
|
4049
|
-
} | {
|
|
4050
|
-
type: "IMPORTED";
|
|
4051
|
-
data: {
|
|
4052
|
-
post: {
|
|
4053
|
-
platformId: string;
|
|
4054
|
-
post: {
|
|
4055
|
-
status?: string | null | undefined;
|
|
4056
|
-
price?: number | null | undefined;
|
|
4057
|
-
currency?: string | null | undefined;
|
|
4058
|
-
brand?: string | null | undefined;
|
|
4059
|
-
catalog?: string | null | undefined;
|
|
4060
|
-
catalogId?: number | null | undefined;
|
|
4061
|
-
colors?: string[] | null | undefined;
|
|
4062
|
-
colorIds?: number[] | null | undefined;
|
|
4063
|
-
description?: string | null | undefined;
|
|
4064
|
-
measurementLength?: number | null | undefined;
|
|
4065
|
-
measurementWidth?: number | null | undefined;
|
|
4066
|
-
packageSizeId?: number | null | undefined;
|
|
4067
|
-
photoUrls?: string[] | null | undefined;
|
|
4068
|
-
size?: string | null | undefined;
|
|
4069
|
-
sizeId?: number | null | undefined;
|
|
4070
|
-
statusId?: number | null | undefined;
|
|
4071
|
-
title?: string | null | undefined;
|
|
4072
|
-
isDraft?: boolean | null | undefined;
|
|
4073
|
-
isArchived?: boolean | null | undefined;
|
|
4074
|
-
availableQuantity?: number | null | undefined;
|
|
4075
|
-
material?: number[] | null | undefined;
|
|
4076
|
-
manufacturerLabelling?: string | null | undefined;
|
|
4077
|
-
labels?: string[] | null | undefined;
|
|
4078
|
-
};
|
|
4079
|
-
createdAt?: Date | null | undefined;
|
|
4080
|
-
platformUrl?: string | null | undefined;
|
|
4081
|
-
};
|
|
4082
|
-
};
|
|
4083
|
-
} | {
|
|
4084
|
-
type: "LIFECYCLE_COMPLETED";
|
|
4085
|
-
data: {
|
|
4086
|
-
accountId: string;
|
|
4087
|
-
};
|
|
4088
|
-
} | {
|
|
4089
|
-
type: "LIFECYCLE_STARTED";
|
|
4090
|
-
data: {
|
|
4091
|
-
accountId: string;
|
|
4092
|
-
caseId: string;
|
|
4093
|
-
};
|
|
4094
|
-
} | {
|
|
4095
|
-
type: "PUBLISHED";
|
|
4096
|
-
data: {
|
|
4097
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4098
|
-
};
|
|
4099
|
-
} | {
|
|
4100
|
-
type: "REPUBLISHING";
|
|
4101
|
-
data: {
|
|
4102
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4103
|
-
publishingDate?: Date | null | undefined;
|
|
4104
|
-
priceDropPayload?: {
|
|
4105
|
-
value: number;
|
|
4106
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4107
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4108
|
-
roundStep?: number | null | undefined;
|
|
4109
|
-
maxRounds?: number | null | undefined;
|
|
4110
|
-
} | null | undefined;
|
|
4111
|
-
isTransfer?: boolean | null | undefined;
|
|
4112
|
-
targetAccountId?: string | null | undefined;
|
|
4113
|
-
};
|
|
4114
|
-
} | {
|
|
4115
|
-
type: "REPUBLISHING_RETRY";
|
|
4116
|
-
data: {
|
|
4117
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4118
|
-
attemptNumber: number;
|
|
4119
|
-
maxAttempts: number;
|
|
4120
|
-
previousHistoryId: string;
|
|
4121
|
-
originalFailureDate: Date;
|
|
4122
|
-
fields?: {
|
|
4123
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4124
|
-
autoFixable: boolean;
|
|
4125
|
-
error?: string | null | undefined;
|
|
4126
|
-
}[] | null | undefined;
|
|
4127
|
-
priceDropPayload?: {
|
|
4128
|
-
value: number;
|
|
4129
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4130
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4131
|
-
roundStep?: number | null | undefined;
|
|
4132
|
-
maxRounds?: number | null | undefined;
|
|
4133
|
-
} | null | undefined;
|
|
4134
|
-
};
|
|
4135
|
-
} | {
|
|
4136
|
-
type: "SCHEDULED";
|
|
4137
|
-
data: {
|
|
4138
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4139
|
-
publishingDate?: Date | null | undefined;
|
|
4140
|
-
};
|
|
4141
|
-
} | {
|
|
4142
|
-
type: "SCHEDULED_RETRY";
|
|
4143
|
-
data: {
|
|
4144
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4145
|
-
attemptNumber: number;
|
|
4146
|
-
maxAttempts: number;
|
|
4147
|
-
previousHistoryId: string;
|
|
4148
|
-
originalFailureDate: Date;
|
|
4149
|
-
fields?: {
|
|
4150
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4151
|
-
autoFixable: boolean;
|
|
4152
|
-
error?: string | null | undefined;
|
|
4153
|
-
}[] | null | undefined;
|
|
4154
|
-
};
|
|
4155
|
-
} | {
|
|
4156
|
-
type: "UPDATED";
|
|
4157
|
-
data: {
|
|
4158
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4159
|
-
};
|
|
4160
|
-
} | {
|
|
4161
|
-
type: "UPDATING";
|
|
4162
|
-
data: {
|
|
4163
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4164
|
-
post?: {
|
|
4165
|
-
status?: string | null | undefined;
|
|
4166
|
-
price?: number | null | undefined;
|
|
4167
|
-
currency?: string | null | undefined;
|
|
4168
|
-
brand?: string | null | undefined;
|
|
4169
|
-
catalog?: string | null | undefined;
|
|
4170
|
-
catalogId?: number | null | undefined;
|
|
4171
|
-
colors?: string[] | null | undefined;
|
|
4172
|
-
colorIds?: number[] | null | undefined;
|
|
4173
|
-
description?: string | null | undefined;
|
|
4174
|
-
measurementLength?: number | null | undefined;
|
|
4175
|
-
measurementWidth?: number | null | undefined;
|
|
4176
|
-
packageSizeId?: number | null | undefined;
|
|
4177
|
-
photoUrls?: string[] | null | undefined;
|
|
4178
|
-
size?: string | null | undefined;
|
|
4179
|
-
sizeId?: number | null | undefined;
|
|
4180
|
-
statusId?: number | null | undefined;
|
|
4181
|
-
title?: string | null | undefined;
|
|
4182
|
-
isDraft?: boolean | null | undefined;
|
|
4183
|
-
isArchived?: boolean | null | undefined;
|
|
4184
|
-
availableQuantity?: number | null | undefined;
|
|
4185
|
-
material?: number[] | null | undefined;
|
|
4186
|
-
manufacturerLabelling?: string | null | undefined;
|
|
4187
|
-
labels?: string[] | null | undefined;
|
|
4188
|
-
} | null | undefined;
|
|
4189
|
-
targetDate?: Date | null | undefined;
|
|
4190
|
-
};
|
|
4191
|
-
} | null | undefined;
|
|
4192
|
-
accountId?: string | null | undefined;
|
|
4193
|
-
requestId?: string | null | undefined;
|
|
4194
|
-
targetDate?: Date | null | undefined;
|
|
4195
|
-
} | null | undefined;
|
|
4196
|
-
platforms?: {
|
|
4197
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4198
|
-
id: string;
|
|
4199
|
-
updatedAt: Date;
|
|
4200
|
-
createdAt: Date;
|
|
4201
|
-
accountId: string;
|
|
4202
|
-
itemId: string | number;
|
|
4203
|
-
platformId: string;
|
|
4204
|
-
platformUrl: string;
|
|
4205
|
-
platformPrice: number;
|
|
4206
|
-
publishedAt: Date;
|
|
4207
|
-
conversationId?: string | null | undefined;
|
|
4208
|
-
account?: {
|
|
4209
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
4210
|
-
userId: string | number;
|
|
4211
|
-
name: string;
|
|
4212
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4213
|
-
accountId: string;
|
|
4214
|
-
locale?: string | null | undefined;
|
|
4215
|
-
night?: {
|
|
4216
|
-
startsAt: Date;
|
|
4217
|
-
endsAt: Date;
|
|
4218
|
-
} | null | undefined;
|
|
4219
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
4220
|
-
ordersMaxDelay?: number | null | undefined;
|
|
4221
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
4222
|
-
} | null | undefined;
|
|
4223
|
-
viewsCount?: number | null | undefined;
|
|
4224
|
-
favoritesCount?: number | null | undefined;
|
|
4225
|
-
}[] | null | undefined;
|
|
4226
|
-
history?: {
|
|
4227
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
4228
|
-
id: string;
|
|
4229
|
-
createdAt: Date;
|
|
4230
|
-
itemId: string | number;
|
|
4231
|
-
data?: {
|
|
4232
|
-
type: "ACTION_CANCELED";
|
|
4233
|
-
data: {
|
|
4234
|
-
targetItemHistoryId: string;
|
|
4235
|
-
};
|
|
4236
|
-
} | {
|
|
4237
|
-
type: "BUYER_PAID";
|
|
4238
|
-
data: {
|
|
4239
|
-
soldAccountId: string;
|
|
4240
|
-
soldOrderId: string;
|
|
4241
|
-
soldConversationId?: string | null | undefined;
|
|
4242
|
-
};
|
|
4243
|
-
} | {
|
|
4244
|
-
type: "DELIVERED";
|
|
4245
|
-
data: {
|
|
4246
|
-
soldAccountId: string;
|
|
4247
|
-
soldOrderId: string;
|
|
4248
|
-
soldConversationId?: string | null | undefined;
|
|
4249
|
-
};
|
|
4250
|
-
} | {
|
|
4251
|
-
type: "EMPTY";
|
|
4252
|
-
} | {
|
|
4253
|
-
type: "FAILED_TO_PUBLISH";
|
|
4254
|
-
data: {
|
|
4255
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4256
|
-
accountId?: string | null | undefined;
|
|
4257
|
-
reason?: string | null | undefined;
|
|
4258
|
-
fields?: {
|
|
4259
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4260
|
-
autoFixable: boolean;
|
|
4261
|
-
error?: string | null | undefined;
|
|
4262
|
-
}[] | null | undefined;
|
|
4263
|
-
itemHistoryId?: string | null | undefined;
|
|
4264
|
-
};
|
|
4265
|
-
} | {
|
|
4266
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
4267
|
-
data: {
|
|
4268
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4269
|
-
variations?: {
|
|
4270
|
-
fileId: string;
|
|
4271
|
-
seed: number;
|
|
4272
|
-
phash: string;
|
|
4273
|
-
distanceOriginal: number;
|
|
4274
|
-
originalImageUrl: string;
|
|
4275
|
-
originalPhash: string;
|
|
4276
|
-
}[] | null | undefined;
|
|
4277
|
-
originalPhashes?: string[] | null | undefined;
|
|
4278
|
-
};
|
|
4279
|
-
} | {
|
|
4280
|
-
type: "IMPORTED";
|
|
4281
|
-
data: {
|
|
4282
|
-
post: {
|
|
4283
|
-
platformId: string;
|
|
4284
|
-
post: {
|
|
4285
|
-
status?: string | null | undefined;
|
|
4286
|
-
price?: number | null | undefined;
|
|
4287
|
-
currency?: string | null | undefined;
|
|
4288
|
-
brand?: string | null | undefined;
|
|
4289
|
-
catalog?: string | null | undefined;
|
|
4290
|
-
catalogId?: number | null | undefined;
|
|
4291
|
-
colors?: string[] | null | undefined;
|
|
4292
|
-
colorIds?: number[] | null | undefined;
|
|
4293
|
-
description?: string | null | undefined;
|
|
4294
|
-
measurementLength?: number | null | undefined;
|
|
4295
|
-
measurementWidth?: number | null | undefined;
|
|
4296
|
-
packageSizeId?: number | null | undefined;
|
|
4297
|
-
photoUrls?: string[] | null | undefined;
|
|
4298
|
-
size?: string | null | undefined;
|
|
4299
|
-
sizeId?: number | null | undefined;
|
|
4300
|
-
statusId?: number | null | undefined;
|
|
4301
|
-
title?: string | null | undefined;
|
|
4302
|
-
isDraft?: boolean | null | undefined;
|
|
4303
|
-
isArchived?: boolean | null | undefined;
|
|
4304
|
-
availableQuantity?: number | null | undefined;
|
|
4305
|
-
material?: number[] | null | undefined;
|
|
4306
|
-
manufacturerLabelling?: string | null | undefined;
|
|
4307
|
-
labels?: string[] | null | undefined;
|
|
4308
|
-
};
|
|
4309
|
-
createdAt?: Date | null | undefined;
|
|
4310
|
-
platformUrl?: string | null | undefined;
|
|
4311
|
-
};
|
|
4312
|
-
};
|
|
4313
|
-
} | {
|
|
4314
|
-
type: "LIFECYCLE_COMPLETED";
|
|
4315
|
-
data: {
|
|
4316
|
-
accountId: string;
|
|
4317
|
-
};
|
|
4318
|
-
} | {
|
|
4319
|
-
type: "LIFECYCLE_STARTED";
|
|
4320
|
-
data: {
|
|
4321
|
-
accountId: string;
|
|
4322
|
-
caseId: string;
|
|
4323
|
-
};
|
|
4324
|
-
} | {
|
|
4325
|
-
type: "PUBLISHED";
|
|
4326
|
-
data: {
|
|
4327
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4328
|
-
};
|
|
4329
|
-
} | {
|
|
4330
|
-
type: "REPUBLISHING";
|
|
4331
|
-
data: {
|
|
4332
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4333
|
-
publishingDate?: Date | null | undefined;
|
|
4334
|
-
priceDropPayload?: {
|
|
4335
|
-
value: number;
|
|
4336
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4337
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4338
|
-
roundStep?: number | null | undefined;
|
|
4339
|
-
maxRounds?: number | null | undefined;
|
|
4340
|
-
} | null | undefined;
|
|
4341
|
-
isTransfer?: boolean | null | undefined;
|
|
4342
|
-
targetAccountId?: string | null | undefined;
|
|
4343
|
-
};
|
|
4344
|
-
} | {
|
|
4345
|
-
type: "REPUBLISHING_RETRY";
|
|
4346
|
-
data: {
|
|
4347
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4348
|
-
attemptNumber: number;
|
|
4349
|
-
maxAttempts: number;
|
|
4350
|
-
previousHistoryId: string;
|
|
4351
|
-
originalFailureDate: Date;
|
|
4352
|
-
fields?: {
|
|
4353
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4354
|
-
autoFixable: boolean;
|
|
4355
|
-
error?: string | null | undefined;
|
|
4356
|
-
}[] | null | undefined;
|
|
4357
|
-
priceDropPayload?: {
|
|
4358
|
-
value: number;
|
|
4359
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4360
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4361
|
-
roundStep?: number | null | undefined;
|
|
4362
|
-
maxRounds?: number | null | undefined;
|
|
4363
|
-
} | null | undefined;
|
|
4364
|
-
};
|
|
4365
|
-
} | {
|
|
4366
|
-
type: "SCHEDULED";
|
|
4367
|
-
data: {
|
|
4368
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4369
|
-
publishingDate?: Date | null | undefined;
|
|
4370
|
-
};
|
|
4371
|
-
} | {
|
|
4372
|
-
type: "SCHEDULED_RETRY";
|
|
4373
|
-
data: {
|
|
4374
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4375
|
-
attemptNumber: number;
|
|
4376
|
-
maxAttempts: number;
|
|
4377
|
-
previousHistoryId: string;
|
|
4378
|
-
originalFailureDate: Date;
|
|
4379
|
-
fields?: {
|
|
4380
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4381
|
-
autoFixable: boolean;
|
|
4382
|
-
error?: string | null | undefined;
|
|
4383
|
-
}[] | null | undefined;
|
|
4384
|
-
};
|
|
4385
|
-
} | {
|
|
4386
|
-
type: "UPDATED";
|
|
4387
|
-
data: {
|
|
4388
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4389
|
-
};
|
|
4390
|
-
} | {
|
|
4391
|
-
type: "UPDATING";
|
|
4392
|
-
data: {
|
|
4393
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4394
|
-
post?: {
|
|
4395
|
-
status?: string | null | undefined;
|
|
4396
|
-
price?: number | null | undefined;
|
|
4397
|
-
currency?: string | null | undefined;
|
|
4398
|
-
brand?: string | null | undefined;
|
|
4399
|
-
catalog?: string | null | undefined;
|
|
4400
|
-
catalogId?: number | null | undefined;
|
|
4401
|
-
colors?: string[] | null | undefined;
|
|
4402
|
-
colorIds?: number[] | null | undefined;
|
|
4403
|
-
description?: string | null | undefined;
|
|
4404
|
-
measurementLength?: number | null | undefined;
|
|
4405
|
-
measurementWidth?: number | null | undefined;
|
|
4406
|
-
packageSizeId?: number | null | undefined;
|
|
4407
|
-
photoUrls?: string[] | null | undefined;
|
|
4408
|
-
size?: string | null | undefined;
|
|
4409
|
-
sizeId?: number | null | undefined;
|
|
4410
|
-
statusId?: number | null | undefined;
|
|
4411
|
-
title?: string | null | undefined;
|
|
4412
|
-
isDraft?: boolean | null | undefined;
|
|
4413
|
-
isArchived?: boolean | null | undefined;
|
|
4414
|
-
availableQuantity?: number | null | undefined;
|
|
4415
|
-
material?: number[] | null | undefined;
|
|
4416
|
-
manufacturerLabelling?: string | null | undefined;
|
|
4417
|
-
labels?: string[] | null | undefined;
|
|
4418
|
-
} | null | undefined;
|
|
4419
|
-
targetDate?: Date | null | undefined;
|
|
4420
|
-
};
|
|
4421
|
-
} | null | undefined;
|
|
4422
|
-
accountId?: string | null | undefined;
|
|
4423
|
-
requestId?: string | null | undefined;
|
|
4424
|
-
targetDate?: Date | null | undefined;
|
|
4425
|
-
}[] | null | undefined;
|
|
4426
|
-
}, {
|
|
4427
|
-
userId: string | number;
|
|
4428
|
-
id: string | number;
|
|
4429
|
-
updatedAt: Date;
|
|
4430
|
-
name: string;
|
|
4431
|
-
createdAt: Date;
|
|
4432
|
-
sold: boolean;
|
|
4433
|
-
state?: number | null | undefined;
|
|
4434
|
-
colorIds?: number[] | null | undefined;
|
|
4435
|
-
description?: string | null | undefined;
|
|
4436
|
-
packageSizeId?: number | null | undefined;
|
|
4437
|
-
sizeId?: number | null | undefined;
|
|
4438
|
-
labels?: {
|
|
4439
|
-
itemId: string | number;
|
|
4440
|
-
labelId: string | number;
|
|
4441
|
-
label?: {
|
|
4442
|
-
id: string | number;
|
|
4443
|
-
name: string;
|
|
4444
|
-
createdAt: Date;
|
|
4445
|
-
isUserLabel: boolean;
|
|
4446
|
-
userId?: string | number | null | undefined;
|
|
4447
|
-
itemCount?: number | null | undefined;
|
|
4448
|
-
parentId?: unknown;
|
|
4449
|
-
} | null | undefined;
|
|
4450
|
-
}[] | null | undefined;
|
|
4451
|
-
files?: {
|
|
4452
|
-
itemId: string | number;
|
|
4453
|
-
fileId: string;
|
|
4454
|
-
index?: number | null | undefined;
|
|
4455
|
-
file?: {
|
|
4456
|
-
path: string;
|
|
4457
|
-
userId: string | number;
|
|
4458
|
-
id: string;
|
|
4459
|
-
createdAt: Date;
|
|
4460
|
-
signedUrl: string;
|
|
4461
|
-
} | null | undefined;
|
|
4462
|
-
}[] | null | undefined;
|
|
4463
|
-
fields?: {
|
|
4464
|
-
value: string;
|
|
4465
|
-
itemId: string | number;
|
|
4466
|
-
fieldId: string | number;
|
|
4467
|
-
}[] | null | undefined;
|
|
4468
|
-
sku?: string | null | undefined;
|
|
4469
|
-
categoryId?: number | null | undefined;
|
|
4470
|
-
brandId?: string | number | null | undefined;
|
|
4471
|
-
sex?: string | null | undefined;
|
|
4472
|
-
purchasePrice?: number | null | undefined;
|
|
4473
|
-
purchaseDate?: Date | null | undefined;
|
|
4474
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
4475
|
-
purchased?: boolean | null | undefined;
|
|
4476
|
-
sellingPrice?: number | null | undefined;
|
|
4477
|
-
sellingDate?: Date | null | undefined;
|
|
4478
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
4479
|
-
estimatedPrice?: number | null | undefined;
|
|
4480
|
-
fees?: {
|
|
4481
|
-
value: number;
|
|
4482
|
-
type: string;
|
|
4483
|
-
userId: string | number;
|
|
4484
|
-
id: string | number;
|
|
4485
|
-
updatedAt: Date;
|
|
4486
|
-
name: string;
|
|
4487
|
-
createdAt: Date;
|
|
4488
|
-
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
4489
|
-
startDate: Date;
|
|
4490
|
-
active: boolean;
|
|
4491
|
-
description?: string | null | undefined;
|
|
4492
|
-
itemId?: string | number | null | undefined;
|
|
4493
|
-
endDate?: Date | null | undefined;
|
|
4494
|
-
parentFeeId?: string | number | null | undefined;
|
|
4495
|
-
}[] | null | undefined;
|
|
4496
|
-
feesSum?: number | null | undefined;
|
|
4497
|
-
customerId?: string | number | null | undefined;
|
|
4498
|
-
customer?: {
|
|
4499
|
-
userId: string | number;
|
|
4500
|
-
id: string | number;
|
|
4501
|
-
email: string;
|
|
4502
|
-
firstName: string;
|
|
4503
|
-
lastName: string;
|
|
4504
|
-
birthDate: Date;
|
|
4505
|
-
idNumber: string;
|
|
4506
|
-
phone: string;
|
|
4507
|
-
iban: string;
|
|
4508
|
-
bic: string;
|
|
4509
|
-
phoneVerified: boolean;
|
|
4510
|
-
} | null | undefined;
|
|
4511
|
-
customerType?: string | null | undefined;
|
|
4512
|
-
customerPaid?: boolean | null | undefined;
|
|
4513
|
-
customerPaidDate?: Date | null | undefined;
|
|
4514
|
-
customerPaidType?: string | null | undefined;
|
|
4515
|
-
contractId?: string | number | null | undefined;
|
|
4516
|
-
lastHistory?: {
|
|
4517
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
4518
|
-
id: string;
|
|
4519
|
-
createdAt: Date;
|
|
4520
|
-
itemId: string | number;
|
|
4521
|
-
data?: {
|
|
4522
|
-
type: "ACTION_CANCELED";
|
|
4523
|
-
data: {
|
|
4524
|
-
targetItemHistoryId: string;
|
|
4525
|
-
};
|
|
4526
|
-
} | {
|
|
4527
|
-
type: "BUYER_PAID";
|
|
4528
|
-
data: {
|
|
4529
|
-
soldAccountId: string;
|
|
4530
|
-
soldOrderId: string;
|
|
4531
|
-
soldConversationId?: string | null | undefined;
|
|
4532
|
-
};
|
|
4533
|
-
} | {
|
|
4534
|
-
type: "DELIVERED";
|
|
4535
|
-
data: {
|
|
4536
|
-
soldAccountId: string;
|
|
4537
|
-
soldOrderId: string;
|
|
4538
|
-
soldConversationId?: string | null | undefined;
|
|
4539
|
-
};
|
|
4540
|
-
} | {
|
|
4541
|
-
type: "EMPTY";
|
|
4542
|
-
} | {
|
|
4543
|
-
type: "FAILED_TO_PUBLISH";
|
|
4544
|
-
data: {
|
|
4545
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4546
|
-
accountId?: string | null | undefined;
|
|
4547
|
-
reason?: string | null | undefined;
|
|
4548
|
-
fields?: {
|
|
4549
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4550
|
-
autoFixable: boolean;
|
|
4551
|
-
error?: string | null | undefined;
|
|
4552
|
-
}[] | null | undefined;
|
|
4553
|
-
itemHistoryId?: string | null | undefined;
|
|
4554
|
-
};
|
|
4555
|
-
} | {
|
|
4556
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
2521
|
+
} | {
|
|
2522
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4557
2523
|
data: {
|
|
4558
2524
|
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4559
2525
|
variations?: {
|
|
@@ -4598,6 +2564,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
4598
2564
|
};
|
|
4599
2565
|
createdAt?: Date | null | undefined;
|
|
4600
2566
|
platformUrl?: string | null | undefined;
|
|
2567
|
+
viewsCount?: number | null | undefined;
|
|
2568
|
+
favoritesCount?: number | null | undefined;
|
|
4601
2569
|
};
|
|
4602
2570
|
};
|
|
4603
2571
|
} | {
|
|
@@ -4743,215 +2711,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
4743
2711
|
viewsCount?: number | null | undefined;
|
|
4744
2712
|
favoritesCount?: number | null | undefined;
|
|
4745
2713
|
}[] | null | undefined;
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
createdAt: Date;
|
|
4750
|
-
itemId: string | number;
|
|
4751
|
-
data?: {
|
|
4752
|
-
type: "ACTION_CANCELED";
|
|
4753
|
-
data: {
|
|
4754
|
-
targetItemHistoryId: string;
|
|
4755
|
-
};
|
|
4756
|
-
} | {
|
|
4757
|
-
type: "BUYER_PAID";
|
|
4758
|
-
data: {
|
|
4759
|
-
soldAccountId: string;
|
|
4760
|
-
soldOrderId: string;
|
|
4761
|
-
soldConversationId?: string | null | undefined;
|
|
4762
|
-
};
|
|
4763
|
-
} | {
|
|
4764
|
-
type: "DELIVERED";
|
|
4765
|
-
data: {
|
|
4766
|
-
soldAccountId: string;
|
|
4767
|
-
soldOrderId: string;
|
|
4768
|
-
soldConversationId?: string | null | undefined;
|
|
4769
|
-
};
|
|
4770
|
-
} | {
|
|
4771
|
-
type: "EMPTY";
|
|
4772
|
-
} | {
|
|
4773
|
-
type: "FAILED_TO_PUBLISH";
|
|
4774
|
-
data: {
|
|
4775
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4776
|
-
accountId?: string | null | undefined;
|
|
4777
|
-
reason?: string | null | undefined;
|
|
4778
|
-
fields?: {
|
|
4779
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4780
|
-
autoFixable: boolean;
|
|
4781
|
-
error?: string | null | undefined;
|
|
4782
|
-
}[] | null | undefined;
|
|
4783
|
-
itemHistoryId?: string | null | undefined;
|
|
4784
|
-
};
|
|
4785
|
-
} | {
|
|
4786
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
4787
|
-
data: {
|
|
4788
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4789
|
-
variations?: {
|
|
4790
|
-
fileId: string;
|
|
4791
|
-
seed: number;
|
|
4792
|
-
phash: string;
|
|
4793
|
-
distanceOriginal: number;
|
|
4794
|
-
originalImageUrl: string;
|
|
4795
|
-
originalPhash: string;
|
|
4796
|
-
}[] | null | undefined;
|
|
4797
|
-
originalPhashes?: string[] | null | undefined;
|
|
4798
|
-
};
|
|
4799
|
-
} | {
|
|
4800
|
-
type: "IMPORTED";
|
|
4801
|
-
data: {
|
|
4802
|
-
post: {
|
|
4803
|
-
platformId: string;
|
|
4804
|
-
post: {
|
|
4805
|
-
status?: string | null | undefined;
|
|
4806
|
-
price?: number | null | undefined;
|
|
4807
|
-
currency?: string | null | undefined;
|
|
4808
|
-
brand?: string | null | undefined;
|
|
4809
|
-
catalog?: string | null | undefined;
|
|
4810
|
-
catalogId?: number | null | undefined;
|
|
4811
|
-
colors?: string[] | null | undefined;
|
|
4812
|
-
colorIds?: number[] | null | undefined;
|
|
4813
|
-
description?: string | null | undefined;
|
|
4814
|
-
measurementLength?: number | null | undefined;
|
|
4815
|
-
measurementWidth?: number | null | undefined;
|
|
4816
|
-
packageSizeId?: number | null | undefined;
|
|
4817
|
-
photoUrls?: string[] | null | undefined;
|
|
4818
|
-
size?: string | null | undefined;
|
|
4819
|
-
sizeId?: number | null | undefined;
|
|
4820
|
-
statusId?: number | null | undefined;
|
|
4821
|
-
title?: string | null | undefined;
|
|
4822
|
-
isDraft?: boolean | null | undefined;
|
|
4823
|
-
isArchived?: boolean | null | undefined;
|
|
4824
|
-
availableQuantity?: number | null | undefined;
|
|
4825
|
-
material?: number[] | null | undefined;
|
|
4826
|
-
manufacturerLabelling?: string | null | undefined;
|
|
4827
|
-
labels?: string[] | null | undefined;
|
|
4828
|
-
};
|
|
4829
|
-
createdAt?: Date | null | undefined;
|
|
4830
|
-
platformUrl?: string | null | undefined;
|
|
4831
|
-
};
|
|
4832
|
-
};
|
|
4833
|
-
} | {
|
|
4834
|
-
type: "LIFECYCLE_COMPLETED";
|
|
4835
|
-
data: {
|
|
4836
|
-
accountId: string;
|
|
4837
|
-
};
|
|
4838
|
-
} | {
|
|
4839
|
-
type: "LIFECYCLE_STARTED";
|
|
4840
|
-
data: {
|
|
4841
|
-
accountId: string;
|
|
4842
|
-
caseId: string;
|
|
4843
|
-
};
|
|
4844
|
-
} | {
|
|
4845
|
-
type: "PUBLISHED";
|
|
4846
|
-
data: {
|
|
4847
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4848
|
-
};
|
|
4849
|
-
} | {
|
|
4850
|
-
type: "REPUBLISHING";
|
|
4851
|
-
data: {
|
|
4852
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4853
|
-
publishingDate?: Date | null | undefined;
|
|
4854
|
-
priceDropPayload?: {
|
|
4855
|
-
value: number;
|
|
4856
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4857
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4858
|
-
roundStep?: number | null | undefined;
|
|
4859
|
-
maxRounds?: number | null | undefined;
|
|
4860
|
-
} | null | undefined;
|
|
4861
|
-
isTransfer?: boolean | null | undefined;
|
|
4862
|
-
targetAccountId?: string | null | undefined;
|
|
4863
|
-
};
|
|
4864
|
-
} | {
|
|
4865
|
-
type: "REPUBLISHING_RETRY";
|
|
4866
|
-
data: {
|
|
4867
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4868
|
-
attemptNumber: number;
|
|
4869
|
-
maxAttempts: number;
|
|
4870
|
-
previousHistoryId: string;
|
|
4871
|
-
originalFailureDate: Date;
|
|
4872
|
-
fields?: {
|
|
4873
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4874
|
-
autoFixable: boolean;
|
|
4875
|
-
error?: string | null | undefined;
|
|
4876
|
-
}[] | null | undefined;
|
|
4877
|
-
priceDropPayload?: {
|
|
4878
|
-
value: number;
|
|
4879
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4880
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4881
|
-
roundStep?: number | null | undefined;
|
|
4882
|
-
maxRounds?: number | null | undefined;
|
|
4883
|
-
} | null | undefined;
|
|
4884
|
-
};
|
|
4885
|
-
} | {
|
|
4886
|
-
type: "SCHEDULED";
|
|
4887
|
-
data: {
|
|
4888
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4889
|
-
publishingDate?: Date | null | undefined;
|
|
4890
|
-
};
|
|
4891
|
-
} | {
|
|
4892
|
-
type: "SCHEDULED_RETRY";
|
|
4893
|
-
data: {
|
|
4894
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4895
|
-
attemptNumber: number;
|
|
4896
|
-
maxAttempts: number;
|
|
4897
|
-
previousHistoryId: string;
|
|
4898
|
-
originalFailureDate: Date;
|
|
4899
|
-
fields?: {
|
|
4900
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4901
|
-
autoFixable: boolean;
|
|
4902
|
-
error?: string | null | undefined;
|
|
4903
|
-
}[] | null | undefined;
|
|
4904
|
-
};
|
|
4905
|
-
} | {
|
|
4906
|
-
type: "UPDATED";
|
|
4907
|
-
data: {
|
|
4908
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4909
|
-
};
|
|
4910
|
-
} | {
|
|
4911
|
-
type: "UPDATING";
|
|
4912
|
-
data: {
|
|
4913
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4914
|
-
post?: {
|
|
4915
|
-
status?: string | null | undefined;
|
|
4916
|
-
price?: number | null | undefined;
|
|
4917
|
-
currency?: string | null | undefined;
|
|
4918
|
-
brand?: string | null | undefined;
|
|
4919
|
-
catalog?: string | null | undefined;
|
|
4920
|
-
catalogId?: number | null | undefined;
|
|
4921
|
-
colors?: string[] | null | undefined;
|
|
4922
|
-
colorIds?: number[] | null | undefined;
|
|
4923
|
-
description?: string | null | undefined;
|
|
4924
|
-
measurementLength?: number | null | undefined;
|
|
4925
|
-
measurementWidth?: number | null | undefined;
|
|
4926
|
-
packageSizeId?: number | null | undefined;
|
|
4927
|
-
photoUrls?: string[] | null | undefined;
|
|
4928
|
-
size?: string | null | undefined;
|
|
4929
|
-
sizeId?: number | null | undefined;
|
|
4930
|
-
statusId?: number | null | undefined;
|
|
4931
|
-
title?: string | null | undefined;
|
|
4932
|
-
isDraft?: boolean | null | undefined;
|
|
4933
|
-
isArchived?: boolean | null | undefined;
|
|
4934
|
-
availableQuantity?: number | null | undefined;
|
|
4935
|
-
material?: number[] | null | undefined;
|
|
4936
|
-
manufacturerLabelling?: string | null | undefined;
|
|
4937
|
-
labels?: string[] | null | undefined;
|
|
4938
|
-
} | null | undefined;
|
|
4939
|
-
targetDate?: Date | null | undefined;
|
|
4940
|
-
};
|
|
4941
|
-
} | null | undefined;
|
|
4942
|
-
accountId?: string | null | undefined;
|
|
4943
|
-
requestId?: string | null | undefined;
|
|
4944
|
-
targetDate?: Date | null | undefined;
|
|
4945
|
-
}[] | null | undefined;
|
|
4946
|
-
}>, "many">;
|
|
4947
|
-
}, "strip", z.ZodTypeAny, {
|
|
4948
|
-
items: {
|
|
4949
|
-
userId: string | number;
|
|
4950
|
-
id: string | number;
|
|
2714
|
+
}, {
|
|
2715
|
+
userId: number;
|
|
2716
|
+
id: number;
|
|
4951
2717
|
updatedAt: Date;
|
|
4952
2718
|
name: string;
|
|
4953
2719
|
createdAt: Date;
|
|
4954
2720
|
sold: boolean;
|
|
2721
|
+
actions: {
|
|
2722
|
+
perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
|
|
2723
|
+
};
|
|
4955
2724
|
state?: number | null | undefined;
|
|
4956
2725
|
colorIds?: number[] | null | undefined;
|
|
4957
2726
|
description?: string | null | undefined;
|
|
@@ -4989,15 +2758,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
4989
2758
|
}[] | null | undefined;
|
|
4990
2759
|
sku?: string | null | undefined;
|
|
4991
2760
|
categoryId?: number | null | undefined;
|
|
4992
|
-
brandId?:
|
|
2761
|
+
brandId?: number | null | undefined;
|
|
4993
2762
|
sex?: string | null | undefined;
|
|
4994
2763
|
purchasePrice?: number | null | undefined;
|
|
4995
2764
|
purchaseDate?: Date | null | undefined;
|
|
4996
|
-
purchasePlaceId?:
|
|
2765
|
+
purchasePlaceId?: number | null | undefined;
|
|
4997
2766
|
purchased?: boolean | null | undefined;
|
|
4998
2767
|
sellingPrice?: number | null | undefined;
|
|
4999
2768
|
sellingDate?: Date | null | undefined;
|
|
5000
|
-
sellingPlaceId?:
|
|
2769
|
+
sellingPlaceId?: number | null | undefined;
|
|
5001
2770
|
estimatedPrice?: number | null | undefined;
|
|
5002
2771
|
fees?: {
|
|
5003
2772
|
value: number;
|
|
@@ -5016,25 +2785,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5016
2785
|
parentFeeId?: string | number | null | undefined;
|
|
5017
2786
|
}[] | null | undefined;
|
|
5018
2787
|
feesSum?: number | null | undefined;
|
|
5019
|
-
customerId?: string | number | null | undefined;
|
|
5020
|
-
customer?: {
|
|
5021
|
-
userId: string | number;
|
|
5022
|
-
id: string | number;
|
|
5023
|
-
email: string;
|
|
5024
|
-
firstName: string;
|
|
5025
|
-
lastName: string;
|
|
5026
|
-
birthDate: Date;
|
|
5027
|
-
idNumber: string;
|
|
5028
|
-
phone: string;
|
|
5029
|
-
iban: string;
|
|
5030
|
-
bic: string;
|
|
5031
|
-
phoneVerified: boolean;
|
|
5032
|
-
} | null | undefined;
|
|
5033
|
-
customerType?: string | null | undefined;
|
|
5034
|
-
customerPaid?: boolean | null | undefined;
|
|
5035
|
-
customerPaidDate?: Date | null | undefined;
|
|
5036
|
-
customerPaidType?: string | null | undefined;
|
|
5037
|
-
contractId?: string | number | null | undefined;
|
|
5038
2788
|
lastHistory?: {
|
|
5039
2789
|
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
5040
2790
|
id: string;
|
|
@@ -5120,6 +2870,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5120
2870
|
};
|
|
5121
2871
|
createdAt?: Date | null | undefined;
|
|
5122
2872
|
platformUrl?: string | null | undefined;
|
|
2873
|
+
viewsCount?: number | null | undefined;
|
|
2874
|
+
favoritesCount?: number | null | undefined;
|
|
5123
2875
|
};
|
|
5124
2876
|
};
|
|
5125
2877
|
} | {
|
|
@@ -5265,7 +3017,83 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5265
3017
|
viewsCount?: number | null | undefined;
|
|
5266
3018
|
favoritesCount?: number | null | undefined;
|
|
5267
3019
|
}[] | null | undefined;
|
|
5268
|
-
|
|
3020
|
+
}>, "many">;
|
|
3021
|
+
}, "strip", z.ZodTypeAny, {
|
|
3022
|
+
items: {
|
|
3023
|
+
userId: number;
|
|
3024
|
+
id: number;
|
|
3025
|
+
updatedAt: Date;
|
|
3026
|
+
name: string;
|
|
3027
|
+
createdAt: Date;
|
|
3028
|
+
sold: boolean;
|
|
3029
|
+
actions: {
|
|
3030
|
+
perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
|
|
3031
|
+
};
|
|
3032
|
+
state?: number | null | undefined;
|
|
3033
|
+
colorIds?: number[] | null | undefined;
|
|
3034
|
+
description?: string | null | undefined;
|
|
3035
|
+
packageSizeId?: number | null | undefined;
|
|
3036
|
+
sizeId?: number | null | undefined;
|
|
3037
|
+
labels?: {
|
|
3038
|
+
itemId: string | number;
|
|
3039
|
+
labelId: string | number;
|
|
3040
|
+
label?: {
|
|
3041
|
+
id: string | number;
|
|
3042
|
+
name: string;
|
|
3043
|
+
createdAt: Date;
|
|
3044
|
+
isUserLabel: boolean;
|
|
3045
|
+
userId?: string | number | null | undefined;
|
|
3046
|
+
itemCount?: number | null | undefined;
|
|
3047
|
+
parentId?: unknown;
|
|
3048
|
+
} | null | undefined;
|
|
3049
|
+
}[] | null | undefined;
|
|
3050
|
+
files?: {
|
|
3051
|
+
itemId: string | number;
|
|
3052
|
+
fileId: string;
|
|
3053
|
+
index?: number | null | undefined;
|
|
3054
|
+
file?: {
|
|
3055
|
+
path: string;
|
|
3056
|
+
userId: string | number;
|
|
3057
|
+
id: string;
|
|
3058
|
+
createdAt: Date;
|
|
3059
|
+
signedUrl: string;
|
|
3060
|
+
} | null | undefined;
|
|
3061
|
+
}[] | null | undefined;
|
|
3062
|
+
fields?: {
|
|
3063
|
+
value: string;
|
|
3064
|
+
itemId: string | number;
|
|
3065
|
+
fieldId: string | number;
|
|
3066
|
+
}[] | null | undefined;
|
|
3067
|
+
sku?: string | null | undefined;
|
|
3068
|
+
categoryId?: number | null | undefined;
|
|
3069
|
+
brandId?: number | null | undefined;
|
|
3070
|
+
sex?: string | null | undefined;
|
|
3071
|
+
purchasePrice?: number | null | undefined;
|
|
3072
|
+
purchaseDate?: Date | null | undefined;
|
|
3073
|
+
purchasePlaceId?: number | null | undefined;
|
|
3074
|
+
purchased?: boolean | null | undefined;
|
|
3075
|
+
sellingPrice?: number | null | undefined;
|
|
3076
|
+
sellingDate?: Date | null | undefined;
|
|
3077
|
+
sellingPlaceId?: number | null | undefined;
|
|
3078
|
+
estimatedPrice?: number | null | undefined;
|
|
3079
|
+
fees?: {
|
|
3080
|
+
value: number;
|
|
3081
|
+
type: string;
|
|
3082
|
+
userId: string | number;
|
|
3083
|
+
id: string | number;
|
|
3084
|
+
updatedAt: Date;
|
|
3085
|
+
name: string;
|
|
3086
|
+
createdAt: Date;
|
|
3087
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3088
|
+
startDate: Date;
|
|
3089
|
+
active: boolean;
|
|
3090
|
+
description?: string | null | undefined;
|
|
3091
|
+
itemId?: string | number | null | undefined;
|
|
3092
|
+
endDate?: Date | null | undefined;
|
|
3093
|
+
parentFeeId?: string | number | null | undefined;
|
|
3094
|
+
}[] | null | undefined;
|
|
3095
|
+
feesSum?: number | null | undefined;
|
|
3096
|
+
lastHistory?: {
|
|
5269
3097
|
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
5270
3098
|
id: string;
|
|
5271
3099
|
createdAt: Date;
|
|
@@ -5350,6 +3178,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5350
3178
|
};
|
|
5351
3179
|
createdAt?: Date | null | undefined;
|
|
5352
3180
|
platformUrl?: string | null | undefined;
|
|
3181
|
+
viewsCount?: number | null | undefined;
|
|
3182
|
+
favoritesCount?: number | null | undefined;
|
|
5353
3183
|
};
|
|
5354
3184
|
};
|
|
5355
3185
|
} | {
|
|
@@ -5464,11 +3294,41 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5464
3294
|
accountId?: string | null | undefined;
|
|
5465
3295
|
requestId?: string | null | undefined;
|
|
5466
3296
|
targetDate?: Date | null | undefined;
|
|
3297
|
+
} | null | undefined;
|
|
3298
|
+
platforms?: {
|
|
3299
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3300
|
+
id: string;
|
|
3301
|
+
updatedAt: Date;
|
|
3302
|
+
createdAt: Date;
|
|
3303
|
+
accountId: string;
|
|
3304
|
+
itemId: string | number;
|
|
3305
|
+
platformId: string;
|
|
3306
|
+
platformUrl: string;
|
|
3307
|
+
platformPrice: number;
|
|
3308
|
+
publishedAt: Date;
|
|
3309
|
+
conversationId?: string | null | undefined;
|
|
3310
|
+
account?: {
|
|
3311
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3312
|
+
userId: string | number;
|
|
3313
|
+
name: string;
|
|
3314
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3315
|
+
accountId: string;
|
|
3316
|
+
locale?: string | null | undefined;
|
|
3317
|
+
night?: {
|
|
3318
|
+
startsAt: Date;
|
|
3319
|
+
endsAt: Date;
|
|
3320
|
+
} | null | undefined;
|
|
3321
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3322
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3323
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3324
|
+
} | null | undefined;
|
|
3325
|
+
viewsCount?: number | null | undefined;
|
|
3326
|
+
favoritesCount?: number | null | undefined;
|
|
5467
3327
|
}[] | null | undefined;
|
|
5468
3328
|
}[];
|
|
5469
3329
|
order: {
|
|
5470
3330
|
type: "SALE" | "PURCHASE";
|
|
5471
|
-
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
|
|
3331
|
+
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER" | "PAYMENT_FAILED" | "ORDER_SUSPENDED" | "SHIPPING_TO_VERIFICATION_CENTER" | "PAYMENT_IN_PROGRESS" | "SENT_TO_VERIFICATION_CENTER" | "SHIPPING_FROM_VERIFICATION_CENTER";
|
|
5472
3332
|
date: Date;
|
|
5473
3333
|
id: string;
|
|
5474
3334
|
price: number;
|
|
@@ -5563,12 +3423,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5563
3423
|
};
|
|
5564
3424
|
}, {
|
|
5565
3425
|
items: {
|
|
5566
|
-
userId:
|
|
5567
|
-
id:
|
|
3426
|
+
userId: number;
|
|
3427
|
+
id: number;
|
|
5568
3428
|
updatedAt: Date;
|
|
5569
3429
|
name: string;
|
|
5570
3430
|
createdAt: Date;
|
|
5571
3431
|
sold: boolean;
|
|
3432
|
+
actions: {
|
|
3433
|
+
perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
|
|
3434
|
+
};
|
|
5572
3435
|
state?: number | null | undefined;
|
|
5573
3436
|
colorIds?: number[] | null | undefined;
|
|
5574
3437
|
description?: string | null | undefined;
|
|
@@ -5606,15 +3469,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5606
3469
|
}[] | null | undefined;
|
|
5607
3470
|
sku?: string | null | undefined;
|
|
5608
3471
|
categoryId?: number | null | undefined;
|
|
5609
|
-
brandId?:
|
|
3472
|
+
brandId?: number | null | undefined;
|
|
5610
3473
|
sex?: string | null | undefined;
|
|
5611
3474
|
purchasePrice?: number | null | undefined;
|
|
5612
3475
|
purchaseDate?: Date | null | undefined;
|
|
5613
|
-
purchasePlaceId?:
|
|
3476
|
+
purchasePlaceId?: number | null | undefined;
|
|
5614
3477
|
purchased?: boolean | null | undefined;
|
|
5615
3478
|
sellingPrice?: number | null | undefined;
|
|
5616
3479
|
sellingDate?: Date | null | undefined;
|
|
5617
|
-
sellingPlaceId?:
|
|
3480
|
+
sellingPlaceId?: number | null | undefined;
|
|
5618
3481
|
estimatedPrice?: number | null | undefined;
|
|
5619
3482
|
fees?: {
|
|
5620
3483
|
value: number;
|
|
@@ -5633,25 +3496,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5633
3496
|
parentFeeId?: string | number | null | undefined;
|
|
5634
3497
|
}[] | null | undefined;
|
|
5635
3498
|
feesSum?: number | null | undefined;
|
|
5636
|
-
customerId?: string | number | null | undefined;
|
|
5637
|
-
customer?: {
|
|
5638
|
-
userId: string | number;
|
|
5639
|
-
id: string | number;
|
|
5640
|
-
email: string;
|
|
5641
|
-
firstName: string;
|
|
5642
|
-
lastName: string;
|
|
5643
|
-
birthDate: Date;
|
|
5644
|
-
idNumber: string;
|
|
5645
|
-
phone: string;
|
|
5646
|
-
iban: string;
|
|
5647
|
-
bic: string;
|
|
5648
|
-
phoneVerified: boolean;
|
|
5649
|
-
} | null | undefined;
|
|
5650
|
-
customerType?: string | null | undefined;
|
|
5651
|
-
customerPaid?: boolean | null | undefined;
|
|
5652
|
-
customerPaidDate?: Date | null | undefined;
|
|
5653
|
-
customerPaidType?: string | null | undefined;
|
|
5654
|
-
contractId?: string | number | null | undefined;
|
|
5655
3499
|
lastHistory?: {
|
|
5656
3500
|
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
5657
3501
|
id: string;
|
|
@@ -5737,6 +3581,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5737
3581
|
};
|
|
5738
3582
|
createdAt?: Date | null | undefined;
|
|
5739
3583
|
platformUrl?: string | null | undefined;
|
|
3584
|
+
viewsCount?: number | null | undefined;
|
|
3585
|
+
favoritesCount?: number | null | undefined;
|
|
5740
3586
|
};
|
|
5741
3587
|
};
|
|
5742
3588
|
} | {
|
|
@@ -5882,210 +3728,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
5882
3728
|
viewsCount?: number | null | undefined;
|
|
5883
3729
|
favoritesCount?: number | null | undefined;
|
|
5884
3730
|
}[] | null | undefined;
|
|
5885
|
-
history?: {
|
|
5886
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
5887
|
-
id: string;
|
|
5888
|
-
createdAt: Date;
|
|
5889
|
-
itemId: string | number;
|
|
5890
|
-
data?: {
|
|
5891
|
-
type: "ACTION_CANCELED";
|
|
5892
|
-
data: {
|
|
5893
|
-
targetItemHistoryId: string;
|
|
5894
|
-
};
|
|
5895
|
-
} | {
|
|
5896
|
-
type: "BUYER_PAID";
|
|
5897
|
-
data: {
|
|
5898
|
-
soldAccountId: string;
|
|
5899
|
-
soldOrderId: string;
|
|
5900
|
-
soldConversationId?: string | null | undefined;
|
|
5901
|
-
};
|
|
5902
|
-
} | {
|
|
5903
|
-
type: "DELIVERED";
|
|
5904
|
-
data: {
|
|
5905
|
-
soldAccountId: string;
|
|
5906
|
-
soldOrderId: string;
|
|
5907
|
-
soldConversationId?: string | null | undefined;
|
|
5908
|
-
};
|
|
5909
|
-
} | {
|
|
5910
|
-
type: "EMPTY";
|
|
5911
|
-
} | {
|
|
5912
|
-
type: "FAILED_TO_PUBLISH";
|
|
5913
|
-
data: {
|
|
5914
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5915
|
-
accountId?: string | null | undefined;
|
|
5916
|
-
reason?: string | null | undefined;
|
|
5917
|
-
fields?: {
|
|
5918
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
5919
|
-
autoFixable: boolean;
|
|
5920
|
-
error?: string | null | undefined;
|
|
5921
|
-
}[] | null | undefined;
|
|
5922
|
-
itemHistoryId?: string | null | undefined;
|
|
5923
|
-
};
|
|
5924
|
-
} | {
|
|
5925
|
-
type: "IMAGE_PROCESSING_DONE";
|
|
5926
|
-
data: {
|
|
5927
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5928
|
-
variations?: {
|
|
5929
|
-
fileId: string;
|
|
5930
|
-
seed: number;
|
|
5931
|
-
phash: string;
|
|
5932
|
-
distanceOriginal: number;
|
|
5933
|
-
originalImageUrl: string;
|
|
5934
|
-
originalPhash: string;
|
|
5935
|
-
}[] | null | undefined;
|
|
5936
|
-
originalPhashes?: string[] | null | undefined;
|
|
5937
|
-
};
|
|
5938
|
-
} | {
|
|
5939
|
-
type: "IMPORTED";
|
|
5940
|
-
data: {
|
|
5941
|
-
post: {
|
|
5942
|
-
platformId: string;
|
|
5943
|
-
post: {
|
|
5944
|
-
status?: string | null | undefined;
|
|
5945
|
-
price?: number | null | undefined;
|
|
5946
|
-
currency?: string | null | undefined;
|
|
5947
|
-
brand?: string | null | undefined;
|
|
5948
|
-
catalog?: string | null | undefined;
|
|
5949
|
-
catalogId?: number | null | undefined;
|
|
5950
|
-
colors?: string[] | null | undefined;
|
|
5951
|
-
colorIds?: number[] | null | undefined;
|
|
5952
|
-
description?: string | null | undefined;
|
|
5953
|
-
measurementLength?: number | null | undefined;
|
|
5954
|
-
measurementWidth?: number | null | undefined;
|
|
5955
|
-
packageSizeId?: number | null | undefined;
|
|
5956
|
-
photoUrls?: string[] | null | undefined;
|
|
5957
|
-
size?: string | null | undefined;
|
|
5958
|
-
sizeId?: number | null | undefined;
|
|
5959
|
-
statusId?: number | null | undefined;
|
|
5960
|
-
title?: string | null | undefined;
|
|
5961
|
-
isDraft?: boolean | null | undefined;
|
|
5962
|
-
isArchived?: boolean | null | undefined;
|
|
5963
|
-
availableQuantity?: number | null | undefined;
|
|
5964
|
-
material?: number[] | null | undefined;
|
|
5965
|
-
manufacturerLabelling?: string | null | undefined;
|
|
5966
|
-
labels?: string[] | null | undefined;
|
|
5967
|
-
};
|
|
5968
|
-
createdAt?: Date | null | undefined;
|
|
5969
|
-
platformUrl?: string | null | undefined;
|
|
5970
|
-
};
|
|
5971
|
-
};
|
|
5972
|
-
} | {
|
|
5973
|
-
type: "LIFECYCLE_COMPLETED";
|
|
5974
|
-
data: {
|
|
5975
|
-
accountId: string;
|
|
5976
|
-
};
|
|
5977
|
-
} | {
|
|
5978
|
-
type: "LIFECYCLE_STARTED";
|
|
5979
|
-
data: {
|
|
5980
|
-
accountId: string;
|
|
5981
|
-
caseId: string;
|
|
5982
|
-
};
|
|
5983
|
-
} | {
|
|
5984
|
-
type: "PUBLISHED";
|
|
5985
|
-
data: {
|
|
5986
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5987
|
-
};
|
|
5988
|
-
} | {
|
|
5989
|
-
type: "REPUBLISHING";
|
|
5990
|
-
data: {
|
|
5991
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5992
|
-
publishingDate?: Date | null | undefined;
|
|
5993
|
-
priceDropPayload?: {
|
|
5994
|
-
value: number;
|
|
5995
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
5996
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
5997
|
-
roundStep?: number | null | undefined;
|
|
5998
|
-
maxRounds?: number | null | undefined;
|
|
5999
|
-
} | null | undefined;
|
|
6000
|
-
isTransfer?: boolean | null | undefined;
|
|
6001
|
-
targetAccountId?: string | null | undefined;
|
|
6002
|
-
};
|
|
6003
|
-
} | {
|
|
6004
|
-
type: "REPUBLISHING_RETRY";
|
|
6005
|
-
data: {
|
|
6006
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6007
|
-
attemptNumber: number;
|
|
6008
|
-
maxAttempts: number;
|
|
6009
|
-
previousHistoryId: string;
|
|
6010
|
-
originalFailureDate: Date;
|
|
6011
|
-
fields?: {
|
|
6012
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
6013
|
-
autoFixable: boolean;
|
|
6014
|
-
error?: string | null | undefined;
|
|
6015
|
-
}[] | null | undefined;
|
|
6016
|
-
priceDropPayload?: {
|
|
6017
|
-
value: number;
|
|
6018
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
6019
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
6020
|
-
roundStep?: number | null | undefined;
|
|
6021
|
-
maxRounds?: number | null | undefined;
|
|
6022
|
-
} | null | undefined;
|
|
6023
|
-
};
|
|
6024
|
-
} | {
|
|
6025
|
-
type: "SCHEDULED";
|
|
6026
|
-
data: {
|
|
6027
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6028
|
-
publishingDate?: Date | null | undefined;
|
|
6029
|
-
};
|
|
6030
|
-
} | {
|
|
6031
|
-
type: "SCHEDULED_RETRY";
|
|
6032
|
-
data: {
|
|
6033
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6034
|
-
attemptNumber: number;
|
|
6035
|
-
maxAttempts: number;
|
|
6036
|
-
previousHistoryId: string;
|
|
6037
|
-
originalFailureDate: Date;
|
|
6038
|
-
fields?: {
|
|
6039
|
-
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
6040
|
-
autoFixable: boolean;
|
|
6041
|
-
error?: string | null | undefined;
|
|
6042
|
-
}[] | null | undefined;
|
|
6043
|
-
};
|
|
6044
|
-
} | {
|
|
6045
|
-
type: "UPDATED";
|
|
6046
|
-
data: {
|
|
6047
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6048
|
-
};
|
|
6049
|
-
} | {
|
|
6050
|
-
type: "UPDATING";
|
|
6051
|
-
data: {
|
|
6052
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6053
|
-
post?: {
|
|
6054
|
-
status?: string | null | undefined;
|
|
6055
|
-
price?: number | null | undefined;
|
|
6056
|
-
currency?: string | null | undefined;
|
|
6057
|
-
brand?: string | null | undefined;
|
|
6058
|
-
catalog?: string | null | undefined;
|
|
6059
|
-
catalogId?: number | null | undefined;
|
|
6060
|
-
colors?: string[] | null | undefined;
|
|
6061
|
-
colorIds?: number[] | null | undefined;
|
|
6062
|
-
description?: string | null | undefined;
|
|
6063
|
-
measurementLength?: number | null | undefined;
|
|
6064
|
-
measurementWidth?: number | null | undefined;
|
|
6065
|
-
packageSizeId?: number | null | undefined;
|
|
6066
|
-
photoUrls?: string[] | null | undefined;
|
|
6067
|
-
size?: string | null | undefined;
|
|
6068
|
-
sizeId?: number | null | undefined;
|
|
6069
|
-
statusId?: number | null | undefined;
|
|
6070
|
-
title?: string | null | undefined;
|
|
6071
|
-
isDraft?: boolean | null | undefined;
|
|
6072
|
-
isArchived?: boolean | null | undefined;
|
|
6073
|
-
availableQuantity?: number | null | undefined;
|
|
6074
|
-
material?: number[] | null | undefined;
|
|
6075
|
-
manufacturerLabelling?: string | null | undefined;
|
|
6076
|
-
labels?: string[] | null | undefined;
|
|
6077
|
-
} | null | undefined;
|
|
6078
|
-
targetDate?: Date | null | undefined;
|
|
6079
|
-
};
|
|
6080
|
-
} | null | undefined;
|
|
6081
|
-
accountId?: string | null | undefined;
|
|
6082
|
-
requestId?: string | null | undefined;
|
|
6083
|
-
targetDate?: Date | null | undefined;
|
|
6084
|
-
}[] | null | undefined;
|
|
6085
3731
|
}[];
|
|
6086
3732
|
order: {
|
|
6087
3733
|
type: "SALE" | "PURCHASE";
|
|
6088
|
-
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
|
|
3734
|
+
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER" | "PAYMENT_FAILED" | "ORDER_SUSPENDED" | "SHIPPING_TO_VERIFICATION_CENTER" | "PAYMENT_IN_PROGRESS" | "SENT_TO_VERIFICATION_CENTER" | "SHIPPING_FROM_VERIFICATION_CENTER";
|
|
6089
3735
|
date: Date;
|
|
6090
3736
|
id: string;
|
|
6091
3737
|
price: number;
|