controlresell 0.0.41 → 0.0.43
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 +1 -1
- package/src/com/controlresell/models/auth/AuthToken.d.ts +15 -0
- package/src/com/controlresell/models/auth/AuthToken.js +10 -0
- package/src/com/controlresell/models/auth/AuthToken.ts +9 -0
- package/src/com/controlresell/models/auth/RefreshTokenPayload.d.ts +9 -0
- package/src/com/controlresell/models/auth/RefreshTokenPayload.js +7 -0
- package/src/com/controlresell/models/auth/RefreshTokenPayload.ts +6 -0
- package/src/com/controlresell/models/catalogs/Catalog.js +1 -1
- package/src/com/controlresell/models/catalogs/Catalog.ts +1 -1
- package/src/com/controlresell/models/catalogs/PackageSizesAndStatuses.d.ts +52 -0
- package/src/com/controlresell/models/catalogs/PackageSizesAndStatuses.js +10 -0
- package/src/com/controlresell/models/catalogs/PackageSizesAndStatuses.ts +9 -0
- package/src/com/controlresell/models/items/CreatedItems.d.ts +0 -5
- package/src/com/controlresell/models/items/Item.d.ts +0 -3
- package/src/com/controlresell/models/items/Item.js +0 -1
- package/src/com/controlresell/models/items/Item.ts +0 -1
- package/src/com/controlresell/models/items/ItemPayload.d.ts +0 -3
- package/src/com/controlresell/models/items/ItemPayload.js +0 -1
- package/src/com/controlresell/models/items/ItemPayload.ts +0 -1
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +0 -5
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +0 -5
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.d.ts +30 -0
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.js +14 -0
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.ts +13 -0
- package/src/com/controlresell/models/items/analysis/{ImageAnalysisRequest.d.ts → ItemAnalysisRequest.d.ts} +2 -2
- package/src/com/controlresell/models/items/analysis/{ImageAnalysisRequest.js → ItemAnalysisRequest.js} +2 -2
- package/src/com/controlresell/models/items/analysis/ItemAnalysisRequest.ts +6 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +0 -5
- package/src/com/controlresell/models/metadata/statuses/Status.d.ts +15 -0
- package/src/com/controlresell/models/metadata/statuses/Status.js +9 -0
- package/src/com/controlresell/models/metadata/statuses/Status.ts +8 -0
- package/src/index.d.ts +6 -2
- package/src/index.js +6 -2
- package/src/index.ts +6 -2
- package/src/com/controlresell/models/items/ImageAnalysisCompletion.d.ts +0 -30
- package/src/com/controlresell/models/items/ImageAnalysisCompletion.js +0 -14
- package/src/com/controlresell/models/items/ImageAnalysisCompletion.ts +0 -13
- package/src/com/controlresell/models/items/analysis/ImageAnalysisRequest.ts +0 -6
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AuthTokenSchema: z.ZodObject<{
|
|
3
|
+
accessToken: z.ZodString;
|
|
4
|
+
refreshToken: z.ZodString;
|
|
5
|
+
idToken: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
accessToken: string;
|
|
8
|
+
refreshToken: string;
|
|
9
|
+
idToken: string | number;
|
|
10
|
+
}, {
|
|
11
|
+
accessToken: string;
|
|
12
|
+
refreshToken: string;
|
|
13
|
+
idToken: string | number;
|
|
14
|
+
}>;
|
|
15
|
+
export type AuthToken = z.infer<typeof AuthTokenSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthTokenSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zodable_idschema_1 = require("zodable-idschema");
|
|
6
|
+
exports.AuthTokenSchema = zod_1.z.object({
|
|
7
|
+
accessToken: zod_1.z.string(),
|
|
8
|
+
refreshToken: zod_1.z.string(),
|
|
9
|
+
idToken: zodable_idschema_1.IdSchema
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RefreshTokenPayloadSchema: z.ZodObject<{
|
|
3
|
+
refreshToken: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
refreshToken: string;
|
|
6
|
+
}, {
|
|
7
|
+
refreshToken: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type RefreshTokenPayload = z.infer<typeof RefreshTokenPayloadSchema>;
|
|
@@ -4,6 +4,6 @@ export const CatalogSchema = z.object({
|
|
|
4
4
|
id: z.number(),
|
|
5
5
|
sizeGroupIds: z.array(z.number()),
|
|
6
6
|
title: z.string(),
|
|
7
|
-
disabledFields: z.array(z.string()).nullish()
|
|
7
|
+
disabledFields: z.array(z.string()).nullish()
|
|
8
8
|
})
|
|
9
9
|
export type Catalog = z.infer<typeof CatalogSchema>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PackageSizesAndStatusesSchema: z.ZodObject<{
|
|
3
|
+
packageSizes: z.ZodArray<z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
weightDescription: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
id: number;
|
|
9
|
+
title: string;
|
|
10
|
+
weightDescription: string;
|
|
11
|
+
}, {
|
|
12
|
+
id: number;
|
|
13
|
+
title: string;
|
|
14
|
+
weightDescription: string;
|
|
15
|
+
}>, "many">;
|
|
16
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodNumber;
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
description: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
id: number;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
}, {
|
|
25
|
+
id: number;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
}>, "many">;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
packageSizes: {
|
|
31
|
+
id: number;
|
|
32
|
+
title: string;
|
|
33
|
+
weightDescription: string;
|
|
34
|
+
}[];
|
|
35
|
+
statuses: {
|
|
36
|
+
id: number;
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}[];
|
|
40
|
+
}, {
|
|
41
|
+
packageSizes: {
|
|
42
|
+
id: number;
|
|
43
|
+
title: string;
|
|
44
|
+
weightDescription: string;
|
|
45
|
+
}[];
|
|
46
|
+
statuses: {
|
|
47
|
+
id: number;
|
|
48
|
+
title: string;
|
|
49
|
+
description: string;
|
|
50
|
+
}[];
|
|
51
|
+
}>;
|
|
52
|
+
export type PackageSizesAndStatuses = z.infer<typeof PackageSizesAndStatusesSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PackageSizesAndStatusesSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PackageSize_1 = require("../metadata/packageSize/PackageSize");
|
|
6
|
+
const Status_1 = require("../metadata/statuses/Status");
|
|
7
|
+
exports.PackageSizesAndStatusesSchema = zod_1.z.object({
|
|
8
|
+
packageSizes: zod_1.z.array(PackageSize_1.PackageSizeSchema),
|
|
9
|
+
statuses: zod_1.z.array(Status_1.StatusSchema)
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {PackageSizeSchema} from "../metadata/packageSize/PackageSize"
|
|
3
|
+
import {StatusSchema} from "../metadata/statuses/Status"
|
|
4
|
+
|
|
5
|
+
export const PackageSizesAndStatusesSchema = z.object({
|
|
6
|
+
packageSizes: z.array(PackageSizeSchema),
|
|
7
|
+
statuses: z.array(StatusSchema)
|
|
8
|
+
})
|
|
9
|
+
export type PackageSizesAndStatuses = z.infer<typeof PackageSizesAndStatusesSchema>
|
|
@@ -261,7 +261,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
261
261
|
title: string;
|
|
262
262
|
weightDescription: string;
|
|
263
263
|
}>>>;
|
|
264
|
-
salePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
265
264
|
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
266
265
|
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
267
266
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -423,7 +422,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
423
422
|
title: string;
|
|
424
423
|
weightDescription: string;
|
|
425
424
|
} | null | undefined;
|
|
426
|
-
salePrice?: number | null | undefined;
|
|
427
425
|
customerId?: string | number | null | undefined;
|
|
428
426
|
customer?: {
|
|
429
427
|
id: string | number;
|
|
@@ -551,7 +549,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
551
549
|
title: string;
|
|
552
550
|
weightDescription: string;
|
|
553
551
|
} | null | undefined;
|
|
554
|
-
salePrice?: number | null | undefined;
|
|
555
552
|
customerId?: string | number | null | undefined;
|
|
556
553
|
customer?: {
|
|
557
554
|
id: string | number;
|
|
@@ -697,7 +694,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
697
694
|
title: string;
|
|
698
695
|
weightDescription: string;
|
|
699
696
|
} | null | undefined;
|
|
700
|
-
salePrice?: number | null | undefined;
|
|
701
697
|
customerId?: string | number | null | undefined;
|
|
702
698
|
customer?: {
|
|
703
699
|
id: string | number;
|
|
@@ -833,7 +829,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
833
829
|
title: string;
|
|
834
830
|
weightDescription: string;
|
|
835
831
|
} | null | undefined;
|
|
836
|
-
salePrice?: number | null | undefined;
|
|
837
832
|
customerId?: string | number | null | undefined;
|
|
838
833
|
customer?: {
|
|
839
834
|
id: string | number;
|
|
@@ -260,7 +260,6 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
260
260
|
title: string;
|
|
261
261
|
weightDescription: string;
|
|
262
262
|
}>>>;
|
|
263
|
-
salePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
264
263
|
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
265
264
|
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
266
265
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -422,7 +421,6 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
422
421
|
title: string;
|
|
423
422
|
weightDescription: string;
|
|
424
423
|
} | null | undefined;
|
|
425
|
-
salePrice?: number | null | undefined;
|
|
426
424
|
customerId?: string | number | null | undefined;
|
|
427
425
|
customer?: {
|
|
428
426
|
id: string | number;
|
|
@@ -550,7 +548,6 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
550
548
|
title: string;
|
|
551
549
|
weightDescription: string;
|
|
552
550
|
} | null | undefined;
|
|
553
|
-
salePrice?: number | null | undefined;
|
|
554
551
|
customerId?: string | number | null | undefined;
|
|
555
552
|
customer?: {
|
|
556
553
|
id: string | number;
|
|
@@ -46,7 +46,6 @@ exports.ItemSchema = zod_1.z.object({
|
|
|
46
46
|
colors: zod_1.z.array(Color_1.ColorSchema).nullish(),
|
|
47
47
|
packageSizeId: zod_1.z.number().nullish(),
|
|
48
48
|
packageSize: PackageSize_1.PackageSizeSchema.nullish(),
|
|
49
|
-
salePrice: zod_1.z.number().nullish(),
|
|
50
49
|
customerId: zodable_idschema_1.IdSchema.nullish(),
|
|
51
50
|
customer: Customer_1.CustomerSchema.nullish(),
|
|
52
51
|
customerType: zod_1.z.string().nullish(),
|
|
@@ -44,7 +44,6 @@ export const ItemSchema = z.object({
|
|
|
44
44
|
colors: z.array(ColorSchema).nullish(),
|
|
45
45
|
packageSizeId: z.number().nullish(),
|
|
46
46
|
packageSize: PackageSizeSchema.nullish(),
|
|
47
|
-
salePrice: z.number().nullish(),
|
|
48
47
|
customerId: IdSchema.nullish(),
|
|
49
48
|
customer: CustomerSchema.nullish(),
|
|
50
49
|
customerType: z.string().nullish(),
|
|
@@ -20,7 +20,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
20
20
|
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
21
21
|
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
22
22
|
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
salePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
23
|
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
24
|
batchId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
26
25
|
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
@@ -59,7 +58,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
59
58
|
sellingPlaceId?: string | number | null | undefined;
|
|
60
59
|
estimatedPrice?: number | null | undefined;
|
|
61
60
|
labels?: string[] | null | undefined;
|
|
62
|
-
salePrice?: number | null | undefined;
|
|
63
61
|
customerId?: string | number | null | undefined;
|
|
64
62
|
customerType?: string | null | undefined;
|
|
65
63
|
customerPaid?: boolean | null | undefined;
|
|
@@ -93,7 +91,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
93
91
|
sellingPlaceId?: string | number | null | undefined;
|
|
94
92
|
estimatedPrice?: number | null | undefined;
|
|
95
93
|
labels?: string[] | null | undefined;
|
|
96
|
-
salePrice?: number | null | undefined;
|
|
97
94
|
customerId?: string | number | null | undefined;
|
|
98
95
|
customerType?: string | null | undefined;
|
|
99
96
|
customerPaid?: boolean | null | undefined;
|
|
@@ -25,7 +25,6 @@ exports.ItemPayloadSchema = zod_1.z.object({
|
|
|
25
25
|
labels: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
26
26
|
colorIds: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
27
27
|
packageSizeId: zod_1.z.number().nullish(),
|
|
28
|
-
salePrice: zod_1.z.number().nullish(),
|
|
29
28
|
quantity: zod_1.z.number().int().nullish(),
|
|
30
29
|
batchId: zodable_idschema_1.IdSchema.nullish(),
|
|
31
30
|
customerId: zodable_idschema_1.IdSchema.nullish(),
|
|
@@ -23,7 +23,6 @@ export const ItemPayloadSchema = z.object({
|
|
|
23
23
|
labels: z.array(z.string()).nullish(),
|
|
24
24
|
colorIds: z.array(z.number()).nullish(),
|
|
25
25
|
packageSizeId: z.number().nullish(),
|
|
26
|
-
salePrice: z.number().nullish(),
|
|
27
26
|
quantity: z.number().int().nullish(),
|
|
28
27
|
batchId: IdSchema.nullish(),
|
|
29
28
|
customerId: IdSchema.nullish(),
|
|
@@ -263,7 +263,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
263
263
|
title: string;
|
|
264
264
|
weightDescription: string;
|
|
265
265
|
}>>>;
|
|
266
|
-
salePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
267
266
|
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
268
267
|
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
269
268
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -425,7 +424,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
425
424
|
title: string;
|
|
426
425
|
weightDescription: string;
|
|
427
426
|
} | null | undefined;
|
|
428
|
-
salePrice?: number | null | undefined;
|
|
429
427
|
customerId?: string | number | null | undefined;
|
|
430
428
|
customer?: {
|
|
431
429
|
id: string | number;
|
|
@@ -553,7 +551,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
553
551
|
title: string;
|
|
554
552
|
weightDescription: string;
|
|
555
553
|
} | null | undefined;
|
|
556
|
-
salePrice?: number | null | undefined;
|
|
557
554
|
customerId?: string | number | null | undefined;
|
|
558
555
|
customer?: {
|
|
559
556
|
id: string | number;
|
|
@@ -741,7 +738,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
741
738
|
title: string;
|
|
742
739
|
weightDescription: string;
|
|
743
740
|
} | null | undefined;
|
|
744
|
-
salePrice?: number | null | undefined;
|
|
745
741
|
customerId?: string | number | null | undefined;
|
|
746
742
|
customer?: {
|
|
747
743
|
id: string | number;
|
|
@@ -892,7 +888,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
892
888
|
title: string;
|
|
893
889
|
weightDescription: string;
|
|
894
890
|
} | null | undefined;
|
|
895
|
-
salePrice?: number | null | undefined;
|
|
896
891
|
customerId?: string | number | null | undefined;
|
|
897
892
|
customer?: {
|
|
898
893
|
id: string | number;
|
|
@@ -261,7 +261,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
261
261
|
title: string;
|
|
262
262
|
weightDescription: string;
|
|
263
263
|
}>>>;
|
|
264
|
-
salePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
265
264
|
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
266
265
|
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
267
266
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -423,7 +422,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
423
422
|
title: string;
|
|
424
423
|
weightDescription: string;
|
|
425
424
|
} | null | undefined;
|
|
426
|
-
salePrice?: number | null | undefined;
|
|
427
425
|
customerId?: string | number | null | undefined;
|
|
428
426
|
customer?: {
|
|
429
427
|
id: string | number;
|
|
@@ -551,7 +549,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
551
549
|
title: string;
|
|
552
550
|
weightDescription: string;
|
|
553
551
|
} | null | undefined;
|
|
554
|
-
salePrice?: number | null | undefined;
|
|
555
552
|
customerId?: string | number | null | undefined;
|
|
556
553
|
customer?: {
|
|
557
554
|
id: string | number;
|
|
@@ -703,7 +700,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
703
700
|
title: string;
|
|
704
701
|
weightDescription: string;
|
|
705
702
|
} | null | undefined;
|
|
706
|
-
salePrice?: number | null | undefined;
|
|
707
703
|
customerId?: string | number | null | undefined;
|
|
708
704
|
customer?: {
|
|
709
705
|
id: string | number;
|
|
@@ -839,7 +835,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
839
835
|
title: string;
|
|
840
836
|
weightDescription: string;
|
|
841
837
|
} | null | undefined;
|
|
842
|
-
salePrice?: number | null | undefined;
|
|
843
838
|
customerId?: string | number | null | undefined;
|
|
844
839
|
customer?: {
|
|
845
840
|
id: string | number;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ItemAnalysisCompletionSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
description: z.ZodString;
|
|
5
|
+
brand: z.ZodString;
|
|
6
|
+
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
colorIds: z.ZodArray<z.ZodNumber, "many">;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
brand: string;
|
|
15
|
+
colorIds: number[];
|
|
16
|
+
catalogId?: number | null | undefined;
|
|
17
|
+
packageSizeId?: number | null | undefined;
|
|
18
|
+
sizeId?: number | null | undefined;
|
|
19
|
+
statusId?: number | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
brand: string;
|
|
24
|
+
colorIds: number[];
|
|
25
|
+
catalogId?: number | null | undefined;
|
|
26
|
+
packageSizeId?: number | null | undefined;
|
|
27
|
+
sizeId?: number | null | undefined;
|
|
28
|
+
statusId?: number | null | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type ItemAnalysisCompletion = z.infer<typeof ItemAnalysisCompletionSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemAnalysisCompletionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ItemAnalysisCompletionSchema = zod_1.z.object({
|
|
6
|
+
title: zod_1.z.string(),
|
|
7
|
+
description: zod_1.z.string(),
|
|
8
|
+
brand: zod_1.z.string(),
|
|
9
|
+
catalogId: zod_1.z.number().nullish(),
|
|
10
|
+
sizeId: zod_1.z.number().nullish(),
|
|
11
|
+
packageSizeId: zod_1.z.number().nullish(),
|
|
12
|
+
statusId: zod_1.z.number().nullish(),
|
|
13
|
+
colorIds: zod_1.z.array(zod_1.z.number())
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const ItemAnalysisCompletionSchema = z.object({
|
|
4
|
+
title: z.string(),
|
|
5
|
+
description: z.string(),
|
|
6
|
+
brand: z.string(),
|
|
7
|
+
catalogId: z.number().nullish(),
|
|
8
|
+
sizeId: z.number().nullish(),
|
|
9
|
+
packageSizeId: z.number().nullish(),
|
|
10
|
+
statusId: z.number().nullish(),
|
|
11
|
+
colorIds: z.array(z.number())
|
|
12
|
+
})
|
|
13
|
+
export type ItemAnalysisCompletion = z.infer<typeof ItemAnalysisCompletionSchema>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ItemAnalysisRequestSchema: z.ZodObject<{
|
|
3
3
|
filesId: z.ZodArray<z.ZodString, "many">;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
5
|
filesId: string[];
|
|
6
6
|
}, {
|
|
7
7
|
filesId: string[];
|
|
8
8
|
}>;
|
|
9
|
-
export type
|
|
9
|
+
export type ItemAnalysisRequest = z.infer<typeof ItemAnalysisRequestSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ItemAnalysisRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.ItemAnalysisRequestSchema = zod_1.z.object({
|
|
6
6
|
filesId: zod_1.z.array(zod_1.z.string().uuid())
|
|
7
7
|
});
|
|
@@ -271,7 +271,6 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
271
271
|
title: string;
|
|
272
272
|
weightDescription: string;
|
|
273
273
|
}>>>;
|
|
274
|
-
salePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
275
274
|
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
276
275
|
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
277
276
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -433,7 +432,6 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
433
432
|
title: string;
|
|
434
433
|
weightDescription: string;
|
|
435
434
|
} | null | undefined;
|
|
436
|
-
salePrice?: number | null | undefined;
|
|
437
435
|
customerId?: string | number | null | undefined;
|
|
438
436
|
customer?: {
|
|
439
437
|
id: string | number;
|
|
@@ -561,7 +559,6 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
561
559
|
title: string;
|
|
562
560
|
weightDescription: string;
|
|
563
561
|
} | null | undefined;
|
|
564
|
-
salePrice?: number | null | undefined;
|
|
565
562
|
customerId?: string | number | null | undefined;
|
|
566
563
|
customer?: {
|
|
567
564
|
id: string | number;
|
|
@@ -691,7 +688,6 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
691
688
|
title: string;
|
|
692
689
|
weightDescription: string;
|
|
693
690
|
} | null | undefined;
|
|
694
|
-
salePrice?: number | null | undefined;
|
|
695
691
|
customerId?: string | number | null | undefined;
|
|
696
692
|
customer?: {
|
|
697
693
|
id: string | number;
|
|
@@ -825,7 +821,6 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
825
821
|
title: string;
|
|
826
822
|
weightDescription: string;
|
|
827
823
|
} | null | undefined;
|
|
828
|
-
salePrice?: number | null | undefined;
|
|
829
824
|
customerId?: string | number | null | undefined;
|
|
830
825
|
customer?: {
|
|
831
826
|
id: string | number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const StatusSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
description: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: number;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}, {
|
|
11
|
+
id: number;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type Status = z.infer<typeof StatusSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.StatusSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.number(),
|
|
7
|
+
title: zod_1.z.string(),
|
|
8
|
+
description: zod_1.z.string()
|
|
9
|
+
});
|
package/src/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from "./com/controlresell/models/application/ControlResellEnvironment";
|
|
2
2
|
export * from "./com/controlresell/models/application/RabbitMQRoutingKey";
|
|
3
|
+
export * from "./com/controlresell/models/auth/AuthToken";
|
|
4
|
+
export * from "./com/controlresell/models/auth/RefreshTokenPayload";
|
|
3
5
|
export * from "./com/controlresell/models/catalogs/Catalog";
|
|
4
6
|
export * from "./com/controlresell/models/catalogs/CatalogRoot";
|
|
5
7
|
export * from "./com/controlresell/models/catalogs/ColorRoot";
|
|
8
|
+
export * from "./com/controlresell/models/catalogs/PackageSizesAndStatuses";
|
|
6
9
|
export * from "./com/controlresell/models/catalogs/SizeGroup";
|
|
7
10
|
export * from "./com/controlresell/models/catalogs/SizeRoot";
|
|
8
11
|
export * from "./com/controlresell/models/connector/UserOnPlatformRequest";
|
|
@@ -13,14 +16,14 @@ export * from "./com/controlresell/models/fields/SpotConfig";
|
|
|
13
16
|
export * from "./com/controlresell/models/fields/SpotDefaultValue";
|
|
14
17
|
export * from "./com/controlresell/models/fields/SpotValue";
|
|
15
18
|
export * from "./com/controlresell/models/items/CreatedItems";
|
|
16
|
-
export * from "./com/controlresell/models/items/ImageAnalysisCompletion";
|
|
17
19
|
export * from "./com/controlresell/models/items/Item";
|
|
18
20
|
export * from "./com/controlresell/models/items/ItemFiltersContext";
|
|
19
21
|
export * from "./com/controlresell/models/items/ItemPayload";
|
|
20
22
|
export * from "./com/controlresell/models/items/ItemSort";
|
|
21
23
|
export * from "./com/controlresell/models/items/ItemsWithFilters";
|
|
22
24
|
export * from "./com/controlresell/models/items/UpdatedItem";
|
|
23
|
-
export * from "./com/controlresell/models/items/analysis/
|
|
25
|
+
export * from "./com/controlresell/models/items/analysis/ItemAnalysisCompletion";
|
|
26
|
+
export * from "./com/controlresell/models/items/analysis/ItemAnalysisRequest";
|
|
24
27
|
export * from "./com/controlresell/models/items/fields/ItemField";
|
|
25
28
|
export * from "./com/controlresell/models/items/fields/ItemFieldPayload";
|
|
26
29
|
export * from "./com/controlresell/models/items/files/CreateItemFilePayload";
|
|
@@ -45,6 +48,7 @@ export * from "./com/controlresell/models/metadata/labels/Label";
|
|
|
45
48
|
export * from "./com/controlresell/models/metadata/packageSize/PackageSize";
|
|
46
49
|
export * from "./com/controlresell/models/metadata/places/Place";
|
|
47
50
|
export * from "./com/controlresell/models/metadata/sizes/Size";
|
|
51
|
+
export * from "./com/controlresell/models/metadata/statuses/Status";
|
|
48
52
|
export * from "./com/controlresell/models/users/GettingStartedSteps";
|
|
49
53
|
export * from "./com/controlresell/models/users/UpdateUserPayload";
|
|
50
54
|
export * from "./com/controlresell/models/users/User";
|
package/src/index.js
CHANGED
|
@@ -16,9 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./com/controlresell/models/application/ControlResellEnvironment"), exports);
|
|
18
18
|
__exportStar(require("./com/controlresell/models/application/RabbitMQRoutingKey"), exports);
|
|
19
|
+
__exportStar(require("./com/controlresell/models/auth/AuthToken"), exports);
|
|
20
|
+
__exportStar(require("./com/controlresell/models/auth/RefreshTokenPayload"), exports);
|
|
19
21
|
__exportStar(require("./com/controlresell/models/catalogs/Catalog"), exports);
|
|
20
22
|
__exportStar(require("./com/controlresell/models/catalogs/CatalogRoot"), exports);
|
|
21
23
|
__exportStar(require("./com/controlresell/models/catalogs/ColorRoot"), exports);
|
|
24
|
+
__exportStar(require("./com/controlresell/models/catalogs/PackageSizesAndStatuses"), exports);
|
|
22
25
|
__exportStar(require("./com/controlresell/models/catalogs/SizeGroup"), exports);
|
|
23
26
|
__exportStar(require("./com/controlresell/models/catalogs/SizeRoot"), exports);
|
|
24
27
|
__exportStar(require("./com/controlresell/models/connector/UserOnPlatformRequest"), exports);
|
|
@@ -29,14 +32,14 @@ __exportStar(require("./com/controlresell/models/fields/SpotConfig"), exports);
|
|
|
29
32
|
__exportStar(require("./com/controlresell/models/fields/SpotDefaultValue"), exports);
|
|
30
33
|
__exportStar(require("./com/controlresell/models/fields/SpotValue"), exports);
|
|
31
34
|
__exportStar(require("./com/controlresell/models/items/CreatedItems"), exports);
|
|
32
|
-
__exportStar(require("./com/controlresell/models/items/ImageAnalysisCompletion"), exports);
|
|
33
35
|
__exportStar(require("./com/controlresell/models/items/Item"), exports);
|
|
34
36
|
__exportStar(require("./com/controlresell/models/items/ItemFiltersContext"), exports);
|
|
35
37
|
__exportStar(require("./com/controlresell/models/items/ItemPayload"), exports);
|
|
36
38
|
__exportStar(require("./com/controlresell/models/items/ItemSort"), exports);
|
|
37
39
|
__exportStar(require("./com/controlresell/models/items/ItemsWithFilters"), exports);
|
|
38
40
|
__exportStar(require("./com/controlresell/models/items/UpdatedItem"), exports);
|
|
39
|
-
__exportStar(require("./com/controlresell/models/items/analysis/
|
|
41
|
+
__exportStar(require("./com/controlresell/models/items/analysis/ItemAnalysisCompletion"), exports);
|
|
42
|
+
__exportStar(require("./com/controlresell/models/items/analysis/ItemAnalysisRequest"), exports);
|
|
40
43
|
__exportStar(require("./com/controlresell/models/items/fields/ItemField"), exports);
|
|
41
44
|
__exportStar(require("./com/controlresell/models/items/fields/ItemFieldPayload"), exports);
|
|
42
45
|
__exportStar(require("./com/controlresell/models/items/files/CreateItemFilePayload"), exports);
|
|
@@ -61,6 +64,7 @@ __exportStar(require("./com/controlresell/models/metadata/labels/Label"), export
|
|
|
61
64
|
__exportStar(require("./com/controlresell/models/metadata/packageSize/PackageSize"), exports);
|
|
62
65
|
__exportStar(require("./com/controlresell/models/metadata/places/Place"), exports);
|
|
63
66
|
__exportStar(require("./com/controlresell/models/metadata/sizes/Size"), exports);
|
|
67
|
+
__exportStar(require("./com/controlresell/models/metadata/statuses/Status"), exports);
|
|
64
68
|
__exportStar(require("./com/controlresell/models/users/GettingStartedSteps"), exports);
|
|
65
69
|
__exportStar(require("./com/controlresell/models/users/UpdateUserPayload"), exports);
|
|
66
70
|
__exportStar(require("./com/controlresell/models/users/User"), exports);
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from "./com/controlresell/models/application/ControlResellEnvironment"
|
|
2
2
|
export * from "./com/controlresell/models/application/RabbitMQRoutingKey"
|
|
3
|
+
export * from "./com/controlresell/models/auth/AuthToken"
|
|
4
|
+
export * from "./com/controlresell/models/auth/RefreshTokenPayload"
|
|
3
5
|
export * from "./com/controlresell/models/catalogs/Catalog"
|
|
4
6
|
export * from "./com/controlresell/models/catalogs/CatalogRoot"
|
|
5
7
|
export * from "./com/controlresell/models/catalogs/ColorRoot"
|
|
8
|
+
export * from "./com/controlresell/models/catalogs/PackageSizesAndStatuses"
|
|
6
9
|
export * from "./com/controlresell/models/catalogs/SizeGroup"
|
|
7
10
|
export * from "./com/controlresell/models/catalogs/SizeRoot"
|
|
8
11
|
export * from "./com/controlresell/models/connector/UserOnPlatformRequest"
|
|
@@ -13,14 +16,14 @@ export * from "./com/controlresell/models/fields/SpotConfig"
|
|
|
13
16
|
export * from "./com/controlresell/models/fields/SpotDefaultValue"
|
|
14
17
|
export * from "./com/controlresell/models/fields/SpotValue"
|
|
15
18
|
export * from "./com/controlresell/models/items/CreatedItems"
|
|
16
|
-
export * from "./com/controlresell/models/items/ImageAnalysisCompletion"
|
|
17
19
|
export * from "./com/controlresell/models/items/Item"
|
|
18
20
|
export * from "./com/controlresell/models/items/ItemFiltersContext"
|
|
19
21
|
export * from "./com/controlresell/models/items/ItemPayload"
|
|
20
22
|
export * from "./com/controlresell/models/items/ItemSort"
|
|
21
23
|
export * from "./com/controlresell/models/items/ItemsWithFilters"
|
|
22
24
|
export * from "./com/controlresell/models/items/UpdatedItem"
|
|
23
|
-
export * from "./com/controlresell/models/items/analysis/
|
|
25
|
+
export * from "./com/controlresell/models/items/analysis/ItemAnalysisCompletion"
|
|
26
|
+
export * from "./com/controlresell/models/items/analysis/ItemAnalysisRequest"
|
|
24
27
|
export * from "./com/controlresell/models/items/fields/ItemField"
|
|
25
28
|
export * from "./com/controlresell/models/items/fields/ItemFieldPayload"
|
|
26
29
|
export * from "./com/controlresell/models/items/files/CreateItemFilePayload"
|
|
@@ -45,6 +48,7 @@ export * from "./com/controlresell/models/metadata/labels/Label"
|
|
|
45
48
|
export * from "./com/controlresell/models/metadata/packageSize/PackageSize"
|
|
46
49
|
export * from "./com/controlresell/models/metadata/places/Place"
|
|
47
50
|
export * from "./com/controlresell/models/metadata/sizes/Size"
|
|
51
|
+
export * from "./com/controlresell/models/metadata/statuses/Status"
|
|
48
52
|
export * from "./com/controlresell/models/users/GettingStartedSteps"
|
|
49
53
|
export * from "./com/controlresell/models/users/UpdateUserPayload"
|
|
50
54
|
export * from "./com/controlresell/models/users/User"
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ImageAnalysisCompletionSchema: z.ZodObject<{
|
|
3
|
-
brand: z.ZodString;
|
|
4
|
-
catalogId: z.ZodNumber;
|
|
5
|
-
description: z.ZodString;
|
|
6
|
-
packageSizeId: z.ZodNumber;
|
|
7
|
-
statusId: z.ZodNumber;
|
|
8
|
-
title: z.ZodString;
|
|
9
|
-
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
10
|
-
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
title: string;
|
|
13
|
-
description: string;
|
|
14
|
-
brand: string;
|
|
15
|
-
catalogId: number;
|
|
16
|
-
packageSizeId: number;
|
|
17
|
-
statusId: number;
|
|
18
|
-
colorIds?: number[] | null | undefined;
|
|
19
|
-
sizeId?: number | null | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
title: string;
|
|
22
|
-
description: string;
|
|
23
|
-
brand: string;
|
|
24
|
-
catalogId: number;
|
|
25
|
-
packageSizeId: number;
|
|
26
|
-
statusId: number;
|
|
27
|
-
colorIds?: number[] | null | undefined;
|
|
28
|
-
sizeId?: number | null | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export type ImageAnalysisCompletion = z.infer<typeof ImageAnalysisCompletionSchema>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageAnalysisCompletionSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.ImageAnalysisCompletionSchema = zod_1.z.object({
|
|
6
|
-
brand: zod_1.z.string(),
|
|
7
|
-
catalogId: zod_1.z.number(),
|
|
8
|
-
description: zod_1.z.string(),
|
|
9
|
-
packageSizeId: zod_1.z.number(),
|
|
10
|
-
statusId: zod_1.z.number(),
|
|
11
|
-
title: zod_1.z.string(),
|
|
12
|
-
colorIds: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
13
|
-
sizeId: zod_1.z.number().nullish()
|
|
14
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {z} from "zod"
|
|
2
|
-
|
|
3
|
-
export const ImageAnalysisCompletionSchema = z.object({
|
|
4
|
-
brand: z.string(),
|
|
5
|
-
catalogId: z.number(),
|
|
6
|
-
description: z.string(),
|
|
7
|
-
packageSizeId: z.number(),
|
|
8
|
-
statusId: z.number(),
|
|
9
|
-
title: z.string(),
|
|
10
|
-
colorIds: z.array(z.number()).nullish(),
|
|
11
|
-
sizeId: z.number().nullish()
|
|
12
|
-
})
|
|
13
|
-
export type ImageAnalysisCompletion = z.infer<typeof ImageAnalysisCompletionSchema>
|