@pksep/zod-shared 0.0.560 → 0.0.562
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/ai-mcp/index.d.ts +2 -0
- package/dist/{library → ai-mcp}/index.js +2 -5
- package/dist/ai-mcp/interfaces/ai-mcp.interface.d.ts +358 -0
- package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.d.ts +130 -0
- package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.js +118 -0
- package/dist/ai-mcp/schemas/ai-mcp-specification.schema.d.ts +123 -0
- package/dist/ai-mcp/schemas/ai-mcp-specification.schema.js +110 -0
- package/dist/ai-mcp/schemas/ai-mcp.schema.d.ts +384 -0
- package/dist/ai-mcp/schemas/ai-mcp.schema.js +210 -0
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +28 -0
- package/dist/assemble/dto/set-date-shipment.dto.d.ts +2 -2
- package/dist/assemble/interfaces/interfaces.d.ts +8 -0
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +20 -0
- package/dist/assemble/schemas/assemble.schema.d.ts +20 -0
- package/dist/cbed/dto/up-create-cbed.dto.d.ts +3 -0
- package/dist/cbed/dto/up-create-cbed.dto.js +1 -0
- package/dist/deliveries/dto/create-deliveries.dto.d.ts +6 -6
- package/dist/detal/dto/archive-detal.dto.d.ts +17 -0
- package/dist/detal/dto/archive-detal.dto.js +10 -0
- package/dist/detal/dto/update-detal.dto.d.ts +342 -17
- package/dist/detal/dto/update-detal.dto.js +88 -27
- package/dist/detal/index.d.ts +1 -0
- package/dist/detal/index.js +1 -0
- package/dist/document/dto/entity-document-command.dto.d.ts +184 -0
- package/dist/document/dto/entity-document-command.dto.js +59 -0
- package/dist/document/index.d.ts +2 -0
- package/dist/document/index.js +2 -0
- package/dist/document/interfaces/entity-document.interface.d.ts +30 -0
- package/dist/excel-export/excel-export.dto.d.ts +2968 -0
- package/dist/excel-export/excel-export.dto.js +391 -0
- package/dist/excel-export/index.d.ts +1 -0
- package/dist/{issue → excel-export}/index.js +1 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/marks/type/type.d.ts +4 -4
- package/dist/material/dto/create-material.dto.d.ts +3 -0
- package/dist/material/dto/create-material.dto.js +2 -1
- package/dist/product/dto/up-create-product.dto.d.ts +3 -0
- package/dist/product/dto/up-create-product.dto.js +1 -0
- package/dist/production-tasks/dto/change-due-date.dto.d.ts +2 -2
- package/dist/production-tasks/dto/get-production-task-display-numbers.dto.d.ts +20 -0
- package/dist/production-tasks/dto/get-production-task-display-numbers.dto.js +11 -0
- package/dist/production-tasks/dto/plan-production-task.dto.d.ts +34 -0
- package/dist/production-tasks/dto/plan-production-task.dto.js +21 -2
- package/dist/production-tasks/dto/split-production-task.dto.d.ts +203 -0
- package/dist/production-tasks/dto/split-production-task.dto.js +71 -0
- package/dist/production-tasks/dto/update.dto.d.ts +2 -2
- package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +2 -2
- package/dist/production-tasks/enums/production-tasks.d.ts +10 -0
- package/dist/production-tasks/enums/production-tasks.js +12 -1
- package/dist/production-tasks/index.d.ts +3 -0
- package/dist/production-tasks/index.js +3 -0
- package/dist/production-tasks/interfaces/production-tasks.d.ts +4 -0
- package/dist/production-tasks/methods/methods.d.ts +9 -0
- package/dist/production-tasks/methods/methods.js +16 -1
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +55 -8
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +9 -0
- package/dist/production-tasks/schemas/production-task-subtask.schema.d.ts +81 -0
- package/dist/production-tasks/schemas/production-task.schema.d.ts +14 -0
- package/dist/production-tasks/schemas/production-task.schema.js +4 -0
- package/dist/specification/dto/mutate-specification.dto.d.ts +58 -0
- package/dist/specification/dto/mutate-specification.dto.js +65 -0
- package/dist/specification/index.d.ts +1 -0
- package/dist/specification/index.js +1 -0
- package/dist/specification/interface/interface.d.ts +17 -0
- package/dist/utils/methods/sequelize.d.ts +2 -0
- package/dist/utils/methods/sequelize.js +4 -1
- package/dist/utils/methods.js +30 -10
- package/dist/utils/tables-config/enum.d.ts +5 -0
- package/dist/utils/tables-config/enum.js +10 -0
- package/dist/utils/types/types.d.ts +10 -1
- package/dist/utils/validation/transform.d.ts +2 -0
- package/dist/utils/validation/transform.js +25 -1
- package/package.json +1 -1
- package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
- package/dist/issue/dto/up-create-issue.dto.js +0 -21
- package/dist/issue/index.d.ts +0 -5
- package/dist/issue/interfaces/interface.d.ts +0 -4
- package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
- package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user.schema.js +0 -9
- package/dist/issue/schemas/issue.schema.d.ts +0 -51
- package/dist/issue/schemas/issue.schema.js +0 -21
- package/dist/library/dto/create-chapter.dto.d.ts +0 -12
- package/dist/library/dto/create-chapter.dto.js +0 -8
- package/dist/library/dto/create-link.dto.d.ts +0 -30
- package/dist/library/dto/create-link.dto.js +0 -14
- package/dist/library/index.d.ts +0 -5
- package/dist/library/interfaces/interface.d.ts +0 -3
- package/dist/library/schemas/links-user.schema.d.ts +0 -15
- package/dist/library/schemas/links-user.schema.js +0 -9
- package/dist/library/schemas/links.schema.d.ts +0 -30
- package/dist/library/schemas/links.schema.js +0 -14
- package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-marks.dto.js +0 -8
- package/dist/production-tasks/dto/update-responsible.dto.d.ts +0 -12
- package/dist/production-tasks/dto/update-responsible.dto.js +0 -8
- package/dist/production-tasks/dto/update-status.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-status.dto.js +0 -9
- package/dist/shipments/dto/change-date-urgency.dto.d.ts +0 -12
- package/dist/shipments/dto/change-date-urgency.dto.js +0 -8
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
- package/dist/utils/interface/mat.interface.d.ts +0 -10
- /package/dist/{issue/interfaces/interface.js → ai-mcp/interfaces/ai-mcp.interface.js} +0 -0
- /package/dist/{library/interfaces/interface.js → document/interfaces/entity-document.interface.js} +0 -0
- /package/dist/{utils/interface/mat.interface.js → production-tasks/schemas/production-task-subtask.schema.js} +0 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SplitProductionTaskOperationAssignmentDtoZod: z.ZodObject<{
|
|
3
|
+
operationPositionId: z.ZodNumber;
|
|
4
|
+
userId: z.ZodNumber;
|
|
5
|
+
equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
userId: number;
|
|
8
|
+
operationPositionId: number;
|
|
9
|
+
equipmentId?: number | null | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
userId: number;
|
|
12
|
+
operationPositionId: number;
|
|
13
|
+
equipmentId?: number | null | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type SplitProductionTaskOperationAssignmentDtoZodType = z.infer<typeof SplitProductionTaskOperationAssignmentDtoZod>;
|
|
16
|
+
export declare const SplitProductionTaskPositionDtoZod: z.ZodObject<{
|
|
17
|
+
productionOperationPosId: z.ZodNumber;
|
|
18
|
+
quantity: z.ZodNumber;
|
|
19
|
+
operationAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
20
|
+
operationPositionId: z.ZodNumber;
|
|
21
|
+
userId: z.ZodNumber;
|
|
22
|
+
equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
userId: number;
|
|
25
|
+
operationPositionId: number;
|
|
26
|
+
equipmentId?: number | null | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
userId: number;
|
|
29
|
+
operationPositionId: number;
|
|
30
|
+
equipmentId?: number | null | undefined;
|
|
31
|
+
}>, "many">>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
quantity: number;
|
|
34
|
+
productionOperationPosId: number;
|
|
35
|
+
operationAssignments: {
|
|
36
|
+
userId: number;
|
|
37
|
+
operationPositionId: number;
|
|
38
|
+
equipmentId?: number | null | undefined;
|
|
39
|
+
}[];
|
|
40
|
+
}, {
|
|
41
|
+
quantity: number;
|
|
42
|
+
productionOperationPosId: number;
|
|
43
|
+
operationAssignments?: {
|
|
44
|
+
userId: number;
|
|
45
|
+
operationPositionId: number;
|
|
46
|
+
equipmentId?: number | null | undefined;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export type SplitProductionTaskPositionDtoZodType = z.infer<typeof SplitProductionTaskPositionDtoZod>;
|
|
50
|
+
export declare const SplitProductionTaskDtoZod: z.ZodObject<{
|
|
51
|
+
positions: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
52
|
+
productionOperationPosId: z.ZodNumber;
|
|
53
|
+
quantity: z.ZodNumber;
|
|
54
|
+
operationAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
55
|
+
operationPositionId: z.ZodNumber;
|
|
56
|
+
userId: z.ZodNumber;
|
|
57
|
+
equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
userId: number;
|
|
60
|
+
operationPositionId: number;
|
|
61
|
+
equipmentId?: number | null | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
userId: number;
|
|
64
|
+
operationPositionId: number;
|
|
65
|
+
equipmentId?: number | null | undefined;
|
|
66
|
+
}>, "many">>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
quantity: number;
|
|
69
|
+
productionOperationPosId: number;
|
|
70
|
+
operationAssignments: {
|
|
71
|
+
userId: number;
|
|
72
|
+
operationPositionId: number;
|
|
73
|
+
equipmentId?: number | null | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
}, {
|
|
76
|
+
quantity: number;
|
|
77
|
+
productionOperationPosId: number;
|
|
78
|
+
operationAssignments?: {
|
|
79
|
+
userId: number;
|
|
80
|
+
operationPositionId: number;
|
|
81
|
+
equipmentId?: number | null | undefined;
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
}>, "many">, {
|
|
84
|
+
quantity: number;
|
|
85
|
+
productionOperationPosId: number;
|
|
86
|
+
operationAssignments: {
|
|
87
|
+
userId: number;
|
|
88
|
+
operationPositionId: number;
|
|
89
|
+
equipmentId?: number | null | undefined;
|
|
90
|
+
}[];
|
|
91
|
+
}[], {
|
|
92
|
+
quantity: number;
|
|
93
|
+
productionOperationPosId: number;
|
|
94
|
+
operationAssignments?: {
|
|
95
|
+
userId: number;
|
|
96
|
+
operationPositionId: number;
|
|
97
|
+
equipmentId?: number | null | undefined;
|
|
98
|
+
}[] | undefined;
|
|
99
|
+
}[]>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
positions: {
|
|
102
|
+
quantity: number;
|
|
103
|
+
productionOperationPosId: number;
|
|
104
|
+
operationAssignments: {
|
|
105
|
+
userId: number;
|
|
106
|
+
operationPositionId: number;
|
|
107
|
+
equipmentId?: number | null | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
}[];
|
|
110
|
+
}, {
|
|
111
|
+
positions: {
|
|
112
|
+
quantity: number;
|
|
113
|
+
productionOperationPosId: number;
|
|
114
|
+
operationAssignments?: {
|
|
115
|
+
userId: number;
|
|
116
|
+
operationPositionId: number;
|
|
117
|
+
equipmentId?: number | null | undefined;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
}[];
|
|
120
|
+
}>;
|
|
121
|
+
export type SplitProductionTaskDtoZodType = z.infer<typeof SplitProductionTaskDtoZod>;
|
|
122
|
+
export declare const ProductionTaskOrderPlacementZod: z.ZodEnum<["before", "after"]>;
|
|
123
|
+
export declare const ReorderProductionTasksDtoZod: z.ZodEffects<z.ZodObject<{
|
|
124
|
+
sourceProductionTaskId: z.ZodNumber;
|
|
125
|
+
targetProductionTaskId: z.ZodNumber;
|
|
126
|
+
placement: z.ZodEnum<["before", "after"]>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
sourceProductionTaskId: number;
|
|
129
|
+
targetProductionTaskId: number;
|
|
130
|
+
placement: "before" | "after";
|
|
131
|
+
}, {
|
|
132
|
+
sourceProductionTaskId: number;
|
|
133
|
+
targetProductionTaskId: number;
|
|
134
|
+
placement: "before" | "after";
|
|
135
|
+
}>, {
|
|
136
|
+
sourceProductionTaskId: number;
|
|
137
|
+
targetProductionTaskId: number;
|
|
138
|
+
placement: "before" | "after";
|
|
139
|
+
}, {
|
|
140
|
+
sourceProductionTaskId: number;
|
|
141
|
+
targetProductionTaskId: number;
|
|
142
|
+
placement: "before" | "after";
|
|
143
|
+
}>;
|
|
144
|
+
export type ReorderProductionTasksDtoZodType = z.infer<typeof ReorderProductionTasksDtoZod>;
|
|
145
|
+
export declare const ReorderProductionTasksResponseZod: z.ZodObject<{
|
|
146
|
+
sourceProductionTaskId: z.ZodNumber;
|
|
147
|
+
targetProductionTaskId: z.ZodNumber;
|
|
148
|
+
globalOrderIndex: z.ZodNumber;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
globalOrderIndex: number;
|
|
151
|
+
sourceProductionTaskId: number;
|
|
152
|
+
targetProductionTaskId: number;
|
|
153
|
+
}, {
|
|
154
|
+
globalOrderIndex: number;
|
|
155
|
+
sourceProductionTaskId: number;
|
|
156
|
+
targetProductionTaskId: number;
|
|
157
|
+
}>;
|
|
158
|
+
export type ReorderProductionTasksResponseZodType = z.infer<typeof ReorderProductionTasksResponseZod>;
|
|
159
|
+
export declare const ProductionTaskOrderRecalculationJobZod: z.ZodObject<{
|
|
160
|
+
productionTaskIds: z.ZodArray<z.ZodNumber, "many">;
|
|
161
|
+
revision: z.ZodNumber;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
revision: number;
|
|
164
|
+
productionTaskIds: number[];
|
|
165
|
+
}, {
|
|
166
|
+
revision: number;
|
|
167
|
+
productionTaskIds: number[];
|
|
168
|
+
}>;
|
|
169
|
+
export type ProductionTaskOrderRecalculationJobZodType = z.infer<typeof ProductionTaskOrderRecalculationJobZod>;
|
|
170
|
+
export declare const ProductionTaskOrderStateZod: z.ZodObject<{
|
|
171
|
+
revision: z.ZodNumber;
|
|
172
|
+
recalculatedRevision: z.ZodNumber;
|
|
173
|
+
pendingProductionTaskIds: z.ZodArray<z.ZodNumber, "many">;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
revision: number;
|
|
176
|
+
recalculatedRevision: number;
|
|
177
|
+
pendingProductionTaskIds: number[];
|
|
178
|
+
}, {
|
|
179
|
+
revision: number;
|
|
180
|
+
recalculatedRevision: number;
|
|
181
|
+
pendingProductionTaskIds: number[];
|
|
182
|
+
}>;
|
|
183
|
+
export type ProductionTaskOrderStateZodType = z.infer<typeof ProductionTaskOrderStateZod>;
|
|
184
|
+
export declare const ReorderProductionSubtasksDtoZod: z.ZodObject<{
|
|
185
|
+
childProductionTaskIds: z.ZodArray<z.ZodNumber, "many">;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
childProductionTaskIds: number[];
|
|
188
|
+
}, {
|
|
189
|
+
childProductionTaskIds: number[];
|
|
190
|
+
}>;
|
|
191
|
+
export type ReorderProductionSubtasksDtoZodType = z.infer<typeof ReorderProductionSubtasksDtoZod>;
|
|
192
|
+
export declare const ProductionTaskSubtaskOrderChangeZod: z.ZodObject<{
|
|
193
|
+
childProductionTaskIds: z.ZodArray<z.ZodNumber, "many">;
|
|
194
|
+
} & {
|
|
195
|
+
parentProductionTaskId: z.ZodNumber;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
parentProductionTaskId: number;
|
|
198
|
+
childProductionTaskIds: number[];
|
|
199
|
+
}, {
|
|
200
|
+
parentProductionTaskId: number;
|
|
201
|
+
childProductionTaskIds: number[];
|
|
202
|
+
}>;
|
|
203
|
+
export type ProductionTaskSubtaskOrderChangeZodType = z.infer<typeof ProductionTaskSubtaskOrderChangeZod>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductionTaskSubtaskOrderChangeZod = exports.ReorderProductionSubtasksDtoZod = exports.ProductionTaskOrderStateZod = exports.ProductionTaskOrderRecalculationJobZod = exports.ReorderProductionTasksResponseZod = exports.ReorderProductionTasksDtoZod = exports.ProductionTaskOrderPlacementZod = exports.SplitProductionTaskDtoZod = exports.SplitProductionTaskPositionDtoZod = exports.SplitProductionTaskOperationAssignmentDtoZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SplitProductionTaskOperationAssignmentDtoZod = zod_1.z.object({
|
|
6
|
+
operationPositionId: zod_1.z.coerce.number().int(),
|
|
7
|
+
userId: zod_1.z.coerce.number().int(),
|
|
8
|
+
equipmentId: zod_1.z.coerce.number().int().nullish()
|
|
9
|
+
});
|
|
10
|
+
exports.SplitProductionTaskPositionDtoZod = zod_1.z.object({
|
|
11
|
+
productionOperationPosId: zod_1.z.coerce.number().int(),
|
|
12
|
+
quantity: zod_1.z.coerce.number().int(),
|
|
13
|
+
operationAssignments: zod_1.z
|
|
14
|
+
.array(exports.SplitProductionTaskOperationAssignmentDtoZod)
|
|
15
|
+
.default([])
|
|
16
|
+
});
|
|
17
|
+
exports.SplitProductionTaskDtoZod = zod_1.z.object({
|
|
18
|
+
positions: zod_1.z
|
|
19
|
+
.array(exports.SplitProductionTaskPositionDtoZod)
|
|
20
|
+
.length(1, 'За один раз можно декомпозировать только одну сущность ПЗ')
|
|
21
|
+
.superRefine((positions, ctx) => {
|
|
22
|
+
const positionIds = positions.map(position => position.productionOperationPosId);
|
|
23
|
+
if (new Set(positionIds).size !== positionIds.length) {
|
|
24
|
+
ctx.addIssue({
|
|
25
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
26
|
+
message: 'Позиции ПЗ не должны повторяться'
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
positions.forEach((position, positionIndex) => {
|
|
30
|
+
const operationPositionIds = position.operationAssignments.map(assignment => assignment.operationPositionId);
|
|
31
|
+
if (new Set(operationPositionIds).size !== operationPositionIds.length) {
|
|
32
|
+
ctx.addIssue({
|
|
33
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
34
|
+
message: 'Назначения операций не должны повторяться',
|
|
35
|
+
path: [positionIndex, 'operationAssignments']
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
exports.ProductionTaskOrderPlacementZod = zod_1.z.enum(['before', 'after']);
|
|
42
|
+
exports.ReorderProductionTasksDtoZod = zod_1.z
|
|
43
|
+
.object({
|
|
44
|
+
sourceProductionTaskId: zod_1.z.number().int(),
|
|
45
|
+
targetProductionTaskId: zod_1.z.number().int(),
|
|
46
|
+
placement: exports.ProductionTaskOrderPlacementZod
|
|
47
|
+
})
|
|
48
|
+
.refine(value => value.sourceProductionTaskId !== value.targetProductionTaskId, {
|
|
49
|
+
message: 'Перемещаемое и целевое ПЗ должны отличаться',
|
|
50
|
+
path: ['targetProductionTaskId']
|
|
51
|
+
});
|
|
52
|
+
exports.ReorderProductionTasksResponseZod = zod_1.z.object({
|
|
53
|
+
sourceProductionTaskId: zod_1.z.number().int(),
|
|
54
|
+
targetProductionTaskId: zod_1.z.number().int(),
|
|
55
|
+
globalOrderIndex: zod_1.z.number().int()
|
|
56
|
+
});
|
|
57
|
+
exports.ProductionTaskOrderRecalculationJobZod = zod_1.z.object({
|
|
58
|
+
productionTaskIds: zod_1.z.array(zod_1.z.number().int()).min(1),
|
|
59
|
+
revision: zod_1.z.number().int()
|
|
60
|
+
});
|
|
61
|
+
exports.ProductionTaskOrderStateZod = zod_1.z.object({
|
|
62
|
+
revision: zod_1.z.coerce.number().int(),
|
|
63
|
+
recalculatedRevision: zod_1.z.coerce.number().int(),
|
|
64
|
+
pendingProductionTaskIds: zod_1.z.array(zod_1.z.coerce.number().int())
|
|
65
|
+
});
|
|
66
|
+
exports.ReorderProductionSubtasksDtoZod = zod_1.z.object({
|
|
67
|
+
childProductionTaskIds: zod_1.z.array(zod_1.z.number().int())
|
|
68
|
+
});
|
|
69
|
+
exports.ProductionTaskSubtaskOrderChangeZod = exports.ReorderProductionSubtasksDtoZod.extend({
|
|
70
|
+
parentProductionTaskId: zod_1.z.number().int()
|
|
71
|
+
});
|
|
@@ -5,11 +5,11 @@ export declare const UpdateProductionTaskDtoZod: z.ZodObject<{
|
|
|
5
5
|
dueDate: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
description: string | null;
|
|
8
|
-
dueDate: string;
|
|
9
8
|
productionTaskId: number;
|
|
10
|
-
}, {
|
|
11
9
|
dueDate: string;
|
|
10
|
+
}, {
|
|
12
11
|
productionTaskId: number;
|
|
12
|
+
dueDate: string;
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type UpdateProductionTaskDtoZodType = z.infer<typeof UpdateProductionTaskDtoZod>;
|
|
@@ -17,21 +17,21 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
17
17
|
typeOperationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
subdivision: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../user").EnumSubdivision>>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
entityType: StockOrderType;
|
|
20
21
|
range: {
|
|
21
22
|
start: string;
|
|
22
23
|
end: string;
|
|
23
24
|
};
|
|
24
|
-
entityType: StockOrderType;
|
|
25
25
|
userId?: number | null | undefined;
|
|
26
26
|
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
27
27
|
equipmentId?: number | null | undefined;
|
|
28
28
|
typeOperationId?: number | null | undefined;
|
|
29
29
|
}, {
|
|
30
|
+
entityType: StockOrderType;
|
|
30
31
|
range: {
|
|
31
32
|
start: string;
|
|
32
33
|
end: string;
|
|
33
34
|
};
|
|
34
|
-
entityType: StockOrderType;
|
|
35
35
|
userId?: number | null | undefined;
|
|
36
36
|
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
37
37
|
equipmentId?: number | null | undefined;
|
|
@@ -11,3 +11,13 @@ export declare enum ProductionTaskDeficitFilterEnum {
|
|
|
11
11
|
shipmentDeficit = "shipmentDeficit",
|
|
12
12
|
assembleDeficit = "assembleDeficit"
|
|
13
13
|
}
|
|
14
|
+
export declare enum ProductionTaskPlanSortField {
|
|
15
|
+
calculatedCreateTime = "calculatedCreateTime",
|
|
16
|
+
ordered = "ordered",
|
|
17
|
+
orderedByProduction = "orderedByProduction",
|
|
18
|
+
maxAvailable = "maxAvailable",
|
|
19
|
+
deficit = "deficit",
|
|
20
|
+
shipmentDeficit = "shipmentDeficit",
|
|
21
|
+
productionTaskDeficit = "productionTaskDeficit",
|
|
22
|
+
globalProductionTaskDeficit = "globalProductionTaskDeficit"
|
|
23
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductionTaskDeficitFilterEnum = exports.OrderTypeEnum = exports.StatusProductionTaskEnum = void 0;
|
|
3
|
+
exports.ProductionTaskPlanSortField = exports.ProductionTaskDeficitFilterEnum = exports.OrderTypeEnum = exports.StatusProductionTaskEnum = void 0;
|
|
4
4
|
var StatusProductionTaskEnum;
|
|
5
5
|
(function (StatusProductionTaskEnum) {
|
|
6
6
|
StatusProductionTaskEnum["active"] = "active";
|
|
@@ -17,3 +17,14 @@ var ProductionTaskDeficitFilterEnum;
|
|
|
17
17
|
ProductionTaskDeficitFilterEnum["shipmentDeficit"] = "shipmentDeficit";
|
|
18
18
|
ProductionTaskDeficitFilterEnum["assembleDeficit"] = "assembleDeficit";
|
|
19
19
|
})(ProductionTaskDeficitFilterEnum || (exports.ProductionTaskDeficitFilterEnum = ProductionTaskDeficitFilterEnum = {}));
|
|
20
|
+
var ProductionTaskPlanSortField;
|
|
21
|
+
(function (ProductionTaskPlanSortField) {
|
|
22
|
+
ProductionTaskPlanSortField["calculatedCreateTime"] = "calculatedCreateTime";
|
|
23
|
+
ProductionTaskPlanSortField["ordered"] = "ordered";
|
|
24
|
+
ProductionTaskPlanSortField["orderedByProduction"] = "orderedByProduction";
|
|
25
|
+
ProductionTaskPlanSortField["maxAvailable"] = "maxAvailable";
|
|
26
|
+
ProductionTaskPlanSortField["deficit"] = "deficit";
|
|
27
|
+
ProductionTaskPlanSortField["shipmentDeficit"] = "shipmentDeficit";
|
|
28
|
+
ProductionTaskPlanSortField["productionTaskDeficit"] = "productionTaskDeficit";
|
|
29
|
+
ProductionTaskPlanSortField["globalProductionTaskDeficit"] = "globalProductionTaskDeficit";
|
|
30
|
+
})(ProductionTaskPlanSortField || (exports.ProductionTaskPlanSortField = ProductionTaskPlanSortField = {}));
|
|
@@ -10,6 +10,7 @@ export * from './dto/get-by-users.dto';
|
|
|
10
10
|
export * from './dto/get-production-task-by-user.dto';
|
|
11
11
|
export * from './dto/get-production-task-by-equipment.dto';
|
|
12
12
|
export * from './dto/get-production-task.dto';
|
|
13
|
+
export * from './dto/get-production-task-display-numbers.dto';
|
|
13
14
|
export * from './dto/get-result-works.dto';
|
|
14
15
|
export * from './dto/get-taks-by-entity.dto';
|
|
15
16
|
export * from './dto/get-taks-by-toperation.dto';
|
|
@@ -34,3 +35,5 @@ export * from './dto/get-production-task-by-operation.dto';
|
|
|
34
35
|
export * from './schemas/production-taks-start-time-detal.schema';
|
|
35
36
|
export * from './dto/set-start-time-detal.dto';
|
|
36
37
|
export * from './dto/get-tasks-by-operation.dto';
|
|
38
|
+
export * from './dto/split-production-task.dto';
|
|
39
|
+
export * from './schemas/production-task-subtask.schema';
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./dto/get-by-users.dto"), exports);
|
|
|
26
26
|
__exportStar(require("./dto/get-production-task-by-user.dto"), exports);
|
|
27
27
|
__exportStar(require("./dto/get-production-task-by-equipment.dto"), exports);
|
|
28
28
|
__exportStar(require("./dto/get-production-task.dto"), exports);
|
|
29
|
+
__exportStar(require("./dto/get-production-task-display-numbers.dto"), exports);
|
|
29
30
|
__exportStar(require("./dto/get-result-works.dto"), exports);
|
|
30
31
|
__exportStar(require("./dto/get-taks-by-entity.dto"), exports);
|
|
31
32
|
__exportStar(require("./dto/get-taks-by-toperation.dto"), exports);
|
|
@@ -50,3 +51,5 @@ __exportStar(require("./dto/get-production-task-by-operation.dto"), exports);
|
|
|
50
51
|
__exportStar(require("./schemas/production-taks-start-time-detal.schema"), exports);
|
|
51
52
|
__exportStar(require("./dto/set-start-time-detal.dto"), exports);
|
|
52
53
|
__exportStar(require("./dto/get-tasks-by-operation.dto"), exports);
|
|
54
|
+
__exportStar(require("./dto/split-production-task.dto"), exports);
|
|
55
|
+
__exportStar(require("./schemas/production-task-subtask.schema"), exports);
|
|
@@ -274,6 +274,7 @@ export interface IGetByEquipment {
|
|
|
274
274
|
detalIdx: number;
|
|
275
275
|
calculatedCreateTime: Date;
|
|
276
276
|
remainingByProductionTask: number;
|
|
277
|
+
transferableQuantity: number;
|
|
277
278
|
calculateNeedsTime: number;
|
|
278
279
|
mainShipment: ModelShipments | null;
|
|
279
280
|
totalProductionTAskOrdered: number;
|
|
@@ -289,6 +290,7 @@ export interface IGetByEquipment {
|
|
|
289
290
|
entityCalculatedCreateTime: Date | null;
|
|
290
291
|
operationPosType: StockOrderType;
|
|
291
292
|
productionTaskId: number;
|
|
293
|
+
parentProductionTaskId: number | null;
|
|
292
294
|
productionTaskDueData: Date;
|
|
293
295
|
}
|
|
294
296
|
export interface IGetByUser {
|
|
@@ -321,6 +323,7 @@ export interface IGetByUser {
|
|
|
321
323
|
prevOperation: ModelOperation | null;
|
|
322
324
|
nextOperation: ModelOperation | null;
|
|
323
325
|
remainingByProductionTask: number;
|
|
326
|
+
transferableQuantity: number;
|
|
324
327
|
myQuantity: number;
|
|
325
328
|
timeToPrepare: number;
|
|
326
329
|
operationQuantity: number;
|
|
@@ -330,6 +333,7 @@ export interface IGetByUser {
|
|
|
330
333
|
startTime: Date;
|
|
331
334
|
operationPosType: StockOrderType;
|
|
332
335
|
productionTaskId: number;
|
|
336
|
+
parentProductionTaskId: number | null;
|
|
333
337
|
productionTaskDueData: Date;
|
|
334
338
|
}
|
|
335
339
|
export interface IGetActualRelative {
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { RelativesProductionTasksType } from '../../utils/types/types';
|
|
2
2
|
import { ModelOperationPosition } from '../schemas/operation-positions.schema';
|
|
3
3
|
import { ModelProductionOperationPos } from '../schemas/production-operation-pos.schema';
|
|
4
|
+
/**
|
|
5
|
+
* Возвращает пользовательский номер производственного задания.
|
|
6
|
+
* @param productionTaskId - Внутренний идентификатор ПЗ.
|
|
7
|
+
* @param parentProductionTaskId - Идентификатор родительского ПЗ.
|
|
8
|
+
* @param subtaskNumber - Неизменяемый порядковый номер декомпозированного ПЗ в семье.
|
|
9
|
+
* @param hasSubtasks - Признак наличия декомпозированных ПЗ у корневого задания.
|
|
10
|
+
* @returns Номер обычного, родительского либо декомпозированного ПЗ.
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatProductionTaskDisplayNumber: (productionTaskId: number, parentProductionTaskId: number | null | undefined, subtaskNumber: number | null | undefined, hasSubtasks?: boolean) => string;
|
|
4
13
|
export declare const findMinGlobalIndex: (operationPosItems: ModelOperationPosition[]) => number;
|
|
5
14
|
export declare const findMinStartTime: (allOperationPositions: ModelOperationPosition[]) => Date | null;
|
|
6
15
|
export declare const getActualProductionOperationPos: (operationPosItems: ModelOperationPosition[]) => ModelOperationPosition | null;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sortProductionOperationPoses = exports.minStartTimeFromProductionPos = exports.getActualProductionOperationPos = exports.findMinStartTime = exports.findMinGlobalIndex = void 0;
|
|
3
|
+
exports.sortProductionOperationPoses = exports.minStartTimeFromProductionPos = exports.getActualProductionOperationPos = exports.findMinStartTime = exports.findMinGlobalIndex = exports.formatProductionTaskDisplayNumber = void 0;
|
|
4
4
|
const lodash_1 = require("lodash");
|
|
5
|
+
/**
|
|
6
|
+
* Возвращает пользовательский номер производственного задания.
|
|
7
|
+
* @param productionTaskId - Внутренний идентификатор ПЗ.
|
|
8
|
+
* @param parentProductionTaskId - Идентификатор родительского ПЗ.
|
|
9
|
+
* @param subtaskNumber - Неизменяемый порядковый номер декомпозированного ПЗ в семье.
|
|
10
|
+
* @param hasSubtasks - Признак наличия декомпозированных ПЗ у корневого задания.
|
|
11
|
+
* @returns Номер обычного, родительского либо декомпозированного ПЗ.
|
|
12
|
+
*/
|
|
13
|
+
const formatProductionTaskDisplayNumber = (productionTaskId, parentProductionTaskId, subtaskNumber, hasSubtasks = false) => {
|
|
14
|
+
if (parentProductionTaskId == null) {
|
|
15
|
+
return hasSubtasks ? `${productionTaskId}.0` : String(productionTaskId);
|
|
16
|
+
}
|
|
17
|
+
return `${parentProductionTaskId}.${Number(subtaskNumber !== null && subtaskNumber !== void 0 ? subtaskNumber : 1)}`;
|
|
18
|
+
};
|
|
19
|
+
exports.formatProductionTaskDisplayNumber = formatProductionTaskDisplayNumber;
|
|
5
20
|
const findMinGlobalIndex = (operationPosItems) => {
|
|
6
21
|
if (!(operationPosItems === null || operationPosItems === void 0 ? void 0 : operationPosItems.length))
|
|
7
22
|
return 0;
|
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const OrdersSummaryProductionTaskZod: z.ZodObject<{
|
|
3
3
|
productionTaskId: z.ZodNumber;
|
|
4
|
+
parentProductionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
+
subtaskNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
subtaskOrder: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
globalOrderIndex: z.ZodNumber;
|
|
8
|
+
familyDueDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
|
4
9
|
quantity: z.ZodNumber;
|
|
5
10
|
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
6
11
|
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
7
12
|
}, "strip", z.ZodTypeAny, {
|
|
8
13
|
quantity: number;
|
|
9
14
|
productionTaskId: number;
|
|
15
|
+
globalOrderIndex: number;
|
|
10
16
|
planReadyDate: string | Date | null;
|
|
11
17
|
requiredReadyDate: string | Date | null;
|
|
18
|
+
parentProductionTaskId?: number | null | undefined;
|
|
19
|
+
subtaskNumber?: number | null | undefined;
|
|
20
|
+
subtaskOrder?: number | undefined;
|
|
21
|
+
familyDueDate?: string | Date | null | undefined;
|
|
12
22
|
}, {
|
|
13
23
|
quantity: number;
|
|
14
24
|
productionTaskId: number;
|
|
25
|
+
globalOrderIndex: number;
|
|
15
26
|
planReadyDate: string | Date | null;
|
|
16
27
|
requiredReadyDate: string | Date | null;
|
|
28
|
+
parentProductionTaskId?: number | null | undefined;
|
|
29
|
+
subtaskNumber?: number | null | undefined;
|
|
30
|
+
subtaskOrder?: number | undefined;
|
|
31
|
+
familyDueDate?: string | Date | null | undefined;
|
|
17
32
|
}>;
|
|
18
33
|
export declare const OrdersSummaryShipmentZod: z.ZodObject<{
|
|
19
34
|
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -92,8 +107,8 @@ export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
|
92
107
|
demandQuantity: z.ZodNumber;
|
|
93
108
|
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
94
109
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
shipmentId: number | null;
|
|
96
110
|
productionTaskId: number | null;
|
|
111
|
+
shipmentId: number | null;
|
|
97
112
|
planReadyDate: string | Date | null;
|
|
98
113
|
requiredReadyDate: string | Date | null;
|
|
99
114
|
parentPTNumber: number | null;
|
|
@@ -109,8 +124,8 @@ export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
|
109
124
|
shipmentNeed: number | null;
|
|
110
125
|
demandQuantity: number;
|
|
111
126
|
}, {
|
|
112
|
-
shipmentId: number | null;
|
|
113
127
|
productionTaskId: number | null;
|
|
128
|
+
shipmentId: number | null;
|
|
114
129
|
planReadyDate: string | Date | null;
|
|
115
130
|
requiredReadyDate: string | Date | null;
|
|
116
131
|
parentPTNumber: number | null;
|
|
@@ -128,6 +143,10 @@ export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
|
128
143
|
}>;
|
|
129
144
|
export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
130
145
|
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
146
|
+
parentProductionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
147
|
+
subtaskNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
148
|
+
subtaskOrder: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
globalOrderIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
131
150
|
quantityByProductionTask: z.ZodNumber;
|
|
132
151
|
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
133
152
|
positionNumber: z.ZodNullable<z.ZodNumber>;
|
|
@@ -156,8 +175,8 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
156
175
|
deficit: number;
|
|
157
176
|
warehouseReadinessDate: string | Date | null;
|
|
158
177
|
stockOrderNumber: string | null;
|
|
159
|
-
shipmentId: number | null;
|
|
160
178
|
productionTaskId: number | null;
|
|
179
|
+
shipmentId: number | null;
|
|
161
180
|
planReadyDate: string | Date | null;
|
|
162
181
|
parentPTNumber: number | null;
|
|
163
182
|
parentPTQuantity: number | null;
|
|
@@ -178,12 +197,16 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
178
197
|
stockReadinessDate: string | Date | null;
|
|
179
198
|
deficitWithPlannedIncoming: number;
|
|
180
199
|
plannedIncomingFinal: number;
|
|
200
|
+
parentProductionTaskId?: number | null | undefined;
|
|
201
|
+
subtaskNumber?: number | null | undefined;
|
|
202
|
+
subtaskOrder?: number | undefined;
|
|
203
|
+
globalOrderIndex?: number | null | undefined;
|
|
181
204
|
}, {
|
|
182
205
|
deficit: number;
|
|
183
206
|
warehouseReadinessDate: string | Date | null;
|
|
184
207
|
stockOrderNumber: string | null;
|
|
185
|
-
shipmentId: number | null;
|
|
186
208
|
productionTaskId: number | null;
|
|
209
|
+
shipmentId: number | null;
|
|
187
210
|
planReadyDate: string | Date | null;
|
|
188
211
|
parentPTNumber: number | null;
|
|
189
212
|
parentPTQuantity: number | null;
|
|
@@ -204,10 +227,18 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
204
227
|
stockReadinessDate: string | Date | null;
|
|
205
228
|
deficitWithPlannedIncoming: number;
|
|
206
229
|
plannedIncomingFinal: number;
|
|
230
|
+
parentProductionTaskId?: number | null | undefined;
|
|
231
|
+
subtaskNumber?: number | null | undefined;
|
|
232
|
+
subtaskOrder?: number | undefined;
|
|
233
|
+
globalOrderIndex?: number | null | undefined;
|
|
207
234
|
}>;
|
|
208
235
|
export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
209
236
|
rows: z.ZodArray<z.ZodObject<{
|
|
210
237
|
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
238
|
+
parentProductionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
239
|
+
subtaskNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
240
|
+
subtaskOrder: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
globalOrderIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
211
242
|
quantityByProductionTask: z.ZodNumber;
|
|
212
243
|
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
213
244
|
positionNumber: z.ZodNullable<z.ZodNumber>;
|
|
@@ -236,8 +267,8 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
236
267
|
deficit: number;
|
|
237
268
|
warehouseReadinessDate: string | Date | null;
|
|
238
269
|
stockOrderNumber: string | null;
|
|
239
|
-
shipmentId: number | null;
|
|
240
270
|
productionTaskId: number | null;
|
|
271
|
+
shipmentId: number | null;
|
|
241
272
|
planReadyDate: string | Date | null;
|
|
242
273
|
parentPTNumber: number | null;
|
|
243
274
|
parentPTQuantity: number | null;
|
|
@@ -258,12 +289,16 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
258
289
|
stockReadinessDate: string | Date | null;
|
|
259
290
|
deficitWithPlannedIncoming: number;
|
|
260
291
|
plannedIncomingFinal: number;
|
|
292
|
+
parentProductionTaskId?: number | null | undefined;
|
|
293
|
+
subtaskNumber?: number | null | undefined;
|
|
294
|
+
subtaskOrder?: number | undefined;
|
|
295
|
+
globalOrderIndex?: number | null | undefined;
|
|
261
296
|
}, {
|
|
262
297
|
deficit: number;
|
|
263
298
|
warehouseReadinessDate: string | Date | null;
|
|
264
299
|
stockOrderNumber: string | null;
|
|
265
|
-
shipmentId: number | null;
|
|
266
300
|
productionTaskId: number | null;
|
|
301
|
+
shipmentId: number | null;
|
|
267
302
|
planReadyDate: string | Date | null;
|
|
268
303
|
parentPTNumber: number | null;
|
|
269
304
|
parentPTQuantity: number | null;
|
|
@@ -284,6 +319,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
284
319
|
stockReadinessDate: string | Date | null;
|
|
285
320
|
deficitWithPlannedIncoming: number;
|
|
286
321
|
plannedIncomingFinal: number;
|
|
322
|
+
parentProductionTaskId?: number | null | undefined;
|
|
323
|
+
subtaskNumber?: number | null | undefined;
|
|
324
|
+
subtaskOrder?: number | undefined;
|
|
325
|
+
globalOrderIndex?: number | null | undefined;
|
|
287
326
|
}>, "many">;
|
|
288
327
|
totalOrderNeed: z.ZodNumber;
|
|
289
328
|
totalQuantityByStockOrder: z.ZodNumber;
|
|
@@ -295,8 +334,8 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
295
334
|
deficit: number;
|
|
296
335
|
warehouseReadinessDate: string | Date | null;
|
|
297
336
|
stockOrderNumber: string | null;
|
|
298
|
-
shipmentId: number | null;
|
|
299
337
|
productionTaskId: number | null;
|
|
338
|
+
shipmentId: number | null;
|
|
300
339
|
planReadyDate: string | Date | null;
|
|
301
340
|
parentPTNumber: number | null;
|
|
302
341
|
parentPTQuantity: number | null;
|
|
@@ -317,6 +356,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
317
356
|
stockReadinessDate: string | Date | null;
|
|
318
357
|
deficitWithPlannedIncoming: number;
|
|
319
358
|
plannedIncomingFinal: number;
|
|
359
|
+
parentProductionTaskId?: number | null | undefined;
|
|
360
|
+
subtaskNumber?: number | null | undefined;
|
|
361
|
+
subtaskOrder?: number | undefined;
|
|
362
|
+
globalOrderIndex?: number | null | undefined;
|
|
320
363
|
}[];
|
|
321
364
|
totalOrderNeed: number;
|
|
322
365
|
totalQuantityByStockOrder: number;
|
|
@@ -328,8 +371,8 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
328
371
|
deficit: number;
|
|
329
372
|
warehouseReadinessDate: string | Date | null;
|
|
330
373
|
stockOrderNumber: string | null;
|
|
331
|
-
shipmentId: number | null;
|
|
332
374
|
productionTaskId: number | null;
|
|
375
|
+
shipmentId: number | null;
|
|
333
376
|
planReadyDate: string | Date | null;
|
|
334
377
|
parentPTNumber: number | null;
|
|
335
378
|
parentPTQuantity: number | null;
|
|
@@ -350,6 +393,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
350
393
|
stockReadinessDate: string | Date | null;
|
|
351
394
|
deficitWithPlannedIncoming: number;
|
|
352
395
|
plannedIncomingFinal: number;
|
|
396
|
+
parentProductionTaskId?: number | null | undefined;
|
|
397
|
+
subtaskNumber?: number | null | undefined;
|
|
398
|
+
subtaskOrder?: number | undefined;
|
|
399
|
+
globalOrderIndex?: number | null | undefined;
|
|
353
400
|
}[];
|
|
354
401
|
totalOrderNeed: number;
|
|
355
402
|
totalQuantityByStockOrder: number;
|
|
@@ -5,6 +5,11 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const OrdersSummaryDateZod = zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).nullable();
|
|
6
6
|
exports.OrdersSummaryProductionTaskZod = zod_1.z.object({
|
|
7
7
|
productionTaskId: zod_1.z.number(),
|
|
8
|
+
parentProductionTaskId: zod_1.z.number().nullish(),
|
|
9
|
+
subtaskNumber: zod_1.z.number().int().min(1).nullish(),
|
|
10
|
+
subtaskOrder: zod_1.z.number().int().nonnegative().optional(),
|
|
11
|
+
globalOrderIndex: zod_1.z.number().int(),
|
|
12
|
+
familyDueDate: OrdersSummaryDateZod.optional(),
|
|
8
13
|
quantity: zod_1.z.number(),
|
|
9
14
|
planReadyDate: OrdersSummaryDateZod,
|
|
10
15
|
requiredReadyDate: OrdersSummaryDateZod
|
|
@@ -50,6 +55,10 @@ exports.OrdersSummaryDemandRowZod = zod_1.z.object({
|
|
|
50
55
|
});
|
|
51
56
|
exports.OrdersSummaryByEntityRowZod = zod_1.z.object({
|
|
52
57
|
productionTaskId: zod_1.z.number().nullable(),
|
|
58
|
+
parentProductionTaskId: zod_1.z.number().nullish(),
|
|
59
|
+
subtaskNumber: zod_1.z.number().int().min(1).nullish(),
|
|
60
|
+
subtaskOrder: zod_1.z.number().int().nonnegative().optional(),
|
|
61
|
+
globalOrderIndex: zod_1.z.number().int().nullish(),
|
|
53
62
|
quantityByProductionTask: zod_1.z.number(),
|
|
54
63
|
planReadyDate: OrdersSummaryDateZod,
|
|
55
64
|
positionNumber: zod_1.z.number().nullable(),
|