@pksep/zod-shared 0.0.526 → 0.0.528
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 +5 -0
- package/dist/action/schemas/actions.schema.js +2 -1
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +0 -9
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +0 -7
- package/dist/assemble/schemas/assemble.schema.d.ts +0 -7
- package/dist/equipment/schemas/equipment.schema.d.ts +5 -5
- package/dist/moving/schemas/moving.schema.d.ts +7 -7
- package/dist/operations/dto/create-type-operation.dto.d.ts +0 -4
- package/dist/operations/dto/create-type-operation.dto.js +1 -5
- package/dist/operations/dto/get-type-operation-by-id.dto.d.ts +16 -0
- package/dist/operations/dto/get-type-operation-by-id.dto.js +14 -0
- package/dist/operations/dto/update-type-operation.dto.d.ts +0 -4
- package/dist/operations/dto/update-type-operation.dto.js +1 -5
- package/dist/operations/enums/enums.d.ts +5 -0
- package/dist/operations/enums/enums.js +7 -1
- package/dist/operations/index.d.ts +0 -1
- package/dist/operations/index.js +0 -1
- package/dist/operations/interfaces/interface.d.ts +0 -5
- package/dist/operations/schemas/operation.schema.d.ts +0 -4
- package/dist/operations/schemas/operation.schema.js +0 -4
- package/dist/operations/schemas/type-operation.schema.d.ts +0 -4
- package/dist/operations/schemas/type-operation.schema.js +0 -2
- package/dist/production-tasks/interfaces/production-tasks.d.ts +0 -1
- package/dist/role/schemas/role.schema.d.ts +7 -7
- package/dist/tech-process/schemas/tech-process.schema.d.ts +0 -5
- package/dist/user/schemas/user.schema.d.ts +5 -5
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ import { ModelRole } from '../../role';
|
|
|
23
23
|
import { ModelProductionTask } from '../../production-tasks';
|
|
24
24
|
import { ModelContact } from '../../contact';
|
|
25
25
|
import { ModelCompany } from '../../company';
|
|
26
|
+
import { ModelRevision } from '../../sclad';
|
|
26
27
|
export declare const ActionsSchema: z.ZodObject<{
|
|
27
28
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
29
|
responsible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -58,6 +59,7 @@ export declare const ActionsSchema: z.ZodObject<{
|
|
|
58
59
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
60
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
61
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
62
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
63
|
}, "strip", z.ZodTypeAny, {
|
|
62
64
|
ban: boolean;
|
|
63
65
|
action: IActionText[];
|
|
@@ -93,6 +95,7 @@ export declare const ActionsSchema: z.ZodObject<{
|
|
|
93
95
|
mark_id?: number | null | undefined;
|
|
94
96
|
role_id?: number | null | undefined;
|
|
95
97
|
parent_action_idL?: number | null | undefined;
|
|
98
|
+
revision_id?: number | null | undefined;
|
|
96
99
|
}, {
|
|
97
100
|
action: IActionText[];
|
|
98
101
|
type_object: string;
|
|
@@ -128,6 +131,7 @@ export declare const ActionsSchema: z.ZodObject<{
|
|
|
128
131
|
mark_id?: number | null | undefined;
|
|
129
132
|
role_id?: number | null | undefined;
|
|
130
133
|
parent_action_idL?: number | null | undefined;
|
|
134
|
+
revision_id?: number | null | undefined;
|
|
131
135
|
}>;
|
|
132
136
|
export type ModelActions = z.infer<typeof ActionsSchema> & {
|
|
133
137
|
child_actions?: ModelActions[];
|
|
@@ -158,4 +162,5 @@ export type ModelActions = z.infer<typeof ActionsSchema> & {
|
|
|
158
162
|
type_operation?: ModelTypeOperation;
|
|
159
163
|
contact?: ModelContact;
|
|
160
164
|
company?: ModelCompany;
|
|
165
|
+
revision?: ModelRevision;
|
|
161
166
|
};
|
|
@@ -36,5 +36,6 @@ exports.ActionsSchema = zod_1.z.object({
|
|
|
36
36
|
role_id: zod_1.z.number().nullish(),
|
|
37
37
|
parent_action_idL: zod_1.z.number().nullable().optional(),
|
|
38
38
|
production_task_id: zod_1.z.number().nullish(),
|
|
39
|
-
createdAt: zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).optional()
|
|
39
|
+
createdAt: zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).optional(),
|
|
40
|
+
revision_id: zod_1.z.number().nullish()
|
|
40
41
|
});
|
|
@@ -155,7 +155,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
155
155
|
instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
156
156
|
eqList: z.ZodDefault<z.ZodString>;
|
|
157
157
|
eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
158
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").WorkStartCalcType>>;
|
|
159
158
|
tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
160
159
|
tech_process_id: z.ZodNumber;
|
|
161
160
|
marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -238,7 +237,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
238
237
|
preTime: number;
|
|
239
238
|
helperTime: number;
|
|
240
239
|
mainTime: number;
|
|
241
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
242
240
|
generalCountTime: string;
|
|
243
241
|
instrumentList: string;
|
|
244
242
|
instrumentMerList: string;
|
|
@@ -306,7 +304,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
306
304
|
preTime?: number | undefined;
|
|
307
305
|
helperTime?: number | undefined;
|
|
308
306
|
mainTime?: number | undefined;
|
|
309
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
310
307
|
generalCountTime?: string | undefined;
|
|
311
308
|
instrumentList?: string | undefined;
|
|
312
309
|
instrumentMerList?: string | undefined;
|
|
@@ -335,7 +332,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
335
332
|
preTime: number;
|
|
336
333
|
helperTime: number;
|
|
337
334
|
mainTime: number;
|
|
338
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
339
335
|
generalCountTime: string;
|
|
340
336
|
instrumentList: string;
|
|
341
337
|
instrumentMerList: string;
|
|
@@ -412,7 +408,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
412
408
|
preTime?: number | undefined;
|
|
413
409
|
helperTime?: number | undefined;
|
|
414
410
|
mainTime?: number | undefined;
|
|
415
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
416
411
|
generalCountTime?: string | undefined;
|
|
417
412
|
instrumentList?: string | undefined;
|
|
418
413
|
instrumentMerList?: string | undefined;
|
|
@@ -816,7 +811,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
816
811
|
preTime: number;
|
|
817
812
|
helperTime: number;
|
|
818
813
|
mainTime: number;
|
|
819
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
820
814
|
generalCountTime: string;
|
|
821
815
|
instrumentList: string;
|
|
822
816
|
instrumentMerList: string;
|
|
@@ -1023,7 +1017,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1023
1017
|
preTime?: number | undefined;
|
|
1024
1018
|
helperTime?: number | undefined;
|
|
1025
1019
|
mainTime?: number | undefined;
|
|
1026
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
1027
1020
|
generalCountTime?: string | undefined;
|
|
1028
1021
|
instrumentList?: string | undefined;
|
|
1029
1022
|
instrumentMerList?: string | undefined;
|
|
@@ -1189,7 +1182,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1189
1182
|
preTime: number;
|
|
1190
1183
|
helperTime: number;
|
|
1191
1184
|
mainTime: number;
|
|
1192
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
1193
1185
|
generalCountTime: string;
|
|
1194
1186
|
instrumentList: string;
|
|
1195
1187
|
instrumentMerList: string;
|
|
@@ -1398,7 +1390,6 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1398
1390
|
preTime?: number | undefined;
|
|
1399
1391
|
helperTime?: number | undefined;
|
|
1400
1392
|
mainTime?: number | undefined;
|
|
1401
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
1402
1393
|
generalCountTime?: string | undefined;
|
|
1403
1394
|
instrumentList?: string | undefined;
|
|
1404
1395
|
instrumentMerList?: string | undefined;
|
|
@@ -156,7 +156,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
156
156
|
instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
157
157
|
eqList: z.ZodDefault<z.ZodString>;
|
|
158
158
|
eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
159
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").WorkStartCalcType>>;
|
|
160
159
|
tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
161
160
|
tech_process_id: z.ZodNumber;
|
|
162
161
|
marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -239,7 +238,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
239
238
|
preTime: number;
|
|
240
239
|
helperTime: number;
|
|
241
240
|
mainTime: number;
|
|
242
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
243
241
|
generalCountTime: string;
|
|
244
242
|
instrumentList: string;
|
|
245
243
|
instrumentMerList: string;
|
|
@@ -307,7 +305,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
307
305
|
preTime?: number | undefined;
|
|
308
306
|
helperTime?: number | undefined;
|
|
309
307
|
mainTime?: number | undefined;
|
|
310
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
311
308
|
generalCountTime?: string | undefined;
|
|
312
309
|
instrumentList?: string | undefined;
|
|
313
310
|
instrumentMerList?: string | undefined;
|
|
@@ -336,7 +333,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
336
333
|
preTime: number;
|
|
337
334
|
helperTime: number;
|
|
338
335
|
mainTime: number;
|
|
339
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
340
336
|
generalCountTime: string;
|
|
341
337
|
instrumentList: string;
|
|
342
338
|
instrumentMerList: string;
|
|
@@ -413,7 +409,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
413
409
|
preTime?: number | undefined;
|
|
414
410
|
helperTime?: number | undefined;
|
|
415
411
|
mainTime?: number | undefined;
|
|
416
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
417
412
|
generalCountTime?: string | undefined;
|
|
418
413
|
instrumentList?: string | undefined;
|
|
419
414
|
instrumentMerList?: string | undefined;
|
|
@@ -840,7 +835,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
840
835
|
preTime: number;
|
|
841
836
|
helperTime: number;
|
|
842
837
|
mainTime: number;
|
|
843
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
844
838
|
generalCountTime: string;
|
|
845
839
|
instrumentList: string;
|
|
846
840
|
instrumentMerList: string;
|
|
@@ -1058,7 +1052,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
1058
1052
|
preTime?: number | undefined;
|
|
1059
1053
|
helperTime?: number | undefined;
|
|
1060
1054
|
mainTime?: number | undefined;
|
|
1061
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
1062
1055
|
generalCountTime?: string | undefined;
|
|
1063
1056
|
instrumentList?: string | undefined;
|
|
1064
1057
|
instrumentMerList?: string | undefined;
|
|
@@ -156,7 +156,6 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
156
156
|
instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
157
157
|
eqList: z.ZodDefault<z.ZodString>;
|
|
158
158
|
eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
159
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").WorkStartCalcType>>;
|
|
160
159
|
tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
161
160
|
tech_process_id: z.ZodNumber;
|
|
162
161
|
marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -239,7 +238,6 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
239
238
|
preTime: number;
|
|
240
239
|
helperTime: number;
|
|
241
240
|
mainTime: number;
|
|
242
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
243
241
|
generalCountTime: string;
|
|
244
242
|
instrumentList: string;
|
|
245
243
|
instrumentMerList: string;
|
|
@@ -307,7 +305,6 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
307
305
|
preTime?: number | undefined;
|
|
308
306
|
helperTime?: number | undefined;
|
|
309
307
|
mainTime?: number | undefined;
|
|
310
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
311
308
|
generalCountTime?: string | undefined;
|
|
312
309
|
instrumentList?: string | undefined;
|
|
313
310
|
instrumentMerList?: string | undefined;
|
|
@@ -336,7 +333,6 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
336
333
|
preTime: number;
|
|
337
334
|
helperTime: number;
|
|
338
335
|
mainTime: number;
|
|
339
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
340
336
|
generalCountTime: string;
|
|
341
337
|
instrumentList: string;
|
|
342
338
|
instrumentMerList: string;
|
|
@@ -413,7 +409,6 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
413
409
|
preTime?: number | undefined;
|
|
414
410
|
helperTime?: number | undefined;
|
|
415
411
|
mainTime?: number | undefined;
|
|
416
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
417
412
|
generalCountTime?: string | undefined;
|
|
418
413
|
instrumentList?: string | undefined;
|
|
419
414
|
instrumentMerList?: string | undefined;
|
|
@@ -817,7 +812,6 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
817
812
|
preTime: number;
|
|
818
813
|
helperTime: number;
|
|
819
814
|
mainTime: number;
|
|
820
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
821
815
|
generalCountTime: string;
|
|
822
816
|
instrumentList: string;
|
|
823
817
|
instrumentMerList: string;
|
|
@@ -1024,7 +1018,6 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
1024
1018
|
preTime?: number | undefined;
|
|
1025
1019
|
helperTime?: number | undefined;
|
|
1026
1020
|
mainTime?: number | undefined;
|
|
1027
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
1028
1021
|
generalCountTime?: string | undefined;
|
|
1029
1022
|
instrumentList?: string | undefined;
|
|
1030
1023
|
instrumentMerList?: string | undefined;
|
|
@@ -129,7 +129,6 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
129
129
|
instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
130
130
|
eqList: z.ZodDefault<z.ZodString>;
|
|
131
131
|
eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
132
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../../operations").WorkStartCalcType>>;
|
|
133
132
|
tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
134
133
|
tech_process_id: z.ZodNumber;
|
|
135
134
|
marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -212,7 +211,6 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
212
211
|
preTime: number;
|
|
213
212
|
helperTime: number;
|
|
214
213
|
mainTime: number;
|
|
215
|
-
workStartCalcType: import("../../operations").WorkStartCalcType;
|
|
216
214
|
generalCountTime: string;
|
|
217
215
|
instrumentList: string;
|
|
218
216
|
instrumentMerList: string;
|
|
@@ -280,7 +278,6 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
280
278
|
preTime?: number | undefined;
|
|
281
279
|
helperTime?: number | undefined;
|
|
282
280
|
mainTime?: number | undefined;
|
|
283
|
-
workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
|
|
284
281
|
generalCountTime?: string | undefined;
|
|
285
282
|
instrumentList?: string | undefined;
|
|
286
283
|
instrumentMerList?: string | undefined;
|
|
@@ -375,6 +372,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
375
372
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
376
373
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
377
374
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
375
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
378
376
|
}, "strip", z.ZodTypeAny, {
|
|
379
377
|
ban: boolean;
|
|
380
378
|
action: import("../../action").IActionText[];
|
|
@@ -410,6 +408,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
410
408
|
mark_id?: number | null | undefined;
|
|
411
409
|
role_id?: number | null | undefined;
|
|
412
410
|
parent_action_idL?: number | null | undefined;
|
|
411
|
+
revision_id?: number | null | undefined;
|
|
413
412
|
}, {
|
|
414
413
|
action: import("../../action").IActionText[];
|
|
415
414
|
type_object: string;
|
|
@@ -445,6 +444,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
445
444
|
mark_id?: number | null | undefined;
|
|
446
445
|
role_id?: number | null | undefined;
|
|
447
446
|
parent_action_idL?: number | null | undefined;
|
|
447
|
+
revision_id?: number | null | undefined;
|
|
448
448
|
}>, "many">>;
|
|
449
449
|
}, "strip", z.ZodTypeAny, {
|
|
450
450
|
ban: boolean;
|
|
@@ -474,7 +474,6 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
474
474
|
preTime: number;
|
|
475
475
|
helperTime: number;
|
|
476
476
|
mainTime: number;
|
|
477
|
-
workStartCalcType: import("../../operations").WorkStartCalcType;
|
|
478
477
|
generalCountTime: string;
|
|
479
478
|
instrumentList: string;
|
|
480
479
|
instrumentMerList: string;
|
|
@@ -593,6 +592,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
593
592
|
mark_id?: number | null | undefined;
|
|
594
593
|
role_id?: number | null | undefined;
|
|
595
594
|
parent_action_idL?: number | null | undefined;
|
|
595
|
+
revision_id?: number | null | undefined;
|
|
596
596
|
}[] | undefined;
|
|
597
597
|
}, {
|
|
598
598
|
description: string | null;
|
|
@@ -640,7 +640,6 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
640
640
|
preTime?: number | undefined;
|
|
641
641
|
helperTime?: number | undefined;
|
|
642
642
|
mainTime?: number | undefined;
|
|
643
|
-
workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
|
|
644
643
|
generalCountTime?: string | undefined;
|
|
645
644
|
instrumentList?: string | undefined;
|
|
646
645
|
instrumentMerList?: string | undefined;
|
|
@@ -741,6 +740,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
741
740
|
mark_id?: number | null | undefined;
|
|
742
741
|
role_id?: number | null | undefined;
|
|
743
742
|
parent_action_idL?: number | null | undefined;
|
|
743
|
+
revision_id?: number | null | undefined;
|
|
744
744
|
}[] | undefined;
|
|
745
745
|
}>;
|
|
746
746
|
export type ModelEquipment = z.infer<typeof EquipmentSchema> & {
|
|
@@ -309,6 +309,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
309
309
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
310
310
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
311
311
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
312
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
312
313
|
}, "strip", z.ZodTypeAny, {
|
|
313
314
|
ban: boolean;
|
|
314
315
|
action: import("../..").IActionText[];
|
|
@@ -344,6 +345,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
344
345
|
mark_id?: number | null | undefined;
|
|
345
346
|
role_id?: number | null | undefined;
|
|
346
347
|
parent_action_idL?: number | null | undefined;
|
|
348
|
+
revision_id?: number | null | undefined;
|
|
347
349
|
}, {
|
|
348
350
|
action: import("../..").IActionText[];
|
|
349
351
|
type_object: string;
|
|
@@ -379,6 +381,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
379
381
|
mark_id?: number | null | undefined;
|
|
380
382
|
role_id?: number | null | undefined;
|
|
381
383
|
parent_action_idL?: number | null | undefined;
|
|
384
|
+
revision_id?: number | null | undefined;
|
|
382
385
|
}>, "many">;
|
|
383
386
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
384
387
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -526,7 +529,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
526
529
|
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
527
530
|
square: z.ZodDefault<z.ZodBoolean>;
|
|
528
531
|
list: z.ZodDefault<z.ZodBoolean>;
|
|
529
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").WorkStartCalcType>>;
|
|
530
532
|
countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
531
533
|
}, "strip", z.ZodTypeAny, {
|
|
532
534
|
name: string;
|
|
@@ -536,7 +538,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
536
538
|
cpu: boolean;
|
|
537
539
|
square: boolean;
|
|
538
540
|
list: boolean;
|
|
539
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
540
541
|
id?: number | undefined;
|
|
541
542
|
countWorking?: number | undefined;
|
|
542
543
|
}, {
|
|
@@ -548,7 +549,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
548
549
|
cpu?: boolean | undefined;
|
|
549
550
|
square?: boolean | undefined;
|
|
550
551
|
list?: boolean | undefined;
|
|
551
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
552
552
|
countWorking?: number | undefined;
|
|
553
553
|
}>, "many">;
|
|
554
554
|
subdivision: z.ZodOptional<z.ZodNativeEnum<typeof import("../../user").EnumSubdivision>>;
|
|
@@ -611,6 +611,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
611
611
|
mark_id?: number | null | undefined;
|
|
612
612
|
role_id?: number | null | undefined;
|
|
613
613
|
parent_action_idL?: number | null | undefined;
|
|
614
|
+
revision_id?: number | null | undefined;
|
|
614
615
|
}[];
|
|
615
616
|
requisites: {
|
|
616
617
|
value: string;
|
|
@@ -747,7 +748,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
747
748
|
cpu: boolean;
|
|
748
749
|
square: boolean;
|
|
749
750
|
list: boolean;
|
|
750
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
751
751
|
id?: number | undefined;
|
|
752
752
|
countWorking?: number | undefined;
|
|
753
753
|
}[];
|
|
@@ -812,6 +812,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
812
812
|
mark_id?: number | null | undefined;
|
|
813
813
|
role_id?: number | null | undefined;
|
|
814
814
|
parent_action_idL?: number | null | undefined;
|
|
815
|
+
revision_id?: number | null | undefined;
|
|
815
816
|
}[];
|
|
816
817
|
products: {
|
|
817
818
|
designation: string | null;
|
|
@@ -941,7 +942,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
941
942
|
cpu?: boolean | undefined;
|
|
942
943
|
square?: boolean | undefined;
|
|
943
944
|
list?: boolean | undefined;
|
|
944
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
945
945
|
countWorking?: number | undefined;
|
|
946
946
|
}[];
|
|
947
947
|
ban?: boolean | undefined;
|
|
@@ -1094,6 +1094,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1094
1094
|
mark_id?: number | null | undefined;
|
|
1095
1095
|
role_id?: number | null | undefined;
|
|
1096
1096
|
parent_action_idL?: number | null | undefined;
|
|
1097
|
+
revision_id?: number | null | undefined;
|
|
1097
1098
|
}[];
|
|
1098
1099
|
requisites: {
|
|
1099
1100
|
value: string;
|
|
@@ -1230,7 +1231,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1230
1231
|
cpu: boolean;
|
|
1231
1232
|
square: boolean;
|
|
1232
1233
|
list: boolean;
|
|
1233
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
1234
1234
|
id?: number | undefined;
|
|
1235
1235
|
countWorking?: number | undefined;
|
|
1236
1236
|
}[];
|
|
@@ -1323,6 +1323,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1323
1323
|
mark_id?: number | null | undefined;
|
|
1324
1324
|
role_id?: number | null | undefined;
|
|
1325
1325
|
parent_action_idL?: number | null | undefined;
|
|
1326
|
+
revision_id?: number | null | undefined;
|
|
1326
1327
|
}[];
|
|
1327
1328
|
products: {
|
|
1328
1329
|
designation: string | null;
|
|
@@ -1452,7 +1453,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1452
1453
|
cpu?: boolean | undefined;
|
|
1453
1454
|
square?: boolean | undefined;
|
|
1454
1455
|
list?: boolean | undefined;
|
|
1455
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
1456
1456
|
countWorking?: number | undefined;
|
|
1457
1457
|
}[];
|
|
1458
1458
|
ban?: boolean | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
3
2
|
export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
4
3
|
name: z.ZodString;
|
|
5
4
|
preTime: z.ZodBoolean;
|
|
@@ -15,7 +14,6 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
15
14
|
sclad: z.ZodBoolean;
|
|
16
15
|
preTimeMinute: z.ZodNumber;
|
|
17
16
|
helperTimeMinute: z.ZodNumber;
|
|
18
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
19
17
|
}, "strip", z.ZodTypeAny, {
|
|
20
18
|
metaloworking: boolean;
|
|
21
19
|
name: string;
|
|
@@ -30,7 +28,6 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
30
28
|
sclad: boolean;
|
|
31
29
|
preTimeMinute: number;
|
|
32
30
|
helperTimeMinute: number;
|
|
33
|
-
workStartCalcType: WorkStartCalcType;
|
|
34
31
|
users?: number[] | null | undefined;
|
|
35
32
|
}, {
|
|
36
33
|
metaloworking: boolean;
|
|
@@ -47,6 +44,5 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
47
44
|
helperTimeMinute: number;
|
|
48
45
|
users?: number[] | null | undefined;
|
|
49
46
|
equipmentIds?: number[] | null | undefined;
|
|
50
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
51
47
|
}>;
|
|
52
48
|
export type CreateTypeOperationDto = z.infer<typeof CreateTypeOperationSchema>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateTypeOperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("../enums/enums");
|
|
6
5
|
exports.CreateTypeOperationSchema = zod_1.z.object({
|
|
7
6
|
name: zod_1.z.string(),
|
|
8
7
|
preTime: zod_1.z.boolean(),
|
|
@@ -17,8 +16,5 @@ exports.CreateTypeOperationSchema = zod_1.z.object({
|
|
|
17
16
|
assembly: zod_1.z.boolean(),
|
|
18
17
|
sclad: zod_1.z.boolean(),
|
|
19
18
|
preTimeMinute: zod_1.z.number(),
|
|
20
|
-
helperTimeMinute: zod_1.z.number()
|
|
21
|
-
workStartCalcType: zod_1.z
|
|
22
|
-
.nativeEnum(enums_1.WorkStartCalcType)
|
|
23
|
-
.default(enums_1.WorkStartCalcType.automatic)
|
|
19
|
+
helperTimeMinute: zod_1.z.number()
|
|
24
20
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { ModelIncludeForTypeOperation } from '../enums/enums';
|
|
3
|
+
export declare const GetTypeOperationByIdDtoZod: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodEnum<["id", "name", "preTime", "helperTime", "mainTime", "cpu", "square", "list", "workStartCalcType", "countWorking"]>, "many">>;
|
|
6
|
+
modelInclude: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ModelIncludeForTypeOperation>, "many">>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
id: number;
|
|
9
|
+
attributes?: ("id" | "name" | "preTime" | "helperTime" | "mainTime" | "cpu" | "square" | "list" | "workStartCalcType" | "countWorking")[] | undefined;
|
|
10
|
+
modelInclude?: ModelIncludeForTypeOperation[] | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
id: number;
|
|
13
|
+
attributes?: ("id" | "name" | "preTime" | "helperTime" | "mainTime" | "cpu" | "square" | "list" | "workStartCalcType" | "countWorking")[] | undefined;
|
|
14
|
+
modelInclude?: ModelIncludeForTypeOperation[] | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export type GetTypeOperationByIdDtoType = z.TypeOf<typeof GetTypeOperationByIdDtoZod>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GetTypeOperationByIdDtoZod = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const enums_1 = require("../enums/enums");
|
|
9
|
+
const type_operation_schema_1 = require("../schemas/type-operation.schema");
|
|
10
|
+
exports.GetTypeOperationByIdDtoZod = zod_1.default.object({
|
|
11
|
+
id: zod_1.default.number().int().nonnegative(),
|
|
12
|
+
attributes: zod_1.default.array(type_operation_schema_1.TypeOperationSchema.keyof()).optional(),
|
|
13
|
+
modelInclude: zod_1.default.array(zod_1.default.nativeEnum(enums_1.ModelIncludeForTypeOperation)).optional()
|
|
14
|
+
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
3
2
|
export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
4
3
|
id: z.ZodNumber;
|
|
5
4
|
name: z.ZodString;
|
|
@@ -16,7 +15,6 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
16
15
|
sclad: z.ZodBoolean;
|
|
17
16
|
preTimeMinute: z.ZodNumber;
|
|
18
17
|
helperTimeMinute: z.ZodNumber;
|
|
19
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
20
18
|
}, "strip", z.ZodTypeAny, {
|
|
21
19
|
metaloworking: boolean;
|
|
22
20
|
id: number;
|
|
@@ -32,7 +30,6 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
32
30
|
sclad: boolean;
|
|
33
31
|
preTimeMinute: number;
|
|
34
32
|
helperTimeMinute: number;
|
|
35
|
-
workStartCalcType: WorkStartCalcType;
|
|
36
33
|
users?: any;
|
|
37
34
|
}, {
|
|
38
35
|
metaloworking: boolean;
|
|
@@ -50,6 +47,5 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
50
47
|
helperTimeMinute: number;
|
|
51
48
|
users?: any;
|
|
52
49
|
equipmentIds?: number[] | null | undefined;
|
|
53
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
54
50
|
}>;
|
|
55
51
|
export type UpdateTypeOperationDto = z.infer<typeof UpdateTypeOperationSchema>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateTypeOperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("../enums/enums");
|
|
6
5
|
exports.UpdateTypeOperationSchema = zod_1.z.object({
|
|
7
6
|
id: zod_1.z.number().int(),
|
|
8
7
|
name: zod_1.z.string(),
|
|
@@ -18,8 +17,5 @@ exports.UpdateTypeOperationSchema = zod_1.z.object({
|
|
|
18
17
|
assembly: zod_1.z.boolean(),
|
|
19
18
|
sclad: zod_1.z.boolean(),
|
|
20
19
|
preTimeMinute: zod_1.z.number(),
|
|
21
|
-
helperTimeMinute: zod_1.z.number()
|
|
22
|
-
workStartCalcType: zod_1.z
|
|
23
|
-
.nativeEnum(enums_1.WorkStartCalcType)
|
|
24
|
-
.default(enums_1.WorkStartCalcType.automatic)
|
|
20
|
+
helperTimeMinute: zod_1.z.number()
|
|
25
21
|
});
|
|
@@ -5,3 +5,8 @@ export declare enum WorkStartCalcType {
|
|
|
5
5
|
prevOperationReadinessDate = "prevOperationReadinessDate",
|
|
6
6
|
nextOperationWorkStart = "nextOperationWorkStart"
|
|
7
7
|
}
|
|
8
|
+
export declare enum ModelIncludeForTypeOperation {
|
|
9
|
+
operation = "operation",
|
|
10
|
+
user = "user",
|
|
11
|
+
equipments = "equipment"
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkStartCalcType = void 0;
|
|
3
|
+
exports.ModelIncludeForTypeOperation = exports.WorkStartCalcType = void 0;
|
|
4
4
|
var WorkStartCalcType;
|
|
5
5
|
(function (WorkStartCalcType) {
|
|
6
6
|
WorkStartCalcType["automatic"] = "automatic";
|
|
@@ -9,3 +9,9 @@ var WorkStartCalcType;
|
|
|
9
9
|
WorkStartCalcType["prevOperationReadinessDate"] = "prevOperationReadinessDate";
|
|
10
10
|
WorkStartCalcType["nextOperationWorkStart"] = "nextOperationWorkStart";
|
|
11
11
|
})(WorkStartCalcType || (exports.WorkStartCalcType = WorkStartCalcType = {}));
|
|
12
|
+
var ModelIncludeForTypeOperation;
|
|
13
|
+
(function (ModelIncludeForTypeOperation) {
|
|
14
|
+
ModelIncludeForTypeOperation["operation"] = "operation";
|
|
15
|
+
ModelIncludeForTypeOperation["user"] = "user";
|
|
16
|
+
ModelIncludeForTypeOperation["equipments"] = "equipment";
|
|
17
|
+
})(ModelIncludeForTypeOperation || (exports.ModelIncludeForTypeOperation = ModelIncludeForTypeOperation = {}));
|
package/dist/operations/index.js
CHANGED
|
@@ -27,4 +27,3 @@ __exportStar(require("./schemas/type_oper_user.schema"), exports);
|
|
|
27
27
|
__exportStar(require("./interfaces/interface"), exports);
|
|
28
28
|
__exportStar(require("./dto/check-name-unique.dto"), exports);
|
|
29
29
|
__exportStar(require("./schemas/type-oper-equipment.schema"), exports);
|
|
30
|
-
__exportStar(require("./enums/enums"), exports);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
3
2
|
export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
4
3
|
id: z.ZodOptional<z.ZodNumber>;
|
|
5
4
|
name: z.ZodString;
|
|
@@ -9,7 +8,6 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
|
9
8
|
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
10
9
|
square: z.ZodDefault<z.ZodBoolean>;
|
|
11
10
|
list: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
13
11
|
} & {
|
|
14
12
|
countWorking: z.ZodNumber;
|
|
15
13
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -20,7 +18,6 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
|
20
18
|
cpu: boolean;
|
|
21
19
|
square: boolean;
|
|
22
20
|
list: boolean;
|
|
23
|
-
workStartCalcType: WorkStartCalcType;
|
|
24
21
|
countWorking: number;
|
|
25
22
|
id?: number | undefined;
|
|
26
23
|
}, {
|
|
@@ -33,7 +30,6 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
|
33
30
|
cpu?: boolean | undefined;
|
|
34
31
|
square?: boolean | undefined;
|
|
35
32
|
list?: boolean | undefined;
|
|
36
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
37
33
|
}>;
|
|
38
34
|
export type ITypeOperationInWork = z.infer<typeof ITypeOperationInWorkSchema>;
|
|
39
35
|
export declare const IOperationExecutionTimeSchema: z.ZodObject<{
|
|
@@ -58,5 +54,4 @@ export interface ITypeOperationCreationAttrs {
|
|
|
58
54
|
preTime: boolean;
|
|
59
55
|
helperTime: boolean;
|
|
60
56
|
mainTime: boolean;
|
|
61
|
-
workStartCalcType?: WorkStartCalcType;
|
|
62
57
|
}
|
|
@@ -4,7 +4,6 @@ import { ModelDocuments } from '../../document';
|
|
|
4
4
|
import { ModelEquipment } from '../../equipment';
|
|
5
5
|
import { ModelNameInstrument } from '../../instrument';
|
|
6
6
|
import { ModelTechProcess } from '../../tech-process';
|
|
7
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
8
7
|
export declare const OperationSchema: z.ZodObject<{
|
|
9
8
|
id: z.ZodOptional<z.ZodNumber>;
|
|
10
9
|
idx: z.ZodDefault<z.ZodNumber>;
|
|
@@ -24,7 +23,6 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
24
23
|
instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
25
24
|
eqList: z.ZodDefault<z.ZodString>;
|
|
26
25
|
eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
28
26
|
tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
29
27
|
tech_process_id: z.ZodNumber;
|
|
30
28
|
marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -107,7 +105,6 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
107
105
|
preTime: number;
|
|
108
106
|
helperTime: number;
|
|
109
107
|
mainTime: number;
|
|
110
|
-
workStartCalcType: WorkStartCalcType;
|
|
111
108
|
generalCountTime: string;
|
|
112
109
|
instrumentList: string;
|
|
113
110
|
instrumentMerList: string;
|
|
@@ -175,7 +172,6 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
175
172
|
preTime?: number | undefined;
|
|
176
173
|
helperTime?: number | undefined;
|
|
177
174
|
mainTime?: number | undefined;
|
|
178
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
179
175
|
generalCountTime?: string | undefined;
|
|
180
176
|
instrumentList?: string | undefined;
|
|
181
177
|
instrumentMerList?: string | undefined;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const marks_1 = require("../../marks");
|
|
6
|
-
const enums_1 = require("../enums/enums");
|
|
7
6
|
exports.OperationSchema = zod_1.z.object({
|
|
8
7
|
id: zod_1.z.number().int().optional(),
|
|
9
8
|
idx: zod_1.z.number().int().default(0),
|
|
@@ -23,9 +22,6 @@ exports.OperationSchema = zod_1.z.object({
|
|
|
23
22
|
instrumentOsnID: zod_1.z.number().int().nullable().default(null),
|
|
24
23
|
eqList: zod_1.z.string().default(''),
|
|
25
24
|
eqID: zod_1.z.number().int().nullable().default(null),
|
|
26
|
-
workStartCalcType: zod_1.z
|
|
27
|
-
.nativeEnum(enums_1.WorkStartCalcType)
|
|
28
|
-
.default(enums_1.WorkStartCalcType.automatic),
|
|
29
25
|
tOperationId: zod_1.z.number().int().nullable().default(null),
|
|
30
26
|
tech_process_id: zod_1.z.number().int(),
|
|
31
27
|
marks: zod_1.z.array(marks_1.marksSchema).optional()
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ModelUser } from '../../user';
|
|
3
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
4
3
|
export declare const TypeOperationSchema: z.ZodObject<{
|
|
5
4
|
id: z.ZodOptional<z.ZodNumber>;
|
|
6
5
|
name: z.ZodString;
|
|
@@ -10,7 +9,6 @@ export declare const TypeOperationSchema: z.ZodObject<{
|
|
|
10
9
|
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
11
10
|
square: z.ZodDefault<z.ZodBoolean>;
|
|
12
11
|
list: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
14
12
|
countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
15
13
|
}, "strip", z.ZodTypeAny, {
|
|
16
14
|
name: string;
|
|
@@ -20,7 +18,6 @@ export declare const TypeOperationSchema: z.ZodObject<{
|
|
|
20
18
|
cpu: boolean;
|
|
21
19
|
square: boolean;
|
|
22
20
|
list: boolean;
|
|
23
|
-
workStartCalcType: WorkStartCalcType;
|
|
24
21
|
id?: number | undefined;
|
|
25
22
|
countWorking?: number | undefined;
|
|
26
23
|
}, {
|
|
@@ -32,7 +29,6 @@ export declare const TypeOperationSchema: z.ZodObject<{
|
|
|
32
29
|
cpu?: boolean | undefined;
|
|
33
30
|
square?: boolean | undefined;
|
|
34
31
|
list?: boolean | undefined;
|
|
35
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
36
32
|
countWorking?: number | undefined;
|
|
37
33
|
}>;
|
|
38
34
|
export type ModelTypeOperation = z.infer<typeof TypeOperationSchema> & {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TypeOperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("../enums/enums");
|
|
6
5
|
exports.TypeOperationSchema = zod_1.z.object({
|
|
7
6
|
id: zod_1.z.number().int().optional(),
|
|
8
7
|
name: zod_1.z.string(),
|
|
@@ -12,6 +11,5 @@ exports.TypeOperationSchema = zod_1.z.object({
|
|
|
12
11
|
cpu: zod_1.z.boolean().default(false),
|
|
13
12
|
square: zod_1.z.boolean().default(false),
|
|
14
13
|
list: zod_1.z.boolean().default(false),
|
|
15
|
-
workStartCalcType: zod_1.z.nativeEnum(enums_1.WorkStartCalcType).default(enums_1.WorkStartCalcType.automatic),
|
|
16
14
|
countWorking: zod_1.z.number().default(0).optional()
|
|
17
15
|
});
|
|
@@ -305,6 +305,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
305
305
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
306
306
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
307
307
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
308
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
308
309
|
}, "strip", z.ZodTypeAny, {
|
|
309
310
|
ban: boolean;
|
|
310
311
|
action: import("../..").IActionText[];
|
|
@@ -340,6 +341,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
340
341
|
mark_id?: number | null | undefined;
|
|
341
342
|
role_id?: number | null | undefined;
|
|
342
343
|
parent_action_idL?: number | null | undefined;
|
|
344
|
+
revision_id?: number | null | undefined;
|
|
343
345
|
}, {
|
|
344
346
|
action: import("../..").IActionText[];
|
|
345
347
|
type_object: string;
|
|
@@ -375,6 +377,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
375
377
|
mark_id?: number | null | undefined;
|
|
376
378
|
role_id?: number | null | undefined;
|
|
377
379
|
parent_action_idL?: number | null | undefined;
|
|
380
|
+
revision_id?: number | null | undefined;
|
|
378
381
|
}>, "many">;
|
|
379
382
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
380
383
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -522,7 +525,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
522
525
|
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
523
526
|
square: z.ZodDefault<z.ZodBoolean>;
|
|
524
527
|
list: z.ZodDefault<z.ZodBoolean>;
|
|
525
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").WorkStartCalcType>>;
|
|
526
528
|
countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
527
529
|
}, "strip", z.ZodTypeAny, {
|
|
528
530
|
name: string;
|
|
@@ -532,7 +534,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
532
534
|
cpu: boolean;
|
|
533
535
|
square: boolean;
|
|
534
536
|
list: boolean;
|
|
535
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
536
537
|
id?: number | undefined;
|
|
537
538
|
countWorking?: number | undefined;
|
|
538
539
|
}, {
|
|
@@ -544,7 +545,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
544
545
|
cpu?: boolean | undefined;
|
|
545
546
|
square?: boolean | undefined;
|
|
546
547
|
list?: boolean | undefined;
|
|
547
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
548
548
|
countWorking?: number | undefined;
|
|
549
549
|
}>, "many">;
|
|
550
550
|
subdivision: z.ZodOptional<z.ZodNativeEnum<typeof import("../../user").EnumSubdivision>>;
|
|
@@ -607,6 +607,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
607
607
|
mark_id?: number | null | undefined;
|
|
608
608
|
role_id?: number | null | undefined;
|
|
609
609
|
parent_action_idL?: number | null | undefined;
|
|
610
|
+
revision_id?: number | null | undefined;
|
|
610
611
|
}[];
|
|
611
612
|
requisites: {
|
|
612
613
|
value: string;
|
|
@@ -743,7 +744,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
743
744
|
cpu: boolean;
|
|
744
745
|
square: boolean;
|
|
745
746
|
list: boolean;
|
|
746
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
747
747
|
id?: number | undefined;
|
|
748
748
|
countWorking?: number | undefined;
|
|
749
749
|
}[];
|
|
@@ -808,6 +808,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
808
808
|
mark_id?: number | null | undefined;
|
|
809
809
|
role_id?: number | null | undefined;
|
|
810
810
|
parent_action_idL?: number | null | undefined;
|
|
811
|
+
revision_id?: number | null | undefined;
|
|
811
812
|
}[];
|
|
812
813
|
products: {
|
|
813
814
|
designation: string | null;
|
|
@@ -937,7 +938,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
937
938
|
cpu?: boolean | undefined;
|
|
938
939
|
square?: boolean | undefined;
|
|
939
940
|
list?: boolean | undefined;
|
|
940
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
941
941
|
countWorking?: number | undefined;
|
|
942
942
|
}[];
|
|
943
943
|
ban?: boolean | undefined;
|
|
@@ -1017,6 +1017,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1017
1017
|
mark_id?: number | null | undefined;
|
|
1018
1018
|
role_id?: number | null | undefined;
|
|
1019
1019
|
parent_action_idL?: number | null | undefined;
|
|
1020
|
+
revision_id?: number | null | undefined;
|
|
1020
1021
|
}[];
|
|
1021
1022
|
requisites: {
|
|
1022
1023
|
value: string;
|
|
@@ -1153,7 +1154,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1153
1154
|
cpu: boolean;
|
|
1154
1155
|
square: boolean;
|
|
1155
1156
|
list: boolean;
|
|
1156
|
-
workStartCalcType: import("../..").WorkStartCalcType;
|
|
1157
1157
|
id?: number | undefined;
|
|
1158
1158
|
countWorking?: number | undefined;
|
|
1159
1159
|
}[];
|
|
@@ -1223,6 +1223,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1223
1223
|
mark_id?: number | null | undefined;
|
|
1224
1224
|
role_id?: number | null | undefined;
|
|
1225
1225
|
parent_action_idL?: number | null | undefined;
|
|
1226
|
+
revision_id?: number | null | undefined;
|
|
1226
1227
|
}[];
|
|
1227
1228
|
products: {
|
|
1228
1229
|
designation: string | null;
|
|
@@ -1352,7 +1353,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1352
1353
|
cpu?: boolean | undefined;
|
|
1353
1354
|
square?: boolean | undefined;
|
|
1354
1355
|
list?: boolean | undefined;
|
|
1355
|
-
workStartCalcType?: import("../..").WorkStartCalcType | undefined;
|
|
1356
1356
|
countWorking?: number | undefined;
|
|
1357
1357
|
}[];
|
|
1358
1358
|
ban?: boolean | undefined;
|
|
@@ -29,7 +29,6 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
29
29
|
instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
eqList: z.ZodDefault<z.ZodString>;
|
|
31
31
|
eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../../operations").WorkStartCalcType>>;
|
|
33
32
|
tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
34
33
|
tech_process_id: z.ZodNumber;
|
|
35
34
|
marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -112,7 +111,6 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
112
111
|
preTime: number;
|
|
113
112
|
helperTime: number;
|
|
114
113
|
mainTime: number;
|
|
115
|
-
workStartCalcType: import("../../operations").WorkStartCalcType;
|
|
116
114
|
generalCountTime: string;
|
|
117
115
|
instrumentList: string;
|
|
118
116
|
instrumentMerList: string;
|
|
@@ -180,7 +178,6 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
180
178
|
preTime?: number | undefined;
|
|
181
179
|
helperTime?: number | undefined;
|
|
182
180
|
mainTime?: number | undefined;
|
|
183
|
-
workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
|
|
184
181
|
generalCountTime?: string | undefined;
|
|
185
182
|
instrumentList?: string | undefined;
|
|
186
183
|
instrumentMerList?: string | undefined;
|
|
@@ -209,7 +206,6 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
209
206
|
preTime: number;
|
|
210
207
|
helperTime: number;
|
|
211
208
|
mainTime: number;
|
|
212
|
-
workStartCalcType: import("../../operations").WorkStartCalcType;
|
|
213
209
|
generalCountTime: string;
|
|
214
210
|
instrumentList: string;
|
|
215
211
|
instrumentMerList: string;
|
|
@@ -286,7 +282,6 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
286
282
|
preTime?: number | undefined;
|
|
287
283
|
helperTime?: number | undefined;
|
|
288
284
|
mainTime?: number | undefined;
|
|
289
|
-
workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
|
|
290
285
|
generalCountTime?: string | undefined;
|
|
291
286
|
instrumentList?: string | undefined;
|
|
292
287
|
instrumentMerList?: string | undefined;
|
|
@@ -303,6 +303,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
303
303
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
304
304
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
305
305
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
306
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
306
307
|
}, "strip", z.ZodTypeAny, {
|
|
307
308
|
ban: boolean;
|
|
308
309
|
action: import("../..").IActionText[];
|
|
@@ -338,6 +339,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
338
339
|
mark_id?: number | null | undefined;
|
|
339
340
|
role_id?: number | null | undefined;
|
|
340
341
|
parent_action_idL?: number | null | undefined;
|
|
342
|
+
revision_id?: number | null | undefined;
|
|
341
343
|
}, {
|
|
342
344
|
action: import("../..").IActionText[];
|
|
343
345
|
type_object: string;
|
|
@@ -373,6 +375,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
373
375
|
mark_id?: number | null | undefined;
|
|
374
376
|
role_id?: number | null | undefined;
|
|
375
377
|
parent_action_idL?: number | null | undefined;
|
|
378
|
+
revision_id?: number | null | undefined;
|
|
376
379
|
}>, "many">;
|
|
377
380
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
378
381
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -520,7 +523,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
520
523
|
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
521
524
|
square: z.ZodDefault<z.ZodBoolean>;
|
|
522
525
|
list: z.ZodDefault<z.ZodBoolean>;
|
|
523
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../../operations").WorkStartCalcType>>;
|
|
524
526
|
countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
525
527
|
}, "strip", z.ZodTypeAny, {
|
|
526
528
|
name: string;
|
|
@@ -530,7 +532,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
530
532
|
cpu: boolean;
|
|
531
533
|
square: boolean;
|
|
532
534
|
list: boolean;
|
|
533
|
-
workStartCalcType: import("../../operations").WorkStartCalcType;
|
|
534
535
|
id?: number | undefined;
|
|
535
536
|
countWorking?: number | undefined;
|
|
536
537
|
}, {
|
|
@@ -542,7 +543,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
542
543
|
cpu?: boolean | undefined;
|
|
543
544
|
square?: boolean | undefined;
|
|
544
545
|
list?: boolean | undefined;
|
|
545
|
-
workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
|
|
546
546
|
countWorking?: number | undefined;
|
|
547
547
|
}>, "many">;
|
|
548
548
|
subdivision: z.ZodOptional<z.ZodNativeEnum<typeof import("../enums").EnumSubdivision>>;
|
|
@@ -605,6 +605,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
605
605
|
mark_id?: number | null | undefined;
|
|
606
606
|
role_id?: number | null | undefined;
|
|
607
607
|
parent_action_idL?: number | null | undefined;
|
|
608
|
+
revision_id?: number | null | undefined;
|
|
608
609
|
}[];
|
|
609
610
|
requisites: {
|
|
610
611
|
value: string;
|
|
@@ -741,7 +742,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
741
742
|
cpu: boolean;
|
|
742
743
|
square: boolean;
|
|
743
744
|
list: boolean;
|
|
744
|
-
workStartCalcType: import("../../operations").WorkStartCalcType;
|
|
745
745
|
id?: number | undefined;
|
|
746
746
|
countWorking?: number | undefined;
|
|
747
747
|
}[];
|
|
@@ -806,6 +806,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
806
806
|
mark_id?: number | null | undefined;
|
|
807
807
|
role_id?: number | null | undefined;
|
|
808
808
|
parent_action_idL?: number | null | undefined;
|
|
809
|
+
revision_id?: number | null | undefined;
|
|
809
810
|
}[];
|
|
810
811
|
products: {
|
|
811
812
|
designation: string | null;
|
|
@@ -935,7 +936,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
935
936
|
cpu?: boolean | undefined;
|
|
936
937
|
square?: boolean | undefined;
|
|
937
938
|
list?: boolean | undefined;
|
|
938
|
-
workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
|
|
939
939
|
countWorking?: number | undefined;
|
|
940
940
|
}[];
|
|
941
941
|
ban?: boolean | undefined;
|