@pksep/zod-shared 0.0.527 → 0.0.529
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/operations/enums/enums.d.ts +7 -0
- package/dist/operations/enums/enums.js +21 -1
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +4 -0
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +3 -1
- package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +4 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.js +2 -0
- package/dist/utils/enums.d.ts +1 -1
- package/dist/utils/enums.js +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,13 @@ export declare enum WorkStartCalcType {
|
|
|
5
5
|
prevOperationReadinessDate = "prevOperationReadinessDate",
|
|
6
6
|
nextOperationWorkStart = "nextOperationWorkStart"
|
|
7
7
|
}
|
|
8
|
+
export declare enum WorkStartCalcTypeFilter {
|
|
9
|
+
automatic = "automatic",
|
|
10
|
+
byNextOperation = "byNextOperation",
|
|
11
|
+
byPrevOperation = "byPrevOperation",
|
|
12
|
+
all = "all"
|
|
13
|
+
}
|
|
14
|
+
export declare const workStartCalcTypeFilterToCalcType: (filter: WorkStartCalcTypeFilter) => WorkStartCalcType | null;
|
|
8
15
|
export declare enum ModelIncludeForTypeOperation {
|
|
9
16
|
operation = "operation",
|
|
10
17
|
user = "user",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelIncludeForTypeOperation = exports.WorkStartCalcType = void 0;
|
|
3
|
+
exports.ModelIncludeForTypeOperation = exports.workStartCalcTypeFilterToCalcType = exports.WorkStartCalcTypeFilter = exports.WorkStartCalcType = void 0;
|
|
4
4
|
var WorkStartCalcType;
|
|
5
5
|
(function (WorkStartCalcType) {
|
|
6
6
|
WorkStartCalcType["automatic"] = "automatic";
|
|
@@ -9,6 +9,26 @@ var WorkStartCalcType;
|
|
|
9
9
|
WorkStartCalcType["prevOperationReadinessDate"] = "prevOperationReadinessDate";
|
|
10
10
|
WorkStartCalcType["nextOperationWorkStart"] = "nextOperationWorkStart";
|
|
11
11
|
})(WorkStartCalcType || (exports.WorkStartCalcType = WorkStartCalcType = {}));
|
|
12
|
+
var WorkStartCalcTypeFilter;
|
|
13
|
+
(function (WorkStartCalcTypeFilter) {
|
|
14
|
+
WorkStartCalcTypeFilter["automatic"] = "automatic";
|
|
15
|
+
WorkStartCalcTypeFilter["byNextOperation"] = "byNextOperation";
|
|
16
|
+
WorkStartCalcTypeFilter["byPrevOperation"] = "byPrevOperation";
|
|
17
|
+
WorkStartCalcTypeFilter["all"] = "all";
|
|
18
|
+
})(WorkStartCalcTypeFilter || (exports.WorkStartCalcTypeFilter = WorkStartCalcTypeFilter = {}));
|
|
19
|
+
const workStartCalcTypeFilterToCalcType = (filter) => {
|
|
20
|
+
switch (filter) {
|
|
21
|
+
case WorkStartCalcTypeFilter.automatic:
|
|
22
|
+
return WorkStartCalcType.automatic;
|
|
23
|
+
case WorkStartCalcTypeFilter.byNextOperation:
|
|
24
|
+
return WorkStartCalcType.nextOperationWorkStart;
|
|
25
|
+
case WorkStartCalcTypeFilter.byPrevOperation:
|
|
26
|
+
return WorkStartCalcType.prevOperationReadinessDate;
|
|
27
|
+
case WorkStartCalcTypeFilter.all:
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.workStartCalcTypeFilterToCalcType = workStartCalcTypeFilterToCalcType;
|
|
12
32
|
var ModelIncludeForTypeOperation;
|
|
13
33
|
(function (ModelIncludeForTypeOperation) {
|
|
14
34
|
ModelIncludeForTypeOperation["operation"] = "operation";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WorkStartCalcTypeFilter } from '../../operations/enums/enums';
|
|
2
3
|
export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
3
4
|
equipmentId: z.ZodNumber;
|
|
4
5
|
searchString: z.ZodOptional<z.ZodString>;
|
|
@@ -14,6 +15,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
14
15
|
end?: any;
|
|
15
16
|
}>>>;
|
|
16
17
|
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
workStartCalcTypeFilter: z.ZodOptional<z.ZodNativeEnum<typeof WorkStartCalcTypeFilter>>;
|
|
17
19
|
}, "strip", z.ZodTypeAny, {
|
|
18
20
|
equipmentId: number;
|
|
19
21
|
searchString?: string | undefined;
|
|
@@ -23,6 +25,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
23
25
|
} | null | undefined;
|
|
24
26
|
taskId?: number | null | undefined;
|
|
25
27
|
onlyTOperation?: number | undefined;
|
|
28
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
26
29
|
}, {
|
|
27
30
|
equipmentId: number;
|
|
28
31
|
searchString?: string | undefined;
|
|
@@ -32,5 +35,6 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
32
35
|
} | null | undefined;
|
|
33
36
|
taskId?: number | null | undefined;
|
|
34
37
|
onlyTOperation?: number | undefined;
|
|
38
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
35
39
|
}>;
|
|
36
40
|
export type GetProductionTaskByEquipmentDtoZodType = z.infer<typeof GetProductionTaskByEquipmentDtoZod>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetProductionTaskByEquipmentDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../operations/enums/enums");
|
|
5
6
|
exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
|
|
6
7
|
equipmentId: zod_1.z.number().int(),
|
|
7
8
|
searchString: zod_1.z.string().optional(),
|
|
@@ -13,5 +14,6 @@ exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
|
|
|
13
14
|
})
|
|
14
15
|
.nullable()
|
|
15
16
|
.optional(),
|
|
16
|
-
onlyTOperation: zod_1.z.number().int().optional()
|
|
17
|
+
onlyTOperation: zod_1.z.number().int().optional(),
|
|
18
|
+
workStartCalcTypeFilter: zod_1.z.nativeEnum(enums_1.WorkStartCalcTypeFilter).optional()
|
|
17
19
|
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WorkStartCalcTypeFilter } from '../../operations/enums/enums';
|
|
2
3
|
export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
3
4
|
userId: z.ZodNumber;
|
|
4
5
|
searchString: z.ZodOptional<z.ZodString>;
|
|
5
6
|
page: z.ZodDefault<z.ZodNumber>;
|
|
6
7
|
taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
7
8
|
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
workStartCalcTypeFilter: z.ZodOptional<z.ZodNativeEnum<typeof WorkStartCalcTypeFilter>>;
|
|
8
10
|
range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
11
|
start: z.ZodAny;
|
|
10
12
|
end: z.ZodAny;
|
|
@@ -25,6 +27,7 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
|
25
27
|
} | null | undefined;
|
|
26
28
|
taskId?: number | null | undefined;
|
|
27
29
|
onlyTOperation?: number | undefined;
|
|
30
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
28
31
|
}, {
|
|
29
32
|
userId: number;
|
|
30
33
|
page?: number | undefined;
|
|
@@ -35,5 +38,6 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
|
35
38
|
} | null | undefined;
|
|
36
39
|
taskId?: number | null | undefined;
|
|
37
40
|
onlyTOperation?: number | undefined;
|
|
41
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
38
42
|
}>;
|
|
39
43
|
export type GetProductionTaskByUserDtoZodType = z.infer<typeof GetProductionTaskByUserDtoZod>;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetProductionTaskByUserDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../operations/enums/enums");
|
|
5
6
|
exports.GetProductionTaskByUserDtoZod = zod_1.z.object({
|
|
6
7
|
userId: zod_1.z.number().int(),
|
|
7
8
|
searchString: zod_1.z.string().optional(),
|
|
8
9
|
page: zod_1.z.number().int().min(0).default(0),
|
|
9
10
|
taskId: zod_1.z.number().int().nullable().default(null).optional(),
|
|
10
11
|
onlyTOperation: zod_1.z.number().int().optional(),
|
|
12
|
+
workStartCalcTypeFilter: zod_1.z.nativeEnum(enums_1.WorkStartCalcTypeFilter).optional(),
|
|
11
13
|
range: zod_1.z
|
|
12
14
|
.object({
|
|
13
15
|
start: zod_1.z.any(),
|
package/dist/utils/enums.d.ts
CHANGED
|
@@ -226,7 +226,7 @@ export declare enum WorkSpaceObject {
|
|
|
226
226
|
inventary = "\u0418\u043D\u0432\u0435\u043D\u0442\u0430\u0440\u044C",
|
|
227
227
|
inventary_type = "\u0422\u0438\u043F \u0438\u043D\u0432\u0435\u043D\u0442\u0430\u0440\u044F",
|
|
228
228
|
inventary_p_type = "\u041F\u043E\u0434 \u0442\u0438\u043F \u0438\u043D\u0432\u0435\u043D\u0442\u0430\u0440\u044F",
|
|
229
|
-
material = "\
|
|
229
|
+
material = "\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",
|
|
230
230
|
material_type = "\u0422\u0438\u043F \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430",
|
|
231
231
|
material_p_type = "\u041F\u043E\u0434 \u0442\u0438\u043F \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430",
|
|
232
232
|
issue = "\u0417\u0430\u0434\u0430\u0447\u0438",
|
package/dist/utils/enums.js
CHANGED
|
@@ -259,7 +259,7 @@ var WorkSpaceObject;
|
|
|
259
259
|
WorkSpaceObject["inventary"] = "\u0418\u043D\u0432\u0435\u043D\u0442\u0430\u0440\u044C";
|
|
260
260
|
WorkSpaceObject["inventary_type"] = "\u0422\u0438\u043F \u0438\u043D\u0432\u0435\u043D\u0442\u0430\u0440\u044F";
|
|
261
261
|
WorkSpaceObject["inventary_p_type"] = "\u041F\u043E\u0434 \u0442\u0438\u043F \u0438\u043D\u0432\u0435\u043D\u0442\u0430\u0440\u044F";
|
|
262
|
-
WorkSpaceObject["material"] = "\
|
|
262
|
+
WorkSpaceObject["material"] = "\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B";
|
|
263
263
|
WorkSpaceObject["material_type"] = "\u0422\u0438\u043F \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430";
|
|
264
264
|
WorkSpaceObject["material_p_type"] = "\u041F\u043E\u0434 \u0442\u0438\u043F \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430";
|
|
265
265
|
WorkSpaceObject["issue"] = "\u0417\u0430\u0434\u0430\u0447\u0438";
|