storemw-core-api 1.0.170 → 1.0.171
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/dist/app.js +1 -1
- package/dist/app.js.map +1 -1
- package/dist/controllers/item/itemController.js +22 -10
- package/dist/controllers/item/itemController.js.map +1 -1
- package/dist/models/item/BrandModel.d.ts +34 -23
- package/dist/models/item/CategoryModel.d.ts +34 -23
- package/dist/models/item/ItemModel.d.ts +100 -78
- package/dist/models/item/ProductModel.d.ts +33 -33
- package/dist/models/item/UomModel.d.ts +44 -33
- package/dist/schema/payload/item/schemaItemBrand.d.ts +28 -14
- package/dist/schema/payload/item/schemaItemBrand.js +4 -2
- package/dist/schema/payload/item/schemaItemBrand.js.map +1 -1
- package/dist/schema/payload/item/schemaItemCategory.d.ts +28 -14
- package/dist/schema/payload/item/schemaItemCategory.js +4 -2
- package/dist/schema/payload/item/schemaItemCategory.js.map +1 -1
- package/dist/schema/payload/item/schemaItemItem.d.ts +65 -65
- package/dist/schema/payload/item/schemaItemItem.js +3 -3
- package/dist/schema/payload/item/schemaItemItem.js.map +1 -1
- package/dist/schema/payload/item/schemaItemProduct.d.ts +41 -41
- package/dist/schema/payload/item/schemaItemProduct.js +1 -1
- package/dist/schema/payload/item/schemaItemProduct.js.map +1 -1
- package/dist/schema/payload/item/schemaItemUom.d.ts +28 -14
- package/dist/schema/payload/item/schemaItemUom.js +4 -2
- package/dist/schema/payload/item/schemaItemUom.js.map +1 -1
- package/dist/services/item/ItemBrandService.d.ts +11 -6
- package/dist/services/item/ItemBrandService.js +35 -6
- package/dist/services/item/ItemBrandService.js.map +1 -1
- package/dist/services/item/ItemCategoryService.d.ts +11 -6
- package/dist/services/item/ItemCategoryService.js +37 -7
- package/dist/services/item/ItemCategoryService.js.map +1 -1
- package/dist/services/item/ItemItemService.d.ts +29 -23
- package/dist/services/item/ItemItemService.js +57 -16
- package/dist/services/item/ItemItemService.js.map +1 -1
- package/dist/services/item/ItemProductService.d.ts +9 -9
- package/dist/services/item/ItemProductService.js +11 -10
- package/dist/services/item/ItemProductService.js.map +1 -1
- package/dist/services/item/ItemService.js +39 -12
- package/dist/services/item/ItemService.js.map +1 -1
- package/dist/services/item/ItemUomService.d.ts +14 -9
- package/dist/services/item/ItemUomService.js +35 -5
- package/dist/services/item/ItemUomService.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +101 -92
|
@@ -15,29 +15,34 @@ export declare const schemaItemCategoryCreatePayload: z.ZodObject<{
|
|
|
15
15
|
item_category: z.ZodObject<{
|
|
16
16
|
parent_category_id: z.ZodString;
|
|
17
17
|
name: z.ZodString;
|
|
18
|
+
code: z.ZodString;
|
|
18
19
|
description: z.ZodString;
|
|
19
|
-
status: z.
|
|
20
|
+
status: z.ZodBoolean;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
|
|
22
|
+
code: string;
|
|
23
|
+
status: boolean;
|
|
22
24
|
name: string;
|
|
23
25
|
description: string;
|
|
24
26
|
parent_category_id: string;
|
|
25
27
|
}, {
|
|
26
|
-
|
|
28
|
+
code: string;
|
|
29
|
+
status: boolean;
|
|
27
30
|
name: string;
|
|
28
31
|
description: string;
|
|
29
32
|
parent_category_id: string;
|
|
30
33
|
}>;
|
|
31
34
|
}, "strip", z.ZodTypeAny, {
|
|
32
35
|
item_category: {
|
|
33
|
-
|
|
36
|
+
code: string;
|
|
37
|
+
status: boolean;
|
|
34
38
|
name: string;
|
|
35
39
|
description: string;
|
|
36
40
|
parent_category_id: string;
|
|
37
41
|
};
|
|
38
42
|
}, {
|
|
39
43
|
item_category: {
|
|
40
|
-
|
|
44
|
+
code: string;
|
|
45
|
+
status: boolean;
|
|
41
46
|
name: string;
|
|
42
47
|
description: string;
|
|
43
48
|
parent_category_id: string;
|
|
@@ -50,7 +55,8 @@ export declare const schemaItemCategoryCreatePayload: z.ZodObject<{
|
|
|
50
55
|
};
|
|
51
56
|
payload: {
|
|
52
57
|
item_category: {
|
|
53
|
-
|
|
58
|
+
code: string;
|
|
59
|
+
status: boolean;
|
|
54
60
|
name: string;
|
|
55
61
|
description: string;
|
|
56
62
|
parent_category_id: string;
|
|
@@ -63,7 +69,8 @@ export declare const schemaItemCategoryCreatePayload: z.ZodObject<{
|
|
|
63
69
|
};
|
|
64
70
|
payload: {
|
|
65
71
|
item_category: {
|
|
66
|
-
|
|
72
|
+
code: string;
|
|
73
|
+
status: boolean;
|
|
67
74
|
name: string;
|
|
68
75
|
description: string;
|
|
69
76
|
parent_category_id: string;
|
|
@@ -87,32 +94,37 @@ export declare const schemaItemCategoryUpdatePayload: z.ZodObject<{
|
|
|
87
94
|
item_category: z.ZodObject<{
|
|
88
95
|
parent_category_id: z.ZodString;
|
|
89
96
|
name: z.ZodString;
|
|
97
|
+
code: z.ZodOptional<z.ZodString>;
|
|
90
98
|
description: z.ZodString;
|
|
91
|
-
status: z.
|
|
99
|
+
status: z.ZodBoolean;
|
|
92
100
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
status:
|
|
101
|
+
status: boolean;
|
|
94
102
|
name: string;
|
|
95
103
|
description: string;
|
|
96
104
|
parent_category_id: string;
|
|
105
|
+
code?: string | undefined;
|
|
97
106
|
}, {
|
|
98
|
-
status:
|
|
107
|
+
status: boolean;
|
|
99
108
|
name: string;
|
|
100
109
|
description: string;
|
|
101
110
|
parent_category_id: string;
|
|
111
|
+
code?: string | undefined;
|
|
102
112
|
}>;
|
|
103
113
|
}, "strip", z.ZodTypeAny, {
|
|
104
114
|
item_category: {
|
|
105
|
-
status:
|
|
115
|
+
status: boolean;
|
|
106
116
|
name: string;
|
|
107
117
|
description: string;
|
|
108
118
|
parent_category_id: string;
|
|
119
|
+
code?: string | undefined;
|
|
109
120
|
};
|
|
110
121
|
}, {
|
|
111
122
|
item_category: {
|
|
112
|
-
status:
|
|
123
|
+
status: boolean;
|
|
113
124
|
name: string;
|
|
114
125
|
description: string;
|
|
115
126
|
parent_category_id: string;
|
|
127
|
+
code?: string | undefined;
|
|
116
128
|
};
|
|
117
129
|
}>;
|
|
118
130
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -122,10 +134,11 @@ export declare const schemaItemCategoryUpdatePayload: z.ZodObject<{
|
|
|
122
134
|
};
|
|
123
135
|
payload: {
|
|
124
136
|
item_category: {
|
|
125
|
-
status:
|
|
137
|
+
status: boolean;
|
|
126
138
|
name: string;
|
|
127
139
|
description: string;
|
|
128
140
|
parent_category_id: string;
|
|
141
|
+
code?: string | undefined;
|
|
129
142
|
};
|
|
130
143
|
};
|
|
131
144
|
}, {
|
|
@@ -135,10 +148,11 @@ export declare const schemaItemCategoryUpdatePayload: z.ZodObject<{
|
|
|
135
148
|
};
|
|
136
149
|
payload: {
|
|
137
150
|
item_category: {
|
|
138
|
-
status:
|
|
151
|
+
status: boolean;
|
|
139
152
|
name: string;
|
|
140
153
|
description: string;
|
|
141
154
|
parent_category_id: string;
|
|
155
|
+
code?: string | undefined;
|
|
142
156
|
};
|
|
143
157
|
};
|
|
144
158
|
}>;
|
|
@@ -12,8 +12,9 @@ exports.schemaItemCategoryCreatePayload = zod_1.z.object({
|
|
|
12
12
|
item_category: zod_1.z.object({
|
|
13
13
|
parent_category_id: zod_1.z.string().min(1),
|
|
14
14
|
name: zod_1.z.string().min(1),
|
|
15
|
+
code: zod_1.z.string().min(1),
|
|
15
16
|
description: zod_1.z.string().min(1),
|
|
16
|
-
status: zod_1.z.
|
|
17
|
+
status: zod_1.z.boolean()
|
|
17
18
|
})
|
|
18
19
|
}),
|
|
19
20
|
});
|
|
@@ -27,8 +28,9 @@ exports.schemaItemCategoryUpdatePayload = zod_1.z.object({
|
|
|
27
28
|
item_category: zod_1.z.object({
|
|
28
29
|
parent_category_id: zod_1.z.string().min(1),
|
|
29
30
|
name: zod_1.z.string().min(1),
|
|
31
|
+
code: zod_1.z.string().min(1).optional(),
|
|
30
32
|
description: zod_1.z.string().min(1),
|
|
31
|
-
status: zod_1.z.
|
|
33
|
+
status: zod_1.z.boolean()
|
|
32
34
|
})
|
|
33
35
|
}),
|
|
34
36
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaItemCategory.js","sourceRoot":"","sources":["../../../../src/schema/payload/item/schemaItemCategory.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,aAAa;AACA,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACvB,
|
|
1
|
+
{"version":3,"file":"schemaItemCategory.js","sourceRoot":"","sources":["../../../../src/schema/payload/item/schemaItemCategory.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,aAAa;AACA,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9B,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;SACtB,CAAC;KACL,CAAC;CACL,CAAC,CAAC;AAIH,aAAa;AACA,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YAClC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9B,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;SACtB,CAAC;KACL,CAAC;CACL,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { _, dayjs } from \"@/utils\";\n\n/** Create */\nexport const schemaItemCategoryCreatePayload = z.object({\n scope: z.object({\n target: z.literal(\"category\"),\n action: z.string(),\n }),\n payload: z.object({\n item_category: z.object({\n parent_category_id: z.string().min(1),\n name: z.string().min(1),\n code: z.string().min(1),\n description: z.string().min(1),\n status: z.boolean()\n })\n }),\n});\n\nexport type SchemaItemCategoryCreatePayload = z.infer<typeof schemaItemCategoryCreatePayload>;\n\n/** Update */\nexport const schemaItemCategoryUpdatePayload = z.object({\n scope: z.object({\n target: z.literal(\"category\"),\n action: z.string(),\n }),\n payload: z.object({\n item_category: z.object({\n parent_category_id: z.string().min(1),\n name: z.string().min(1),\n code: z.string().min(1).optional(),\n description: z.string().min(1),\n status: z.boolean()\n })\n }),\n});\n\nexport type SchemaItemCategoryUpdatePayload = z.infer<typeof schemaItemCategoryUpdatePayload>;"]}
|
|
@@ -3,12 +3,12 @@ export declare const schemaItemItem: z.ZodObject<{
|
|
|
3
3
|
productId: z.ZodNumber;
|
|
4
4
|
itemCode: z.ZodString;
|
|
5
5
|
uomId: z.ZodNumber;
|
|
6
|
-
status: z.
|
|
7
|
-
isPackage: z.
|
|
6
|
+
status: z.ZodBoolean;
|
|
7
|
+
isPackage: z.ZodBoolean;
|
|
8
8
|
itemDescription: z.ZodString;
|
|
9
9
|
remark: z.ZodString;
|
|
10
10
|
cost: z.ZodNumber;
|
|
11
|
-
|
|
11
|
+
itemPrice: z.ZodNumber;
|
|
12
12
|
floorPrice: z.ZodNumber;
|
|
13
13
|
grossWeight: z.ZodNumber;
|
|
14
14
|
volumeWeight: z.ZodNumber;
|
|
@@ -18,16 +18,16 @@ export declare const schemaItemItem: z.ZodObject<{
|
|
|
18
18
|
dimensionLength: z.ZodNumber;
|
|
19
19
|
cbm: z.ZodNumber;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
status:
|
|
21
|
+
status: boolean;
|
|
22
22
|
remark: string;
|
|
23
|
-
cost: number;
|
|
24
23
|
cbm: number;
|
|
25
24
|
itemCode: string;
|
|
26
25
|
uomId: number;
|
|
27
|
-
|
|
26
|
+
cost: number;
|
|
28
27
|
productId: number;
|
|
29
|
-
isPackage:
|
|
28
|
+
isPackage: boolean;
|
|
30
29
|
itemDescription: string;
|
|
30
|
+
itemPrice: number;
|
|
31
31
|
floorPrice: number;
|
|
32
32
|
grossWeight: number;
|
|
33
33
|
volumeWeight: number;
|
|
@@ -36,16 +36,16 @@ export declare const schemaItemItem: z.ZodObject<{
|
|
|
36
36
|
dimensionHeight: number;
|
|
37
37
|
dimensionLength: number;
|
|
38
38
|
}, {
|
|
39
|
-
status:
|
|
39
|
+
status: boolean;
|
|
40
40
|
remark: string;
|
|
41
|
-
cost: number;
|
|
42
41
|
cbm: number;
|
|
43
42
|
itemCode: string;
|
|
44
43
|
uomId: number;
|
|
45
|
-
|
|
44
|
+
cost: number;
|
|
46
45
|
productId: number;
|
|
47
|
-
isPackage:
|
|
46
|
+
isPackage: boolean;
|
|
48
47
|
itemDescription: string;
|
|
48
|
+
itemPrice: number;
|
|
49
49
|
floorPrice: number;
|
|
50
50
|
grossWeight: number;
|
|
51
51
|
volumeWeight: number;
|
|
@@ -71,12 +71,12 @@ export declare const schemaItemItemCreatePayload: z.ZodObject<{
|
|
|
71
71
|
productId: z.ZodNumber;
|
|
72
72
|
itemCode: z.ZodString;
|
|
73
73
|
uomId: z.ZodNumber;
|
|
74
|
-
status: z.
|
|
75
|
-
isPackage: z.
|
|
74
|
+
status: z.ZodBoolean;
|
|
75
|
+
isPackage: z.ZodBoolean;
|
|
76
76
|
itemDescription: z.ZodString;
|
|
77
77
|
remark: z.ZodString;
|
|
78
78
|
cost: z.ZodNumber;
|
|
79
|
-
|
|
79
|
+
itemPrice: z.ZodNumber;
|
|
80
80
|
floorPrice: z.ZodNumber;
|
|
81
81
|
grossWeight: z.ZodNumber;
|
|
82
82
|
volumeWeight: z.ZodNumber;
|
|
@@ -86,16 +86,16 @@ export declare const schemaItemItemCreatePayload: z.ZodObject<{
|
|
|
86
86
|
dimensionLength: z.ZodNumber;
|
|
87
87
|
cbm: z.ZodNumber;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
status:
|
|
89
|
+
status: boolean;
|
|
90
90
|
remark: string;
|
|
91
|
-
cost: number;
|
|
92
91
|
cbm: number;
|
|
93
92
|
itemCode: string;
|
|
94
93
|
uomId: number;
|
|
95
|
-
|
|
94
|
+
cost: number;
|
|
96
95
|
productId: number;
|
|
97
|
-
isPackage:
|
|
96
|
+
isPackage: boolean;
|
|
98
97
|
itemDescription: string;
|
|
98
|
+
itemPrice: number;
|
|
99
99
|
floorPrice: number;
|
|
100
100
|
grossWeight: number;
|
|
101
101
|
volumeWeight: number;
|
|
@@ -104,16 +104,16 @@ export declare const schemaItemItemCreatePayload: z.ZodObject<{
|
|
|
104
104
|
dimensionHeight: number;
|
|
105
105
|
dimensionLength: number;
|
|
106
106
|
}, {
|
|
107
|
-
status:
|
|
107
|
+
status: boolean;
|
|
108
108
|
remark: string;
|
|
109
|
-
cost: number;
|
|
110
109
|
cbm: number;
|
|
111
110
|
itemCode: string;
|
|
112
111
|
uomId: number;
|
|
113
|
-
|
|
112
|
+
cost: number;
|
|
114
113
|
productId: number;
|
|
115
|
-
isPackage:
|
|
114
|
+
isPackage: boolean;
|
|
116
115
|
itemDescription: string;
|
|
116
|
+
itemPrice: number;
|
|
117
117
|
floorPrice: number;
|
|
118
118
|
grossWeight: number;
|
|
119
119
|
volumeWeight: number;
|
|
@@ -124,16 +124,16 @@ export declare const schemaItemItemCreatePayload: z.ZodObject<{
|
|
|
124
124
|
}>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
126
|
item: {
|
|
127
|
-
status:
|
|
127
|
+
status: boolean;
|
|
128
128
|
remark: string;
|
|
129
|
-
cost: number;
|
|
130
129
|
cbm: number;
|
|
131
130
|
itemCode: string;
|
|
132
131
|
uomId: number;
|
|
133
|
-
|
|
132
|
+
cost: number;
|
|
134
133
|
productId: number;
|
|
135
|
-
isPackage:
|
|
134
|
+
isPackage: boolean;
|
|
136
135
|
itemDescription: string;
|
|
136
|
+
itemPrice: number;
|
|
137
137
|
floorPrice: number;
|
|
138
138
|
grossWeight: number;
|
|
139
139
|
volumeWeight: number;
|
|
@@ -144,16 +144,16 @@ export declare const schemaItemItemCreatePayload: z.ZodObject<{
|
|
|
144
144
|
};
|
|
145
145
|
}, {
|
|
146
146
|
item: {
|
|
147
|
-
status:
|
|
147
|
+
status: boolean;
|
|
148
148
|
remark: string;
|
|
149
|
-
cost: number;
|
|
150
149
|
cbm: number;
|
|
151
150
|
itemCode: string;
|
|
152
151
|
uomId: number;
|
|
153
|
-
|
|
152
|
+
cost: number;
|
|
154
153
|
productId: number;
|
|
155
|
-
isPackage:
|
|
154
|
+
isPackage: boolean;
|
|
156
155
|
itemDescription: string;
|
|
156
|
+
itemPrice: number;
|
|
157
157
|
floorPrice: number;
|
|
158
158
|
grossWeight: number;
|
|
159
159
|
volumeWeight: number;
|
|
@@ -170,16 +170,16 @@ export declare const schemaItemItemCreatePayload: z.ZodObject<{
|
|
|
170
170
|
};
|
|
171
171
|
payload: {
|
|
172
172
|
item: {
|
|
173
|
-
status:
|
|
173
|
+
status: boolean;
|
|
174
174
|
remark: string;
|
|
175
|
-
cost: number;
|
|
176
175
|
cbm: number;
|
|
177
176
|
itemCode: string;
|
|
178
177
|
uomId: number;
|
|
179
|
-
|
|
178
|
+
cost: number;
|
|
180
179
|
productId: number;
|
|
181
|
-
isPackage:
|
|
180
|
+
isPackage: boolean;
|
|
182
181
|
itemDescription: string;
|
|
182
|
+
itemPrice: number;
|
|
183
183
|
floorPrice: number;
|
|
184
184
|
grossWeight: number;
|
|
185
185
|
volumeWeight: number;
|
|
@@ -196,16 +196,16 @@ export declare const schemaItemItemCreatePayload: z.ZodObject<{
|
|
|
196
196
|
};
|
|
197
197
|
payload: {
|
|
198
198
|
item: {
|
|
199
|
-
status:
|
|
199
|
+
status: boolean;
|
|
200
200
|
remark: string;
|
|
201
|
-
cost: number;
|
|
202
201
|
cbm: number;
|
|
203
202
|
itemCode: string;
|
|
204
203
|
uomId: number;
|
|
205
|
-
|
|
204
|
+
cost: number;
|
|
206
205
|
productId: number;
|
|
207
|
-
isPackage:
|
|
206
|
+
isPackage: boolean;
|
|
208
207
|
itemDescription: string;
|
|
208
|
+
itemPrice: number;
|
|
209
209
|
floorPrice: number;
|
|
210
210
|
grossWeight: number;
|
|
211
211
|
volumeWeight: number;
|
|
@@ -234,12 +234,12 @@ export declare const schemaItemItemUpdatePayload: z.ZodObject<{
|
|
|
234
234
|
productId: z.ZodNumber;
|
|
235
235
|
itemCode: z.ZodString;
|
|
236
236
|
uomId: z.ZodNumber;
|
|
237
|
-
status: z.
|
|
238
|
-
isPackage: z.
|
|
237
|
+
status: z.ZodBoolean;
|
|
238
|
+
isPackage: z.ZodBoolean;
|
|
239
239
|
itemDescription: z.ZodString;
|
|
240
240
|
remark: z.ZodString;
|
|
241
241
|
cost: z.ZodNumber;
|
|
242
|
-
|
|
242
|
+
itemPrice: z.ZodNumber;
|
|
243
243
|
floorPrice: z.ZodNumber;
|
|
244
244
|
grossWeight: z.ZodNumber;
|
|
245
245
|
volumeWeight: z.ZodNumber;
|
|
@@ -249,14 +249,14 @@ export declare const schemaItemItemUpdatePayload: z.ZodObject<{
|
|
|
249
249
|
dimensionLength: z.ZodNumber;
|
|
250
250
|
cbm: z.ZodNumber;
|
|
251
251
|
}, "uomId" | "productId">, "strip", z.ZodTypeAny, {
|
|
252
|
-
status:
|
|
252
|
+
status: boolean;
|
|
253
253
|
remark: string;
|
|
254
|
-
cost: number;
|
|
255
254
|
cbm: number;
|
|
256
255
|
itemCode: string;
|
|
257
|
-
|
|
258
|
-
isPackage:
|
|
256
|
+
cost: number;
|
|
257
|
+
isPackage: boolean;
|
|
259
258
|
itemDescription: string;
|
|
259
|
+
itemPrice: number;
|
|
260
260
|
floorPrice: number;
|
|
261
261
|
grossWeight: number;
|
|
262
262
|
volumeWeight: number;
|
|
@@ -265,14 +265,14 @@ export declare const schemaItemItemUpdatePayload: z.ZodObject<{
|
|
|
265
265
|
dimensionHeight: number;
|
|
266
266
|
dimensionLength: number;
|
|
267
267
|
}, {
|
|
268
|
-
status:
|
|
268
|
+
status: boolean;
|
|
269
269
|
remark: string;
|
|
270
|
-
cost: number;
|
|
271
270
|
cbm: number;
|
|
272
271
|
itemCode: string;
|
|
273
|
-
|
|
274
|
-
isPackage:
|
|
272
|
+
cost: number;
|
|
273
|
+
isPackage: boolean;
|
|
275
274
|
itemDescription: string;
|
|
275
|
+
itemPrice: number;
|
|
276
276
|
floorPrice: number;
|
|
277
277
|
grossWeight: number;
|
|
278
278
|
volumeWeight: number;
|
|
@@ -283,14 +283,14 @@ export declare const schemaItemItemUpdatePayload: z.ZodObject<{
|
|
|
283
283
|
}>;
|
|
284
284
|
}, "strip", z.ZodTypeAny, {
|
|
285
285
|
item: {
|
|
286
|
-
status:
|
|
286
|
+
status: boolean;
|
|
287
287
|
remark: string;
|
|
288
|
-
cost: number;
|
|
289
288
|
cbm: number;
|
|
290
289
|
itemCode: string;
|
|
291
|
-
|
|
292
|
-
isPackage:
|
|
290
|
+
cost: number;
|
|
291
|
+
isPackage: boolean;
|
|
293
292
|
itemDescription: string;
|
|
293
|
+
itemPrice: number;
|
|
294
294
|
floorPrice: number;
|
|
295
295
|
grossWeight: number;
|
|
296
296
|
volumeWeight: number;
|
|
@@ -301,14 +301,14 @@ export declare const schemaItemItemUpdatePayload: z.ZodObject<{
|
|
|
301
301
|
};
|
|
302
302
|
}, {
|
|
303
303
|
item: {
|
|
304
|
-
status:
|
|
304
|
+
status: boolean;
|
|
305
305
|
remark: string;
|
|
306
|
-
cost: number;
|
|
307
306
|
cbm: number;
|
|
308
307
|
itemCode: string;
|
|
309
|
-
|
|
310
|
-
isPackage:
|
|
308
|
+
cost: number;
|
|
309
|
+
isPackage: boolean;
|
|
311
310
|
itemDescription: string;
|
|
311
|
+
itemPrice: number;
|
|
312
312
|
floorPrice: number;
|
|
313
313
|
grossWeight: number;
|
|
314
314
|
volumeWeight: number;
|
|
@@ -325,14 +325,14 @@ export declare const schemaItemItemUpdatePayload: z.ZodObject<{
|
|
|
325
325
|
};
|
|
326
326
|
payload: {
|
|
327
327
|
item: {
|
|
328
|
-
status:
|
|
328
|
+
status: boolean;
|
|
329
329
|
remark: string;
|
|
330
|
-
cost: number;
|
|
331
330
|
cbm: number;
|
|
332
331
|
itemCode: string;
|
|
333
|
-
|
|
334
|
-
isPackage:
|
|
332
|
+
cost: number;
|
|
333
|
+
isPackage: boolean;
|
|
335
334
|
itemDescription: string;
|
|
335
|
+
itemPrice: number;
|
|
336
336
|
floorPrice: number;
|
|
337
337
|
grossWeight: number;
|
|
338
338
|
volumeWeight: number;
|
|
@@ -349,14 +349,14 @@ export declare const schemaItemItemUpdatePayload: z.ZodObject<{
|
|
|
349
349
|
};
|
|
350
350
|
payload: {
|
|
351
351
|
item: {
|
|
352
|
-
status:
|
|
352
|
+
status: boolean;
|
|
353
353
|
remark: string;
|
|
354
|
-
cost: number;
|
|
355
354
|
cbm: number;
|
|
356
355
|
itemCode: string;
|
|
357
|
-
|
|
358
|
-
isPackage:
|
|
356
|
+
cost: number;
|
|
357
|
+
isPackage: boolean;
|
|
359
358
|
itemDescription: string;
|
|
359
|
+
itemPrice: number;
|
|
360
360
|
floorPrice: number;
|
|
361
361
|
grossWeight: number;
|
|
362
362
|
volumeWeight: number;
|
|
@@ -6,12 +6,12 @@ exports.schemaItemItem = zod_1.z.object({
|
|
|
6
6
|
productId: zod_1.z.number(),
|
|
7
7
|
itemCode: zod_1.z.string(),
|
|
8
8
|
uomId: zod_1.z.number(),
|
|
9
|
-
status: zod_1.z.
|
|
10
|
-
isPackage: zod_1.z.
|
|
9
|
+
status: zod_1.z.boolean(),
|
|
10
|
+
isPackage: zod_1.z.boolean(),
|
|
11
11
|
itemDescription: zod_1.z.string(),
|
|
12
12
|
remark: zod_1.z.string(),
|
|
13
13
|
cost: zod_1.z.number(),
|
|
14
|
-
|
|
14
|
+
itemPrice: zod_1.z.number(),
|
|
15
15
|
floorPrice: zod_1.z.number(),
|
|
16
16
|
grossWeight: zod_1.z.number(),
|
|
17
17
|
volumeWeight: zod_1.z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaItemItem.js","sourceRoot":"","sources":["../../../../src/schema/payload/item/schemaItemItem.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"schemaItemItem.js","sourceRoot":"","sources":["../../../../src/schema/payload/item/schemaItemItem.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAA;AAEF,aAAa;AACA,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAI,eAAe;QAC5C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,sBAAc;KACvB,CAAC;CACL,CAAC,CAAC;AAIH,aAAa;AACA,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAI,eAAe;QAC5C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,sBAAc,CAAC,IAAI,CAAC;YACtB,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,IAAI;SACd,CAAC;KACL,CAAC;CACL,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { _, dayjs } from \"@/utils\";\n\nexport const schemaItemItem = z.object({\n productId: z.number(),\n itemCode: z.string(),\n uomId: z.number(),\n status: z.boolean(),\n isPackage: z.boolean(),\n itemDescription: z.string(),\n remark: z.string(),\n cost: z.number(),\n itemPrice: z.number(),\n floorPrice: z.number(),\n grossWeight: z.number(),\n volumeWeight: z.number(),\n netWeight: z.number(),\n dimensionWidth: z.number(),\n dimensionHeight: z.number(),\n dimensionLength: z.number(),\n cbm: z.number()\n})\n\n/** Create */\nexport const schemaItemItemCreatePayload = z.object({\n scope: z.object({\n target: z.literal(\"item\"), // e.g., \"item\"\n action: z.string().optional(),\n }),\n payload: z.object({\n item: schemaItemItem\n }),\n});\n\nexport type SchemaItemItemCreatePayload = z.infer<typeof schemaItemItemCreatePayload>;\n\n/** Update */\nexport const schemaItemItemUpdatePayload = z.object({\n scope: z.object({\n target: z.literal(\"item\"), // e.g., \"item\"\n action: z.string().optional(),\n }),\n payload: z.object({\n item: schemaItemItem.omit({\n productId: true,\n uomId: true\n })\n }),\n});\n\nexport type SchemaItemItemUpdatePayload = z.infer<typeof schemaItemItemUpdatePayload>;"]}
|