@pksep/zod-shared 0.0.490 → 0.0.492
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/action/schemas/actions.schema.d.ts +6 -6
- package/dist/assemble/dto/create-assemble-kit.dto.d.ts +2 -2
- package/dist/assemble/dto/create-assemble.dto.d.ts +2 -2
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +66 -66
- package/dist/assemble/interfaces/interfaces.d.ts +1 -1
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +52 -52
- package/dist/assemble/schemas/assemble.schema.d.ts +52 -52
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +2 -2
- package/dist/cbed/dto/up-create-cbed.dto.d.ts +1 -1
- package/dist/cbed/schemas/cbed.schema.d.ts +2 -2
- package/dist/company/dto/companies-pagination.dto.d.ts +4 -4
- package/dist/company/dto/create-company.dto.d.ts +2 -2
- package/dist/company/dto/update-company.dto.d.ts +2 -2
- package/dist/detal/dto/update-detal.dto.d.ts +10 -10
- package/dist/detal/dto/update-detal.dto.js +3 -3
- package/dist/detal/schemas/detal-deficit.schema.d.ts +28 -28
- package/dist/detal/schemas/detal.schema.d.ts +28 -28
- package/dist/equipment/schemas/equipment.schema.d.ts +48 -48
- package/dist/instrument/dto/get-instruments-pagination.dto.d.ts +3 -3
- package/dist/instrument/dto/get-instruments-pagination.dto.js +1 -1
- package/dist/instrument/dto/update-instrument.dto.d.ts +3 -3
- package/dist/instrument/dto/update-instrument.dto.js +1 -1
- package/dist/inventary/dto/create-inventary.dto.d.ts +2 -2
- package/dist/inventary/dto/create-pt-inventary.dto.d.ts +3 -3
- package/dist/inventary/dto/create-pt-inventary.dto.js +1 -1
- package/dist/marks/dto/change-mark-quantity.dto.d.ts +45 -45
- package/dist/marks/dto/create-mark.dto.d.ts +27 -27
- package/dist/marks/dto/create-mark.dto.js +9 -9
- package/dist/marks/dto/update-mark.dto.d.ts +15 -15
- package/dist/marks/dto/update-mark.dto.js +5 -5
- package/dist/marks/schemas/marks.schema.d.ts +12 -12
- package/dist/material/dto/create-material.dto.d.ts +6 -6
- package/dist/material/dto/create-material.dto.js +2 -2
- package/dist/material/dto/create-subtype-material.dto.d.ts +3 -3
- package/dist/material/dto/create-subtype-material.dto.js +1 -1
- package/dist/material/dto/set-actual-shipment.dto.d.ts +18 -0
- package/dist/material/dto/set-actual-shipment.dto.js +10 -0
- package/dist/material/dto/up-create-type-material.dto.d.ts +3 -3
- package/dist/material/dto/up-create-type-material.dto.js +1 -1
- package/dist/metaloworking/dto/create-metaloworking.dto.d.ts +2 -2
- package/dist/movement-object/dto/create-moving.dto.d.ts +15 -15
- package/dist/movement-object/dto/create-moving.dto.js +5 -5
- package/dist/moving/schemas/moving.schema.d.ts +24 -24
- package/dist/operations/dto/up-create-tech-process.dto.d.ts +6 -6
- package/dist/operations/dto/up-create-tech-process.dto.js +2 -2
- package/dist/operations/schemas/operation.schema.d.ts +24 -24
- package/dist/operations/schemas/operation.schema.js +4 -4
- package/dist/product/dto/up-create-product.dto.d.ts +4 -4
- package/dist/product/dto/up-create-product.dto.js +1 -1
- package/dist/production-tasks/dto/change-due-date.dto.d.ts +2 -2
- package/dist/production-tasks/dto/create-operation-pos.dto.d.ts +15 -43
- package/dist/production-tasks/dto/create-operation-pos.dto.js +1 -2
- package/dist/production-tasks/dto/create-production-task.dto.d.ts +24 -31
- package/dist/production-tasks/dto/create-production-task.dto.js +4 -9
- package/dist/production-tasks/dto/update-marks.dto.d.ts +3 -31
- package/dist/production-tasks/dto/update-marks.dto.js +2 -3
- package/dist/production-tasks/dto/update.dto.d.ts +2 -2
- package/dist/production-tasks/enums/production-tasks.d.ts +3 -3
- package/dist/production-tasks/enums/production-tasks.js +3 -3
- package/dist/production-tasks/index.d.ts +1 -1
- package/dist/production-tasks/index.js +1 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +15 -16
- package/dist/production-tasks/methods/methods.d.ts +6 -2
- package/dist/production-tasks/methods/methods.js +40 -4
- package/dist/production-tasks/schemas/operation-positions.schema.d.ts +48 -0
- package/dist/production-tasks/schemas/operation-positions.schema.js +17 -0
- package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +15 -86
- package/dist/production-tasks/schemas/production-operation-pos.schema.js +8 -15
- package/dist/provider/dto/create-provider.dto.d.ts +3 -3
- package/dist/provider/dto/create-provider.dto.js +1 -1
- package/dist/role/schemas/role.schema.d.ts +24 -24
- package/dist/shipments/dto/sh-check.dto.d.ts +2 -2
- package/dist/shipments/dto/sh-complit-update.dto.d.ts +3 -3
- package/dist/shipments/dto/sh-complit-update.dto.js +1 -1
- package/dist/specification/schema/attributes.schema.d.ts +46 -46
- package/dist/stock-order/dto/create-stock-order.dto.d.ts +15 -15
- package/dist/stock-order/type/type.d.ts +9 -9
- package/dist/stock-order/type/type.js +3 -3
- package/dist/tech-process/dto/up-create-tech-process.dto.d.ts +6 -6
- package/dist/tech-process/dto/up-create-tech-process.dto.js +2 -2
- package/dist/tech-process/schemas/tech-process.schema.d.ts +36 -36
- package/dist/user/schemas/user.schema.d.ts +16 -16
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/methods.d.ts +0 -2
- package/dist/utils/methods.js +0 -2
- package/dist/waybill/dto/create-waybill-product.dto.d.ts +2 -2
- package/dist/waybill/dto/create-waybill.dto.d.ts +4 -4
- package/dist/waybill/schemas/waybill-product.schema.d.ts +2 -2
- package/package.json +1 -1
- package/dist/utils/methods/snake-conversion.d.ts +0 -19
- package/dist/utils/methods/snake-conversion.js +0 -51
|
@@ -8,6 +8,6 @@ exports.UpCreateTechProcessSchema = zod_1.z.object({
|
|
|
8
8
|
description: zod_1.z.string(),
|
|
9
9
|
docs: zod_1.z.any(),
|
|
10
10
|
id: zod_1.z.number().int(),
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
izd_type: zod_1.z.string(),
|
|
12
|
+
izd_id: zod_1.z.number().int()
|
|
13
13
|
});
|
|
@@ -58,44 +58,44 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
58
58
|
status: import("../../marks").MarkStatusEnums;
|
|
59
59
|
ban: boolean;
|
|
60
60
|
id: number;
|
|
61
|
+
date_build: string;
|
|
61
62
|
kol: number;
|
|
62
|
-
brak: boolean;
|
|
63
63
|
user_id: number;
|
|
64
|
+
oper_id: number;
|
|
65
|
+
assemble_id: number;
|
|
64
66
|
metaloworking_id: number;
|
|
67
|
+
brak: boolean;
|
|
68
|
+
execution_time: number;
|
|
65
69
|
production_task_id: number | null;
|
|
66
|
-
date_build: string;
|
|
67
70
|
quantity_shipped: number;
|
|
68
|
-
execution_time: number;
|
|
69
|
-
assemble_id: number;
|
|
70
|
-
oper_id: number;
|
|
71
71
|
description?: string | undefined;
|
|
72
|
+
assemble_kit_id?: number | null | undefined;
|
|
72
73
|
operation_execution_time?: {
|
|
73
74
|
preTime: number;
|
|
74
75
|
helperTime: number;
|
|
75
76
|
mainTime: number;
|
|
76
77
|
} | undefined;
|
|
77
|
-
assemble_kit_id?: number | null | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
status: import("../../marks").MarkStatusEnums;
|
|
80
80
|
ban: boolean;
|
|
81
81
|
id: number;
|
|
82
|
+
date_build: string;
|
|
82
83
|
kol: number;
|
|
83
|
-
brak: boolean;
|
|
84
84
|
user_id: number;
|
|
85
|
+
oper_id: number;
|
|
86
|
+
assemble_id: number;
|
|
85
87
|
metaloworking_id: number;
|
|
88
|
+
brak: boolean;
|
|
89
|
+
execution_time: number;
|
|
86
90
|
production_task_id: number | null;
|
|
87
|
-
date_build: string;
|
|
88
91
|
quantity_shipped: number;
|
|
89
|
-
execution_time: number;
|
|
90
|
-
assemble_id: number;
|
|
91
|
-
oper_id: number;
|
|
92
92
|
description?: string | undefined;
|
|
93
|
+
assemble_kit_id?: number | null | undefined;
|
|
93
94
|
operation_execution_time?: {
|
|
94
95
|
preTime: number;
|
|
95
96
|
helperTime: number;
|
|
96
97
|
mainTime: number;
|
|
97
98
|
} | undefined;
|
|
98
|
-
assemble_kit_id?: number | null | undefined;
|
|
99
99
|
}>, "many">>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
101
|
ban: boolean;
|
|
@@ -122,23 +122,23 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
122
122
|
status: import("../../marks").MarkStatusEnums;
|
|
123
123
|
ban: boolean;
|
|
124
124
|
id: number;
|
|
125
|
+
date_build: string;
|
|
125
126
|
kol: number;
|
|
126
|
-
brak: boolean;
|
|
127
127
|
user_id: number;
|
|
128
|
+
oper_id: number;
|
|
129
|
+
assemble_id: number;
|
|
128
130
|
metaloworking_id: number;
|
|
131
|
+
brak: boolean;
|
|
132
|
+
execution_time: number;
|
|
129
133
|
production_task_id: number | null;
|
|
130
|
-
date_build: string;
|
|
131
134
|
quantity_shipped: number;
|
|
132
|
-
execution_time: number;
|
|
133
|
-
assemble_id: number;
|
|
134
|
-
oper_id: number;
|
|
135
135
|
description?: string | undefined;
|
|
136
|
+
assemble_kit_id?: number | null | undefined;
|
|
136
137
|
operation_execution_time?: {
|
|
137
138
|
preTime: number;
|
|
138
139
|
helperTime: number;
|
|
139
140
|
mainTime: number;
|
|
140
141
|
} | undefined;
|
|
141
|
-
assemble_kit_id?: number | null | undefined;
|
|
142
142
|
}[] | undefined;
|
|
143
143
|
}, {
|
|
144
144
|
name: number;
|
|
@@ -151,23 +151,23 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
151
151
|
status: import("../../marks").MarkStatusEnums;
|
|
152
152
|
ban: boolean;
|
|
153
153
|
id: number;
|
|
154
|
+
date_build: string;
|
|
154
155
|
kol: number;
|
|
155
|
-
brak: boolean;
|
|
156
156
|
user_id: number;
|
|
157
|
+
oper_id: number;
|
|
158
|
+
assemble_id: number;
|
|
157
159
|
metaloworking_id: number;
|
|
160
|
+
brak: boolean;
|
|
161
|
+
execution_time: number;
|
|
158
162
|
production_task_id: number | null;
|
|
159
|
-
date_build: string;
|
|
160
163
|
quantity_shipped: number;
|
|
161
|
-
execution_time: number;
|
|
162
|
-
assemble_id: number;
|
|
163
|
-
oper_id: number;
|
|
164
164
|
description?: string | undefined;
|
|
165
|
+
assemble_kit_id?: number | null | undefined;
|
|
165
166
|
operation_execution_time?: {
|
|
166
167
|
preTime: number;
|
|
167
168
|
helperTime: number;
|
|
168
169
|
mainTime: number;
|
|
169
170
|
} | undefined;
|
|
170
|
-
assemble_kit_id?: number | null | undefined;
|
|
171
171
|
}[] | undefined;
|
|
172
172
|
preTime?: number | undefined;
|
|
173
173
|
helperTime?: number | undefined;
|
|
@@ -5,13 +5,13 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const marks_1 = require("../../marks");
|
|
6
6
|
exports.OperationSchema = zod_1.z.object({
|
|
7
7
|
id: zod_1.z.number().int().optional(),
|
|
8
|
-
idx: zod_1.z.number().int().
|
|
8
|
+
idx: zod_1.z.number().int().default(0),
|
|
9
9
|
name: zod_1.z.number().int(),
|
|
10
10
|
full_name: zod_1.z.string(),
|
|
11
11
|
ban: zod_1.z.boolean().default(false),
|
|
12
|
-
preTime: zod_1.z.number().
|
|
13
|
-
helperTime: zod_1.z.number().
|
|
14
|
-
mainTime: zod_1.z.number().
|
|
12
|
+
preTime: zod_1.z.number().default(0),
|
|
13
|
+
helperTime: zod_1.z.number().default(0),
|
|
14
|
+
mainTime: zod_1.z.number().default(0),
|
|
15
15
|
generalCountTime: zod_1.z.string().default(''),
|
|
16
16
|
description: zod_1.z.string().default(''),
|
|
17
17
|
instrumentList: zod_1.z.string().default(''),
|
|
@@ -18,7 +18,7 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
|
|
|
18
18
|
techProcessID: z.ZodString;
|
|
19
19
|
fileBase: z.ZodAny;
|
|
20
20
|
attention: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
21
|
-
|
|
21
|
+
is_custom: z.ZodOptional<z.ZodString>;
|
|
22
22
|
discontinued: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
designation: string;
|
|
@@ -37,8 +37,8 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
|
|
|
37
37
|
docs?: any;
|
|
38
38
|
attention?: boolean | undefined;
|
|
39
39
|
fileBase?: any;
|
|
40
|
+
is_custom?: string | undefined;
|
|
40
41
|
discontinued?: boolean | undefined;
|
|
41
|
-
isCustom?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
designation: string;
|
|
44
44
|
description: string;
|
|
@@ -49,14 +49,14 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
|
|
|
49
49
|
id?: unknown;
|
|
50
50
|
docs?: any;
|
|
51
51
|
attention?: unknown;
|
|
52
|
-
fileBase?: any;
|
|
53
52
|
materialList?: unknown;
|
|
53
|
+
fileBase?: any;
|
|
54
54
|
parametrs?: unknown;
|
|
55
55
|
characteristic?: unknown;
|
|
56
56
|
listPokDet?: unknown;
|
|
57
57
|
listDetal?: unknown;
|
|
58
58
|
listCbed?: unknown;
|
|
59
|
+
is_custom?: string | undefined;
|
|
59
60
|
discontinued?: unknown;
|
|
60
|
-
isCustom?: string | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
export type UpCreateProductDtoZodType = z.infer<typeof UpCreateProductDtoZod>;
|
|
@@ -20,6 +20,6 @@ exports.UpCreateProductDtoZod = zod_1.z.object({
|
|
|
20
20
|
techProcessID: zod_1.z.string(),
|
|
21
21
|
fileBase: zod_1.z.any(),
|
|
22
22
|
attention: zod_1.z.preprocess(val => (typeof val === 'string' ? (0, utils_1.parseBoolean)(val) : val), zod_1.z.boolean().optional()),
|
|
23
|
-
|
|
23
|
+
is_custom: zod_1.z.string().optional(),
|
|
24
24
|
discontinued: zod_1.z.preprocess(val => (typeof val === 'string' ? (0, utils_1.parseBoolean)(val) : val), zod_1.z.boolean().optional())
|
|
25
25
|
});
|
|
@@ -3,10 +3,10 @@ export declare const ChangeDueDateSchema: z.ZodObject<{
|
|
|
3
3
|
productionTaskId: z.ZodNumber;
|
|
4
4
|
dueDate: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
productionTaskId: number;
|
|
7
6
|
dueDate: string;
|
|
8
|
-
}, {
|
|
9
7
|
productionTaskId: number;
|
|
8
|
+
}, {
|
|
10
9
|
dueDate: string;
|
|
10
|
+
productionTaskId: number;
|
|
11
11
|
}>;
|
|
12
12
|
export type ChangeDueDateDto = z.infer<typeof ChangeDueDateSchema>;
|
|
@@ -9,74 +9,46 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
|
|
|
9
9
|
idx: z.ZodNumber;
|
|
10
10
|
quantity: z.ZodNumber;
|
|
11
11
|
operation_positions: z.ZodArray<z.ZodObject<{
|
|
12
|
-
id: z.ZodNumber;
|
|
13
|
-
employeePositions: z.ZodArray<z.ZodType<import("..").IEmployeePosition, z.ZodTypeDef, import("..").IEmployeePosition>, "many">;
|
|
14
|
-
equipmentPositions: z.ZodArray<z.ZodType<import("..").IEquipmentPosition, z.ZodTypeDef, import("..").IEquipmentPosition>, "many">;
|
|
15
|
-
tOperationId: z.ZodNumber;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
id: number;
|
|
18
|
-
tOperationId: number;
|
|
19
|
-
employeePositions: import("..").IEmployeePosition[];
|
|
20
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
21
|
-
}, {
|
|
22
|
-
id: number;
|
|
23
|
-
tOperationId: number;
|
|
24
|
-
employeePositions: import("..").IEmployeePosition[];
|
|
25
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
26
|
-
}>, "many">;
|
|
27
|
-
user_filter: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
-
userId: z.ZodNumber;
|
|
29
12
|
operationId: z.ZodNumber;
|
|
30
|
-
|
|
13
|
+
employeeId: z.ZodNumber;
|
|
14
|
+
equipmentId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
31
15
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
userId: number;
|
|
33
16
|
operationId: number;
|
|
34
|
-
|
|
17
|
+
equipmentId: number | null;
|
|
18
|
+
employeeId: number;
|
|
35
19
|
}, {
|
|
36
|
-
userId: number;
|
|
37
20
|
operationId: number;
|
|
38
|
-
|
|
39
|
-
|
|
21
|
+
employeeId: number;
|
|
22
|
+
equipmentId?: number | null | undefined;
|
|
23
|
+
}>, "many">;
|
|
40
24
|
responsible_user_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
41
25
|
}, "strip", z.ZodTypeAny, {
|
|
42
26
|
type: StockOrderType;
|
|
43
|
-
quantity: number;
|
|
44
27
|
production_task_id: number;
|
|
28
|
+
quantity: number;
|
|
45
29
|
idx: number;
|
|
46
30
|
operation_positions: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
31
|
+
operationId: number;
|
|
32
|
+
equipmentId: number | null;
|
|
33
|
+
employeeId: number;
|
|
51
34
|
}[];
|
|
52
35
|
id?: number | null | undefined;
|
|
53
36
|
responsible_user_id?: number | null | undefined;
|
|
54
37
|
ass_id?: number | null | undefined;
|
|
55
38
|
metall_id?: number | null | undefined;
|
|
56
|
-
user_filter?: {
|
|
57
|
-
userId: number;
|
|
58
|
-
operationId: number;
|
|
59
|
-
idx: number;
|
|
60
|
-
}[] | undefined;
|
|
61
39
|
}, {
|
|
62
40
|
type: StockOrderType;
|
|
63
|
-
quantity: number;
|
|
64
41
|
production_task_id: number;
|
|
42
|
+
quantity: number;
|
|
65
43
|
idx: number;
|
|
66
44
|
operation_positions: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
45
|
+
operationId: number;
|
|
46
|
+
employeeId: number;
|
|
47
|
+
equipmentId?: number | null | undefined;
|
|
71
48
|
}[];
|
|
72
49
|
id?: number | null | undefined;
|
|
73
50
|
responsible_user_id?: number | null | undefined;
|
|
74
51
|
ass_id?: number | null | undefined;
|
|
75
52
|
metall_id?: number | null | undefined;
|
|
76
|
-
user_filter?: {
|
|
77
|
-
userId: number;
|
|
78
|
-
operationId: number;
|
|
79
|
-
idx: number;
|
|
80
|
-
}[] | undefined;
|
|
81
53
|
}>;
|
|
82
54
|
export type CreateProductionOperationPosZodType = z.infer<typeof CreateProductionOperationPosZod>;
|
|
@@ -12,7 +12,6 @@ exports.CreateProductionOperationPosZod = zod_1.z.object({
|
|
|
12
12
|
metall_id: zod_1.z.number().nullish(),
|
|
13
13
|
idx: zod_1.z.number(),
|
|
14
14
|
quantity: zod_1.z.number(),
|
|
15
|
-
operation_positions: zod_1.z.array(production_operation_pos_schema_1.
|
|
16
|
-
user_filter: zod_1.z.array(production_operation_pos_schema_1.UserProdactionTaskFilterSchema).optional(),
|
|
15
|
+
operation_positions: zod_1.z.array(production_operation_pos_schema_1.createOperationPositionSchema),
|
|
17
16
|
responsible_user_id: zod_1.z.number().nullish().optional()
|
|
18
17
|
});
|
|
@@ -4,78 +4,71 @@ import { StockOrderType } from '../../utils';
|
|
|
4
4
|
export declare const CreateProductionTaskDtoZod: z.ZodObject<{
|
|
5
5
|
dueDate: z.ZodString;
|
|
6
6
|
typeWork: z.ZodType<StockOrderType, z.ZodTypeDef, StockOrderType>;
|
|
7
|
-
|
|
7
|
+
details_filters: z.ZodType<IDescriptionFilters, z.ZodTypeDef, IDescriptionFilters>;
|
|
8
8
|
productionOperationPos: z.ZodArray<z.ZodObject<{
|
|
9
9
|
id: z.ZodNumber;
|
|
10
10
|
idx: z.ZodNumber;
|
|
11
11
|
quantity: z.ZodNumber;
|
|
12
12
|
operationPositions: z.ZodArray<z.ZodObject<{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
tOperationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
operationId: z.ZodNumber;
|
|
14
|
+
employeeId: z.ZodNumber;
|
|
15
|
+
equipmentId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
17
16
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
tOperationId?: number | null | undefined;
|
|
17
|
+
operationId: number;
|
|
18
|
+
equipmentId: number | null;
|
|
19
|
+
employeeId: number;
|
|
22
20
|
}, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
equipmentIds?: number[] | null | undefined;
|
|
21
|
+
operationId: number;
|
|
22
|
+
employeeId: number;
|
|
23
|
+
equipmentId?: number | null | undefined;
|
|
27
24
|
}>, "many">;
|
|
28
25
|
}, "strip", z.ZodTypeAny, {
|
|
29
26
|
id: number;
|
|
30
27
|
quantity: number;
|
|
31
28
|
idx: number;
|
|
32
29
|
operationPositions: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
tOperationId?: number | null | undefined;
|
|
30
|
+
operationId: number;
|
|
31
|
+
equipmentId: number | null;
|
|
32
|
+
employeeId: number;
|
|
37
33
|
}[];
|
|
38
34
|
}, {
|
|
39
35
|
id: number;
|
|
40
36
|
quantity: number;
|
|
41
37
|
idx: number;
|
|
42
38
|
operationPositions: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
equipmentIds?: number[] | null | undefined;
|
|
39
|
+
operationId: number;
|
|
40
|
+
employeeId: number;
|
|
41
|
+
equipmentId?: number | null | undefined;
|
|
47
42
|
}[];
|
|
48
43
|
}>, "many">;
|
|
49
44
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
details_filters: IDescriptionFilters;
|
|
51
47
|
dueDate: string;
|
|
52
48
|
typeWork: StockOrderType;
|
|
53
|
-
detailsFilters: IDescriptionFilters;
|
|
54
49
|
productionOperationPos: {
|
|
55
50
|
id: number;
|
|
56
51
|
quantity: number;
|
|
57
52
|
idx: number;
|
|
58
53
|
operationPositions: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
tOperationId?: number | null | undefined;
|
|
54
|
+
operationId: number;
|
|
55
|
+
equipmentId: number | null;
|
|
56
|
+
employeeId: number;
|
|
63
57
|
}[];
|
|
64
58
|
}[];
|
|
65
59
|
description?: string | null | undefined;
|
|
66
60
|
}, {
|
|
61
|
+
details_filters: IDescriptionFilters;
|
|
67
62
|
dueDate: string;
|
|
68
63
|
typeWork: StockOrderType;
|
|
69
|
-
detailsFilters: IDescriptionFilters;
|
|
70
64
|
productionOperationPos: {
|
|
71
65
|
id: number;
|
|
72
66
|
quantity: number;
|
|
73
67
|
idx: number;
|
|
74
68
|
operationPositions: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
equipmentIds?: number[] | null | undefined;
|
|
69
|
+
operationId: number;
|
|
70
|
+
employeeId: number;
|
|
71
|
+
equipmentId?: number | null | undefined;
|
|
79
72
|
}[];
|
|
80
73
|
}[];
|
|
81
74
|
description?: string | null | undefined;
|
|
@@ -2,22 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateProductionTaskDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
6
|
-
id: zod_1.z.number().nullable().optional(),
|
|
7
|
-
employeeIds: zod_1.z.array(zod_1.z.number()).nullable().default([]),
|
|
8
|
-
equipmentIds: zod_1.z.array(zod_1.z.number()).nullable().default([]),
|
|
9
|
-
tOperationId: zod_1.z.number().nullable().optional()
|
|
10
|
-
});
|
|
5
|
+
const production_operation_pos_schema_1 = require("../schemas/production-operation-pos.schema");
|
|
11
6
|
const CreateProductionOperationPosSchema = zod_1.z.object({
|
|
12
7
|
id: zod_1.z.number(),
|
|
13
8
|
idx: zod_1.z.number(),
|
|
14
9
|
quantity: zod_1.z.number(),
|
|
15
|
-
operationPositions: zod_1.z.array(
|
|
10
|
+
operationPositions: zod_1.z.array(production_operation_pos_schema_1.createOperationPositionSchema)
|
|
16
11
|
});
|
|
17
12
|
exports.CreateProductionTaskDtoZod = zod_1.z.object({
|
|
18
13
|
dueDate: zod_1.z.string(),
|
|
19
14
|
typeWork: zod_1.z.custom(),
|
|
20
|
-
|
|
15
|
+
details_filters: zod_1.z.custom(),
|
|
21
16
|
productionOperationPos: zod_1.z.array(CreateProductionOperationPosSchema),
|
|
22
|
-
description: zod_1.z.string().
|
|
17
|
+
description: zod_1.z.string().nullish()
|
|
23
18
|
});
|
|
@@ -1,37 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const UpdateProductionTaskMarksDtoZod: z.ZodObject<{
|
|
3
|
-
|
|
4
|
-
id: z.ZodNumber;
|
|
5
|
-
employeePositions: z.ZodArray<z.ZodType<import("..").IEmployeePosition, z.ZodTypeDef, import("..").IEmployeePosition>, "many">;
|
|
6
|
-
equipmentPositions: z.ZodArray<z.ZodType<import("..").IEquipmentPosition, z.ZodTypeDef, import("..").IEquipmentPosition>, "many">;
|
|
7
|
-
tOperationId: z.ZodNumber;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id: number;
|
|
10
|
-
tOperationId: number;
|
|
11
|
-
employeePositions: import("..").IEmployeePosition[];
|
|
12
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
13
|
-
}, {
|
|
14
|
-
id: number;
|
|
15
|
-
tOperationId: number;
|
|
16
|
-
employeePositions: import("..").IEmployeePosition[];
|
|
17
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
18
|
-
}>, "many">>>;
|
|
19
|
-
productionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3
|
+
operationPositionId: z.ZodNumber;
|
|
20
4
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
|
|
22
|
-
operationPosition?: {
|
|
23
|
-
id: number;
|
|
24
|
-
tOperationId: number;
|
|
25
|
-
employeePositions: import("..").IEmployeePosition[];
|
|
26
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
27
|
-
}[] | null | undefined;
|
|
5
|
+
operationPositionId: number;
|
|
28
6
|
}, {
|
|
29
|
-
|
|
30
|
-
operationPosition?: {
|
|
31
|
-
id: number;
|
|
32
|
-
tOperationId: number;
|
|
33
|
-
employeePositions: import("..").IEmployeePosition[];
|
|
34
|
-
equipmentPositions: import("..").IEquipmentPosition[];
|
|
35
|
-
}[] | null | undefined;
|
|
7
|
+
operationPositionId: number;
|
|
36
8
|
}>;
|
|
37
9
|
export type UpdateProductionTaskMarksDtoZodType = z.infer<typeof UpdateProductionTaskMarksDtoZod>;
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateProductionTaskMarksDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const production_operation_pos_schema_1 = require("../schemas/production-operation-pos.schema");
|
|
6
5
|
exports.UpdateProductionTaskMarksDtoZod = zod_1.z.object({
|
|
7
|
-
|
|
8
|
-
productionTaskId:
|
|
6
|
+
operationPositionId: zod_1.z.number()
|
|
7
|
+
// productionTaskId: z.number().int().nullable().optional()
|
|
9
8
|
});
|
|
@@ -5,11 +5,11 @@ export declare const UpdateProductionTaskDtoZod: z.ZodObject<{
|
|
|
5
5
|
dueDate: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
description: string | null;
|
|
8
|
-
productionTaskId: number;
|
|
9
8
|
dueDate: string;
|
|
10
|
-
}, {
|
|
11
9
|
productionTaskId: number;
|
|
10
|
+
}, {
|
|
12
11
|
dueDate: string;
|
|
12
|
+
productionTaskId: number;
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type UpdateProductionTaskDtoZodType = z.infer<typeof UpdateProductionTaskDtoZod>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare enum StatusProductionTaskEnum {
|
|
2
|
-
active = "
|
|
3
|
-
inactive = "
|
|
4
|
-
archive = "
|
|
2
|
+
active = "active",
|
|
3
|
+
inactive = "inactive",
|
|
4
|
+
archive = "archive"
|
|
5
5
|
}
|
|
6
6
|
export declare enum OrderTypeEnum {
|
|
7
7
|
sclad = "sclad",
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OrderTypeEnum = exports.StatusProductionTaskEnum = void 0;
|
|
4
4
|
var StatusProductionTaskEnum;
|
|
5
5
|
(function (StatusProductionTaskEnum) {
|
|
6
|
-
StatusProductionTaskEnum["active"] = "
|
|
7
|
-
StatusProductionTaskEnum["inactive"] = "
|
|
8
|
-
StatusProductionTaskEnum["archive"] = "
|
|
6
|
+
StatusProductionTaskEnum["active"] = "active";
|
|
7
|
+
StatusProductionTaskEnum["inactive"] = "inactive";
|
|
8
|
+
StatusProductionTaskEnum["archive"] = "archive";
|
|
9
9
|
})(StatusProductionTaskEnum || (exports.StatusProductionTaskEnum = StatusProductionTaskEnum = {}));
|
|
10
10
|
var OrderTypeEnum;
|
|
11
11
|
(function (OrderTypeEnum) {
|
|
@@ -16,7 +16,6 @@ export * from './dto/get-taks-by-toperation.dto';
|
|
|
16
16
|
export * from './dto/get-toperations.dto';
|
|
17
17
|
export * from './dto/online-board-working.dto';
|
|
18
18
|
export * from './dto/plan-production-task.dto';
|
|
19
|
-
export * from './dto/update-marks.dto';
|
|
20
19
|
export * from './dto/update-status.dto';
|
|
21
20
|
export * from './dto/update.dto';
|
|
22
21
|
export * from './dto/change-due-date.dto';
|
|
@@ -30,3 +29,4 @@ export * from './schemas/production-operation-pos.schema';
|
|
|
30
29
|
export * from './dto/create-operation-pos.dto';
|
|
31
30
|
export * from './methods/methods';
|
|
32
31
|
export * from './default-data/default-data';
|
|
32
|
+
export * from './schemas/operation-positions.schema';
|
|
@@ -32,7 +32,6 @@ __exportStar(require("./dto/get-taks-by-toperation.dto"), exports);
|
|
|
32
32
|
__exportStar(require("./dto/get-toperations.dto"), exports);
|
|
33
33
|
__exportStar(require("./dto/online-board-working.dto"), exports);
|
|
34
34
|
__exportStar(require("./dto/plan-production-task.dto"), exports);
|
|
35
|
-
__exportStar(require("./dto/update-marks.dto"), exports);
|
|
36
35
|
__exportStar(require("./dto/update-status.dto"), exports);
|
|
37
36
|
__exportStar(require("./dto/update.dto"), exports);
|
|
38
37
|
__exportStar(require("./dto/change-due-date.dto"), exports);
|
|
@@ -46,3 +45,4 @@ __exportStar(require("./schemas/production-operation-pos.schema"), exports);
|
|
|
46
45
|
__exportStar(require("./dto/create-operation-pos.dto"), exports);
|
|
47
46
|
__exportStar(require("./methods/methods"), exports);
|
|
48
47
|
__exportStar(require("./default-data/default-data"), exports);
|
|
48
|
+
__exportStar(require("./schemas/operation-positions.schema"), exports);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { ModelTechProcess } from '../../tech-process';
|
|
3
2
|
import { ModelUser } from '../../user';
|
|
4
3
|
import { IzdType, ProductionTimeType } from '../../utils';
|
|
@@ -6,13 +5,8 @@ import { ModelProductionTaskAssembly } from '../schemas/production-taks-assembly
|
|
|
6
5
|
import { ModelProductionTaskMetalloworking } from '../schemas/production-taks-metalloworkig.schema';
|
|
7
6
|
import { ModelProductionTask } from '../schemas/production-task.schema';
|
|
8
7
|
import { IFiltersByByOrder } from './online-board';
|
|
9
|
-
import { OperationPositionSchema } from '../schemas/production-operation-pos.schema';
|
|
10
8
|
import { ModelShipments } from '../../shipments';
|
|
11
|
-
|
|
12
|
-
userId: number;
|
|
13
|
-
operationId: number;
|
|
14
|
-
idx: number;
|
|
15
|
-
}
|
|
9
|
+
import { ModelOperationPosition } from '../schemas/operation-positions.schema';
|
|
16
10
|
export interface IMarkExecute {
|
|
17
11
|
quantity: number;
|
|
18
12
|
executionTime: number;
|
|
@@ -26,7 +20,6 @@ export interface IEmployeePosition {
|
|
|
26
20
|
export interface IEquipmentPosition {
|
|
27
21
|
equipmentId: number;
|
|
28
22
|
}
|
|
29
|
-
export type operationPositionType = z.infer<typeof OperationPositionSchema>;
|
|
30
23
|
export interface IDescriptionFilters {
|
|
31
24
|
byOrder: IFiltersByByOrder;
|
|
32
25
|
onlyDeficit: boolean;
|
|
@@ -38,7 +31,7 @@ export interface IDescriptionFilters {
|
|
|
38
31
|
export interface IProductionOperation {
|
|
39
32
|
entity: any;
|
|
40
33
|
id: number;
|
|
41
|
-
|
|
34
|
+
operationPosition?: ModelOperationPosition[];
|
|
42
35
|
ProductionTaskAssembly?: ModelProductionTaskAssembly;
|
|
43
36
|
ProductionTaskMetalloworking?: ModelProductionTaskMetalloworking;
|
|
44
37
|
kolvo_shipments: number;
|
|
@@ -46,9 +39,7 @@ export interface IProductionOperation {
|
|
|
46
39
|
collected?: number;
|
|
47
40
|
type_izd?: IzdType;
|
|
48
41
|
relativeType: IzdType;
|
|
49
|
-
startTime: Date | null;
|
|
50
42
|
responsibleUser: number | null;
|
|
51
|
-
globalIndex: number;
|
|
52
43
|
needsByProductinTask: number;
|
|
53
44
|
}
|
|
54
45
|
export interface ICreateProductionOperationPos {
|
|
@@ -57,12 +48,14 @@ export interface ICreateProductionOperationPos {
|
|
|
57
48
|
quantity: number;
|
|
58
49
|
operationPositions: IOperationPosition[];
|
|
59
50
|
}
|
|
60
|
-
interface IOperationPosition {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
equipmentIds: number[];
|
|
51
|
+
export interface IOperationPosition {
|
|
52
|
+
operationId: number;
|
|
53
|
+
employeeId: number;
|
|
54
|
+
equipmentId: number;
|
|
65
55
|
}
|
|
56
|
+
export type createOperationPosType = IOperationPosition & {
|
|
57
|
+
productionOperationPosId: number;
|
|
58
|
+
};
|
|
66
59
|
export interface IPrepareProductionOperation extends ModelProductionTask {
|
|
67
60
|
productionOperations: IProductionOperation[];
|
|
68
61
|
operationExecutionTime?: number;
|
|
@@ -92,6 +85,12 @@ export interface IGetDeficitsDetalByProductionTask {
|
|
|
92
85
|
deficitByDetal: number;
|
|
93
86
|
relativesIds: IRelativeIds;
|
|
94
87
|
}
|
|
88
|
+
export interface IActualOperationPos {
|
|
89
|
+
userId: number;
|
|
90
|
+
indexStartFrom?: number | null;
|
|
91
|
+
transaction?: any;
|
|
92
|
+
startTime?: Date;
|
|
93
|
+
}
|
|
95
94
|
export interface IRelativeIds {
|
|
96
95
|
productIds: number[];
|
|
97
96
|
cbedIds: number[];
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { ModelOperationPosition } from '../schemas/operation-positions.schema';
|
|
1
2
|
import { ModelProductionOperationPos } from '../schemas/production-operation-pos.schema';
|
|
2
|
-
export declare const findMinGlobalIndex: (operationPosItems:
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const findMinGlobalIndex: (operationPosItems: ModelOperationPosition[]) => number;
|
|
4
|
+
export declare const findOperationPosWithMinStartTime: (operationPositions: ModelOperationPosition[]) => ModelOperationPosition | null;
|
|
5
|
+
export declare const findMinStartTime: (allOperationPositions: ModelOperationPosition[]) => Date;
|
|
6
|
+
export declare const getActualProductionOperationPos: (operationPosItems: ModelOperationPosition[]) => ModelOperationPosition | null;
|
|
7
|
+
export declare const minStartTimeFromProductionPos: (productionOperationPositions: ModelProductionOperationPos[]) => Date | null;
|