controlresell 2.1.6 → 2.1.8
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/application/RabbitMQRoutingKey.d.ts +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
- package/src/com/controlresell/models/items/CreatedItems.d.ts +44 -44
- package/src/com/controlresell/models/items/Item.d.ts +22 -22
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +6 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.js +4 -1
- package/src/com/controlresell/models/items/ItemFiltersContext.ts +4 -1
- package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +44 -44
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +44 -44
- package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.d.ts +12 -0
- package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.js +9 -0
- package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.ts +8 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +189 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.js +10 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.ts +9 -0
- package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.js +1 -0
- package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.ts +1 -0
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +29 -29
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +820 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.js +10 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +63 -63
- 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/OrderOnPlatformUpdateRequest.d.ts +82 -0
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.js +10 -0
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.ts +9 -0
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +49 -49
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +44 -44
- package/src/index.d.ts +4 -0
- package/src/index.js +4 -0
- package/src/index.ts +4 -0
package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConversationOnPlatformUpdateRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
const UserOnPlatform_1 = require("../../users/platforms/UserOnPlatform");
|
|
7
|
+
exports.ConversationOnPlatformUpdateRequestSchema = zod_1.z.object({
|
|
8
|
+
conversation: controlresell_connector_1.JobConversationSchema,
|
|
9
|
+
account: UserOnPlatform_1.UserOnPlatformSchema
|
|
10
|
+
});
|
package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {JobConversationSchema} from "controlresell-connector"
|
|
3
|
+
import {UserOnPlatformSchema} from "../../users/platforms/UserOnPlatform"
|
|
4
|
+
|
|
5
|
+
export const ConversationOnPlatformUpdateRequestSchema = z.object({
|
|
6
|
+
conversation: JobConversationSchema,
|
|
7
|
+
account: UserOnPlatformSchema
|
|
8
|
+
})
|
|
9
|
+
export type ConversationOnPlatformUpdateRequest = z.infer<typeof ConversationOnPlatformUpdateRequestSchema>
|
|
@@ -237,6 +237,23 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
237
237
|
platform: "VINTED" | "SHOPIFY";
|
|
238
238
|
accountId: string;
|
|
239
239
|
} | null | undefined;
|
|
240
|
+
users?: {
|
|
241
|
+
id: string;
|
|
242
|
+
login: string;
|
|
243
|
+
conversationId: string;
|
|
244
|
+
platformUserId: string;
|
|
245
|
+
reviewCount?: number | null | undefined;
|
|
246
|
+
reviewValue?: number | null | undefined;
|
|
247
|
+
location?: string | null | undefined;
|
|
248
|
+
photoFileId?: string | null | undefined;
|
|
249
|
+
photoFile?: {
|
|
250
|
+
path: string;
|
|
251
|
+
id: string;
|
|
252
|
+
userId: string | number;
|
|
253
|
+
signedUrl: string;
|
|
254
|
+
createdAt: Date;
|
|
255
|
+
} | null | undefined;
|
|
256
|
+
}[] | null | undefined;
|
|
240
257
|
lastMessage?: {
|
|
241
258
|
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
242
259
|
id: string;
|
|
@@ -267,6 +284,18 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
267
284
|
conversationUserId?: string | null | undefined;
|
|
268
285
|
platformMessageId?: string | null | undefined;
|
|
269
286
|
} | null | undefined;
|
|
287
|
+
}, {
|
|
288
|
+
id: string;
|
|
289
|
+
updatedAt: Date;
|
|
290
|
+
accountId: string;
|
|
291
|
+
platformConversationId: string;
|
|
292
|
+
account?: {
|
|
293
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
294
|
+
userId: string | number;
|
|
295
|
+
name: string;
|
|
296
|
+
platform: "VINTED" | "SHOPIFY";
|
|
297
|
+
accountId: string;
|
|
298
|
+
} | null | undefined;
|
|
270
299
|
users?: {
|
|
271
300
|
id: string;
|
|
272
301
|
login: string;
|
|
@@ -284,18 +313,6 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
284
313
|
createdAt: Date;
|
|
285
314
|
} | null | undefined;
|
|
286
315
|
}[] | null | undefined;
|
|
287
|
-
}, {
|
|
288
|
-
id: string;
|
|
289
|
-
updatedAt: Date;
|
|
290
|
-
accountId: string;
|
|
291
|
-
platformConversationId: string;
|
|
292
|
-
account?: {
|
|
293
|
-
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
294
|
-
userId: string | number;
|
|
295
|
-
name: string;
|
|
296
|
-
platform: "VINTED" | "SHOPIFY";
|
|
297
|
-
accountId: string;
|
|
298
|
-
} | null | undefined;
|
|
299
316
|
lastMessage?: {
|
|
300
317
|
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
301
318
|
id: string;
|
|
@@ -326,23 +343,6 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
326
343
|
conversationUserId?: string | null | undefined;
|
|
327
344
|
platformMessageId?: string | null | undefined;
|
|
328
345
|
} | null | undefined;
|
|
329
|
-
users?: {
|
|
330
|
-
id: string;
|
|
331
|
-
login: string;
|
|
332
|
-
conversationId: string;
|
|
333
|
-
platformUserId: string;
|
|
334
|
-
reviewCount?: number | null | undefined;
|
|
335
|
-
reviewValue?: number | null | undefined;
|
|
336
|
-
location?: string | null | undefined;
|
|
337
|
-
photoFileId?: string | null | undefined;
|
|
338
|
-
photoFile?: {
|
|
339
|
-
path: string;
|
|
340
|
-
id: string;
|
|
341
|
-
userId: string | number;
|
|
342
|
-
signedUrl: string;
|
|
343
|
-
createdAt: Date;
|
|
344
|
-
} | null | undefined;
|
|
345
|
-
}[] | null | undefined;
|
|
346
346
|
}>, "many">;
|
|
347
347
|
currentPage: z.ZodNumber;
|
|
348
348
|
totalPages: z.ZodNumber;
|
|
@@ -360,6 +360,23 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
360
360
|
platform: "VINTED" | "SHOPIFY";
|
|
361
361
|
accountId: string;
|
|
362
362
|
} | null | undefined;
|
|
363
|
+
users?: {
|
|
364
|
+
id: string;
|
|
365
|
+
login: string;
|
|
366
|
+
conversationId: string;
|
|
367
|
+
platformUserId: string;
|
|
368
|
+
reviewCount?: number | null | undefined;
|
|
369
|
+
reviewValue?: number | null | undefined;
|
|
370
|
+
location?: string | null | undefined;
|
|
371
|
+
photoFileId?: string | null | undefined;
|
|
372
|
+
photoFile?: {
|
|
373
|
+
path: string;
|
|
374
|
+
id: string;
|
|
375
|
+
userId: string | number;
|
|
376
|
+
signedUrl: string;
|
|
377
|
+
createdAt: Date;
|
|
378
|
+
} | null | undefined;
|
|
379
|
+
}[] | null | undefined;
|
|
363
380
|
lastMessage?: {
|
|
364
381
|
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
365
382
|
id: string;
|
|
@@ -390,23 +407,6 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
390
407
|
conversationUserId?: string | null | undefined;
|
|
391
408
|
platformMessageId?: string | null | undefined;
|
|
392
409
|
} | null | undefined;
|
|
393
|
-
users?: {
|
|
394
|
-
id: string;
|
|
395
|
-
login: string;
|
|
396
|
-
conversationId: string;
|
|
397
|
-
platformUserId: string;
|
|
398
|
-
reviewCount?: number | null | undefined;
|
|
399
|
-
reviewValue?: number | null | undefined;
|
|
400
|
-
location?: string | null | undefined;
|
|
401
|
-
photoFileId?: string | null | undefined;
|
|
402
|
-
photoFile?: {
|
|
403
|
-
path: string;
|
|
404
|
-
id: string;
|
|
405
|
-
userId: string | number;
|
|
406
|
-
signedUrl: string;
|
|
407
|
-
createdAt: Date;
|
|
408
|
-
} | null | undefined;
|
|
409
|
-
}[] | null | undefined;
|
|
410
410
|
}[];
|
|
411
411
|
currentPage: number;
|
|
412
412
|
totalPages: number;
|
|
@@ -425,6 +425,23 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
425
425
|
platform: "VINTED" | "SHOPIFY";
|
|
426
426
|
accountId: string;
|
|
427
427
|
} | null | undefined;
|
|
428
|
+
users?: {
|
|
429
|
+
id: string;
|
|
430
|
+
login: string;
|
|
431
|
+
conversationId: string;
|
|
432
|
+
platformUserId: string;
|
|
433
|
+
reviewCount?: number | null | undefined;
|
|
434
|
+
reviewValue?: number | null | undefined;
|
|
435
|
+
location?: string | null | undefined;
|
|
436
|
+
photoFileId?: string | null | undefined;
|
|
437
|
+
photoFile?: {
|
|
438
|
+
path: string;
|
|
439
|
+
id: string;
|
|
440
|
+
userId: string | number;
|
|
441
|
+
signedUrl: string;
|
|
442
|
+
createdAt: Date;
|
|
443
|
+
} | null | undefined;
|
|
444
|
+
}[] | null | undefined;
|
|
428
445
|
lastMessage?: {
|
|
429
446
|
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
430
447
|
id: string;
|
|
@@ -455,23 +472,6 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
455
472
|
conversationUserId?: string | null | undefined;
|
|
456
473
|
platformMessageId?: string | null | undefined;
|
|
457
474
|
} | null | undefined;
|
|
458
|
-
users?: {
|
|
459
|
-
id: string;
|
|
460
|
-
login: string;
|
|
461
|
-
conversationId: string;
|
|
462
|
-
platformUserId: string;
|
|
463
|
-
reviewCount?: number | null | undefined;
|
|
464
|
-
reviewValue?: number | null | undefined;
|
|
465
|
-
location?: string | null | undefined;
|
|
466
|
-
photoFileId?: string | null | undefined;
|
|
467
|
-
photoFile?: {
|
|
468
|
-
path: string;
|
|
469
|
-
id: string;
|
|
470
|
-
userId: string | number;
|
|
471
|
-
signedUrl: string;
|
|
472
|
-
createdAt: Date;
|
|
473
|
-
} | null | undefined;
|
|
474
|
-
}[] | null | undefined;
|
|
475
475
|
}[];
|
|
476
476
|
currentPage: number;
|
|
477
477
|
totalPages: number;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreateOrderPayloadSchema: z.ZodObject<{
|
|
3
3
|
platformOrderId: z.ZodString;
|
|
4
|
-
status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
|
|
4
|
+
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", "UNKNOWN"]>;
|
|
5
5
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
price: z.ZodNumber;
|
|
8
8
|
date: z.ZodDate;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
|
|
10
|
+
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" | "UNKNOWN";
|
|
11
11
|
date: Date;
|
|
12
12
|
price: number;
|
|
13
13
|
platformOrderId: string;
|
|
14
14
|
transactionId?: string | null | undefined;
|
|
15
15
|
conversationId?: string | null | undefined;
|
|
16
16
|
}, {
|
|
17
|
-
status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
|
|
17
|
+
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" | "UNKNOWN";
|
|
18
18
|
date: Date;
|
|
19
19
|
price: number;
|
|
20
20
|
platformOrderId: string;
|
|
@@ -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", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "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", "UNKNOWN"]>;
|
|
7
7
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
price: z.ZodNumber;
|
|
@@ -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" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "UNKNOWN";
|
|
195
195
|
id: string;
|
|
196
196
|
date: Date;
|
|
197
197
|
price: number;
|
|
@@ -240,7 +240,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
240
240
|
} | null | undefined;
|
|
241
241
|
}[] | null | undefined;
|
|
242
242
|
}, {
|
|
243
|
-
status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "UNKNOWN";
|
|
244
244
|
id: string;
|
|
245
245
|
date: Date;
|
|
246
246
|
price: number;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const OrderOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
3
|
+
order: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
price: z.ZodNumber;
|
|
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", "UNKNOWN"]>;
|
|
10
|
+
date: z.ZodDate;
|
|
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" | "UNKNOWN";
|
|
13
|
+
id: string;
|
|
14
|
+
date: Date;
|
|
15
|
+
price: number;
|
|
16
|
+
currencyCode: string;
|
|
17
|
+
transactionId?: string | null | undefined;
|
|
18
|
+
conversationId?: string | null | undefined;
|
|
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" | "UNKNOWN";
|
|
21
|
+
id: string;
|
|
22
|
+
date: Date;
|
|
23
|
+
price: number;
|
|
24
|
+
currencyCode: string;
|
|
25
|
+
transactionId?: string | null | undefined;
|
|
26
|
+
conversationId?: string | null | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
account: z.ZodObject<{
|
|
29
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
30
|
+
accountId: z.ZodString;
|
|
31
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
36
|
+
userId: string | number;
|
|
37
|
+
name: string;
|
|
38
|
+
platform: "VINTED" | "SHOPIFY";
|
|
39
|
+
accountId: string;
|
|
40
|
+
}, {
|
|
41
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
42
|
+
userId: string | number;
|
|
43
|
+
name: string;
|
|
44
|
+
platform: "VINTED" | "SHOPIFY";
|
|
45
|
+
accountId: string;
|
|
46
|
+
}>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
account: {
|
|
49
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
50
|
+
userId: string | number;
|
|
51
|
+
name: string;
|
|
52
|
+
platform: "VINTED" | "SHOPIFY";
|
|
53
|
+
accountId: string;
|
|
54
|
+
};
|
|
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" | "UNKNOWN";
|
|
57
|
+
id: string;
|
|
58
|
+
date: Date;
|
|
59
|
+
price: number;
|
|
60
|
+
currencyCode: string;
|
|
61
|
+
transactionId?: string | null | undefined;
|
|
62
|
+
conversationId?: string | null | undefined;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
account: {
|
|
66
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
67
|
+
userId: string | number;
|
|
68
|
+
name: string;
|
|
69
|
+
platform: "VINTED" | "SHOPIFY";
|
|
70
|
+
accountId: string;
|
|
71
|
+
};
|
|
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" | "UNKNOWN";
|
|
74
|
+
id: string;
|
|
75
|
+
date: Date;
|
|
76
|
+
price: number;
|
|
77
|
+
currencyCode: string;
|
|
78
|
+
transactionId?: string | null | undefined;
|
|
79
|
+
conversationId?: string | null | undefined;
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
export type OrderOnPlatformUpdateRequest = z.infer<typeof OrderOnPlatformUpdateRequestSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderOnPlatformUpdateRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
const UserOnPlatform_1 = require("../../users/platforms/UserOnPlatform");
|
|
7
|
+
exports.OrderOnPlatformUpdateRequestSchema = zod_1.z.object({
|
|
8
|
+
order: controlresell_connector_1.JobOrderSchema,
|
|
9
|
+
account: UserOnPlatform_1.UserOnPlatformSchema
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {JobOrderSchema} from "controlresell-connector"
|
|
3
|
+
import {UserOnPlatformSchema} from "../../users/platforms/UserOnPlatform"
|
|
4
|
+
|
|
5
|
+
export const OrderOnPlatformUpdateRequestSchema = z.object({
|
|
6
|
+
order: JobOrderSchema,
|
|
7
|
+
account: UserOnPlatformSchema
|
|
8
|
+
})
|
|
9
|
+
export type OrderOnPlatformUpdateRequest = z.infer<typeof OrderOnPlatformUpdateRequestSchema>
|
|
@@ -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", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "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", "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" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "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" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "UNKNOWN" | null | undefined;
|
|
16
16
|
date?: Date | null | undefined;
|
|
17
17
|
price?: number | null | undefined;
|
|
18
18
|
transactionId?: string | null | undefined;
|
|
@@ -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", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "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", "UNKNOWN"]>;
|
|
8
8
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
price: z.ZodNumber;
|
|
@@ -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" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "UNKNOWN";
|
|
196
196
|
id: string;
|
|
197
197
|
date: Date;
|
|
198
198
|
price: number;
|
|
@@ -241,7 +241,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
241
241
|
} | null | undefined;
|
|
242
242
|
}[] | null | undefined;
|
|
243
243
|
}, {
|
|
244
|
-
status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "UNKNOWN";
|
|
245
245
|
id: string;
|
|
246
246
|
date: Date;
|
|
247
247
|
price: number;
|
|
@@ -594,6 +594,17 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
594
594
|
colorIds?: number[] | null | undefined;
|
|
595
595
|
packageSizeId?: number | null | undefined;
|
|
596
596
|
sizeId?: number | null | undefined;
|
|
597
|
+
labels?: {
|
|
598
|
+
itemId: string | number;
|
|
599
|
+
labelId: string | number;
|
|
600
|
+
label?: {
|
|
601
|
+
id: string | number;
|
|
602
|
+
createdAt: Date;
|
|
603
|
+
name: string;
|
|
604
|
+
isUserLabel: boolean;
|
|
605
|
+
userId?: string | number | null | undefined;
|
|
606
|
+
} | null | undefined;
|
|
607
|
+
}[] | null | undefined;
|
|
597
608
|
files?: {
|
|
598
609
|
fileId: string;
|
|
599
610
|
itemId: string | number;
|
|
@@ -633,17 +644,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
633
644
|
parentFeeId?: string | number | null | undefined;
|
|
634
645
|
}[] | null | undefined;
|
|
635
646
|
feesSum?: number | null | undefined;
|
|
636
|
-
labels?: {
|
|
637
|
-
itemId: string | number;
|
|
638
|
-
labelId: string | number;
|
|
639
|
-
label?: {
|
|
640
|
-
id: string | number;
|
|
641
|
-
createdAt: Date;
|
|
642
|
-
name: string;
|
|
643
|
-
isUserLabel: boolean;
|
|
644
|
-
userId?: string | number | null | undefined;
|
|
645
|
-
} | null | undefined;
|
|
646
|
-
}[] | null | undefined;
|
|
647
647
|
customer?: {
|
|
648
648
|
email: string;
|
|
649
649
|
id: string | number;
|
|
@@ -703,6 +703,17 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
703
703
|
colorIds?: number[] | null | undefined;
|
|
704
704
|
packageSizeId?: number | null | undefined;
|
|
705
705
|
sizeId?: number | null | undefined;
|
|
706
|
+
labels?: {
|
|
707
|
+
itemId: string | number;
|
|
708
|
+
labelId: string | number;
|
|
709
|
+
label?: {
|
|
710
|
+
id: string | number;
|
|
711
|
+
createdAt: Date;
|
|
712
|
+
name: string;
|
|
713
|
+
isUserLabel: boolean;
|
|
714
|
+
userId?: string | number | null | undefined;
|
|
715
|
+
} | null | undefined;
|
|
716
|
+
}[] | null | undefined;
|
|
706
717
|
files?: {
|
|
707
718
|
fileId: string;
|
|
708
719
|
itemId: string | number;
|
|
@@ -742,17 +753,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
742
753
|
parentFeeId?: string | number | null | undefined;
|
|
743
754
|
}[] | null | undefined;
|
|
744
755
|
feesSum?: number | null | undefined;
|
|
745
|
-
labels?: {
|
|
746
|
-
itemId: string | number;
|
|
747
|
-
labelId: string | number;
|
|
748
|
-
label?: {
|
|
749
|
-
id: string | number;
|
|
750
|
-
createdAt: Date;
|
|
751
|
-
name: string;
|
|
752
|
-
isUserLabel: boolean;
|
|
753
|
-
userId?: string | number | null | undefined;
|
|
754
|
-
} | null | undefined;
|
|
755
|
-
}[] | null | undefined;
|
|
756
756
|
customer?: {
|
|
757
757
|
email: string;
|
|
758
758
|
id: string | number;
|
|
@@ -814,6 +814,17 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
814
814
|
colorIds?: number[] | null | undefined;
|
|
815
815
|
packageSizeId?: number | null | undefined;
|
|
816
816
|
sizeId?: number | null | undefined;
|
|
817
|
+
labels?: {
|
|
818
|
+
itemId: string | number;
|
|
819
|
+
labelId: string | number;
|
|
820
|
+
label?: {
|
|
821
|
+
id: string | number;
|
|
822
|
+
createdAt: Date;
|
|
823
|
+
name: string;
|
|
824
|
+
isUserLabel: boolean;
|
|
825
|
+
userId?: string | number | null | undefined;
|
|
826
|
+
} | null | undefined;
|
|
827
|
+
}[] | null | undefined;
|
|
817
828
|
files?: {
|
|
818
829
|
fileId: string;
|
|
819
830
|
itemId: string | number;
|
|
@@ -853,17 +864,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
853
864
|
parentFeeId?: string | number | null | undefined;
|
|
854
865
|
}[] | null | undefined;
|
|
855
866
|
feesSum?: number | null | undefined;
|
|
856
|
-
labels?: {
|
|
857
|
-
itemId: string | number;
|
|
858
|
-
labelId: string | number;
|
|
859
|
-
label?: {
|
|
860
|
-
id: string | number;
|
|
861
|
-
createdAt: Date;
|
|
862
|
-
name: string;
|
|
863
|
-
isUserLabel: boolean;
|
|
864
|
-
userId?: string | number | null | undefined;
|
|
865
|
-
} | null | undefined;
|
|
866
|
-
}[] | null | undefined;
|
|
867
867
|
customer?: {
|
|
868
868
|
email: string;
|
|
869
869
|
id: string | number;
|
|
@@ -912,7 +912,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
912
912
|
}[] | null | undefined;
|
|
913
913
|
}[];
|
|
914
914
|
order: {
|
|
915
|
-
status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "UNKNOWN";
|
|
916
916
|
id: string;
|
|
917
917
|
date: Date;
|
|
918
918
|
price: number;
|
|
@@ -975,6 +975,17 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
975
975
|
colorIds?: number[] | null | undefined;
|
|
976
976
|
packageSizeId?: number | null | undefined;
|
|
977
977
|
sizeId?: number | null | undefined;
|
|
978
|
+
labels?: {
|
|
979
|
+
itemId: string | number;
|
|
980
|
+
labelId: string | number;
|
|
981
|
+
label?: {
|
|
982
|
+
id: string | number;
|
|
983
|
+
createdAt: Date;
|
|
984
|
+
name: string;
|
|
985
|
+
isUserLabel: boolean;
|
|
986
|
+
userId?: string | number | null | undefined;
|
|
987
|
+
} | null | undefined;
|
|
988
|
+
}[] | null | undefined;
|
|
978
989
|
files?: {
|
|
979
990
|
fileId: string;
|
|
980
991
|
itemId: string | number;
|
|
@@ -1014,17 +1025,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1014
1025
|
parentFeeId?: string | number | null | undefined;
|
|
1015
1026
|
}[] | null | undefined;
|
|
1016
1027
|
feesSum?: number | null | undefined;
|
|
1017
|
-
labels?: {
|
|
1018
|
-
itemId: string | number;
|
|
1019
|
-
labelId: string | number;
|
|
1020
|
-
label?: {
|
|
1021
|
-
id: string | number;
|
|
1022
|
-
createdAt: Date;
|
|
1023
|
-
name: string;
|
|
1024
|
-
isUserLabel: boolean;
|
|
1025
|
-
userId?: string | number | null | undefined;
|
|
1026
|
-
} | null | undefined;
|
|
1027
|
-
}[] | null | undefined;
|
|
1028
1028
|
customer?: {
|
|
1029
1029
|
email: string;
|
|
1030
1030
|
id: string | number;
|
|
@@ -1073,7 +1073,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1073
1073
|
}[] | null | undefined;
|
|
1074
1074
|
}[];
|
|
1075
1075
|
order: {
|
|
1076
|
-
status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "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" | "UNKNOWN";
|
|
1077
1077
|
id: string;
|
|
1078
1078
|
date: Date;
|
|
1079
1079
|
price: number;
|