controlresell 2.1.11 → 2.1.13
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 +3 -3
- package/src/com/controlresell/models/items/CreatedItems.d.ts +7 -7
- package/src/com/controlresell/models/items/Item.d.ts +5 -5
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.js +1 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.ts +1 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +7 -40
- package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -3
- package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -3
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +7 -7
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.d.ts +6 -6
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.js +2 -2
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.ts +2 -2
- package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +3 -3
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +3 -3
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.d.ts +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.js +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.ts +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +7 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +61 -164
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +12 -12
- 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/items/ItemInOrder.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +25 -25
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +33 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +16 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +15 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +39 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +19 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +18 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +27 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +13 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +12 -0
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +7 -7
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +5 -5
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +16 -16
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
- package/src/index.d.ts +141 -138
- package/src/index.js +285 -152
- package/src/index.ts +141 -138
|
@@ -3,7 +3,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
accountId: z.ZodString;
|
|
5
5
|
platformOrderId: z.ZodString;
|
|
6
|
-
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>;
|
|
6
|
+
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>;
|
|
7
7
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
price: z.ZodNumber;
|
|
@@ -18,7 +18,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
18
18
|
platformId: z.ZodString;
|
|
19
19
|
platformUrl: z.ZodString;
|
|
20
20
|
platformPrice: z.ZodNumber;
|
|
21
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
21
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
22
22
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
23
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
24
24
|
accountId: z.ZodString;
|
|
@@ -39,7 +39,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
39
39
|
accountId: string;
|
|
40
40
|
}>>>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
42
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
43
43
|
id: string;
|
|
44
44
|
itemId: string | number;
|
|
45
45
|
accountId: string;
|
|
@@ -54,7 +54,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
54
54
|
accountId: string;
|
|
55
55
|
} | null | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
57
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
58
58
|
id: string;
|
|
59
59
|
itemId: string | number;
|
|
60
60
|
accountId: string;
|
|
@@ -73,7 +73,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
73
73
|
orderId: string;
|
|
74
74
|
itemOnPlatformId: string;
|
|
75
75
|
itemOnPlatform?: {
|
|
76
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
76
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
77
77
|
id: string;
|
|
78
78
|
itemId: string | number;
|
|
79
79
|
accountId: string;
|
|
@@ -92,7 +92,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
92
92
|
orderId: string;
|
|
93
93
|
itemOnPlatformId: string;
|
|
94
94
|
itemOnPlatform?: {
|
|
95
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
95
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
96
96
|
id: string;
|
|
97
97
|
itemId: string | number;
|
|
98
98
|
accountId: string;
|
|
@@ -191,7 +191,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
191
191
|
} | null | undefined;
|
|
192
192
|
}>, "many">>>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
194
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
195
195
|
id: string;
|
|
196
196
|
date: Date;
|
|
197
197
|
price: number;
|
|
@@ -201,7 +201,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
201
201
|
orderId: string;
|
|
202
202
|
itemOnPlatformId: string;
|
|
203
203
|
itemOnPlatform?: {
|
|
204
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
204
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
205
205
|
id: string;
|
|
206
206
|
itemId: string | number;
|
|
207
207
|
accountId: string;
|
|
@@ -218,7 +218,6 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
218
218
|
} | null | undefined;
|
|
219
219
|
}[] | null | undefined;
|
|
220
220
|
transactionId?: string | null | undefined;
|
|
221
|
-
conversationId?: string | null | undefined;
|
|
222
221
|
labels?: {
|
|
223
222
|
id: string;
|
|
224
223
|
fileId: string;
|
|
@@ -239,8 +238,9 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
239
238
|
createdAt: Date;
|
|
240
239
|
} | null | undefined;
|
|
241
240
|
}[] | null | undefined;
|
|
241
|
+
conversationId?: string | null | undefined;
|
|
242
242
|
}, {
|
|
243
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
243
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
244
244
|
id: string;
|
|
245
245
|
date: Date;
|
|
246
246
|
price: number;
|
|
@@ -250,7 +250,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
250
250
|
orderId: string;
|
|
251
251
|
itemOnPlatformId: string;
|
|
252
252
|
itemOnPlatform?: {
|
|
253
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
253
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
254
254
|
id: string;
|
|
255
255
|
itemId: string | number;
|
|
256
256
|
accountId: string;
|
|
@@ -267,7 +267,6 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
267
267
|
} | null | undefined;
|
|
268
268
|
}[] | null | undefined;
|
|
269
269
|
transactionId?: string | null | undefined;
|
|
270
|
-
conversationId?: string | null | undefined;
|
|
271
270
|
labels?: {
|
|
272
271
|
id: string;
|
|
273
272
|
fileId: string;
|
|
@@ -288,5 +287,6 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
288
287
|
createdAt: Date;
|
|
289
288
|
} | null | undefined;
|
|
290
289
|
}[] | null | undefined;
|
|
290
|
+
conversationId?: string | null | undefined;
|
|
291
291
|
}>;
|
|
292
292
|
export type Order = z.infer<typeof OrderSchema>;
|
|
@@ -6,10 +6,10 @@ export declare const OrderOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
6
6
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
price: z.ZodNumber;
|
|
8
8
|
currencyCode: z.ZodString;
|
|
9
|
-
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>;
|
|
9
|
+
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>;
|
|
10
10
|
date: z.ZodDate;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
12
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
13
13
|
id: string;
|
|
14
14
|
date: Date;
|
|
15
15
|
price: number;
|
|
@@ -17,7 +17,7 @@ export declare const OrderOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
17
17
|
transactionId?: string | null | undefined;
|
|
18
18
|
conversationId?: string | null | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
20
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
21
21
|
id: string;
|
|
22
22
|
date: Date;
|
|
23
23
|
price: number;
|
|
@@ -53,7 +53,7 @@ export declare const OrderOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
53
53
|
accountId: string;
|
|
54
54
|
};
|
|
55
55
|
order: {
|
|
56
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
56
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
57
57
|
id: string;
|
|
58
58
|
date: Date;
|
|
59
59
|
price: number;
|
|
@@ -70,7 +70,7 @@ export declare const OrderOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
70
70
|
accountId: string;
|
|
71
71
|
};
|
|
72
72
|
order: {
|
|
73
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
73
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
74
74
|
id: string;
|
|
75
75
|
date: Date;
|
|
76
76
|
price: number;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UpdateOrderPayloadSchema: z.ZodObject<{
|
|
3
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>>>;
|
|
3
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>>>;
|
|
4
4
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
7
|
date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN" | null | undefined;
|
|
9
|
+
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN" | null | undefined;
|
|
10
10
|
date?: Date | null | undefined;
|
|
11
11
|
price?: number | null | undefined;
|
|
12
12
|
transactionId?: string | null | undefined;
|
|
13
13
|
conversationId?: string | null | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN" | null | undefined;
|
|
15
|
+
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN" | null | undefined;
|
|
16
16
|
date?: Date | null | undefined;
|
|
17
17
|
price?: number | null | undefined;
|
|
18
18
|
transactionId?: string | null | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
9
9
|
platformId: z.ZodString;
|
|
10
10
|
platformUrl: z.ZodString;
|
|
11
11
|
platformPrice: z.ZodNumber;
|
|
12
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
12
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
13
13
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
15
15
|
accountId: z.ZodString;
|
|
@@ -30,7 +30,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
30
30
|
accountId: string;
|
|
31
31
|
}>>>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
33
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
34
34
|
id: string;
|
|
35
35
|
itemId: string | number;
|
|
36
36
|
accountId: string;
|
|
@@ -45,7 +45,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
45
45
|
accountId: string;
|
|
46
46
|
} | null | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
48
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
49
49
|
id: string;
|
|
50
50
|
itemId: string | number;
|
|
51
51
|
accountId: string;
|
|
@@ -64,7 +64,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
64
64
|
orderId: string;
|
|
65
65
|
itemOnPlatformId: string;
|
|
66
66
|
itemOnPlatform?: {
|
|
67
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
67
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
68
68
|
id: string;
|
|
69
69
|
itemId: string | number;
|
|
70
70
|
accountId: string;
|
|
@@ -83,7 +83,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
83
83
|
orderId: string;
|
|
84
84
|
itemOnPlatformId: string;
|
|
85
85
|
itemOnPlatform?: {
|
|
86
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
86
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
87
87
|
id: string;
|
|
88
88
|
itemId: string | number;
|
|
89
89
|
accountId: string;
|
|
@@ -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_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>;
|
|
7
|
+
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "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_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>;
|
|
8
8
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
price: z.ZodNumber;
|
|
@@ -19,7 +19,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
19
19
|
platformId: z.ZodString;
|
|
20
20
|
platformUrl: z.ZodString;
|
|
21
21
|
platformPrice: z.ZodNumber;
|
|
22
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
22
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
23
23
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
24
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
25
25
|
accountId: z.ZodString;
|
|
@@ -40,7 +40,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
40
40
|
accountId: string;
|
|
41
41
|
}>>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
43
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
44
44
|
id: string;
|
|
45
45
|
itemId: string | number;
|
|
46
46
|
accountId: string;
|
|
@@ -55,7 +55,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
55
55
|
accountId: string;
|
|
56
56
|
} | null | undefined;
|
|
57
57
|
}, {
|
|
58
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
58
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
59
59
|
id: string;
|
|
60
60
|
itemId: string | number;
|
|
61
61
|
accountId: string;
|
|
@@ -74,7 +74,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
74
74
|
orderId: string;
|
|
75
75
|
itemOnPlatformId: string;
|
|
76
76
|
itemOnPlatform?: {
|
|
77
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
77
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
78
78
|
id: string;
|
|
79
79
|
itemId: string | number;
|
|
80
80
|
accountId: string;
|
|
@@ -93,7 +93,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
93
93
|
orderId: string;
|
|
94
94
|
itemOnPlatformId: string;
|
|
95
95
|
itemOnPlatform?: {
|
|
96
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
96
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
97
97
|
id: string;
|
|
98
98
|
itemId: string | number;
|
|
99
99
|
accountId: string;
|
|
@@ -192,7 +192,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
192
192
|
} | null | undefined;
|
|
193
193
|
}>, "many">>>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
195
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
196
196
|
id: string;
|
|
197
197
|
date: Date;
|
|
198
198
|
price: number;
|
|
@@ -202,7 +202,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
202
202
|
orderId: string;
|
|
203
203
|
itemOnPlatformId: string;
|
|
204
204
|
itemOnPlatform?: {
|
|
205
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
205
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
206
206
|
id: string;
|
|
207
207
|
itemId: string | number;
|
|
208
208
|
accountId: string;
|
|
@@ -219,7 +219,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
219
219
|
} | null | undefined;
|
|
220
220
|
}[] | null | undefined;
|
|
221
221
|
transactionId?: string | null | undefined;
|
|
222
|
-
conversationId?: string | null | undefined;
|
|
223
222
|
labels?: {
|
|
224
223
|
id: string;
|
|
225
224
|
fileId: string;
|
|
@@ -240,8 +239,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
240
239
|
createdAt: Date;
|
|
241
240
|
} | null | undefined;
|
|
242
241
|
}[] | null | undefined;
|
|
242
|
+
conversationId?: string | null | undefined;
|
|
243
243
|
}, {
|
|
244
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
244
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
245
245
|
id: string;
|
|
246
246
|
date: Date;
|
|
247
247
|
price: number;
|
|
@@ -251,7 +251,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
251
251
|
orderId: string;
|
|
252
252
|
itemOnPlatformId: string;
|
|
253
253
|
itemOnPlatform?: {
|
|
254
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
254
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
255
255
|
id: string;
|
|
256
256
|
itemId: string | number;
|
|
257
257
|
accountId: string;
|
|
@@ -268,7 +268,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
268
268
|
} | null | undefined;
|
|
269
269
|
}[] | null | undefined;
|
|
270
270
|
transactionId?: string | null | undefined;
|
|
271
|
-
conversationId?: string | null | undefined;
|
|
272
271
|
labels?: {
|
|
273
272
|
id: string;
|
|
274
273
|
fileId: string;
|
|
@@ -289,6 +288,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
289
288
|
createdAt: Date;
|
|
290
289
|
} | null | undefined;
|
|
291
290
|
}[] | null | undefined;
|
|
291
|
+
conversationId?: string | null | undefined;
|
|
292
292
|
}>;
|
|
293
293
|
items: z.ZodArray<z.ZodObject<{
|
|
294
294
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -528,7 +528,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
528
528
|
platformId: z.ZodString;
|
|
529
529
|
platformUrl: z.ZodString;
|
|
530
530
|
platformPrice: z.ZodNumber;
|
|
531
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
531
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
532
532
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
533
533
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
534
534
|
accountId: z.ZodString;
|
|
@@ -549,7 +549,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
549
549
|
accountId: string;
|
|
550
550
|
}>>>;
|
|
551
551
|
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
552
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
553
553
|
id: string;
|
|
554
554
|
itemId: string | number;
|
|
555
555
|
accountId: string;
|
|
@@ -564,7 +564,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
564
564
|
accountId: string;
|
|
565
565
|
} | null | undefined;
|
|
566
566
|
}, {
|
|
567
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
567
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
568
568
|
id: string;
|
|
569
569
|
itemId: string | number;
|
|
570
570
|
accountId: string;
|
|
@@ -675,7 +675,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
675
675
|
data?: string | null | undefined;
|
|
676
676
|
} | null | undefined;
|
|
677
677
|
platforms?: {
|
|
678
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
678
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
679
679
|
id: string;
|
|
680
680
|
itemId: string | number;
|
|
681
681
|
accountId: string;
|
|
@@ -784,7 +784,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
784
784
|
data?: string | null | undefined;
|
|
785
785
|
} | null | undefined;
|
|
786
786
|
platforms?: {
|
|
787
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
787
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
788
788
|
id: string;
|
|
789
789
|
itemId: string | number;
|
|
790
790
|
accountId: string;
|
|
@@ -895,7 +895,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
895
895
|
data?: string | null | undefined;
|
|
896
896
|
} | null | undefined;
|
|
897
897
|
platforms?: {
|
|
898
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
898
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
899
899
|
id: string;
|
|
900
900
|
itemId: string | number;
|
|
901
901
|
accountId: string;
|
|
@@ -912,7 +912,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
912
912
|
}[] | null | undefined;
|
|
913
913
|
}[];
|
|
914
914
|
order: {
|
|
915
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
915
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
916
916
|
id: string;
|
|
917
917
|
date: Date;
|
|
918
918
|
price: number;
|
|
@@ -922,7 +922,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
922
922
|
orderId: string;
|
|
923
923
|
itemOnPlatformId: string;
|
|
924
924
|
itemOnPlatform?: {
|
|
925
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
925
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
926
926
|
id: string;
|
|
927
927
|
itemId: string | number;
|
|
928
928
|
accountId: string;
|
|
@@ -939,7 +939,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
939
939
|
} | null | undefined;
|
|
940
940
|
}[] | null | undefined;
|
|
941
941
|
transactionId?: string | null | undefined;
|
|
942
|
-
conversationId?: string | null | undefined;
|
|
943
942
|
labels?: {
|
|
944
943
|
id: string;
|
|
945
944
|
fileId: string;
|
|
@@ -960,6 +959,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
960
959
|
createdAt: Date;
|
|
961
960
|
} | null | undefined;
|
|
962
961
|
}[] | null | undefined;
|
|
962
|
+
conversationId?: string | null | undefined;
|
|
963
963
|
};
|
|
964
964
|
}, {
|
|
965
965
|
items: {
|
|
@@ -1056,7 +1056,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1056
1056
|
data?: string | null | undefined;
|
|
1057
1057
|
} | null | undefined;
|
|
1058
1058
|
platforms?: {
|
|
1059
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
1059
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
1060
1060
|
id: string;
|
|
1061
1061
|
itemId: string | number;
|
|
1062
1062
|
accountId: string;
|
|
@@ -1073,7 +1073,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1073
1073
|
}[] | null | undefined;
|
|
1074
1074
|
}[];
|
|
1075
1075
|
order: {
|
|
1076
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
1076
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "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_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
1077
1077
|
id: string;
|
|
1078
1078
|
date: Date;
|
|
1079
1079
|
price: number;
|
|
@@ -1083,7 +1083,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1083
1083
|
orderId: string;
|
|
1084
1084
|
itemOnPlatformId: string;
|
|
1085
1085
|
itemOnPlatform?: {
|
|
1086
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
1086
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
1087
1087
|
id: string;
|
|
1088
1088
|
itemId: string | number;
|
|
1089
1089
|
accountId: string;
|
|
@@ -1100,7 +1100,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1100
1100
|
} | null | undefined;
|
|
1101
1101
|
}[] | null | undefined;
|
|
1102
1102
|
transactionId?: string | null | undefined;
|
|
1103
|
-
conversationId?: string | null | undefined;
|
|
1104
1103
|
labels?: {
|
|
1105
1104
|
id: string;
|
|
1106
1105
|
fileId: string;
|
|
@@ -1121,6 +1120,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1121
1120
|
createdAt: Date;
|
|
1122
1121
|
} | null | undefined;
|
|
1123
1122
|
}[] | null | undefined;
|
|
1123
|
+
conversationId?: string | null | undefined;
|
|
1124
1124
|
};
|
|
1125
1125
|
}>;
|
|
1126
1126
|
export type OrderWithItems = z.infer<typeof OrderWithItemsSchema>;
|
package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreatePlatformPreferencePayloadSchema: z.ZodObject<{
|
|
3
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<["VINTED", "SHOPIFY"]>>>;
|
|
5
|
+
doRemoveBackground: z.ZodBoolean;
|
|
6
|
+
doSmartCrop: z.ZodBoolean;
|
|
7
|
+
doChangeBackground: z.ZodBoolean;
|
|
8
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
doRemoveBackground: boolean;
|
|
14
|
+
doSmartCrop: boolean;
|
|
15
|
+
doChangeBackground: boolean;
|
|
16
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
17
|
+
accountId?: string | null | undefined;
|
|
18
|
+
targetWidth?: number | null | undefined;
|
|
19
|
+
targetHeight?: number | null | undefined;
|
|
20
|
+
newBackgroundColor?: string | null | undefined;
|
|
21
|
+
newBackgroundUrl?: string | null | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
doRemoveBackground: boolean;
|
|
24
|
+
doSmartCrop: boolean;
|
|
25
|
+
doChangeBackground: boolean;
|
|
26
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
27
|
+
accountId?: string | null | undefined;
|
|
28
|
+
targetWidth?: number | null | undefined;
|
|
29
|
+
targetHeight?: number | null | undefined;
|
|
30
|
+
newBackgroundColor?: string | null | undefined;
|
|
31
|
+
newBackgroundUrl?: string | null | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type CreatePlatformPreferencePayload = z.infer<typeof CreatePlatformPreferencePayloadSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePlatformPreferencePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
exports.CreatePlatformPreferencePayloadSchema = zod_1.z.object({
|
|
7
|
+
accountId: zod_1.z.string().uuid().nullish(),
|
|
8
|
+
platform: controlresell_connector_1.AccountPlatformSchema.nullish(),
|
|
9
|
+
doRemoveBackground: zod_1.z.boolean(),
|
|
10
|
+
doSmartCrop: zod_1.z.boolean(),
|
|
11
|
+
doChangeBackground: zod_1.z.boolean(),
|
|
12
|
+
targetWidth: zod_1.z.number().int().nullish(),
|
|
13
|
+
targetHeight: zod_1.z.number().int().nullish(),
|
|
14
|
+
newBackgroundColor: zod_1.z.string().nullish(),
|
|
15
|
+
newBackgroundUrl: zod_1.z.string().nullish()
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {AccountPlatformSchema} from "controlresell-connector"
|
|
3
|
+
|
|
4
|
+
export const CreatePlatformPreferencePayloadSchema = z.object({
|
|
5
|
+
accountId: z.string().uuid().nullish(),
|
|
6
|
+
platform: AccountPlatformSchema.nullish(),
|
|
7
|
+
doRemoveBackground: z.boolean(),
|
|
8
|
+
doSmartCrop: z.boolean(),
|
|
9
|
+
doChangeBackground: z.boolean(),
|
|
10
|
+
targetWidth: z.number().int().nullish(),
|
|
11
|
+
targetHeight: z.number().int().nullish(),
|
|
12
|
+
newBackgroundColor: z.string().nullish(),
|
|
13
|
+
newBackgroundUrl: z.string().nullish()
|
|
14
|
+
})
|
|
15
|
+
export type CreatePlatformPreferencePayload = z.infer<typeof CreatePlatformPreferencePayloadSchema>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PlatformPreferenceSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<["VINTED", "SHOPIFY"]>>>;
|
|
6
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7
|
+
doRemoveBackground: z.ZodBoolean;
|
|
8
|
+
doSmartCrop: z.ZodBoolean;
|
|
9
|
+
doChangeBackground: z.ZodBoolean;
|
|
10
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
userId: string | number;
|
|
17
|
+
doRemoveBackground: boolean;
|
|
18
|
+
doSmartCrop: boolean;
|
|
19
|
+
doChangeBackground: boolean;
|
|
20
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
21
|
+
accountId?: string | null | undefined;
|
|
22
|
+
targetWidth?: number | null | undefined;
|
|
23
|
+
targetHeight?: number | null | undefined;
|
|
24
|
+
newBackgroundColor?: string | null | undefined;
|
|
25
|
+
newBackgroundUrl?: string | null | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
id: string;
|
|
28
|
+
userId: string | number;
|
|
29
|
+
doRemoveBackground: boolean;
|
|
30
|
+
doSmartCrop: boolean;
|
|
31
|
+
doChangeBackground: boolean;
|
|
32
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
33
|
+
accountId?: string | null | undefined;
|
|
34
|
+
targetWidth?: number | null | undefined;
|
|
35
|
+
targetHeight?: number | null | undefined;
|
|
36
|
+
newBackgroundColor?: string | null | undefined;
|
|
37
|
+
newBackgroundUrl?: string | null | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
export type PlatformPreference = z.infer<typeof PlatformPreferenceSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformPreferenceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zodable_idschema_1 = require("zodable-idschema");
|
|
6
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
7
|
+
exports.PlatformPreferenceSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
accountId: zod_1.z.string().uuid().nullish(),
|
|
10
|
+
platform: controlresell_connector_1.AccountPlatformSchema.nullish(),
|
|
11
|
+
userId: zodable_idschema_1.IdSchema,
|
|
12
|
+
doRemoveBackground: zod_1.z.boolean(),
|
|
13
|
+
doSmartCrop: zod_1.z.boolean(),
|
|
14
|
+
doChangeBackground: zod_1.z.boolean(),
|
|
15
|
+
targetWidth: zod_1.z.number().int().nullish(),
|
|
16
|
+
targetHeight: zod_1.z.number().int().nullish(),
|
|
17
|
+
newBackgroundColor: zod_1.z.string().nullish(),
|
|
18
|
+
newBackgroundUrl: zod_1.z.string().nullish()
|
|
19
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {IdSchema} from "zodable-idschema"
|
|
3
|
+
import {AccountPlatformSchema} from "controlresell-connector"
|
|
4
|
+
|
|
5
|
+
export const PlatformPreferenceSchema = z.object({
|
|
6
|
+
id: z.string().uuid(),
|
|
7
|
+
accountId: z.string().uuid().nullish(),
|
|
8
|
+
platform: AccountPlatformSchema.nullish(),
|
|
9
|
+
userId: IdSchema,
|
|
10
|
+
doRemoveBackground: z.boolean(),
|
|
11
|
+
doSmartCrop: z.boolean(),
|
|
12
|
+
doChangeBackground: z.boolean(),
|
|
13
|
+
targetWidth: z.number().int().nullish(),
|
|
14
|
+
targetHeight: z.number().int().nullish(),
|
|
15
|
+
newBackgroundColor: z.string().nullish(),
|
|
16
|
+
newBackgroundUrl: z.string().nullish()
|
|
17
|
+
})
|
|
18
|
+
export type PlatformPreference = z.infer<typeof PlatformPreferenceSchema>
|