@pksep/zod-shared 0.0.562 → 0.0.564

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.
Files changed (32) hide show
  1. package/dist/ai-mcp/index.d.ts +3 -0
  2. package/dist/ai-mcp/index.js +3 -0
  3. package/dist/ai-mcp/interfaces/ai-mcp.interface.d.ts +149 -1
  4. package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.d.ts +32 -38
  5. package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.js +26 -21
  6. package/dist/ai-mcp/schemas/ai-mcp-technology.schema.d.ts +225 -0
  7. package/dist/ai-mcp/schemas/ai-mcp-technology.schema.js +156 -0
  8. package/dist/ai-mcp/schemas/ai-mcp.schema.d.ts +4 -1
  9. package/dist/ai-mcp/schemas/ai-mcp.schema.js +6 -1
  10. package/dist/bull-queue/index.d.ts +1 -0
  11. package/dist/bull-queue/index.js +17 -0
  12. package/dist/bull-queue/schemas/queue-ownership.schema.d.ts +74 -0
  13. package/dist/bull-queue/schemas/queue-ownership.schema.js +33 -0
  14. package/dist/deficit/index.d.ts +1 -0
  15. package/dist/deficit/index.js +1 -0
  16. package/dist/deficit/schemas/deficit-queue.schema.d.ts +2 -0
  17. package/dist/deficit/schemas/deficit-queue.schema.js +7 -0
  18. package/dist/excel-export/excel-export.dto.d.ts +3215 -620
  19. package/dist/excel-export/excel-export.dto.js +219 -2
  20. package/dist/excel-export/index.d.ts +1 -0
  21. package/dist/excel-export/index.js +1 -0
  22. package/dist/excel-export/warehouse-excel-export.d.ts +269 -0
  23. package/dist/excel-export/warehouse-excel-export.js +76 -0
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +1 -0
  26. package/dist/production-tasks/dto/split-production-task.dto.js +1 -1
  27. package/dist/production-tasks/interfaces/production-tasks.d.ts +2 -0
  28. package/dist/production-tasks/methods/methods.d.ts +3 -3
  29. package/dist/production-tasks/methods/methods.js +3 -3
  30. package/dist/specification/dto/mutate-specification.dto.d.ts +13 -0
  31. package/dist/specification/dto/mutate-specification.dto.js +14 -6
  32. package/package.json +2 -2
@@ -1,13 +1,20 @@
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.CreateMaterialDeficitExcelExportDtoZod = exports.CreateDetalDeficitExcelExportDtoZod = exports.CreateCbedDeficitExcelExportDtoZod = exports.CreateProductDeficitExcelExportDtoZod = exports.CreateAssemblyStockOrderExcelExportDtoZod = exports.CreateOperationPathExcelExportDtoZod = exports.CreateAssemblyOperationExcelExportDtoZod = exports.CreateMetalloworkingExcelExportDtoZod = exports.CreateAssemblyExcelExportDtoZod = exports.MaterialDeficitExcelExportColumnSchema = exports.DetalDeficitExcelExportColumnSchema = exports.CbedDeficitExcelExportColumnSchema = exports.ProductDeficitExcelExportColumnSchema = exports.AssemblyStockOrderExcelExportColumnSchema = exports.OperationPathExcelExportColumnSchema = exports.AssemblyOperationExcelExportColumnSchema = exports.MetalloworkingExcelExportColumnSchema = exports.AssemblyExcelExportColumnSchema = exports.MaterialDeficitExcelExportColumnDefinitions = exports.DetalDeficitExcelExportColumnDefinitions = exports.CbedDeficitExcelExportColumnDefinitions = exports.ProductDeficitExcelExportColumnDefinitions = exports.AssemblyStockOrderExcelExportColumnDefinitions = exports.OperationPathExcelExportColumnDefinitions = exports.AssemblyOperationExcelExportColumnDefinitions = exports.MetalloworkingExcelExportColumnDefinitions = exports.AssemblyExcelExportColumnDefinitions = exports.ExcelExportColumnDefinitionSchema = exports.ExcelExportStatus = exports.OperationPathExcelExportSourceType = exports.ExcelExportReportType = void 0;
3
+ exports.CreateExcelExportRequestSchema = exports.CreateMovementObjectExcelExportSchema = exports.CreateWarehouseReceiptExcelExportSchema = exports.CreateOrderToWayExcelExportSchema = exports.CreateWarehouseConsumptionExcelExportSchema = exports.CreateShippedOrderExcelExportSchema = exports.CreateWarehouseShipmentExcelExportSchema = 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
+ exports.ExcelExportResultSchema = exports.ExcelExportJobDataSchema = exports.ExcelExportStatusSchema = exports.ExcelExportCreatedSchema = exports.CreateExcelExportDtoZod = void 0;
4
5
  const zod_1 = require("zod");
5
6
  const assemble_1 = require("../assemble");
6
7
  const cbed_1 = require("../cbed");
7
8
  const detal_1 = require("../detal");
8
9
  const material_1 = require("../material");
9
10
  const metaloworking_1 = require("../metaloworking");
11
+ const marks_1 = require("../marks");
10
12
  const product_1 = require("../product");
13
+ const shipments_1 = require("../shipments");
14
+ const expenditure_1 = require("../expenditure");
15
+ const stock_order_1 = require("../stock-order");
16
+ const movement_object_1 = require("../movement-object");
17
+ const utils_1 = require("../utils");
11
18
  var ExcelExportReportType;
12
19
  (function (ExcelExportReportType) {
13
20
  ExcelExportReportType["assemblyList"] = "assembly.list";
@@ -15,10 +22,20 @@ var ExcelExportReportType;
15
22
  ExcelExportReportType["operationPath"] = "production.operation-path";
16
23
  ExcelExportReportType["assemblyStockOrderList"] = "assembly.stock-order-list";
17
24
  ExcelExportReportType["metalloworkingList"] = "metalloworking.list";
25
+ ExcelExportReportType["metalloworkingOperationList"] = "metalloworking.operation-list";
26
+ ExcelExportReportType["metalloworkingComplectationList"] = "metalloworking.complectation-list";
27
+ ExcelExportReportType["metalloworkingStockOrderList"] = "metalloworking.stock-order-list";
28
+ ExcelExportReportType["resultWorkList"] = "production.result-work-list";
18
29
  ExcelExportReportType["productDeficitList"] = "warehouse.product-deficit-list";
19
30
  ExcelExportReportType["cbedDeficitList"] = "warehouse.cbed-deficit-list";
20
31
  ExcelExportReportType["detalDeficitList"] = "warehouse.detal-deficit-list";
21
32
  ExcelExportReportType["materialDeficitList"] = "warehouse.material-deficit-list";
33
+ ExcelExportReportType["warehouseShipmentList"] = "warehouse.shipment-list";
34
+ ExcelExportReportType["shippedOrderList"] = "warehouse.shipped-order-list";
35
+ ExcelExportReportType["warehouseConsumptionList"] = "warehouse.consumption-list";
36
+ ExcelExportReportType["orderToWayList"] = "warehouse.order-to-way-list";
37
+ ExcelExportReportType["warehouseReceiptList"] = "warehouse.receipt-list";
38
+ ExcelExportReportType["movementObjectList"] = "warehouse.movement-object-list";
22
39
  })(ExcelExportReportType || (exports.ExcelExportReportType = ExcelExportReportType = {}));
23
40
  var OperationPathExcelExportSourceType;
24
41
  (function (OperationPathExcelExportSourceType) {
@@ -89,6 +106,134 @@ exports.MetalloworkingExcelExportColumnDefinitions = {
89
106
  },
90
107
  waste: { header: 'Отходы (стружка), кг', width: 22 }
91
108
  };
109
+ exports.MetalloworkingOperationExcelExportColumnDefinitions = {
110
+ number: { header: '№', width: 8 },
111
+ image: { header: 'Изображение', width: 20 },
112
+ designation: { header: 'Обозначение', width: 24 },
113
+ name: { header: 'Наименование', width: 40 },
114
+ count: { header: 'Заказано на складе', width: 20 },
115
+ orderedByProduction: { header: 'Заказано по ПЗ', width: 18 },
116
+ childrenCalculateNeedsTime: {
117
+ header: 'Готовность к комплектации',
118
+ width: 25
119
+ },
120
+ calculatedCreateTime: {
121
+ header: 'Требуемое время готовности',
122
+ width: 25
123
+ },
124
+ calculateNeedsTime: {
125
+ header: 'Расчётная дата изготовления',
126
+ width: 26
127
+ },
128
+ parametrs: { header: 'Параметры заготовки', width: 28 },
129
+ workpiece: { header: 'Заготовка', width: 35 },
130
+ prevOperation: { header: 'Предыдущая операция', width: 35 },
131
+ status: { header: 'Статус', width: 18 },
132
+ complited: { header: 'Сделано, шт', width: 16 },
133
+ remaining: { header: 'Осталось, шт', width: 16 },
134
+ standartTime: { header: 'Норма времени, ч/мин', width: 22 },
135
+ dataExecution: { header: 'Дата исполнения', width: 20 },
136
+ executer: { header: 'Исполнитель', width: 24 },
137
+ worked: { header: 'Отработано, ч/мин', width: 21 },
138
+ nextOperation: { header: 'Следующая операция', width: 35 }
139
+ };
140
+ exports.MetalloworkingComplectationExcelExportColumnDefinitions = {
141
+ number: { header: '№', width: 8 },
142
+ image: { header: 'Изображение', width: 20 },
143
+ designation: { header: 'Обозначение', width: 24 },
144
+ name: { header: 'Наименование', width: 40 },
145
+ count: { header: 'Заказано на складе', width: 20 },
146
+ orderedByProduction: { header: 'Заказано по ПЗ', width: 18 },
147
+ childrenCalculateNeedsTime: {
148
+ header: 'Готовность к комплектации',
149
+ width: 25
150
+ },
151
+ calculatedCreateTime: {
152
+ header: 'Требуемое время готовности',
153
+ width: 25
154
+ },
155
+ calculateNeedsTime: {
156
+ header: 'Расчётная дата изготовления',
157
+ width: 26
158
+ },
159
+ parametrs: { header: 'Параметры заготовки', width: 28 },
160
+ workpiece: { header: 'Заготовка', width: 35 },
161
+ prevOperation: { header: 'Предыдущая операция', width: 35 },
162
+ status: { header: 'Статус', width: 18 },
163
+ complited: { header: 'Сделано, шт', width: 16 },
164
+ remaining: { header: 'Осталось, шт', width: 16 },
165
+ startTimeDelay: { header: 'Просрочка начала работ, ч', width: 24 },
166
+ standartTime: { header: 'Норма времени, ч/мин', width: 22 },
167
+ dataExecution: { header: 'Дата исполнения', width: 20 },
168
+ executer: { header: 'Исполнитель', width: 24 },
169
+ worked: { header: 'Отработано, ч/мин', width: 21 },
170
+ nextOperation: { header: 'Следующая операция', width: 35 }
171
+ };
172
+ exports.MetalloworkingStockOrderExcelExportColumnDefinitions = {
173
+ number: { header: '№', width: 8 },
174
+ image: { header: 'Изображение', width: 20 },
175
+ designation: { header: 'Обозначение', width: 24 },
176
+ name: { header: 'Наименование', width: 40 },
177
+ orderedByProduction: { header: 'Заказано по ПЗ', width: 18 },
178
+ ordered: { header: 'Заказано', width: 16 },
179
+ calculatedNeedTime: {
180
+ header: 'Расчётная дата изготовления',
181
+ width: 26
182
+ },
183
+ warehouseReadinessDate: {
184
+ header: 'Дата плановой готовности склада',
185
+ width: 28
186
+ },
187
+ complectataionReadiness: {
188
+ header: 'Готовность к комплектации',
189
+ width: 25
190
+ },
191
+ requiredDate: { header: 'Требуемое время готовности', width: 25 },
192
+ delayProduction: { header: 'Просрочка изготовления, ч', width: 25 },
193
+ demand: { header: 'Потребность по заказам склада', width: 28 },
194
+ minRemainingDeficit: {
195
+ header: 'Дефицит с учетом минимального остатка',
196
+ width: 32
197
+ },
198
+ countOnWarehouse: { header: 'Кол-во', width: 14 }
199
+ };
200
+ exports.ResultWorkExcelExportColumnDefinitions = {
201
+ number: { header: '№', width: 8 },
202
+ tabelNumber: { header: 'Табельный номер', width: 18 },
203
+ employee: { header: 'Сотрудник', width: 25 },
204
+ date: { header: 'Дата', width: 15 },
205
+ operation: { header: 'Операция', width: 40 },
206
+ image: { header: 'Изображение', width: 20 },
207
+ type: { header: 'Тип', width: 10 },
208
+ designation: { header: 'Обозначение', width: 24 },
209
+ name: { header: 'Наименование', width: 40 },
210
+ quantity: { header: 'Количество', width: 15 },
211
+ oneItemPreTime: {
212
+ header: 'За 1 шт.: Подготовительное время, н-ч/мин',
213
+ width: 29
214
+ },
215
+ oneItemAuxTime: {
216
+ header: 'За 1 шт.: Вспомогательное время, н-ч/мин',
217
+ width: 29
218
+ },
219
+ oneItemMachTime: {
220
+ header: 'За 1 шт.: Машинное время, н-ч/мин',
221
+ width: 27
222
+ },
223
+ batchPreTime: {
224
+ header: 'За партию: Подготовительное время, н-ч/мин',
225
+ width: 29
226
+ },
227
+ batchAuxTime: {
228
+ header: 'За партию: Вспомогательное время, н-ч/мин',
229
+ width: 29
230
+ },
231
+ batchMachTime: {
232
+ header: 'За партию: Машинное время, н-ч/мин',
233
+ width: 27
234
+ },
235
+ allTime: { header: 'Всего, н-ч/мин', width: 20 }
236
+ };
92
237
  exports.AssemblyOperationExcelExportColumnDefinitions = {
93
238
  number: { header: '№', width: 8 },
94
239
  image: { header: 'Изображение', width: 20 },
@@ -283,6 +428,10 @@ exports.MaterialDeficitExcelExportColumnDefinitions = {
283
428
  const getColumnDefinitionKeys = (definitions) => Object.keys(definitions);
284
429
  exports.AssemblyExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyExcelExportColumnDefinitions));
285
430
  exports.MetalloworkingExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingExcelExportColumnDefinitions));
431
+ exports.MetalloworkingOperationExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingOperationExcelExportColumnDefinitions));
432
+ exports.MetalloworkingComplectationExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingComplectationExcelExportColumnDefinitions));
433
+ exports.MetalloworkingStockOrderExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.MetalloworkingStockOrderExcelExportColumnDefinitions));
434
+ exports.ResultWorkExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.ResultWorkExcelExportColumnDefinitions));
286
435
  exports.AssemblyOperationExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyOperationExcelExportColumnDefinitions));
287
436
  exports.OperationPathExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.OperationPathExcelExportColumnDefinitions));
288
437
  exports.AssemblyStockOrderExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyStockOrderExcelExportColumnDefinitions));
@@ -306,6 +455,26 @@ exports.CreateMetalloworkingExcelExportDtoZod = zod_1.z.object({
306
455
  columns: createUniqueColumnsSchema(exports.MetalloworkingExcelExportColumnSchema),
307
456
  filters: metaloworking_1.GetMetaloworkingPaginationDtoZod.omit({ page: true })
308
457
  });
458
+ exports.CreateMetalloworkingOperationExcelExportDtoZod = zod_1.z.object({
459
+ reportType: zod_1.z.literal(ExcelExportReportType.metalloworkingOperationList),
460
+ columns: createUniqueColumnsSchema(exports.MetalloworkingOperationExcelExportColumnSchema),
461
+ filters: metaloworking_1.GetMetaloworkingByOperationPaginationDtoZod.omit({ page: true })
462
+ });
463
+ exports.CreateMetalloworkingComplectationExcelExportDtoZod = zod_1.z.object({
464
+ reportType: zod_1.z.literal(ExcelExportReportType.metalloworkingComplectationList),
465
+ columns: createUniqueColumnsSchema(exports.MetalloworkingComplectationExcelExportColumnSchema),
466
+ filters: metaloworking_1.GetMetaloworkingByOperationPaginationDtoZod.omit({ page: true })
467
+ });
468
+ exports.CreateMetalloworkingStockOrderExcelExportDtoZod = zod_1.z.object({
469
+ reportType: zod_1.z.literal(ExcelExportReportType.metalloworkingStockOrderList),
470
+ columns: createUniqueColumnsSchema(exports.MetalloworkingStockOrderExcelExportColumnSchema),
471
+ filters: metaloworking_1.GetMetaloworkingPaginationDtoZod.omit({ page: true })
472
+ });
473
+ exports.CreateResultWorkExcelExportDtoZod = zod_1.z.object({
474
+ reportType: zod_1.z.literal(ExcelExportReportType.resultWorkList),
475
+ columns: createUniqueColumnsSchema(exports.ResultWorkExcelExportColumnSchema),
476
+ filters: marks_1.getResultWorkingPaginationSchemaDto.omit({ page: true })
477
+ });
309
478
  exports.CreateAssemblyOperationExcelExportDtoZod = zod_1.z.object({
310
479
  reportType: zod_1.z.literal(ExcelExportReportType.assemblyOperationList),
311
480
  columns: createUniqueColumnsSchema(exports.AssemblyOperationExcelExportColumnSchema),
@@ -344,16 +513,64 @@ exports.CreateMaterialDeficitExcelExportDtoZod = zod_1.z.object({
344
513
  columns: createUniqueColumnsSchema(exports.MaterialDeficitExcelExportColumnSchema),
345
514
  filters: material_1.GetMaterialDeficitDtoZod.omit({ page: true })
346
515
  });
516
+ exports.CreateWarehouseShipmentExcelExportSchema = zod_1.z.object({
517
+ reportType: zod_1.z.literal(ExcelExportReportType.warehouseShipmentList),
518
+ filters: shipments_1.ShipmentsPaginateSchema.omit({ offset: true, attributes: true })
519
+ });
520
+ exports.CreateShippedOrderExcelExportSchema = zod_1.z.object({
521
+ reportType: zod_1.z.literal(ExcelExportReportType.shippedOrderList),
522
+ filters: shipments_1.ShipmentCheckPaginationSchema.omit({ page: true })
523
+ });
524
+ exports.CreateWarehouseConsumptionExcelExportSchema = zod_1.z.object({
525
+ reportType: zod_1.z.literal(ExcelExportReportType.warehouseConsumptionList),
526
+ filters: expenditure_1.GetExpenditureRequestSchema.omit({ page: true })
527
+ });
528
+ exports.CreateOrderToWayExcelExportSchema = zod_1.z.object({
529
+ reportType: zod_1.z.literal(ExcelExportReportType.orderToWayList),
530
+ filters: stock_order_1.GetStockOrderPaginationSchema.omit({ page: true }).extend({
531
+ type: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
532
+ selectedIds: zod_1.z.array(zod_1.z.number().int().positive()).max(10000).optional()
533
+ })
534
+ });
535
+ exports.CreateWarehouseReceiptExcelExportSchema = zod_1.z.object({
536
+ reportType: zod_1.z.literal(ExcelExportReportType.warehouseReceiptList),
537
+ filters: stock_order_1.GetStockOrderPaginationSchema.omit({ page: true }).extend({
538
+ typeComing: zod_1.z.nativeEnum(utils_1.WaybilTypeComingEnums)
539
+ })
540
+ });
541
+ exports.CreateMovementObjectExcelExportSchema = zod_1.z.object({
542
+ reportType: zod_1.z.literal(ExcelExportReportType.movementObjectList),
543
+ filters: movement_object_1.GetOneObjectHistorySchema.innerType()
544
+ .omit({ page: true, isCheckChildrens: true })
545
+ .extend({
546
+ date: utils_1.DateRangeSchema
547
+ })
548
+ .refine(({ date }) => {
549
+ const start = new Date(date.start).getTime();
550
+ const end = new Date(date.end).getTime();
551
+ return Number.isFinite(start) && Number.isFinite(end) && start <= end;
552
+ }, { message: 'Укажите корректный диапазон дат', path: ['date'] })
553
+ });
347
554
  exports.CreateExcelExportRequestSchema = zod_1.z.discriminatedUnion('reportType', [
348
555
  exports.CreateAssemblyExcelExportDtoZod,
349
556
  exports.CreateAssemblyOperationExcelExportDtoZod,
350
557
  exports.CreateOperationPathExcelExportDtoZod,
351
558
  exports.CreateAssemblyStockOrderExcelExportDtoZod,
352
559
  exports.CreateMetalloworkingExcelExportDtoZod,
560
+ exports.CreateMetalloworkingOperationExcelExportDtoZod,
561
+ exports.CreateMetalloworkingComplectationExcelExportDtoZod,
562
+ exports.CreateMetalloworkingStockOrderExcelExportDtoZod,
563
+ exports.CreateResultWorkExcelExportDtoZod,
353
564
  exports.CreateProductDeficitExcelExportDtoZod,
354
565
  exports.CreateCbedDeficitExcelExportDtoZod,
355
566
  exports.CreateDetalDeficitExcelExportDtoZod,
356
- exports.CreateMaterialDeficitExcelExportDtoZod
567
+ exports.CreateMaterialDeficitExcelExportDtoZod,
568
+ exports.CreateWarehouseShipmentExcelExportSchema,
569
+ exports.CreateShippedOrderExcelExportSchema,
570
+ exports.CreateWarehouseConsumptionExcelExportSchema,
571
+ exports.CreateOrderToWayExcelExportSchema,
572
+ exports.CreateWarehouseReceiptExcelExportSchema,
573
+ exports.CreateMovementObjectExcelExportSchema
357
574
  ]);
358
575
  // createZodDto requires an object schema as its class base. The refinement
359
576
  // delegates validation to the strict discriminated report contract.
@@ -1 +1,2 @@
1
1
  export * from './excel-export.dto';
2
+ export * from './warehouse-excel-export';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./excel-export.dto"), exports);
18
+ __exportStar(require("./warehouse-excel-export"), exports);
@@ -0,0 +1,269 @@
1
+ import type { ExcelExportColumnValue } from './excel-export.dto';
2
+ import type { ModelShipments } from '../shipments';
3
+ /** Дополнительные значения, которые штатная складская выборка рассчитывает для строки. */
4
+ export type WarehouseShipmentExportSource = ModelShipments & {
5
+ lvl_complectation?: number;
6
+ start_time?: Date | string | null;
7
+ calculateNeedsTime?: Date | string | null;
8
+ childrenCalculateNeedsTime?: Date | string | null;
9
+ startTimeDelay?: number | null;
10
+ productionDelay?: number | null;
11
+ comment?: {
12
+ content?: string;
13
+ documents?: unknown[];
14
+ } | null;
15
+ };
16
+ /** Полные заголовки основных складских таблиц; служебные ячейки исключены. */
17
+ export declare const WarehouseShipmentExcelExportColumnDefinitions: {
18
+ readonly number: {
19
+ readonly header: "№";
20
+ readonly width: 8;
21
+ };
22
+ readonly order: {
23
+ readonly header: "Заказ";
24
+ readonly width: 24;
25
+ };
26
+ readonly article: {
27
+ readonly header: "Артикул изделия";
28
+ readonly width: 24;
29
+ };
30
+ readonly name: {
31
+ readonly header: "Наименование изделия";
32
+ readonly width: 40;
33
+ };
34
+ readonly quantity: {
35
+ readonly header: "Потребность по заказам покупателя";
36
+ readonly width: 25;
37
+ };
38
+ readonly days: {
39
+ readonly header: "Кол-во дней";
40
+ readonly width: 16;
41
+ };
42
+ readonly remainingDays: {
43
+ readonly header: "Осталось дней";
44
+ readonly width: 16;
45
+ };
46
+ readonly base: {
47
+ readonly header: "Основание";
48
+ readonly width: 32;
49
+ };
50
+ readonly buyer: {
51
+ readonly header: "Покупатель";
52
+ readonly width: 30;
53
+ };
54
+ readonly completion: {
55
+ readonly header: "Уровень комплектации";
56
+ readonly width: 23;
57
+ };
58
+ readonly status: {
59
+ readonly header: "Статус";
60
+ readonly width: 22;
61
+ };
62
+ readonly startTime: {
63
+ readonly header: "Начало работ";
64
+ readonly width: 24;
65
+ };
66
+ readonly calculatedTime: {
67
+ readonly header: "Расчётная дата изготовления";
68
+ readonly width: 26;
69
+ };
70
+ readonly warehouseDate: {
71
+ readonly header: "Дата плановой готовности склада";
72
+ readonly width: 28;
73
+ };
74
+ readonly shipmentDate: {
75
+ readonly header: "Дата плановой отгрузки";
76
+ readonly width: 24;
77
+ };
78
+ readonly actualDate: {
79
+ readonly header: "Дата фактической отгрузки";
80
+ readonly width: 25;
81
+ };
82
+ readonly readiness: {
83
+ readonly header: "Готовность к комплектации";
84
+ readonly width: 25;
85
+ };
86
+ readonly startDelay: {
87
+ readonly header: "Просрочка начала работ, ч";
88
+ readonly width: 25;
89
+ };
90
+ readonly productionDelay: {
91
+ readonly header: "Просрочка изготовления, ч";
92
+ readonly width: 25;
93
+ };
94
+ readonly comment: {
95
+ readonly header: "Комментарии";
96
+ readonly width: 40;
97
+ };
98
+ readonly metalTime: {
99
+ readonly header: "Время на МО ч/мин";
100
+ readonly width: 24;
101
+ };
102
+ readonly assemblyTime: {
103
+ readonly header: "Время на сборку ч/мин";
104
+ readonly width: 24;
105
+ };
106
+ readonly totalTime: {
107
+ readonly header: "Общая трудоемкость ч/мин";
108
+ readonly width: 26;
109
+ };
110
+ };
111
+ export declare const ShippedOrderExcelExportColumnDefinitions: {
112
+ readonly number: {
113
+ readonly header: "№";
114
+ readonly width: 8;
115
+ };
116
+ readonly date: {
117
+ readonly header: "Дата фактической отгрузки";
118
+ readonly width: 25;
119
+ };
120
+ readonly shipment: {
121
+ readonly header: "№ Отгрузки";
122
+ readonly width: 24;
123
+ };
124
+ readonly buyer: {
125
+ readonly header: "Покупатель";
126
+ readonly width: 30;
127
+ };
128
+ readonly order: {
129
+ readonly header: "№ заказа и дата";
130
+ readonly width: 24;
131
+ };
132
+ readonly article: {
133
+ readonly header: "Артикул";
134
+ readonly width: 24;
135
+ };
136
+ readonly name: {
137
+ readonly header: "Наименование изделия";
138
+ readonly width: 40;
139
+ };
140
+ };
141
+ export declare const WarehouseConsumptionExcelExportColumnDefinitions: {
142
+ readonly number: {
143
+ readonly header: "№";
144
+ readonly width: 8;
145
+ };
146
+ readonly date: {
147
+ readonly header: "Дата";
148
+ readonly width: 18;
149
+ };
150
+ readonly base: {
151
+ readonly header: "Основание";
152
+ readonly width: 30;
153
+ };
154
+ readonly order: {
155
+ readonly header: "№ заказа";
156
+ readonly width: 24;
157
+ };
158
+ readonly type: {
159
+ readonly header: "Тип сущности";
160
+ readonly width: 18;
161
+ };
162
+ readonly name: {
163
+ readonly header: "Наименование";
164
+ readonly width: 40;
165
+ };
166
+ readonly quantity: {
167
+ readonly header: "Кол-во";
168
+ readonly width: 18;
169
+ };
170
+ readonly customer: {
171
+ readonly header: "Заказчик";
172
+ readonly width: 30;
173
+ };
174
+ };
175
+ export declare const OrderToWayExcelExportColumnDefinitions: {
176
+ readonly number: {
177
+ readonly header: "№";
178
+ readonly width: 8;
179
+ };
180
+ readonly order: {
181
+ readonly header: "№ Заказа";
182
+ readonly width: 28;
183
+ };
184
+ readonly date: {
185
+ readonly header: "Дата создания";
186
+ readonly width: 18;
187
+ };
188
+ readonly provider: {
189
+ readonly header: "Поставщик";
190
+ readonly width: 30;
191
+ };
192
+ readonly bill: {
193
+ readonly header: "№ Счета и дата";
194
+ readonly width: 30;
195
+ };
196
+ readonly sum: {
197
+ readonly header: "Сумма,руб";
198
+ readonly width: 18;
199
+ };
200
+ };
201
+ export declare const WarehouseReceiptExcelExportColumnDefinitions: {
202
+ readonly number: {
203
+ readonly header: "№";
204
+ readonly width: 8;
205
+ };
206
+ readonly waybill: {
207
+ readonly header: "№ Накладной";
208
+ readonly width: 24;
209
+ };
210
+ readonly date: {
211
+ readonly header: "Дата прихода";
212
+ readonly width: 18;
213
+ };
214
+ readonly order: {
215
+ readonly header: "№ Заказа";
216
+ readonly width: 28;
217
+ };
218
+ readonly provider: {
219
+ readonly header: "Поставщик";
220
+ readonly width: 30;
221
+ };
222
+ readonly base: {
223
+ readonly header: "Основание";
224
+ readonly width: 30;
225
+ };
226
+ readonly sum: {
227
+ readonly header: "Сумма,руб";
228
+ readonly width: 18;
229
+ };
230
+ };
231
+ export declare const MovementObjectExcelExportColumnDefinitions: {
232
+ readonly number: {
233
+ readonly header: "№";
234
+ readonly width: 8;
235
+ };
236
+ readonly date: {
237
+ readonly header: "Дата и время создания";
238
+ readonly width: 26;
239
+ };
240
+ readonly name: {
241
+ readonly header: "Наименование";
242
+ readonly width: 40;
243
+ };
244
+ readonly user: {
245
+ readonly header: "Ответственный";
246
+ readonly width: 24;
247
+ };
248
+ readonly type: {
249
+ readonly header: "Тип";
250
+ readonly width: 18;
251
+ };
252
+ readonly before: {
253
+ readonly header: "Начальный остаток";
254
+ readonly width: 22;
255
+ };
256
+ readonly movement: {
257
+ readonly header: "Приход / Расход";
258
+ readonly width: 22;
259
+ };
260
+ readonly remainder: {
261
+ readonly header: "Конечный остаток";
262
+ readonly width: 22;
263
+ };
264
+ readonly base: {
265
+ readonly header: "Основание";
266
+ readonly width: 32;
267
+ };
268
+ };
269
+ export type WarehouseExcelExportRow = Record<string, ExcelExportColumnValue>;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MovementObjectExcelExportColumnDefinitions = exports.WarehouseReceiptExcelExportColumnDefinitions = exports.OrderToWayExcelExportColumnDefinitions = exports.WarehouseConsumptionExcelExportColumnDefinitions = exports.ShippedOrderExcelExportColumnDefinitions = exports.WarehouseShipmentExcelExportColumnDefinitions = void 0;
4
+ /** Полные заголовки основных складских таблиц; служебные ячейки исключены. */
5
+ exports.WarehouseShipmentExcelExportColumnDefinitions = {
6
+ number: { header: '№', width: 8 },
7
+ order: { header: 'Заказ', width: 24 },
8
+ article: { header: 'Артикул изделия', width: 24 },
9
+ name: { header: 'Наименование изделия', width: 40 },
10
+ quantity: { header: 'Потребность по заказам покупателя', width: 25 },
11
+ days: { header: 'Кол-во дней', width: 16 },
12
+ remainingDays: { header: 'Осталось дней', width: 16 },
13
+ base: { header: 'Основание', width: 32 },
14
+ buyer: { header: 'Покупатель', width: 30 },
15
+ completion: { header: 'Уровень комплектации', width: 23 },
16
+ status: { header: 'Статус', width: 22 },
17
+ startTime: { header: 'Начало работ', width: 24 },
18
+ calculatedTime: { header: 'Расчётная дата изготовления', width: 26 },
19
+ warehouseDate: { header: 'Дата плановой готовности склада', width: 28 },
20
+ shipmentDate: { header: 'Дата плановой отгрузки', width: 24 },
21
+ actualDate: { header: 'Дата фактической отгрузки', width: 25 },
22
+ readiness: { header: 'Готовность к комплектации', width: 25 },
23
+ startDelay: { header: 'Просрочка начала работ, ч', width: 25 },
24
+ productionDelay: { header: 'Просрочка изготовления, ч', width: 25 },
25
+ comment: { header: 'Комментарии', width: 40 },
26
+ metalTime: { header: 'Время на МО ч/мин', width: 24 },
27
+ assemblyTime: { header: 'Время на сборку ч/мин', width: 24 },
28
+ totalTime: { header: 'Общая трудоемкость ч/мин', width: 26 }
29
+ };
30
+ exports.ShippedOrderExcelExportColumnDefinitions = {
31
+ number: { header: '№', width: 8 },
32
+ date: { header: 'Дата фактической отгрузки', width: 25 },
33
+ shipment: { header: '№ Отгрузки', width: 24 },
34
+ buyer: { header: 'Покупатель', width: 30 },
35
+ order: { header: '№ заказа и дата', width: 24 },
36
+ article: { header: 'Артикул', width: 24 },
37
+ name: { header: 'Наименование изделия', width: 40 }
38
+ };
39
+ exports.WarehouseConsumptionExcelExportColumnDefinitions = {
40
+ number: { header: '№', width: 8 },
41
+ date: { header: 'Дата', width: 18 },
42
+ base: { header: 'Основание', width: 30 },
43
+ order: { header: '№ заказа', width: 24 },
44
+ type: { header: 'Тип сущности', width: 18 },
45
+ name: { header: 'Наименование', width: 40 },
46
+ quantity: { header: 'Кол-во', width: 18 },
47
+ customer: { header: 'Заказчик', width: 30 }
48
+ };
49
+ exports.OrderToWayExcelExportColumnDefinitions = {
50
+ number: { header: '№', width: 8 },
51
+ order: { header: '№ Заказа', width: 28 },
52
+ date: { header: 'Дата создания', width: 18 },
53
+ provider: { header: 'Поставщик', width: 30 },
54
+ bill: { header: '№ Счета и дата', width: 30 },
55
+ sum: { header: 'Сумма,руб', width: 18 }
56
+ };
57
+ exports.WarehouseReceiptExcelExportColumnDefinitions = {
58
+ number: { header: '№', width: 8 },
59
+ waybill: { header: '№ Накладной', width: 24 },
60
+ date: { header: 'Дата прихода', width: 18 },
61
+ order: { header: '№ Заказа', width: 28 },
62
+ provider: { header: 'Поставщик', width: 30 },
63
+ base: { header: 'Основание', width: 30 },
64
+ sum: { header: 'Сумма,руб', width: 18 }
65
+ };
66
+ exports.MovementObjectExcelExportColumnDefinitions = {
67
+ number: { header: '№', width: 8 },
68
+ date: { header: 'Дата и время создания', width: 26 },
69
+ name: { header: 'Наименование', width: 40 },
70
+ user: { header: 'Ответственный', width: 24 },
71
+ type: { header: 'Тип', width: 18 },
72
+ before: { header: 'Начальный остаток', width: 22 },
73
+ movement: { header: 'Приход / Расход', width: 22 },
74
+ remainder: { header: 'Конечный остаток', width: 22 },
75
+ base: { header: 'Основание', width: 32 }
76
+ };
package/dist/index.d.ts CHANGED
@@ -41,4 +41,5 @@ export * from './movement-error';
41
41
  export * from './exclusion';
42
42
  export * from './planning';
43
43
  export * from './ai-mcp';
44
+ export * from './bull-queue';
44
45
  export * from './excel-export';
package/dist/index.js CHANGED
@@ -57,4 +57,5 @@ __exportStar(require("./movement-error"), exports);
57
57
  __exportStar(require("./exclusion"), exports);
58
58
  __exportStar(require("./planning"), exports);
59
59
  __exportStar(require("./ai-mcp"), exports);
60
+ __exportStar(require("./bull-queue"), exports);
60
61
  __exportStar(require("./excel-export"), exports);
@@ -17,7 +17,7 @@ exports.SplitProductionTaskPositionDtoZod = zod_1.z.object({
17
17
  exports.SplitProductionTaskDtoZod = zod_1.z.object({
18
18
  positions: zod_1.z
19
19
  .array(exports.SplitProductionTaskPositionDtoZod)
20
- .length(1, 'За один раз можно декомпозировать только одну сущность ПЗ')
20
+ .length(1, 'За один раз можно разделить только одну сущность ПЗ')
21
21
  .superRefine((positions, ctx) => {
22
22
  const positionIds = positions.map(position => position.productionOperationPosId);
23
23
  if (new Set(positionIds).size !== positionIds.length) {