@pksep/zod-shared 0.0.551 → 0.0.552

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 (71) hide show
  1. package/dist/action/enums/enums.d.ts +0 -10
  2. package/dist/action/enums/enums.js +0 -10
  3. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +24 -24
  4. package/dist/assemble/interfaces/interfaces.d.ts +36 -6
  5. package/dist/assemble/schemas/assemble-coming.schema.d.ts +18 -18
  6. package/dist/assemble/schemas/assemble.schema.d.ts +18 -18
  7. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +6 -6
  8. package/dist/buyer/schemas/buyer.schema.d.ts +2 -2
  9. package/dist/buyer/schemas/purchases.schema.d.ts +2 -2
  10. package/dist/cbed/schemas/cbed.schema.d.ts +2 -2
  11. package/dist/company/schemas/companies.schema.d.ts +2 -2
  12. package/dist/detal/default-values/default-values.d.ts +0 -4
  13. package/dist/detal/default-values/default-values.js +0 -4
  14. package/dist/detal/schemas/detal-deficit.schema.d.ts +28 -198
  15. package/dist/detal/schemas/detal.schema.d.ts +22 -192
  16. package/dist/document/dto/update-document.dto.d.ts +2 -2
  17. package/dist/edizm/schemas/edizm.schema.d.ts +2 -2
  18. package/dist/edizm/schemas/type-edizm.schema.d.ts +6 -6
  19. package/dist/equipment/dto/udate-equipment-type.dto.d.ts +2 -2
  20. package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
  21. package/dist/equipment/schemas/equipment-pt.schema.d.ts +2 -2
  22. package/dist/equipment/schemas/equipment.schema.d.ts +6 -6
  23. package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +4 -4
  24. package/dist/expenditure/schema/expenditure-position.schema.d.ts +2 -2
  25. package/dist/instrument/dto/update-instrument.dto.d.ts +2 -2
  26. package/dist/instrument/dto/update-pt.dto.d.ts +2 -2
  27. package/dist/instrument/schemas/pt-instrument.schema.d.ts +2 -2
  28. package/dist/inventary/dto/update-inventary.dto.d.ts +2 -2
  29. package/dist/material/dto/create-material.dto.d.ts +0 -136
  30. package/dist/material/dto/create-material.dto.js +0 -16
  31. package/dist/material/dto/up-create-type-material.dto.d.ts +0 -4
  32. package/dist/material/dto/up-create-type-material.dto.js +1 -6
  33. package/dist/material/enum/enum.d.ts +0 -10
  34. package/dist/material/enum/enum.js +1 -12
  35. package/dist/material/index.d.ts +0 -1
  36. package/dist/material/index.js +0 -1
  37. package/dist/material/interfaces/interface.d.ts +0 -5
  38. package/dist/material/schemas/material-characteristics.schema.d.ts +0 -56
  39. package/dist/material/schemas/material-characteristics.schema.js +1 -3
  40. package/dist/material/schemas/material-shipments-response.schema.d.ts +6 -130
  41. package/dist/material/schemas/material.schema.d.ts +6 -130
  42. package/dist/material/schemas/subtype-material.schema.d.ts +2 -2
  43. package/dist/material/schemas/subtype-material.schema.js +1 -1
  44. package/dist/material/schemas/type-material.schema.d.ts +2 -118
  45. package/dist/material/schemas/type-material.schema.js +2 -9
  46. package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
  47. package/dist/moving/schemas/moving.schema.d.ts +6 -6
  48. package/dist/operations/dto/get-type-operation-by-id.dto.d.ts +3 -3
  49. package/dist/operations/dto/update-type-operation.dto.d.ts +2 -2
  50. package/dist/product/schemas/product-deficit.schema.d.ts +6 -6
  51. package/dist/production-tasks/index.d.ts +1 -0
  52. package/dist/production-tasks/index.js +1 -0
  53. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +232 -0
  54. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +64 -0
  55. package/dist/role/dto/update-role.dto.d.ts +2 -2
  56. package/dist/role/schemas/role.schema.d.ts +8 -8
  57. package/dist/sclad/schemas/remain.schema.d.ts +2 -2
  58. package/dist/sclad/schemas/remains.schema.d.ts +16 -16
  59. package/dist/settings/dto/update-edizm.dto.d.ts +2 -2
  60. package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +18 -18
  61. package/dist/shipments/dto/up-create-shipments.dto.d.ts +4 -4
  62. package/dist/shipments/schemas/shipment-list-item.schema.d.ts +12 -12
  63. package/dist/shipments/schemas/shipments.schema.d.ts +4 -4
  64. package/dist/shipments/types/increment-shipments-kolvo.type.d.ts +12 -12
  65. package/dist/shipments/types/update-shipments-by-product.type.d.ts +12 -12
  66. package/dist/specification/schema/attributes.schema.d.ts +46 -432
  67. package/dist/tech-process/schemas/tech-process.schema.d.ts +2 -2
  68. package/dist/user/schemas/user.schema.d.ts +4 -4
  69. package/dist/utils/schemas/schema.d.ts +2 -2
  70. package/dist/utils/types.d.ts +0 -6
  71. package/package.json +1 -1
@@ -5,12 +5,12 @@ export declare const UpdateTInstrumentDtoZod: z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  instance_type: z.ZodNativeEnum<typeof InstansTypeInstrument>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- name: string;
9
8
  id: number;
9
+ name: string;
10
10
  instance_type: InstansTypeInstrument;
11
11
  }, {
12
- name: string;
13
12
  id: number;
13
+ name: string;
14
14
  instance_type: InstansTypeInstrument;
15
15
  }>;
16
16
  export type UpdateTInstrumentDtoType = z.infer<typeof UpdateTInstrumentDtoZod>;
@@ -3,10 +3,10 @@ export declare const UpdatePTInstrumentDtoZod: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
4
  name: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- name: string;
7
6
  id: number;
8
- }, {
9
7
  name: string;
8
+ }, {
10
9
  id: number;
10
+ name: string;
11
11
  }>;
12
12
  export type UpdatePTInstrumentDtoType = z.infer<typeof UpdatePTInstrumentDtoZod>;
@@ -5,13 +5,13 @@ export declare const PInstrumentSchema: z.ZodObject<{
5
5
  instruments: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
6
6
  nameInstrument: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
7
7
  }, "strip", z.ZodTypeAny, {
8
- name: string;
9
8
  id: number;
9
+ name: string;
10
10
  instruments: any[];
11
11
  nameInstrument: any[];
12
12
  }, {
13
- name: string;
14
13
  id: number;
14
+ name: string;
15
15
  instruments: any[];
16
16
  nameInstrument: any[];
17
17
  }>;
@@ -3,10 +3,10 @@ export declare const UpdateInventaryDtoZod: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
4
  name: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- name: string;
7
6
  id: number;
8
- }, {
9
7
  name: string;
8
+ }, {
10
9
  id: number;
10
+ name: string;
11
11
  }>;
12
12
  export type UpdateInventaryDtoType = z.infer<typeof UpdateInventaryDtoZod>;
@@ -129,38 +129,6 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
129
129
  znach: string | number;
130
130
  shortName: string;
131
131
  }>>;
132
- acrossFlats: z.ZodOptional<z.ZodObject<{
133
- used: z.ZodBoolean;
134
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
135
- edizmId: z.ZodNumber;
136
- shortName: z.ZodString;
137
- }, "strip", z.ZodTypeAny, {
138
- used: boolean;
139
- edizmId: number;
140
- znach: string | number;
141
- shortName: string;
142
- }, {
143
- used: boolean;
144
- edizmId: number;
145
- znach: string | number;
146
- shortName: string;
147
- }>>;
148
- massPerMeter: z.ZodOptional<z.ZodObject<{
149
- used: z.ZodBoolean;
150
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
151
- edizmId: z.ZodNumber;
152
- shortName: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- used: boolean;
155
- edizmId: number;
156
- znach: string | number;
157
- shortName: string;
158
- }, {
159
- used: boolean;
160
- edizmId: number;
161
- znach: string | number;
162
- shortName: string;
163
- }>>;
164
132
  }, "strip", z.ZodTypeAny, {
165
133
  length?: {
166
134
  used: boolean;
@@ -210,18 +178,6 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
210
178
  znach: string | number;
211
179
  shortName: string;
212
180
  } | undefined;
213
- acrossFlats?: {
214
- used: boolean;
215
- edizmId: number;
216
- znach: string | number;
217
- shortName: string;
218
- } | undefined;
219
- massPerMeter?: {
220
- used: boolean;
221
- edizmId: number;
222
- znach: string | number;
223
- shortName: string;
224
- } | undefined;
225
181
  }, {
226
182
  length?: {
227
183
  used: boolean;
@@ -271,18 +227,6 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
271
227
  znach: string | number;
272
228
  shortName: string;
273
229
  } | undefined;
274
- acrossFlats?: {
275
- used: boolean;
276
- edizmId: number;
277
- znach: string | number;
278
- shortName: string;
279
- } | undefined;
280
- massPerMeter?: {
281
- used: boolean;
282
- edizmId: number;
283
- znach: string | number;
284
- shortName: string;
285
- } | undefined;
286
230
  }>;
287
231
  export declare const CreateMaterialDtoZod: z.ZodObject<{
288
232
  id: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
@@ -421,38 +365,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
421
365
  znach: string | number;
422
366
  shortName: string;
423
367
  }>>;
424
- acrossFlats: z.ZodOptional<z.ZodObject<{
425
- used: z.ZodBoolean;
426
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
427
- edizmId: z.ZodNumber;
428
- shortName: z.ZodString;
429
- }, "strip", z.ZodTypeAny, {
430
- used: boolean;
431
- edizmId: number;
432
- znach: string | number;
433
- shortName: string;
434
- }, {
435
- used: boolean;
436
- edizmId: number;
437
- znach: string | number;
438
- shortName: string;
439
- }>>;
440
- massPerMeter: z.ZodOptional<z.ZodObject<{
441
- used: z.ZodBoolean;
442
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
443
- edizmId: z.ZodNumber;
444
- shortName: z.ZodString;
445
- }, "strip", z.ZodTypeAny, {
446
- used: boolean;
447
- edizmId: number;
448
- znach: string | number;
449
- shortName: string;
450
- }, {
451
- used: boolean;
452
- edizmId: number;
453
- znach: string | number;
454
- shortName: string;
455
- }>>;
456
368
  }, "strip", z.ZodTypeAny, {
457
369
  length?: {
458
370
  used: boolean;
@@ -502,18 +414,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
502
414
  znach: string | number;
503
415
  shortName: string;
504
416
  } | undefined;
505
- acrossFlats?: {
506
- used: boolean;
507
- edizmId: number;
508
- znach: string | number;
509
- shortName: string;
510
- } | undefined;
511
- massPerMeter?: {
512
- used: boolean;
513
- edizmId: number;
514
- znach: string | number;
515
- shortName: string;
516
- } | undefined;
517
417
  }, {
518
418
  length?: {
519
419
  used: boolean;
@@ -563,18 +463,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
563
463
  znach: string | number;
564
464
  shortName: string;
565
465
  } | undefined;
566
- acrossFlats?: {
567
- used: boolean;
568
- edizmId: number;
569
- znach: string | number;
570
- shortName: string;
571
- } | undefined;
572
- massPerMeter?: {
573
- used: boolean;
574
- edizmId: number;
575
- znach: string | number;
576
- shortName: string;
577
- } | undefined;
578
466
  }>>, {
579
467
  length?: {
580
468
  used: boolean;
@@ -624,18 +512,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
624
512
  znach: string | number;
625
513
  shortName: string;
626
514
  } | undefined;
627
- acrossFlats?: {
628
- used: boolean;
629
- edizmId: number;
630
- znach: string | number;
631
- shortName: string;
632
- } | undefined;
633
- massPerMeter?: {
634
- used: boolean;
635
- edizmId: number;
636
- znach: string | number;
637
- shortName: string;
638
- } | undefined;
639
515
  } | undefined, unknown>;
640
516
  deliveryTime: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | null | undefined, unknown>;
641
517
  description: z.ZodString;
@@ -716,18 +592,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
716
592
  znach: string | number;
717
593
  shortName: string;
718
594
  } | undefined;
719
- acrossFlats?: {
720
- used: boolean;
721
- edizmId: number;
722
- znach: string | number;
723
- shortName: string;
724
- } | undefined;
725
- massPerMeter?: {
726
- used: boolean;
727
- edizmId: number;
728
- znach: string | number;
729
- shortName: string;
730
- } | undefined;
731
595
  } | undefined;
732
596
  file_base?: string | null | undefined;
733
597
  deliveryTime?: number | null | undefined;
@@ -67,22 +67,6 @@ exports.MaterialCharacteristicsSchemaZod = zod_1.z.object({
67
67
  znach: zod_1.z.union([zod_1.z.number(), zod_1.z.string()]),
68
68
  edizmId: zod_1.z.number(),
69
69
  shortName: zod_1.z.string()
70
- })
71
- .optional(),
72
- acrossFlats: zod_1.z
73
- .object({
74
- used: zod_1.z.boolean(),
75
- znach: zod_1.z.union([zod_1.z.number(), zod_1.z.string()]),
76
- edizmId: zod_1.z.number(),
77
- shortName: zod_1.z.string()
78
- })
79
- .optional(),
80
- massPerMeter: zod_1.z
81
- .object({
82
- used: zod_1.z.boolean(),
83
- znach: zod_1.z.union([zod_1.z.number(), zod_1.z.string()]),
84
- edizmId: zod_1.z.number(),
85
- shortName: zod_1.z.string()
86
70
  })
87
71
  .optional()
88
72
  });
@@ -1,23 +1,19 @@
1
1
  import { z } from 'zod';
2
2
  import { InstansMaterial, TypeMaterialCharacteristics } from '../../utils';
3
- import { WorkpieceMassFormulaKey } from '../enum/enum';
4
3
  export declare const UpCreateTypeMaterialDtoZod: z.ZodObject<{
5
4
  id: z.ZodOptional<z.ZodNumber>;
6
5
  name: z.ZodString;
7
6
  characteristics: z.ZodType<TypeMaterialCharacteristics, z.ZodTypeDef, TypeMaterialCharacteristics>;
8
7
  instance_type: z.ZodNativeEnum<typeof InstansMaterial>;
9
- workpieceMassFormulaKey: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WorkpieceMassFormulaKey>>>;
10
8
  }, "strip", z.ZodTypeAny, {
11
9
  name: string;
12
10
  characteristics: TypeMaterialCharacteristics;
13
11
  instance_type: InstansMaterial;
14
12
  id?: number | undefined;
15
- workpieceMassFormulaKey?: WorkpieceMassFormulaKey | null | undefined;
16
13
  }, {
17
14
  name: string;
18
15
  characteristics: TypeMaterialCharacteristics;
19
16
  instance_type: InstansMaterial;
20
17
  id?: number | undefined;
21
- workpieceMassFormulaKey?: WorkpieceMassFormulaKey | null | undefined;
22
18
  }>;
23
19
  export type UpCreateTypeMaterialDtoZodType = z.infer<typeof UpCreateTypeMaterialDtoZod>;
@@ -3,14 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpCreateTypeMaterialDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const utils_1 = require("../../utils");
6
- const enum_1 = require("../enum/enum");
7
6
  exports.UpCreateTypeMaterialDtoZod = zod_1.z.object({
8
7
  id: zod_1.z.number().optional(),
9
8
  name: zod_1.z.string(),
10
9
  characteristics: zod_1.z.custom(),
11
- instance_type: zod_1.z.nativeEnum(utils_1.InstansMaterial),
12
- workpieceMassFormulaKey: zod_1.z
13
- .nativeEnum(enum_1.WorkpieceMassFormulaKey)
14
- .nullable()
15
- .optional()
10
+ instance_type: zod_1.z.nativeEnum(utils_1.InstansMaterial)
16
11
  });
@@ -2,13 +2,3 @@ export declare enum EnumMetalloworkinCominFilter {
2
2
  all = "all",
3
3
  available = "available"
4
4
  }
5
- export declare enum WorkpieceMassFormulaKey {
6
- boundingBox = "bounding_box",
7
- rectangularSection = "rectangular_section",
8
- solidRoundSection = "solid_round_section",
9
- hollowRoundSection = "hollow_round_section",
10
- hollowProfileSection = "hollow_profile_section",
11
- hexSection = "hex_section",
12
- sectionArea = "section_area",
13
- linearMass = "linear_mass"
14
- }
@@ -1,19 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkpieceMassFormulaKey = exports.EnumMetalloworkinCominFilter = void 0;
3
+ exports.EnumMetalloworkinCominFilter = void 0;
4
4
  var EnumMetalloworkinCominFilter;
5
5
  (function (EnumMetalloworkinCominFilter) {
6
6
  EnumMetalloworkinCominFilter["all"] = "all";
7
7
  EnumMetalloworkinCominFilter["available"] = "available";
8
8
  })(EnumMetalloworkinCominFilter || (exports.EnumMetalloworkinCominFilter = EnumMetalloworkinCominFilter = {}));
9
- var WorkpieceMassFormulaKey;
10
- (function (WorkpieceMassFormulaKey) {
11
- WorkpieceMassFormulaKey["boundingBox"] = "bounding_box";
12
- WorkpieceMassFormulaKey["rectangularSection"] = "rectangular_section";
13
- WorkpieceMassFormulaKey["solidRoundSection"] = "solid_round_section";
14
- WorkpieceMassFormulaKey["hollowRoundSection"] = "hollow_round_section";
15
- WorkpieceMassFormulaKey["hollowProfileSection"] = "hollow_profile_section";
16
- WorkpieceMassFormulaKey["hexSection"] = "hex_section";
17
- WorkpieceMassFormulaKey["sectionArea"] = "section_area";
18
- WorkpieceMassFormulaKey["linearMass"] = "linear_mass";
19
- })(WorkpieceMassFormulaKey || (exports.WorkpieceMassFormulaKey = WorkpieceMassFormulaKey = {}));
@@ -18,4 +18,3 @@ export * from './enum/enum';
18
18
  export * from './dto/get-one-material.dto';
19
19
  export * from './dto/set-actual-shipment.dto';
20
20
  export * from './dto/get-deficit.dto';
21
- export * from './utils/workpiece-mass';
@@ -34,4 +34,3 @@ __exportStar(require("./enum/enum"), exports);
34
34
  __exportStar(require("./dto/get-one-material.dto"), exports);
35
35
  __exportStar(require("./dto/set-actual-shipment.dto"), exports);
36
36
  __exportStar(require("./dto/get-deficit.dto"), exports);
37
- __exportStar(require("./utils/workpiece-mass"), exports);
@@ -1,13 +1,8 @@
1
- import { WorkpieceMassFormulaKey } from '../enum/enum';
2
1
  export interface ITypeMaterialCreationAttrs {
3
2
  name: string;
4
- workpieceMassFormulaKey?: WorkpieceMassFormulaKey | null;
5
3
  }
6
4
  export interface ISubtypeMaterialCreationAttrs {
7
5
  name: string;
8
- density?: number | null;
9
- instance_type?: number;
10
- ban?: boolean;
11
6
  }
12
7
  export interface IMaterialCreationAttrs {
13
8
  name: string;
@@ -128,38 +128,6 @@ export declare const MaterialCharacteristicsSchema: z.ZodObject<{
128
128
  znach: number;
129
129
  shortName: string;
130
130
  }>;
131
- acrossFlats: z.ZodObject<{
132
- used: z.ZodBoolean;
133
- edizmId: z.ZodNumber;
134
- znach: z.ZodNumber;
135
- shortName: z.ZodString;
136
- }, "strip", z.ZodTypeAny, {
137
- used: boolean;
138
- edizmId: number;
139
- znach: number;
140
- shortName: string;
141
- }, {
142
- used: boolean;
143
- edizmId: number;
144
- znach: number;
145
- shortName: string;
146
- }>;
147
- massPerMeter: z.ZodObject<{
148
- used: z.ZodBoolean;
149
- edizmId: z.ZodNumber;
150
- znach: z.ZodNumber;
151
- shortName: z.ZodString;
152
- }, "strip", z.ZodTypeAny, {
153
- used: boolean;
154
- edizmId: number;
155
- znach: number;
156
- shortName: string;
157
- }, {
158
- used: boolean;
159
- edizmId: number;
160
- znach: number;
161
- shortName: string;
162
- }>;
163
131
  }, "strip", z.ZodTypeAny, {
164
132
  length: {
165
133
  used: boolean;
@@ -209,18 +177,6 @@ export declare const MaterialCharacteristicsSchema: z.ZodObject<{
209
177
  znach: number;
210
178
  shortName: string;
211
179
  };
212
- acrossFlats: {
213
- used: boolean;
214
- edizmId: number;
215
- znach: number;
216
- shortName: string;
217
- };
218
- massPerMeter: {
219
- used: boolean;
220
- edizmId: number;
221
- znach: number;
222
- shortName: string;
223
- };
224
180
  }, {
225
181
  length: {
226
182
  used: boolean;
@@ -270,17 +226,5 @@ export declare const MaterialCharacteristicsSchema: z.ZodObject<{
270
226
  znach: number;
271
227
  shortName: string;
272
228
  };
273
- acrossFlats: {
274
- used: boolean;
275
- edizmId: number;
276
- znach: number;
277
- shortName: string;
278
- };
279
- massPerMeter: {
280
- used: boolean;
281
- edizmId: number;
282
- znach: number;
283
- shortName: string;
284
- };
285
229
  }>;
286
230
  export type MaterialCharacteristicsType = z.infer<typeof MaterialCharacteristicsSchema>;
@@ -16,7 +16,5 @@ exports.MaterialCharacteristicsSchema = zod_1.z.object({
16
16
  wallThickness: characterictcs,
17
17
  outsideDiameter: characterictcs,
18
18
  thickness: characterictcs,
19
- areaCrossSectional: characterictcs,
20
- acrossFlats: characterictcs,
21
- massPerMeter: characterictcs
19
+ areaCrossSectional: characterictcs
22
20
  });