@pksep/zod-shared 0.0.549 → 0.0.550
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/assemble/dto/get-assemble-operation-count.dto.d.ts +14 -0
- package/dist/assemble/interfaces/interfaces.d.ts +1 -0
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +10 -0
- package/dist/assemble/schemas/assemble.schema.d.ts +10 -0
- package/dist/detal/default-values/default-values.d.ts +4 -0
- package/dist/detal/default-values/default-values.js +4 -0
- package/dist/detal/schemas/detal-deficit.schema.d.ts +170 -0
- package/dist/detal/schemas/detal.schema.d.ts +170 -0
- package/dist/material/dto/create-material.dto.d.ts +136 -0
- package/dist/material/dto/create-material.dto.js +16 -0
- package/dist/material/dto/up-create-type-material.dto.d.ts +4 -0
- package/dist/material/dto/up-create-type-material.dto.js +6 -1
- package/dist/material/enum/enum.d.ts +10 -0
- package/dist/material/enum/enum.js +12 -1
- package/dist/material/index.d.ts +1 -0
- package/dist/material/index.js +1 -0
- package/dist/material/interfaces/interface.d.ts +2 -0
- package/dist/material/schemas/material-characteristics.schema.d.ts +56 -0
- package/dist/material/schemas/material-characteristics.schema.js +3 -1
- package/dist/material/schemas/material-shipments-response.schema.d.ts +124 -0
- package/dist/material/schemas/material.schema.d.ts +124 -0
- package/dist/material/schemas/type-material.schema.d.ts +116 -0
- package/dist/material/schemas/type-material.schema.js +9 -2
- package/dist/material/utils/workpiece-mass.d.ts +56 -0
- package/dist/material/utils/workpiece-mass.js +538 -0
- package/dist/material/workpiece-mass.d.ts +45 -0
- package/dist/material/workpiece-mass.js +400 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +3 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +1 -0
- package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +40 -6
- package/dist/movement-object/schemas/get-one-object-history.schema.js +7 -1
- package/dist/production-tasks/interfaces/online-board.d.ts +1 -0
- package/dist/shipments/dto/format-list-shipment.dto.d.ts +3 -0
- package/dist/shipments/dto/format-list-shipment.dto.js +1 -0
- package/dist/shipments/dto/get-shipment-items-by-entity.dto.d.ts +22 -0
- package/dist/shipments/dto/get-shipment-items-by-entity.dto.js +12 -0
- package/dist/shipments/dto/up-create-shipments.dto.d.ts +342 -4
- package/dist/shipments/dto/up-create-shipments.dto.js +97 -3
- package/dist/shipments/dto/update-ready-to-ship-status.dto.d.ts +9 -0
- package/dist/shipments/dto/update-ready-to-ship-status.dto.js +7 -0
- package/dist/shipments/index.d.ts +2 -0
- package/dist/shipments/index.js +2 -0
- package/dist/shipments/types/types.d.ts +1 -0
- package/dist/specification/schema/attributes.schema.d.ts +386 -0
- package/dist/specification/type/type.d.ts +47 -1
- package/dist/utils/default-value/default-value.js +2 -1
- package/dist/utils/enums.d.ts +4 -2
- package/dist/utils/enums.js +2 -0
- package/dist/utils/types.d.ts +6 -0
- package/dist/waybill/dto/create-waybill-product.dto.d.ts +3 -3
- package/dist/waybill/dto/create-waybill-product.dto.js +1 -1
- package/dist/waybill/dto/create-waybill.dto.d.ts +5 -5
- package/dist/waybill/schemas/waybill.schema.d.ts +6 -0
- package/dist/waybill/schemas/waybill.schema.js +3 -1
- package/package.json +1 -1
|
@@ -226,6 +226,38 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
226
226
|
znach: number;
|
|
227
227
|
shortName: string;
|
|
228
228
|
}>;
|
|
229
|
+
acrossFlats: z.ZodObject<{
|
|
230
|
+
used: z.ZodBoolean;
|
|
231
|
+
edizmId: z.ZodNumber;
|
|
232
|
+
znach: z.ZodNumber;
|
|
233
|
+
shortName: z.ZodString;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
used: boolean;
|
|
236
|
+
edizmId: number;
|
|
237
|
+
znach: number;
|
|
238
|
+
shortName: string;
|
|
239
|
+
}, {
|
|
240
|
+
used: boolean;
|
|
241
|
+
edizmId: number;
|
|
242
|
+
znach: number;
|
|
243
|
+
shortName: string;
|
|
244
|
+
}>;
|
|
245
|
+
massPerMeter: z.ZodObject<{
|
|
246
|
+
used: z.ZodBoolean;
|
|
247
|
+
edizmId: z.ZodNumber;
|
|
248
|
+
znach: z.ZodNumber;
|
|
249
|
+
shortName: z.ZodString;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
used: boolean;
|
|
252
|
+
edizmId: number;
|
|
253
|
+
znach: number;
|
|
254
|
+
shortName: string;
|
|
255
|
+
}, {
|
|
256
|
+
used: boolean;
|
|
257
|
+
edizmId: number;
|
|
258
|
+
znach: number;
|
|
259
|
+
shortName: string;
|
|
260
|
+
}>;
|
|
229
261
|
}, "strip", z.ZodTypeAny, {
|
|
230
262
|
length: {
|
|
231
263
|
used: boolean;
|
|
@@ -275,6 +307,18 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
275
307
|
znach: number;
|
|
276
308
|
shortName: string;
|
|
277
309
|
};
|
|
310
|
+
acrossFlats: {
|
|
311
|
+
used: boolean;
|
|
312
|
+
edizmId: number;
|
|
313
|
+
znach: number;
|
|
314
|
+
shortName: string;
|
|
315
|
+
};
|
|
316
|
+
massPerMeter: {
|
|
317
|
+
used: boolean;
|
|
318
|
+
edizmId: number;
|
|
319
|
+
znach: number;
|
|
320
|
+
shortName: string;
|
|
321
|
+
};
|
|
278
322
|
}, {
|
|
279
323
|
length: {
|
|
280
324
|
used: boolean;
|
|
@@ -324,6 +368,18 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
324
368
|
znach: number;
|
|
325
369
|
shortName: string;
|
|
326
370
|
};
|
|
371
|
+
acrossFlats: {
|
|
372
|
+
used: boolean;
|
|
373
|
+
edizmId: number;
|
|
374
|
+
znach: number;
|
|
375
|
+
shortName: string;
|
|
376
|
+
};
|
|
377
|
+
massPerMeter: {
|
|
378
|
+
used: boolean;
|
|
379
|
+
edizmId: number;
|
|
380
|
+
znach: number;
|
|
381
|
+
shortName: string;
|
|
382
|
+
};
|
|
327
383
|
}>;
|
|
328
384
|
units_measurement: z.ZodArray<z.ZodType<import("../../material").IUnitsMeasurement, z.ZodTypeDef, import("../../material").IUnitsMeasurement>, "many">;
|
|
329
385
|
attention: z.ZodBoolean;
|
|
@@ -371,8 +427,19 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
371
427
|
shortName: string;
|
|
372
428
|
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
373
429
|
};
|
|
430
|
+
acrossFlats: {
|
|
431
|
+
edizmId: number;
|
|
432
|
+
shortName: string;
|
|
433
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
434
|
+
};
|
|
435
|
+
massPerMeter: {
|
|
436
|
+
edizmId: number;
|
|
437
|
+
shortName: string;
|
|
438
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
439
|
+
};
|
|
374
440
|
};
|
|
375
441
|
instance_type: number;
|
|
442
|
+
workpieceMassFormulaKey?: import("../../material").WorkpieceMassFormulaKey | null | undefined;
|
|
376
443
|
}, z.ZodTypeDef, {
|
|
377
444
|
ban: boolean;
|
|
378
445
|
id: number;
|
|
@@ -413,8 +480,19 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
413
480
|
shortName: string;
|
|
414
481
|
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
415
482
|
};
|
|
483
|
+
acrossFlats: {
|
|
484
|
+
edizmId: number;
|
|
485
|
+
shortName: string;
|
|
486
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
487
|
+
};
|
|
488
|
+
massPerMeter: {
|
|
489
|
+
edizmId: number;
|
|
490
|
+
shortName: string;
|
|
491
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
492
|
+
};
|
|
416
493
|
};
|
|
417
494
|
instance_type: number;
|
|
495
|
+
workpieceMassFormulaKey?: import("../../material").WorkpieceMassFormulaKey | null | undefined;
|
|
418
496
|
}>;
|
|
419
497
|
}, "strip", z.ZodTypeAny, {
|
|
420
498
|
ban: boolean;
|
|
@@ -479,6 +557,18 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
479
557
|
znach: number;
|
|
480
558
|
shortName: string;
|
|
481
559
|
};
|
|
560
|
+
acrossFlats: {
|
|
561
|
+
used: boolean;
|
|
562
|
+
edizmId: number;
|
|
563
|
+
znach: number;
|
|
564
|
+
shortName: string;
|
|
565
|
+
};
|
|
566
|
+
massPerMeter: {
|
|
567
|
+
used: boolean;
|
|
568
|
+
edizmId: number;
|
|
569
|
+
znach: number;
|
|
570
|
+
shortName: string;
|
|
571
|
+
};
|
|
482
572
|
};
|
|
483
573
|
instance_type: number;
|
|
484
574
|
price: number;
|
|
@@ -526,8 +616,19 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
526
616
|
shortName: string;
|
|
527
617
|
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
528
618
|
};
|
|
619
|
+
acrossFlats: {
|
|
620
|
+
edizmId: number;
|
|
621
|
+
shortName: string;
|
|
622
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
623
|
+
};
|
|
624
|
+
massPerMeter: {
|
|
625
|
+
edizmId: number;
|
|
626
|
+
shortName: string;
|
|
627
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
628
|
+
};
|
|
529
629
|
};
|
|
530
630
|
instance_type: number;
|
|
631
|
+
workpieceMassFormulaKey?: import("../../material").WorkpieceMassFormulaKey | null | undefined;
|
|
531
632
|
};
|
|
532
633
|
shipments?: any;
|
|
533
634
|
isOrderedByStockOrder?: boolean | undefined;
|
|
@@ -590,6 +691,18 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
590
691
|
znach: number;
|
|
591
692
|
shortName: string;
|
|
592
693
|
};
|
|
694
|
+
acrossFlats: {
|
|
695
|
+
used: boolean;
|
|
696
|
+
edizmId: number;
|
|
697
|
+
znach: number;
|
|
698
|
+
shortName: string;
|
|
699
|
+
};
|
|
700
|
+
massPerMeter: {
|
|
701
|
+
used: boolean;
|
|
702
|
+
edizmId: number;
|
|
703
|
+
znach: number;
|
|
704
|
+
shortName: string;
|
|
705
|
+
};
|
|
593
706
|
};
|
|
594
707
|
instance_type: number;
|
|
595
708
|
price: number;
|
|
@@ -636,8 +749,19 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
636
749
|
shortName: string;
|
|
637
750
|
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
638
751
|
};
|
|
752
|
+
acrossFlats: {
|
|
753
|
+
edizmId: number;
|
|
754
|
+
shortName: string;
|
|
755
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
756
|
+
};
|
|
757
|
+
massPerMeter: {
|
|
758
|
+
edizmId: number;
|
|
759
|
+
shortName: string;
|
|
760
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
761
|
+
};
|
|
639
762
|
};
|
|
640
763
|
instance_type: number;
|
|
764
|
+
workpieceMassFormulaKey?: import("../../material").WorkpieceMassFormulaKey | null | undefined;
|
|
641
765
|
};
|
|
642
766
|
ban?: boolean | undefined;
|
|
643
767
|
shipments?: any;
|
|
@@ -1257,6 +1381,18 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1257
1381
|
znach: number;
|
|
1258
1382
|
shortName: string;
|
|
1259
1383
|
};
|
|
1384
|
+
acrossFlats: {
|
|
1385
|
+
used: boolean;
|
|
1386
|
+
edizmId: number;
|
|
1387
|
+
znach: number;
|
|
1388
|
+
shortName: string;
|
|
1389
|
+
};
|
|
1390
|
+
massPerMeter: {
|
|
1391
|
+
used: boolean;
|
|
1392
|
+
edizmId: number;
|
|
1393
|
+
znach: number;
|
|
1394
|
+
shortName: string;
|
|
1395
|
+
};
|
|
1260
1396
|
};
|
|
1261
1397
|
instance_type: number;
|
|
1262
1398
|
price: number;
|
|
@@ -1304,8 +1440,19 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1304
1440
|
shortName: string;
|
|
1305
1441
|
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
1306
1442
|
};
|
|
1443
|
+
acrossFlats: {
|
|
1444
|
+
edizmId: number;
|
|
1445
|
+
shortName: string;
|
|
1446
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
1447
|
+
};
|
|
1448
|
+
massPerMeter: {
|
|
1449
|
+
edizmId: number;
|
|
1450
|
+
shortName: string;
|
|
1451
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
1452
|
+
};
|
|
1307
1453
|
};
|
|
1308
1454
|
instance_type: number;
|
|
1455
|
+
workpieceMassFormulaKey?: import("../../material").WorkpieceMassFormulaKey | null | undefined;
|
|
1309
1456
|
};
|
|
1310
1457
|
shipments?: any;
|
|
1311
1458
|
isOrderedByStockOrder?: boolean | undefined;
|
|
@@ -1547,6 +1694,18 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1547
1694
|
znach: number;
|
|
1548
1695
|
shortName: string;
|
|
1549
1696
|
};
|
|
1697
|
+
acrossFlats: {
|
|
1698
|
+
used: boolean;
|
|
1699
|
+
edizmId: number;
|
|
1700
|
+
znach: number;
|
|
1701
|
+
shortName: string;
|
|
1702
|
+
};
|
|
1703
|
+
massPerMeter: {
|
|
1704
|
+
used: boolean;
|
|
1705
|
+
edizmId: number;
|
|
1706
|
+
znach: number;
|
|
1707
|
+
shortName: string;
|
|
1708
|
+
};
|
|
1550
1709
|
};
|
|
1551
1710
|
instance_type: number;
|
|
1552
1711
|
price: number;
|
|
@@ -1593,8 +1752,19 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1593
1752
|
shortName: string;
|
|
1594
1753
|
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
1595
1754
|
};
|
|
1755
|
+
acrossFlats: {
|
|
1756
|
+
edizmId: number;
|
|
1757
|
+
shortName: string;
|
|
1758
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
1759
|
+
};
|
|
1760
|
+
massPerMeter: {
|
|
1761
|
+
edizmId: number;
|
|
1762
|
+
shortName: string;
|
|
1763
|
+
znach?: import("../../utils").TypeMaterialCharZnachEnum | null | undefined;
|
|
1764
|
+
};
|
|
1596
1765
|
};
|
|
1597
1766
|
instance_type: number;
|
|
1767
|
+
workpieceMassFormulaKey?: import("../../material").WorkpieceMassFormulaKey | null | undefined;
|
|
1598
1768
|
};
|
|
1599
1769
|
ban?: boolean | undefined;
|
|
1600
1770
|
shipments?: any;
|
|
@@ -129,6 +129,38 @@ 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
|
+
}>>;
|
|
132
164
|
}, "strip", z.ZodTypeAny, {
|
|
133
165
|
length?: {
|
|
134
166
|
used: boolean;
|
|
@@ -178,6 +210,18 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
|
|
|
178
210
|
znach: string | number;
|
|
179
211
|
shortName: string;
|
|
180
212
|
} | 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;
|
|
181
225
|
}, {
|
|
182
226
|
length?: {
|
|
183
227
|
used: boolean;
|
|
@@ -227,6 +271,18 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
|
|
|
227
271
|
znach: string | number;
|
|
228
272
|
shortName: string;
|
|
229
273
|
} | 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;
|
|
230
286
|
}>;
|
|
231
287
|
export declare const CreateMaterialDtoZod: z.ZodObject<{
|
|
232
288
|
id: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
@@ -365,6 +421,38 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
|
|
|
365
421
|
znach: string | number;
|
|
366
422
|
shortName: string;
|
|
367
423
|
}>>;
|
|
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
|
+
}>>;
|
|
368
456
|
}, "strip", z.ZodTypeAny, {
|
|
369
457
|
length?: {
|
|
370
458
|
used: boolean;
|
|
@@ -414,6 +502,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
|
|
|
414
502
|
znach: string | number;
|
|
415
503
|
shortName: string;
|
|
416
504
|
} | 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;
|
|
417
517
|
}, {
|
|
418
518
|
length?: {
|
|
419
519
|
used: boolean;
|
|
@@ -463,6 +563,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
|
|
|
463
563
|
znach: string | number;
|
|
464
564
|
shortName: string;
|
|
465
565
|
} | 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;
|
|
466
578
|
}>>, {
|
|
467
579
|
length?: {
|
|
468
580
|
used: boolean;
|
|
@@ -512,6 +624,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
|
|
|
512
624
|
znach: string | number;
|
|
513
625
|
shortName: string;
|
|
514
626
|
} | 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;
|
|
515
639
|
} | undefined, unknown>;
|
|
516
640
|
deliveryTime: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | null | undefined, unknown>;
|
|
517
641
|
description: z.ZodString;
|
|
@@ -592,6 +716,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
|
|
|
592
716
|
znach: string | number;
|
|
593
717
|
shortName: string;
|
|
594
718
|
} | 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;
|
|
595
731
|
} | undefined;
|
|
596
732
|
file_base?: string | null | undefined;
|
|
597
733
|
deliveryTime?: number | null | undefined;
|
|
@@ -67,6 +67,22 @@ 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()
|
|
70
86
|
})
|
|
71
87
|
.optional()
|
|
72
88
|
});
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { InstansMaterial, TypeMaterialCharacteristics } from '../../utils';
|
|
3
|
+
import { WorkpieceMassFormulaKey } from '../enum/enum';
|
|
3
4
|
export declare const UpCreateTypeMaterialDtoZod: z.ZodObject<{
|
|
4
5
|
id: z.ZodOptional<z.ZodNumber>;
|
|
5
6
|
name: z.ZodString;
|
|
6
7
|
characteristics: z.ZodType<TypeMaterialCharacteristics, z.ZodTypeDef, TypeMaterialCharacteristics>;
|
|
7
8
|
instance_type: z.ZodNativeEnum<typeof InstansMaterial>;
|
|
9
|
+
workpieceMassFormulaKey: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WorkpieceMassFormulaKey>>>;
|
|
8
10
|
}, "strip", z.ZodTypeAny, {
|
|
9
11
|
name: string;
|
|
10
12
|
characteristics: TypeMaterialCharacteristics;
|
|
11
13
|
instance_type: InstansMaterial;
|
|
12
14
|
id?: number | undefined;
|
|
15
|
+
workpieceMassFormulaKey?: WorkpieceMassFormulaKey | null | undefined;
|
|
13
16
|
}, {
|
|
14
17
|
name: string;
|
|
15
18
|
characteristics: TypeMaterialCharacteristics;
|
|
16
19
|
instance_type: InstansMaterial;
|
|
17
20
|
id?: number | undefined;
|
|
21
|
+
workpieceMassFormulaKey?: WorkpieceMassFormulaKey | null | undefined;
|
|
18
22
|
}>;
|
|
19
23
|
export type UpCreateTypeMaterialDtoZodType = z.infer<typeof UpCreateTypeMaterialDtoZod>;
|
|
@@ -3,9 +3,14 @@ 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");
|
|
6
7
|
exports.UpCreateTypeMaterialDtoZod = zod_1.z.object({
|
|
7
8
|
id: zod_1.z.number().optional(),
|
|
8
9
|
name: zod_1.z.string(),
|
|
9
10
|
characteristics: zod_1.z.custom(),
|
|
10
|
-
instance_type: zod_1.z.nativeEnum(utils_1.InstansMaterial)
|
|
11
|
+
instance_type: zod_1.z.nativeEnum(utils_1.InstansMaterial),
|
|
12
|
+
workpieceMassFormulaKey: zod_1.z
|
|
13
|
+
.nativeEnum(enum_1.WorkpieceMassFormulaKey)
|
|
14
|
+
.nullable()
|
|
15
|
+
.optional()
|
|
11
16
|
});
|
|
@@ -2,3 +2,13 @@ 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,8 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnumMetalloworkinCominFilter = void 0;
|
|
3
|
+
exports.WorkpieceMassFormulaKey = 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 = {}));
|
package/dist/material/index.d.ts
CHANGED
package/dist/material/index.js
CHANGED
|
@@ -34,3 +34,4 @@ __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);
|
|
@@ -128,6 +128,38 @@ 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
|
+
}>;
|
|
131
163
|
}, "strip", z.ZodTypeAny, {
|
|
132
164
|
length: {
|
|
133
165
|
used: boolean;
|
|
@@ -177,6 +209,18 @@ export declare const MaterialCharacteristicsSchema: z.ZodObject<{
|
|
|
177
209
|
znach: number;
|
|
178
210
|
shortName: string;
|
|
179
211
|
};
|
|
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
|
+
};
|
|
180
224
|
}, {
|
|
181
225
|
length: {
|
|
182
226
|
used: boolean;
|
|
@@ -226,5 +270,17 @@ export declare const MaterialCharacteristicsSchema: z.ZodObject<{
|
|
|
226
270
|
znach: number;
|
|
227
271
|
shortName: string;
|
|
228
272
|
};
|
|
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
|
+
};
|
|
229
285
|
}>;
|
|
230
286
|
export type MaterialCharacteristicsType = z.infer<typeof MaterialCharacteristicsSchema>;
|
|
@@ -16,5 +16,7 @@ exports.MaterialCharacteristicsSchema = zod_1.z.object({
|
|
|
16
16
|
wallThickness: characterictcs,
|
|
17
17
|
outsideDiameter: characterictcs,
|
|
18
18
|
thickness: characterictcs,
|
|
19
|
-
areaCrossSectional: characterictcs
|
|
19
|
+
areaCrossSectional: characterictcs,
|
|
20
|
+
acrossFlats: characterictcs,
|
|
21
|
+
massPerMeter: characterictcs
|
|
20
22
|
});
|