@pksep/zod-shared 0.0.561 → 0.0.563
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/excel-export/excel-export.dto.d.ts +2915 -388
- package/dist/excel-export/excel-export.dto.js +317 -2
- package/package.json +37 -37
- package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.d.ts +0 -130
- package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.js +0 -118
- package/dist/ai-mcp/schemas/ai-mcp-specification.schema.d.ts +0 -123
- package/dist/ai-mcp/schemas/ai-mcp-specification.schema.js +0 -110
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExcelExportResultSchema = exports.ExcelExportJobDataSchema = exports.ExcelExportStatusSchema = exports.ExcelExportCreatedSchema = exports.CreateExcelExportDtoZod = exports.CreateExcelExportRequestSchema = exports.CreateAssemblyStockOrderExcelExportDtoZod = exports.CreateOperationPathExcelExportDtoZod = exports.CreateAssemblyOperationExcelExportDtoZod = exports.CreateMetalloworkingExcelExportDtoZod = exports.CreateAssemblyExcelExportDtoZod = exports.AssemblyStockOrderExcelExportColumnSchema = exports.OperationPathExcelExportColumnSchema = exports.AssemblyOperationExcelExportColumnSchema = exports.MetalloworkingExcelExportColumnSchema = exports.AssemblyExcelExportColumnSchema = exports.AssemblyStockOrderExcelExportColumnDefinitions = exports.OperationPathExcelExportColumnDefinitions = exports.AssemblyOperationExcelExportColumnDefinitions = exports.MetalloworkingExcelExportColumnDefinitions = exports.AssemblyExcelExportColumnDefinitions = exports.ExcelExportColumnDefinitionSchema = exports.ExcelExportStatus = exports.OperationPathExcelExportSourceType = exports.ExcelExportReportType = void 0;
|
|
3
|
+
exports.ExcelExportResultSchema = exports.ExcelExportJobDataSchema = exports.ExcelExportStatusSchema = exports.ExcelExportCreatedSchema = exports.CreateExcelExportDtoZod = exports.CreateExcelExportRequestSchema = exports.CreateMaterialDeficitExcelExportDtoZod = exports.CreateDetalDeficitExcelExportDtoZod = exports.CreateCbedDeficitExcelExportDtoZod = exports.CreateProductDeficitExcelExportDtoZod = exports.CreateAssemblyStockOrderExcelExportDtoZod = exports.CreateOperationPathExcelExportDtoZod = exports.CreateAssemblyOperationExcelExportDtoZod = exports.CreateResultWorkExcelExportDtoZod = exports.CreateMetalloworkingStockOrderExcelExportDtoZod = exports.CreateMetalloworkingComplectationExcelExportDtoZod = exports.CreateMetalloworkingOperationExcelExportDtoZod = exports.CreateMetalloworkingExcelExportDtoZod = exports.CreateAssemblyExcelExportDtoZod = exports.MaterialDeficitExcelExportColumnSchema = exports.DetalDeficitExcelExportColumnSchema = exports.CbedDeficitExcelExportColumnSchema = exports.ProductDeficitExcelExportColumnSchema = exports.AssemblyStockOrderExcelExportColumnSchema = exports.OperationPathExcelExportColumnSchema = exports.AssemblyOperationExcelExportColumnSchema = exports.ResultWorkExcelExportColumnSchema = exports.MetalloworkingStockOrderExcelExportColumnSchema = exports.MetalloworkingComplectationExcelExportColumnSchema = exports.MetalloworkingOperationExcelExportColumnSchema = exports.MetalloworkingExcelExportColumnSchema = exports.AssemblyExcelExportColumnSchema = exports.MaterialDeficitExcelExportColumnDefinitions = exports.DetalDeficitExcelExportColumnDefinitions = exports.CbedDeficitExcelExportColumnDefinitions = exports.ProductDeficitExcelExportColumnDefinitions = exports.AssemblyStockOrderExcelExportColumnDefinitions = exports.OperationPathExcelExportColumnDefinitions = exports.AssemblyOperationExcelExportColumnDefinitions = exports.ResultWorkExcelExportColumnDefinitions = exports.MetalloworkingStockOrderExcelExportColumnDefinitions = exports.MetalloworkingComplectationExcelExportColumnDefinitions = exports.MetalloworkingOperationExcelExportColumnDefinitions = exports.MetalloworkingExcelExportColumnDefinitions = exports.AssemblyExcelExportColumnDefinitions = exports.ExcelExportColumnDefinitionSchema = exports.ExcelExportStatus = exports.OperationPathExcelExportSourceType = exports.ExcelExportReportType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assemble_1 = require("../assemble");
|
|
6
|
+
const cbed_1 = require("../cbed");
|
|
7
|
+
const detal_1 = require("../detal");
|
|
8
|
+
const material_1 = require("../material");
|
|
6
9
|
const metaloworking_1 = require("../metaloworking");
|
|
10
|
+
const marks_1 = require("../marks");
|
|
11
|
+
const product_1 = require("../product");
|
|
7
12
|
var ExcelExportReportType;
|
|
8
13
|
(function (ExcelExportReportType) {
|
|
9
14
|
ExcelExportReportType["assemblyList"] = "assembly.list";
|
|
@@ -11,6 +16,14 @@ var ExcelExportReportType;
|
|
|
11
16
|
ExcelExportReportType["operationPath"] = "production.operation-path";
|
|
12
17
|
ExcelExportReportType["assemblyStockOrderList"] = "assembly.stock-order-list";
|
|
13
18
|
ExcelExportReportType["metalloworkingList"] = "metalloworking.list";
|
|
19
|
+
ExcelExportReportType["metalloworkingOperationList"] = "metalloworking.operation-list";
|
|
20
|
+
ExcelExportReportType["metalloworkingComplectationList"] = "metalloworking.complectation-list";
|
|
21
|
+
ExcelExportReportType["metalloworkingStockOrderList"] = "metalloworking.stock-order-list";
|
|
22
|
+
ExcelExportReportType["resultWorkList"] = "production.result-work-list";
|
|
23
|
+
ExcelExportReportType["productDeficitList"] = "warehouse.product-deficit-list";
|
|
24
|
+
ExcelExportReportType["cbedDeficitList"] = "warehouse.cbed-deficit-list";
|
|
25
|
+
ExcelExportReportType["detalDeficitList"] = "warehouse.detal-deficit-list";
|
|
26
|
+
ExcelExportReportType["materialDeficitList"] = "warehouse.material-deficit-list";
|
|
14
27
|
})(ExcelExportReportType || (exports.ExcelExportReportType = ExcelExportReportType = {}));
|
|
15
28
|
var OperationPathExcelExportSourceType;
|
|
16
29
|
(function (OperationPathExcelExportSourceType) {
|
|
@@ -81,6 +94,134 @@ exports.MetalloworkingExcelExportColumnDefinitions = {
|
|
|
81
94
|
},
|
|
82
95
|
waste: { header: 'Отходы (стружка), кг', width: 22 }
|
|
83
96
|
};
|
|
97
|
+
exports.MetalloworkingOperationExcelExportColumnDefinitions = {
|
|
98
|
+
number: { header: '№', width: 8 },
|
|
99
|
+
image: { header: 'Изображение', width: 20 },
|
|
100
|
+
designation: { header: 'Обозначение', width: 24 },
|
|
101
|
+
name: { header: 'Наименование', width: 40 },
|
|
102
|
+
count: { header: 'Заказано на складе', width: 20 },
|
|
103
|
+
orderedByProduction: { header: 'Заказано по ПЗ', width: 18 },
|
|
104
|
+
childrenCalculateNeedsTime: {
|
|
105
|
+
header: 'Готовность к комплектации',
|
|
106
|
+
width: 25
|
|
107
|
+
},
|
|
108
|
+
calculatedCreateTime: {
|
|
109
|
+
header: 'Требуемое время готовности',
|
|
110
|
+
width: 25
|
|
111
|
+
},
|
|
112
|
+
calculateNeedsTime: {
|
|
113
|
+
header: 'Расчётная дата изготовления',
|
|
114
|
+
width: 26
|
|
115
|
+
},
|
|
116
|
+
parametrs: { header: 'Параметры заготовки', width: 28 },
|
|
117
|
+
workpiece: { header: 'Заготовка', width: 35 },
|
|
118
|
+
prevOperation: { header: 'Предыдущая операция', width: 35 },
|
|
119
|
+
status: { header: 'Статус', width: 18 },
|
|
120
|
+
complited: { header: 'Сделано, шт', width: 16 },
|
|
121
|
+
remaining: { header: 'Осталось, шт', width: 16 },
|
|
122
|
+
standartTime: { header: 'Норма времени, ч/мин', width: 22 },
|
|
123
|
+
dataExecution: { header: 'Дата исполнения', width: 20 },
|
|
124
|
+
executer: { header: 'Исполнитель', width: 24 },
|
|
125
|
+
worked: { header: 'Отработано, ч/мин', width: 21 },
|
|
126
|
+
nextOperation: { header: 'Следующая операция', width: 35 }
|
|
127
|
+
};
|
|
128
|
+
exports.MetalloworkingComplectationExcelExportColumnDefinitions = {
|
|
129
|
+
number: { header: '№', width: 8 },
|
|
130
|
+
image: { header: 'Изображение', width: 20 },
|
|
131
|
+
designation: { header: 'Обозначение', width: 24 },
|
|
132
|
+
name: { header: 'Наименование', width: 40 },
|
|
133
|
+
count: { header: 'Заказано на складе', width: 20 },
|
|
134
|
+
orderedByProduction: { header: 'Заказано по ПЗ', width: 18 },
|
|
135
|
+
childrenCalculateNeedsTime: {
|
|
136
|
+
header: 'Готовность к комплектации',
|
|
137
|
+
width: 25
|
|
138
|
+
},
|
|
139
|
+
calculatedCreateTime: {
|
|
140
|
+
header: 'Требуемое время готовности',
|
|
141
|
+
width: 25
|
|
142
|
+
},
|
|
143
|
+
calculateNeedsTime: {
|
|
144
|
+
header: 'Расчётная дата изготовления',
|
|
145
|
+
width: 26
|
|
146
|
+
},
|
|
147
|
+
parametrs: { header: 'Параметры заготовки', width: 28 },
|
|
148
|
+
workpiece: { header: 'Заготовка', width: 35 },
|
|
149
|
+
prevOperation: { header: 'Предыдущая операция', width: 35 },
|
|
150
|
+
status: { header: 'Статус', width: 18 },
|
|
151
|
+
complited: { header: 'Сделано, шт', width: 16 },
|
|
152
|
+
remaining: { header: 'Осталось, шт', width: 16 },
|
|
153
|
+
startTimeDelay: { header: 'Просрочка начала работ, ч', width: 24 },
|
|
154
|
+
standartTime: { header: 'Норма времени, ч/мин', width: 22 },
|
|
155
|
+
dataExecution: { header: 'Дата исполнения', width: 20 },
|
|
156
|
+
executer: { header: 'Исполнитель', width: 24 },
|
|
157
|
+
worked: { header: 'Отработано, ч/мин', width: 21 },
|
|
158
|
+
nextOperation: { header: 'Следующая операция', width: 35 }
|
|
159
|
+
};
|
|
160
|
+
exports.MetalloworkingStockOrderExcelExportColumnDefinitions = {
|
|
161
|
+
number: { header: '№', width: 8 },
|
|
162
|
+
image: { header: 'Изображение', width: 20 },
|
|
163
|
+
designation: { header: 'Обозначение', width: 24 },
|
|
164
|
+
name: { header: 'Наименование', width: 40 },
|
|
165
|
+
orderedByProduction: { header: 'Заказано по ПЗ', width: 18 },
|
|
166
|
+
ordered: { header: 'Заказано', width: 16 },
|
|
167
|
+
calculatedNeedTime: {
|
|
168
|
+
header: 'Расчётная дата изготовления',
|
|
169
|
+
width: 26
|
|
170
|
+
},
|
|
171
|
+
warehouseReadinessDate: {
|
|
172
|
+
header: 'Дата плановой готовности склада',
|
|
173
|
+
width: 28
|
|
174
|
+
},
|
|
175
|
+
complectataionReadiness: {
|
|
176
|
+
header: 'Готовность к комплектации',
|
|
177
|
+
width: 25
|
|
178
|
+
},
|
|
179
|
+
requiredDate: { header: 'Требуемое время готовности', width: 25 },
|
|
180
|
+
delayProduction: { header: 'Просрочка изготовления, ч', width: 25 },
|
|
181
|
+
demand: { header: 'Потребность по заказам склада', width: 28 },
|
|
182
|
+
minRemainingDeficit: {
|
|
183
|
+
header: 'Дефицит с учетом минимального остатка',
|
|
184
|
+
width: 32
|
|
185
|
+
},
|
|
186
|
+
countOnWarehouse: { header: 'Кол-во', width: 14 }
|
|
187
|
+
};
|
|
188
|
+
exports.ResultWorkExcelExportColumnDefinitions = {
|
|
189
|
+
number: { header: '№', width: 8 },
|
|
190
|
+
tabelNumber: { header: 'Табельный номер', width: 18 },
|
|
191
|
+
employee: { header: 'Сотрудник', width: 25 },
|
|
192
|
+
date: { header: 'Дата', width: 15 },
|
|
193
|
+
operation: { header: 'Операция', width: 40 },
|
|
194
|
+
image: { header: 'Изображение', width: 20 },
|
|
195
|
+
type: { header: 'Тип', width: 10 },
|
|
196
|
+
designation: { header: 'Обозначение', width: 24 },
|
|
197
|
+
name: { header: 'Наименование', width: 40 },
|
|
198
|
+
quantity: { header: 'Количество', width: 15 },
|
|
199
|
+
oneItemPreTime: {
|
|
200
|
+
header: 'За 1 шт.: Подготовительное время, н-ч/мин',
|
|
201
|
+
width: 29
|
|
202
|
+
},
|
|
203
|
+
oneItemAuxTime: {
|
|
204
|
+
header: 'За 1 шт.: Вспомогательное время, н-ч/мин',
|
|
205
|
+
width: 29
|
|
206
|
+
},
|
|
207
|
+
oneItemMachTime: {
|
|
208
|
+
header: 'За 1 шт.: Машинное время, н-ч/мин',
|
|
209
|
+
width: 27
|
|
210
|
+
},
|
|
211
|
+
batchPreTime: {
|
|
212
|
+
header: 'За партию: Подготовительное время, н-ч/мин',
|
|
213
|
+
width: 29
|
|
214
|
+
},
|
|
215
|
+
batchAuxTime: {
|
|
216
|
+
header: 'За партию: Вспомогательное время, н-ч/мин',
|
|
217
|
+
width: 29
|
|
218
|
+
},
|
|
219
|
+
batchMachTime: {
|
|
220
|
+
header: 'За партию: Машинное время, н-ч/мин',
|
|
221
|
+
width: 27
|
|
222
|
+
},
|
|
223
|
+
allTime: { header: 'Всего, н-ч/мин', width: 20 }
|
|
224
|
+
};
|
|
84
225
|
exports.AssemblyOperationExcelExportColumnDefinitions = {
|
|
85
226
|
number: { header: '№', width: 8 },
|
|
86
227
|
image: { header: 'Изображение', width: 20 },
|
|
@@ -154,12 +295,138 @@ exports.AssemblyStockOrderExcelExportColumnDefinitions = {
|
|
|
154
295
|
deficit: { header: 'Дефицит', width: 16 },
|
|
155
296
|
countOfSclad: { header: 'Кол-во', width: 14 }
|
|
156
297
|
};
|
|
298
|
+
exports.ProductDeficitExcelExportColumnDefinitions = {
|
|
299
|
+
number: { header: '№', width: 8 },
|
|
300
|
+
designation: { header: 'Обозначение', width: 24 },
|
|
301
|
+
article: { header: 'Артикул', width: 20 },
|
|
302
|
+
name: { header: 'Наименование', width: 40 },
|
|
303
|
+
warehouseReadinessDate: {
|
|
304
|
+
header: 'Дата плановой готовности склада',
|
|
305
|
+
width: 28
|
|
306
|
+
},
|
|
307
|
+
shipmentDate: { header: 'Дата плановой отгрузки', width: 23 },
|
|
308
|
+
deficit: { header: 'Общий дефицит', width: 18 },
|
|
309
|
+
orderDemand: { header: 'Потребность по заказам покупателя', width: 30 },
|
|
310
|
+
remaining: { header: 'Кол-во', width: 14 },
|
|
311
|
+
status: { header: 'Статус', width: 18 },
|
|
312
|
+
minRemaining: { header: 'Мин. остаток', width: 16 },
|
|
313
|
+
recommendedRemaining: { header: 'Рек. остаток', width: 16 },
|
|
314
|
+
timeNorm: {
|
|
315
|
+
header: 'Норма времени на одну единицу, ч/мин',
|
|
316
|
+
width: 29
|
|
317
|
+
},
|
|
318
|
+
ownQuantity: {
|
|
319
|
+
header: 'Кол-во (по ум.=рекомендуемому кол-ву)',
|
|
320
|
+
width: 31
|
|
321
|
+
},
|
|
322
|
+
ordered: { header: 'Заказано на складе', width: 20 },
|
|
323
|
+
realRemaining: {
|
|
324
|
+
header: 'Реальный остаток с учетом планируемых отгрузок и планируемого производства',
|
|
325
|
+
width: 35
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
exports.CbedDeficitExcelExportColumnDefinitions = {
|
|
329
|
+
number: { header: '№', width: 8 },
|
|
330
|
+
designation: { header: 'Обозначение', width: 24 },
|
|
331
|
+
name: { header: 'Наименование', width: 40 },
|
|
332
|
+
warehouseReadinessDate: {
|
|
333
|
+
header: 'Дата плановой готовности склада',
|
|
334
|
+
width: 28
|
|
335
|
+
},
|
|
336
|
+
deficit: { header: 'Общий дефицит', width: 18 },
|
|
337
|
+
orderDemand: { header: 'Потребность по заказам', width: 24 },
|
|
338
|
+
remaining: { header: 'Кол-во', width: 14 },
|
|
339
|
+
status: { header: 'Статус', width: 18 },
|
|
340
|
+
minRemaining: { header: 'Мин. остаток', width: 16 },
|
|
341
|
+
recommendedRemaining: { header: 'Рек. остаток', width: 16 },
|
|
342
|
+
timeNorm: {
|
|
343
|
+
header: 'Норма времени на одну единицу, ч/мин',
|
|
344
|
+
width: 29
|
|
345
|
+
},
|
|
346
|
+
ownQuantity: {
|
|
347
|
+
header: 'Кол-во (по ум.=рекомендуемому кол-ву)',
|
|
348
|
+
width: 31
|
|
349
|
+
},
|
|
350
|
+
ordered: { header: 'Заказано на складе', width: 20 },
|
|
351
|
+
realRemaining: {
|
|
352
|
+
header: 'Реальный остаток с учетом планируемых отгрузок и планируемого производства',
|
|
353
|
+
width: 35
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
exports.DetalDeficitExcelExportColumnDefinitions = {
|
|
357
|
+
number: { header: '№', width: 8 },
|
|
358
|
+
designation: { header: 'Обозначение', width: 24 },
|
|
359
|
+
name: { header: 'Наименование', width: 40 },
|
|
360
|
+
warehouseReadinessDate: {
|
|
361
|
+
header: 'Дата плановой готовности склада',
|
|
362
|
+
width: 28
|
|
363
|
+
},
|
|
364
|
+
deficit: { header: 'Общий дефицит', width: 18 },
|
|
365
|
+
orderDemand: { header: 'Потребность по заказам склада', width: 28 },
|
|
366
|
+
remaining: { header: 'Кол-во', width: 14 },
|
|
367
|
+
status: { header: 'Статус', width: 18 },
|
|
368
|
+
minRemaining: { header: 'Мин. остаток', width: 16 },
|
|
369
|
+
recommendedRemaining: { header: 'Рек. остаток', width: 16 },
|
|
370
|
+
cnc: { header: 'ЧПУ', width: 12 },
|
|
371
|
+
timeNorm: {
|
|
372
|
+
header: 'Норма времени на одну единицу, ч/мин',
|
|
373
|
+
width: 29
|
|
374
|
+
},
|
|
375
|
+
ownQuantity: {
|
|
376
|
+
header: 'Кол-во (по ум.=рекомендуемому кол-ву)',
|
|
377
|
+
width: 31
|
|
378
|
+
},
|
|
379
|
+
ordered: { header: 'Заказано на складе', width: 20 },
|
|
380
|
+
deficitWithProduction: {
|
|
381
|
+
header: 'Дефицит с учетом производства',
|
|
382
|
+
width: 27
|
|
383
|
+
},
|
|
384
|
+
realRemaining: {
|
|
385
|
+
header: 'Реальный остаток с учетом планируемых отгрузок и планируемого производства',
|
|
386
|
+
width: 35
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
exports.MaterialDeficitExcelExportColumnDefinitions = {
|
|
390
|
+
number: { header: '№', width: 8 },
|
|
391
|
+
name: { header: 'Наименование', width: 40 },
|
|
392
|
+
plannedDeliveryDate: { header: 'Планируемая дата прихода', width: 24 },
|
|
393
|
+
shipmentDate: { header: 'Дата плановой отгрузки', width: 23 },
|
|
394
|
+
inKit: { header: 'В наборах', width: 14 },
|
|
395
|
+
measurement: { header: 'ЕИ', width: 12 },
|
|
396
|
+
deficit: { header: 'Общий дефицит', width: 18 },
|
|
397
|
+
orderDemand: { header: 'Потребность по ЗС', width: 21 },
|
|
398
|
+
remaining: { header: 'Остаток', width: 15 },
|
|
399
|
+
status: { header: 'Статус', width: 18 },
|
|
400
|
+
minRemaining: { header: 'Мин. остаток', width: 16 },
|
|
401
|
+
recommendedRemaining: { header: 'Рек. остаток', width: 16 },
|
|
402
|
+
ownQuantity: {
|
|
403
|
+
header: 'Кол-во (по ум.=рекомендуемому кол-ву)',
|
|
404
|
+
width: 31
|
|
405
|
+
},
|
|
406
|
+
ordered: { header: 'Заказано', width: 16 },
|
|
407
|
+
deficitWithIncoming: {
|
|
408
|
+
header: 'Дефицит с учетом прихода',
|
|
409
|
+
width: 25
|
|
410
|
+
},
|
|
411
|
+
realRemaining: {
|
|
412
|
+
header: 'Реальный остаток с учетом планируемых отгрузок и планируемого производства',
|
|
413
|
+
width: 35
|
|
414
|
+
}
|
|
415
|
+
};
|
|
157
416
|
const getColumnDefinitionKeys = (definitions) => Object.keys(definitions);
|
|
158
417
|
exports.AssemblyExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyExcelExportColumnDefinitions));
|
|
159
418
|
exports.MetalloworkingExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingExcelExportColumnDefinitions));
|
|
419
|
+
exports.MetalloworkingOperationExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingOperationExcelExportColumnDefinitions));
|
|
420
|
+
exports.MetalloworkingComplectationExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingComplectationExcelExportColumnDefinitions));
|
|
421
|
+
exports.MetalloworkingStockOrderExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingStockOrderExcelExportColumnDefinitions));
|
|
422
|
+
exports.ResultWorkExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.ResultWorkExcelExportColumnDefinitions));
|
|
160
423
|
exports.AssemblyOperationExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyOperationExcelExportColumnDefinitions));
|
|
161
424
|
exports.OperationPathExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.OperationPathExcelExportColumnDefinitions));
|
|
162
425
|
exports.AssemblyStockOrderExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyStockOrderExcelExportColumnDefinitions));
|
|
426
|
+
exports.ProductDeficitExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.ProductDeficitExcelExportColumnDefinitions));
|
|
427
|
+
exports.CbedDeficitExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.CbedDeficitExcelExportColumnDefinitions));
|
|
428
|
+
exports.DetalDeficitExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.DetalDeficitExcelExportColumnDefinitions));
|
|
429
|
+
exports.MaterialDeficitExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MaterialDeficitExcelExportColumnDefinitions));
|
|
163
430
|
const createUniqueColumnsSchema = (columnSchema) => zod_1.z
|
|
164
431
|
.array(columnSchema)
|
|
165
432
|
.min(1)
|
|
@@ -176,6 +443,26 @@ exports.CreateMetalloworkingExcelExportDtoZod = zod_1.z.object({
|
|
|
176
443
|
columns: createUniqueColumnsSchema(exports.MetalloworkingExcelExportColumnSchema),
|
|
177
444
|
filters: metaloworking_1.GetMetaloworkingPaginationDtoZod.omit({ page: true })
|
|
178
445
|
});
|
|
446
|
+
exports.CreateMetalloworkingOperationExcelExportDtoZod = zod_1.z.object({
|
|
447
|
+
reportType: zod_1.z.literal(ExcelExportReportType.metalloworkingOperationList),
|
|
448
|
+
columns: createUniqueColumnsSchema(exports.MetalloworkingOperationExcelExportColumnSchema),
|
|
449
|
+
filters: metaloworking_1.GetMetaloworkingByOperationPaginationDtoZod.omit({ page: true })
|
|
450
|
+
});
|
|
451
|
+
exports.CreateMetalloworkingComplectationExcelExportDtoZod = zod_1.z.object({
|
|
452
|
+
reportType: zod_1.z.literal(ExcelExportReportType.metalloworkingComplectationList),
|
|
453
|
+
columns: createUniqueColumnsSchema(exports.MetalloworkingComplectationExcelExportColumnSchema),
|
|
454
|
+
filters: metaloworking_1.GetMetaloworkingByOperationPaginationDtoZod.omit({ page: true })
|
|
455
|
+
});
|
|
456
|
+
exports.CreateMetalloworkingStockOrderExcelExportDtoZod = zod_1.z.object({
|
|
457
|
+
reportType: zod_1.z.literal(ExcelExportReportType.metalloworkingStockOrderList),
|
|
458
|
+
columns: createUniqueColumnsSchema(exports.MetalloworkingStockOrderExcelExportColumnSchema),
|
|
459
|
+
filters: metaloworking_1.GetMetaloworkingPaginationDtoZod.omit({ page: true })
|
|
460
|
+
});
|
|
461
|
+
exports.CreateResultWorkExcelExportDtoZod = zod_1.z.object({
|
|
462
|
+
reportType: zod_1.z.literal(ExcelExportReportType.resultWorkList),
|
|
463
|
+
columns: createUniqueColumnsSchema(exports.ResultWorkExcelExportColumnSchema),
|
|
464
|
+
filters: marks_1.getResultWorkingPaginationSchemaDto.omit({ page: true })
|
|
465
|
+
});
|
|
179
466
|
exports.CreateAssemblyOperationExcelExportDtoZod = zod_1.z.object({
|
|
180
467
|
reportType: zod_1.z.literal(ExcelExportReportType.assemblyOperationList),
|
|
181
468
|
columns: createUniqueColumnsSchema(exports.AssemblyOperationExcelExportColumnSchema),
|
|
@@ -194,12 +481,40 @@ exports.CreateAssemblyStockOrderExcelExportDtoZod = zod_1.z.object({
|
|
|
194
481
|
columns: createUniqueColumnsSchema(exports.AssemblyStockOrderExcelExportColumnSchema),
|
|
195
482
|
filters: assemble_1.GetAssembleScladPaginationDtoZod.omit({ page: true })
|
|
196
483
|
});
|
|
484
|
+
exports.CreateProductDeficitExcelExportDtoZod = zod_1.z.object({
|
|
485
|
+
reportType: zod_1.z.literal(ExcelExportReportType.productDeficitList),
|
|
486
|
+
columns: createUniqueColumnsSchema(exports.ProductDeficitExcelExportColumnSchema),
|
|
487
|
+
filters: product_1.GetDeficitProductSchema.omit({ page: true })
|
|
488
|
+
});
|
|
489
|
+
exports.CreateCbedDeficitExcelExportDtoZod = zod_1.z.object({
|
|
490
|
+
reportType: zod_1.z.literal(ExcelExportReportType.cbedDeficitList),
|
|
491
|
+
columns: createUniqueColumnsSchema(exports.CbedDeficitExcelExportColumnSchema),
|
|
492
|
+
filters: cbed_1.GetDeficitDtoZod.omit({ page: true })
|
|
493
|
+
});
|
|
494
|
+
exports.CreateDetalDeficitExcelExportDtoZod = zod_1.z.object({
|
|
495
|
+
reportType: zod_1.z.literal(ExcelExportReportType.detalDeficitList),
|
|
496
|
+
columns: createUniqueColumnsSchema(exports.DetalDeficitExcelExportColumnSchema),
|
|
497
|
+
filters: detal_1.GetDetalDeficitDtoZod.omit({ page: true })
|
|
498
|
+
});
|
|
499
|
+
exports.CreateMaterialDeficitExcelExportDtoZod = zod_1.z.object({
|
|
500
|
+
reportType: zod_1.z.literal(ExcelExportReportType.materialDeficitList),
|
|
501
|
+
columns: createUniqueColumnsSchema(exports.MaterialDeficitExcelExportColumnSchema),
|
|
502
|
+
filters: material_1.GetMaterialDeficitDtoZod.omit({ page: true })
|
|
503
|
+
});
|
|
197
504
|
exports.CreateExcelExportRequestSchema = zod_1.z.discriminatedUnion('reportType', [
|
|
198
505
|
exports.CreateAssemblyExcelExportDtoZod,
|
|
199
506
|
exports.CreateAssemblyOperationExcelExportDtoZod,
|
|
200
507
|
exports.CreateOperationPathExcelExportDtoZod,
|
|
201
508
|
exports.CreateAssemblyStockOrderExcelExportDtoZod,
|
|
202
|
-
exports.CreateMetalloworkingExcelExportDtoZod
|
|
509
|
+
exports.CreateMetalloworkingExcelExportDtoZod,
|
|
510
|
+
exports.CreateMetalloworkingOperationExcelExportDtoZod,
|
|
511
|
+
exports.CreateMetalloworkingComplectationExcelExportDtoZod,
|
|
512
|
+
exports.CreateMetalloworkingStockOrderExcelExportDtoZod,
|
|
513
|
+
exports.CreateResultWorkExcelExportDtoZod,
|
|
514
|
+
exports.CreateProductDeficitExcelExportDtoZod,
|
|
515
|
+
exports.CreateCbedDeficitExcelExportDtoZod,
|
|
516
|
+
exports.CreateDetalDeficitExcelExportDtoZod,
|
|
517
|
+
exports.CreateMaterialDeficitExcelExportDtoZod
|
|
203
518
|
]);
|
|
204
519
|
// createZodDto requires an object schema as its class base. The refinement
|
|
205
520
|
// delegates validation to the strict discriminated report contract.
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pksep/zod-shared",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Zod package for erp project. Contains dto, interfaces, schems, types, enum",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc -b --force",
|
|
12
|
-
"publish:lib": "changelogen --publish --patch --output CHANGELOG.md --from=HEAD~1 --no-provenance --no-git-checks",
|
|
13
|
-
"publish:canary": "changelogen --output CHANGELOG.md --from=HEAD~1 --no-git-checks && npm publish --tag canary --legacy-peer-deps --no-provenance",
|
|
14
|
-
"lint": "eslint \"**/*.ts\" --fix",
|
|
15
|
-
"prettier": "prettier --write .",
|
|
16
|
-
"prettier:check": "prettier --check ./**/*.ts",
|
|
17
|
-
"prepublishOnly": "bun run update-version && bun run build",
|
|
18
|
-
"update-version": "node bin/update-version.mjs",
|
|
19
|
-
"version": "git add -A src"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"lodash": "^4.17.21",
|
|
23
|
-
"@types/lodash": "^4.17.7",
|
|
24
|
-
"lz-string": "^1.5.0",
|
|
25
|
-
"zod": "^3.23.8"
|
|
26
|
-
},
|
|
27
|
-
"repository": {
|
|
28
|
-
"type": "git",
|
|
29
|
-
"url": "https://github.com/NPO-Automotive/sep_erp_server.git",
|
|
30
|
-
"directory": "packages/zod-shared"
|
|
31
|
-
},
|
|
32
|
-
"publishConfig": {
|
|
33
|
-
"access": "public"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"changelogen": "^0.6.1"
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@pksep/zod-shared",
|
|
3
|
+
"version": "0.0.563",
|
|
4
|
+
"description": "Zod package for erp project. Contains dto, interfaces, schems, types, enum",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc -b --force",
|
|
12
|
+
"publish:lib": "changelogen --publish --patch --output CHANGELOG.md --from=HEAD~1 --no-provenance --no-git-checks",
|
|
13
|
+
"publish:canary": "changelogen --output CHANGELOG.md --from=HEAD~1 --no-git-checks && npm publish --tag canary --legacy-peer-deps --no-provenance",
|
|
14
|
+
"lint": "eslint \"**/*.ts\" --fix",
|
|
15
|
+
"prettier": "prettier --write .",
|
|
16
|
+
"prettier:check": "prettier --check ./**/*.ts",
|
|
17
|
+
"prepublishOnly": "bun run update-version && bun run build",
|
|
18
|
+
"update-version": "node bin/update-version.mjs",
|
|
19
|
+
"version": "git add -A src"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"lodash": "^4.17.21",
|
|
23
|
+
"@types/lodash": "^4.17.7",
|
|
24
|
+
"lz-string": "^1.5.0",
|
|
25
|
+
"zod": "^3.23.8"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/NPO-Automotive/sep_erp_server.git",
|
|
30
|
+
"directory": "packages/zod-shared"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"changelogen": "^0.6.1"
|
|
37
|
+
}
|
|
38
38
|
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod/v4';
|
|
2
|
-
export declare const ErpEntityEditorGetInputShape: {
|
|
3
|
-
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
-
type: z.ZodEnum<{
|
|
5
|
-
product: import("../..").IzdType.product;
|
|
6
|
-
cbed: import("../..").IzdType.cbed;
|
|
7
|
-
detal: import("../..").IzdType.detal;
|
|
8
|
-
}>;
|
|
9
|
-
entityName: z.ZodOptional<z.ZodString>;
|
|
10
|
-
entityDesignation: z.ZodOptional<z.ZodString>;
|
|
11
|
-
};
|
|
12
|
-
export declare const ErpEntityEditorUpdateInputShape: {
|
|
13
|
-
changes: z.ZodObject<{
|
|
14
|
-
name: z.ZodOptional<z.ZodString>;
|
|
15
|
-
designation: z.ZodOptional<z.ZodString>;
|
|
16
|
-
article: z.ZodOptional<z.ZodString>;
|
|
17
|
-
responsibleName: z.ZodOptional<z.ZodString>;
|
|
18
|
-
description: z.ZodOptional<z.ZodString>;
|
|
19
|
-
attention: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
custom: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
-
discontinued: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
unit: z.ZodString;
|
|
25
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
26
|
-
}, z.core.$strip>>>;
|
|
27
|
-
characteristics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
unit: z.ZodString;
|
|
30
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
31
|
-
}, z.core.$strip>>>;
|
|
32
|
-
detailProductionTimes: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
preparation: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
34
|
-
helper: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
35
|
-
main: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
workpieceCharacteristics: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
diameter: z.ZodNumber;
|
|
39
|
-
billetLength: z.ZodNumber;
|
|
40
|
-
length: z.ZodNumber;
|
|
41
|
-
width: z.ZodNumber;
|
|
42
|
-
height: z.ZodNumber;
|
|
43
|
-
wallThickness: z.ZodNumber;
|
|
44
|
-
outsideDiameter: z.ZodNumber;
|
|
45
|
-
thickness: z.ZodNumber;
|
|
46
|
-
crossSectionArea: z.ZodNumber;
|
|
47
|
-
acrossFlats: z.ZodNumber;
|
|
48
|
-
massPerMeter: z.ZodNumber;
|
|
49
|
-
density: z.ZodNumber;
|
|
50
|
-
mass: z.ZodNumber;
|
|
51
|
-
waste: z.ZodNumber;
|
|
52
|
-
}, z.core.$strip>>;
|
|
53
|
-
mainMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
replacementMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
idempotencyKey: z.ZodString;
|
|
57
|
-
type: z.ZodEnum<{
|
|
58
|
-
product: import("../..").IzdType.product;
|
|
59
|
-
cbed: import("../..").IzdType.cbed;
|
|
60
|
-
detal: import("../..").IzdType.detal;
|
|
61
|
-
}>;
|
|
62
|
-
entityName: z.ZodOptional<z.ZodString>;
|
|
63
|
-
entityDesignation: z.ZodOptional<z.ZodString>;
|
|
64
|
-
};
|
|
65
|
-
export declare const ErpEntityEditorGetInputZod: z.ZodObject<{
|
|
66
|
-
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
-
type: z.ZodEnum<{
|
|
68
|
-
product: import("../..").IzdType.product;
|
|
69
|
-
cbed: import("../..").IzdType.cbed;
|
|
70
|
-
detal: import("../..").IzdType.detal;
|
|
71
|
-
}>;
|
|
72
|
-
entityName: z.ZodOptional<z.ZodString>;
|
|
73
|
-
entityDesignation: z.ZodOptional<z.ZodString>;
|
|
74
|
-
}, z.core.$strip>;
|
|
75
|
-
export declare const ErpEntityEditorUpdateInputZod: z.ZodObject<{
|
|
76
|
-
changes: z.ZodObject<{
|
|
77
|
-
name: z.ZodOptional<z.ZodString>;
|
|
78
|
-
designation: z.ZodOptional<z.ZodString>;
|
|
79
|
-
article: z.ZodOptional<z.ZodString>;
|
|
80
|
-
responsibleName: z.ZodOptional<z.ZodString>;
|
|
81
|
-
description: z.ZodOptional<z.ZodString>;
|
|
82
|
-
attention: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
custom: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
-
discontinued: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
-
name: z.ZodString;
|
|
87
|
-
unit: z.ZodString;
|
|
88
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
89
|
-
}, z.core.$strip>>>;
|
|
90
|
-
characteristics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
-
name: z.ZodString;
|
|
92
|
-
unit: z.ZodString;
|
|
93
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
94
|
-
}, z.core.$strip>>>;
|
|
95
|
-
detailProductionTimes: z.ZodOptional<z.ZodObject<{
|
|
96
|
-
preparation: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
97
|
-
helper: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
98
|
-
main: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
|
-
workpieceCharacteristics: z.ZodOptional<z.ZodObject<{
|
|
101
|
-
diameter: z.ZodNumber;
|
|
102
|
-
billetLength: z.ZodNumber;
|
|
103
|
-
length: z.ZodNumber;
|
|
104
|
-
width: z.ZodNumber;
|
|
105
|
-
height: z.ZodNumber;
|
|
106
|
-
wallThickness: z.ZodNumber;
|
|
107
|
-
outsideDiameter: z.ZodNumber;
|
|
108
|
-
thickness: z.ZodNumber;
|
|
109
|
-
crossSectionArea: z.ZodNumber;
|
|
110
|
-
acrossFlats: z.ZodNumber;
|
|
111
|
-
massPerMeter: z.ZodNumber;
|
|
112
|
-
density: z.ZodNumber;
|
|
113
|
-
mass: z.ZodNumber;
|
|
114
|
-
waste: z.ZodNumber;
|
|
115
|
-
}, z.core.$strip>>;
|
|
116
|
-
mainMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
-
replacementMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
}, z.core.$strip>;
|
|
119
|
-
idempotencyKey: z.ZodString;
|
|
120
|
-
type: z.ZodEnum<{
|
|
121
|
-
product: import("../..").IzdType.product;
|
|
122
|
-
cbed: import("../..").IzdType.cbed;
|
|
123
|
-
detal: import("../..").IzdType.detal;
|
|
124
|
-
}>;
|
|
125
|
-
entityName: z.ZodOptional<z.ZodString>;
|
|
126
|
-
entityDesignation: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
export type TErpEntityEditorGetInput = z.infer<typeof ErpEntityEditorGetInputZod>;
|
|
129
|
-
export type TErpEntityEditorUpdateInput = z.infer<typeof ErpEntityEditorUpdateInputZod>;
|
|
130
|
-
export type TErpEntityEditorChanges = TErpEntityEditorUpdateInput['changes'];
|