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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"controlresell-connector": "^0.2.
|
|
21
|
-
"zod": "^3.24.
|
|
20
|
+
"controlresell-connector": "^0.2.16",
|
|
21
|
+
"zod": "^3.24.4",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const RabbitMQRoutingKeySchema: z.ZodEnum<["
|
|
2
|
+
export declare const RabbitMQRoutingKeySchema: z.ZodEnum<["PLATFORMS_AUTH", "PLATFORMS_JOB", "PLATFORMS_ITEMS_PUBLISH", "PLATFORMS_ITEMS_UPDATE", "PLATFORMS_ORDERS_UPDATE", "PLATFORMS_CONVERSATIONS_UPDATE", "CONNECTOR_JOB_POSTS_GET", "CONNECTOR_JOB_CONVERSATIONS_GET"]>;
|
|
3
3
|
export type RabbitMQRoutingKey = z.infer<typeof RabbitMQRoutingKeySchema>;
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RabbitMQRoutingKeySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.RabbitMQRoutingKeySchema = zod_1.z.enum([
|
|
6
|
-
"
|
|
6
|
+
"PLATFORMS_AUTH", "PLATFORMS_JOB", "PLATFORMS_ITEMS_PUBLISH", "PLATFORMS_ITEMS_UPDATE", "PLATFORMS_ORDERS_UPDATE", "PLATFORMS_CONVERSATIONS_UPDATE", "CONNECTOR_JOB_POSTS_GET", "CONNECTOR_JOB_CONVERSATIONS_GET"
|
|
7
7
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const RabbitMQRoutingKeySchema = z.enum([
|
|
4
|
-
"
|
|
4
|
+
"PLATFORMS_AUTH", "PLATFORMS_JOB", "PLATFORMS_ITEMS_PUBLISH", "PLATFORMS_ITEMS_UPDATE", "PLATFORMS_ORDERS_UPDATE", "PLATFORMS_CONVERSATIONS_UPDATE", "CONNECTOR_JOB_POSTS_GET", "CONNECTOR_JOB_CONVERSATIONS_GET"
|
|
5
5
|
])
|
|
6
6
|
export type RabbitMQRoutingKey = z.infer<typeof RabbitMQRoutingKeySchema>
|
|
@@ -304,6 +304,17 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
304
304
|
colorIds?: number[] | null | undefined;
|
|
305
305
|
packageSizeId?: number | null | undefined;
|
|
306
306
|
sizeId?: number | null | undefined;
|
|
307
|
+
labels?: {
|
|
308
|
+
itemId: string | number;
|
|
309
|
+
labelId: string | number;
|
|
310
|
+
label?: {
|
|
311
|
+
id: string | number;
|
|
312
|
+
createdAt: Date;
|
|
313
|
+
name: string;
|
|
314
|
+
isUserLabel: boolean;
|
|
315
|
+
userId?: string | number | null | undefined;
|
|
316
|
+
} | null | undefined;
|
|
317
|
+
}[] | null | undefined;
|
|
307
318
|
files?: {
|
|
308
319
|
fileId: string;
|
|
309
320
|
itemId: string | number;
|
|
@@ -343,17 +354,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
343
354
|
parentFeeId?: string | number | null | undefined;
|
|
344
355
|
}[] | null | undefined;
|
|
345
356
|
feesSum?: number | null | undefined;
|
|
346
|
-
labels?: {
|
|
347
|
-
itemId: string | number;
|
|
348
|
-
labelId: string | number;
|
|
349
|
-
label?: {
|
|
350
|
-
id: string | number;
|
|
351
|
-
createdAt: Date;
|
|
352
|
-
name: string;
|
|
353
|
-
isUserLabel: boolean;
|
|
354
|
-
userId?: string | number | null | undefined;
|
|
355
|
-
} | null | undefined;
|
|
356
|
-
}[] | null | undefined;
|
|
357
357
|
customer?: {
|
|
358
358
|
email: string;
|
|
359
359
|
id: string | number;
|
|
@@ -413,6 +413,17 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
413
413
|
colorIds?: number[] | null | undefined;
|
|
414
414
|
packageSizeId?: number | null | undefined;
|
|
415
415
|
sizeId?: number | null | undefined;
|
|
416
|
+
labels?: {
|
|
417
|
+
itemId: string | number;
|
|
418
|
+
labelId: string | number;
|
|
419
|
+
label?: {
|
|
420
|
+
id: string | number;
|
|
421
|
+
createdAt: Date;
|
|
422
|
+
name: string;
|
|
423
|
+
isUserLabel: boolean;
|
|
424
|
+
userId?: string | number | null | undefined;
|
|
425
|
+
} | null | undefined;
|
|
426
|
+
}[] | null | undefined;
|
|
416
427
|
files?: {
|
|
417
428
|
fileId: string;
|
|
418
429
|
itemId: string | number;
|
|
@@ -452,17 +463,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
452
463
|
parentFeeId?: string | number | null | undefined;
|
|
453
464
|
}[] | null | undefined;
|
|
454
465
|
feesSum?: number | null | undefined;
|
|
455
|
-
labels?: {
|
|
456
|
-
itemId: string | number;
|
|
457
|
-
labelId: string | number;
|
|
458
|
-
label?: {
|
|
459
|
-
id: string | number;
|
|
460
|
-
createdAt: Date;
|
|
461
|
-
name: string;
|
|
462
|
-
isUserLabel: boolean;
|
|
463
|
-
userId?: string | number | null | undefined;
|
|
464
|
-
} | null | undefined;
|
|
465
|
-
}[] | null | undefined;
|
|
466
466
|
customer?: {
|
|
467
467
|
email: string;
|
|
468
468
|
id: string | number;
|
|
@@ -543,6 +543,17 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
543
543
|
colorIds?: number[] | null | undefined;
|
|
544
544
|
packageSizeId?: number | null | undefined;
|
|
545
545
|
sizeId?: number | null | undefined;
|
|
546
|
+
labels?: {
|
|
547
|
+
itemId: string | number;
|
|
548
|
+
labelId: string | number;
|
|
549
|
+
label?: {
|
|
550
|
+
id: string | number;
|
|
551
|
+
createdAt: Date;
|
|
552
|
+
name: string;
|
|
553
|
+
isUserLabel: boolean;
|
|
554
|
+
userId?: string | number | null | undefined;
|
|
555
|
+
} | null | undefined;
|
|
556
|
+
}[] | null | undefined;
|
|
546
557
|
files?: {
|
|
547
558
|
fileId: string;
|
|
548
559
|
itemId: string | number;
|
|
@@ -582,17 +593,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
582
593
|
parentFeeId?: string | number | null | undefined;
|
|
583
594
|
}[] | null | undefined;
|
|
584
595
|
feesSum?: number | null | undefined;
|
|
585
|
-
labels?: {
|
|
586
|
-
itemId: string | number;
|
|
587
|
-
labelId: string | number;
|
|
588
|
-
label?: {
|
|
589
|
-
id: string | number;
|
|
590
|
-
createdAt: Date;
|
|
591
|
-
name: string;
|
|
592
|
-
isUserLabel: boolean;
|
|
593
|
-
userId?: string | number | null | undefined;
|
|
594
|
-
} | null | undefined;
|
|
595
|
-
}[] | null | undefined;
|
|
596
596
|
customer?: {
|
|
597
597
|
email: string;
|
|
598
598
|
id: string | number;
|
|
@@ -661,6 +661,17 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
661
661
|
colorIds?: number[] | null | undefined;
|
|
662
662
|
packageSizeId?: number | null | undefined;
|
|
663
663
|
sizeId?: number | null | undefined;
|
|
664
|
+
labels?: {
|
|
665
|
+
itemId: string | number;
|
|
666
|
+
labelId: string | number;
|
|
667
|
+
label?: {
|
|
668
|
+
id: string | number;
|
|
669
|
+
createdAt: Date;
|
|
670
|
+
name: string;
|
|
671
|
+
isUserLabel: boolean;
|
|
672
|
+
userId?: string | number | null | undefined;
|
|
673
|
+
} | null | undefined;
|
|
674
|
+
}[] | null | undefined;
|
|
664
675
|
files?: {
|
|
665
676
|
fileId: string;
|
|
666
677
|
itemId: string | number;
|
|
@@ -700,17 +711,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
700
711
|
parentFeeId?: string | number | null | undefined;
|
|
701
712
|
}[] | null | undefined;
|
|
702
713
|
feesSum?: number | null | undefined;
|
|
703
|
-
labels?: {
|
|
704
|
-
itemId: string | number;
|
|
705
|
-
labelId: string | number;
|
|
706
|
-
label?: {
|
|
707
|
-
id: string | number;
|
|
708
|
-
createdAt: Date;
|
|
709
|
-
name: string;
|
|
710
|
-
isUserLabel: boolean;
|
|
711
|
-
userId?: string | number | null | undefined;
|
|
712
|
-
} | null | undefined;
|
|
713
|
-
}[] | null | undefined;
|
|
714
714
|
customer?: {
|
|
715
715
|
email: string;
|
|
716
716
|
id: string | number;
|
|
@@ -303,6 +303,17 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
303
303
|
colorIds?: number[] | null | undefined;
|
|
304
304
|
packageSizeId?: number | null | undefined;
|
|
305
305
|
sizeId?: number | null | undefined;
|
|
306
|
+
labels?: {
|
|
307
|
+
itemId: string | number;
|
|
308
|
+
labelId: string | number;
|
|
309
|
+
label?: {
|
|
310
|
+
id: string | number;
|
|
311
|
+
createdAt: Date;
|
|
312
|
+
name: string;
|
|
313
|
+
isUserLabel: boolean;
|
|
314
|
+
userId?: string | number | null | undefined;
|
|
315
|
+
} | null | undefined;
|
|
316
|
+
}[] | null | undefined;
|
|
306
317
|
files?: {
|
|
307
318
|
fileId: string;
|
|
308
319
|
itemId: string | number;
|
|
@@ -342,17 +353,6 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
342
353
|
parentFeeId?: string | number | null | undefined;
|
|
343
354
|
}[] | null | undefined;
|
|
344
355
|
feesSum?: number | null | undefined;
|
|
345
|
-
labels?: {
|
|
346
|
-
itemId: string | number;
|
|
347
|
-
labelId: string | number;
|
|
348
|
-
label?: {
|
|
349
|
-
id: string | number;
|
|
350
|
-
createdAt: Date;
|
|
351
|
-
name: string;
|
|
352
|
-
isUserLabel: boolean;
|
|
353
|
-
userId?: string | number | null | undefined;
|
|
354
|
-
} | null | undefined;
|
|
355
|
-
}[] | null | undefined;
|
|
356
356
|
customer?: {
|
|
357
357
|
email: string;
|
|
358
358
|
id: string | number;
|
|
@@ -412,6 +412,17 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
412
412
|
colorIds?: number[] | null | undefined;
|
|
413
413
|
packageSizeId?: number | null | undefined;
|
|
414
414
|
sizeId?: number | null | undefined;
|
|
415
|
+
labels?: {
|
|
416
|
+
itemId: string | number;
|
|
417
|
+
labelId: string | number;
|
|
418
|
+
label?: {
|
|
419
|
+
id: string | number;
|
|
420
|
+
createdAt: Date;
|
|
421
|
+
name: string;
|
|
422
|
+
isUserLabel: boolean;
|
|
423
|
+
userId?: string | number | null | undefined;
|
|
424
|
+
} | null | undefined;
|
|
425
|
+
}[] | null | undefined;
|
|
415
426
|
files?: {
|
|
416
427
|
fileId: string;
|
|
417
428
|
itemId: string | number;
|
|
@@ -451,17 +462,6 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
451
462
|
parentFeeId?: string | number | null | undefined;
|
|
452
463
|
}[] | null | undefined;
|
|
453
464
|
feesSum?: number | null | undefined;
|
|
454
|
-
labels?: {
|
|
455
|
-
itemId: string | number;
|
|
456
|
-
labelId: string | number;
|
|
457
|
-
label?: {
|
|
458
|
-
id: string | number;
|
|
459
|
-
createdAt: Date;
|
|
460
|
-
name: string;
|
|
461
|
-
isUserLabel: boolean;
|
|
462
|
-
userId?: string | number | null | undefined;
|
|
463
|
-
} | null | undefined;
|
|
464
|
-
}[] | null | undefined;
|
|
465
465
|
customer?: {
|
|
466
466
|
email: string;
|
|
467
467
|
id: string | number;
|
|
@@ -15,7 +15,9 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
15
15
|
purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
|
|
16
16
|
sellingDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
|
|
17
17
|
searchQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
lastHistoryType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>>>;
|
|
18
19
|
readyToPublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
toBeSent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
21
|
}, "strip", z.ZodTypeAny, {
|
|
20
22
|
sort?: "MOST_RECENT" | "OLDEST" | "HIGHEST_PRICE" | "LOWEST_PRICE" | null | undefined;
|
|
21
23
|
sold?: boolean | null | undefined;
|
|
@@ -32,7 +34,9 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
32
34
|
purchaseDates?: (Date | null | undefined)[] | null | undefined;
|
|
33
35
|
sellingDates?: (Date | null | undefined)[] | null | undefined;
|
|
34
36
|
searchQuery?: string | null | undefined;
|
|
37
|
+
lastHistoryType?: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
|
|
35
38
|
readyToPublish?: boolean | null | undefined;
|
|
39
|
+
toBeSent?: boolean | null | undefined;
|
|
36
40
|
}, {
|
|
37
41
|
sort?: "MOST_RECENT" | "OLDEST" | "HIGHEST_PRICE" | "LOWEST_PRICE" | null | undefined;
|
|
38
42
|
sold?: boolean | null | undefined;
|
|
@@ -49,6 +53,8 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
49
53
|
purchaseDates?: (Date | null | undefined)[] | null | undefined;
|
|
50
54
|
sellingDates?: (Date | null | undefined)[] | null | undefined;
|
|
51
55
|
searchQuery?: string | null | undefined;
|
|
56
|
+
lastHistoryType?: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
|
|
52
57
|
readyToPublish?: boolean | null | undefined;
|
|
58
|
+
toBeSent?: boolean | null | undefined;
|
|
53
59
|
}>;
|
|
54
60
|
export type ItemFiltersContext = z.infer<typeof ItemFiltersContextSchema>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ItemFiltersContextSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const ItemSort_1 = require("./ItemSort");
|
|
6
|
+
const ItemHistoryType_1 = require("./history/ItemHistoryType");
|
|
6
7
|
exports.ItemFiltersContextSchema = zod_1.z.object({
|
|
7
8
|
sort: ItemSort_1.ItemSortSchema.nullish(),
|
|
8
9
|
sold: zod_1.z.boolean().nullish(),
|
|
@@ -19,5 +20,7 @@ exports.ItemFiltersContextSchema = zod_1.z.object({
|
|
|
19
20
|
purchaseDates: zod_1.z.array(zod_1.z.coerce.date().nullish()).max(2).nullish(),
|
|
20
21
|
sellingDates: zod_1.z.array(zod_1.z.coerce.date().nullish()).max(2).nullish(),
|
|
21
22
|
searchQuery: zod_1.z.string().nullish(),
|
|
22
|
-
|
|
23
|
+
lastHistoryType: ItemHistoryType_1.ItemHistoryTypeSchema.nullish(),
|
|
24
|
+
readyToPublish: zod_1.z.boolean().nullish(),
|
|
25
|
+
toBeSent: zod_1.z.boolean().nullish()
|
|
23
26
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
import {ItemSortSchema} from "./ItemSort"
|
|
3
|
+
import {ItemHistoryTypeSchema} from "./history/ItemHistoryType"
|
|
3
4
|
|
|
4
5
|
export const ItemFiltersContextSchema = z.object({
|
|
5
6
|
sort: ItemSortSchema.nullish(),
|
|
@@ -17,6 +18,8 @@ export const ItemFiltersContextSchema = z.object({
|
|
|
17
18
|
purchaseDates: z.array(z.coerce.date().nullish()).max(2).nullish(),
|
|
18
19
|
sellingDates: z.array(z.coerce.date().nullish()).max(2).nullish(),
|
|
19
20
|
searchQuery: z.string().nullish(),
|
|
20
|
-
|
|
21
|
+
lastHistoryType: ItemHistoryTypeSchema.nullish(),
|
|
22
|
+
readyToPublish: z.boolean().nullish(),
|
|
23
|
+
toBeSent: z.boolean().nullish()
|
|
21
24
|
})
|
|
22
25
|
export type ItemFiltersContext = z.infer<typeof ItemFiltersContextSchema>
|
|
@@ -48,6 +48,7 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
48
48
|
colorIds?: number[] | null | undefined;
|
|
49
49
|
packageSizeId?: number | null | undefined;
|
|
50
50
|
sizeId?: number | null | undefined;
|
|
51
|
+
labels?: string[] | null | undefined;
|
|
51
52
|
categoryId?: number | null | undefined;
|
|
52
53
|
brandId?: string | number | null | undefined;
|
|
53
54
|
sex?: string | null | undefined;
|
|
@@ -58,7 +59,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
58
59
|
sellingDate?: Date | null | undefined;
|
|
59
60
|
sellingPlaceId?: string | number | null | undefined;
|
|
60
61
|
estimatedPrice?: number | null | undefined;
|
|
61
|
-
labels?: string[] | null | undefined;
|
|
62
62
|
customerType?: string | null | undefined;
|
|
63
63
|
customerPaid?: boolean | null | undefined;
|
|
64
64
|
customerPaidDate?: Date | null | undefined;
|
|
@@ -81,6 +81,7 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
81
81
|
colorIds?: number[] | null | undefined;
|
|
82
82
|
packageSizeId?: number | null | undefined;
|
|
83
83
|
sizeId?: number | null | undefined;
|
|
84
|
+
labels?: string[] | null | undefined;
|
|
84
85
|
categoryId?: number | null | undefined;
|
|
85
86
|
brandId?: string | number | null | undefined;
|
|
86
87
|
sex?: string | null | undefined;
|
|
@@ -91,7 +92,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
91
92
|
sellingDate?: Date | null | undefined;
|
|
92
93
|
sellingPlaceId?: string | number | null | undefined;
|
|
93
94
|
estimatedPrice?: number | null | undefined;
|
|
94
|
-
labels?: string[] | null | undefined;
|
|
95
95
|
customerType?: string | null | undefined;
|
|
96
96
|
customerPaid?: boolean | null | undefined;
|
|
97
97
|
customerPaidDate?: Date | null | undefined;
|
|
@@ -306,6 +306,17 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
306
306
|
colorIds?: number[] | null | undefined;
|
|
307
307
|
packageSizeId?: number | null | undefined;
|
|
308
308
|
sizeId?: number | null | undefined;
|
|
309
|
+
labels?: {
|
|
310
|
+
itemId: string | number;
|
|
311
|
+
labelId: string | number;
|
|
312
|
+
label?: {
|
|
313
|
+
id: string | number;
|
|
314
|
+
createdAt: Date;
|
|
315
|
+
name: string;
|
|
316
|
+
isUserLabel: boolean;
|
|
317
|
+
userId?: string | number | null | undefined;
|
|
318
|
+
} | null | undefined;
|
|
319
|
+
}[] | null | undefined;
|
|
309
320
|
files?: {
|
|
310
321
|
fileId: string;
|
|
311
322
|
itemId: string | number;
|
|
@@ -345,17 +356,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
345
356
|
parentFeeId?: string | number | null | undefined;
|
|
346
357
|
}[] | null | undefined;
|
|
347
358
|
feesSum?: number | null | undefined;
|
|
348
|
-
labels?: {
|
|
349
|
-
itemId: string | number;
|
|
350
|
-
labelId: string | number;
|
|
351
|
-
label?: {
|
|
352
|
-
id: string | number;
|
|
353
|
-
createdAt: Date;
|
|
354
|
-
name: string;
|
|
355
|
-
isUserLabel: boolean;
|
|
356
|
-
userId?: string | number | null | undefined;
|
|
357
|
-
} | null | undefined;
|
|
358
|
-
}[] | null | undefined;
|
|
359
359
|
customer?: {
|
|
360
360
|
email: string;
|
|
361
361
|
id: string | number;
|
|
@@ -415,6 +415,17 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
415
415
|
colorIds?: number[] | null | undefined;
|
|
416
416
|
packageSizeId?: number | null | undefined;
|
|
417
417
|
sizeId?: number | null | undefined;
|
|
418
|
+
labels?: {
|
|
419
|
+
itemId: string | number;
|
|
420
|
+
labelId: string | number;
|
|
421
|
+
label?: {
|
|
422
|
+
id: string | number;
|
|
423
|
+
createdAt: Date;
|
|
424
|
+
name: string;
|
|
425
|
+
isUserLabel: boolean;
|
|
426
|
+
userId?: string | number | null | undefined;
|
|
427
|
+
} | null | undefined;
|
|
428
|
+
}[] | null | undefined;
|
|
418
429
|
files?: {
|
|
419
430
|
fileId: string;
|
|
420
431
|
itemId: string | number;
|
|
@@ -454,17 +465,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
454
465
|
parentFeeId?: string | number | null | undefined;
|
|
455
466
|
}[] | null | undefined;
|
|
456
467
|
feesSum?: number | null | undefined;
|
|
457
|
-
labels?: {
|
|
458
|
-
itemId: string | number;
|
|
459
|
-
labelId: string | number;
|
|
460
|
-
label?: {
|
|
461
|
-
id: string | number;
|
|
462
|
-
createdAt: Date;
|
|
463
|
-
name: string;
|
|
464
|
-
isUserLabel: boolean;
|
|
465
|
-
userId?: string | number | null | undefined;
|
|
466
|
-
} | null | undefined;
|
|
467
|
-
}[] | null | undefined;
|
|
468
468
|
customer?: {
|
|
469
469
|
email: string;
|
|
470
470
|
id: string | number;
|
|
@@ -549,6 +549,17 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
549
549
|
colorIds?: number[] | null | undefined;
|
|
550
550
|
packageSizeId?: number | null | undefined;
|
|
551
551
|
sizeId?: number | null | undefined;
|
|
552
|
+
labels?: {
|
|
553
|
+
itemId: string | number;
|
|
554
|
+
labelId: string | number;
|
|
555
|
+
label?: {
|
|
556
|
+
id: string | number;
|
|
557
|
+
createdAt: Date;
|
|
558
|
+
name: string;
|
|
559
|
+
isUserLabel: boolean;
|
|
560
|
+
userId?: string | number | null | undefined;
|
|
561
|
+
} | null | undefined;
|
|
562
|
+
}[] | null | undefined;
|
|
552
563
|
files?: {
|
|
553
564
|
fileId: string;
|
|
554
565
|
itemId: string | number;
|
|
@@ -588,17 +599,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
588
599
|
parentFeeId?: string | number | null | undefined;
|
|
589
600
|
}[] | null | undefined;
|
|
590
601
|
feesSum?: number | null | undefined;
|
|
591
|
-
labels?: {
|
|
592
|
-
itemId: string | number;
|
|
593
|
-
labelId: string | number;
|
|
594
|
-
label?: {
|
|
595
|
-
id: string | number;
|
|
596
|
-
createdAt: Date;
|
|
597
|
-
name: string;
|
|
598
|
-
isUserLabel: boolean;
|
|
599
|
-
userId?: string | number | null | undefined;
|
|
600
|
-
} | null | undefined;
|
|
601
|
-
}[] | null | undefined;
|
|
602
602
|
customer?: {
|
|
603
603
|
email: string;
|
|
604
604
|
id: string | number;
|
|
@@ -671,6 +671,17 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
671
671
|
colorIds?: number[] | null | undefined;
|
|
672
672
|
packageSizeId?: number | null | undefined;
|
|
673
673
|
sizeId?: number | null | undefined;
|
|
674
|
+
labels?: {
|
|
675
|
+
itemId: string | number;
|
|
676
|
+
labelId: string | number;
|
|
677
|
+
label?: {
|
|
678
|
+
id: string | number;
|
|
679
|
+
createdAt: Date;
|
|
680
|
+
name: string;
|
|
681
|
+
isUserLabel: boolean;
|
|
682
|
+
userId?: string | number | null | undefined;
|
|
683
|
+
} | null | undefined;
|
|
684
|
+
}[] | null | undefined;
|
|
674
685
|
files?: {
|
|
675
686
|
fileId: string;
|
|
676
687
|
itemId: string | number;
|
|
@@ -710,17 +721,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
710
721
|
parentFeeId?: string | number | null | undefined;
|
|
711
722
|
}[] | null | undefined;
|
|
712
723
|
feesSum?: number | null | undefined;
|
|
713
|
-
labels?: {
|
|
714
|
-
itemId: string | number;
|
|
715
|
-
labelId: string | number;
|
|
716
|
-
label?: {
|
|
717
|
-
id: string | number;
|
|
718
|
-
createdAt: Date;
|
|
719
|
-
name: string;
|
|
720
|
-
isUserLabel: boolean;
|
|
721
|
-
userId?: string | number | null | undefined;
|
|
722
|
-
} | null | undefined;
|
|
723
|
-
}[] | null | undefined;
|
|
724
724
|
customer?: {
|
|
725
725
|
email: string;
|
|
726
726
|
id: string | number;
|
|
@@ -304,6 +304,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
304
304
|
colorIds?: number[] | null | undefined;
|
|
305
305
|
packageSizeId?: number | null | undefined;
|
|
306
306
|
sizeId?: number | null | undefined;
|
|
307
|
+
labels?: {
|
|
308
|
+
itemId: string | number;
|
|
309
|
+
labelId: string | number;
|
|
310
|
+
label?: {
|
|
311
|
+
id: string | number;
|
|
312
|
+
createdAt: Date;
|
|
313
|
+
name: string;
|
|
314
|
+
isUserLabel: boolean;
|
|
315
|
+
userId?: string | number | null | undefined;
|
|
316
|
+
} | null | undefined;
|
|
317
|
+
}[] | null | undefined;
|
|
307
318
|
files?: {
|
|
308
319
|
fileId: string;
|
|
309
320
|
itemId: string | number;
|
|
@@ -343,17 +354,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
343
354
|
parentFeeId?: string | number | null | undefined;
|
|
344
355
|
}[] | null | undefined;
|
|
345
356
|
feesSum?: number | null | undefined;
|
|
346
|
-
labels?: {
|
|
347
|
-
itemId: string | number;
|
|
348
|
-
labelId: string | number;
|
|
349
|
-
label?: {
|
|
350
|
-
id: string | number;
|
|
351
|
-
createdAt: Date;
|
|
352
|
-
name: string;
|
|
353
|
-
isUserLabel: boolean;
|
|
354
|
-
userId?: string | number | null | undefined;
|
|
355
|
-
} | null | undefined;
|
|
356
|
-
}[] | null | undefined;
|
|
357
357
|
customer?: {
|
|
358
358
|
email: string;
|
|
359
359
|
id: string | number;
|
|
@@ -413,6 +413,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
413
413
|
colorIds?: number[] | null | undefined;
|
|
414
414
|
packageSizeId?: number | null | undefined;
|
|
415
415
|
sizeId?: number | null | undefined;
|
|
416
|
+
labels?: {
|
|
417
|
+
itemId: string | number;
|
|
418
|
+
labelId: string | number;
|
|
419
|
+
label?: {
|
|
420
|
+
id: string | number;
|
|
421
|
+
createdAt: Date;
|
|
422
|
+
name: string;
|
|
423
|
+
isUserLabel: boolean;
|
|
424
|
+
userId?: string | number | null | undefined;
|
|
425
|
+
} | null | undefined;
|
|
426
|
+
}[] | null | undefined;
|
|
416
427
|
files?: {
|
|
417
428
|
fileId: string;
|
|
418
429
|
itemId: string | number;
|
|
@@ -452,17 +463,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
452
463
|
parentFeeId?: string | number | null | undefined;
|
|
453
464
|
}[] | null | undefined;
|
|
454
465
|
feesSum?: number | null | undefined;
|
|
455
|
-
labels?: {
|
|
456
|
-
itemId: string | number;
|
|
457
|
-
labelId: string | number;
|
|
458
|
-
label?: {
|
|
459
|
-
id: string | number;
|
|
460
|
-
createdAt: Date;
|
|
461
|
-
name: string;
|
|
462
|
-
isUserLabel: boolean;
|
|
463
|
-
userId?: string | number | null | undefined;
|
|
464
|
-
} | null | undefined;
|
|
465
|
-
}[] | null | undefined;
|
|
466
466
|
customer?: {
|
|
467
467
|
email: string;
|
|
468
468
|
id: string | number;
|
|
@@ -550,6 +550,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
550
550
|
colorIds?: number[] | null | undefined;
|
|
551
551
|
packageSizeId?: number | null | undefined;
|
|
552
552
|
sizeId?: number | null | undefined;
|
|
553
|
+
labels?: {
|
|
554
|
+
itemId: string | number;
|
|
555
|
+
labelId: string | number;
|
|
556
|
+
label?: {
|
|
557
|
+
id: string | number;
|
|
558
|
+
createdAt: Date;
|
|
559
|
+
name: string;
|
|
560
|
+
isUserLabel: boolean;
|
|
561
|
+
userId?: string | number | null | undefined;
|
|
562
|
+
} | null | undefined;
|
|
563
|
+
}[] | null | undefined;
|
|
553
564
|
files?: {
|
|
554
565
|
fileId: string;
|
|
555
566
|
itemId: string | number;
|
|
@@ -589,17 +600,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
589
600
|
parentFeeId?: string | number | null | undefined;
|
|
590
601
|
}[] | null | undefined;
|
|
591
602
|
feesSum?: number | null | undefined;
|
|
592
|
-
labels?: {
|
|
593
|
-
itemId: string | number;
|
|
594
|
-
labelId: string | number;
|
|
595
|
-
label?: {
|
|
596
|
-
id: string | number;
|
|
597
|
-
createdAt: Date;
|
|
598
|
-
name: string;
|
|
599
|
-
isUserLabel: boolean;
|
|
600
|
-
userId?: string | number | null | undefined;
|
|
601
|
-
} | null | undefined;
|
|
602
|
-
}[] | null | undefined;
|
|
603
603
|
customer?: {
|
|
604
604
|
email: string;
|
|
605
605
|
id: string | number;
|
|
@@ -668,6 +668,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
668
668
|
colorIds?: number[] | null | undefined;
|
|
669
669
|
packageSizeId?: number | null | undefined;
|
|
670
670
|
sizeId?: number | null | undefined;
|
|
671
|
+
labels?: {
|
|
672
|
+
itemId: string | number;
|
|
673
|
+
labelId: string | number;
|
|
674
|
+
label?: {
|
|
675
|
+
id: string | number;
|
|
676
|
+
createdAt: Date;
|
|
677
|
+
name: string;
|
|
678
|
+
isUserLabel: boolean;
|
|
679
|
+
userId?: string | number | null | undefined;
|
|
680
|
+
} | null | undefined;
|
|
681
|
+
}[] | null | undefined;
|
|
671
682
|
files?: {
|
|
672
683
|
fileId: string;
|
|
673
684
|
itemId: string | number;
|
|
@@ -707,17 +718,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
707
718
|
parentFeeId?: string | number | null | undefined;
|
|
708
719
|
}[] | null | undefined;
|
|
709
720
|
feesSum?: number | null | undefined;
|
|
710
|
-
labels?: {
|
|
711
|
-
itemId: string | number;
|
|
712
|
-
labelId: string | number;
|
|
713
|
-
label?: {
|
|
714
|
-
id: string | number;
|
|
715
|
-
createdAt: Date;
|
|
716
|
-
name: string;
|
|
717
|
-
isUserLabel: boolean;
|
|
718
|
-
userId?: string | number | null | undefined;
|
|
719
|
-
} | null | undefined;
|
|
720
|
-
}[] | null | undefined;
|
|
721
721
|
customer?: {
|
|
722
722
|
email: string;
|
|
723
723
|
id: string | number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ItemHistoryTypeWithCountSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
4
|
+
count: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
7
|
+
count: number;
|
|
8
|
+
}, {
|
|
9
|
+
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
10
|
+
count: number;
|
|
11
|
+
}>;
|
|
12
|
+
export type ItemHistoryTypeWithCount = z.infer<typeof ItemHistoryTypeWithCountSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemHistoryTypeWithCountSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ItemHistoryType_1 = require("./ItemHistoryType");
|
|
6
|
+
exports.ItemHistoryTypeWithCountSchema = zod_1.z.object({
|
|
7
|
+
type: ItemHistoryType_1.ItemHistoryTypeSchema,
|
|
8
|
+
count: zod_1.z.number()
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {ItemHistoryTypeSchema} from "./ItemHistoryType"
|
|
3
|
+
|
|
4
|
+
export const ItemHistoryTypeWithCountSchema = z.object({
|
|
5
|
+
type: ItemHistoryTypeSchema,
|
|
6
|
+
count: z.number()
|
|
7
|
+
})
|
|
8
|
+
export type ItemHistoryTypeWithCount = z.infer<typeof ItemHistoryTypeWithCountSchema>
|