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
|
@@ -16,9 +16,9 @@ export declare const ModelProductFields: {
|
|
|
16
16
|
product_id: "product_id";
|
|
17
17
|
category_id: "category_id";
|
|
18
18
|
brand_id: "brand_id";
|
|
19
|
+
product_code: "product_code";
|
|
19
20
|
product_name: "product_name";
|
|
20
21
|
summary: "summary";
|
|
21
|
-
product_code: "product_code";
|
|
22
22
|
};
|
|
23
23
|
export type ModelProduct = products;
|
|
24
24
|
export type ModelProductOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
@@ -46,7 +46,7 @@ export type ModelProductListProps = {
|
|
|
46
46
|
};
|
|
47
47
|
export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
48
48
|
selectedPrisma: any;
|
|
49
|
-
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "
|
|
49
|
+
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "product_code" | "product_name" | "summary";
|
|
50
50
|
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
51
51
|
name: string;
|
|
52
52
|
type: string;
|
|
@@ -61,15 +61,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
61
61
|
isdelete: boolean | null;
|
|
62
62
|
istrash: boolean | null;
|
|
63
63
|
accountid: bigint;
|
|
64
|
-
status:
|
|
64
|
+
status: boolean | null;
|
|
65
65
|
model: string | null;
|
|
66
66
|
description: string | null;
|
|
67
67
|
product_id: bigint;
|
|
68
68
|
category_id: bigint;
|
|
69
|
-
brand_id: bigint
|
|
69
|
+
brand_id: bigint;
|
|
70
|
+
product_code: string;
|
|
70
71
|
product_name: string;
|
|
71
72
|
summary: string | null;
|
|
72
|
-
product_code: string | null;
|
|
73
73
|
}>;
|
|
74
74
|
createMany: ({ dataList, disableRollback, }: {
|
|
75
75
|
dataList: Omit<any, DefaultOmitFields>[];
|
|
@@ -82,15 +82,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
82
82
|
isdelete: boolean | null;
|
|
83
83
|
istrash: boolean | null;
|
|
84
84
|
accountid: bigint;
|
|
85
|
-
status:
|
|
85
|
+
status: boolean | null;
|
|
86
86
|
model: string | null;
|
|
87
87
|
description: string | null;
|
|
88
88
|
product_id: bigint;
|
|
89
89
|
category_id: bigint;
|
|
90
|
-
brand_id: bigint
|
|
90
|
+
brand_id: bigint;
|
|
91
|
+
product_code: string;
|
|
91
92
|
product_name: string;
|
|
92
93
|
summary: string | null;
|
|
93
|
-
product_code: string | null;
|
|
94
94
|
}[]>;
|
|
95
95
|
get: ({ id, where, include, }: {
|
|
96
96
|
id?: number;
|
|
@@ -104,15 +104,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
104
104
|
isdelete: boolean | null;
|
|
105
105
|
istrash: boolean | null;
|
|
106
106
|
accountid: bigint;
|
|
107
|
-
status:
|
|
107
|
+
status: boolean | null;
|
|
108
108
|
model: string | null;
|
|
109
109
|
description: string | null;
|
|
110
110
|
product_id: bigint;
|
|
111
111
|
category_id: bigint;
|
|
112
|
-
brand_id: bigint
|
|
112
|
+
brand_id: bigint;
|
|
113
|
+
product_code: string;
|
|
113
114
|
product_name: string;
|
|
114
115
|
summary: string | null;
|
|
115
|
-
product_code: string | null;
|
|
116
116
|
} | null>;
|
|
117
117
|
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
118
118
|
createdatetime: Date | null;
|
|
@@ -122,21 +122,21 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
122
122
|
isdelete: boolean | null;
|
|
123
123
|
istrash: boolean | null;
|
|
124
124
|
accountid: bigint;
|
|
125
|
-
status:
|
|
125
|
+
status: boolean | null;
|
|
126
126
|
model: string | null;
|
|
127
127
|
description: string | null;
|
|
128
128
|
product_id: bigint;
|
|
129
129
|
category_id: bigint;
|
|
130
|
-
brand_id: bigint
|
|
130
|
+
brand_id: bigint;
|
|
131
|
+
product_code: string;
|
|
131
132
|
product_name: string;
|
|
132
133
|
summary: string | null;
|
|
133
|
-
product_code: string | null;
|
|
134
134
|
}[]>;
|
|
135
135
|
count: ({ where, }?: {
|
|
136
136
|
where?: Record<string, any>;
|
|
137
137
|
}) => Promise<number>;
|
|
138
138
|
aggregate: ({ field, operation, where, }: {
|
|
139
|
-
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "
|
|
139
|
+
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "model" | "description" | "product_id" | "category_id" | "brand_id" | "product_code" | "product_name" | "summary";
|
|
140
140
|
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
141
141
|
where?: Record<string, any>;
|
|
142
142
|
}) => Promise<number>;
|
|
@@ -151,15 +151,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
151
151
|
isdelete: boolean | null;
|
|
152
152
|
istrash: boolean | null;
|
|
153
153
|
accountid: bigint;
|
|
154
|
-
status:
|
|
154
|
+
status: boolean | null;
|
|
155
155
|
model: string | null;
|
|
156
156
|
description: string | null;
|
|
157
157
|
product_id: bigint;
|
|
158
158
|
category_id: bigint;
|
|
159
|
-
brand_id: bigint
|
|
159
|
+
brand_id: bigint;
|
|
160
|
+
product_code: string;
|
|
160
161
|
product_name: string;
|
|
161
162
|
summary: string | null;
|
|
162
|
-
product_code: string | null;
|
|
163
163
|
}>;
|
|
164
164
|
disableRollback?: boolean;
|
|
165
165
|
}) => Promise<{
|
|
@@ -170,15 +170,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
170
170
|
isdelete: boolean | null;
|
|
171
171
|
istrash: boolean | null;
|
|
172
172
|
accountid: bigint;
|
|
173
|
-
status:
|
|
173
|
+
status: boolean | null;
|
|
174
174
|
model: string | null;
|
|
175
175
|
description: string | null;
|
|
176
176
|
product_id: bigint;
|
|
177
177
|
category_id: bigint;
|
|
178
|
-
brand_id: bigint
|
|
178
|
+
brand_id: bigint;
|
|
179
|
+
product_code: string;
|
|
179
180
|
product_name: string;
|
|
180
181
|
summary: string | null;
|
|
181
|
-
product_code: string | null;
|
|
182
182
|
}>;
|
|
183
183
|
updateMany: ({ dataList, disableRollback, }: {
|
|
184
184
|
dataList: {
|
|
@@ -191,15 +191,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
191
191
|
isdelete: boolean | null;
|
|
192
192
|
istrash: boolean | null;
|
|
193
193
|
accountid: bigint;
|
|
194
|
-
status:
|
|
194
|
+
status: boolean | null;
|
|
195
195
|
model: string | null;
|
|
196
196
|
description: string | null;
|
|
197
197
|
product_id: bigint;
|
|
198
198
|
category_id: bigint;
|
|
199
|
-
brand_id: bigint
|
|
199
|
+
brand_id: bigint;
|
|
200
|
+
product_code: string;
|
|
200
201
|
product_name: string;
|
|
201
202
|
summary: string | null;
|
|
202
|
-
product_code: string | null;
|
|
203
203
|
}>;
|
|
204
204
|
}[];
|
|
205
205
|
disableRollback?: boolean;
|
|
@@ -211,15 +211,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
211
211
|
isdelete: boolean | null;
|
|
212
212
|
istrash: boolean | null;
|
|
213
213
|
accountid: bigint;
|
|
214
|
-
status:
|
|
214
|
+
status: boolean | null;
|
|
215
215
|
model: string | null;
|
|
216
216
|
description: string | null;
|
|
217
217
|
product_id: bigint;
|
|
218
218
|
category_id: bigint;
|
|
219
|
-
brand_id: bigint
|
|
219
|
+
brand_id: bigint;
|
|
220
|
+
product_code: string;
|
|
220
221
|
product_name: string;
|
|
221
222
|
summary: string | null;
|
|
222
|
-
product_code: string | null;
|
|
223
223
|
}[]>;
|
|
224
224
|
trash: ({ ids }: {
|
|
225
225
|
ids: number[];
|
|
@@ -231,15 +231,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
231
231
|
isdelete: boolean | null;
|
|
232
232
|
istrash: boolean | null;
|
|
233
233
|
accountid: bigint;
|
|
234
|
-
status:
|
|
234
|
+
status: boolean | null;
|
|
235
235
|
model: string | null;
|
|
236
236
|
description: string | null;
|
|
237
237
|
product_id: bigint;
|
|
238
238
|
category_id: bigint;
|
|
239
|
-
brand_id: bigint
|
|
239
|
+
brand_id: bigint;
|
|
240
|
+
product_code: string;
|
|
240
241
|
product_name: string;
|
|
241
242
|
summary: string | null;
|
|
242
|
-
product_code: string | null;
|
|
243
243
|
}[]>;
|
|
244
244
|
remove: ({ ids, where }: {
|
|
245
245
|
ids?: number[];
|
|
@@ -252,15 +252,15 @@ export declare const ProductModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
252
252
|
isdelete: boolean | null;
|
|
253
253
|
istrash: boolean | null;
|
|
254
254
|
accountid: bigint;
|
|
255
|
-
status:
|
|
255
|
+
status: boolean | null;
|
|
256
256
|
model: string | null;
|
|
257
257
|
description: string | null;
|
|
258
258
|
product_id: bigint;
|
|
259
259
|
category_id: bigint;
|
|
260
|
-
brand_id: bigint
|
|
260
|
+
brand_id: bigint;
|
|
261
|
+
product_code: string;
|
|
261
262
|
product_name: string;
|
|
262
263
|
summary: string | null;
|
|
263
|
-
product_code: string | null;
|
|
264
264
|
}[]>;
|
|
265
265
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
266
266
|
};
|
|
@@ -11,9 +11,10 @@ export declare const ModelUomFields: {
|
|
|
11
11
|
istrash: "istrash";
|
|
12
12
|
accountid: "accountid";
|
|
13
13
|
status: "status";
|
|
14
|
-
name: "name";
|
|
15
14
|
description: "description";
|
|
16
15
|
uom_id: "uom_id";
|
|
16
|
+
uom_name: "uom_name";
|
|
17
|
+
uom_code: "uom_code";
|
|
17
18
|
metric_type: "metric_type";
|
|
18
19
|
metric_type_display_name: "metric_type_display_name";
|
|
19
20
|
decimal_digit: "decimal_digit";
|
|
@@ -44,7 +45,7 @@ export type ModelUomListProps = {
|
|
|
44
45
|
};
|
|
45
46
|
export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
46
47
|
selectedPrisma: any;
|
|
47
|
-
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "
|
|
48
|
+
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "description" | "uom_id" | "uom_name" | "uom_code" | "metric_type" | "metric_type_display_name" | "decimal_digit";
|
|
48
49
|
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
49
50
|
name: string;
|
|
50
51
|
type: string;
|
|
@@ -59,13 +60,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
59
60
|
isdelete: boolean | null;
|
|
60
61
|
istrash: boolean | null;
|
|
61
62
|
accountid: bigint;
|
|
62
|
-
status:
|
|
63
|
-
name: string | null;
|
|
63
|
+
status: boolean | null;
|
|
64
64
|
description: string | null;
|
|
65
65
|
uom_id: bigint;
|
|
66
|
+
uom_name: string | null;
|
|
67
|
+
uom_code: string;
|
|
66
68
|
metric_type: string | null;
|
|
67
69
|
metric_type_display_name: string | null;
|
|
68
|
-
decimal_digit: number
|
|
70
|
+
decimal_digit: number;
|
|
69
71
|
}>;
|
|
70
72
|
createMany: ({ dataList, disableRollback, }: {
|
|
71
73
|
dataList: Omit<any, DefaultOmitFields>[];
|
|
@@ -78,13 +80,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
78
80
|
isdelete: boolean | null;
|
|
79
81
|
istrash: boolean | null;
|
|
80
82
|
accountid: bigint;
|
|
81
|
-
status:
|
|
82
|
-
name: string | null;
|
|
83
|
+
status: boolean | null;
|
|
83
84
|
description: string | null;
|
|
84
85
|
uom_id: bigint;
|
|
86
|
+
uom_name: string | null;
|
|
87
|
+
uom_code: string;
|
|
85
88
|
metric_type: string | null;
|
|
86
89
|
metric_type_display_name: string | null;
|
|
87
|
-
decimal_digit: number
|
|
90
|
+
decimal_digit: number;
|
|
88
91
|
}[]>;
|
|
89
92
|
get: ({ id, where, include, }: {
|
|
90
93
|
id?: number;
|
|
@@ -98,13 +101,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
98
101
|
isdelete: boolean | null;
|
|
99
102
|
istrash: boolean | null;
|
|
100
103
|
accountid: bigint;
|
|
101
|
-
status:
|
|
102
|
-
name: string | null;
|
|
104
|
+
status: boolean | null;
|
|
103
105
|
description: string | null;
|
|
104
106
|
uom_id: bigint;
|
|
107
|
+
uom_name: string | null;
|
|
108
|
+
uom_code: string;
|
|
105
109
|
metric_type: string | null;
|
|
106
110
|
metric_type_display_name: string | null;
|
|
107
|
-
decimal_digit: number
|
|
111
|
+
decimal_digit: number;
|
|
108
112
|
} | null>;
|
|
109
113
|
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
110
114
|
createdatetime: Date | null;
|
|
@@ -114,19 +118,20 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
114
118
|
isdelete: boolean | null;
|
|
115
119
|
istrash: boolean | null;
|
|
116
120
|
accountid: bigint;
|
|
117
|
-
status:
|
|
118
|
-
name: string | null;
|
|
121
|
+
status: boolean | null;
|
|
119
122
|
description: string | null;
|
|
120
123
|
uom_id: bigint;
|
|
124
|
+
uom_name: string | null;
|
|
125
|
+
uom_code: string;
|
|
121
126
|
metric_type: string | null;
|
|
122
127
|
metric_type_display_name: string | null;
|
|
123
|
-
decimal_digit: number
|
|
128
|
+
decimal_digit: number;
|
|
124
129
|
}[]>;
|
|
125
130
|
count: ({ where, }?: {
|
|
126
131
|
where?: Record<string, any>;
|
|
127
132
|
}) => Promise<number>;
|
|
128
133
|
aggregate: ({ field, operation, where, }: {
|
|
129
|
-
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "
|
|
134
|
+
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "description" | "uom_id" | "uom_name" | "uom_code" | "metric_type" | "metric_type_display_name" | "decimal_digit";
|
|
130
135
|
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
131
136
|
where?: Record<string, any>;
|
|
132
137
|
}) => Promise<number>;
|
|
@@ -141,13 +146,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
141
146
|
isdelete: boolean | null;
|
|
142
147
|
istrash: boolean | null;
|
|
143
148
|
accountid: bigint;
|
|
144
|
-
status:
|
|
145
|
-
name: string | null;
|
|
149
|
+
status: boolean | null;
|
|
146
150
|
description: string | null;
|
|
147
151
|
uom_id: bigint;
|
|
152
|
+
uom_name: string | null;
|
|
153
|
+
uom_code: string;
|
|
148
154
|
metric_type: string | null;
|
|
149
155
|
metric_type_display_name: string | null;
|
|
150
|
-
decimal_digit: number
|
|
156
|
+
decimal_digit: number;
|
|
151
157
|
}>;
|
|
152
158
|
disableRollback?: boolean;
|
|
153
159
|
}) => Promise<{
|
|
@@ -158,13 +164,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
158
164
|
isdelete: boolean | null;
|
|
159
165
|
istrash: boolean | null;
|
|
160
166
|
accountid: bigint;
|
|
161
|
-
status:
|
|
162
|
-
name: string | null;
|
|
167
|
+
status: boolean | null;
|
|
163
168
|
description: string | null;
|
|
164
169
|
uom_id: bigint;
|
|
170
|
+
uom_name: string | null;
|
|
171
|
+
uom_code: string;
|
|
165
172
|
metric_type: string | null;
|
|
166
173
|
metric_type_display_name: string | null;
|
|
167
|
-
decimal_digit: number
|
|
174
|
+
decimal_digit: number;
|
|
168
175
|
}>;
|
|
169
176
|
updateMany: ({ dataList, disableRollback, }: {
|
|
170
177
|
dataList: {
|
|
@@ -177,13 +184,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
177
184
|
isdelete: boolean | null;
|
|
178
185
|
istrash: boolean | null;
|
|
179
186
|
accountid: bigint;
|
|
180
|
-
status:
|
|
181
|
-
name: string | null;
|
|
187
|
+
status: boolean | null;
|
|
182
188
|
description: string | null;
|
|
183
189
|
uom_id: bigint;
|
|
190
|
+
uom_name: string | null;
|
|
191
|
+
uom_code: string;
|
|
184
192
|
metric_type: string | null;
|
|
185
193
|
metric_type_display_name: string | null;
|
|
186
|
-
decimal_digit: number
|
|
194
|
+
decimal_digit: number;
|
|
187
195
|
}>;
|
|
188
196
|
}[];
|
|
189
197
|
disableRollback?: boolean;
|
|
@@ -195,13 +203,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
195
203
|
isdelete: boolean | null;
|
|
196
204
|
istrash: boolean | null;
|
|
197
205
|
accountid: bigint;
|
|
198
|
-
status:
|
|
199
|
-
name: string | null;
|
|
206
|
+
status: boolean | null;
|
|
200
207
|
description: string | null;
|
|
201
208
|
uom_id: bigint;
|
|
209
|
+
uom_name: string | null;
|
|
210
|
+
uom_code: string;
|
|
202
211
|
metric_type: string | null;
|
|
203
212
|
metric_type_display_name: string | null;
|
|
204
|
-
decimal_digit: number
|
|
213
|
+
decimal_digit: number;
|
|
205
214
|
}[]>;
|
|
206
215
|
trash: ({ ids }: {
|
|
207
216
|
ids: number[];
|
|
@@ -213,13 +222,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
213
222
|
isdelete: boolean | null;
|
|
214
223
|
istrash: boolean | null;
|
|
215
224
|
accountid: bigint;
|
|
216
|
-
status:
|
|
217
|
-
name: string | null;
|
|
225
|
+
status: boolean | null;
|
|
218
226
|
description: string | null;
|
|
219
227
|
uom_id: bigint;
|
|
228
|
+
uom_name: string | null;
|
|
229
|
+
uom_code: string;
|
|
220
230
|
metric_type: string | null;
|
|
221
231
|
metric_type_display_name: string | null;
|
|
222
|
-
decimal_digit: number
|
|
232
|
+
decimal_digit: number;
|
|
223
233
|
}[]>;
|
|
224
234
|
remove: ({ ids, where }: {
|
|
225
235
|
ids?: number[];
|
|
@@ -232,13 +242,14 @@ export declare const UomModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
232
242
|
isdelete: boolean | null;
|
|
233
243
|
istrash: boolean | null;
|
|
234
244
|
accountid: bigint;
|
|
235
|
-
status:
|
|
236
|
-
name: string | null;
|
|
245
|
+
status: boolean | null;
|
|
237
246
|
description: string | null;
|
|
238
247
|
uom_id: bigint;
|
|
248
|
+
uom_name: string | null;
|
|
249
|
+
uom_code: string;
|
|
239
250
|
metric_type: string | null;
|
|
240
251
|
metric_type_display_name: string | null;
|
|
241
|
-
decimal_digit: number
|
|
252
|
+
decimal_digit: number;
|
|
242
253
|
}[]>;
|
|
243
254
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
244
255
|
};
|
|
@@ -14,26 +14,31 @@ export declare const schemaItemBrandCreatePayload: z.ZodObject<{
|
|
|
14
14
|
payload: z.ZodObject<{
|
|
15
15
|
item_brand: z.ZodObject<{
|
|
16
16
|
name: z.ZodString;
|
|
17
|
+
code: z.ZodString;
|
|
17
18
|
description: z.ZodString;
|
|
18
|
-
status: z.
|
|
19
|
+
status: z.ZodBoolean;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
|
|
21
|
+
code: string;
|
|
22
|
+
status: boolean;
|
|
21
23
|
name: string;
|
|
22
24
|
description: string;
|
|
23
25
|
}, {
|
|
24
|
-
|
|
26
|
+
code: string;
|
|
27
|
+
status: boolean;
|
|
25
28
|
name: string;
|
|
26
29
|
description: string;
|
|
27
30
|
}>;
|
|
28
31
|
}, "strip", z.ZodTypeAny, {
|
|
29
32
|
item_brand: {
|
|
30
|
-
|
|
33
|
+
code: string;
|
|
34
|
+
status: boolean;
|
|
31
35
|
name: string;
|
|
32
36
|
description: string;
|
|
33
37
|
};
|
|
34
38
|
}, {
|
|
35
39
|
item_brand: {
|
|
36
|
-
|
|
40
|
+
code: string;
|
|
41
|
+
status: boolean;
|
|
37
42
|
name: string;
|
|
38
43
|
description: string;
|
|
39
44
|
};
|
|
@@ -45,7 +50,8 @@ export declare const schemaItemBrandCreatePayload: z.ZodObject<{
|
|
|
45
50
|
};
|
|
46
51
|
payload: {
|
|
47
52
|
item_brand: {
|
|
48
|
-
|
|
53
|
+
code: string;
|
|
54
|
+
status: boolean;
|
|
49
55
|
name: string;
|
|
50
56
|
description: string;
|
|
51
57
|
};
|
|
@@ -57,7 +63,8 @@ export declare const schemaItemBrandCreatePayload: z.ZodObject<{
|
|
|
57
63
|
};
|
|
58
64
|
payload: {
|
|
59
65
|
item_brand: {
|
|
60
|
-
|
|
66
|
+
code: string;
|
|
67
|
+
status: boolean;
|
|
61
68
|
name: string;
|
|
62
69
|
description: string;
|
|
63
70
|
};
|
|
@@ -79,28 +86,33 @@ export declare const schemaItemBrandUpdatePayload: z.ZodObject<{
|
|
|
79
86
|
payload: z.ZodObject<{
|
|
80
87
|
item_brand: z.ZodObject<{
|
|
81
88
|
name: z.ZodString;
|
|
89
|
+
code: z.ZodOptional<z.ZodString>;
|
|
82
90
|
description: z.ZodString;
|
|
83
|
-
status: z.
|
|
91
|
+
status: z.ZodBoolean;
|
|
84
92
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
status:
|
|
93
|
+
status: boolean;
|
|
86
94
|
name: string;
|
|
87
95
|
description: string;
|
|
96
|
+
code?: string | undefined;
|
|
88
97
|
}, {
|
|
89
|
-
status:
|
|
98
|
+
status: boolean;
|
|
90
99
|
name: string;
|
|
91
100
|
description: string;
|
|
101
|
+
code?: string | undefined;
|
|
92
102
|
}>;
|
|
93
103
|
}, "strip", z.ZodTypeAny, {
|
|
94
104
|
item_brand: {
|
|
95
|
-
status:
|
|
105
|
+
status: boolean;
|
|
96
106
|
name: string;
|
|
97
107
|
description: string;
|
|
108
|
+
code?: string | undefined;
|
|
98
109
|
};
|
|
99
110
|
}, {
|
|
100
111
|
item_brand: {
|
|
101
|
-
status:
|
|
112
|
+
status: boolean;
|
|
102
113
|
name: string;
|
|
103
114
|
description: string;
|
|
115
|
+
code?: string | undefined;
|
|
104
116
|
};
|
|
105
117
|
}>;
|
|
106
118
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -110,9 +122,10 @@ export declare const schemaItemBrandUpdatePayload: z.ZodObject<{
|
|
|
110
122
|
};
|
|
111
123
|
payload: {
|
|
112
124
|
item_brand: {
|
|
113
|
-
status:
|
|
125
|
+
status: boolean;
|
|
114
126
|
name: string;
|
|
115
127
|
description: string;
|
|
128
|
+
code?: string | undefined;
|
|
116
129
|
};
|
|
117
130
|
};
|
|
118
131
|
}, {
|
|
@@ -122,9 +135,10 @@ export declare const schemaItemBrandUpdatePayload: z.ZodObject<{
|
|
|
122
135
|
};
|
|
123
136
|
payload: {
|
|
124
137
|
item_brand: {
|
|
125
|
-
status:
|
|
138
|
+
status: boolean;
|
|
126
139
|
name: string;
|
|
127
140
|
description: string;
|
|
141
|
+
code?: string | undefined;
|
|
128
142
|
};
|
|
129
143
|
};
|
|
130
144
|
}>;
|
|
@@ -11,8 +11,9 @@ exports.schemaItemBrandCreatePayload = zod_1.z.object({
|
|
|
11
11
|
payload: zod_1.z.object({
|
|
12
12
|
item_brand: zod_1.z.object({
|
|
13
13
|
name: zod_1.z.string().min(1),
|
|
14
|
+
code: zod_1.z.string().min(1),
|
|
14
15
|
description: zod_1.z.string().min(1),
|
|
15
|
-
status: zod_1.z.
|
|
16
|
+
status: zod_1.z.boolean()
|
|
16
17
|
})
|
|
17
18
|
}),
|
|
18
19
|
});
|
|
@@ -25,8 +26,9 @@ exports.schemaItemBrandUpdatePayload = zod_1.z.object({
|
|
|
25
26
|
payload: zod_1.z.object({
|
|
26
27
|
item_brand: zod_1.z.object({
|
|
27
28
|
name: zod_1.z.string().min(1),
|
|
29
|
+
code: zod_1.z.string().min(1).optional(),
|
|
28
30
|
description: zod_1.z.string().min(1),
|
|
29
|
-
status: zod_1.z.
|
|
31
|
+
status: zod_1.z.boolean()
|
|
30
32
|
})
|
|
31
33
|
}),
|
|
32
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaItemBrand.js","sourceRoot":"","sources":["../../../../src/schema/payload/item/schemaItemBrand.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,aAAa;AACA,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;YACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACvB,
|
|
1
|
+
{"version":3,"file":"schemaItemBrand.js","sourceRoot":"","sources":["../../../../src/schema/payload/item/schemaItemBrand.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,aAAa;AACA,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;YACjB,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,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;YACjB,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 schemaItemBrandCreatePayload = z.object({\n scope: z.object({\n target: z.literal(\"brand\"),\n action: z.string(),\n }),\n payload: z.object({\n item_brand: z.object({\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 SchemaItemBrandCreatePayload = z.infer<typeof schemaItemBrandCreatePayload>;\n\n/** Update */\nexport const schemaItemBrandUpdatePayload = z.object({\n scope: z.object({\n target: z.literal(\"brand\"),\n action: z.string(),\n }),\n payload: z.object({\n item_brand: z.object({\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 SchemaItemBrandUpdatePayload = z.infer<typeof schemaItemBrandUpdatePayload>;"]}
|