@pksep/zod-shared 0.0.505 → 0.0.506
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/assembly-paginate.dto.d.ts +8 -13
- package/dist/assemble/dto/assembly-paginate.dto.js +2 -4
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +7 -7
- package/dist/assemble/dto/get-assemble-operation-pagination.dto.d.ts +8 -28
- package/dist/assemble/dto/get-assemble-operation-pagination.dto.js +2 -13
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +7 -31
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -15
- package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +11 -28
- package/dist/assemble/dto/get-assemble-pagination.dto.js +3 -13
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +5 -5
- package/dist/assemble/schemas/assemble.schema.d.ts +5 -5
- package/dist/company/dto/companies-pagination.dto.d.ts +4 -4
- package/dist/company/dto/create-company.dto.d.ts +2 -2
- package/dist/company/dto/update-company.dto.d.ts +2 -2
- package/dist/equipment/dto/create-equipment.dto.d.ts +3 -3
- package/dist/equipment/dto/create-equipment.dto.js +1 -1
- package/dist/equipment/dto/get-instruments-pagination.dto.d.ts +8 -5
- package/dist/equipment/dto/get-instruments-pagination.dto.js +6 -5
- package/dist/equipment/dto/update-equipment.dto.d.ts +3 -3
- package/dist/equipment/dto/update-equipment.dto.js +9 -1
- 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/interfaces/interface.js +2 -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/metaloworking/dto/get-metallworking-operation-pagination.dto.d.ts +8 -25
- package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.js +2 -6
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +7 -25
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -9
- package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +6 -27
- package/dist/movement-object/schemas/get-one-object-history.schema.js +1 -7
- package/dist/operations/dto/create-type-operation.dto.d.ts +3 -0
- package/dist/operations/dto/create-type-operation.dto.js +1 -0
- package/dist/operations/dto/update-type-operation.dto.d.ts +3 -0
- package/dist/operations/dto/update-type-operation.dto.js +1 -0
- package/dist/operations/index.d.ts +1 -0
- package/dist/operations/index.js +1 -0
- package/dist/operations/schemas/type-oper-equipment.schema.d.ts +15 -0
- package/dist/operations/schemas/type-oper-equipment.schema.js +9 -0
- package/dist/production-tasks/dto/get-by-users.dto.d.ts +3 -4
- package/dist/production-tasks/dto/get-by-users.dto.js +1 -2
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +5 -2
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +1 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +19 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +11 -0
- package/dist/production-tasks/dto/get-production-task.dto.d.ts +3 -4
- package/dist/production-tasks/dto/get-production-task.dto.js +1 -2
- package/dist/production-tasks/dto/online-board-working.dto.d.ts +4 -4
- package/dist/production-tasks/dto/plan-production-task.dto.d.ts +7 -6
- package/dist/production-tasks/dto/plan-production-task.dto.js +4 -1
- package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +12 -0
- package/dist/production-tasks/dto/set-start-time-detal.dto.js +8 -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/enums/production-tasks.d.ts +5 -1
- package/dist/production-tasks/enums/production-tasks.js +7 -2
- package/dist/production-tasks/index.d.ts +3 -1
- package/dist/production-tasks/index.js +3 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +32 -1
- package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
- package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
- package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +0 -4
- package/dist/production-tasks/schemas/production-operation-pos.schema.js +0 -4
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +16 -0
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +8 -0
- package/dist/production-tasks/schemas/production-task.schema.d.ts +3 -4
- package/dist/production-tasks/schemas/production-task.schema.js +1 -4
- package/dist/shipments/dto/entity-filtering-by-shipment.dto.d.ts +3 -0
- package/dist/shipments/dto/entity-filtering-by-shipment.dto.js +1 -0
- package/dist/utils/default-value/default-value.d.ts +7 -0
- package/dist/utils/default-value/default-value.js +11 -1
- package/dist/utils/interface/mat.interface.d.ts +10 -0
- package/dist/utils/interface/mat.interface.js +2 -0
- package/package.json +1 -1
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { IFiltersByParents } from '../../production-tasks';
|
|
3
3
|
export declare const GetOneObjectHistorySchema: z.ZodEffects<z.ZodObject<{
|
|
4
|
-
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
type: z.ZodNativeEnum<typeof EntityTypes>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type: EntityTypes;
|
|
9
|
-
id: number;
|
|
10
|
-
}, {
|
|
11
|
-
type: EntityTypes;
|
|
12
|
-
id: number;
|
|
13
|
-
}>;
|
|
4
|
+
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
14
5
|
date: z.ZodObject<{
|
|
15
6
|
start: z.ZodDate;
|
|
16
7
|
end: z.ZodDate;
|
|
@@ -27,40 +18,28 @@ export declare const GetOneObjectHistorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
27
18
|
start: Date;
|
|
28
19
|
end: Date;
|
|
29
20
|
};
|
|
30
|
-
parentItems: {
|
|
31
|
-
type: EntityTypes;
|
|
32
|
-
id: number;
|
|
33
|
-
};
|
|
34
21
|
page?: number | undefined;
|
|
22
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
35
23
|
}, {
|
|
36
24
|
date: {
|
|
37
25
|
start: Date;
|
|
38
26
|
end: Date;
|
|
39
27
|
};
|
|
40
|
-
parentItems: {
|
|
41
|
-
type: EntityTypes;
|
|
42
|
-
id: number;
|
|
43
|
-
};
|
|
44
28
|
page?: number | undefined;
|
|
29
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
45
30
|
}>, {
|
|
46
31
|
date: {
|
|
47
32
|
start: Date;
|
|
48
33
|
end: Date;
|
|
49
34
|
};
|
|
50
|
-
parentItems: {
|
|
51
|
-
type: EntityTypes;
|
|
52
|
-
id: number;
|
|
53
|
-
};
|
|
54
35
|
page?: number | undefined;
|
|
36
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
55
37
|
}, {
|
|
56
38
|
date: {
|
|
57
39
|
start: Date;
|
|
58
40
|
end: Date;
|
|
59
41
|
};
|
|
60
|
-
parentItems: {
|
|
61
|
-
type: EntityTypes;
|
|
62
|
-
id: number;
|
|
63
|
-
};
|
|
64
42
|
page?: number | undefined;
|
|
43
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
65
44
|
}>;
|
|
66
45
|
export type GetOneObjectHistorySchemaType = z.infer<typeof GetOneObjectHistorySchema>;
|
|
@@ -2,15 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetOneObjectHistorySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("../../utils/enums");
|
|
6
5
|
exports.GetOneObjectHistorySchema = zod_1.z
|
|
7
6
|
.object({
|
|
8
|
-
|
|
9
|
-
id: zod_1.z.coerce.number(),
|
|
10
|
-
type: zod_1.z.nativeEnum(enums_1.EntityTypes, {
|
|
11
|
-
errorMap: () => ({ message: 'Неверный тип передвижения' })
|
|
12
|
-
})
|
|
13
|
-
}),
|
|
7
|
+
byParents: zod_1.z.custom().nullable().optional(),
|
|
14
8
|
date: zod_1.z.object({
|
|
15
9
|
start: zod_1.z.date(),
|
|
16
10
|
end: zod_1.z.date()
|
|
@@ -8,6 +8,7 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
8
8
|
square: z.ZodBoolean;
|
|
9
9
|
list: z.ZodBoolean;
|
|
10
10
|
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
11
|
+
equipmentIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
11
12
|
metaloworking: z.ZodBoolean;
|
|
12
13
|
assembly: z.ZodBoolean;
|
|
13
14
|
sclad: z.ZodBoolean;
|
|
@@ -22,6 +23,7 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
22
23
|
cpu: boolean;
|
|
23
24
|
square: boolean;
|
|
24
25
|
list: boolean;
|
|
26
|
+
equipmentIds: number[] | null;
|
|
25
27
|
assembly: boolean;
|
|
26
28
|
sclad: boolean;
|
|
27
29
|
preTimeMinute: number;
|
|
@@ -41,5 +43,6 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
41
43
|
preTimeMinute: number;
|
|
42
44
|
helperTimeMinute: number;
|
|
43
45
|
users?: number[] | null | undefined;
|
|
46
|
+
equipmentIds?: number[] | null | undefined;
|
|
44
47
|
}>;
|
|
45
48
|
export type CreateTypeOperationDto = z.infer<typeof CreateTypeOperationSchema>;
|
|
@@ -11,6 +11,7 @@ exports.CreateTypeOperationSchema = zod_1.z.object({
|
|
|
11
11
|
square: zod_1.z.boolean(),
|
|
12
12
|
list: zod_1.z.boolean(),
|
|
13
13
|
users: zod_1.z.number().array().nullable().optional(),
|
|
14
|
+
equipmentIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
|
|
14
15
|
metaloworking: zod_1.z.boolean(),
|
|
15
16
|
assembly: zod_1.z.boolean(),
|
|
16
17
|
sclad: zod_1.z.boolean(),
|
|
@@ -9,6 +9,7 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
9
9
|
square: z.ZodBoolean;
|
|
10
10
|
list: z.ZodBoolean;
|
|
11
11
|
users: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
12
|
+
equipmentIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
12
13
|
metaloworking: z.ZodBoolean;
|
|
13
14
|
assembly: z.ZodBoolean;
|
|
14
15
|
sclad: z.ZodBoolean;
|
|
@@ -24,6 +25,7 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
24
25
|
cpu: boolean;
|
|
25
26
|
square: boolean;
|
|
26
27
|
list: boolean;
|
|
28
|
+
equipmentIds: number[] | null;
|
|
27
29
|
assembly: boolean;
|
|
28
30
|
sclad: boolean;
|
|
29
31
|
preTimeMinute: number;
|
|
@@ -44,5 +46,6 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
44
46
|
preTimeMinute: number;
|
|
45
47
|
helperTimeMinute: number;
|
|
46
48
|
users?: any;
|
|
49
|
+
equipmentIds?: number[] | null | undefined;
|
|
47
50
|
}>;
|
|
48
51
|
export type UpdateTypeOperationDto = z.infer<typeof UpdateTypeOperationSchema>;
|
|
@@ -12,6 +12,7 @@ exports.UpdateTypeOperationSchema = zod_1.z.object({
|
|
|
12
12
|
square: zod_1.z.boolean(),
|
|
13
13
|
list: zod_1.z.boolean(),
|
|
14
14
|
users: zod_1.z.any().nullable().optional(),
|
|
15
|
+
equipmentIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
|
|
15
16
|
metaloworking: zod_1.z.boolean(),
|
|
16
17
|
assembly: zod_1.z.boolean(),
|
|
17
18
|
sclad: zod_1.z.boolean(),
|
package/dist/operations/index.js
CHANGED
|
@@ -26,3 +26,4 @@ __exportStar(require("./schemas/type-operation.schema"), exports);
|
|
|
26
26
|
__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
|
+
__exportStar(require("./schemas/type-oper-equipment.schema"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TypeOperEquipmentSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
t_oper_id: z.ZodNumber;
|
|
5
|
+
equipment_id: z.ZodNumber;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
equipment_id: number;
|
|
8
|
+
t_oper_id: number;
|
|
9
|
+
id?: number | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
equipment_id: number;
|
|
12
|
+
t_oper_id: number;
|
|
13
|
+
id?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type ModelTypeOperEquipment = z.infer<typeof TypeOperEquipmentSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeOperEquipmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.TypeOperEquipmentSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.number().int().optional(),
|
|
7
|
+
t_oper_id: zod_1.z.number().int(),
|
|
8
|
+
equipment_id: zod_1.z.number().int()
|
|
9
|
+
});
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { StatusProductionTaskEnum } from '../enums/production-tasks';
|
|
3
2
|
export declare const ProductionTaskByUsersDtoZod: z.ZodObject<{
|
|
4
3
|
page: z.ZodDefault<z.ZodNumber>;
|
|
5
|
-
|
|
4
|
+
isBan: z.ZodDefault<z.ZodBoolean>;
|
|
6
5
|
responsibleUserIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
7
6
|
}, "strip", z.ZodTypeAny, {
|
|
8
7
|
page: number;
|
|
9
8
|
responsibleUserIds: number[];
|
|
10
|
-
|
|
9
|
+
isBan: boolean;
|
|
11
10
|
}, {
|
|
12
|
-
status?: StatusProductionTaskEnum | undefined;
|
|
13
11
|
page?: number | undefined;
|
|
14
12
|
responsibleUserIds?: number[] | undefined;
|
|
13
|
+
isBan?: boolean | undefined;
|
|
15
14
|
}>;
|
|
16
15
|
export type ProductionTaskByUsersDtoZodType = z.infer<typeof ProductionTaskByUsersDtoZod>;
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProductionTaskByUsersDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const production_tasks_1 = require("../enums/production-tasks");
|
|
6
5
|
exports.ProductionTaskByUsersDtoZod = zod_1.z.object({
|
|
7
6
|
page: zod_1.z.number().default(1),
|
|
8
|
-
|
|
7
|
+
isBan: zod_1.z.boolean().default(false),
|
|
9
8
|
responsibleUserIds: zod_1.z.array(zod_1.z.number()).optional().default([])
|
|
10
9
|
});
|
|
@@ -13,6 +13,7 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
|
|
|
13
13
|
start?: any;
|
|
14
14
|
end?: any;
|
|
15
15
|
}>>>;
|
|
16
|
+
isOnlyDetalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
16
17
|
assembleIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
17
18
|
employeIds: z.ZodDefault<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>>;
|
|
18
19
|
searchString: z.ZodOptional<z.ZodString>;
|
|
@@ -22,6 +23,7 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
|
|
|
22
23
|
}, "strip", z.ZodTypeAny, {
|
|
23
24
|
typeOperationIds: number[] | null;
|
|
24
25
|
employeIds: number[] | null;
|
|
26
|
+
isOnlyDetalId: boolean | null;
|
|
25
27
|
assembleIds: number[] | null;
|
|
26
28
|
page?: number | null | undefined;
|
|
27
29
|
searchString?: string | undefined;
|
|
@@ -39,11 +41,12 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
|
|
|
39
41
|
start?: any;
|
|
40
42
|
end?: any;
|
|
41
43
|
} | null | undefined;
|
|
42
|
-
typeOperationIds?: number[] | null | undefined;
|
|
43
|
-
employeIds?: number[] | null | undefined;
|
|
44
44
|
byParents?: IFiltersByParents | null | undefined;
|
|
45
45
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
46
|
+
typeOperationIds?: number[] | null | undefined;
|
|
47
|
+
employeIds?: number[] | null | undefined;
|
|
46
48
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
49
|
+
isOnlyDetalId?: boolean | null | undefined;
|
|
47
50
|
assembleIds?: number[] | null | undefined;
|
|
48
51
|
}>;
|
|
49
52
|
export type GetDeficitsDetalByProductionTaskDtoZodType = z.infer<typeof GetDeficitsDetalByProductionTaskDtoZod>;
|
|
@@ -12,6 +12,7 @@ exports.GetDeficitsDetalByProductionTaskDtoZod = zod_1.z.object({
|
|
|
12
12
|
})
|
|
13
13
|
.nullable()
|
|
14
14
|
.optional(),
|
|
15
|
+
isOnlyDetalId: zod_1.z.boolean().nullish().default(false),
|
|
15
16
|
assembleIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
|
|
16
17
|
employeIds: zod_1.z.array(zod_1.z.number()).nullish().optional().default([]),
|
|
17
18
|
searchString: zod_1.z.string().optional(),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { StockOrderType } from '../../utils';
|
|
3
|
+
export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
|
|
4
|
+
operationTypeId: z.ZodNumber;
|
|
5
|
+
taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
6
|
+
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
productionOperationType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof StockOrderType>>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
operationTypeId: number;
|
|
10
|
+
taskId?: number | null | undefined;
|
|
11
|
+
onlyTOperation?: number | undefined;
|
|
12
|
+
productionOperationType?: StockOrderType | null | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
operationTypeId: number;
|
|
15
|
+
taskId?: number | null | undefined;
|
|
16
|
+
onlyTOperation?: number | undefined;
|
|
17
|
+
productionOperationType?: StockOrderType | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type GetProductionTaskByOperationDtoZodType = z.infer<typeof GetProductionTaskByOperationDtoZod>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetProductionTaskByOperationDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
exports.GetProductionTaskByOperationDtoZod = zod_1.z.object({
|
|
7
|
+
operationTypeId: zod_1.z.number().int(),
|
|
8
|
+
taskId: zod_1.z.number().int().nullable().default(null).optional(),
|
|
9
|
+
onlyTOperation: zod_1.z.number().int().optional(),
|
|
10
|
+
productionOperationType: zod_1.z.nativeEnum(utils_1.StockOrderType).nullish()
|
|
11
|
+
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { StatusProductionTaskEnum } from '../enums/production-tasks';
|
|
3
2
|
import { StockOrderType } from '../../utils';
|
|
4
3
|
export declare const GetProductionTaskDtoZod: z.ZodObject<{
|
|
5
4
|
page: z.ZodDefault<z.ZodNumber>;
|
|
6
|
-
|
|
5
|
+
isBan: z.ZodDefault<z.ZodBoolean>;
|
|
7
6
|
responsibleUserIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
8
7
|
responsibleEquipmentIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
9
8
|
productionOperationType: z.ZodOptional<z.ZodNativeEnum<typeof StockOrderType>>;
|
|
@@ -11,14 +10,14 @@ export declare const GetProductionTaskDtoZod: z.ZodObject<{
|
|
|
11
10
|
}, "strip", z.ZodTypeAny, {
|
|
12
11
|
page: number;
|
|
13
12
|
responsibleUserIds: number[];
|
|
13
|
+
isBan: boolean;
|
|
14
14
|
responsibleEquipmentIds: number[];
|
|
15
|
-
status?: StatusProductionTaskEnum | null | undefined;
|
|
16
15
|
productionOperationType?: StockOrderType | undefined;
|
|
17
16
|
searchValue?: string | undefined;
|
|
18
17
|
}, {
|
|
19
|
-
status?: StatusProductionTaskEnum | null | undefined;
|
|
20
18
|
page?: number | undefined;
|
|
21
19
|
responsibleUserIds?: number[] | undefined;
|
|
20
|
+
isBan?: boolean | undefined;
|
|
22
21
|
responsibleEquipmentIds?: number[] | undefined;
|
|
23
22
|
productionOperationType?: StockOrderType | undefined;
|
|
24
23
|
searchValue?: string | undefined;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetProductionTaskDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const production_tasks_1 = require("../enums/production-tasks");
|
|
6
5
|
const utils_1 = require("../../utils");
|
|
7
6
|
exports.GetProductionTaskDtoZod = zod_1.z.object({
|
|
8
7
|
page: zod_1.z.number().default(1),
|
|
9
|
-
|
|
8
|
+
isBan: zod_1.z.boolean().default(false),
|
|
10
9
|
responsibleUserIds: zod_1.z.array(zod_1.z.number()).optional().default([]),
|
|
11
10
|
responsibleEquipmentIds: zod_1.z.array(zod_1.z.number()).optional().default([]),
|
|
12
11
|
productionOperationType: zod_1.z.nativeEnum(utils_1.StockOrderType).optional(),
|
|
@@ -33,10 +33,10 @@ export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
|
|
|
33
33
|
start?: any;
|
|
34
34
|
end?: any;
|
|
35
35
|
} | null | undefined;
|
|
36
|
-
typeOperationIds?: number[] | null | undefined;
|
|
37
|
-
searchStr?: string | undefined;
|
|
38
36
|
byParents?: IFiltersByParents | null | undefined;
|
|
39
37
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
38
|
+
typeOperationIds?: number[] | null | undefined;
|
|
39
|
+
searchStr?: string | undefined;
|
|
40
40
|
userByProductioinTask?: IFiltersByUserProductionTask | null | undefined;
|
|
41
41
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
42
42
|
}, {
|
|
@@ -46,11 +46,11 @@ export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
|
|
|
46
46
|
start?: any;
|
|
47
47
|
end?: any;
|
|
48
48
|
} | null | undefined;
|
|
49
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
50
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
49
51
|
typeOperationIds?: number[] | null | undefined;
|
|
50
52
|
employeIds?: number[] | null | undefined;
|
|
51
53
|
searchStr?: string | undefined;
|
|
52
|
-
byParents?: IFiltersByParents | null | undefined;
|
|
53
|
-
byOrder?: IFiltersByByOrder | null | undefined;
|
|
54
54
|
userByProductioinTask?: IFiltersByUserProductionTask | null | undefined;
|
|
55
55
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
56
56
|
isComplect?: boolean | undefined;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { SortReadinesEnum, StockOrderType } from '../../utils';
|
|
3
3
|
import { IFiltersByByOrder, IFiltersByParents } from '../interfaces/online-board';
|
|
4
|
+
import { ProductionTaskDeficitFilterEnum } from '../enums/production-tasks';
|
|
4
5
|
export declare const PlanForProductionTaskDtoZod: z.ZodObject<{
|
|
5
6
|
workingType: z.ZodNativeEnum<typeof StockOrderType>;
|
|
6
7
|
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
7
8
|
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
8
|
-
|
|
9
|
+
deficitFilteringType: z.ZodDefault<z.ZodNativeEnum<typeof ProductionTaskDeficitFilterEnum>>;
|
|
9
10
|
searchStr: z.ZodOptional<z.ZodString>;
|
|
10
11
|
typeOperationIds: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>, number[] | undefined, unknown>, number[], unknown>;
|
|
11
12
|
childrenByProductionTaskIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -26,16 +27,16 @@ export declare const PlanForProductionTaskDtoZod: z.ZodObject<{
|
|
|
26
27
|
page: number;
|
|
27
28
|
workingType: StockOrderType;
|
|
28
29
|
typeOperationIds: number[];
|
|
29
|
-
|
|
30
|
+
deficitFilteringType: ProductionTaskDeficitFilterEnum;
|
|
30
31
|
excludeIds: number[];
|
|
31
32
|
sortReadiness: SortReadinesEnum;
|
|
32
33
|
range?: {
|
|
33
34
|
start: string | null;
|
|
34
35
|
end: string | null;
|
|
35
36
|
} | null | undefined;
|
|
36
|
-
searchStr?: string | undefined;
|
|
37
37
|
byParents?: IFiltersByParents | null | undefined;
|
|
38
38
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
39
|
+
searchStr?: string | undefined;
|
|
39
40
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
40
41
|
}, {
|
|
41
42
|
page: number;
|
|
@@ -44,12 +45,12 @@ export declare const PlanForProductionTaskDtoZod: z.ZodObject<{
|
|
|
44
45
|
start: string | null;
|
|
45
46
|
end: string | null;
|
|
46
47
|
} | null | undefined;
|
|
47
|
-
typeOperationIds?: unknown;
|
|
48
|
-
searchStr?: string | undefined;
|
|
49
48
|
byParents?: IFiltersByParents | null | undefined;
|
|
50
49
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
50
|
+
typeOperationIds?: unknown;
|
|
51
|
+
searchStr?: string | undefined;
|
|
51
52
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
52
|
-
|
|
53
|
+
deficitFilteringType?: ProductionTaskDeficitFilterEnum | undefined;
|
|
53
54
|
excludeIds?: number[] | undefined;
|
|
54
55
|
sortReadiness?: SortReadinesEnum | undefined;
|
|
55
56
|
}>;
|
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PlanForProductionTaskDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
+
const production_tasks_1 = require("../enums/production-tasks");
|
|
6
7
|
exports.PlanForProductionTaskDtoZod = zod_1.z.object({
|
|
7
8
|
workingType: zod_1.z.nativeEnum(utils_1.StockOrderType),
|
|
8
9
|
byParents: zod_1.z.custom().nullable().optional(),
|
|
9
10
|
byOrder: zod_1.z.custom().nullable().optional(),
|
|
10
|
-
|
|
11
|
+
deficitFilteringType: zod_1.z
|
|
12
|
+
.nativeEnum(production_tasks_1.ProductionTaskDeficitFilterEnum)
|
|
13
|
+
.default(production_tasks_1.ProductionTaskDeficitFilterEnum.all),
|
|
11
14
|
searchStr: zod_1.z.string().optional(),
|
|
12
15
|
typeOperationIds: zod_1.z
|
|
13
16
|
.preprocess(value => {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SetStartDetalTimeDtoZod: z.ZodObject<{
|
|
3
|
+
typeOperationId: z.ZodNumber;
|
|
4
|
+
time: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
time: string;
|
|
7
|
+
typeOperationId: number;
|
|
8
|
+
}, {
|
|
9
|
+
time: string;
|
|
10
|
+
typeOperationId: number;
|
|
11
|
+
}>;
|
|
12
|
+
export type SetStartDetalTimeDtoZodType = z.infer<typeof SetStartDetalTimeDtoZod>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetStartDetalTimeDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SetStartDetalTimeDtoZod = zod_1.z.object({
|
|
6
|
+
typeOperationId: zod_1.z.number(),
|
|
7
|
+
time: zod_1.z.string()
|
|
8
|
+
});
|
|
@@ -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
|
+
});
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export declare enum StatusProductionTaskEnum {
|
|
2
2
|
active = "active",
|
|
3
|
-
inactive = "inactive",
|
|
4
3
|
archive = "archive"
|
|
5
4
|
}
|
|
6
5
|
export declare enum OrderTypeEnum {
|
|
7
6
|
sclad = "sclad",
|
|
8
7
|
buyer = "buyer"
|
|
9
8
|
}
|
|
9
|
+
export declare enum ProductionTaskDeficitFilterEnum {
|
|
10
|
+
all = "all",
|
|
11
|
+
shipmentDeficit = "shipmentDeficit",
|
|
12
|
+
assembleDeficit = "assembleDeficit"
|
|
13
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrderTypeEnum = exports.StatusProductionTaskEnum = void 0;
|
|
3
|
+
exports.ProductionTaskDeficitFilterEnum = exports.OrderTypeEnum = exports.StatusProductionTaskEnum = void 0;
|
|
4
4
|
var StatusProductionTaskEnum;
|
|
5
5
|
(function (StatusProductionTaskEnum) {
|
|
6
6
|
StatusProductionTaskEnum["active"] = "active";
|
|
7
|
-
StatusProductionTaskEnum["inactive"] = "inactive";
|
|
8
7
|
StatusProductionTaskEnum["archive"] = "archive";
|
|
9
8
|
})(StatusProductionTaskEnum || (exports.StatusProductionTaskEnum = StatusProductionTaskEnum = {}));
|
|
10
9
|
var OrderTypeEnum;
|
|
@@ -12,3 +11,9 @@ var OrderTypeEnum;
|
|
|
12
11
|
OrderTypeEnum["sclad"] = "sclad";
|
|
13
12
|
OrderTypeEnum["buyer"] = "buyer";
|
|
14
13
|
})(OrderTypeEnum || (exports.OrderTypeEnum = OrderTypeEnum = {}));
|
|
14
|
+
var ProductionTaskDeficitFilterEnum;
|
|
15
|
+
(function (ProductionTaskDeficitFilterEnum) {
|
|
16
|
+
ProductionTaskDeficitFilterEnum["all"] = "all";
|
|
17
|
+
ProductionTaskDeficitFilterEnum["shipmentDeficit"] = "shipmentDeficit";
|
|
18
|
+
ProductionTaskDeficitFilterEnum["assembleDeficit"] = "assembleDeficit";
|
|
19
|
+
})(ProductionTaskDeficitFilterEnum || (exports.ProductionTaskDeficitFilterEnum = ProductionTaskDeficitFilterEnum = {}));
|
|
@@ -16,7 +16,6 @@ export * from './dto/get-taks-by-toperation.dto';
|
|
|
16
16
|
export * from './dto/get-toperations.dto';
|
|
17
17
|
export * from './dto/online-board-working.dto';
|
|
18
18
|
export * from './dto/plan-production-task.dto';
|
|
19
|
-
export * from './dto/update-status.dto';
|
|
20
19
|
export * from './dto/update.dto';
|
|
21
20
|
export * from './dto/change-due-date.dto';
|
|
22
21
|
export * from './dto/percent-created.dto';
|
|
@@ -30,3 +29,6 @@ export * from './dto/create-operation-pos.dto';
|
|
|
30
29
|
export * from './methods/methods';
|
|
31
30
|
export * from './default-data/default-data';
|
|
32
31
|
export * from './schemas/operation-positions.schema';
|
|
32
|
+
export * from './dto/get-production-task-by-operation.dto';
|
|
33
|
+
export * from './schemas/production-taks-start-time-detal.schema';
|
|
34
|
+
export * from './dto/set-start-time-detal.dto';
|
|
@@ -32,7 +32,6 @@ __exportStar(require("./dto/get-taks-by-toperation.dto"), exports);
|
|
|
32
32
|
__exportStar(require("./dto/get-toperations.dto"), exports);
|
|
33
33
|
__exportStar(require("./dto/online-board-working.dto"), exports);
|
|
34
34
|
__exportStar(require("./dto/plan-production-task.dto"), exports);
|
|
35
|
-
__exportStar(require("./dto/update-status.dto"), exports);
|
|
36
35
|
__exportStar(require("./dto/update.dto"), exports);
|
|
37
36
|
__exportStar(require("./dto/change-due-date.dto"), exports);
|
|
38
37
|
__exportStar(require("./dto/percent-created.dto"), exports);
|
|
@@ -46,3 +45,6 @@ __exportStar(require("./dto/create-operation-pos.dto"), exports);
|
|
|
46
45
|
__exportStar(require("./methods/methods"), exports);
|
|
47
46
|
__exportStar(require("./default-data/default-data"), exports);
|
|
48
47
|
__exportStar(require("./schemas/operation-positions.schema"), exports);
|
|
48
|
+
__exportStar(require("./dto/get-production-task-by-operation.dto"), exports);
|
|
49
|
+
__exportStar(require("./schemas/production-taks-start-time-detal.schema"), exports);
|
|
50
|
+
__exportStar(require("./dto/set-start-time-detal.dto"), exports);
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { ModelTechProcess } from '../../tech-process';
|
|
2
2
|
import { ModelUser } from '../../user';
|
|
3
|
-
import { IzdType, ProductionTimeType } from '../../utils';
|
|
3
|
+
import { IzdType, ProductionTimeType, StockOrderType } from '../../utils';
|
|
4
4
|
import { ModelProductionTaskAssembly } from '../schemas/production-taks-assembly.schema';
|
|
5
5
|
import { ModelProductionTaskMetalloworking } from '../schemas/production-taks-metalloworkig.schema';
|
|
6
6
|
import { ModelProductionTask } from '../schemas/production-task.schema';
|
|
7
7
|
import { IFiltersByByOrder } from './online-board';
|
|
8
8
|
import { ModelShipments } from '../../shipments';
|
|
9
9
|
import { ModelOperationPosition } from '../schemas/operation-positions.schema';
|
|
10
|
+
import { ModelEquipment } from '../../equipment';
|
|
11
|
+
import { ModelOperation } from '../../operations';
|
|
12
|
+
import { ModelDetal } from '../../detal';
|
|
13
|
+
import { ModelCbed } from '../../cbed';
|
|
14
|
+
import { ModelProduct } from '../../product/schemas/product.schema';
|
|
10
15
|
export interface IMarkExecute {
|
|
11
16
|
quantity: number;
|
|
12
17
|
executionTime: number;
|
|
@@ -42,6 +47,32 @@ export interface IProductionOperation {
|
|
|
42
47
|
responsibleUser: number | null;
|
|
43
48
|
needsByProductinTask: number;
|
|
44
49
|
}
|
|
50
|
+
export interface IGetByOperation {
|
|
51
|
+
productionTaskDueData: Date | null;
|
|
52
|
+
productionTaskId: number;
|
|
53
|
+
productionTaskDescription: string;
|
|
54
|
+
producitonTaskType: StockOrderType;
|
|
55
|
+
detalIdx: number;
|
|
56
|
+
startTime: Date | null;
|
|
57
|
+
metalloworkingId: number;
|
|
58
|
+
assembleId: number;
|
|
59
|
+
operationPosId: number;
|
|
60
|
+
endDate: Date | null;
|
|
61
|
+
mainEquipment: ModelEquipment | null;
|
|
62
|
+
currentOperation: ModelOperation;
|
|
63
|
+
entityType: IzdType;
|
|
64
|
+
createTimeMax: number;
|
|
65
|
+
entity: ModelDetal | ModelCbed | ModelProduct;
|
|
66
|
+
myQuantity: number;
|
|
67
|
+
operationsLength: number;
|
|
68
|
+
prevOperation: ModelOperation | null;
|
|
69
|
+
nextOperation: ModelOperation | null;
|
|
70
|
+
mainOperation: ModelOperation | null;
|
|
71
|
+
remainingByProductionTask: number;
|
|
72
|
+
relativeTime: number;
|
|
73
|
+
metalloworkingTime: number;
|
|
74
|
+
assembleTime: number;
|
|
75
|
+
}
|
|
45
76
|
export interface ICreateProductionOperationPos {
|
|
46
77
|
id: number;
|
|
47
78
|
idx: number;
|
|
@@ -7,6 +7,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodNumber;
|
|
8
8
|
start_time: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
9
|
idx: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
10
|
+
detal_idx: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
10
11
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
11
12
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
13
|
create_time_minutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -26,6 +27,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
26
27
|
equipment_id?: number | null | undefined;
|
|
27
28
|
operation_id?: number | null | undefined;
|
|
28
29
|
start_time?: Date | null | undefined;
|
|
30
|
+
detal_idx?: number | undefined;
|
|
29
31
|
production_operation_pos_id?: number | null | undefined;
|
|
30
32
|
}, {
|
|
31
33
|
id: number;
|
|
@@ -37,6 +39,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
37
39
|
equipment_id?: number | null | undefined;
|
|
38
40
|
operation_id?: number | null | undefined;
|
|
39
41
|
start_time?: Date | null | undefined;
|
|
42
|
+
detal_idx?: number | undefined;
|
|
40
43
|
create_time_minutes?: number | undefined;
|
|
41
44
|
production_operation_pos_id?: number | null | undefined;
|
|
42
45
|
}>;
|
|
@@ -6,6 +6,7 @@ exports.OperationPositionSchema = zod_1.z.object({
|
|
|
6
6
|
id: zod_1.z.number().int(),
|
|
7
7
|
start_time: zod_1.z.date().nullish(),
|
|
8
8
|
idx: zod_1.z.number().int().default(0).optional(),
|
|
9
|
+
detal_idx: zod_1.z.number().int().default(0).optional(),
|
|
9
10
|
ban: zod_1.z.boolean().default(false),
|
|
10
11
|
user_id: zod_1.z.number().int().nullish(),
|
|
11
12
|
create_time_minutes: zod_1.z.number().default(0),
|