@pksep/zod-shared 0.0.554 → 0.0.555
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/material/utils/workpiece-mass.js +13 -6
- package/dist/material/workpiece-mass.d.ts +45 -0
- package/dist/material/workpiece-mass.js +400 -0
- package/dist/production-tasks/index.d.ts +1 -0
- package/dist/production-tasks/index.js +1 -0
- package/dist/production-tasks/interfaces/production-tasks.d.ts +0 -3
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +307 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +74 -0
- package/dist/utils/interface/status-flags.interface.d.ts +4 -0
- package/dist/utils/tables-config/enum.d.ts +1 -2
- package/dist/utils/tables-config/enum.js +0 -2
- package/dist/utils/tables-config/tables-array.js +0 -3
- 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/index.js +0 -21
- 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/index.js +0 -21
- package/dist/library/interfaces/interface.d.ts +0 -3
- package/dist/library/interfaces/interface.js +0 -2
- 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/planning/index.d.ts +0 -1
- package/dist/planning/index.js +0 -17
- package/dist/planning/types/planning.d.ts +0 -187
- package/dist/planning/types/planning.js +0 -25
- 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/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/utils/interface/mat.interface.js +0 -2
- /package/dist/{issue/interfaces/interface.js → utils/interface/status-flags.interface.js} +0 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OrdersSummaryProductionTaskZod: z.ZodObject<{
|
|
3
|
+
productionTaskId: z.ZodNumber;
|
|
4
|
+
quantity: z.ZodNumber;
|
|
5
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
6
|
+
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
quantity: number;
|
|
9
|
+
productionTaskId: number;
|
|
10
|
+
planReadyDate: string | Date | null;
|
|
11
|
+
requiredReadyDate: string | Date | null;
|
|
12
|
+
}, {
|
|
13
|
+
quantity: number;
|
|
14
|
+
productionTaskId: number;
|
|
15
|
+
planReadyDate: string | Date | null;
|
|
16
|
+
requiredReadyDate: string | Date | null;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const OrdersSummaryShipmentZod: z.ZodObject<{
|
|
19
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
24
|
+
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
25
|
+
quantity: z.ZodNumber;
|
|
26
|
+
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
quantity: number;
|
|
29
|
+
shipmentId: number | null;
|
|
30
|
+
requiredReadyDate: string | Date | null;
|
|
31
|
+
parentPTNumber: number | null;
|
|
32
|
+
parentPTQuantity: number | null;
|
|
33
|
+
parentPTNeed: number | null;
|
|
34
|
+
shipmentNumber: string | null;
|
|
35
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
36
|
+
}, {
|
|
37
|
+
quantity: number;
|
|
38
|
+
shipmentId: number | null;
|
|
39
|
+
requiredReadyDate: string | Date | null;
|
|
40
|
+
parentPTNumber: number | null;
|
|
41
|
+
parentPTQuantity: number | null;
|
|
42
|
+
parentPTNeed: number | null;
|
|
43
|
+
shipmentNumber: string | null;
|
|
44
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const OrdersSummaryStockOrderZod: z.ZodObject<{
|
|
47
|
+
stockOrderItemId: z.ZodNumber;
|
|
48
|
+
stockOrderId: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
stockOrderNumber: z.ZodNullable<z.ZodString>;
|
|
50
|
+
quantity: z.ZodNumber;
|
|
51
|
+
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
52
|
+
remainingQuantity: z.ZodNumber;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
quantity: number;
|
|
55
|
+
warehouseReadinessDate: string | Date | null;
|
|
56
|
+
stockOrderNumber: string | null;
|
|
57
|
+
stockOrderItemId: number;
|
|
58
|
+
stockOrderId: number | null;
|
|
59
|
+
remainingQuantity: number;
|
|
60
|
+
}, {
|
|
61
|
+
quantity: number;
|
|
62
|
+
warehouseReadinessDate: string | Date | null;
|
|
63
|
+
stockOrderNumber: string | null;
|
|
64
|
+
stockOrderItemId: number;
|
|
65
|
+
stockOrderId: number | null;
|
|
66
|
+
remainingQuantity: number;
|
|
67
|
+
}>;
|
|
68
|
+
export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
69
|
+
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
quantityByProductionTask: z.ZodNumber;
|
|
71
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
72
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
74
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
77
|
+
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
78
|
+
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
79
|
+
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
demandQuantity: z.ZodNumber;
|
|
81
|
+
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
shipmentId: number | null;
|
|
84
|
+
productionTaskId: number | null;
|
|
85
|
+
planReadyDate: string | Date | null;
|
|
86
|
+
requiredReadyDate: string | Date | null;
|
|
87
|
+
parentPTNumber: number | null;
|
|
88
|
+
parentPTQuantity: number | null;
|
|
89
|
+
parentPTNeed: number | null;
|
|
90
|
+
shipmentNumber: string | null;
|
|
91
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
92
|
+
quantityByProductionTask: number;
|
|
93
|
+
quantityByShipment: number | null;
|
|
94
|
+
shipmentNeed: number | null;
|
|
95
|
+
demandQuantity: number;
|
|
96
|
+
}, {
|
|
97
|
+
shipmentId: number | null;
|
|
98
|
+
productionTaskId: number | null;
|
|
99
|
+
planReadyDate: string | Date | null;
|
|
100
|
+
requiredReadyDate: string | Date | null;
|
|
101
|
+
parentPTNumber: number | null;
|
|
102
|
+
parentPTQuantity: number | null;
|
|
103
|
+
parentPTNeed: number | null;
|
|
104
|
+
shipmentNumber: string | null;
|
|
105
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
106
|
+
quantityByProductionTask: number;
|
|
107
|
+
quantityByShipment: number | null;
|
|
108
|
+
shipmentNeed: number | null;
|
|
109
|
+
demandQuantity: number;
|
|
110
|
+
}>;
|
|
111
|
+
export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
112
|
+
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
113
|
+
quantityByProductionTask: z.ZodNumber;
|
|
114
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
115
|
+
positionNumber: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
120
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
121
|
+
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
122
|
+
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
123
|
+
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
124
|
+
stockOrderItemId: z.ZodNullable<z.ZodNumber>;
|
|
125
|
+
stockOrderId: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
stockOrderNumber: z.ZodNullable<z.ZodString>;
|
|
127
|
+
quantityByStockOrder: z.ZodNumber;
|
|
128
|
+
stockOrderNeed: z.ZodNumber;
|
|
129
|
+
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
130
|
+
deficitWithPlannedIncoming: z.ZodNumber;
|
|
131
|
+
deficit: z.ZodNumber;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
deficit: number;
|
|
134
|
+
warehouseReadinessDate: string | Date | null;
|
|
135
|
+
stockOrderNumber: string | null;
|
|
136
|
+
shipmentId: number | null;
|
|
137
|
+
productionTaskId: number | null;
|
|
138
|
+
planReadyDate: string | Date | null;
|
|
139
|
+
parentPTNumber: number | null;
|
|
140
|
+
parentPTQuantity: number | null;
|
|
141
|
+
parentPTNeed: number | null;
|
|
142
|
+
shipmentNumber: string | null;
|
|
143
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
144
|
+
stockOrderItemId: number | null;
|
|
145
|
+
stockOrderId: number | null;
|
|
146
|
+
quantityByProductionTask: number;
|
|
147
|
+
quantityByShipment: number | null;
|
|
148
|
+
shipmentNeed: number | null;
|
|
149
|
+
positionNumber: number | null;
|
|
150
|
+
quantityByStockOrder: number;
|
|
151
|
+
stockOrderNeed: number;
|
|
152
|
+
deficitWithPlannedIncoming: number;
|
|
153
|
+
}, {
|
|
154
|
+
deficit: number;
|
|
155
|
+
warehouseReadinessDate: string | Date | null;
|
|
156
|
+
stockOrderNumber: string | null;
|
|
157
|
+
shipmentId: number | null;
|
|
158
|
+
productionTaskId: number | null;
|
|
159
|
+
planReadyDate: string | Date | null;
|
|
160
|
+
parentPTNumber: number | null;
|
|
161
|
+
parentPTQuantity: number | null;
|
|
162
|
+
parentPTNeed: number | null;
|
|
163
|
+
shipmentNumber: string | null;
|
|
164
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
165
|
+
stockOrderItemId: number | null;
|
|
166
|
+
stockOrderId: number | null;
|
|
167
|
+
quantityByProductionTask: number;
|
|
168
|
+
quantityByShipment: number | null;
|
|
169
|
+
shipmentNeed: number | null;
|
|
170
|
+
positionNumber: number | null;
|
|
171
|
+
quantityByStockOrder: number;
|
|
172
|
+
stockOrderNeed: number;
|
|
173
|
+
deficitWithPlannedIncoming: number;
|
|
174
|
+
}>;
|
|
175
|
+
export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
176
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
177
|
+
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
178
|
+
quantityByProductionTask: z.ZodNumber;
|
|
179
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
180
|
+
positionNumber: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
182
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
183
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
184
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
185
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
186
|
+
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
187
|
+
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
188
|
+
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
189
|
+
stockOrderItemId: z.ZodNullable<z.ZodNumber>;
|
|
190
|
+
stockOrderId: z.ZodNullable<z.ZodNumber>;
|
|
191
|
+
stockOrderNumber: z.ZodNullable<z.ZodString>;
|
|
192
|
+
quantityByStockOrder: z.ZodNumber;
|
|
193
|
+
stockOrderNeed: z.ZodNumber;
|
|
194
|
+
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
195
|
+
deficitWithPlannedIncoming: z.ZodNumber;
|
|
196
|
+
deficit: z.ZodNumber;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
deficit: number;
|
|
199
|
+
warehouseReadinessDate: string | Date | null;
|
|
200
|
+
stockOrderNumber: string | null;
|
|
201
|
+
shipmentId: number | null;
|
|
202
|
+
productionTaskId: number | null;
|
|
203
|
+
planReadyDate: string | Date | null;
|
|
204
|
+
parentPTNumber: number | null;
|
|
205
|
+
parentPTQuantity: number | null;
|
|
206
|
+
parentPTNeed: number | null;
|
|
207
|
+
shipmentNumber: string | null;
|
|
208
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
209
|
+
stockOrderItemId: number | null;
|
|
210
|
+
stockOrderId: number | null;
|
|
211
|
+
quantityByProductionTask: number;
|
|
212
|
+
quantityByShipment: number | null;
|
|
213
|
+
shipmentNeed: number | null;
|
|
214
|
+
positionNumber: number | null;
|
|
215
|
+
quantityByStockOrder: number;
|
|
216
|
+
stockOrderNeed: number;
|
|
217
|
+
deficitWithPlannedIncoming: number;
|
|
218
|
+
}, {
|
|
219
|
+
deficit: number;
|
|
220
|
+
warehouseReadinessDate: string | Date | null;
|
|
221
|
+
stockOrderNumber: string | null;
|
|
222
|
+
shipmentId: number | null;
|
|
223
|
+
productionTaskId: number | null;
|
|
224
|
+
planReadyDate: string | Date | null;
|
|
225
|
+
parentPTNumber: number | null;
|
|
226
|
+
parentPTQuantity: number | null;
|
|
227
|
+
parentPTNeed: number | null;
|
|
228
|
+
shipmentNumber: string | null;
|
|
229
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
230
|
+
stockOrderItemId: number | null;
|
|
231
|
+
stockOrderId: number | null;
|
|
232
|
+
quantityByProductionTask: number;
|
|
233
|
+
quantityByShipment: number | null;
|
|
234
|
+
shipmentNeed: number | null;
|
|
235
|
+
positionNumber: number | null;
|
|
236
|
+
quantityByStockOrder: number;
|
|
237
|
+
stockOrderNeed: number;
|
|
238
|
+
deficitWithPlannedIncoming: number;
|
|
239
|
+
}>, "many">;
|
|
240
|
+
totalOrderNeed: z.ZodNumber;
|
|
241
|
+
totalQuantityByStockOrder: z.ZodNumber;
|
|
242
|
+
totalStockOrderNeed: z.ZodNumber;
|
|
243
|
+
totalDeficitWithPlannedIncoming: z.ZodNumber;
|
|
244
|
+
totalDeficit: z.ZodNumber;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
rows: {
|
|
247
|
+
deficit: number;
|
|
248
|
+
warehouseReadinessDate: string | Date | null;
|
|
249
|
+
stockOrderNumber: string | null;
|
|
250
|
+
shipmentId: number | null;
|
|
251
|
+
productionTaskId: number | null;
|
|
252
|
+
planReadyDate: string | Date | null;
|
|
253
|
+
parentPTNumber: number | null;
|
|
254
|
+
parentPTQuantity: number | null;
|
|
255
|
+
parentPTNeed: number | null;
|
|
256
|
+
shipmentNumber: string | null;
|
|
257
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
258
|
+
stockOrderItemId: number | null;
|
|
259
|
+
stockOrderId: number | null;
|
|
260
|
+
quantityByProductionTask: number;
|
|
261
|
+
quantityByShipment: number | null;
|
|
262
|
+
shipmentNeed: number | null;
|
|
263
|
+
positionNumber: number | null;
|
|
264
|
+
quantityByStockOrder: number;
|
|
265
|
+
stockOrderNeed: number;
|
|
266
|
+
deficitWithPlannedIncoming: number;
|
|
267
|
+
}[];
|
|
268
|
+
totalOrderNeed: number;
|
|
269
|
+
totalQuantityByStockOrder: number;
|
|
270
|
+
totalStockOrderNeed: number;
|
|
271
|
+
totalDeficitWithPlannedIncoming: number;
|
|
272
|
+
totalDeficit: number;
|
|
273
|
+
}, {
|
|
274
|
+
rows: {
|
|
275
|
+
deficit: number;
|
|
276
|
+
warehouseReadinessDate: string | Date | null;
|
|
277
|
+
stockOrderNumber: string | null;
|
|
278
|
+
shipmentId: number | null;
|
|
279
|
+
productionTaskId: number | null;
|
|
280
|
+
planReadyDate: string | Date | null;
|
|
281
|
+
parentPTNumber: number | null;
|
|
282
|
+
parentPTQuantity: number | null;
|
|
283
|
+
parentPTNeed: number | null;
|
|
284
|
+
shipmentNumber: string | null;
|
|
285
|
+
shipmentWarehouseReadinessDate: string | Date | null;
|
|
286
|
+
stockOrderItemId: number | null;
|
|
287
|
+
stockOrderId: number | null;
|
|
288
|
+
quantityByProductionTask: number;
|
|
289
|
+
quantityByShipment: number | null;
|
|
290
|
+
shipmentNeed: number | null;
|
|
291
|
+
positionNumber: number | null;
|
|
292
|
+
quantityByStockOrder: number;
|
|
293
|
+
stockOrderNeed: number;
|
|
294
|
+
deficitWithPlannedIncoming: number;
|
|
295
|
+
}[];
|
|
296
|
+
totalOrderNeed: number;
|
|
297
|
+
totalQuantityByStockOrder: number;
|
|
298
|
+
totalStockOrderNeed: number;
|
|
299
|
+
totalDeficitWithPlannedIncoming: number;
|
|
300
|
+
totalDeficit: number;
|
|
301
|
+
}>;
|
|
302
|
+
export type OrdersSummaryProductionTaskZodType = z.infer<typeof OrdersSummaryProductionTaskZod>;
|
|
303
|
+
export type OrdersSummaryShipmentZodType = z.infer<typeof OrdersSummaryShipmentZod>;
|
|
304
|
+
export type OrdersSummaryStockOrderZodType = z.infer<typeof OrdersSummaryStockOrderZod>;
|
|
305
|
+
export type OrdersSummaryDemandRowZodType = z.infer<typeof OrdersSummaryDemandRowZod>;
|
|
306
|
+
export type OrdersSummaryByEntityRowZodType = z.infer<typeof OrdersSummaryByEntityRowZod>;
|
|
307
|
+
export type OrdersSummaryByEntityResponseZodType = z.infer<typeof OrdersSummaryByEntityResponseZod>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrdersSummaryByEntityResponseZod = exports.OrdersSummaryByEntityRowZod = exports.OrdersSummaryDemandRowZod = exports.OrdersSummaryStockOrderZod = exports.OrdersSummaryShipmentZod = exports.OrdersSummaryProductionTaskZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const OrdersSummaryDateZod = zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).nullable();
|
|
6
|
+
exports.OrdersSummaryProductionTaskZod = zod_1.z.object({
|
|
7
|
+
productionTaskId: zod_1.z.number(),
|
|
8
|
+
quantity: zod_1.z.number(),
|
|
9
|
+
planReadyDate: OrdersSummaryDateZod,
|
|
10
|
+
requiredReadyDate: OrdersSummaryDateZod
|
|
11
|
+
});
|
|
12
|
+
exports.OrdersSummaryShipmentZod = zod_1.z.object({
|
|
13
|
+
shipmentId: zod_1.z.number().nullable(),
|
|
14
|
+
parentPTNumber: zod_1.z.number().nullable(),
|
|
15
|
+
parentPTQuantity: zod_1.z.number().nullable(),
|
|
16
|
+
parentPTNeed: zod_1.z.number().nullable(),
|
|
17
|
+
shipmentNumber: zod_1.z.string().nullable(),
|
|
18
|
+
shipmentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
19
|
+
quantity: zod_1.z.number(),
|
|
20
|
+
requiredReadyDate: OrdersSummaryDateZod
|
|
21
|
+
});
|
|
22
|
+
exports.OrdersSummaryStockOrderZod = zod_1.z.object({
|
|
23
|
+
stockOrderItemId: zod_1.z.number(),
|
|
24
|
+
stockOrderId: zod_1.z.number().nullable(),
|
|
25
|
+
stockOrderNumber: zod_1.z.string().nullable(),
|
|
26
|
+
quantity: zod_1.z.number(),
|
|
27
|
+
warehouseReadinessDate: OrdersSummaryDateZod,
|
|
28
|
+
remainingQuantity: zod_1.z.number()
|
|
29
|
+
});
|
|
30
|
+
exports.OrdersSummaryDemandRowZod = zod_1.z.object({
|
|
31
|
+
productionTaskId: zod_1.z.number().nullable(),
|
|
32
|
+
quantityByProductionTask: zod_1.z.number(),
|
|
33
|
+
planReadyDate: OrdersSummaryDateZod,
|
|
34
|
+
shipmentId: zod_1.z.number().nullable(),
|
|
35
|
+
parentPTNumber: zod_1.z.number().nullable(),
|
|
36
|
+
parentPTQuantity: zod_1.z.number().nullable(),
|
|
37
|
+
parentPTNeed: zod_1.z.number().nullable(),
|
|
38
|
+
shipmentNumber: zod_1.z.string().nullable(),
|
|
39
|
+
shipmentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
40
|
+
quantityByShipment: zod_1.z.number().nullable(),
|
|
41
|
+
shipmentNeed: zod_1.z.number().nullable(),
|
|
42
|
+
demandQuantity: zod_1.z.number(),
|
|
43
|
+
requiredReadyDate: OrdersSummaryDateZod
|
|
44
|
+
});
|
|
45
|
+
exports.OrdersSummaryByEntityRowZod = zod_1.z.object({
|
|
46
|
+
productionTaskId: zod_1.z.number().nullable(),
|
|
47
|
+
quantityByProductionTask: zod_1.z.number(),
|
|
48
|
+
planReadyDate: OrdersSummaryDateZod,
|
|
49
|
+
positionNumber: zod_1.z.number().nullable(),
|
|
50
|
+
shipmentId: zod_1.z.number().nullable(),
|
|
51
|
+
parentPTNumber: zod_1.z.number().nullable(),
|
|
52
|
+
parentPTQuantity: zod_1.z.number().nullable(),
|
|
53
|
+
parentPTNeed: zod_1.z.number().nullable(),
|
|
54
|
+
shipmentNumber: zod_1.z.string().nullable(),
|
|
55
|
+
shipmentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
56
|
+
quantityByShipment: zod_1.z.number().nullable(),
|
|
57
|
+
shipmentNeed: zod_1.z.number().nullable(),
|
|
58
|
+
stockOrderItemId: zod_1.z.number().nullable(),
|
|
59
|
+
stockOrderId: zod_1.z.number().nullable(),
|
|
60
|
+
stockOrderNumber: zod_1.z.string().nullable(),
|
|
61
|
+
quantityByStockOrder: zod_1.z.number(),
|
|
62
|
+
stockOrderNeed: zod_1.z.number(),
|
|
63
|
+
warehouseReadinessDate: OrdersSummaryDateZod,
|
|
64
|
+
deficitWithPlannedIncoming: zod_1.z.number(),
|
|
65
|
+
deficit: zod_1.z.number()
|
|
66
|
+
});
|
|
67
|
+
exports.OrdersSummaryByEntityResponseZod = zod_1.z.object({
|
|
68
|
+
rows: zod_1.z.array(exports.OrdersSummaryByEntityRowZod),
|
|
69
|
+
totalOrderNeed: zod_1.z.number(),
|
|
70
|
+
totalQuantityByStockOrder: zod_1.z.number(),
|
|
71
|
+
totalStockOrderNeed: zod_1.z.number(),
|
|
72
|
+
totalDeficitWithPlannedIncoming: zod_1.z.number(),
|
|
73
|
+
totalDeficit: zod_1.z.number()
|
|
74
|
+
});
|
|
@@ -43,6 +43,5 @@ export declare enum tablesEnumConfig {
|
|
|
43
43
|
readyInProcent = "readyInProcent",
|
|
44
44
|
readyToAssembleQuantity = "readyToAssembleQuantity",
|
|
45
45
|
deltaTime = "deltaTime",
|
|
46
|
-
childrenCalculateNeedsTime = "childrenCalculateNeedsTime"
|
|
47
|
-
entityCalculatedCreateTimeColumn = "entityCalculatedCreateTimeColumn"
|
|
46
|
+
childrenCalculateNeedsTime = "childrenCalculateNeedsTime"
|
|
48
47
|
}
|
|
@@ -88,6 +88,4 @@ var tablesEnumConfig;
|
|
|
88
88
|
tablesEnumConfig["deltaTime"] = "deltaTime";
|
|
89
89
|
// Готовность к комплектации
|
|
90
90
|
tablesEnumConfig["childrenCalculateNeedsTime"] = "childrenCalculateNeedsTime";
|
|
91
|
-
// Требуемя дата готовности сущности
|
|
92
|
-
tablesEnumConfig["entityCalculatedCreateTimeColumn"] = "entityCalculatedCreateTimeColumn";
|
|
93
91
|
})(tablesEnumConfig || (exports.tablesEnumConfig = tablesEnumConfig = {}));
|
|
@@ -128,7 +128,6 @@ exports.productionTaskByUserTableConfig = [
|
|
|
128
128
|
enum_1.tablesEnumConfig.designation,
|
|
129
129
|
enum_1.tablesEnumConfig.name,
|
|
130
130
|
enum_1.tablesEnumConfig.deficitChildCreateTime,
|
|
131
|
-
enum_1.tablesEnumConfig.entityCalculatedCreateTimeColumn,
|
|
132
131
|
enum_1.tablesEnumConfig.startTime,
|
|
133
132
|
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
134
133
|
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
@@ -158,7 +157,6 @@ exports.productionTaskByOperationTableConfig = [
|
|
|
158
157
|
enum_1.tablesEnumConfig.name,
|
|
159
158
|
enum_1.tablesEnumConfig.workpieceParameters,
|
|
160
159
|
enum_1.tablesEnumConfig.material,
|
|
161
|
-
enum_1.tablesEnumConfig.entityCalculatedCreateTimeColumn,
|
|
162
160
|
enum_1.tablesEnumConfig.startTime,
|
|
163
161
|
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
164
162
|
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
@@ -189,7 +187,6 @@ exports.productionTaskByEquipmentTableConfig = [
|
|
|
189
187
|
enum_1.tablesEnumConfig.name,
|
|
190
188
|
enum_1.tablesEnumConfig.workpieceParameters,
|
|
191
189
|
enum_1.tablesEnumConfig.material,
|
|
192
|
-
enum_1.tablesEnumConfig.entityCalculatedCreateTimeColumn,
|
|
193
190
|
enum_1.tablesEnumConfig.startTime,
|
|
194
191
|
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
195
192
|
enum_1.tablesEnumConfig.calculateNeedsTime,
|
package/package.json
CHANGED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { StatusIssue } from '../../utils';
|
|
3
|
-
export declare const UpCreateIssueDtoZod: z.ZodObject<{
|
|
4
|
-
description: z.ZodString;
|
|
5
|
-
dateUse: z.ZodString;
|
|
6
|
-
normTime: z.ZodString;
|
|
7
|
-
sourse: z.ZodString;
|
|
8
|
-
srok: z.ZodString;
|
|
9
|
-
status: z.ZodNativeEnum<typeof StatusIssue>;
|
|
10
|
-
controllerList: z.ZodString;
|
|
11
|
-
executorList: z.ZodString;
|
|
12
|
-
izdList: z.ZodString;
|
|
13
|
-
shopNeeds: z.ZodString;
|
|
14
|
-
fileArrModal: z.ZodString;
|
|
15
|
-
srok_control: z.ZodString;
|
|
16
|
-
id: z.ZodNumber;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
status: StatusIssue;
|
|
20
|
-
id: number;
|
|
21
|
-
name: string;
|
|
22
|
-
description: string;
|
|
23
|
-
dateUse: string;
|
|
24
|
-
normTime: string;
|
|
25
|
-
sourse: string;
|
|
26
|
-
srok: string;
|
|
27
|
-
controllerList: string;
|
|
28
|
-
executorList: string;
|
|
29
|
-
srok_control: string;
|
|
30
|
-
izdList: string;
|
|
31
|
-
shopNeeds: string;
|
|
32
|
-
fileArrModal: string;
|
|
33
|
-
}, {
|
|
34
|
-
status: StatusIssue;
|
|
35
|
-
id: number;
|
|
36
|
-
name: string;
|
|
37
|
-
description: string;
|
|
38
|
-
dateUse: string;
|
|
39
|
-
normTime: string;
|
|
40
|
-
sourse: string;
|
|
41
|
-
srok: string;
|
|
42
|
-
controllerList: string;
|
|
43
|
-
executorList: string;
|
|
44
|
-
srok_control: string;
|
|
45
|
-
izdList: string;
|
|
46
|
-
shopNeeds: string;
|
|
47
|
-
fileArrModal: string;
|
|
48
|
-
}>;
|
|
49
|
-
export type UpCreateIssueDtoType = z.infer<typeof UpCreateIssueDtoZod>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpCreateIssueDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
|
-
exports.UpCreateIssueDtoZod = zod_1.z.object({
|
|
7
|
-
description: zod_1.z.string(),
|
|
8
|
-
dateUse: zod_1.z.string(),
|
|
9
|
-
normTime: zod_1.z.string(),
|
|
10
|
-
sourse: zod_1.z.string(),
|
|
11
|
-
srok: zod_1.z.string(),
|
|
12
|
-
status: zod_1.z.nativeEnum(utils_1.StatusIssue),
|
|
13
|
-
controllerList: zod_1.z.string(),
|
|
14
|
-
executorList: zod_1.z.string(),
|
|
15
|
-
izdList: zod_1.z.string(),
|
|
16
|
-
shopNeeds: zod_1.z.string(),
|
|
17
|
-
fileArrModal: zod_1.z.string(),
|
|
18
|
-
srok_control: zod_1.z.string(),
|
|
19
|
-
id: zod_1.z.number(),
|
|
20
|
-
name: zod_1.z.string()
|
|
21
|
-
});
|
package/dist/issue/index.d.ts
DELETED
package/dist/issue/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./schemas/issue.schema"), exports);
|
|
18
|
-
__exportStar(require("./schemas/issue-user.schema"), exports);
|
|
19
|
-
__exportStar(require("./schemas/issue-user-controller.schema"), exports);
|
|
20
|
-
__exportStar(require("./interfaces/interface"), exports);
|
|
21
|
-
__exportStar(require("./dto/up-create-issue.dto"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const issueUserControllerSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
issueId: z.ZodNumber;
|
|
5
|
-
userId: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
userId: number;
|
|
8
|
-
issueId: number;
|
|
9
|
-
id?: number | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
userId: number;
|
|
12
|
-
issueId: number;
|
|
13
|
-
id?: number | null | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export type ModelIssueUserController = z.infer<typeof issueUserControllerSchema>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.issueUserControllerSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.issueUserControllerSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
issueId: zod_1.z.number().int().positive(),
|
|
8
|
-
userId: zod_1.z.number().int().positive()
|
|
9
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const issueUserSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
issueId: z.ZodNumber;
|
|
5
|
-
userId: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
userId: number;
|
|
8
|
-
issueId: number;
|
|
9
|
-
id?: number | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
userId: number;
|
|
12
|
-
issueId: number;
|
|
13
|
-
id?: number | null | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export type ModelissueUser = z.infer<typeof issueUserSchema>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.issueUserSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.issueUserSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
issueId: zod_1.z.number().int().positive(),
|
|
8
|
-
userId: zod_1.z.number().int().positive()
|
|
9
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const IssueSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
dateUse: z.ZodOptional<z.ZodString>;
|
|
7
|
-
normTime: z.ZodOptional<z.ZodString>;
|
|
8
|
-
sourse: z.ZodOptional<z.ZodString>;
|
|
9
|
-
srok: z.ZodOptional<z.ZodString>;
|
|
10
|
-
status: z.ZodOptional<z.ZodString>;
|
|
11
|
-
controllerList: z.ZodOptional<z.ZodString>;
|
|
12
|
-
executorList: z.ZodOptional<z.ZodString>;
|
|
13
|
-
srok_control: z.ZodOptional<z.ZodString>;
|
|
14
|
-
izdList: z.ZodOptional<z.ZodString>;
|
|
15
|
-
shopNeeds: z.ZodOptional<z.ZodString>;
|
|
16
|
-
instans: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
responsibleUserId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
name: string;
|
|
20
|
-
instans: number;
|
|
21
|
-
status?: string | undefined;
|
|
22
|
-
id?: number | null | undefined;
|
|
23
|
-
description?: string | undefined;
|
|
24
|
-
responsibleUserId?: number | null | undefined;
|
|
25
|
-
dateUse?: string | undefined;
|
|
26
|
-
normTime?: string | undefined;
|
|
27
|
-
sourse?: string | undefined;
|
|
28
|
-
srok?: string | undefined;
|
|
29
|
-
controllerList?: string | undefined;
|
|
30
|
-
executorList?: string | undefined;
|
|
31
|
-
srok_control?: string | undefined;
|
|
32
|
-
izdList?: string | undefined;
|
|
33
|
-
shopNeeds?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
name: string;
|
|
36
|
-
status?: string | undefined;
|
|
37
|
-
id?: number | null | undefined;
|
|
38
|
-
description?: string | undefined;
|
|
39
|
-
instans?: number | undefined;
|
|
40
|
-
responsibleUserId?: number | null | undefined;
|
|
41
|
-
dateUse?: string | undefined;
|
|
42
|
-
normTime?: string | undefined;
|
|
43
|
-
sourse?: string | undefined;
|
|
44
|
-
srok?: string | undefined;
|
|
45
|
-
controllerList?: string | undefined;
|
|
46
|
-
executorList?: string | undefined;
|
|
47
|
-
srok_control?: string | undefined;
|
|
48
|
-
izdList?: string | undefined;
|
|
49
|
-
shopNeeds?: string | undefined;
|
|
50
|
-
}>;
|
|
51
|
-
export type ModelIssue = z.infer<typeof IssueSchema>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IssueSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.IssueSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
description: zod_1.z.string().optional(),
|
|
9
|
-
dateUse: zod_1.z.string().optional(),
|
|
10
|
-
normTime: zod_1.z.string().optional(),
|
|
11
|
-
sourse: zod_1.z.string().optional(),
|
|
12
|
-
srok: zod_1.z.string().optional(),
|
|
13
|
-
status: zod_1.z.string().optional(),
|
|
14
|
-
controllerList: zod_1.z.string().optional(),
|
|
15
|
-
executorList: zod_1.z.string().optional(),
|
|
16
|
-
srok_control: zod_1.z.string().optional(),
|
|
17
|
-
izdList: zod_1.z.string().optional(),
|
|
18
|
-
shopNeeds: zod_1.z.string().optional(),
|
|
19
|
-
instans: zod_1.z.number().int().positive().default(1),
|
|
20
|
-
responsibleUserId: zod_1.z.number().nullish()
|
|
21
|
-
});
|