@pksep/zod-shared 0.0.525 → 0.0.526

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.
@@ -155,6 +155,7 @@ 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>>;
158
159
  tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
159
160
  tech_process_id: z.ZodNumber;
160
161
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -237,6 +238,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
237
238
  preTime: number;
238
239
  helperTime: number;
239
240
  mainTime: number;
241
+ workStartCalcType: import("../..").WorkStartCalcType;
240
242
  generalCountTime: string;
241
243
  instrumentList: string;
242
244
  instrumentMerList: string;
@@ -304,6 +306,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
304
306
  preTime?: number | undefined;
305
307
  helperTime?: number | undefined;
306
308
  mainTime?: number | undefined;
309
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
307
310
  generalCountTime?: string | undefined;
308
311
  instrumentList?: string | undefined;
309
312
  instrumentMerList?: string | undefined;
@@ -332,6 +335,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
332
335
  preTime: number;
333
336
  helperTime: number;
334
337
  mainTime: number;
338
+ workStartCalcType: import("../..").WorkStartCalcType;
335
339
  generalCountTime: string;
336
340
  instrumentList: string;
337
341
  instrumentMerList: string;
@@ -408,6 +412,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
408
412
  preTime?: number | undefined;
409
413
  helperTime?: number | undefined;
410
414
  mainTime?: number | undefined;
415
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
411
416
  generalCountTime?: string | undefined;
412
417
  instrumentList?: string | undefined;
413
418
  instrumentMerList?: string | undefined;
@@ -811,6 +816,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
811
816
  preTime: number;
812
817
  helperTime: number;
813
818
  mainTime: number;
819
+ workStartCalcType: import("../..").WorkStartCalcType;
814
820
  generalCountTime: string;
815
821
  instrumentList: string;
816
822
  instrumentMerList: string;
@@ -1017,6 +1023,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1017
1023
  preTime?: number | undefined;
1018
1024
  helperTime?: number | undefined;
1019
1025
  mainTime?: number | undefined;
1026
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
1020
1027
  generalCountTime?: string | undefined;
1021
1028
  instrumentList?: string | undefined;
1022
1029
  instrumentMerList?: string | undefined;
@@ -1182,6 +1189,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1182
1189
  preTime: number;
1183
1190
  helperTime: number;
1184
1191
  mainTime: number;
1192
+ workStartCalcType: import("../..").WorkStartCalcType;
1185
1193
  generalCountTime: string;
1186
1194
  instrumentList: string;
1187
1195
  instrumentMerList: string;
@@ -1390,6 +1398,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1390
1398
  preTime?: number | undefined;
1391
1399
  helperTime?: number | undefined;
1392
1400
  mainTime?: number | undefined;
1401
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
1393
1402
  generalCountTime?: string | undefined;
1394
1403
  instrumentList?: string | undefined;
1395
1404
  instrumentMerList?: string | undefined;
@@ -156,6 +156,7 @@ 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>>;
159
160
  tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
160
161
  tech_process_id: z.ZodNumber;
161
162
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -238,6 +239,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
238
239
  preTime: number;
239
240
  helperTime: number;
240
241
  mainTime: number;
242
+ workStartCalcType: import("../..").WorkStartCalcType;
241
243
  generalCountTime: string;
242
244
  instrumentList: string;
243
245
  instrumentMerList: string;
@@ -305,6 +307,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
305
307
  preTime?: number | undefined;
306
308
  helperTime?: number | undefined;
307
309
  mainTime?: number | undefined;
310
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
308
311
  generalCountTime?: string | undefined;
309
312
  instrumentList?: string | undefined;
310
313
  instrumentMerList?: string | undefined;
@@ -333,6 +336,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
333
336
  preTime: number;
334
337
  helperTime: number;
335
338
  mainTime: number;
339
+ workStartCalcType: import("../..").WorkStartCalcType;
336
340
  generalCountTime: string;
337
341
  instrumentList: string;
338
342
  instrumentMerList: string;
@@ -409,6 +413,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
409
413
  preTime?: number | undefined;
410
414
  helperTime?: number | undefined;
411
415
  mainTime?: number | undefined;
416
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
412
417
  generalCountTime?: string | undefined;
413
418
  instrumentList?: string | undefined;
414
419
  instrumentMerList?: string | undefined;
@@ -835,6 +840,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
835
840
  preTime: number;
836
841
  helperTime: number;
837
842
  mainTime: number;
843
+ workStartCalcType: import("../..").WorkStartCalcType;
838
844
  generalCountTime: string;
839
845
  instrumentList: string;
840
846
  instrumentMerList: string;
@@ -1052,6 +1058,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
1052
1058
  preTime?: number | undefined;
1053
1059
  helperTime?: number | undefined;
1054
1060
  mainTime?: number | undefined;
1061
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
1055
1062
  generalCountTime?: string | undefined;
1056
1063
  instrumentList?: string | undefined;
1057
1064
  instrumentMerList?: string | undefined;
@@ -156,6 +156,7 @@ 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>>;
159
160
  tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
160
161
  tech_process_id: z.ZodNumber;
161
162
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -238,6 +239,7 @@ export declare const AssembleSchema: z.ZodObject<{
238
239
  preTime: number;
239
240
  helperTime: number;
240
241
  mainTime: number;
242
+ workStartCalcType: import("../..").WorkStartCalcType;
241
243
  generalCountTime: string;
242
244
  instrumentList: string;
243
245
  instrumentMerList: string;
@@ -305,6 +307,7 @@ export declare const AssembleSchema: z.ZodObject<{
305
307
  preTime?: number | undefined;
306
308
  helperTime?: number | undefined;
307
309
  mainTime?: number | undefined;
310
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
308
311
  generalCountTime?: string | undefined;
309
312
  instrumentList?: string | undefined;
310
313
  instrumentMerList?: string | undefined;
@@ -333,6 +336,7 @@ export declare const AssembleSchema: z.ZodObject<{
333
336
  preTime: number;
334
337
  helperTime: number;
335
338
  mainTime: number;
339
+ workStartCalcType: import("../..").WorkStartCalcType;
336
340
  generalCountTime: string;
337
341
  instrumentList: string;
338
342
  instrumentMerList: string;
@@ -409,6 +413,7 @@ export declare const AssembleSchema: z.ZodObject<{
409
413
  preTime?: number | undefined;
410
414
  helperTime?: number | undefined;
411
415
  mainTime?: number | undefined;
416
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
412
417
  generalCountTime?: string | undefined;
413
418
  instrumentList?: string | undefined;
414
419
  instrumentMerList?: string | undefined;
@@ -812,6 +817,7 @@ export declare const AssembleSchema: z.ZodObject<{
812
817
  preTime: number;
813
818
  helperTime: number;
814
819
  mainTime: number;
820
+ workStartCalcType: import("../..").WorkStartCalcType;
815
821
  generalCountTime: string;
816
822
  instrumentList: string;
817
823
  instrumentMerList: string;
@@ -1018,6 +1024,7 @@ export declare const AssembleSchema: z.ZodObject<{
1018
1024
  preTime?: number | undefined;
1019
1025
  helperTime?: number | undefined;
1020
1026
  mainTime?: number | undefined;
1027
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
1021
1028
  generalCountTime?: string | undefined;
1022
1029
  instrumentList?: string | undefined;
1023
1030
  instrumentMerList?: string | undefined;
@@ -129,6 +129,7 @@ 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>>;
132
133
  tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
133
134
  tech_process_id: z.ZodNumber;
134
135
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -211,6 +212,7 @@ export declare const EquipmentSchema: z.ZodObject<{
211
212
  preTime: number;
212
213
  helperTime: number;
213
214
  mainTime: number;
215
+ workStartCalcType: import("../../operations").WorkStartCalcType;
214
216
  generalCountTime: string;
215
217
  instrumentList: string;
216
218
  instrumentMerList: string;
@@ -278,6 +280,7 @@ export declare const EquipmentSchema: z.ZodObject<{
278
280
  preTime?: number | undefined;
279
281
  helperTime?: number | undefined;
280
282
  mainTime?: number | undefined;
283
+ workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
281
284
  generalCountTime?: string | undefined;
282
285
  instrumentList?: string | undefined;
283
286
  instrumentMerList?: string | undefined;
@@ -471,6 +474,7 @@ export declare const EquipmentSchema: z.ZodObject<{
471
474
  preTime: number;
472
475
  helperTime: number;
473
476
  mainTime: number;
477
+ workStartCalcType: import("../../operations").WorkStartCalcType;
474
478
  generalCountTime: string;
475
479
  instrumentList: string;
476
480
  instrumentMerList: string;
@@ -636,6 +640,7 @@ export declare const EquipmentSchema: z.ZodObject<{
636
640
  preTime?: number | undefined;
637
641
  helperTime?: number | undefined;
638
642
  mainTime?: number | undefined;
643
+ workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
639
644
  generalCountTime?: string | undefined;
640
645
  instrumentList?: string | undefined;
641
646
  instrumentMerList?: string | undefined;
@@ -526,6 +526,7 @@ export declare const MovingSchema: z.ZodObject<{
526
526
  cpu: z.ZodDefault<z.ZodBoolean>;
527
527
  square: z.ZodDefault<z.ZodBoolean>;
528
528
  list: z.ZodDefault<z.ZodBoolean>;
529
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").WorkStartCalcType>>;
529
530
  countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
530
531
  }, "strip", z.ZodTypeAny, {
531
532
  name: string;
@@ -535,6 +536,7 @@ export declare const MovingSchema: z.ZodObject<{
535
536
  cpu: boolean;
536
537
  square: boolean;
537
538
  list: boolean;
539
+ workStartCalcType: import("../..").WorkStartCalcType;
538
540
  id?: number | undefined;
539
541
  countWorking?: number | undefined;
540
542
  }, {
@@ -546,6 +548,7 @@ export declare const MovingSchema: z.ZodObject<{
546
548
  cpu?: boolean | undefined;
547
549
  square?: boolean | undefined;
548
550
  list?: boolean | undefined;
551
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
549
552
  countWorking?: number | undefined;
550
553
  }>, "many">;
551
554
  subdivision: z.ZodOptional<z.ZodNativeEnum<typeof import("../../user").EnumSubdivision>>;
@@ -744,6 +747,7 @@ export declare const MovingSchema: z.ZodObject<{
744
747
  cpu: boolean;
745
748
  square: boolean;
746
749
  list: boolean;
750
+ workStartCalcType: import("../..").WorkStartCalcType;
747
751
  id?: number | undefined;
748
752
  countWorking?: number | undefined;
749
753
  }[];
@@ -937,6 +941,7 @@ export declare const MovingSchema: z.ZodObject<{
937
941
  cpu?: boolean | undefined;
938
942
  square?: boolean | undefined;
939
943
  list?: boolean | undefined;
944
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
940
945
  countWorking?: number | undefined;
941
946
  }[];
942
947
  ban?: boolean | undefined;
@@ -1225,6 +1230,7 @@ export declare const MovingSchema: z.ZodObject<{
1225
1230
  cpu: boolean;
1226
1231
  square: boolean;
1227
1232
  list: boolean;
1233
+ workStartCalcType: import("../..").WorkStartCalcType;
1228
1234
  id?: number | undefined;
1229
1235
  countWorking?: number | undefined;
1230
1236
  }[];
@@ -1446,6 +1452,7 @@ export declare const MovingSchema: z.ZodObject<{
1446
1452
  cpu?: boolean | undefined;
1447
1453
  square?: boolean | undefined;
1448
1454
  list?: boolean | undefined;
1455
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
1449
1456
  countWorking?: number | undefined;
1450
1457
  }[];
1451
1458
  ban?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { WorkStartCalcType } from '../enums/enums';
2
3
  export declare const CreateTypeOperationSchema: z.ZodObject<{
3
4
  name: z.ZodString;
4
5
  preTime: z.ZodBoolean;
@@ -14,6 +15,7 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
14
15
  sclad: z.ZodBoolean;
15
16
  preTimeMinute: z.ZodNumber;
16
17
  helperTimeMinute: z.ZodNumber;
18
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
17
19
  }, "strip", z.ZodTypeAny, {
18
20
  metaloworking: boolean;
19
21
  name: string;
@@ -28,6 +30,7 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
28
30
  sclad: boolean;
29
31
  preTimeMinute: number;
30
32
  helperTimeMinute: number;
33
+ workStartCalcType: WorkStartCalcType;
31
34
  users?: number[] | null | undefined;
32
35
  }, {
33
36
  metaloworking: boolean;
@@ -44,5 +47,6 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
44
47
  helperTimeMinute: number;
45
48
  users?: number[] | null | undefined;
46
49
  equipmentIds?: number[] | null | undefined;
50
+ workStartCalcType?: WorkStartCalcType | undefined;
47
51
  }>;
48
52
  export type CreateTypeOperationDto = z.infer<typeof CreateTypeOperationSchema>;
@@ -2,6 +2,7 @@
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");
5
6
  exports.CreateTypeOperationSchema = zod_1.z.object({
6
7
  name: zod_1.z.string(),
7
8
  preTime: zod_1.z.boolean(),
@@ -16,5 +17,8 @@ exports.CreateTypeOperationSchema = zod_1.z.object({
16
17
  assembly: zod_1.z.boolean(),
17
18
  sclad: zod_1.z.boolean(),
18
19
  preTimeMinute: zod_1.z.number(),
19
- helperTimeMinute: 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)
20
24
  });
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { WorkStartCalcType } from '../enums/enums';
2
3
  export declare const UpdateTypeOperationSchema: z.ZodObject<{
3
4
  id: z.ZodNumber;
4
5
  name: z.ZodString;
@@ -15,6 +16,7 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
15
16
  sclad: z.ZodBoolean;
16
17
  preTimeMinute: z.ZodNumber;
17
18
  helperTimeMinute: z.ZodNumber;
19
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
18
20
  }, "strip", z.ZodTypeAny, {
19
21
  metaloworking: boolean;
20
22
  id: number;
@@ -30,6 +32,7 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
30
32
  sclad: boolean;
31
33
  preTimeMinute: number;
32
34
  helperTimeMinute: number;
35
+ workStartCalcType: WorkStartCalcType;
33
36
  users?: any;
34
37
  }, {
35
38
  metaloworking: boolean;
@@ -47,5 +50,6 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
47
50
  helperTimeMinute: number;
48
51
  users?: any;
49
52
  equipmentIds?: number[] | null | undefined;
53
+ workStartCalcType?: WorkStartCalcType | undefined;
50
54
  }>;
51
55
  export type UpdateTypeOperationDto = z.infer<typeof UpdateTypeOperationSchema>;
@@ -2,6 +2,7 @@
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");
5
6
  exports.UpdateTypeOperationSchema = zod_1.z.object({
6
7
  id: zod_1.z.number().int(),
7
8
  name: zod_1.z.string(),
@@ -17,5 +18,8 @@ exports.UpdateTypeOperationSchema = zod_1.z.object({
17
18
  assembly: zod_1.z.boolean(),
18
19
  sclad: zod_1.z.boolean(),
19
20
  preTimeMinute: zod_1.z.number(),
20
- helperTimeMinute: 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)
21
25
  });
@@ -0,0 +1,7 @@
1
+ export declare enum WorkStartCalcType {
2
+ automatic = "automatic",
3
+ byStockOrderDate = "byStockOrderDate",
4
+ byDeficitChildren = "byDeficitChildren",
5
+ prevOperationReadinessDate = "prevOperationReadinessDate",
6
+ nextOperationWorkStart = "nextOperationWorkStart"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkStartCalcType = void 0;
4
+ var WorkStartCalcType;
5
+ (function (WorkStartCalcType) {
6
+ WorkStartCalcType["automatic"] = "automatic";
7
+ WorkStartCalcType["byStockOrderDate"] = "byStockOrderDate";
8
+ WorkStartCalcType["byDeficitChildren"] = "byDeficitChildren";
9
+ WorkStartCalcType["prevOperationReadinessDate"] = "prevOperationReadinessDate";
10
+ WorkStartCalcType["nextOperationWorkStart"] = "nextOperationWorkStart";
11
+ })(WorkStartCalcType || (exports.WorkStartCalcType = WorkStartCalcType = {}));
@@ -11,3 +11,4 @@ export * from './schemas/type_oper_user.schema';
11
11
  export * from './interfaces/interface';
12
12
  export * from './dto/check-name-unique.dto';
13
13
  export * from './schemas/type-oper-equipment.schema';
14
+ export * from './enums/enums';
@@ -27,3 +27,4 @@ __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,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { WorkStartCalcType } from '../enums/enums';
2
3
  export declare const ITypeOperationInWorkSchema: z.ZodObject<{
3
4
  id: z.ZodOptional<z.ZodNumber>;
4
5
  name: z.ZodString;
@@ -8,6 +9,7 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
8
9
  cpu: z.ZodDefault<z.ZodBoolean>;
9
10
  square: z.ZodDefault<z.ZodBoolean>;
10
11
  list: z.ZodDefault<z.ZodBoolean>;
12
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
11
13
  } & {
12
14
  countWorking: z.ZodNumber;
13
15
  }, "strip", z.ZodTypeAny, {
@@ -18,6 +20,7 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
18
20
  cpu: boolean;
19
21
  square: boolean;
20
22
  list: boolean;
23
+ workStartCalcType: WorkStartCalcType;
21
24
  countWorking: number;
22
25
  id?: number | undefined;
23
26
  }, {
@@ -30,6 +33,7 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
30
33
  cpu?: boolean | undefined;
31
34
  square?: boolean | undefined;
32
35
  list?: boolean | undefined;
36
+ workStartCalcType?: WorkStartCalcType | undefined;
33
37
  }>;
34
38
  export type ITypeOperationInWork = z.infer<typeof ITypeOperationInWorkSchema>;
35
39
  export declare const IOperationExecutionTimeSchema: z.ZodObject<{
@@ -54,4 +58,5 @@ export interface ITypeOperationCreationAttrs {
54
58
  preTime: boolean;
55
59
  helperTime: boolean;
56
60
  mainTime: boolean;
61
+ workStartCalcType?: WorkStartCalcType;
57
62
  }
@@ -4,6 +4,7 @@ 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';
7
8
  export declare const OperationSchema: z.ZodObject<{
8
9
  id: z.ZodOptional<z.ZodNumber>;
9
10
  idx: z.ZodDefault<z.ZodNumber>;
@@ -23,6 +24,7 @@ export declare const OperationSchema: z.ZodObject<{
23
24
  instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24
25
  eqList: z.ZodDefault<z.ZodString>;
25
26
  eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
27
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
26
28
  tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
27
29
  tech_process_id: z.ZodNumber;
28
30
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -105,6 +107,7 @@ export declare const OperationSchema: z.ZodObject<{
105
107
  preTime: number;
106
108
  helperTime: number;
107
109
  mainTime: number;
110
+ workStartCalcType: WorkStartCalcType;
108
111
  generalCountTime: string;
109
112
  instrumentList: string;
110
113
  instrumentMerList: string;
@@ -172,6 +175,7 @@ export declare const OperationSchema: z.ZodObject<{
172
175
  preTime?: number | undefined;
173
176
  helperTime?: number | undefined;
174
177
  mainTime?: number | undefined;
178
+ workStartCalcType?: WorkStartCalcType | undefined;
175
179
  generalCountTime?: string | undefined;
176
180
  instrumentList?: string | undefined;
177
181
  instrumentMerList?: string | undefined;
@@ -3,6 +3,7 @@ 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");
6
7
  exports.OperationSchema = zod_1.z.object({
7
8
  id: zod_1.z.number().int().optional(),
8
9
  idx: zod_1.z.number().int().default(0),
@@ -22,6 +23,9 @@ exports.OperationSchema = zod_1.z.object({
22
23
  instrumentOsnID: zod_1.z.number().int().nullable().default(null),
23
24
  eqList: zod_1.z.string().default(''),
24
25
  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),
25
29
  tOperationId: zod_1.z.number().int().nullable().default(null),
26
30
  tech_process_id: zod_1.z.number().int(),
27
31
  marks: zod_1.z.array(marks_1.marksSchema).optional()
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { ModelUser } from '../../user';
3
+ import { WorkStartCalcType } from '../enums/enums';
3
4
  export declare const TypeOperationSchema: z.ZodObject<{
4
5
  id: z.ZodOptional<z.ZodNumber>;
5
6
  name: z.ZodString;
@@ -9,6 +10,7 @@ export declare const TypeOperationSchema: z.ZodObject<{
9
10
  cpu: z.ZodDefault<z.ZodBoolean>;
10
11
  square: z.ZodDefault<z.ZodBoolean>;
11
12
  list: z.ZodDefault<z.ZodBoolean>;
13
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
12
14
  countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
15
  }, "strip", z.ZodTypeAny, {
14
16
  name: string;
@@ -18,6 +20,7 @@ export declare const TypeOperationSchema: z.ZodObject<{
18
20
  cpu: boolean;
19
21
  square: boolean;
20
22
  list: boolean;
23
+ workStartCalcType: WorkStartCalcType;
21
24
  id?: number | undefined;
22
25
  countWorking?: number | undefined;
23
26
  }, {
@@ -29,6 +32,7 @@ export declare const TypeOperationSchema: z.ZodObject<{
29
32
  cpu?: boolean | undefined;
30
33
  square?: boolean | undefined;
31
34
  list?: boolean | undefined;
35
+ workStartCalcType?: WorkStartCalcType | undefined;
32
36
  countWorking?: number | undefined;
33
37
  }>;
34
38
  export type ModelTypeOperation = z.infer<typeof TypeOperationSchema> & {
@@ -2,6 +2,7 @@
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");
5
6
  exports.TypeOperationSchema = zod_1.z.object({
6
7
  id: zod_1.z.number().int().optional(),
7
8
  name: zod_1.z.string(),
@@ -11,5 +12,6 @@ exports.TypeOperationSchema = zod_1.z.object({
11
12
  cpu: zod_1.z.boolean().default(false),
12
13
  square: zod_1.z.boolean().default(false),
13
14
  list: zod_1.z.boolean().default(false),
15
+ workStartCalcType: zod_1.z.nativeEnum(enums_1.WorkStartCalcType).default(enums_1.WorkStartCalcType.automatic),
14
16
  countWorking: zod_1.z.number().default(0).optional()
15
17
  });
@@ -242,6 +242,7 @@ export interface IOperationPositionToChangeTime {
242
242
  preTime: number;
243
243
  helperTime: number;
244
244
  mainTime: number;
245
+ workStartCalcType?: string;
245
246
  }
246
247
  export interface IGetByEquipment {
247
248
  mainEntity: {
@@ -522,6 +522,7 @@ export declare const RoleSchema: z.ZodObject<{
522
522
  cpu: z.ZodDefault<z.ZodBoolean>;
523
523
  square: z.ZodDefault<z.ZodBoolean>;
524
524
  list: z.ZodDefault<z.ZodBoolean>;
525
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").WorkStartCalcType>>;
525
526
  countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
526
527
  }, "strip", z.ZodTypeAny, {
527
528
  name: string;
@@ -531,6 +532,7 @@ export declare const RoleSchema: z.ZodObject<{
531
532
  cpu: boolean;
532
533
  square: boolean;
533
534
  list: boolean;
535
+ workStartCalcType: import("../..").WorkStartCalcType;
534
536
  id?: number | undefined;
535
537
  countWorking?: number | undefined;
536
538
  }, {
@@ -542,6 +544,7 @@ export declare const RoleSchema: z.ZodObject<{
542
544
  cpu?: boolean | undefined;
543
545
  square?: boolean | undefined;
544
546
  list?: boolean | undefined;
547
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
545
548
  countWorking?: number | undefined;
546
549
  }>, "many">;
547
550
  subdivision: z.ZodOptional<z.ZodNativeEnum<typeof import("../../user").EnumSubdivision>>;
@@ -740,6 +743,7 @@ export declare const RoleSchema: z.ZodObject<{
740
743
  cpu: boolean;
741
744
  square: boolean;
742
745
  list: boolean;
746
+ workStartCalcType: import("../..").WorkStartCalcType;
743
747
  id?: number | undefined;
744
748
  countWorking?: number | undefined;
745
749
  }[];
@@ -933,6 +937,7 @@ export declare const RoleSchema: z.ZodObject<{
933
937
  cpu?: boolean | undefined;
934
938
  square?: boolean | undefined;
935
939
  list?: boolean | undefined;
940
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
936
941
  countWorking?: number | undefined;
937
942
  }[];
938
943
  ban?: boolean | undefined;
@@ -1148,6 +1153,7 @@ export declare const RoleSchema: z.ZodObject<{
1148
1153
  cpu: boolean;
1149
1154
  square: boolean;
1150
1155
  list: boolean;
1156
+ workStartCalcType: import("../..").WorkStartCalcType;
1151
1157
  id?: number | undefined;
1152
1158
  countWorking?: number | undefined;
1153
1159
  }[];
@@ -1346,6 +1352,7 @@ export declare const RoleSchema: z.ZodObject<{
1346
1352
  cpu?: boolean | undefined;
1347
1353
  square?: boolean | undefined;
1348
1354
  list?: boolean | undefined;
1355
+ workStartCalcType?: import("../..").WorkStartCalcType | undefined;
1349
1356
  countWorking?: number | undefined;
1350
1357
  }[];
1351
1358
  ban?: boolean | undefined;
@@ -29,6 +29,7 @@ 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>>;
32
33
  tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
33
34
  tech_process_id: z.ZodNumber;
34
35
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -111,6 +112,7 @@ export declare const TechProcessSchema: z.ZodObject<{
111
112
  preTime: number;
112
113
  helperTime: number;
113
114
  mainTime: number;
115
+ workStartCalcType: import("../../operations").WorkStartCalcType;
114
116
  generalCountTime: string;
115
117
  instrumentList: string;
116
118
  instrumentMerList: string;
@@ -178,6 +180,7 @@ export declare const TechProcessSchema: z.ZodObject<{
178
180
  preTime?: number | undefined;
179
181
  helperTime?: number | undefined;
180
182
  mainTime?: number | undefined;
183
+ workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
181
184
  generalCountTime?: string | undefined;
182
185
  instrumentList?: string | undefined;
183
186
  instrumentMerList?: string | undefined;
@@ -206,6 +209,7 @@ export declare const TechProcessSchema: z.ZodObject<{
206
209
  preTime: number;
207
210
  helperTime: number;
208
211
  mainTime: number;
212
+ workStartCalcType: import("../../operations").WorkStartCalcType;
209
213
  generalCountTime: string;
210
214
  instrumentList: string;
211
215
  instrumentMerList: string;
@@ -282,6 +286,7 @@ export declare const TechProcessSchema: z.ZodObject<{
282
286
  preTime?: number | undefined;
283
287
  helperTime?: number | undefined;
284
288
  mainTime?: number | undefined;
289
+ workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
285
290
  generalCountTime?: string | undefined;
286
291
  instrumentList?: string | undefined;
287
292
  instrumentMerList?: string | undefined;
@@ -520,6 +520,7 @@ export declare const UserSchema: z.ZodObject<{
520
520
  cpu: z.ZodDefault<z.ZodBoolean>;
521
521
  square: z.ZodDefault<z.ZodBoolean>;
522
522
  list: z.ZodDefault<z.ZodBoolean>;
523
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof import("../../operations").WorkStartCalcType>>;
523
524
  countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
524
525
  }, "strip", z.ZodTypeAny, {
525
526
  name: string;
@@ -529,6 +530,7 @@ export declare const UserSchema: z.ZodObject<{
529
530
  cpu: boolean;
530
531
  square: boolean;
531
532
  list: boolean;
533
+ workStartCalcType: import("../../operations").WorkStartCalcType;
532
534
  id?: number | undefined;
533
535
  countWorking?: number | undefined;
534
536
  }, {
@@ -540,6 +542,7 @@ export declare const UserSchema: z.ZodObject<{
540
542
  cpu?: boolean | undefined;
541
543
  square?: boolean | undefined;
542
544
  list?: boolean | undefined;
545
+ workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
543
546
  countWorking?: number | undefined;
544
547
  }>, "many">;
545
548
  subdivision: z.ZodOptional<z.ZodNativeEnum<typeof import("../enums").EnumSubdivision>>;
@@ -738,6 +741,7 @@ export declare const UserSchema: z.ZodObject<{
738
741
  cpu: boolean;
739
742
  square: boolean;
740
743
  list: boolean;
744
+ workStartCalcType: import("../../operations").WorkStartCalcType;
741
745
  id?: number | undefined;
742
746
  countWorking?: number | undefined;
743
747
  }[];
@@ -931,6 +935,7 @@ export declare const UserSchema: z.ZodObject<{
931
935
  cpu?: boolean | undefined;
932
936
  square?: boolean | undefined;
933
937
  list?: boolean | undefined;
938
+ workStartCalcType?: import("../../operations").WorkStartCalcType | undefined;
934
939
  countWorking?: number | undefined;
935
940
  }[];
936
941
  ban?: boolean | undefined;
@@ -13,6 +13,7 @@ exports.metalloworkingTableConfig = [
13
13
  enum_1.tablesEnumConfig.orderedByProduction,
14
14
  enum_1.tablesEnumConfig.ordered,
15
15
  enum_1.tablesEnumConfig.dateByUrgency,
16
+ enum_1.tablesEnumConfig.dateShipment,
16
17
  enum_1.tablesEnumConfig.workpieceParameters,
17
18
  enum_1.tablesEnumConfig.material,
18
19
  enum_1.tablesEnumConfig.operationsLength,
@@ -55,6 +56,7 @@ exports.onlineBoardProductionTableConfig = [
55
56
  enum_1.tablesEnumConfig.calculatedCreateTime,
56
57
  enum_1.tablesEnumConfig.warehouseReadinessDate,
57
58
  enum_1.tablesEnumConfig.calculateNeedsTime,
59
+ enum_1.tablesEnumConfig.dateShipment,
58
60
  enum_1.tablesEnumConfig.deficitByCurrentProductionTask,
59
61
  enum_1.tablesEnumConfig.deficitByProductionTask,
60
62
  enum_1.tablesEnumConfig.ordered,
@@ -77,6 +79,7 @@ exports.onlineBoardTableConfig = [
77
79
  enum_1.tablesEnumConfig.startTime,
78
80
  enum_1.tablesEnumConfig.calculatedCreateTime,
79
81
  enum_1.tablesEnumConfig.calculateNeedsTime,
82
+ enum_1.tablesEnumConfig.dateShipment,
80
83
  enum_1.tablesEnumConfig.deficitByProductionTask,
81
84
  enum_1.tablesEnumConfig.ordered,
82
85
  enum_1.tablesEnumConfig.readyToComplect,
@@ -98,6 +101,7 @@ exports.assembleTableConfig = [
98
101
  enum_1.tablesEnumConfig.calculatedCreateTime,
99
102
  enum_1.tablesEnumConfig.calculateNeedsTime,
100
103
  enum_1.tablesEnumConfig.dateByUrgency,
104
+ enum_1.tablesEnumConfig.dateShipment,
101
105
  enum_1.tablesEnumConfig.operationsLength,
102
106
  enum_1.tablesEnumConfig.readyInProcent,
103
107
  enum_1.tablesEnumConfig.readyToComplect,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pksep/zod-shared",
3
- "version": "0.0.525",
3
+ "version": "0.0.526",
4
4
  "description": "Zod package for erp project. Contains dto, interfaces, schems, types, enum",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",