@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,2 +1,5 @@
1
1
  export * from './schemas/ai-mcp.schema';
2
+ export * from './schemas/ai-mcp-specification.schema';
3
+ export * from './schemas/ai-mcp-entity-editor.schema';
4
+ export * from './schemas/ai-mcp-technology.schema';
2
5
  export * from './interfaces/ai-mcp.interface';
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./schemas/ai-mcp.schema"), exports);
18
+ __exportStar(require("./schemas/ai-mcp-specification.schema"), exports);
19
+ __exportStar(require("./schemas/ai-mcp-entity-editor.schema"), exports);
20
+ __exportStar(require("./schemas/ai-mcp-technology.schema"), exports);
18
21
  __exportStar(require("./interfaces/ai-mcp.interface"), exports);
@@ -1,6 +1,10 @@
1
1
  import { EntityCommonSpecificationArray, ProductionTimeType, UnitsEnum } from '../../utils';
2
2
  import { AiMcpCommandStatusEnum, AiMcpOperationNameEnum, AiMcpOperationStatusEnum, ErpProductSpecificationKindEnum, ErpProductSpecificationViewEnum, ErpProductStateEnum, ErpProductTechnologyStateEnum, TErpEntityFilesListInput } from '../schemas/ai-mcp.schema';
3
3
  import { TAiMcpEntityType } from '../schemas/ai-mcp.schema';
4
+ import { SpecificationMutationOperation, SpecificationParentType } from '../../specification/dto/mutate-specification.dto';
5
+ import { SpetificationEntityKeys } from '../../utils';
6
+ import { Transaction } from 'sequelize';
7
+ import { ErpTechnologyReferenceKindEnum } from '../schemas/ai-mcp-technology.schema';
4
8
  export interface IAiMcpAuthContext {
5
9
  actorUserId?: number;
6
10
  clientId: string;
@@ -94,6 +98,33 @@ export interface IArchiveDetailResult {
94
98
  };
95
99
  message: string;
96
100
  }
101
+ export interface IErpSpecificationMutationResult {
102
+ applied: true;
103
+ replayed: boolean;
104
+ operation: SpecificationMutationOperation;
105
+ parent: {
106
+ type: SpecificationParentType;
107
+ name: string;
108
+ designation: string | null;
109
+ };
110
+ item: {
111
+ section: SpetificationEntityKeys;
112
+ name: string;
113
+ designation: string | null;
114
+ };
115
+ quantity: number | null;
116
+ measureId: number | null;
117
+ position: number | null;
118
+ message: string;
119
+ }
120
+ export interface IErpSpecificationResolvedItem {
121
+ id: number;
122
+ name: string;
123
+ designation?: string | null;
124
+ discontinued?: boolean;
125
+ quantity?: number;
126
+ measureId?: number;
127
+ }
97
128
  export interface IErpFileItem {
98
129
  id: number;
99
130
  name: string;
@@ -355,4 +386,121 @@ export interface IAiMcpUserRow {
355
386
  login?: string | null;
356
387
  initial?: string | null;
357
388
  }
358
- export type TAiMcpOperationResult = ICreateDetailAndAddToCbedResult | IArchiveDetailResult | IErpDocumentActionResult;
389
+ export interface IErpEditableVariable {
390
+ name: string;
391
+ unit: string;
392
+ value: string | number;
393
+ }
394
+ export interface IErpEntityEditorCard {
395
+ type: TAiMcpEntityType;
396
+ name: string;
397
+ designation: string | null;
398
+ responsibleName: string | null;
399
+ description: string;
400
+ attention: boolean;
401
+ discontinued: boolean;
402
+ parameters: IErpEditableVariable[];
403
+ characteristics: IErpEditableVariable[];
404
+ article?: string;
405
+ custom?: boolean;
406
+ detailProductionTimes?: {
407
+ preparation: string | number;
408
+ helper: string | number;
409
+ main: string | number;
410
+ };
411
+ workpieceCharacteristics?: {
412
+ diameter: number;
413
+ billetLength: number;
414
+ length: number;
415
+ width: number;
416
+ height: number;
417
+ wallThickness: number;
418
+ outsideDiameter: number;
419
+ thickness: number;
420
+ crossSectionArea: number;
421
+ acrossFlats: number;
422
+ massPerMeter: number;
423
+ density: number;
424
+ mass: number;
425
+ waste: number;
426
+ };
427
+ mainMaterialName?: string | null;
428
+ replacementMaterialName?: string | null;
429
+ }
430
+ export interface IErpEntityEditorCardResult {
431
+ dataAsOf: string;
432
+ item: IErpEntityEditorCard;
433
+ }
434
+ export interface IErpEntityEditorUpdateResult {
435
+ applied: true;
436
+ replayed: boolean;
437
+ entity: {
438
+ type: TAiMcpEntityType;
439
+ name: string;
440
+ designation: string | null;
441
+ };
442
+ changedFields: string[];
443
+ message: string;
444
+ }
445
+ export interface IErpTechnologyResult {
446
+ dataAsOf: string;
447
+ entity: {
448
+ type: TAiMcpEntityType;
449
+ name: string;
450
+ designation: string | null;
451
+ };
452
+ configured: boolean;
453
+ editable: boolean;
454
+ note: string;
455
+ operations: Array<{
456
+ position: number;
457
+ name: string;
458
+ note: string;
459
+ preparationTime: number;
460
+ helperTime: number;
461
+ mainTime: number;
462
+ totalTime: number;
463
+ resources: {
464
+ equipment: string[];
465
+ instruments: string[];
466
+ tooling: string[];
467
+ measuringInstruments: string[];
468
+ };
469
+ }>;
470
+ }
471
+ export interface IErpTechnologyReferenceSearchResult {
472
+ dataAsOf: string;
473
+ kind: ErpTechnologyReferenceKindEnum;
474
+ query: string;
475
+ count: number;
476
+ items: Array<{
477
+ name: string;
478
+ }>;
479
+ }
480
+ export type ErpTechnologyMutationOperation = 'add' | 'update' | 'move' | 'remove' | 'update-process';
481
+ export interface IErpTechnologyMutationResult {
482
+ applied: true;
483
+ replayed: boolean;
484
+ operation: ErpTechnologyMutationOperation;
485
+ entity: {
486
+ type: TAiMcpEntityType;
487
+ name: string;
488
+ designation: string | null;
489
+ };
490
+ operationName: string | null;
491
+ position: number | null;
492
+ changedFields: string[];
493
+ message: string;
494
+ }
495
+ export type TAiMcpOperationResult = ICreateDetailAndAddToCbedResult | IArchiveDetailResult | IErpSpecificationMutationResult | IErpDocumentActionResult | IErpEntityEditorUpdateResult | IErpTechnologyMutationResult;
496
+ export interface IAiMcpOperationExecution<T extends TAiMcpOperationResult = TAiMcpOperationResult> {
497
+ operation: AiMcpOperationNameEnum;
498
+ idempotencyKey: string;
499
+ request: object;
500
+ context: IAiMcpCommandContext;
501
+ failureMessage: string;
502
+ execute: (data: {
503
+ transaction: Transaction;
504
+ actorUserId: number;
505
+ }) => Promise<T>;
506
+ }
@@ -21,34 +21,31 @@ export declare const ErpEntityEditorUpdateInputShape: {
21
21
  discontinued: z.ZodOptional<z.ZodBoolean>;
22
22
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
23
  name: z.ZodString;
24
- unit: z.ZodString;
24
+ unit: z.ZodOptional<z.ZodString>;
25
25
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
26
26
  }, z.core.$strip>>>;
27
27
  characteristics: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
28
  name: z.ZodString;
29
- unit: z.ZodString;
29
+ unit: z.ZodOptional<z.ZodString>;
30
30
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
31
31
  }, z.core.$strip>>>;
32
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]>;
33
+ preparation: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
34
+ helper: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
35
+ main: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
36
36
  }, z.core.$strip>>;
37
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;
38
+ diameter: z.ZodOptional<z.ZodNumber>;
39
+ billetLength: z.ZodOptional<z.ZodNumber>;
40
+ length: z.ZodOptional<z.ZodNumber>;
41
+ width: z.ZodOptional<z.ZodNumber>;
42
+ height: z.ZodOptional<z.ZodNumber>;
43
+ wallThickness: z.ZodOptional<z.ZodNumber>;
44
+ outsideDiameter: z.ZodOptional<z.ZodNumber>;
45
+ thickness: z.ZodOptional<z.ZodNumber>;
46
+ crossSectionArea: z.ZodOptional<z.ZodNumber>;
47
+ acrossFlats: z.ZodOptional<z.ZodNumber>;
48
+ massPerMeter: z.ZodOptional<z.ZodNumber>;
52
49
  }, z.core.$strip>>;
53
50
  mainMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
51
  replacementMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -84,34 +81,31 @@ export declare const ErpEntityEditorUpdateInputZod: z.ZodObject<{
84
81
  discontinued: z.ZodOptional<z.ZodBoolean>;
85
82
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
83
  name: z.ZodString;
87
- unit: z.ZodString;
84
+ unit: z.ZodOptional<z.ZodString>;
88
85
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
89
86
  }, z.core.$strip>>>;
90
87
  characteristics: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
88
  name: z.ZodString;
92
- unit: z.ZodString;
89
+ unit: z.ZodOptional<z.ZodString>;
93
90
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
94
91
  }, z.core.$strip>>>;
95
92
  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]>;
93
+ preparation: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
94
+ helper: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
95
+ main: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
99
96
  }, z.core.$strip>>;
100
97
  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;
98
+ diameter: z.ZodOptional<z.ZodNumber>;
99
+ billetLength: z.ZodOptional<z.ZodNumber>;
100
+ length: z.ZodOptional<z.ZodNumber>;
101
+ width: z.ZodOptional<z.ZodNumber>;
102
+ height: z.ZodOptional<z.ZodNumber>;
103
+ wallThickness: z.ZodOptional<z.ZodNumber>;
104
+ outsideDiameter: z.ZodOptional<z.ZodNumber>;
105
+ thickness: z.ZodOptional<z.ZodNumber>;
106
+ crossSectionArea: z.ZodOptional<z.ZodNumber>;
107
+ acrossFlats: z.ZodOptional<z.ZodNumber>;
108
+ massPerMeter: z.ZodOptional<z.ZodNumber>;
115
109
  }, z.core.$strip>>;
116
110
  mainMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
111
  replacementMaterialName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43,29 +43,34 @@ const entityReferenceShape = {
43
43
  };
44
44
  const editableVariableZod = z.object({
45
45
  name: z.string().trim().min(1).max(255),
46
- unit: z.string().trim().max(50),
46
+ unit: z.string().trim().max(50).optional(),
47
47
  value: z.union([z.string().max(1000), z.number()])
48
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()])
49
+ const detailProductionTimesZod = z
50
+ .object({
51
+ preparation: z.union([z.string().max(100), z.number()]).optional(),
52
+ helper: z.union([z.string().max(100), z.number()]).optional(),
53
+ main: z.union([z.string().max(100), z.number()]).optional()
54
+ })
55
+ .refine(value => Object.keys(value).length > 0, {
56
+ message: 'Укажите хотя бы одну норму времени детали.'
53
57
  });
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()
58
+ const detailWorkpieceCharacteristicsZod = z
59
+ .object({
60
+ diameter: z.number().nonnegative().optional(),
61
+ billetLength: z.number().nonnegative().optional(),
62
+ length: z.number().nonnegative().optional(),
63
+ width: z.number().nonnegative().optional(),
64
+ height: z.number().nonnegative().optional(),
65
+ wallThickness: z.number().nonnegative().optional(),
66
+ outsideDiameter: z.number().nonnegative().optional(),
67
+ thickness: z.number().nonnegative().optional(),
68
+ crossSectionArea: z.number().nonnegative().optional(),
69
+ acrossFlats: z.number().nonnegative().optional(),
70
+ massPerMeter: z.number().nonnegative().optional()
71
+ })
72
+ .refine(value => Object.keys(value).length > 0, {
73
+ message: 'Укажите хотя бы одну редактируемую характеристику заготовки. Масса и отходы рассчитываются автоматически.'
69
74
  });
70
75
  exports.ErpEntityEditorGetInputShape = Object.assign(Object.assign({}, entityReferenceShape), { includeArchived: z.boolean().default(false) });
71
76
  exports.ErpEntityEditorUpdateInputShape = Object.assign(Object.assign({}, entityReferenceShape), { changes: z.object({
@@ -77,7 +82,7 @@ exports.ErpEntityEditorUpdateInputShape = Object.assign(Object.assign({}, entity
77
82
  attention: z.boolean().optional(),
78
83
  custom: z.boolean().optional(),
79
84
  discontinued: z.boolean().optional(),
80
- parameters: z.array(editableVariableZod).max(100).optional(),
85
+ parameters: z.array(editableVariableZod).min(1).max(100).optional(),
81
86
  characteristics: z.array(editableVariableZod).min(1).max(100).optional(),
82
87
  detailProductionTimes: detailProductionTimesZod.optional(),
83
88
  workpieceCharacteristics: detailWorkpieceCharacteristicsZod.optional(),
@@ -0,0 +1,225 @@
1
+ import * as z from 'zod/v4';
2
+ export declare enum ErpTechnologyReferenceKindEnum {
3
+ operationType = "operationType",
4
+ equipment = "equipment",
5
+ instrument = "instrument",
6
+ tooling = "tooling",
7
+ measuringInstrument = "measuringInstrument"
8
+ }
9
+ export declare const ErpTechnologyGetInputShape: {
10
+ entityType: z.ZodEnum<{
11
+ product: import("../..").IzdType.product;
12
+ cbed: import("../..").IzdType.cbed;
13
+ detal: import("../..").IzdType.detal;
14
+ }>;
15
+ entityName: z.ZodOptional<z.ZodString>;
16
+ entityDesignation: z.ZodOptional<z.ZodString>;
17
+ };
18
+ export declare const ErpTechnologyReferenceSearchInputShape: {
19
+ kind: z.ZodEnum<typeof ErpTechnologyReferenceKindEnum>;
20
+ query: z.ZodDefault<z.ZodString>;
21
+ limit: z.ZodDefault<z.ZodNumber>;
22
+ };
23
+ export declare const ErpTechnologyOperationAddInputShape: {
24
+ operationTypeName: z.ZodString;
25
+ position: z.ZodOptional<z.ZodNumber>;
26
+ mainTime: z.ZodDefault<z.ZodNumber>;
27
+ note: z.ZodDefault<z.ZodString>;
28
+ resources: z.ZodOptional<z.ZodObject<{
29
+ equipment: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ instruments: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ tooling: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
+ measuringInstruments: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
+ }, z.core.$strip>>;
34
+ idempotencyKey: z.ZodString;
35
+ entityType: z.ZodEnum<{
36
+ product: import("../..").IzdType.product;
37
+ cbed: import("../..").IzdType.cbed;
38
+ detal: import("../..").IzdType.detal;
39
+ }>;
40
+ entityName: z.ZodOptional<z.ZodString>;
41
+ entityDesignation: z.ZodOptional<z.ZodString>;
42
+ };
43
+ export declare const ErpTechnologyOperationUpdateInputShape: {
44
+ changes: z.ZodObject<{
45
+ operationTypeName: z.ZodOptional<z.ZodString>;
46
+ mainTime: z.ZodOptional<z.ZodNumber>;
47
+ note: z.ZodOptional<z.ZodString>;
48
+ resources: z.ZodOptional<z.ZodObject<{
49
+ equipment: z.ZodOptional<z.ZodObject<{
50
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ }, z.core.$strip>>;
53
+ instruments: z.ZodOptional<z.ZodObject<{
54
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ }, z.core.$strip>>;
57
+ tooling: z.ZodOptional<z.ZodObject<{
58
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ }, z.core.$strip>>;
61
+ measuringInstruments: z.ZodOptional<z.ZodObject<{
62
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>;
67
+ idempotencyKey: z.ZodString;
68
+ operationName: z.ZodOptional<z.ZodString>;
69
+ operationPosition: z.ZodOptional<z.ZodNumber>;
70
+ entityType: z.ZodEnum<{
71
+ product: import("../..").IzdType.product;
72
+ cbed: import("../..").IzdType.cbed;
73
+ detal: import("../..").IzdType.detal;
74
+ }>;
75
+ entityName: z.ZodOptional<z.ZodString>;
76
+ entityDesignation: z.ZodOptional<z.ZodString>;
77
+ };
78
+ export declare const ErpTechnologyOperationMoveInputShape: {
79
+ position: z.ZodNumber;
80
+ idempotencyKey: z.ZodString;
81
+ operationName: z.ZodOptional<z.ZodString>;
82
+ operationPosition: z.ZodOptional<z.ZodNumber>;
83
+ entityType: z.ZodEnum<{
84
+ product: import("../..").IzdType.product;
85
+ cbed: import("../..").IzdType.cbed;
86
+ detal: import("../..").IzdType.detal;
87
+ }>;
88
+ entityName: z.ZodOptional<z.ZodString>;
89
+ entityDesignation: z.ZodOptional<z.ZodString>;
90
+ };
91
+ export declare const ErpTechnologyOperationRemoveInputShape: {
92
+ idempotencyKey: z.ZodString;
93
+ operationName: z.ZodOptional<z.ZodString>;
94
+ operationPosition: z.ZodOptional<z.ZodNumber>;
95
+ entityType: z.ZodEnum<{
96
+ product: import("../..").IzdType.product;
97
+ cbed: import("../..").IzdType.cbed;
98
+ detal: import("../..").IzdType.detal;
99
+ }>;
100
+ entityName: z.ZodOptional<z.ZodString>;
101
+ entityDesignation: z.ZodOptional<z.ZodString>;
102
+ };
103
+ export declare const ErpTechnologyProcessUpdateInputShape: {
104
+ note: z.ZodString;
105
+ idempotencyKey: z.ZodString;
106
+ entityType: z.ZodEnum<{
107
+ product: import("../..").IzdType.product;
108
+ cbed: import("../..").IzdType.cbed;
109
+ detal: import("../..").IzdType.detal;
110
+ }>;
111
+ entityName: z.ZodOptional<z.ZodString>;
112
+ entityDesignation: z.ZodOptional<z.ZodString>;
113
+ };
114
+ export declare const ErpTechnologyGetInputZod: z.ZodObject<{
115
+ entityType: z.ZodEnum<{
116
+ product: import("../..").IzdType.product;
117
+ cbed: import("../..").IzdType.cbed;
118
+ detal: import("../..").IzdType.detal;
119
+ }>;
120
+ entityName: z.ZodOptional<z.ZodString>;
121
+ entityDesignation: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>;
123
+ export declare const ErpTechnologyReferenceSearchInputZod: z.ZodObject<{
124
+ kind: z.ZodEnum<typeof ErpTechnologyReferenceKindEnum>;
125
+ query: z.ZodDefault<z.ZodString>;
126
+ limit: z.ZodDefault<z.ZodNumber>;
127
+ }, z.core.$strip>;
128
+ export declare const ErpTechnologyOperationAddInputZod: z.ZodObject<{
129
+ operationTypeName: z.ZodString;
130
+ position: z.ZodOptional<z.ZodNumber>;
131
+ mainTime: z.ZodDefault<z.ZodNumber>;
132
+ note: z.ZodDefault<z.ZodString>;
133
+ resources: z.ZodOptional<z.ZodObject<{
134
+ equipment: z.ZodOptional<z.ZodArray<z.ZodString>>;
135
+ instruments: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
+ tooling: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
+ measuringInstruments: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
+ }, z.core.$strip>>;
139
+ idempotencyKey: z.ZodString;
140
+ entityType: z.ZodEnum<{
141
+ product: import("../..").IzdType.product;
142
+ cbed: import("../..").IzdType.cbed;
143
+ detal: import("../..").IzdType.detal;
144
+ }>;
145
+ entityName: z.ZodOptional<z.ZodString>;
146
+ entityDesignation: z.ZodOptional<z.ZodString>;
147
+ }, z.core.$strip>;
148
+ export declare const ErpTechnologyOperationUpdateInputZod: z.ZodObject<{
149
+ changes: z.ZodObject<{
150
+ operationTypeName: z.ZodOptional<z.ZodString>;
151
+ mainTime: z.ZodOptional<z.ZodNumber>;
152
+ note: z.ZodOptional<z.ZodString>;
153
+ resources: z.ZodOptional<z.ZodObject<{
154
+ equipment: z.ZodOptional<z.ZodObject<{
155
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
156
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
+ }, z.core.$strip>>;
158
+ instruments: z.ZodOptional<z.ZodObject<{
159
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ }, z.core.$strip>>;
162
+ tooling: z.ZodOptional<z.ZodObject<{
163
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
164
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
+ }, z.core.$strip>>;
166
+ measuringInstruments: z.ZodOptional<z.ZodObject<{
167
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
169
+ }, z.core.$strip>>;
170
+ }, z.core.$strip>>;
171
+ }, z.core.$strip>;
172
+ idempotencyKey: z.ZodString;
173
+ operationName: z.ZodOptional<z.ZodString>;
174
+ operationPosition: z.ZodOptional<z.ZodNumber>;
175
+ entityType: z.ZodEnum<{
176
+ product: import("../..").IzdType.product;
177
+ cbed: import("../..").IzdType.cbed;
178
+ detal: import("../..").IzdType.detal;
179
+ }>;
180
+ entityName: z.ZodOptional<z.ZodString>;
181
+ entityDesignation: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strip>;
183
+ export declare const ErpTechnologyOperationMoveInputZod: z.ZodObject<{
184
+ position: z.ZodNumber;
185
+ idempotencyKey: z.ZodString;
186
+ operationName: z.ZodOptional<z.ZodString>;
187
+ operationPosition: z.ZodOptional<z.ZodNumber>;
188
+ entityType: z.ZodEnum<{
189
+ product: import("../..").IzdType.product;
190
+ cbed: import("../..").IzdType.cbed;
191
+ detal: import("../..").IzdType.detal;
192
+ }>;
193
+ entityName: z.ZodOptional<z.ZodString>;
194
+ entityDesignation: z.ZodOptional<z.ZodString>;
195
+ }, z.core.$strip>;
196
+ export declare const ErpTechnologyOperationRemoveInputZod: z.ZodObject<{
197
+ idempotencyKey: z.ZodString;
198
+ operationName: z.ZodOptional<z.ZodString>;
199
+ operationPosition: z.ZodOptional<z.ZodNumber>;
200
+ entityType: z.ZodEnum<{
201
+ product: import("../..").IzdType.product;
202
+ cbed: import("../..").IzdType.cbed;
203
+ detal: import("../..").IzdType.detal;
204
+ }>;
205
+ entityName: z.ZodOptional<z.ZodString>;
206
+ entityDesignation: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>;
208
+ export declare const ErpTechnologyProcessUpdateInputZod: z.ZodObject<{
209
+ note: z.ZodString;
210
+ idempotencyKey: z.ZodString;
211
+ entityType: z.ZodEnum<{
212
+ product: import("../..").IzdType.product;
213
+ cbed: import("../..").IzdType.cbed;
214
+ detal: import("../..").IzdType.detal;
215
+ }>;
216
+ entityName: z.ZodOptional<z.ZodString>;
217
+ entityDesignation: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>;
219
+ export type TErpTechnologyGetInput = z.infer<typeof ErpTechnologyGetInputZod>;
220
+ export type TErpTechnologyReferenceSearchInput = z.infer<typeof ErpTechnologyReferenceSearchInputZod>;
221
+ export type TErpTechnologyOperationAddInput = z.infer<typeof ErpTechnologyOperationAddInputZod>;
222
+ export type TErpTechnologyOperationUpdateInput = z.infer<typeof ErpTechnologyOperationUpdateInputZod>;
223
+ export type TErpTechnologyOperationMoveInput = z.infer<typeof ErpTechnologyOperationMoveInputZod>;
224
+ export type TErpTechnologyOperationRemoveInput = z.infer<typeof ErpTechnologyOperationRemoveInputZod>;
225
+ export type TErpTechnologyProcessUpdateInput = z.infer<typeof ErpTechnologyProcessUpdateInputZod>;