@pksep/zod-shared 0.0.524 → 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.
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +9 -0
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +7 -0
- package/dist/assemble/schemas/assemble.schema.d.ts +7 -0
- package/dist/equipment/schemas/equipment.schema.d.ts +5 -0
- package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
- package/dist/issue/dto/up-create-issue.dto.js +21 -0
- package/dist/issue/index.d.ts +5 -0
- package/dist/issue/index.js +21 -0
- package/dist/issue/interfaces/interface.d.ts +4 -0
- package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
- package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
- package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
- package/dist/issue/schemas/issue-user.schema.js +9 -0
- package/dist/issue/schemas/issue.schema.d.ts +51 -0
- package/dist/issue/schemas/issue.schema.js +21 -0
- package/dist/library/dto/create-chapter.dto.d.ts +12 -0
- package/dist/library/dto/create-chapter.dto.js +8 -0
- package/dist/library/dto/create-link.dto.d.ts +30 -0
- package/dist/library/dto/create-link.dto.js +14 -0
- package/dist/library/index.d.ts +5 -0
- package/dist/library/index.js +21 -0
- package/dist/library/interfaces/interface.d.ts +3 -0
- package/dist/library/interfaces/interface.js +2 -0
- package/dist/library/schemas/links-user.schema.d.ts +15 -0
- package/dist/library/schemas/links-user.schema.js +9 -0
- package/dist/library/schemas/links.schema.d.ts +30 -0
- package/dist/library/schemas/links.schema.js +14 -0
- package/dist/moving/schemas/moving.schema.d.ts +7 -0
- package/dist/operations/dto/create-type-operation.dto.d.ts +4 -0
- package/dist/operations/dto/create-type-operation.dto.js +5 -1
- package/dist/operations/dto/update-type-operation.dto.d.ts +4 -0
- package/dist/operations/dto/update-type-operation.dto.js +5 -1
- package/dist/operations/enums/enums.d.ts +7 -0
- package/dist/operations/enums/enums.js +11 -0
- package/dist/operations/index.d.ts +1 -0
- package/dist/operations/index.js +1 -0
- package/dist/operations/interfaces/interface.d.ts +5 -0
- package/dist/operations/schemas/operation.schema.d.ts +4 -0
- package/dist/operations/schemas/operation.schema.js +4 -0
- package/dist/operations/schemas/type-operation.schema.d.ts +4 -0
- package/dist/operations/schemas/type-operation.schema.js +2 -0
- package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
- package/dist/production-tasks/dto/update-marks.dto.js +8 -0
- package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +3 -0
- package/dist/production-tasks/dto/workload-by-entity.dto.js +3 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +1 -0
- package/dist/role/schemas/role.schema.d.ts +7 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
- package/dist/tech-process/schemas/tech-process.schema.d.ts +5 -0
- package/dist/user/schemas/user.schema.d.ts +5 -0
- package/dist/utils/interface/mat.interface.d.ts +10 -0
- package/dist/utils/interface/mat.interface.js +2 -0
- package/package.json +1 -1
- package/dist/production-tasks/interfaces/workload-by-entity.d.ts +0 -19
- /package/dist/{production-tasks/interfaces/workload-by-entity.js → issue/interfaces/interface.js} +0 -0
|
@@ -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,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 = {}));
|
package/dist/operations/index.js
CHANGED
|
@@ -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
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IOperationPosition } from '../interfaces/production-tasks';
|
|
3
|
+
export declare const UpdateProductionTaskMarksDtoZod: z.ZodObject<{
|
|
4
|
+
operationPosition: z.ZodOptional<z.ZodNullable<z.ZodType<IOperationPosition, z.ZodTypeDef, IOperationPosition>>>;
|
|
5
|
+
productionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
operationPosition?: IOperationPosition | null | undefined;
|
|
8
|
+
productionTaskId?: number | null | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
operationPosition?: IOperationPosition | null | undefined;
|
|
11
|
+
productionTaskId?: number | null | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export type UpdateProductionTaskMarksDtoZodType = z.infer<typeof UpdateProductionTaskMarksDtoZod>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProductionTaskMarksDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.UpdateProductionTaskMarksDtoZod = zod_1.z.object({
|
|
6
|
+
operationPosition: zod_1.z.custom().nullable().optional(),
|
|
7
|
+
productionTaskId: zod_1.z.number().int().nullable().optional()
|
|
8
|
+
});
|
|
@@ -15,6 +15,7 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
15
15
|
userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
16
|
equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
typeOperationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
subdivision: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../user").EnumSubdivision>>>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
range: {
|
|
20
21
|
start: string;
|
|
@@ -23,6 +24,7 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
23
24
|
entityType: StockOrderType;
|
|
24
25
|
userId?: number | null | undefined;
|
|
25
26
|
equipmentId?: number | null | undefined;
|
|
27
|
+
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
26
28
|
typeOperationId?: number | null | undefined;
|
|
27
29
|
}, {
|
|
28
30
|
range: {
|
|
@@ -32,6 +34,7 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
32
34
|
entityType: StockOrderType;
|
|
33
35
|
userId?: number | null | undefined;
|
|
34
36
|
equipmentId?: number | null | undefined;
|
|
37
|
+
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
35
38
|
typeOperationId?: number | null | undefined;
|
|
36
39
|
}>;
|
|
37
40
|
export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WorkloadByEntityDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
+
const user_1 = require("../../user");
|
|
6
7
|
exports.WorkloadByEntityDtoZod = zod_1.z.object({
|
|
7
8
|
entityType: zod_1.z.nativeEnum(utils_1.StockOrderType),
|
|
8
9
|
range: zod_1.z.object({
|
|
@@ -11,5 +12,6 @@ exports.WorkloadByEntityDtoZod = zod_1.z.object({
|
|
|
11
12
|
}),
|
|
12
13
|
userId: zod_1.z.number().nullish(),
|
|
13
14
|
equipmentId: zod_1.z.number().nullish(),
|
|
14
|
-
typeOperationId: zod_1.z.number().nullish()
|
|
15
|
+
typeOperationId: zod_1.z.number().nullish(),
|
|
16
|
+
subdivision: user_1.EnumSubdivisionZod.nullish()
|
|
15
17
|
});
|
|
@@ -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;
|