@pksep/zod-shared 0.0.559 → 0.0.561

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 (110) hide show
  1. package/dist/ai-mcp/index.d.ts +2 -0
  2. package/dist/{library → ai-mcp}/index.js +2 -5
  3. package/dist/ai-mcp/interfaces/ai-mcp.interface.d.ts +358 -0
  4. package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.d.ts +130 -0
  5. package/dist/ai-mcp/schemas/ai-mcp-entity-editor.schema.js +118 -0
  6. package/dist/ai-mcp/schemas/ai-mcp-specification.schema.d.ts +123 -0
  7. package/dist/ai-mcp/schemas/ai-mcp-specification.schema.js +110 -0
  8. package/dist/ai-mcp/schemas/ai-mcp.schema.d.ts +384 -0
  9. package/dist/ai-mcp/schemas/ai-mcp.schema.js +210 -0
  10. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +28 -0
  11. package/dist/assemble/dto/set-date-shipment.dto.d.ts +2 -2
  12. package/dist/assemble/interfaces/interfaces.d.ts +8 -0
  13. package/dist/assemble/schemas/assemble-coming.schema.d.ts +20 -0
  14. package/dist/assemble/schemas/assemble.schema.d.ts +20 -0
  15. package/dist/cbed/dto/up-create-cbed.dto.d.ts +3 -0
  16. package/dist/cbed/dto/up-create-cbed.dto.js +1 -0
  17. package/dist/deliveries/dto/all-delivery-pagination.dto.d.ts +4 -1
  18. package/dist/deliveries/dto/all-delivery-pagination.dto.js +4 -1
  19. package/dist/deliveries/dto/create-deliveries.dto.d.ts +6 -6
  20. package/dist/detal/dto/archive-detal.dto.d.ts +17 -0
  21. package/dist/detal/dto/archive-detal.dto.js +10 -0
  22. package/dist/detal/dto/update-detal.dto.d.ts +342 -17
  23. package/dist/detal/dto/update-detal.dto.js +88 -27
  24. package/dist/detal/index.d.ts +1 -0
  25. package/dist/detal/index.js +1 -0
  26. package/dist/document/dto/entity-document-command.dto.d.ts +184 -0
  27. package/dist/document/dto/entity-document-command.dto.js +59 -0
  28. package/dist/document/index.d.ts +2 -0
  29. package/dist/document/index.js +2 -0
  30. package/dist/document/interfaces/entity-document.interface.d.ts +30 -0
  31. package/dist/excel-export/excel-export.dto.d.ts +1666 -0
  32. package/dist/excel-export/excel-export.dto.js +237 -0
  33. package/dist/excel-export/index.d.ts +1 -0
  34. package/dist/{issue → excel-export}/index.js +1 -5
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +2 -0
  37. package/dist/marks/type/type.d.ts +4 -4
  38. package/dist/material/dto/create-material.dto.d.ts +3 -0
  39. package/dist/material/dto/create-material.dto.js +2 -1
  40. package/dist/product/dto/up-create-product.dto.d.ts +3 -0
  41. package/dist/product/dto/up-create-product.dto.js +1 -0
  42. package/dist/production-tasks/dto/change-due-date.dto.d.ts +2 -2
  43. package/dist/production-tasks/dto/get-production-task-display-numbers.dto.d.ts +20 -0
  44. package/dist/production-tasks/dto/get-production-task-display-numbers.dto.js +11 -0
  45. package/dist/production-tasks/dto/plan-production-task.dto.d.ts +34 -0
  46. package/dist/production-tasks/dto/plan-production-task.dto.js +21 -2
  47. package/dist/production-tasks/dto/split-production-task.dto.d.ts +203 -0
  48. package/dist/production-tasks/dto/split-production-task.dto.js +71 -0
  49. package/dist/production-tasks/dto/update.dto.d.ts +2 -2
  50. package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +2 -2
  51. package/dist/production-tasks/enums/production-tasks.d.ts +10 -0
  52. package/dist/production-tasks/enums/production-tasks.js +12 -1
  53. package/dist/production-tasks/index.d.ts +3 -0
  54. package/dist/production-tasks/index.js +3 -0
  55. package/dist/production-tasks/interfaces/production-tasks.d.ts +4 -0
  56. package/dist/production-tasks/methods/methods.d.ts +9 -0
  57. package/dist/production-tasks/methods/methods.js +16 -1
  58. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +55 -8
  59. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +9 -0
  60. package/dist/production-tasks/schemas/production-task-subtask.schema.d.ts +81 -0
  61. package/dist/production-tasks/schemas/production-task.schema.d.ts +14 -0
  62. package/dist/production-tasks/schemas/production-task.schema.js +4 -0
  63. package/dist/specification/dto/mutate-specification.dto.d.ts +58 -0
  64. package/dist/specification/dto/mutate-specification.dto.js +65 -0
  65. package/dist/specification/index.d.ts +1 -0
  66. package/dist/specification/index.js +1 -0
  67. package/dist/specification/interface/interface.d.ts +17 -0
  68. package/dist/utils/methods/sequelize.d.ts +2 -0
  69. package/dist/utils/methods/sequelize.js +4 -1
  70. package/dist/utils/methods.js +30 -10
  71. package/dist/utils/tables-config/enum.d.ts +5 -0
  72. package/dist/utils/tables-config/enum.js +10 -0
  73. package/dist/utils/types/types.d.ts +10 -1
  74. package/dist/utils/validation/transform.d.ts +2 -0
  75. package/dist/utils/validation/transform.js +25 -1
  76. package/package.json +38 -38
  77. package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
  78. package/dist/issue/dto/up-create-issue.dto.js +0 -21
  79. package/dist/issue/index.d.ts +0 -5
  80. package/dist/issue/interfaces/interface.d.ts +0 -4
  81. package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
  82. package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
  83. package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
  84. package/dist/issue/schemas/issue-user.schema.js +0 -9
  85. package/dist/issue/schemas/issue.schema.d.ts +0 -51
  86. package/dist/issue/schemas/issue.schema.js +0 -21
  87. package/dist/library/dto/create-chapter.dto.d.ts +0 -12
  88. package/dist/library/dto/create-chapter.dto.js +0 -8
  89. package/dist/library/dto/create-link.dto.d.ts +0 -30
  90. package/dist/library/dto/create-link.dto.js +0 -14
  91. package/dist/library/index.d.ts +0 -5
  92. package/dist/library/interfaces/interface.d.ts +0 -3
  93. package/dist/library/schemas/links-user.schema.d.ts +0 -15
  94. package/dist/library/schemas/links-user.schema.js +0 -9
  95. package/dist/library/schemas/links.schema.d.ts +0 -30
  96. package/dist/library/schemas/links.schema.js +0 -14
  97. package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
  98. package/dist/production-tasks/dto/update-marks.dto.js +0 -8
  99. package/dist/production-tasks/dto/update-responsible.dto.d.ts +0 -12
  100. package/dist/production-tasks/dto/update-responsible.dto.js +0 -8
  101. package/dist/production-tasks/dto/update-status.dto.d.ts +0 -13
  102. package/dist/production-tasks/dto/update-status.dto.js +0 -9
  103. package/dist/shipments/dto/change-date-urgency.dto.d.ts +0 -12
  104. package/dist/shipments/dto/change-date-urgency.dto.js +0 -8
  105. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
  106. package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
  107. package/dist/utils/interface/mat.interface.d.ts +0 -10
  108. /package/dist/{issue/interfaces/interface.js → ai-mcp/interfaces/ai-mcp.interface.js} +0 -0
  109. /package/dist/{library/interfaces/interface.js → document/interfaces/entity-document.interface.js} +0 -0
  110. /package/dist/{utils/interface/mat.interface.js → production-tasks/schemas/production-task-subtask.schema.js} +0 -0
@@ -0,0 +1,210 @@
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.ErpFileRestoreInputZod = exports.ErpFileArchiveInputZod = exports.ErpFileUpdateInputZod = exports.ErpEntityFileMainSetInputZod = exports.ErpEntityFileDetachInputZod = exports.ErpEntityFileUploadInputZod = exports.ErpEntityFileAttachInputZod = exports.ErpFilesSearchInputZod = exports.ErpEntityFilesListInputZod = exports.ErpDetailArchiveInputZod = exports.ErpDetailCreateAndAddToCbedInputZod = exports.ErpProductHistoryGetInputZod = exports.ErpProductTechnologyGetInputZod = exports.ErpProductProductionStateGetInputZod = exports.ErpProductSpecificationGetInputZod = exports.ErpProductGetInputZod = exports.ErpProductSearchInputZod = exports.ErpEntityGetInputZod = exports.ErpEntitySearchInputZod = exports.ErpFileRestoreInputShape = exports.ErpFileArchiveInputShape = exports.ErpFileUpdateInputShape = exports.ErpEntityFileMainSetInputShape = exports.ErpEntityFileDetachInputShape = exports.ErpEntityFileUploadInputShape = exports.ErpEntityFileAttachInputShape = exports.ErpFilesSearchInputShape = exports.ErpEntityFilesListInputShape = exports.ErpDetailArchiveInputShape = exports.ErpDetailCreateAndAddToCbedInputShape = exports.ErpProductHistoryGetInputShape = exports.ErpProductTechnologyGetInputShape = exports.ErpProductProductionStateGetInputShape = exports.ErpProductSpecificationGetInputShape = exports.ErpProductGetInputShape = exports.ErpProductSearchInputShape = exports.ErpEntityGetInputShape = exports.ErpEntitySearchInputShape = exports.AiMcpEntityTypeZod = exports.AI_MCP_ENTITY_TYPES = exports.ErpDocumentStateEnum = exports.ErpProductSpecificationViewEnum = exports.ErpProductSpecificationKindEnum = exports.ErpProductTechnologyStateEnum = exports.ErpProductStateEnum = exports.AiMcpCommandStatusEnum = exports.AiMcpOperationNameEnum = exports.AiMcpOperationStatusEnum = void 0;
37
+ const z = __importStar(require("zod/v4"));
38
+ const utils_1 = require("../../utils");
39
+ var AiMcpOperationStatusEnum;
40
+ (function (AiMcpOperationStatusEnum) {
41
+ AiMcpOperationStatusEnum["pending"] = "pending";
42
+ AiMcpOperationStatusEnum["completed"] = "completed";
43
+ })(AiMcpOperationStatusEnum || (exports.AiMcpOperationStatusEnum = AiMcpOperationStatusEnum = {}));
44
+ var AiMcpOperationNameEnum;
45
+ (function (AiMcpOperationNameEnum) {
46
+ AiMcpOperationNameEnum["createDetailAndAddToCbed"] = "create-detail-and-add-to-cbed";
47
+ AiMcpOperationNameEnum["archiveDetail"] = "archive-detail";
48
+ AiMcpOperationNameEnum["uploadAndAttachEntityDocument"] = "upload-and-attach-entity-document";
49
+ AiMcpOperationNameEnum["attachEntityDocument"] = "attach-entity-document";
50
+ AiMcpOperationNameEnum["detachEntityDocument"] = "detach-entity-document";
51
+ AiMcpOperationNameEnum["setMainEntityDocument"] = "set-main-entity-document";
52
+ AiMcpOperationNameEnum["updateDocument"] = "update-document";
53
+ AiMcpOperationNameEnum["archiveDocument"] = "archive-document";
54
+ AiMcpOperationNameEnum["restoreDocument"] = "restore-document";
55
+ })(AiMcpOperationNameEnum || (exports.AiMcpOperationNameEnum = AiMcpOperationNameEnum = {}));
56
+ var AiMcpCommandStatusEnum;
57
+ (function (AiMcpCommandStatusEnum) {
58
+ AiMcpCommandStatusEnum["queued"] = "queued";
59
+ })(AiMcpCommandStatusEnum || (exports.AiMcpCommandStatusEnum = AiMcpCommandStatusEnum = {}));
60
+ var ErpProductStateEnum;
61
+ (function (ErpProductStateEnum) {
62
+ ErpProductStateEnum["active"] = "active";
63
+ ErpProductStateEnum["discontinued"] = "discontinued";
64
+ ErpProductStateEnum["archived"] = "archived";
65
+ ErpProductStateEnum["all"] = "all";
66
+ })(ErpProductStateEnum || (exports.ErpProductStateEnum = ErpProductStateEnum = {}));
67
+ var ErpProductTechnologyStateEnum;
68
+ (function (ErpProductTechnologyStateEnum) {
69
+ ErpProductTechnologyStateEnum["any"] = "any";
70
+ ErpProductTechnologyStateEnum["configured"] = "configured";
71
+ ErpProductTechnologyStateEnum["missing"] = "missing";
72
+ })(ErpProductTechnologyStateEnum || (exports.ErpProductTechnologyStateEnum = ErpProductTechnologyStateEnum = {}));
73
+ var ErpProductSpecificationKindEnum;
74
+ (function (ErpProductSpecificationKindEnum) {
75
+ ErpProductSpecificationKindEnum["assembly"] = "assembly";
76
+ ErpProductSpecificationKindEnum["detail"] = "detail";
77
+ ErpProductSpecificationKindEnum["purchased"] = "purchased";
78
+ ErpProductSpecificationKindEnum["material"] = "material";
79
+ })(ErpProductSpecificationKindEnum || (exports.ErpProductSpecificationKindEnum = ErpProductSpecificationKindEnum = {}));
80
+ var ErpProductSpecificationViewEnum;
81
+ (function (ErpProductSpecificationViewEnum) {
82
+ ErpProductSpecificationViewEnum["direct"] = "direct";
83
+ ErpProductSpecificationViewEnum["tree"] = "tree";
84
+ })(ErpProductSpecificationViewEnum || (exports.ErpProductSpecificationViewEnum = ErpProductSpecificationViewEnum = {}));
85
+ var ErpDocumentStateEnum;
86
+ (function (ErpDocumentStateEnum) {
87
+ ErpDocumentStateEnum["active"] = "active";
88
+ ErpDocumentStateEnum["archived"] = "archived";
89
+ ErpDocumentStateEnum["all"] = "all";
90
+ })(ErpDocumentStateEnum || (exports.ErpDocumentStateEnum = ErpDocumentStateEnum = {}));
91
+ exports.AI_MCP_ENTITY_TYPES = [
92
+ utils_1.IzdType.product,
93
+ utils_1.IzdType.cbed,
94
+ utils_1.IzdType.detal
95
+ ];
96
+ exports.AiMcpEntityTypeZod = z.enum(exports.AI_MCP_ENTITY_TYPES);
97
+ exports.ErpEntitySearchInputShape = {
98
+ query: z.string().trim().min(1).max(200),
99
+ types: z.array(exports.AiMcpEntityTypeZod).max(3).optional(),
100
+ limit: z.number().int().min(1).max(20).default(10)
101
+ };
102
+ exports.ErpEntityGetInputShape = {
103
+ type: exports.AiMcpEntityTypeZod,
104
+ id: z.number().int().min(1)
105
+ };
106
+ exports.ErpProductSearchInputShape = {
107
+ query: z.string().trim().max(200).default(''),
108
+ state: z.nativeEnum(ErpProductStateEnum).default(ErpProductStateEnum.active),
109
+ responsibleQuery: z.string().trim().max(200).optional(),
110
+ attention: z.boolean().optional(),
111
+ technology: z
112
+ .nativeEnum(ErpProductTechnologyStateEnum)
113
+ .default(ErpProductTechnologyStateEnum.any),
114
+ limit: z.number().int().min(1).max(20).default(10),
115
+ offset: z.number().int().min(0).max(10000).default(0)
116
+ };
117
+ exports.ErpProductGetInputShape = {
118
+ id: z.number().int().min(1),
119
+ includeArchived: z.boolean().default(false)
120
+ };
121
+ exports.ErpProductSpecificationGetInputShape = {
122
+ id: z.number().int().min(1),
123
+ view: z
124
+ .nativeEnum(ErpProductSpecificationViewEnum)
125
+ .default(ErpProductSpecificationViewEnum.direct),
126
+ maxDepth: z.number().int().min(1).max(5).default(3),
127
+ maxNodes: z.number().int().min(10).max(200).default(100),
128
+ includeArchived: z.boolean().default(false)
129
+ };
130
+ exports.ErpProductProductionStateGetInputShape = {
131
+ id: z.number().int().min(1),
132
+ includeClosed: z.boolean().default(false),
133
+ limit: z.number().int().min(1).max(20).default(10),
134
+ offset: z.number().int().min(0).max(10000).default(0)
135
+ };
136
+ exports.ErpProductTechnologyGetInputShape = {
137
+ id: z.number().int().min(1)
138
+ };
139
+ exports.ErpProductHistoryGetInputShape = {
140
+ id: z.number().int().min(1),
141
+ limit: z.number().int().min(1).max(50).default(20),
142
+ offset: z.number().int().min(0).max(10000).default(0)
143
+ };
144
+ const idempotencyKeyZod = z
145
+ .string()
146
+ .trim()
147
+ .min(8)
148
+ .max(128)
149
+ .regex(/^[a-zA-Z0-9._:-]+$/);
150
+ exports.ErpDetailCreateAndAddToCbedInputShape = {
151
+ detailName: z.string().trim().min(1).max(255),
152
+ detailDesignation: z.string().trim().min(1).max(255),
153
+ assemblyName: z.string().trim().min(1).max(255).optional(),
154
+ assemblyDesignation: z.string().trim().min(1).max(255).optional(),
155
+ quantity: z.number().min(0.000001).max(1000000),
156
+ position: z.number().int().min(1).optional(),
157
+ description: z.string().trim().max(4000).optional(),
158
+ idempotencyKey: idempotencyKeyZod
159
+ };
160
+ exports.ErpDetailArchiveInputShape = {
161
+ detailName: z.string().trim().min(1).max(255),
162
+ detailDesignation: z.string().trim().min(1).max(255),
163
+ idempotencyKey: idempotencyKeyZod
164
+ };
165
+ const erpDocumentReferenceShape = {
166
+ documentId: z.number().int().min(1),
167
+ documentName: z.string().trim().min(1).max(255)
168
+ };
169
+ const erpDocumentEntityReferenceShape = {
170
+ entityType: exports.AiMcpEntityTypeZod,
171
+ entityId: z.number().int().min(1),
172
+ entityName: z.string().trim().min(1).max(255),
173
+ entityDesignation: z.string().trim().min(1).max(255).optional()
174
+ };
175
+ exports.ErpEntityFilesListInputShape = {
176
+ entityType: exports.AiMcpEntityTypeZod,
177
+ entityId: z.number().int().min(1),
178
+ includeArchived: z.boolean().default(false)
179
+ };
180
+ exports.ErpFilesSearchInputShape = {
181
+ query: z.string().trim().min(1).max(200),
182
+ state: z.nativeEnum(ErpDocumentStateEnum).default(ErpDocumentStateEnum.active),
183
+ limit: z.number().int().min(1).max(20).default(10)
184
+ };
185
+ exports.ErpEntityFileAttachInputShape = Object.assign(Object.assign(Object.assign({}, erpDocumentEntityReferenceShape), erpDocumentReferenceShape), { makeMain: z.boolean().default(false), idempotencyKey: idempotencyKeyZod });
186
+ exports.ErpEntityFileUploadInputShape = Object.assign(Object.assign({}, erpDocumentEntityReferenceShape), { type: z.string().trim().max(255).default(''), description: z.string().trim().max(4000).default(''), version: z.number().int().positive().max(1000000).default(1), newVersion: z.boolean().default(false), makeMain: z.boolean().default(false), idempotencyKey: idempotencyKeyZod });
187
+ exports.ErpEntityFileDetachInputShape = Object.assign(Object.assign(Object.assign({}, erpDocumentEntityReferenceShape), erpDocumentReferenceShape), { idempotencyKey: idempotencyKeyZod });
188
+ exports.ErpEntityFileMainSetInputShape = Object.assign(Object.assign(Object.assign({}, erpDocumentEntityReferenceShape), erpDocumentReferenceShape), { main: z.boolean(), idempotencyKey: idempotencyKeyZod });
189
+ exports.ErpFileUpdateInputShape = Object.assign(Object.assign({}, erpDocumentReferenceShape), { name: z.string().trim().min(1).max(255).optional(), type: z.string().trim().max(255).optional(), description: z.string().trim().max(4000).optional(), version: z.number().int().positive().max(1000000).nullable().optional(), idempotencyKey: idempotencyKeyZod });
190
+ exports.ErpFileArchiveInputShape = Object.assign(Object.assign({}, erpDocumentReferenceShape), { idempotencyKey: idempotencyKeyZod });
191
+ exports.ErpFileRestoreInputShape = Object.assign(Object.assign({}, erpDocumentReferenceShape), { idempotencyKey: idempotencyKeyZod });
192
+ exports.ErpEntitySearchInputZod = z.object(exports.ErpEntitySearchInputShape);
193
+ exports.ErpEntityGetInputZod = z.object(exports.ErpEntityGetInputShape);
194
+ exports.ErpProductSearchInputZod = z.object(exports.ErpProductSearchInputShape);
195
+ exports.ErpProductGetInputZod = z.object(exports.ErpProductGetInputShape);
196
+ exports.ErpProductSpecificationGetInputZod = z.object(exports.ErpProductSpecificationGetInputShape);
197
+ exports.ErpProductProductionStateGetInputZod = z.object(exports.ErpProductProductionStateGetInputShape);
198
+ exports.ErpProductTechnologyGetInputZod = z.object(exports.ErpProductTechnologyGetInputShape);
199
+ exports.ErpProductHistoryGetInputZod = z.object(exports.ErpProductHistoryGetInputShape);
200
+ exports.ErpDetailCreateAndAddToCbedInputZod = z.object(exports.ErpDetailCreateAndAddToCbedInputShape);
201
+ exports.ErpDetailArchiveInputZod = z.object(exports.ErpDetailArchiveInputShape);
202
+ exports.ErpEntityFilesListInputZod = z.object(exports.ErpEntityFilesListInputShape);
203
+ exports.ErpFilesSearchInputZod = z.object(exports.ErpFilesSearchInputShape);
204
+ exports.ErpEntityFileAttachInputZod = z.object(exports.ErpEntityFileAttachInputShape);
205
+ exports.ErpEntityFileUploadInputZod = z.object(exports.ErpEntityFileUploadInputShape);
206
+ exports.ErpEntityFileDetachInputZod = z.object(exports.ErpEntityFileDetachInputShape);
207
+ exports.ErpEntityFileMainSetInputZod = z.object(exports.ErpEntityFileMainSetInputShape);
208
+ exports.ErpFileUpdateInputZod = z.object(exports.ErpFileUpdateInputShape);
209
+ exports.ErpFileArchiveInputZod = z.object(exports.ErpFileArchiveInputShape);
210
+ exports.ErpFileRestoreInputZod = z.object(exports.ErpFileRestoreInputShape);
@@ -753,6 +753,10 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
753
753
  }>, "many">>>>;
754
754
  production_task: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
755
755
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
756
+ parent_production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
757
+ subtask_number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
758
+ subtask_order: z.ZodDefault<z.ZodNumber>;
759
+ global_order_index: z.ZodNumber;
756
760
  due_data: z.ZodDate;
757
761
  working_type: z.ZodNativeEnum<typeof import("../..").StockOrderType>;
758
762
  description: z.ZodOptional<z.ZodString>;
@@ -760,18 +764,26 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
760
764
  details_filters: z.ZodType<import("../..").IDescriptionFilters, z.ZodTypeDef, import("../..").IDescriptionFilters>;
761
765
  }, "strip", z.ZodTypeAny, {
762
766
  ban: boolean;
767
+ subtask_order: number;
768
+ global_order_index: number;
763
769
  due_data: Date;
764
770
  working_type: import("../..").StockOrderType;
765
771
  details_filters: import("../..").IDescriptionFilters;
766
772
  description?: string | undefined;
767
773
  id?: number | null | undefined;
774
+ parent_production_task_id?: number | null | undefined;
775
+ subtask_number?: number | null | undefined;
768
776
  }, {
777
+ global_order_index: number;
769
778
  due_data: Date;
770
779
  working_type: import("../..").StockOrderType;
771
780
  details_filters: import("../..").IDescriptionFilters;
772
781
  ban?: boolean | undefined;
773
782
  description?: string | undefined;
774
783
  id?: number | null | undefined;
784
+ parent_production_task_id?: number | null | undefined;
785
+ subtask_number?: number | null | undefined;
786
+ subtask_order?: number | undefined;
775
787
  }>, "many">>>>;
776
788
  waybills: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
777
789
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -902,11 +914,15 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
902
914
  } | null | undefined;
903
915
  production_task?: {
904
916
  ban: boolean;
917
+ subtask_order: number;
918
+ global_order_index: number;
905
919
  due_data: Date;
906
920
  working_type: import("../..").StockOrderType;
907
921
  details_filters: import("../..").IDescriptionFilters;
908
922
  description?: string | undefined;
909
923
  id?: number | null | undefined;
924
+ parent_production_task_id?: number | null | undefined;
925
+ subtask_number?: number | null | undefined;
910
926
  }[] | null | undefined;
911
927
  description?: string | undefined;
912
928
  cbed_id?: number | undefined;
@@ -1088,12 +1104,16 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1088
1104
  parent_id?: number | null | undefined;
1089
1105
  } | null | undefined;
1090
1106
  production_task?: {
1107
+ global_order_index: number;
1091
1108
  due_data: Date;
1092
1109
  working_type: import("../..").StockOrderType;
1093
1110
  details_filters: import("../..").IDescriptionFilters;
1094
1111
  ban?: boolean | undefined;
1095
1112
  description?: string | undefined;
1096
1113
  id?: number | null | undefined;
1114
+ parent_production_task_id?: number | null | undefined;
1115
+ subtask_number?: number | null | undefined;
1116
+ subtask_order?: number | undefined;
1097
1117
  }[] | null | undefined;
1098
1118
  description?: string | undefined;
1099
1119
  cbed_id?: number | undefined;
@@ -1283,11 +1303,15 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1283
1303
  } | null | undefined;
1284
1304
  production_task?: {
1285
1305
  ban: boolean;
1306
+ subtask_order: number;
1307
+ global_order_index: number;
1286
1308
  due_data: Date;
1287
1309
  working_type: import("../..").StockOrderType;
1288
1310
  details_filters: import("../..").IDescriptionFilters;
1289
1311
  description?: string | undefined;
1290
1312
  id?: number | null | undefined;
1313
+ parent_production_task_id?: number | null | undefined;
1314
+ subtask_number?: number | null | undefined;
1291
1315
  }[] | null | undefined;
1292
1316
  description?: string | undefined;
1293
1317
  cbed_id?: number | undefined;
@@ -1471,12 +1495,16 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1471
1495
  parent_id?: number | null | undefined;
1472
1496
  } | null | undefined;
1473
1497
  production_task?: {
1498
+ global_order_index: number;
1474
1499
  due_data: Date;
1475
1500
  working_type: import("../..").StockOrderType;
1476
1501
  details_filters: import("../..").IDescriptionFilters;
1477
1502
  ban?: boolean | undefined;
1478
1503
  description?: string | undefined;
1479
1504
  id?: number | null | undefined;
1505
+ parent_production_task_id?: number | null | undefined;
1506
+ subtask_number?: number | null | undefined;
1507
+ subtask_order?: number | undefined;
1480
1508
  }[] | null | undefined;
1481
1509
  description?: string | undefined;
1482
1510
  cbed_id?: number | undefined;
@@ -7,15 +7,15 @@ export declare const SetDateShipmentAssembleDtoZod: z.ZodObject<{
7
7
  transaction: z.ZodDefault<z.ZodAny>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  productId: number;
10
+ dateShipment: Date;
10
11
  cbedIds: number[];
11
12
  shipmentId: number;
12
- dateShipment: Date;
13
13
  transaction?: any;
14
14
  }, {
15
15
  productId: number;
16
+ dateShipment: Date;
16
17
  cbedIds: number[];
17
18
  shipmentId: number;
18
- dateShipment: Date;
19
19
  transaction?: any;
20
20
  }>;
21
21
  export type SetDateShipmentAssembleDtoZodType = z.infer<typeof SetDateShipmentAssembleDtoZod>;
@@ -14,8 +14,16 @@ export interface IDeepDeficitItem {
14
14
  childDesignation: string;
15
15
  childName: string;
16
16
  description: string;
17
+ measureId?: number;
18
+ measureName?: string;
19
+ convertRate?: number;
20
+ baseMeasureId?: number;
21
+ baseMeasureName?: string;
22
+ baseConvertRate?: number;
17
23
  needsBySpecification: number;
18
24
  needsTotal: number;
25
+ needsBySpecificationNotConverted?: number;
26
+ needsTotalNotConverted?: number;
19
27
  complectationDeficit: number;
20
28
  parentCollected: number;
21
29
  productionEntityType: StockOrderType | null;
@@ -753,6 +753,10 @@ export declare const AssembleComingSchema: z.ZodObject<{
753
753
  }>, "many">>>>;
754
754
  production_task: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
755
755
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
756
+ parent_production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
757
+ subtask_number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
758
+ subtask_order: z.ZodDefault<z.ZodNumber>;
759
+ global_order_index: z.ZodNumber;
756
760
  due_data: z.ZodDate;
757
761
  working_type: z.ZodNativeEnum<typeof import("../..").StockOrderType>;
758
762
  description: z.ZodOptional<z.ZodString>;
@@ -760,18 +764,26 @@ export declare const AssembleComingSchema: z.ZodObject<{
760
764
  details_filters: z.ZodType<import("../..").IDescriptionFilters, z.ZodTypeDef, import("../..").IDescriptionFilters>;
761
765
  }, "strip", z.ZodTypeAny, {
762
766
  ban: boolean;
767
+ subtask_order: number;
768
+ global_order_index: number;
763
769
  due_data: Date;
764
770
  working_type: import("../..").StockOrderType;
765
771
  details_filters: import("../..").IDescriptionFilters;
766
772
  description?: string | undefined;
767
773
  id?: number | null | undefined;
774
+ parent_production_task_id?: number | null | undefined;
775
+ subtask_number?: number | null | undefined;
768
776
  }, {
777
+ global_order_index: number;
769
778
  due_data: Date;
770
779
  working_type: import("../..").StockOrderType;
771
780
  details_filters: import("../..").IDescriptionFilters;
772
781
  ban?: boolean | undefined;
773
782
  description?: string | undefined;
774
783
  id?: number | null | undefined;
784
+ parent_production_task_id?: number | null | undefined;
785
+ subtask_number?: number | null | undefined;
786
+ subtask_order?: number | undefined;
775
787
  }>, "many">>>>;
776
788
  waybills: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
777
789
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -926,11 +938,15 @@ export declare const AssembleComingSchema: z.ZodObject<{
926
938
  } | null | undefined;
927
939
  production_task?: {
928
940
  ban: boolean;
941
+ subtask_order: number;
942
+ global_order_index: number;
929
943
  due_data: Date;
930
944
  working_type: import("../..").StockOrderType;
931
945
  details_filters: import("../..").IDescriptionFilters;
932
946
  description?: string | undefined;
933
947
  id?: number | null | undefined;
948
+ parent_production_task_id?: number | null | undefined;
949
+ subtask_number?: number | null | undefined;
934
950
  }[] | null | undefined;
935
951
  designation?: string | undefined;
936
952
  description?: string | undefined;
@@ -1123,12 +1139,16 @@ export declare const AssembleComingSchema: z.ZodObject<{
1123
1139
  parent_id?: number | null | undefined;
1124
1140
  } | null | undefined;
1125
1141
  production_task?: {
1142
+ global_order_index: number;
1126
1143
  due_data: Date;
1127
1144
  working_type: import("../..").StockOrderType;
1128
1145
  details_filters: import("../..").IDescriptionFilters;
1129
1146
  ban?: boolean | undefined;
1130
1147
  description?: string | undefined;
1131
1148
  id?: number | null | undefined;
1149
+ parent_production_task_id?: number | null | undefined;
1150
+ subtask_number?: number | null | undefined;
1151
+ subtask_order?: number | undefined;
1132
1152
  }[] | null | undefined;
1133
1153
  designation?: string | undefined;
1134
1154
  description?: string | undefined;
@@ -754,6 +754,10 @@ export declare const AssembleSchema: z.ZodObject<{
754
754
  }>, "many">>>>;
755
755
  production_task: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
756
756
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
757
+ parent_production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
758
+ subtask_number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
759
+ subtask_order: z.ZodDefault<z.ZodNumber>;
760
+ global_order_index: z.ZodNumber;
757
761
  due_data: z.ZodDate;
758
762
  working_type: z.ZodNativeEnum<typeof import("../../utils").StockOrderType>;
759
763
  description: z.ZodOptional<z.ZodString>;
@@ -761,18 +765,26 @@ export declare const AssembleSchema: z.ZodObject<{
761
765
  details_filters: z.ZodType<import("../../production-tasks").IDescriptionFilters, z.ZodTypeDef, import("../../production-tasks").IDescriptionFilters>;
762
766
  }, "strip", z.ZodTypeAny, {
763
767
  ban: boolean;
768
+ subtask_order: number;
769
+ global_order_index: number;
764
770
  due_data: Date;
765
771
  working_type: import("../../utils").StockOrderType;
766
772
  details_filters: import("../../production-tasks").IDescriptionFilters;
767
773
  description?: string | undefined;
768
774
  id?: number | null | undefined;
775
+ parent_production_task_id?: number | null | undefined;
776
+ subtask_number?: number | null | undefined;
769
777
  }, {
778
+ global_order_index: number;
770
779
  due_data: Date;
771
780
  working_type: import("../../utils").StockOrderType;
772
781
  details_filters: import("../../production-tasks").IDescriptionFilters;
773
782
  ban?: boolean | undefined;
774
783
  description?: string | undefined;
775
784
  id?: number | null | undefined;
785
+ parent_production_task_id?: number | null | undefined;
786
+ subtask_number?: number | null | undefined;
787
+ subtask_order?: number | undefined;
776
788
  }>, "many">>>>;
777
789
  waybills: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
778
790
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -903,11 +915,15 @@ export declare const AssembleSchema: z.ZodObject<{
903
915
  } | null | undefined;
904
916
  production_task?: {
905
917
  ban: boolean;
918
+ subtask_order: number;
919
+ global_order_index: number;
906
920
  due_data: Date;
907
921
  working_type: import("../../utils").StockOrderType;
908
922
  details_filters: import("../../production-tasks").IDescriptionFilters;
909
923
  description?: string | undefined;
910
924
  id?: number | null | undefined;
925
+ parent_production_task_id?: number | null | undefined;
926
+ subtask_number?: number | null | undefined;
911
927
  }[] | null | undefined;
912
928
  description?: string | undefined;
913
929
  cbed_id?: number | undefined;
@@ -1089,12 +1105,16 @@ export declare const AssembleSchema: z.ZodObject<{
1089
1105
  parent_id?: number | null | undefined;
1090
1106
  } | null | undefined;
1091
1107
  production_task?: {
1108
+ global_order_index: number;
1092
1109
  due_data: Date;
1093
1110
  working_type: import("../../utils").StockOrderType;
1094
1111
  details_filters: import("../../production-tasks").IDescriptionFilters;
1095
1112
  ban?: boolean | undefined;
1096
1113
  description?: string | undefined;
1097
1114
  id?: number | null | undefined;
1115
+ parent_production_task_id?: number | null | undefined;
1116
+ subtask_number?: number | null | undefined;
1117
+ subtask_order?: number | undefined;
1098
1118
  }[] | null | undefined;
1099
1119
  description?: string | undefined;
1100
1120
  cbed_id?: number | undefined;
@@ -15,6 +15,7 @@ export declare const UpCreateCbedDtoZod: z.ZodObject<{
15
15
  docs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  techProcessID: z.ZodString;
17
17
  fileBase: z.ZodString;
18
+ deletedDocumentIds: z.ZodOptional<z.ZodString>;
18
19
  attention: z.ZodEffects<z.ZodString, boolean, string>;
19
20
  discontinued: z.ZodEffects<z.ZodString, boolean, string>;
20
21
  }, "strip", z.ZodTypeAny, {
@@ -34,6 +35,7 @@ export declare const UpCreateCbedDtoZod: z.ZodObject<{
34
35
  id?: number | null | undefined;
35
36
  docs?: string | null | undefined;
36
37
  responsible?: number | null | undefined;
38
+ deletedDocumentIds?: string | undefined;
37
39
  }, {
38
40
  designation: string;
39
41
  description: string;
@@ -51,5 +53,6 @@ export declare const UpCreateCbedDtoZod: z.ZodObject<{
51
53
  listDetal?: unknown;
52
54
  docs?: string | null | undefined;
53
55
  responsible?: string | null | undefined;
56
+ deletedDocumentIds?: string | undefined;
54
57
  }>;
55
58
  export type UpCreateCbedDtoZodType = z.infer<typeof UpCreateCbedDtoZod>;
@@ -56,6 +56,7 @@ exports.UpCreateCbedDtoZod = zod_1.z.object({
56
56
  docs: zod_1.z.string().nullable().optional(),
57
57
  techProcessID: zod_1.z.string(),
58
58
  fileBase: zod_1.z.string(),
59
+ deletedDocumentIds: zod_1.z.string().optional(),
59
60
  attention: zod_1.z.string().transform(val => val === 'true'),
60
61
  discontinued: zod_1.z.string().transform(val => val === 'true')
61
62
  });
@@ -1,19 +1,22 @@
1
1
  import { z } from 'zod';
2
- import { DateRangeType, EnumStatusOrder } from '../../utils';
2
+ import { DateRangeType, EnumStatusOrder, WarehouseReadinessDateFilterEnum } from '../../utils';
3
3
  export declare const AllDeliveryPaginationDtoZod: z.ZodObject<{
4
4
  page: z.ZodNumber;
5
5
  searchString: z.ZodString;
6
6
  dateRange: z.ZodNullable<z.ZodType<DateRangeType, z.ZodTypeDef, DateRangeType>>;
7
7
  status: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNativeEnum<typeof EnumStatusOrder>, "many">>>;
8
+ warehouseReadinessDateFilter: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>>;
8
9
  }, "strip", z.ZodTypeAny, {
9
10
  page: number;
10
11
  searchString: string;
11
12
  dateRange: DateRangeType | null;
12
13
  status?: EnumStatusOrder[] | null | undefined;
14
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | null | undefined;
13
15
  }, {
14
16
  page: number;
15
17
  searchString: string;
16
18
  dateRange: DateRangeType | null;
17
19
  status?: EnumStatusOrder[] | null | undefined;
20
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | null | undefined;
18
21
  }>;
19
22
  export type AllDeliveryPaginationDtoZodType = z.infer<typeof AllDeliveryPaginationDtoZod>;
@@ -7,5 +7,8 @@ exports.AllDeliveryPaginationDtoZod = zod_1.z.object({
7
7
  page: zod_1.z.number(),
8
8
  searchString: zod_1.z.string(),
9
9
  dateRange: zod_1.z.custom().nullable(),
10
- status: zod_1.z.array(zod_1.z.nativeEnum(utils_1.EnumStatusOrder)).nullish()
10
+ status: zod_1.z.array(zod_1.z.nativeEnum(utils_1.EnumStatusOrder)).nullish(),
11
+ warehouseReadinessDateFilter: zod_1.z
12
+ .nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
13
+ .nullish()
11
14
  });
@@ -248,9 +248,6 @@ export declare const CreateDeliveriesByPositionsDtoZod: z.ZodObject<{
248
248
  description: string;
249
249
  count: number;
250
250
  nds: number;
251
- companyId: number;
252
- numberCheck: string;
253
- dateShipments: string;
254
251
  positions: {
255
252
  description: string;
256
253
  plannedDeliveryDate: string;
@@ -263,14 +260,14 @@ export declare const CreateDeliveriesByPositionsDtoZod: z.ZodObject<{
263
260
  inventaryId?: number | null | undefined;
264
261
  unitMeasurementId?: number | null | undefined;
265
262
  }[];
263
+ companyId: number;
264
+ numberCheck: string;
265
+ dateShipments: string;
266
266
  documentsIds?: number[] | null | undefined;
267
267
  }, {
268
268
  description: string;
269
269
  count: number;
270
270
  nds: number;
271
- companyId: number;
272
- numberCheck: string;
273
- dateShipments: string;
274
271
  positions: {
275
272
  plannedDeliveryDate: string;
276
273
  entityType: EnumEntityDeliveryItem;
@@ -283,6 +280,9 @@ export declare const CreateDeliveriesByPositionsDtoZod: z.ZodObject<{
283
280
  unitMeasurementId?: number | null | undefined;
284
281
  totalAmount?: number | undefined;
285
282
  }[];
283
+ companyId: number;
284
+ numberCheck: string;
285
+ dateShipments: string;
286
286
  documentsIds?: number[] | null | undefined;
287
287
  }>;
288
288
  export type CreateDeliveryPositionDtoZodType = z.infer<typeof CreateDeliveryPositionDtoZod>;
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { Transaction } from 'sequelize';
3
+ /** Канонический контракт штатной операции архивирования детали. */
4
+ export declare const ArchiveDetalDtoZod: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ userId: z.ZodNumber;
7
+ transactionArgument: z.ZodOptional<z.ZodType<Transaction, z.ZodTypeDef, Transaction>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ userId: number;
10
+ id: number;
11
+ transactionArgument?: Transaction | undefined;
12
+ }, {
13
+ userId: number;
14
+ id: number;
15
+ transactionArgument?: Transaction | undefined;
16
+ }>;
17
+ export type ArchiveDetalDtoZodType = z.infer<typeof ArchiveDetalDtoZod>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArchiveDetalDtoZod = void 0;
4
+ const zod_1 = require("zod");
5
+ /** Канонический контракт штатной операции архивирования детали. */
6
+ exports.ArchiveDetalDtoZod = zod_1.z.object({
7
+ id: zod_1.z.coerce.number().int().min(1),
8
+ userId: zod_1.z.coerce.number().int().min(1),
9
+ transactionArgument: zod_1.z.custom().optional()
10
+ });