@pksep/zod-shared 0.0.562 → 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 +1414 -189
- package/dist/excel-export/excel-export.dto.js +162 -1
- package/package.json +2 -2
- 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,12 +1,13 @@
|
|
|
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.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
6
|
const cbed_1 = require("../cbed");
|
|
7
7
|
const detal_1 = require("../detal");
|
|
8
8
|
const material_1 = require("../material");
|
|
9
9
|
const metaloworking_1 = require("../metaloworking");
|
|
10
|
+
const marks_1 = require("../marks");
|
|
10
11
|
const product_1 = require("../product");
|
|
11
12
|
var ExcelExportReportType;
|
|
12
13
|
(function (ExcelExportReportType) {
|
|
@@ -15,6 +16,10 @@ var ExcelExportReportType;
|
|
|
15
16
|
ExcelExportReportType["operationPath"] = "production.operation-path";
|
|
16
17
|
ExcelExportReportType["assemblyStockOrderList"] = "assembly.stock-order-list";
|
|
17
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";
|
|
18
23
|
ExcelExportReportType["productDeficitList"] = "warehouse.product-deficit-list";
|
|
19
24
|
ExcelExportReportType["cbedDeficitList"] = "warehouse.cbed-deficit-list";
|
|
20
25
|
ExcelExportReportType["detalDeficitList"] = "warehouse.detal-deficit-list";
|
|
@@ -89,6 +94,134 @@ exports.MetalloworkingExcelExportColumnDefinitions = {
|
|
|
89
94
|
},
|
|
90
95
|
waste: { header: 'Отходы (стружка), кг', width: 22 }
|
|
91
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
|
+
};
|
|
92
225
|
exports.AssemblyOperationExcelExportColumnDefinitions = {
|
|
93
226
|
number: { header: '№', width: 8 },
|
|
94
227
|
image: { header: 'Изображение', width: 20 },
|
|
@@ -283,6 +416,10 @@ exports.MaterialDeficitExcelExportColumnDefinitions = {
|
|
|
283
416
|
const getColumnDefinitionKeys = (definitions) => Object.keys(definitions);
|
|
284
417
|
exports.AssemblyExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyExcelExportColumnDefinitions));
|
|
285
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));
|
|
286
423
|
exports.AssemblyOperationExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyOperationExcelExportColumnDefinitions));
|
|
287
424
|
exports.OperationPathExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.OperationPathExcelExportColumnDefinitions));
|
|
288
425
|
exports.AssemblyStockOrderExcelExportColumnSchema = zod_1.z.enum(getColumnDefinitionKeys(exports.AssemblyStockOrderExcelExportColumnDefinitions));
|
|
@@ -306,6 +443,26 @@ exports.CreateMetalloworkingExcelExportDtoZod = zod_1.z.object({
|
|
|
306
443
|
columns: createUniqueColumnsSchema(exports.MetalloworkingExcelExportColumnSchema),
|
|
307
444
|
filters: metaloworking_1.GetMetaloworkingPaginationDtoZod.omit({ page: true })
|
|
308
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
|
+
});
|
|
309
466
|
exports.CreateAssemblyOperationExcelExportDtoZod = zod_1.z.object({
|
|
310
467
|
reportType: zod_1.z.literal(ExcelExportReportType.assemblyOperationList),
|
|
311
468
|
columns: createUniqueColumnsSchema(exports.AssemblyOperationExcelExportColumnSchema),
|
|
@@ -350,6 +507,10 @@ exports.CreateExcelExportRequestSchema = zod_1.z.discriminatedUnion('reportType'
|
|
|
350
507
|
exports.CreateOperationPathExcelExportDtoZod,
|
|
351
508
|
exports.CreateAssemblyStockOrderExcelExportDtoZod,
|
|
352
509
|
exports.CreateMetalloworkingExcelExportDtoZod,
|
|
510
|
+
exports.CreateMetalloworkingOperationExcelExportDtoZod,
|
|
511
|
+
exports.CreateMetalloworkingComplectationExcelExportDtoZod,
|
|
512
|
+
exports.CreateMetalloworkingStockOrderExcelExportDtoZod,
|
|
513
|
+
exports.CreateResultWorkExcelExportDtoZod,
|
|
353
514
|
exports.CreateProductDeficitExcelExportDtoZod,
|
|
354
515
|
exports.CreateCbedDeficitExcelExportDtoZod,
|
|
355
516
|
exports.CreateDetalDeficitExcelExportDtoZod,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pksep/zod-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.563",
|
|
4
4
|
"description": "Zod package for erp project. Contains dto, interfaces, schems, types, enum",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"changelogen": "^0.6.1"
|
|
37
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'];
|
|
@@ -1,118 +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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ErpEntityEditorUpdateInputZod = exports.ErpEntityEditorGetInputZod = exports.ErpEntityEditorUpdateInputShape = exports.ErpEntityEditorGetInputShape = void 0;
|
|
37
|
-
const z = __importStar(require("zod/v4"));
|
|
38
|
-
const ai_mcp_schema_1 = require("./ai-mcp.schema");
|
|
39
|
-
const entityReferenceShape = {
|
|
40
|
-
type: ai_mcp_schema_1.AiMcpEntityTypeZod,
|
|
41
|
-
entityName: z.string().trim().min(1).max(255).optional(),
|
|
42
|
-
entityDesignation: z.string().trim().min(1).max(255).optional()
|
|
43
|
-
};
|
|
44
|
-
const editableVariableZod = z.object({
|
|
45
|
-
name: z.string().trim().min(1).max(255),
|
|
46
|
-
unit: z.string().trim().max(50),
|
|
47
|
-
value: z.union([z.string().max(1000), z.number()])
|
|
48
|
-
});
|
|
49
|
-
const detailProductionTimesZod = z.object({
|
|
50
|
-
preparation: z.union([z.string().max(100), z.number()]),
|
|
51
|
-
helper: z.union([z.string().max(100), z.number()]),
|
|
52
|
-
main: z.union([z.string().max(100), z.number()])
|
|
53
|
-
});
|
|
54
|
-
const detailWorkpieceCharacteristicsZod = z.object({
|
|
55
|
-
diameter: z.number(),
|
|
56
|
-
billetLength: z.number(),
|
|
57
|
-
length: z.number(),
|
|
58
|
-
width: z.number(),
|
|
59
|
-
height: z.number(),
|
|
60
|
-
wallThickness: z.number(),
|
|
61
|
-
outsideDiameter: z.number(),
|
|
62
|
-
thickness: z.number(),
|
|
63
|
-
crossSectionArea: z.number(),
|
|
64
|
-
acrossFlats: z.number(),
|
|
65
|
-
massPerMeter: z.number(),
|
|
66
|
-
density: z.number(),
|
|
67
|
-
mass: z.number(),
|
|
68
|
-
waste: z.number()
|
|
69
|
-
});
|
|
70
|
-
exports.ErpEntityEditorGetInputShape = Object.assign(Object.assign({}, entityReferenceShape), { includeArchived: z.boolean().default(false) });
|
|
71
|
-
exports.ErpEntityEditorUpdateInputShape = Object.assign(Object.assign({}, entityReferenceShape), { changes: z.object({
|
|
72
|
-
name: z.string().trim().min(1).max(255).optional(),
|
|
73
|
-
designation: z.string().trim().max(255).optional(),
|
|
74
|
-
article: z.string().trim().max(255).optional(),
|
|
75
|
-
responsibleName: z.string().trim().min(1).max(255).optional(),
|
|
76
|
-
description: z.string().max(4000).optional(),
|
|
77
|
-
attention: z.boolean().optional(),
|
|
78
|
-
custom: z.boolean().optional(),
|
|
79
|
-
discontinued: z.boolean().optional(),
|
|
80
|
-
parameters: z.array(editableVariableZod).max(100).optional(),
|
|
81
|
-
characteristics: z.array(editableVariableZod).min(1).max(100).optional(),
|
|
82
|
-
detailProductionTimes: detailProductionTimesZod.optional(),
|
|
83
|
-
workpieceCharacteristics: detailWorkpieceCharacteristicsZod.optional(),
|
|
84
|
-
mainMaterialName: z.string().trim().min(1).max(255).nullable().optional(),
|
|
85
|
-
replacementMaterialName: z
|
|
86
|
-
.string()
|
|
87
|
-
.trim()
|
|
88
|
-
.min(1)
|
|
89
|
-
.max(255)
|
|
90
|
-
.nullable()
|
|
91
|
-
.optional()
|
|
92
|
-
}), idempotencyKey: z
|
|
93
|
-
.string()
|
|
94
|
-
.trim()
|
|
95
|
-
.min(8)
|
|
96
|
-
.max(128)
|
|
97
|
-
.regex(/^[a-zA-Z0-9._:-]+$/) });
|
|
98
|
-
exports.ErpEntityEditorGetInputZod = z
|
|
99
|
-
.object(exports.ErpEntityEditorGetInputShape)
|
|
100
|
-
.refine(input => input.entityName || input.entityDesignation, {
|
|
101
|
-
message: 'Укажите название или обозначение сущности ERP.'
|
|
102
|
-
});
|
|
103
|
-
exports.ErpEntityEditorUpdateInputZod = z
|
|
104
|
-
.object(exports.ErpEntityEditorUpdateInputShape)
|
|
105
|
-
.superRefine((input, context) => {
|
|
106
|
-
if (!input.entityName && !input.entityDesignation) {
|
|
107
|
-
context.addIssue({
|
|
108
|
-
code: 'custom',
|
|
109
|
-
message: 'Укажите название или обозначение сущности ERP.'
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
if (Object.keys(input.changes).length === 0) {
|
|
113
|
-
context.addIssue({
|
|
114
|
-
code: 'custom',
|
|
115
|
-
message: 'Укажите хотя бы одно изменение карточки ERP.'
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
});
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod/v4';
|
|
2
|
-
import { IzdType, SpetificationEntityKeys } from '../../utils';
|
|
3
|
-
export declare const ErpSpecificationItemAddInputShape: {
|
|
4
|
-
quantity: z.ZodNumber;
|
|
5
|
-
measureId: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
parentType: z.ZodEnum<{
|
|
8
|
-
product: IzdType.product;
|
|
9
|
-
cbed: IzdType.cbed;
|
|
10
|
-
detal: IzdType.detal;
|
|
11
|
-
}>;
|
|
12
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
13
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
14
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
15
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
16
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
17
|
-
idempotencyKey: z.ZodString;
|
|
18
|
-
};
|
|
19
|
-
export declare const ErpSpecificationItemUpdateInputShape: {
|
|
20
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
measureId: z.ZodOptional<z.ZodNumber>;
|
|
22
|
-
parentType: z.ZodEnum<{
|
|
23
|
-
product: IzdType.product;
|
|
24
|
-
cbed: IzdType.cbed;
|
|
25
|
-
detal: IzdType.detal;
|
|
26
|
-
}>;
|
|
27
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
28
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
29
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
30
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
31
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
32
|
-
idempotencyKey: z.ZodString;
|
|
33
|
-
};
|
|
34
|
-
export declare const ErpSpecificationItemMoveInputShape: {
|
|
35
|
-
position: z.ZodNumber;
|
|
36
|
-
parentType: z.ZodEnum<{
|
|
37
|
-
product: IzdType.product;
|
|
38
|
-
cbed: IzdType.cbed;
|
|
39
|
-
detal: IzdType.detal;
|
|
40
|
-
}>;
|
|
41
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
42
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
43
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
44
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
45
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
46
|
-
idempotencyKey: z.ZodString;
|
|
47
|
-
};
|
|
48
|
-
export declare const ErpSpecificationItemRemoveInputShape: {
|
|
49
|
-
parentType: z.ZodEnum<{
|
|
50
|
-
product: IzdType.product;
|
|
51
|
-
cbed: IzdType.cbed;
|
|
52
|
-
detal: IzdType.detal;
|
|
53
|
-
}>;
|
|
54
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
55
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
56
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
57
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
58
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
59
|
-
idempotencyKey: z.ZodString;
|
|
60
|
-
};
|
|
61
|
-
export declare const ErpSpecificationItemAddInputZod: z.ZodObject<{
|
|
62
|
-
quantity: z.ZodNumber;
|
|
63
|
-
measureId: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
65
|
-
parentType: z.ZodEnum<{
|
|
66
|
-
product: IzdType.product;
|
|
67
|
-
cbed: IzdType.cbed;
|
|
68
|
-
detal: IzdType.detal;
|
|
69
|
-
}>;
|
|
70
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
71
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
72
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
73
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
74
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
75
|
-
idempotencyKey: z.ZodString;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
export declare const ErpSpecificationItemUpdateInputZod: z.ZodObject<{
|
|
78
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
79
|
-
measureId: z.ZodOptional<z.ZodNumber>;
|
|
80
|
-
parentType: z.ZodEnum<{
|
|
81
|
-
product: IzdType.product;
|
|
82
|
-
cbed: IzdType.cbed;
|
|
83
|
-
detal: IzdType.detal;
|
|
84
|
-
}>;
|
|
85
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
86
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
87
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
88
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
89
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
90
|
-
idempotencyKey: z.ZodString;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
export declare const ErpSpecificationItemMoveInputZod: z.ZodObject<{
|
|
93
|
-
position: z.ZodNumber;
|
|
94
|
-
parentType: z.ZodEnum<{
|
|
95
|
-
product: IzdType.product;
|
|
96
|
-
cbed: IzdType.cbed;
|
|
97
|
-
detal: IzdType.detal;
|
|
98
|
-
}>;
|
|
99
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
100
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
101
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
102
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
103
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
104
|
-
idempotencyKey: z.ZodString;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
export declare const ErpSpecificationItemRemoveInputZod: z.ZodObject<{
|
|
107
|
-
parentType: z.ZodEnum<{
|
|
108
|
-
product: IzdType.product;
|
|
109
|
-
cbed: IzdType.cbed;
|
|
110
|
-
detal: IzdType.detal;
|
|
111
|
-
}>;
|
|
112
|
-
parentName: z.ZodOptional<z.ZodString>;
|
|
113
|
-
parentDesignation: z.ZodOptional<z.ZodString>;
|
|
114
|
-
section: z.ZodEnum<typeof SpetificationEntityKeys>;
|
|
115
|
-
itemName: z.ZodOptional<z.ZodString>;
|
|
116
|
-
itemDesignation: z.ZodOptional<z.ZodString>;
|
|
117
|
-
idempotencyKey: z.ZodString;
|
|
118
|
-
}, z.core.$strip>;
|
|
119
|
-
export type TErpSpecificationItemAddInput = z.infer<typeof ErpSpecificationItemAddInputZod>;
|
|
120
|
-
export type TErpSpecificationItemUpdateInput = z.infer<typeof ErpSpecificationItemUpdateInputZod>;
|
|
121
|
-
export type TErpSpecificationItemMoveInput = z.infer<typeof ErpSpecificationItemMoveInputZod>;
|
|
122
|
-
export type TErpSpecificationItemRemoveInput = z.infer<typeof ErpSpecificationItemRemoveInputZod>;
|
|
123
|
-
export type TErpSpecificationMutationInput = TErpSpecificationItemAddInput | TErpSpecificationItemUpdateInput | TErpSpecificationItemMoveInput | TErpSpecificationItemRemoveInput;
|