@pksep/zod-shared 0.0.556 → 0.0.558
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/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +4 -1
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +3 -0
- package/dist/cbed/dto/get-deficit.dto.d.ts +4 -1
- package/dist/cbed/dto/get-deficit.dto.js +4 -1
- package/dist/detal/dto/get-deficit.dto.d.ts +4 -1
- package/dist/detal/dto/get-deficit.dto.js +4 -1
- package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
- package/dist/issue/dto/up-create-issue.dto.js +21 -0
- package/dist/issue/index.d.ts +5 -0
- package/dist/issue/index.js +21 -0
- package/dist/issue/interfaces/interface.d.ts +4 -0
- package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
- package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
- package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
- package/dist/issue/schemas/issue-user.schema.js +9 -0
- package/dist/issue/schemas/issue.schema.d.ts +51 -0
- package/dist/issue/schemas/issue.schema.js +21 -0
- package/dist/library/dto/create-chapter.dto.d.ts +12 -0
- package/dist/library/dto/create-chapter.dto.js +8 -0
- package/dist/library/dto/create-link.dto.d.ts +30 -0
- package/dist/library/dto/create-link.dto.js +14 -0
- package/dist/library/index.d.ts +5 -0
- package/dist/library/index.js +21 -0
- package/dist/library/interfaces/interface.d.ts +3 -0
- package/dist/library/interfaces/interface.js +2 -0
- package/dist/library/schemas/links-user.schema.d.ts +15 -0
- package/dist/library/schemas/links-user.schema.js +9 -0
- package/dist/library/schemas/links.schema.d.ts +30 -0
- package/dist/library/schemas/links.schema.js +14 -0
- package/dist/material/dto/get-deficit.dto.d.ts +4 -1
- package/dist/material/dto/get-deficit.dto.js +4 -1
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +4 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -0
- package/dist/operations/dto/create-type-operation.dto.d.ts +22 -22
- package/dist/operations/dto/create-type-operation.dto.js +12 -12
- package/dist/product/dto/get-deficit.dto.d.ts +4 -1
- package/dist/product/dto/get-deficit.dto.js +4 -1
- package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
- package/dist/production-tasks/dto/update-marks.dto.js +8 -0
- package/dist/production-tasks/dto/update-responsible.dto.d.ts +12 -0
- package/dist/production-tasks/dto/update-responsible.dto.js +8 -0
- package/dist/production-tasks/dto/update-status.dto.d.ts +13 -0
- package/dist/production-tasks/dto/update-status.dto.js +9 -0
- package/dist/production-tasks/interfaces/production-tasks.d.ts +4 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +16 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +2 -0
- package/dist/shipments/dto/shipments-paginate.dto.d.ts +4 -1
- package/dist/shipments/dto/shipments-paginate.dto.js +3 -0
- package/dist/shipments/dto/up-create-shipments.dto.js +3 -5
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
- package/dist/utils/enums.d.ts +5 -0
- package/dist/utils/enums.js +7 -1
- package/dist/utils/interface/mat.interface.d.ts +10 -0
- package/dist/utils/interface/mat.interface.js +2 -0
- package/package.json +1 -1
- package/dist/material/workpiece-mass.d.ts +0 -45
- package/dist/material/workpiece-mass.js +0 -400
- package/dist/utils/interface/status-flags.interface.d.ts +0 -4
- /package/dist/{utils/interface/status-flags.interface.js → issue/interfaces/interface.js} +0 -0
|
@@ -2,19 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
import { WorkStartCalcType } from '../enums/enums';
|
|
3
3
|
export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
preTime: z.ZodBoolean
|
|
6
|
-
helperTime: z.ZodBoolean
|
|
7
|
-
mainTime: z.ZodBoolean
|
|
8
|
-
cpu: z.ZodBoolean
|
|
9
|
-
square: z.ZodBoolean
|
|
10
|
-
list: z.ZodBoolean
|
|
5
|
+
preTime: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
helperTime: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
mainTime: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
square: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
list: z.ZodDefault<z.ZodBoolean>;
|
|
11
11
|
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
12
12
|
equipmentIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
13
|
-
metaloworking: z.ZodBoolean
|
|
14
|
-
assembly: z.ZodBoolean
|
|
15
|
-
sclad: z.ZodBoolean
|
|
16
|
-
preTimeMinute: z.ZodNumber
|
|
17
|
-
helperTimeMinute: z.ZodNumber
|
|
13
|
+
metaloworking: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
assembly: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
sclad: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
+
preTimeMinute: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
helperTimeMinute: z.ZodDefault<z.ZodNumber>;
|
|
18
18
|
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
metaloworking: boolean;
|
|
@@ -33,20 +33,20 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
33
33
|
helperTimeMinute: number;
|
|
34
34
|
users?: number[] | null | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
metaloworking: boolean;
|
|
37
36
|
name: string;
|
|
38
|
-
|
|
39
|
-
helperTime: boolean;
|
|
40
|
-
mainTime: boolean;
|
|
41
|
-
cpu: boolean;
|
|
42
|
-
square: boolean;
|
|
43
|
-
list: boolean;
|
|
44
|
-
assembly: boolean;
|
|
45
|
-
sclad: boolean;
|
|
46
|
-
preTimeMinute: number;
|
|
47
|
-
helperTimeMinute: number;
|
|
37
|
+
metaloworking?: boolean | undefined;
|
|
48
38
|
users?: number[] | null | undefined;
|
|
39
|
+
preTime?: boolean | undefined;
|
|
40
|
+
helperTime?: boolean | undefined;
|
|
41
|
+
mainTime?: boolean | undefined;
|
|
42
|
+
cpu?: boolean | undefined;
|
|
43
|
+
square?: boolean | undefined;
|
|
44
|
+
list?: boolean | undefined;
|
|
49
45
|
workStartCalcType?: WorkStartCalcType | undefined;
|
|
50
46
|
equipmentIds?: number[] | null | undefined;
|
|
47
|
+
assembly?: boolean | undefined;
|
|
48
|
+
sclad?: boolean | undefined;
|
|
49
|
+
preTimeMinute?: number | undefined;
|
|
50
|
+
helperTimeMinute?: number | undefined;
|
|
51
51
|
}>;
|
|
52
52
|
export type CreateTypeOperationDto = z.infer<typeof CreateTypeOperationSchema>;
|
|
@@ -4,20 +4,20 @@ exports.CreateTypeOperationSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const enums_1 = require("../enums/enums");
|
|
6
6
|
exports.CreateTypeOperationSchema = zod_1.z.object({
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
preTime: zod_1.z.boolean(),
|
|
9
|
-
helperTime: zod_1.z.boolean(),
|
|
10
|
-
mainTime: zod_1.z.boolean(),
|
|
11
|
-
cpu: zod_1.z.boolean(),
|
|
12
|
-
square: zod_1.z.boolean(),
|
|
13
|
-
list: zod_1.z.boolean(),
|
|
7
|
+
name: zod_1.z.string().trim().min(1),
|
|
8
|
+
preTime: zod_1.z.boolean().default(false),
|
|
9
|
+
helperTime: zod_1.z.boolean().default(false),
|
|
10
|
+
mainTime: zod_1.z.boolean().default(false),
|
|
11
|
+
cpu: zod_1.z.boolean().default(false),
|
|
12
|
+
square: zod_1.z.boolean().default(false),
|
|
13
|
+
list: zod_1.z.boolean().default(false),
|
|
14
14
|
users: zod_1.z.number().array().nullable().optional(),
|
|
15
15
|
equipmentIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
|
|
16
|
-
metaloworking: zod_1.z.boolean(),
|
|
17
|
-
assembly: zod_1.z.boolean(),
|
|
18
|
-
sclad: zod_1.z.boolean(),
|
|
19
|
-
preTimeMinute: zod_1.z.number(),
|
|
20
|
-
helperTimeMinute: zod_1.z.number(),
|
|
16
|
+
metaloworking: zod_1.z.boolean().default(false),
|
|
17
|
+
assembly: zod_1.z.boolean().default(false),
|
|
18
|
+
sclad: zod_1.z.boolean().default(false),
|
|
19
|
+
preTimeMinute: zod_1.z.number().default(0),
|
|
20
|
+
helperTimeMinute: zod_1.z.number().default(0),
|
|
21
21
|
workStartCalcType: zod_1.z
|
|
22
22
|
.nativeEnum(enums_1.WorkStartCalcType)
|
|
23
23
|
.default(enums_1.WorkStartCalcType.automatic)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusWorkingsDeficit } from '../../utils';
|
|
2
|
+
import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } from '../../utils';
|
|
3
3
|
export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
4
4
|
productIds: z.ZodArray<z.ZodNumber, "many">;
|
|
5
5
|
statusWorking: z.ZodNativeEnum<typeof statusWorkingsDeficit>;
|
|
@@ -17,6 +17,7 @@ export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
|
17
17
|
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
18
18
|
sortDesc?: boolean | undefined;
|
|
19
19
|
}>, "many">>>;
|
|
20
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
sort: {
|
|
22
23
|
sortDesc: boolean;
|
|
@@ -28,6 +29,7 @@ export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
|
28
29
|
productIds: number[];
|
|
29
30
|
page?: number | undefined;
|
|
30
31
|
shipmentIds?: number[] | null | undefined;
|
|
32
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
31
33
|
}, {
|
|
32
34
|
searchString: string;
|
|
33
35
|
statusWorking: statusWorkingsDeficit;
|
|
@@ -39,5 +41,6 @@ export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
|
39
41
|
page?: number | undefined;
|
|
40
42
|
isDiscontinued?: boolean | null | undefined;
|
|
41
43
|
shipmentIds?: number[] | null | undefined;
|
|
44
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
42
45
|
}>;
|
|
43
46
|
export type GetDeficitProductDtoType = z.infer<typeof GetDeficitProductSchema>;
|
|
@@ -10,5 +10,8 @@ exports.GetDeficitProductSchema = zod_1.z.object({
|
|
|
10
10
|
shipmentIds: zod_1.z.number().int().array().optional().nullable(),
|
|
11
11
|
page: zod_1.z.number().int().optional(),
|
|
12
12
|
isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
|
|
13
|
-
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
13
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([]),
|
|
14
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
15
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
16
|
+
.optional()
|
|
14
17
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IOperationPosition } from '../interfaces/production-tasks';
|
|
3
|
+
export declare const UpdateProductionTaskMarksDtoZod: z.ZodObject<{
|
|
4
|
+
operationPosition: z.ZodOptional<z.ZodNullable<z.ZodType<IOperationPosition, z.ZodTypeDef, IOperationPosition>>>;
|
|
5
|
+
productionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
operationPosition?: IOperationPosition | null | undefined;
|
|
8
|
+
productionTaskId?: number | null | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
operationPosition?: IOperationPosition | null | undefined;
|
|
11
|
+
productionTaskId?: number | null | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export type UpdateProductionTaskMarksDtoZodType = z.infer<typeof UpdateProductionTaskMarksDtoZod>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProductionTaskMarksDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.UpdateProductionTaskMarksDtoZod = zod_1.z.object({
|
|
6
|
+
operationPosition: zod_1.z.custom().nullable().optional(),
|
|
7
|
+
productionTaskId: zod_1.z.number().int().nullable().optional()
|
|
8
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UpdateProductionTaskREsponsibleDtoZod: z.ZodObject<{
|
|
3
|
+
userId: z.ZodNumber;
|
|
4
|
+
productionPosId: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
userId: number;
|
|
7
|
+
productionPosId: number;
|
|
8
|
+
}, {
|
|
9
|
+
userId: number;
|
|
10
|
+
productionPosId: number;
|
|
11
|
+
}>;
|
|
12
|
+
export type UpdateProductionTaskREsponsibleDtoZodType = z.infer<typeof UpdateProductionTaskREsponsibleDtoZod>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProductionTaskREsponsibleDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.UpdateProductionTaskREsponsibleDtoZod = zod_1.z.object({
|
|
6
|
+
userId: zod_1.z.number(),
|
|
7
|
+
productionPosId: zod_1.z.number()
|
|
8
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { StatusProductionTaskEnum } from '../enums/production-tasks';
|
|
3
|
+
export declare const UpdateStatusProductionTaskEnumDtoZod: z.ZodObject<{
|
|
4
|
+
productionTaskId: z.ZodNumber;
|
|
5
|
+
status: z.ZodNativeEnum<typeof StatusProductionTaskEnum>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
status: StatusProductionTaskEnum;
|
|
8
|
+
productionTaskId: number;
|
|
9
|
+
}, {
|
|
10
|
+
status: StatusProductionTaskEnum;
|
|
11
|
+
productionTaskId: number;
|
|
12
|
+
}>;
|
|
13
|
+
export type UpdateStatusProductionTaskEnumDtoZodType = z.infer<typeof UpdateStatusProductionTaskEnumDtoZod>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateStatusProductionTaskEnumDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const production_tasks_1 = require("../enums/production-tasks");
|
|
6
|
+
exports.UpdateStatusProductionTaskEnumDtoZod = zod_1.z.object({
|
|
7
|
+
productionTaskId: zod_1.z.number().int(),
|
|
8
|
+
status: zod_1.z.nativeEnum(production_tasks_1.StatusProductionTaskEnum)
|
|
9
|
+
});
|
|
@@ -133,6 +133,9 @@ export interface IgetTaskByOperations {
|
|
|
133
133
|
ordered: number;
|
|
134
134
|
typeOperationId: number;
|
|
135
135
|
firstPlanReadyDate: Date | null;
|
|
136
|
+
prevOperation?: ITaskByOperations | null;
|
|
137
|
+
nextOperation?: ITaskByOperations | null;
|
|
138
|
+
nextOperationCalculateNeedsTime?: Date | null;
|
|
136
139
|
};
|
|
137
140
|
}
|
|
138
141
|
export interface ITaskByOperations {
|
|
@@ -157,6 +160,7 @@ export interface ITaskByOperations {
|
|
|
157
160
|
planReadyTime: Date;
|
|
158
161
|
name: string;
|
|
159
162
|
fullName: string;
|
|
163
|
+
calculateNeedsTime?: Date | null;
|
|
160
164
|
}
|
|
161
165
|
export interface IGetDeficitsDetalByProductionTask {
|
|
162
166
|
detalId: number;
|
|
@@ -148,7 +148,9 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
148
148
|
quantityByStockOrder: z.ZodNumber;
|
|
149
149
|
stockOrderNeed: z.ZodNumber;
|
|
150
150
|
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
151
|
+
stockReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
151
152
|
deficitWithPlannedIncoming: z.ZodNumber;
|
|
153
|
+
plannedIncomingFinal: z.ZodNumber;
|
|
152
154
|
deficit: z.ZodNumber;
|
|
153
155
|
}, "strip", z.ZodTypeAny, {
|
|
154
156
|
deficit: number;
|
|
@@ -173,7 +175,9 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
173
175
|
positionNumber: number | null;
|
|
174
176
|
quantityByStockOrder: number;
|
|
175
177
|
stockOrderNeed: number;
|
|
178
|
+
stockReadinessDate: string | Date | null;
|
|
176
179
|
deficitWithPlannedIncoming: number;
|
|
180
|
+
plannedIncomingFinal: number;
|
|
177
181
|
}, {
|
|
178
182
|
deficit: number;
|
|
179
183
|
warehouseReadinessDate: string | Date | null;
|
|
@@ -197,7 +201,9 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
197
201
|
positionNumber: number | null;
|
|
198
202
|
quantityByStockOrder: number;
|
|
199
203
|
stockOrderNeed: number;
|
|
204
|
+
stockReadinessDate: string | Date | null;
|
|
200
205
|
deficitWithPlannedIncoming: number;
|
|
206
|
+
plannedIncomingFinal: number;
|
|
201
207
|
}>;
|
|
202
208
|
export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
203
209
|
rows: z.ZodArray<z.ZodObject<{
|
|
@@ -222,7 +228,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
222
228
|
quantityByStockOrder: z.ZodNumber;
|
|
223
229
|
stockOrderNeed: z.ZodNumber;
|
|
224
230
|
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
231
|
+
stockReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
225
232
|
deficitWithPlannedIncoming: z.ZodNumber;
|
|
233
|
+
plannedIncomingFinal: z.ZodNumber;
|
|
226
234
|
deficit: z.ZodNumber;
|
|
227
235
|
}, "strip", z.ZodTypeAny, {
|
|
228
236
|
deficit: number;
|
|
@@ -247,7 +255,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
247
255
|
positionNumber: number | null;
|
|
248
256
|
quantityByStockOrder: number;
|
|
249
257
|
stockOrderNeed: number;
|
|
258
|
+
stockReadinessDate: string | Date | null;
|
|
250
259
|
deficitWithPlannedIncoming: number;
|
|
260
|
+
plannedIncomingFinal: number;
|
|
251
261
|
}, {
|
|
252
262
|
deficit: number;
|
|
253
263
|
warehouseReadinessDate: string | Date | null;
|
|
@@ -271,7 +281,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
271
281
|
positionNumber: number | null;
|
|
272
282
|
quantityByStockOrder: number;
|
|
273
283
|
stockOrderNeed: number;
|
|
284
|
+
stockReadinessDate: string | Date | null;
|
|
274
285
|
deficitWithPlannedIncoming: number;
|
|
286
|
+
plannedIncomingFinal: number;
|
|
275
287
|
}>, "many">;
|
|
276
288
|
totalOrderNeed: z.ZodNumber;
|
|
277
289
|
totalQuantityByStockOrder: z.ZodNumber;
|
|
@@ -302,7 +314,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
302
314
|
positionNumber: number | null;
|
|
303
315
|
quantityByStockOrder: number;
|
|
304
316
|
stockOrderNeed: number;
|
|
317
|
+
stockReadinessDate: string | Date | null;
|
|
305
318
|
deficitWithPlannedIncoming: number;
|
|
319
|
+
plannedIncomingFinal: number;
|
|
306
320
|
}[];
|
|
307
321
|
totalOrderNeed: number;
|
|
308
322
|
totalQuantityByStockOrder: number;
|
|
@@ -333,7 +347,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
333
347
|
positionNumber: number | null;
|
|
334
348
|
quantityByStockOrder: number;
|
|
335
349
|
stockOrderNeed: number;
|
|
350
|
+
stockReadinessDate: string | Date | null;
|
|
336
351
|
deficitWithPlannedIncoming: number;
|
|
352
|
+
plannedIncomingFinal: number;
|
|
337
353
|
}[];
|
|
338
354
|
totalOrderNeed: number;
|
|
339
355
|
totalQuantityByStockOrder: number;
|
|
@@ -70,7 +70,9 @@ exports.OrdersSummaryByEntityRowZod = zod_1.z.object({
|
|
|
70
70
|
quantityByStockOrder: zod_1.z.number(),
|
|
71
71
|
stockOrderNeed: zod_1.z.number(),
|
|
72
72
|
warehouseReadinessDate: OrdersSummaryDateZod,
|
|
73
|
+
stockReadinessDate: OrdersSummaryDateZod,
|
|
73
74
|
deficitWithPlannedIncoming: zod_1.z.number(),
|
|
75
|
+
plannedIncomingFinal: zod_1.z.number(),
|
|
74
76
|
deficit: zod_1.z.number()
|
|
75
77
|
});
|
|
76
78
|
exports.OrdersSummaryByEntityResponseZod = zod_1.z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusShipment } from '../../utils';
|
|
2
|
+
import { statusShipment, WarehouseReadinessDateFilterEnum } from '../../utils';
|
|
3
3
|
export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
4
4
|
offset: z.ZodNumber;
|
|
5
5
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -17,6 +17,7 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
|
17
17
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
searchStr: z.ZodOptional<z.ZodString>;
|
|
19
19
|
attributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
20
21
|
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
22
|
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
22
23
|
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -40,6 +41,7 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
|
40
41
|
offset: number;
|
|
41
42
|
attributes?: string[] | undefined;
|
|
42
43
|
parentId?: number | null | undefined;
|
|
44
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
43
45
|
searchStr?: string | undefined;
|
|
44
46
|
companyId?: number | null | undefined;
|
|
45
47
|
}, {
|
|
@@ -55,6 +57,7 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
|
55
57
|
}[] | undefined;
|
|
56
58
|
attributes?: string[] | undefined;
|
|
57
59
|
parentId?: number | null | undefined;
|
|
60
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
58
61
|
searchStr?: string | undefined;
|
|
59
62
|
companyId?: number | null | undefined;
|
|
60
63
|
}>;
|
|
@@ -17,5 +17,8 @@ exports.ShipmentsPaginateSchema = zod_1.z.object({
|
|
|
17
17
|
companyId: zod_1.z.number().int().nullish(),
|
|
18
18
|
searchStr: zod_1.z.string().optional(),
|
|
19
19
|
attributes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
20
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
21
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
22
|
+
.optional(),
|
|
20
23
|
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
21
24
|
});
|
|
@@ -47,12 +47,10 @@ const optionalNumericIdSchema = zod_1.z.preprocess(value => {
|
|
|
47
47
|
return value;
|
|
48
48
|
}, zod_1.z.number().int().positive().optional());
|
|
49
49
|
const nullableDateSchema = zod_1.z.preprocess(value => {
|
|
50
|
-
if (value === undefined
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
value === 'null') {
|
|
50
|
+
if (value === undefined)
|
|
51
|
+
return undefined;
|
|
52
|
+
if (value === null || value === '' || value === 'null')
|
|
54
53
|
return null;
|
|
55
|
-
}
|
|
56
54
|
return value;
|
|
57
55
|
}, zod_1.z.string().datetime({ offset: true }).nullable().optional());
|
|
58
56
|
const shipmentQuantitySchema = zod_1.z.preprocess(value => {
|