@pksep/zod-shared 0.0.507 → 0.0.509
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 -0
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -0
- package/dist/cbed/dto/get-one-cbed-dto.d.ts +3 -0
- package/dist/cbed/dto/get-one-cbed-dto.js +1 -0
- package/dist/cbed/schemas/cbed.schema.d.ts +3 -0
- package/dist/cbed/schemas/cbed.schema.js +1 -0
- package/dist/detal/schemas/detal-deficit.schema.d.ts +13 -0
- package/dist/detal/schemas/detal.schema.d.ts +13 -0
- package/dist/detal/schemas/detal.schema.js +1 -0
- package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +5 -0
- package/dist/movement-object/schemas/get-one-object-history.schema.js +1 -0
- package/dist/moving/schemas/moving.schema.d.ts +21 -0
- package/dist/product/schemas/product-deficit.schema.d.ts +3 -0
- package/dist/product/schemas/product.schema.d.ts +3 -0
- package/dist/product/schemas/product.schema.js +1 -0
- package/dist/production-tasks/dto/create-operation-pos.dto.d.ts +0 -3
- package/dist/production-tasks/dto/create-operation-pos.dto.js +1 -2
- package/dist/production-tasks/dto/get-tasks-by-operation.dto.d.ts +19 -0
- package/dist/production-tasks/dto/get-tasks-by-operation.dto.js +11 -0
- package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +28 -0
- package/dist/production-tasks/dto/workload-by-entity.dto.js +12 -0
- package/dist/production-tasks/index.d.ts +2 -1
- package/dist/production-tasks/index.js +2 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +106 -2
- package/dist/production-tasks/methods/methods.d.ts +2 -3
- package/dist/production-tasks/methods/methods.js +5 -45
- package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +0 -5
- package/dist/production-tasks/schemas/production-operation-pos.schema.js +0 -1
- package/dist/role/schemas/role.schema.d.ts +21 -0
- package/dist/specification/schema/attributes.schema.d.ts +24 -0
- package/dist/tech-process/index.d.ts +1 -1
- package/dist/tech-process/index.js +1 -1
- package/dist/tech-process/types/tech-process-with-options.d.ts +4 -0
- package/dist/tech-process/types/tech-process-with-options.js +2 -0
- package/dist/user/schemas/user.schema.d.ts +15 -0
- package/dist/utils/operation.d.ts +1 -1
- package/dist/utils/operation.js +15 -8
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { StockOrderType } from '../../utils';
|
|
3
|
+
export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
4
|
+
entityType: z.ZodNativeEnum<typeof StockOrderType>;
|
|
5
|
+
range: z.ZodObject<{
|
|
6
|
+
start: z.ZodString;
|
|
7
|
+
end: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
}, {
|
|
12
|
+
start: string;
|
|
13
|
+
end: string;
|
|
14
|
+
}>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
range: {
|
|
17
|
+
start: string;
|
|
18
|
+
end: string;
|
|
19
|
+
};
|
|
20
|
+
entityType: StockOrderType;
|
|
21
|
+
}, {
|
|
22
|
+
range: {
|
|
23
|
+
start: string;
|
|
24
|
+
end: string;
|
|
25
|
+
};
|
|
26
|
+
entityType: StockOrderType;
|
|
27
|
+
}>;
|
|
28
|
+
export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkloadByEntityDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
exports.WorkloadByEntityDtoZod = zod_1.z.object({
|
|
7
|
+
entityType: zod_1.z.nativeEnum(utils_1.StockOrderType),
|
|
8
|
+
range: zod_1.z.object({
|
|
9
|
+
start: zod_1.z.string(),
|
|
10
|
+
end: zod_1.z.string()
|
|
11
|
+
})
|
|
12
|
+
});
|
|
@@ -20,9 +20,9 @@ export * from './dto/update.dto';
|
|
|
20
20
|
export * from './dto/change-due-date.dto';
|
|
21
21
|
export * from './dto/percent-created.dto';
|
|
22
22
|
export * from './dto/update-position.dto';
|
|
23
|
-
export * from './dto/update-responsible.dto';
|
|
24
23
|
export * from './schemas/production-taks-start-time.schema';
|
|
25
24
|
export * from './dto/set-start-time.dto';
|
|
25
|
+
export * from './dto/workload-by-entity.dto';
|
|
26
26
|
export * from './dto/get-deficits-detal-by-production-task.dto';
|
|
27
27
|
export * from './schemas/production-operation-pos.schema';
|
|
28
28
|
export * from './dto/create-operation-pos.dto';
|
|
@@ -32,3 +32,4 @@ export * from './schemas/operation-positions.schema';
|
|
|
32
32
|
export * from './dto/get-production-task-by-operation.dto';
|
|
33
33
|
export * from './schemas/production-taks-start-time-detal.schema';
|
|
34
34
|
export * from './dto/set-start-time-detal.dto';
|
|
35
|
+
export * from './dto/get-tasks-by-operation.dto';
|
|
@@ -36,9 +36,9 @@ __exportStar(require("./dto/update.dto"), exports);
|
|
|
36
36
|
__exportStar(require("./dto/change-due-date.dto"), exports);
|
|
37
37
|
__exportStar(require("./dto/percent-created.dto"), exports);
|
|
38
38
|
__exportStar(require("./dto/update-position.dto"), exports);
|
|
39
|
-
__exportStar(require("./dto/update-responsible.dto"), exports);
|
|
40
39
|
__exportStar(require("./schemas/production-taks-start-time.schema"), exports);
|
|
41
40
|
__exportStar(require("./dto/set-start-time.dto"), exports);
|
|
41
|
+
__exportStar(require("./dto/workload-by-entity.dto"), exports);
|
|
42
42
|
__exportStar(require("./dto/get-deficits-detal-by-production-task.dto"), exports);
|
|
43
43
|
__exportStar(require("./schemas/production-operation-pos.schema"), exports);
|
|
44
44
|
__exportStar(require("./dto/create-operation-pos.dto"), exports);
|
|
@@ -48,3 +48,4 @@ __exportStar(require("./schemas/operation-positions.schema"), exports);
|
|
|
48
48
|
__exportStar(require("./dto/get-production-task-by-operation.dto"), exports);
|
|
49
49
|
__exportStar(require("./schemas/production-taks-start-time-detal.schema"), exports);
|
|
50
50
|
__exportStar(require("./dto/set-start-time-detal.dto"), exports);
|
|
51
|
+
__exportStar(require("./dto/get-tasks-by-operation.dto"), exports);
|
|
@@ -12,6 +12,7 @@ import { ModelOperation } from '../../operations';
|
|
|
12
12
|
import { ModelDetal } from '../../detal';
|
|
13
13
|
import { ModelCbed } from '../../cbed';
|
|
14
14
|
import { ModelProduct } from '../../product/schemas/product.schema';
|
|
15
|
+
import { ModelProductionOperationPos } from '../schemas/production-operation-pos.schema';
|
|
15
16
|
export interface IMarkExecute {
|
|
16
17
|
quantity: number;
|
|
17
18
|
executionTime: number;
|
|
@@ -44,7 +45,6 @@ export interface IProductionOperation {
|
|
|
44
45
|
collected?: number;
|
|
45
46
|
type_izd?: IzdType;
|
|
46
47
|
relativeType: IzdType;
|
|
47
|
-
responsibleUser: number | null;
|
|
48
48
|
needsByProductinTask: number;
|
|
49
49
|
}
|
|
50
50
|
export interface IrecalculateStartTimeDetalByEquipment {
|
|
@@ -111,14 +111,68 @@ export interface ITotalTimeData {
|
|
|
111
111
|
totalRemaining: number;
|
|
112
112
|
totalProductionTaskOrdered: number;
|
|
113
113
|
}
|
|
114
|
+
export interface IgetTaskByOperations {
|
|
115
|
+
allOperationPositions: ITaskByOperations[];
|
|
116
|
+
mainEntity: {
|
|
117
|
+
id: number;
|
|
118
|
+
techProcessIds: number;
|
|
119
|
+
prevСalculateNeedsTime: Date;
|
|
120
|
+
type: IzdType;
|
|
121
|
+
orderedByTask: number;
|
|
122
|
+
mainTime: number;
|
|
123
|
+
startTime: Date;
|
|
124
|
+
productionTaskId: number;
|
|
125
|
+
name: string;
|
|
126
|
+
equipment: ModelEquipment;
|
|
127
|
+
createTime: number;
|
|
128
|
+
user: ModelUser;
|
|
129
|
+
ordered: number;
|
|
130
|
+
typeOperationId: number;
|
|
131
|
+
firstPlanReadyDate: Date | null;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
export interface ITaskByOperations {
|
|
135
|
+
productionTaskId: number;
|
|
136
|
+
preTime: number;
|
|
137
|
+
operaitonIdx: number;
|
|
138
|
+
helperTime: number;
|
|
139
|
+
mainTime: number;
|
|
140
|
+
quantityMax: number;
|
|
141
|
+
operationId: number;
|
|
142
|
+
idx: number;
|
|
143
|
+
operationPositionId: number;
|
|
144
|
+
equipmentId: number;
|
|
145
|
+
equipmentName: string | null;
|
|
146
|
+
userId: number;
|
|
147
|
+
userLogin: string | null;
|
|
148
|
+
productionOperationId: number;
|
|
149
|
+
quantity: number;
|
|
150
|
+
countCreated: number;
|
|
151
|
+
type: StockOrderType;
|
|
152
|
+
startTime: Date;
|
|
153
|
+
planReadyTime: Date;
|
|
154
|
+
name: string;
|
|
155
|
+
fullName: string;
|
|
156
|
+
}
|
|
114
157
|
export interface IGetDeficitsDetalByProductionTask {
|
|
115
158
|
detalId: number;
|
|
159
|
+
isHasIncorrectDate: boolean;
|
|
116
160
|
productionTaskId: number;
|
|
161
|
+
detalProductionTaskId: number;
|
|
162
|
+
totalProductionTaskOrdered: number;
|
|
163
|
+
createTimeByLastOperation: {
|
|
164
|
+
mainTime: number;
|
|
165
|
+
helperTime: number;
|
|
166
|
+
preTime: number;
|
|
167
|
+
};
|
|
168
|
+
isHasMaterial: boolean;
|
|
169
|
+
productionOperation: ModelProductionOperationPos;
|
|
170
|
+
calculateNeedsTime: Date | null;
|
|
117
171
|
productionTaskDueDate: Date;
|
|
118
172
|
productionTaskResponsibleUser: number | null;
|
|
119
173
|
startTime: Date | null;
|
|
174
|
+
firstPlanReadyDate: Date | null;
|
|
120
175
|
metalloworkingDetalId: number;
|
|
121
|
-
globalIndex: number;
|
|
122
176
|
detalShipment: ModelShipments;
|
|
123
177
|
actualCount: number;
|
|
124
178
|
detalDesignation: string;
|
|
@@ -141,6 +195,27 @@ export interface IActualOperationPos {
|
|
|
141
195
|
transaction?: any;
|
|
142
196
|
startTime?: Date;
|
|
143
197
|
}
|
|
198
|
+
export interface IProcessAndRecalculateParents {
|
|
199
|
+
cbedIds?: number[];
|
|
200
|
+
detalIds?: number[];
|
|
201
|
+
transaction?: any;
|
|
202
|
+
}
|
|
203
|
+
export interface IGetLastOperation {
|
|
204
|
+
id: number;
|
|
205
|
+
start_time: Date;
|
|
206
|
+
productionTaskId: number;
|
|
207
|
+
idx: number;
|
|
208
|
+
preTime: number;
|
|
209
|
+
helperTime: number;
|
|
210
|
+
mainTime: number;
|
|
211
|
+
userId: number;
|
|
212
|
+
firstStartTime: Date;
|
|
213
|
+
firstPlanReadyDate: Date;
|
|
214
|
+
quantity_max: number;
|
|
215
|
+
productionOperationId: number;
|
|
216
|
+
plan_ready_time: Date;
|
|
217
|
+
quantity: number;
|
|
218
|
+
}
|
|
144
219
|
export interface IOperationPositionToChangeTime {
|
|
145
220
|
id: number;
|
|
146
221
|
idx: number;
|
|
@@ -224,6 +299,7 @@ export interface IGetActualRelative {
|
|
|
224
299
|
cbed_id: number | null;
|
|
225
300
|
type: IzdType;
|
|
226
301
|
product_id: number | null;
|
|
302
|
+
production_task_id: number;
|
|
227
303
|
start_time: Date;
|
|
228
304
|
tech_process_id: number;
|
|
229
305
|
}
|
|
@@ -256,6 +332,34 @@ export interface IUnicalUsers extends IUnicalEntity {
|
|
|
256
332
|
login?: string;
|
|
257
333
|
tabel?: string;
|
|
258
334
|
}
|
|
335
|
+
export interface IWorkloadByEntityResponse {
|
|
336
|
+
operationName: string;
|
|
337
|
+
typeOperationId: number | string;
|
|
338
|
+
workloadData: IWorkloadData[];
|
|
339
|
+
}
|
|
340
|
+
export interface IWorkloadData {
|
|
341
|
+
responsibleInfo: any;
|
|
342
|
+
positions: IWorkloadPositionByDate[];
|
|
343
|
+
}
|
|
344
|
+
export interface IWorkloadPositionSchema {
|
|
345
|
+
normHours: number;
|
|
346
|
+
deltaTime: number;
|
|
347
|
+
datesToCheck: {
|
|
348
|
+
calculateDate: Date | string;
|
|
349
|
+
planReadyDate: Date | string;
|
|
350
|
+
}[];
|
|
351
|
+
}
|
|
352
|
+
export interface IWorkloadPositionByDate {
|
|
353
|
+
workDate: string;
|
|
354
|
+
positions: {
|
|
355
|
+
normHours: number;
|
|
356
|
+
deltaTime: number;
|
|
357
|
+
datesToCheck: {
|
|
358
|
+
calculateDate: Date | string;
|
|
359
|
+
planReadyDate: Date | string;
|
|
360
|
+
}[];
|
|
361
|
+
};
|
|
362
|
+
}
|
|
259
363
|
export interface IUnicalEquipments extends IUnicalEntity {
|
|
260
364
|
equipmentId: number;
|
|
261
365
|
name?: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { RelativesProductionTasksType } from '../../utils/types/types';
|
|
1
2
|
import { ModelOperationPosition } from '../schemas/operation-positions.schema';
|
|
2
3
|
import { ModelProductionOperationPos } from '../schemas/production-operation-pos.schema';
|
|
3
4
|
export declare const findMinGlobalIndex: (operationPosItems: ModelOperationPosition[]) => number;
|
|
4
|
-
export declare const findOperationPosWithMinStartTime: (operationPositions: ModelOperationPosition[]) => ModelOperationPosition | null;
|
|
5
5
|
export declare const findMinStartTime: (allOperationPositions: ModelOperationPosition[]) => Date | null;
|
|
6
|
-
export declare const findOperationPosMinStartTime: (allOperationPositions: ModelOperationPosition[]) => ModelOperationPosition | null;
|
|
7
6
|
export declare const getActualProductionOperationPos: (operationPosItems: ModelOperationPosition[]) => ModelOperationPosition | null;
|
|
8
7
|
export declare const minStartTimeFromProductionPos: (productionOperationPositions: ModelProductionOperationPos[]) => Date | null;
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const sortProductionOperationPoses: (relativesProductionPoses: RelativesProductionTasksType[]) => RelativesProductionTasksType[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.sortProductionOperationPoses = exports.minStartTimeFromProductionPos = exports.getActualProductionOperationPos = exports.findMinStartTime = exports.findMinGlobalIndex = void 0;
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
4
5
|
const findMinGlobalIndex = (operationPosItems) => {
|
|
5
6
|
if (!(operationPosItems === null || operationPosItems === void 0 ? void 0 : operationPosItems.length))
|
|
6
7
|
return 0;
|
|
@@ -10,20 +11,6 @@ const findMinGlobalIndex = (operationPosItems) => {
|
|
|
10
11
|
}, startIndex);
|
|
11
12
|
};
|
|
12
13
|
exports.findMinGlobalIndex = findMinGlobalIndex;
|
|
13
|
-
const findOperationPosWithMinStartTime = (operationPositions) => (operationPositions === null || operationPositions === void 0 ? void 0 : operationPositions.length)
|
|
14
|
-
? operationPositions.reduce((prev, currentOperationPos) => {
|
|
15
|
-
const prevStartTime = new Date(prev.start_time).getTime();
|
|
16
|
-
const currentStartTime = new Date(currentOperationPos.start_time).getTime();
|
|
17
|
-
if (prevStartTime > currentStartTime)
|
|
18
|
-
return currentOperationPos;
|
|
19
|
-
else if (prevStartTime === currentStartTime &&
|
|
20
|
-
prev.idx > currentOperationPos.idx)
|
|
21
|
-
return currentOperationPos;
|
|
22
|
-
else
|
|
23
|
-
return prev;
|
|
24
|
-
}, operationPositions[0])
|
|
25
|
-
: null;
|
|
26
|
-
exports.findOperationPosWithMinStartTime = findOperationPosWithMinStartTime;
|
|
27
14
|
const findMinStartTime = (allOperationPositions) => {
|
|
28
15
|
const isStartTime = allOperationPositions.some(operationPosition => operationPosition === null || operationPosition === void 0 ? void 0 : operationPosition.start_time);
|
|
29
16
|
if (!isStartTime)
|
|
@@ -39,23 +26,6 @@ const findMinStartTime = (allOperationPositions) => {
|
|
|
39
26
|
: new Date();
|
|
40
27
|
};
|
|
41
28
|
exports.findMinStartTime = findMinStartTime;
|
|
42
|
-
const findOperationPosMinStartTime = (allOperationPositions) => {
|
|
43
|
-
const isStartTime = allOperationPositions.some(operationPosition => operationPosition === null || operationPosition === void 0 ? void 0 : operationPosition.start_time);
|
|
44
|
-
if (!isStartTime)
|
|
45
|
-
return null;
|
|
46
|
-
const refactoredOperationPositions = allOperationPositions.filter(operationPosition => operationPosition.start_time);
|
|
47
|
-
return (refactoredOperationPositions === null || refactoredOperationPositions === void 0 ? void 0 : refactoredOperationPositions.length)
|
|
48
|
-
? refactoredOperationPositions.reduce((minDate, operationPosition) => {
|
|
49
|
-
return minDate
|
|
50
|
-
? new Date(operationPosition.start_time).getTime() <
|
|
51
|
-
new Date(minDate === null || minDate === void 0 ? void 0 : minDate.start_time).getTime()
|
|
52
|
-
? operationPosition
|
|
53
|
-
: minDate
|
|
54
|
-
: operationPosition;
|
|
55
|
-
}, refactoredOperationPositions[0])
|
|
56
|
-
: null;
|
|
57
|
-
};
|
|
58
|
-
exports.findOperationPosMinStartTime = findOperationPosMinStartTime;
|
|
59
29
|
const getActualProductionOperationPos = (operationPosItems) => {
|
|
60
30
|
if (!(operationPosItems === null || operationPosItems === void 0 ? void 0 : operationPosItems.length))
|
|
61
31
|
return null;
|
|
@@ -78,17 +48,7 @@ const minStartTimeFromProductionPos = (productionOperationPositions) => {
|
|
|
78
48
|
return minStartTime || null;
|
|
79
49
|
};
|
|
80
50
|
exports.minStartTimeFromProductionPos = minStartTimeFromProductionPos;
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
if (!(productionOperationPositions === null || productionOperationPositions === void 0 ? void 0 : productionOperationPositions.length))
|
|
84
|
-
return null;
|
|
85
|
-
let allOperationPositions = [];
|
|
86
|
-
for (const productionOperationPos of productionOperationPositions) {
|
|
87
|
-
allOperationPositions = ((_a = productionOperationPos.operation_positions) === null || _a === void 0 ? void 0 : _a.length)
|
|
88
|
-
? allOperationPositions.concat(productionOperationPos.operation_positions)
|
|
89
|
-
: allOperationPositions;
|
|
90
|
-
}
|
|
91
|
-
const operationPositionWithMinStartTime = (0, exports.findOperationPosMinStartTime)(allOperationPositions);
|
|
92
|
-
return operationPositionWithMinStartTime || null;
|
|
51
|
+
const sortProductionOperationPoses = (relativesProductionPoses) => {
|
|
52
|
+
return (0, lodash_1.orderBy)(relativesProductionPoses, [item => (item.startTime ? new Date(item.startTime).getTime() : Infinity)], ['asc']);
|
|
93
53
|
};
|
|
94
|
-
exports.
|
|
54
|
+
exports.sortProductionOperationPoses = sortProductionOperationPoses;
|
|
@@ -2,7 +2,6 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ModelAssemble } from '../../assemble';
|
|
3
3
|
import { ModelMetaloworking } from '../../metaloworking';
|
|
4
4
|
import { ModelProductionTask } from './production-task.schema';
|
|
5
|
-
import { ModelUser } from '../../user';
|
|
6
5
|
import { StockOrderType } from '../../utils';
|
|
7
6
|
import { ModelOperationPosition } from './operation-positions.schema';
|
|
8
7
|
export declare const createOperationPositionSchema: z.ZodObject<{
|
|
@@ -26,7 +25,6 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
26
25
|
metall_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
26
|
idx: z.ZodNumber;
|
|
28
27
|
quantity_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
-
responsible_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
28
|
quantity: z.ZodNumber;
|
|
31
29
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
32
30
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -38,7 +36,6 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
38
36
|
quantity: number;
|
|
39
37
|
idx: number;
|
|
40
38
|
id?: number | null | undefined;
|
|
41
|
-
responsible_user_id?: number | null | undefined;
|
|
42
39
|
createdAt?: Date | undefined;
|
|
43
40
|
updatedAt?: Date | undefined;
|
|
44
41
|
ass_id?: number | null | undefined;
|
|
@@ -51,7 +48,6 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
51
48
|
idx: number;
|
|
52
49
|
ban?: boolean | undefined;
|
|
53
50
|
id?: number | null | undefined;
|
|
54
|
-
responsible_user_id?: number | null | undefined;
|
|
55
51
|
createdAt?: Date | undefined;
|
|
56
52
|
updatedAt?: Date | undefined;
|
|
57
53
|
ass_id?: number | null | undefined;
|
|
@@ -63,5 +59,4 @@ export type ModelProductionOperationPos = z.infer<typeof ProductionOperationPosS
|
|
|
63
59
|
assemble?: ModelAssemble;
|
|
64
60
|
operation_positions?: ModelOperationPosition[];
|
|
65
61
|
metaloworking?: ModelMetaloworking;
|
|
66
|
-
responsible_user?: ModelUser;
|
|
67
62
|
};
|
|
@@ -16,7 +16,6 @@ exports.ProductionOperationPosSchema = zod_1.z.object({
|
|
|
16
16
|
metall_id: zod_1.z.number().nullish(),
|
|
17
17
|
idx: zod_1.z.number(),
|
|
18
18
|
quantity_max: zod_1.z.number().nullish(),
|
|
19
|
-
responsible_user_id: zod_1.z.number().nullish(),
|
|
20
19
|
quantity: zod_1.z.number(),
|
|
21
20
|
ban: zod_1.z.boolean().default(false),
|
|
22
21
|
createdAt: zod_1.z.date().optional(),
|
|
@@ -77,6 +77,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
77
77
|
id: z.ZodNumber;
|
|
78
78
|
name: z.ZodString;
|
|
79
79
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
+
calculate_needs_time: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
80
81
|
min_remaining: z.ZodDefault<z.ZodNumber>;
|
|
81
82
|
remainder_after_coming: z.ZodDefault<z.ZodNumber>;
|
|
82
83
|
task_relative_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -118,6 +119,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
118
119
|
shipments_kolvo: number;
|
|
119
120
|
min_remaining: number;
|
|
120
121
|
responsibleId: number | null;
|
|
122
|
+
calculate_needs_time: Date | null;
|
|
121
123
|
remainder_after_coming: number;
|
|
122
124
|
deficit: number;
|
|
123
125
|
shipments_deficit: number;
|
|
@@ -155,6 +157,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
155
157
|
quantity?: number | undefined;
|
|
156
158
|
shipments_kolvo?: number | undefined;
|
|
157
159
|
min_remaining?: number | undefined;
|
|
160
|
+
calculate_needs_time?: Date | null | undefined;
|
|
158
161
|
remainder_after_coming?: number | undefined;
|
|
159
162
|
deficit?: number | undefined;
|
|
160
163
|
shipments_deficit?: number | undefined;
|
|
@@ -188,6 +191,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
188
191
|
listDetal: z.ZodType<import("../..").EntityCommonSpecificationArray, z.ZodTypeDef, import("../..").EntityCommonSpecificationArray>;
|
|
189
192
|
listCbed: z.ZodType<import("../..").EntityCommonSpecificationArray, z.ZodTypeDef, import("../..").EntityCommonSpecificationArray>;
|
|
190
193
|
attention: z.ZodDefault<z.ZodBoolean>;
|
|
194
|
+
calculate_needs_time: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
191
195
|
in_kit: z.ZodDefault<z.ZodNumber>;
|
|
192
196
|
is_custom: z.ZodDefault<z.ZodBoolean>;
|
|
193
197
|
responsibleId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -205,6 +209,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
205
209
|
shipments_kolvo: number;
|
|
206
210
|
min_remaining: number;
|
|
207
211
|
responsibleId: number | null;
|
|
212
|
+
calculate_needs_time: Date | null;
|
|
208
213
|
deficit: number;
|
|
209
214
|
shipments_deficit: number;
|
|
210
215
|
production_ordered: number;
|
|
@@ -238,6 +243,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
238
243
|
quantity?: number | undefined;
|
|
239
244
|
shipments_kolvo?: number | undefined;
|
|
240
245
|
min_remaining?: number | undefined;
|
|
246
|
+
calculate_needs_time?: Date | null | undefined;
|
|
241
247
|
deficit?: number | undefined;
|
|
242
248
|
shipments_deficit?: number | undefined;
|
|
243
249
|
production_ordered?: number | undefined;
|
|
@@ -373,6 +379,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
373
379
|
listDetal: z.ZodType<import("../..").EntityCommonSpecificationArray, z.ZodTypeDef, import("../..").EntityCommonSpecificationArray>;
|
|
374
380
|
listCbed: z.ZodType<import("../..").EntityCommonSpecificationArray, z.ZodTypeDef, import("../..").EntityCommonSpecificationArray>;
|
|
375
381
|
attention: z.ZodDefault<z.ZodBoolean>;
|
|
382
|
+
calculate_needs_time: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
376
383
|
in_kit: z.ZodDefault<z.ZodNumber>;
|
|
377
384
|
is_custom: z.ZodDefault<z.ZodBoolean>;
|
|
378
385
|
responsibleId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -390,6 +397,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
390
397
|
shipments_kolvo: number;
|
|
391
398
|
min_remaining: number;
|
|
392
399
|
responsibleId: number | null;
|
|
400
|
+
calculate_needs_time: Date | null;
|
|
393
401
|
deficit: number;
|
|
394
402
|
shipments_deficit: number;
|
|
395
403
|
production_ordered: number;
|
|
@@ -423,6 +431,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
423
431
|
quantity?: number | undefined;
|
|
424
432
|
shipments_kolvo?: number | undefined;
|
|
425
433
|
min_remaining?: number | undefined;
|
|
434
|
+
calculate_needs_time?: Date | null | undefined;
|
|
426
435
|
deficit?: number | undefined;
|
|
427
436
|
shipments_deficit?: number | undefined;
|
|
428
437
|
production_ordered?: number | undefined;
|
|
@@ -575,6 +584,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
575
584
|
shipments_kolvo: number;
|
|
576
585
|
min_remaining: number;
|
|
577
586
|
responsibleId: number | null;
|
|
587
|
+
calculate_needs_time: Date | null;
|
|
578
588
|
deficit: number;
|
|
579
589
|
shipments_deficit: number;
|
|
580
590
|
production_ordered: number;
|
|
@@ -617,6 +627,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
617
627
|
shipments_kolvo: number;
|
|
618
628
|
min_remaining: number;
|
|
619
629
|
responsibleId: number | null;
|
|
630
|
+
calculate_needs_time: Date | null;
|
|
620
631
|
remainder_after_coming: number;
|
|
621
632
|
deficit: number;
|
|
622
633
|
shipments_deficit: number;
|
|
@@ -646,6 +657,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
646
657
|
shipments_kolvo: number;
|
|
647
658
|
min_remaining: number;
|
|
648
659
|
responsibleId: number | null;
|
|
660
|
+
calculate_needs_time: Date | null;
|
|
649
661
|
deficit: number;
|
|
650
662
|
shipments_deficit: number;
|
|
651
663
|
production_ordered: number;
|
|
@@ -760,6 +772,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
760
772
|
quantity?: number | undefined;
|
|
761
773
|
shipments_kolvo?: number | undefined;
|
|
762
774
|
min_remaining?: number | undefined;
|
|
775
|
+
calculate_needs_time?: Date | null | undefined;
|
|
763
776
|
deficit?: number | undefined;
|
|
764
777
|
shipments_deficit?: number | undefined;
|
|
765
778
|
production_ordered?: number | undefined;
|
|
@@ -801,6 +814,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
801
814
|
quantity?: number | undefined;
|
|
802
815
|
shipments_kolvo?: number | undefined;
|
|
803
816
|
min_remaining?: number | undefined;
|
|
817
|
+
calculate_needs_time?: Date | null | undefined;
|
|
804
818
|
remainder_after_coming?: number | undefined;
|
|
805
819
|
deficit?: number | undefined;
|
|
806
820
|
shipments_deficit?: number | undefined;
|
|
@@ -830,6 +844,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
830
844
|
quantity?: number | undefined;
|
|
831
845
|
shipments_kolvo?: number | undefined;
|
|
832
846
|
min_remaining?: number | undefined;
|
|
847
|
+
calculate_needs_time?: Date | null | undefined;
|
|
833
848
|
deficit?: number | undefined;
|
|
834
849
|
shipments_deficit?: number | undefined;
|
|
835
850
|
production_ordered?: number | undefined;
|
|
@@ -955,6 +970,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
955
970
|
shipments_kolvo: number;
|
|
956
971
|
min_remaining: number;
|
|
957
972
|
responsibleId: number | null;
|
|
973
|
+
calculate_needs_time: Date | null;
|
|
958
974
|
deficit: number;
|
|
959
975
|
shipments_deficit: number;
|
|
960
976
|
production_ordered: number;
|
|
@@ -997,6 +1013,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
997
1013
|
shipments_kolvo: number;
|
|
998
1014
|
min_remaining: number;
|
|
999
1015
|
responsibleId: number | null;
|
|
1016
|
+
calculate_needs_time: Date | null;
|
|
1000
1017
|
remainder_after_coming: number;
|
|
1001
1018
|
deficit: number;
|
|
1002
1019
|
shipments_deficit: number;
|
|
@@ -1026,6 +1043,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1026
1043
|
shipments_kolvo: number;
|
|
1027
1044
|
min_remaining: number;
|
|
1028
1045
|
responsibleId: number | null;
|
|
1046
|
+
calculate_needs_time: Date | null;
|
|
1029
1047
|
deficit: number;
|
|
1030
1048
|
shipments_deficit: number;
|
|
1031
1049
|
production_ordered: number;
|
|
@@ -1145,6 +1163,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1145
1163
|
quantity?: number | undefined;
|
|
1146
1164
|
shipments_kolvo?: number | undefined;
|
|
1147
1165
|
min_remaining?: number | undefined;
|
|
1166
|
+
calculate_needs_time?: Date | null | undefined;
|
|
1148
1167
|
deficit?: number | undefined;
|
|
1149
1168
|
shipments_deficit?: number | undefined;
|
|
1150
1169
|
production_ordered?: number | undefined;
|
|
@@ -1186,6 +1205,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1186
1205
|
quantity?: number | undefined;
|
|
1187
1206
|
shipments_kolvo?: number | undefined;
|
|
1188
1207
|
min_remaining?: number | undefined;
|
|
1208
|
+
calculate_needs_time?: Date | null | undefined;
|
|
1189
1209
|
remainder_after_coming?: number | undefined;
|
|
1190
1210
|
deficit?: number | undefined;
|
|
1191
1211
|
shipments_deficit?: number | undefined;
|
|
@@ -1215,6 +1235,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1215
1235
|
quantity?: number | undefined;
|
|
1216
1236
|
shipments_kolvo?: number | undefined;
|
|
1217
1237
|
min_remaining?: number | undefined;
|
|
1238
|
+
calculate_needs_time?: Date | null | undefined;
|
|
1218
1239
|
deficit?: number | undefined;
|
|
1219
1240
|
shipments_deficit?: number | undefined;
|
|
1220
1241
|
production_ordered?: number | undefined;
|