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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
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.
|
|
21
|
-
"zod": "^3.25.
|
|
20
|
+
"controlresell-connector": "^0.3.4",
|
|
21
|
+
"zod": "^3.25.49",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -238,7 +238,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
238
238
|
platformId: z.ZodString;
|
|
239
239
|
platformUrl: z.ZodString;
|
|
240
240
|
platformPrice: z.ZodNumber;
|
|
241
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
241
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
242
242
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
243
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
244
244
|
accountId: z.ZodString;
|
|
@@ -259,7 +259,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
259
259
|
accountId: string;
|
|
260
260
|
}>>>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
262
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
263
263
|
id: string;
|
|
264
264
|
itemId: string | number;
|
|
265
265
|
accountId: string;
|
|
@@ -274,7 +274,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
274
274
|
accountId: string;
|
|
275
275
|
} | null | undefined;
|
|
276
276
|
}, {
|
|
277
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
277
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
278
278
|
id: string;
|
|
279
279
|
itemId: string | number;
|
|
280
280
|
accountId: string;
|
|
@@ -385,7 +385,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
385
385
|
data?: string | null | undefined;
|
|
386
386
|
} | null | undefined;
|
|
387
387
|
platforms?: {
|
|
388
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
388
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
389
389
|
id: string;
|
|
390
390
|
itemId: string | number;
|
|
391
391
|
accountId: string;
|
|
@@ -494,7 +494,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
494
494
|
data?: string | null | undefined;
|
|
495
495
|
} | null | undefined;
|
|
496
496
|
platforms?: {
|
|
497
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
497
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
498
498
|
id: string;
|
|
499
499
|
itemId: string | number;
|
|
500
500
|
accountId: string;
|
|
@@ -624,7 +624,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
624
624
|
data?: string | null | undefined;
|
|
625
625
|
} | null | undefined;
|
|
626
626
|
platforms?: {
|
|
627
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
627
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
628
628
|
id: string;
|
|
629
629
|
itemId: string | number;
|
|
630
630
|
accountId: string;
|
|
@@ -742,7 +742,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
742
742
|
data?: string | null | undefined;
|
|
743
743
|
} | null | undefined;
|
|
744
744
|
platforms?: {
|
|
745
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
745
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
746
746
|
id: string;
|
|
747
747
|
itemId: string | number;
|
|
748
748
|
accountId: string;
|
|
@@ -237,7 +237,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
237
237
|
platformId: z.ZodString;
|
|
238
238
|
platformUrl: z.ZodString;
|
|
239
239
|
platformPrice: z.ZodNumber;
|
|
240
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
240
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
241
241
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
242
242
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
243
243
|
accountId: z.ZodString;
|
|
@@ -258,7 +258,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
258
258
|
accountId: string;
|
|
259
259
|
}>>>;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
261
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
262
262
|
id: string;
|
|
263
263
|
itemId: string | number;
|
|
264
264
|
accountId: string;
|
|
@@ -273,7 +273,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
273
273
|
accountId: string;
|
|
274
274
|
} | null | undefined;
|
|
275
275
|
}, {
|
|
276
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
276
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
277
277
|
id: string;
|
|
278
278
|
itemId: string | number;
|
|
279
279
|
accountId: string;
|
|
@@ -384,7 +384,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
384
384
|
data?: string | null | undefined;
|
|
385
385
|
} | null | undefined;
|
|
386
386
|
platforms?: {
|
|
387
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
387
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
388
388
|
id: string;
|
|
389
389
|
itemId: string | number;
|
|
390
390
|
accountId: string;
|
|
@@ -493,7 +493,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
493
493
|
data?: string | null | undefined;
|
|
494
494
|
} | null | undefined;
|
|
495
495
|
platforms?: {
|
|
496
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
496
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
497
497
|
id: string;
|
|
498
498
|
itemId: string | number;
|
|
499
499
|
accountId: string;
|
|
@@ -6,6 +6,7 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
6
6
|
brandsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
7
7
|
sex: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
8
8
|
sizesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
9
|
+
labelsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
9
10
|
purchasePlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
10
11
|
sellingPlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
11
12
|
states: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -25,6 +26,7 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
25
26
|
categoriesId?: number[] | null | undefined;
|
|
26
27
|
brandsId?: number[] | null | undefined;
|
|
27
28
|
sizesId?: number[] | null | undefined;
|
|
29
|
+
labelsId?: number[] | null | undefined;
|
|
28
30
|
purchasePlacesId?: number[] | null | undefined;
|
|
29
31
|
sellingPlacesId?: number[] | null | undefined;
|
|
30
32
|
states?: number[] | null | undefined;
|
|
@@ -44,6 +46,7 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
44
46
|
categoriesId?: number[] | null | undefined;
|
|
45
47
|
brandsId?: number[] | null | undefined;
|
|
46
48
|
sizesId?: number[] | null | undefined;
|
|
49
|
+
labelsId?: number[] | null | undefined;
|
|
47
50
|
purchasePlacesId?: number[] | null | undefined;
|
|
48
51
|
sellingPlacesId?: number[] | null | undefined;
|
|
49
52
|
states?: number[] | null | undefined;
|
|
@@ -11,6 +11,7 @@ exports.ItemFiltersContextSchema = zod_1.z.object({
|
|
|
11
11
|
brandsId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
12
12
|
sex: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
13
13
|
sizesId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
14
|
+
labelsId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
14
15
|
purchasePlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
15
16
|
sellingPlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
16
17
|
states: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
|
|
@@ -9,6 +9,7 @@ export const ItemFiltersContextSchema = z.object({
|
|
|
9
9
|
brandsId: z.array(z.number()).nullish(),
|
|
10
10
|
sex: z.array(z.string()).nullish(),
|
|
11
11
|
sizesId: z.array(z.number()).nullish(),
|
|
12
|
+
labelsId: z.array(z.number()).nullish(),
|
|
12
13
|
purchasePlacesId: z.array(z.number()).nullish(),
|
|
13
14
|
sellingPlacesId: z.array(z.number()).nullish(),
|
|
14
15
|
states: z.array(z.number()).max(2).nullish(),
|
|
@@ -240,7 +240,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
240
240
|
platformId: z.ZodString;
|
|
241
241
|
platformUrl: z.ZodString;
|
|
242
242
|
platformPrice: z.ZodNumber;
|
|
243
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
243
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
244
244
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
245
245
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
246
246
|
accountId: z.ZodString;
|
|
@@ -261,7 +261,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
261
261
|
accountId: string;
|
|
262
262
|
}>>>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
264
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
265
265
|
id: string;
|
|
266
266
|
itemId: string | number;
|
|
267
267
|
accountId: string;
|
|
@@ -276,7 +276,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
276
276
|
accountId: string;
|
|
277
277
|
} | null | undefined;
|
|
278
278
|
}, {
|
|
279
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
279
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
280
280
|
id: string;
|
|
281
281
|
itemId: string | number;
|
|
282
282
|
accountId: string;
|
|
@@ -387,7 +387,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
387
387
|
data?: string | null | undefined;
|
|
388
388
|
} | null | undefined;
|
|
389
389
|
platforms?: {
|
|
390
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
390
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
391
391
|
id: string;
|
|
392
392
|
itemId: string | number;
|
|
393
393
|
accountId: string;
|
|
@@ -496,7 +496,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
496
496
|
data?: string | null | undefined;
|
|
497
497
|
} | null | undefined;
|
|
498
498
|
platforms?: {
|
|
499
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
499
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
500
500
|
id: string;
|
|
501
501
|
itemId: string | number;
|
|
502
502
|
accountId: string;
|
|
@@ -514,25 +514,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
514
514
|
}>, "many">;
|
|
515
515
|
currentPage: z.ZodNumber;
|
|
516
516
|
totalPages: z.ZodNumber;
|
|
517
|
-
gettingStartedSteps: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
518
|
-
isShown: z.ZodBoolean;
|
|
519
|
-
addFirstItem: z.ZodBoolean;
|
|
520
|
-
markItemAsSold: z.ZodBoolean;
|
|
521
|
-
reach100Sales: z.ZodBoolean;
|
|
522
|
-
add10Items: z.ZodBoolean;
|
|
523
|
-
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
isShown: boolean;
|
|
525
|
-
addFirstItem: boolean;
|
|
526
|
-
markItemAsSold: boolean;
|
|
527
|
-
reach100Sales: boolean;
|
|
528
|
-
add10Items: boolean;
|
|
529
|
-
}, {
|
|
530
|
-
isShown: boolean;
|
|
531
|
-
addFirstItem: boolean;
|
|
532
|
-
markItemAsSold: boolean;
|
|
533
|
-
reach100Sales: boolean;
|
|
534
|
-
add10Items: boolean;
|
|
535
|
-
}>>>;
|
|
536
517
|
}, "strip", z.ZodTypeAny, {
|
|
537
518
|
count: number;
|
|
538
519
|
allItemsCount: number;
|
|
@@ -630,7 +611,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
630
611
|
data?: string | null | undefined;
|
|
631
612
|
} | null | undefined;
|
|
632
613
|
platforms?: {
|
|
633
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
614
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
634
615
|
id: string;
|
|
635
616
|
itemId: string | number;
|
|
636
617
|
accountId: string;
|
|
@@ -648,13 +629,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
648
629
|
}[];
|
|
649
630
|
currentPage: number;
|
|
650
631
|
totalPages: number;
|
|
651
|
-
gettingStartedSteps?: {
|
|
652
|
-
isShown: boolean;
|
|
653
|
-
addFirstItem: boolean;
|
|
654
|
-
markItemAsSold: boolean;
|
|
655
|
-
reach100Sales: boolean;
|
|
656
|
-
add10Items: boolean;
|
|
657
|
-
} | null | undefined;
|
|
658
632
|
}, {
|
|
659
633
|
count: number;
|
|
660
634
|
allItemsCount: number;
|
|
@@ -752,7 +726,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
752
726
|
data?: string | null | undefined;
|
|
753
727
|
} | null | undefined;
|
|
754
728
|
platforms?: {
|
|
755
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
729
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
756
730
|
id: string;
|
|
757
731
|
itemId: string | number;
|
|
758
732
|
accountId: string;
|
|
@@ -770,12 +744,5 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
770
744
|
}[];
|
|
771
745
|
currentPage: number;
|
|
772
746
|
totalPages: number;
|
|
773
|
-
gettingStartedSteps?: {
|
|
774
|
-
isShown: boolean;
|
|
775
|
-
addFirstItem: boolean;
|
|
776
|
-
markItemAsSold: boolean;
|
|
777
|
-
reach100Sales: boolean;
|
|
778
|
-
add10Items: boolean;
|
|
779
|
-
} | null | undefined;
|
|
780
747
|
}>;
|
|
781
748
|
export type ItemsWithFilters = z.infer<typeof ItemsWithFiltersSchema>;
|
|
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ItemsWithFiltersSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const Item_1 = require("./Item");
|
|
6
|
-
const GettingStartedSteps_1 = require("../users/GettingStartedSteps");
|
|
7
6
|
exports.ItemsWithFiltersSchema = zod_1.z.object({
|
|
8
7
|
count: zod_1.z.number(),
|
|
9
8
|
allItemsCount: zod_1.z.number(),
|
|
10
9
|
rows: zod_1.z.array(Item_1.ItemSchema),
|
|
11
10
|
currentPage: zod_1.z.number(),
|
|
12
|
-
totalPages: zod_1.z.number()
|
|
13
|
-
gettingStartedSteps: GettingStartedSteps_1.GettingStartedStepsSchema.nullish()
|
|
11
|
+
totalPages: zod_1.z.number()
|
|
14
12
|
});
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
import {ItemSchema} from "./Item"
|
|
3
|
-
import {GettingStartedStepsSchema} from "../users/GettingStartedSteps"
|
|
4
3
|
|
|
5
4
|
export const ItemsWithFiltersSchema = z.object({
|
|
6
5
|
count: z.number(),
|
|
7
6
|
allItemsCount: z.number(),
|
|
8
7
|
rows: z.array(ItemSchema),
|
|
9
8
|
currentPage: z.number(),
|
|
10
|
-
totalPages: z.number()
|
|
11
|
-
gettingStartedSteps: GettingStartedStepsSchema.nullish()
|
|
9
|
+
totalPages: z.number()
|
|
12
10
|
})
|
|
13
11
|
export type ItemsWithFilters = z.infer<typeof ItemsWithFiltersSchema>
|
|
@@ -238,7 +238,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
238
238
|
platformId: z.ZodString;
|
|
239
239
|
platformUrl: z.ZodString;
|
|
240
240
|
platformPrice: z.ZodNumber;
|
|
241
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
241
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
242
242
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
243
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
244
244
|
accountId: z.ZodString;
|
|
@@ -259,7 +259,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
259
259
|
accountId: string;
|
|
260
260
|
}>>>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
262
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
263
263
|
id: string;
|
|
264
264
|
itemId: string | number;
|
|
265
265
|
accountId: string;
|
|
@@ -274,7 +274,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
274
274
|
accountId: string;
|
|
275
275
|
} | null | undefined;
|
|
276
276
|
}, {
|
|
277
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
277
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
278
278
|
id: string;
|
|
279
279
|
itemId: string | number;
|
|
280
280
|
accountId: string;
|
|
@@ -385,7 +385,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
385
385
|
data?: string | null | undefined;
|
|
386
386
|
} | null | undefined;
|
|
387
387
|
platforms?: {
|
|
388
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
388
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
389
389
|
id: string;
|
|
390
390
|
itemId: string | number;
|
|
391
391
|
accountId: string;
|
|
@@ -494,7 +494,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
494
494
|
data?: string | null | undefined;
|
|
495
495
|
} | null | undefined;
|
|
496
496
|
platforms?: {
|
|
497
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
497
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
498
498
|
id: string;
|
|
499
499
|
itemId: string | number;
|
|
500
500
|
accountId: string;
|
|
@@ -631,7 +631,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
631
631
|
data?: string | null | undefined;
|
|
632
632
|
} | null | undefined;
|
|
633
633
|
platforms?: {
|
|
634
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
634
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
635
635
|
id: string;
|
|
636
636
|
itemId: string | number;
|
|
637
637
|
accountId: string;
|
|
@@ -749,7 +749,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
749
749
|
data?: string | null | undefined;
|
|
750
750
|
} | null | undefined;
|
|
751
751
|
platforms?: {
|
|
752
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
752
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
753
753
|
id: string;
|
|
754
754
|
itemId: string | number;
|
|
755
755
|
accountId: string;
|
|
@@ -5,26 +5,26 @@ export declare const ItemAnalysisCompletionSchema: z.ZodObject<{
|
|
|
5
5
|
brand: z.ZodString;
|
|
6
6
|
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
7
|
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
-
packageSizeId: z.
|
|
9
|
-
statusId: z.
|
|
8
|
+
packageSizeId: z.ZodNumber;
|
|
9
|
+
statusId: z.ZodNumber;
|
|
10
10
|
colorIds: z.ZodArray<z.ZodNumber, "many">;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
title: string;
|
|
13
13
|
description: string;
|
|
14
14
|
brand: string;
|
|
15
15
|
colorIds: number[];
|
|
16
|
+
packageSizeId: number;
|
|
17
|
+
statusId: number;
|
|
16
18
|
catalogId?: number | null | undefined;
|
|
17
|
-
packageSizeId?: number | null | undefined;
|
|
18
19
|
sizeId?: number | null | undefined;
|
|
19
|
-
statusId?: number | null | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
title: string;
|
|
22
22
|
description: string;
|
|
23
23
|
brand: string;
|
|
24
24
|
colorIds: number[];
|
|
25
|
+
packageSizeId: number;
|
|
26
|
+
statusId: number;
|
|
25
27
|
catalogId?: number | null | undefined;
|
|
26
|
-
packageSizeId?: number | null | undefined;
|
|
27
28
|
sizeId?: number | null | undefined;
|
|
28
|
-
statusId?: number | null | undefined;
|
|
29
29
|
}>;
|
|
30
30
|
export type ItemAnalysisCompletion = z.infer<typeof ItemAnalysisCompletionSchema>;
|
|
@@ -8,7 +8,7 @@ exports.ItemAnalysisCompletionSchema = zod_1.z.object({
|
|
|
8
8
|
brand: zod_1.z.string(),
|
|
9
9
|
catalogId: zod_1.z.number().nullish(),
|
|
10
10
|
sizeId: zod_1.z.number().nullish(),
|
|
11
|
-
packageSizeId: zod_1.z.number()
|
|
12
|
-
statusId: zod_1.z.number()
|
|
11
|
+
packageSizeId: zod_1.z.number(),
|
|
12
|
+
statusId: zod_1.z.number(),
|
|
13
13
|
colorIds: zod_1.z.array(zod_1.z.number())
|
|
14
14
|
});
|
|
@@ -6,8 +6,8 @@ export const ItemAnalysisCompletionSchema = z.object({
|
|
|
6
6
|
brand: z.string(),
|
|
7
7
|
catalogId: z.number().nullish(),
|
|
8
8
|
sizeId: z.number().nullish(),
|
|
9
|
-
packageSizeId: z.number()
|
|
10
|
-
statusId: z.number()
|
|
9
|
+
packageSizeId: z.number(),
|
|
10
|
+
statusId: z.number(),
|
|
11
11
|
colorIds: z.array(z.number())
|
|
12
12
|
})
|
|
13
13
|
export type ItemAnalysisCompletion = z.infer<typeof ItemAnalysisCompletionSchema>
|
|
@@ -4,15 +4,15 @@ export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
|
|
|
4
4
|
platformId: z.ZodString;
|
|
5
5
|
platformUrl: z.ZodString;
|
|
6
6
|
platformPrice: z.ZodNumber;
|
|
7
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
7
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
9
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
10
10
|
accountId: string;
|
|
11
11
|
platformId: string;
|
|
12
12
|
platformUrl: string;
|
|
13
13
|
platformPrice: number;
|
|
14
14
|
}, {
|
|
15
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
15
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
16
16
|
accountId: string;
|
|
17
17
|
platformId: string;
|
|
18
18
|
platformUrl: string;
|
|
@@ -6,7 +6,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
6
6
|
platformId: z.ZodString;
|
|
7
7
|
platformUrl: z.ZodString;
|
|
8
8
|
platformPrice: z.ZodNumber;
|
|
9
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
9
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
10
10
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
11
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
12
12
|
accountId: z.ZodString;
|
|
@@ -27,7 +27,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
27
27
|
accountId: string;
|
|
28
28
|
}>>>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
30
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
31
31
|
id: string;
|
|
32
32
|
itemId: string | number;
|
|
33
33
|
accountId: string;
|
|
@@ -42,7 +42,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
42
42
|
accountId: string;
|
|
43
43
|
} | null | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
45
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
46
46
|
id: string;
|
|
47
47
|
itemId: string | number;
|
|
48
48
|
accountId: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ItemOnPlatformStatusSchema: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
2
|
+
export declare const ItemOnPlatformStatusSchema: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
3
3
|
export type ItemOnPlatformStatus = z.infer<typeof ItemOnPlatformStatusSchema>;
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ItemOnPlatformStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.ItemOnPlatformStatusSchema = zod_1.z.enum([
|
|
6
|
-
"ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
6
|
+
"ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
7
7
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const ItemOnPlatformStatusSchema = z.enum([
|
|
4
|
-
"ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
4
|
+
"ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
5
5
|
])
|
|
6
6
|
export type ItemOnPlatformStatus = z.infer<typeof ItemOnPlatformStatusSchema>
|
|
@@ -21,6 +21,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
21
21
|
isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
22
|
material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
23
23
|
manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
24
25
|
}, "strip", z.ZodTypeAny, {
|
|
25
26
|
title?: string | null | undefined;
|
|
26
27
|
description?: string | null | undefined;
|
|
@@ -37,6 +38,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
37
38
|
isDraft?: boolean | null | undefined;
|
|
38
39
|
material?: number[] | null | undefined;
|
|
39
40
|
manufacturerLabelling?: string | null | undefined;
|
|
41
|
+
labels?: string[] | null | undefined;
|
|
40
42
|
}, {
|
|
41
43
|
title?: string | null | undefined;
|
|
42
44
|
description?: string | null | undefined;
|
|
@@ -53,6 +55,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
53
55
|
isDraft?: boolean | null | undefined;
|
|
54
56
|
material?: number[] | null | undefined;
|
|
55
57
|
manufacturerLabelling?: string | null | undefined;
|
|
58
|
+
labels?: string[] | null | undefined;
|
|
56
59
|
}>;
|
|
57
60
|
data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
61
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,6 +76,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
73
76
|
isDraft?: boolean | null | undefined;
|
|
74
77
|
material?: number[] | null | undefined;
|
|
75
78
|
manufacturerLabelling?: string | null | undefined;
|
|
79
|
+
labels?: string[] | null | undefined;
|
|
76
80
|
};
|
|
77
81
|
data?: string | null | undefined;
|
|
78
82
|
createdAt?: Date | null | undefined;
|
|
@@ -96,6 +100,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
96
100
|
isDraft?: boolean | null | undefined;
|
|
97
101
|
material?: number[] | null | undefined;
|
|
98
102
|
manufacturerLabelling?: string | null | undefined;
|
|
103
|
+
labels?: string[] | null | undefined;
|
|
99
104
|
};
|
|
100
105
|
data?: string | null | undefined;
|
|
101
106
|
createdAt?: Date | null | undefined;
|
|
@@ -147,6 +152,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
147
152
|
isDraft?: boolean | null | undefined;
|
|
148
153
|
material?: number[] | null | undefined;
|
|
149
154
|
manufacturerLabelling?: string | null | undefined;
|
|
155
|
+
labels?: string[] | null | undefined;
|
|
150
156
|
};
|
|
151
157
|
data?: string | null | undefined;
|
|
152
158
|
createdAt?: Date | null | undefined;
|
|
@@ -179,6 +185,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
179
185
|
isDraft?: boolean | null | undefined;
|
|
180
186
|
material?: number[] | null | undefined;
|
|
181
187
|
manufacturerLabelling?: string | null | undefined;
|
|
188
|
+
labels?: string[] | null | undefined;
|
|
182
189
|
};
|
|
183
190
|
data?: string | null | undefined;
|
|
184
191
|
createdAt?: Date | null | undefined;
|
|
@@ -3,13 +3,16 @@ export declare const ItemOnPlatformsRequestSchema: z.ZodObject<{
|
|
|
3
3
|
accountsId: z.ZodArray<z.ZodString, "many">;
|
|
4
4
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
5
5
|
disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
|
+
overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
accountsId: string[];
|
|
8
9
|
publishingDate?: Date | null | undefined;
|
|
9
10
|
disableGetDraft?: boolean | null | undefined;
|
|
11
|
+
overrideFileIds?: string[] | null | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
accountsId: string[];
|
|
12
14
|
publishingDate?: Date | null | undefined;
|
|
13
15
|
disableGetDraft?: boolean | null | undefined;
|
|
16
|
+
overrideFileIds?: string[] | null | undefined;
|
|
14
17
|
}>;
|
|
15
18
|
export type ItemOnPlatformsRequest = z.infer<typeof ItemOnPlatformsRequestSchema>;
|
|
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.ItemOnPlatformsRequestSchema = zod_1.z.object({
|
|
6
6
|
accountsId: zod_1.z.array(zod_1.z.string().uuid()),
|
|
7
7
|
publishingDate: zod_1.z.coerce.date().nullish(),
|
|
8
|
-
disableGetDraft: zod_1.z.boolean().nullish()
|
|
8
|
+
disableGetDraft: zod_1.z.boolean().nullish(),
|
|
9
|
+
overrideFileIds: zod_1.z.array(zod_1.z.string().uuid()).nullish()
|
|
9
10
|
});
|
|
@@ -3,6 +3,7 @@ import {z} from "zod"
|
|
|
3
3
|
export const ItemOnPlatformsRequestSchema = z.object({
|
|
4
4
|
accountsId: z.array(z.string().uuid()),
|
|
5
5
|
publishingDate: z.coerce.date().nullish(),
|
|
6
|
-
disableGetDraft: z.boolean().nullish()
|
|
6
|
+
disableGetDraft: z.boolean().nullish(),
|
|
7
|
+
overrideFileIds: z.array(z.string().uuid()).nullish()
|
|
7
8
|
})
|
|
8
9
|
export type ItemOnPlatformsRequest = z.infer<typeof ItemOnPlatformsRequestSchema>
|
|
@@ -4,14 +4,17 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
4
4
|
accountsId: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6
6
|
disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7
|
+
overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
accountsId: string[];
|
|
9
10
|
publishingDate?: Date | null | undefined;
|
|
10
11
|
disableGetDraft?: boolean | null | undefined;
|
|
12
|
+
overrideFileIds?: string[] | null | undefined;
|
|
11
13
|
}, {
|
|
12
14
|
accountsId: string[];
|
|
13
15
|
publishingDate?: Date | null | undefined;
|
|
14
16
|
disableGetDraft?: boolean | null | undefined;
|
|
17
|
+
overrideFileIds?: string[] | null | undefined;
|
|
15
18
|
}>;
|
|
16
19
|
itemId: z.ZodNumber;
|
|
17
20
|
userId: z.ZodNumber;
|
|
@@ -22,6 +25,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
22
25
|
accountsId: string[];
|
|
23
26
|
publishingDate?: Date | null | undefined;
|
|
24
27
|
disableGetDraft?: boolean | null | undefined;
|
|
28
|
+
overrideFileIds?: string[] | null | undefined;
|
|
25
29
|
};
|
|
26
30
|
}, {
|
|
27
31
|
userId: number;
|
|
@@ -30,6 +34,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
30
34
|
accountsId: string[];
|
|
31
35
|
publishingDate?: Date | null | undefined;
|
|
32
36
|
disableGetDraft?: boolean | null | undefined;
|
|
37
|
+
overrideFileIds?: string[] | null | undefined;
|
|
33
38
|
};
|
|
34
39
|
}>;
|
|
35
40
|
export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>;
|