@pksep/zod-shared 0.0.506 → 0.0.507
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/create-assemble-kit.dto.d.ts +2 -2
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +2 -2
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +7 -7
- package/dist/assemble/schemas/assemble.schema.d.ts +1 -1
- package/dist/cbed/dto/up-create-cbed.dto.d.ts +2 -2
- package/dist/cbed/schemas/cbed.schema.d.ts +20 -14
- package/dist/cbed/schemas/cbed.schema.js +2 -0
- package/dist/detal/dto/update-detal.dto.d.ts +2 -2
- package/dist/detal/schemas/detal-deficit.schema.d.ts +85 -277
- package/dist/detal/schemas/detal.schema.d.ts +92 -283
- package/dist/detal/schemas/detal.schema.js +2 -0
- package/dist/equipment/dto/create-equipment.dto.js +1 -1
- package/dist/equipment/dto/update-equipment.dto.js +1 -9
- package/dist/material/schemas/material.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +125 -111
- package/dist/operations/dto/update-create-operation.dto.d.ts +3 -0
- package/dist/operations/dto/update-create-operation.dto.js +1 -0
- package/dist/product/dto/up-create-product.dto.d.ts +5 -5
- package/dist/product/schemas/product-deficit.schema.d.ts +12 -12
- package/dist/product/schemas/product.schema.d.ts +12 -12
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +2 -2
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +18 -0
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +7 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +21 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +8 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +18 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.js +8 -1
- package/dist/production-tasks/dto/get-taks-by-toperation.dto.d.ts +3 -0
- package/dist/production-tasks/dto/get-taks-by-toperation.dto.js +4 -0
- package/dist/production-tasks/dto/plan-production-task.dto.d.ts +6 -0
- package/dist/production-tasks/dto/plan-production-task.dto.js +2 -0
- package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +3 -3
- package/dist/production-tasks/dto/set-start-time-detal.dto.js +1 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +96 -1
- package/dist/production-tasks/methods/methods.d.ts +2 -0
- package/dist/production-tasks/methods/methods.js +36 -4
- package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
- package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +3 -3
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +1 -1
- package/dist/role/schemas/role.schema.d.ts +125 -111
- package/dist/sclad/schemas/remains.schema.d.ts +4 -4
- package/dist/specification/schema/attributes.schema.d.ts +184 -462
- package/dist/tech-process/index.d.ts +1 -0
- package/dist/tech-process/index.js +1 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
- package/dist/tech-process/schemas/tech-process.schema.d.ts +8 -1
- package/dist/user/schemas/user.schema.d.ts +84 -74
- package/dist/utils/methods.d.ts +1 -1
- package/dist/utils/methods.js +2 -4
- package/dist/utils/operation.d.ts +1 -0
- package/dist/utils/operation.js +8 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ModelUser } from '../../user';
|
|
3
3
|
import { ModelShipments } from '../../shipments';
|
|
4
|
-
import { DetalWorkpieceCharacteristics, EntityCommonSpecificationArray, ProductionTimeType } from '../../utils';
|
|
4
|
+
import { DetalWorkpieceCharacteristics, EntityCommonSpecificationArray, IzdType, ProductionTimeType } from '../../utils';
|
|
5
5
|
import { ModelMaterial } from '../../material';
|
|
6
|
+
import { ModelTechProcess } from '../../tech-process';
|
|
6
7
|
import { detalCharacteristicField, detalParametrsField } from '../types/detal';
|
|
7
8
|
export declare const DetalSchema: z.ZodObject<{
|
|
8
9
|
id: z.ZodNumber;
|
|
@@ -459,10 +460,10 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
459
460
|
delivery_ordered: number;
|
|
460
461
|
deliveryTime: number;
|
|
461
462
|
min_remaining: number;
|
|
462
|
-
shipments_deficit: number;
|
|
463
463
|
deficit: number;
|
|
464
|
-
|
|
464
|
+
shipments_deficit: number;
|
|
465
465
|
deficit_by_sclad: number;
|
|
466
|
+
in_kit: number;
|
|
466
467
|
units_measurement: import("../../material").IUnitsMeasurement[];
|
|
467
468
|
actual_shipment_id: number | null;
|
|
468
469
|
typeMaterial: {
|
|
@@ -626,112 +627,10 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
626
627
|
mat_zag: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
627
628
|
mat_za_obj: z.ZodOptional<z.ZodType<ModelMaterial, z.ZodTypeDef, ModelMaterial>>;
|
|
628
629
|
mat_zag_zam: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
629
|
-
techProcesses: z.ZodOptional<z.ZodType<
|
|
630
|
-
ban: boolean;
|
|
631
|
-
description: string;
|
|
632
|
-
id?: number | null | undefined;
|
|
633
|
-
name?: number | undefined;
|
|
634
|
-
detalId?: number | null | undefined;
|
|
635
|
-
cbedId?: number | null | undefined;
|
|
636
|
-
productId?: number | null | undefined;
|
|
637
|
-
operations?: {
|
|
638
|
-
ban: boolean;
|
|
639
|
-
description: string;
|
|
640
|
-
name: number;
|
|
641
|
-
full_name: string;
|
|
642
|
-
preTime: number;
|
|
643
|
-
helperTime: number;
|
|
644
|
-
mainTime: number;
|
|
645
|
-
generalCountTime: string;
|
|
646
|
-
instrumentList: string;
|
|
647
|
-
instrumentMerList: string;
|
|
648
|
-
instrumentOsnList: string;
|
|
649
|
-
eqList: string;
|
|
650
|
-
instrumentID: number | null;
|
|
651
|
-
instrumentMerID: number | null;
|
|
652
|
-
instrumentOsnID: number | null;
|
|
653
|
-
eqID: number | null;
|
|
654
|
-
idx: number;
|
|
655
|
-
tOperationId: number | null;
|
|
656
|
-
tech_process_id: number;
|
|
657
|
-
id?: number | undefined;
|
|
658
|
-
marks?: {
|
|
659
|
-
status: import("../..").MarkStatusEnums;
|
|
660
|
-
ban: boolean;
|
|
661
|
-
id: number;
|
|
662
|
-
date_build: string;
|
|
663
|
-
kol: number;
|
|
664
|
-
user_id: number;
|
|
665
|
-
oper_id: number;
|
|
666
|
-
assemble_id: number;
|
|
667
|
-
metaloworking_id: number;
|
|
668
|
-
brak: boolean;
|
|
669
|
-
execution_time: number;
|
|
670
|
-
production_task_id: number | null;
|
|
671
|
-
quantity_shipped: number;
|
|
672
|
-
description?: string | undefined;
|
|
673
|
-
assemble_kit_id?: number | null | undefined;
|
|
674
|
-
operation_execution_time?: {
|
|
675
|
-
preTime: number;
|
|
676
|
-
helperTime: number;
|
|
677
|
-
mainTime: number;
|
|
678
|
-
} | undefined;
|
|
679
|
-
}[] | undefined;
|
|
680
|
-
}[] | undefined;
|
|
681
|
-
}, z.ZodTypeDef, {
|
|
682
|
-
ban: boolean;
|
|
683
|
-
description: string;
|
|
684
|
-
id?: number | null | undefined;
|
|
685
|
-
name?: number | undefined;
|
|
686
|
-
detalId?: number | null | undefined;
|
|
687
|
-
cbedId?: number | null | undefined;
|
|
688
|
-
productId?: number | null | undefined;
|
|
689
|
-
operations?: {
|
|
690
|
-
ban: boolean;
|
|
691
|
-
description: string;
|
|
692
|
-
name: number;
|
|
693
|
-
full_name: string;
|
|
694
|
-
preTime: number;
|
|
695
|
-
helperTime: number;
|
|
696
|
-
mainTime: number;
|
|
697
|
-
generalCountTime: string;
|
|
698
|
-
instrumentList: string;
|
|
699
|
-
instrumentMerList: string;
|
|
700
|
-
instrumentOsnList: string;
|
|
701
|
-
eqList: string;
|
|
702
|
-
instrumentID: number | null;
|
|
703
|
-
instrumentMerID: number | null;
|
|
704
|
-
instrumentOsnID: number | null;
|
|
705
|
-
eqID: number | null;
|
|
706
|
-
idx: number;
|
|
707
|
-
tOperationId: number | null;
|
|
708
|
-
tech_process_id: number;
|
|
709
|
-
id?: number | undefined;
|
|
710
|
-
marks?: {
|
|
711
|
-
status: import("../..").MarkStatusEnums;
|
|
712
|
-
ban: boolean;
|
|
713
|
-
id: number;
|
|
714
|
-
date_build: string;
|
|
715
|
-
kol: number;
|
|
716
|
-
user_id: number;
|
|
717
|
-
oper_id: number;
|
|
718
|
-
assemble_id: number;
|
|
719
|
-
metaloworking_id: number;
|
|
720
|
-
brak: boolean;
|
|
721
|
-
execution_time: number;
|
|
722
|
-
production_task_id: number | null;
|
|
723
|
-
quantity_shipped: number;
|
|
724
|
-
description?: string | undefined;
|
|
725
|
-
assemble_kit_id?: number | null | undefined;
|
|
726
|
-
operation_execution_time?: {
|
|
727
|
-
preTime: number;
|
|
728
|
-
helperTime: number;
|
|
729
|
-
mainTime: number;
|
|
730
|
-
} | undefined;
|
|
731
|
-
}[] | undefined;
|
|
732
|
-
}[] | undefined;
|
|
733
|
-
}>>;
|
|
630
|
+
techProcesses: z.ZodOptional<z.ZodType<ModelTechProcess, z.ZodTypeDef, ModelTechProcess>>;
|
|
734
631
|
responsibleId: z.ZodNumber;
|
|
632
|
+
task_relative_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
633
|
+
task_relative_type: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof IzdType>>>;
|
|
735
634
|
actual_shipment_id: z.ZodNullable<z.ZodNumber>;
|
|
736
635
|
cbed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
737
636
|
id: z.ZodNumber;
|
|
@@ -739,6 +638,8 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
739
638
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
740
639
|
min_remaining: z.ZodDefault<z.ZodNumber>;
|
|
741
640
|
remainder_after_coming: z.ZodDefault<z.ZodNumber>;
|
|
641
|
+
task_relative_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
642
|
+
task_relative_type: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof IzdType>>>;
|
|
742
643
|
quantity: z.ZodDefault<z.ZodNumber>;
|
|
743
644
|
deficit: z.ZodDefault<z.ZodNumber>;
|
|
744
645
|
shipments_kolvo: z.ZodDefault<z.ZodNumber>;
|
|
@@ -776,21 +677,23 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
776
677
|
shipments_kolvo: number;
|
|
777
678
|
min_remaining: number;
|
|
778
679
|
responsibleId: number | null;
|
|
779
|
-
|
|
780
|
-
shipments_deficit: number;
|
|
680
|
+
remainder_after_coming: number;
|
|
781
681
|
deficit: number;
|
|
682
|
+
shipments_deficit: number;
|
|
683
|
+
production_ordered: number;
|
|
684
|
+
deficit_by_sclad: number;
|
|
782
685
|
ava_path: string | null;
|
|
783
686
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
784
687
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
688
|
+
in_kit: number;
|
|
785
689
|
listPokDet: EntityCommonSpecificationArray | null;
|
|
786
|
-
listDetal: EntityCommonSpecificationArray | null;
|
|
787
690
|
listCbed: EntityCommonSpecificationArray | null;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
691
|
+
listDetal: EntityCommonSpecificationArray | null;
|
|
692
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
693
|
+
task_relative_id?: number | null | undefined;
|
|
694
|
+
task_relative_type?: IzdType | null | undefined;
|
|
791
695
|
discontinued?: boolean | undefined;
|
|
792
696
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
793
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
794
697
|
}, {
|
|
795
698
|
designation: string | null;
|
|
796
699
|
description: string | null;
|
|
@@ -803,23 +706,25 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
803
706
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
804
707
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
805
708
|
listPokDet: EntityCommonSpecificationArray | null;
|
|
806
|
-
listDetal: EntityCommonSpecificationArray | null;
|
|
807
709
|
listCbed: EntityCommonSpecificationArray | null;
|
|
710
|
+
listDetal: EntityCommonSpecificationArray | null;
|
|
808
711
|
ban?: boolean | undefined;
|
|
809
712
|
cbed?: import("../../cbed").CbedRelativeType[] | undefined;
|
|
810
713
|
attention?: boolean | undefined;
|
|
811
714
|
quantity?: number | undefined;
|
|
812
715
|
shipments_kolvo?: number | undefined;
|
|
813
716
|
min_remaining?: number | undefined;
|
|
814
|
-
|
|
815
|
-
shipments_deficit?: number | undefined;
|
|
717
|
+
remainder_after_coming?: number | undefined;
|
|
816
718
|
deficit?: number | undefined;
|
|
719
|
+
shipments_deficit?: number | undefined;
|
|
720
|
+
production_ordered?: number | undefined;
|
|
721
|
+
deficit_by_sclad?: number | undefined;
|
|
722
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
817
723
|
in_kit?: number | undefined;
|
|
724
|
+
task_relative_id?: number | null | undefined;
|
|
725
|
+
task_relative_type?: IzdType | null | undefined;
|
|
818
726
|
discontinued?: boolean | undefined;
|
|
819
727
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
820
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
821
|
-
remainder_after_coming?: number | undefined;
|
|
822
|
-
deficit_by_sclad?: number | undefined;
|
|
823
728
|
}>, "many">>;
|
|
824
729
|
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
825
730
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -859,49 +764,49 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
859
764
|
shipments_kolvo: number;
|
|
860
765
|
min_remaining: number;
|
|
861
766
|
responsibleId: number | null;
|
|
862
|
-
production_ordered: number;
|
|
863
|
-
shipments_deficit: number;
|
|
864
767
|
deficit: number;
|
|
865
|
-
|
|
768
|
+
shipments_deficit: number;
|
|
769
|
+
production_ordered: number;
|
|
866
770
|
ava_path: string | null;
|
|
867
771
|
parametrs: import("../../cbed").CbedVariableField[];
|
|
868
772
|
characteristic: import("../../cbed").CbedVariableField[];
|
|
773
|
+
in_kit: number;
|
|
869
774
|
listPokDet: EntityCommonSpecificationArray;
|
|
870
|
-
listDetal: EntityCommonSpecificationArray;
|
|
871
775
|
listCbed: EntityCommonSpecificationArray;
|
|
872
|
-
|
|
776
|
+
listDetal: EntityCommonSpecificationArray;
|
|
777
|
+
articl: string | null;
|
|
873
778
|
is_custom: boolean;
|
|
874
779
|
id?: number | null | undefined;
|
|
780
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
875
781
|
discontinued?: boolean | undefined;
|
|
876
782
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
877
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
878
783
|
}, {
|
|
879
784
|
designation: string | null;
|
|
880
785
|
description: string | null;
|
|
881
786
|
name: string;
|
|
882
787
|
materialList: EntityCommonSpecificationArray;
|
|
883
788
|
responsibleId: number | null;
|
|
884
|
-
articl: string | null;
|
|
885
789
|
ava_path: string | null;
|
|
886
790
|
listPokDet: EntityCommonSpecificationArray;
|
|
887
|
-
listDetal: EntityCommonSpecificationArray;
|
|
888
791
|
listCbed: EntityCommonSpecificationArray;
|
|
792
|
+
listDetal: EntityCommonSpecificationArray;
|
|
793
|
+
articl: string | null;
|
|
889
794
|
ban?: boolean | undefined;
|
|
890
795
|
id?: number | null | undefined;
|
|
891
796
|
attention?: boolean | undefined;
|
|
892
797
|
quantity?: number | undefined;
|
|
893
798
|
shipments_kolvo?: number | undefined;
|
|
894
799
|
min_remaining?: number | undefined;
|
|
895
|
-
production_ordered?: number | undefined;
|
|
896
|
-
shipments_deficit?: number | undefined;
|
|
897
800
|
deficit?: number | undefined;
|
|
801
|
+
shipments_deficit?: number | undefined;
|
|
802
|
+
production_ordered?: number | undefined;
|
|
803
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
898
804
|
parametrs?: import("../../cbed").CbedVariableField[] | undefined;
|
|
899
805
|
characteristic?: import("../../cbed").CbedVariableField[] | undefined;
|
|
900
806
|
in_kit?: number | undefined;
|
|
901
|
-
is_custom?: boolean | undefined;
|
|
902
807
|
discontinued?: boolean | undefined;
|
|
903
808
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
904
|
-
|
|
809
|
+
is_custom?: boolean | undefined;
|
|
905
810
|
}>, "many">>;
|
|
906
811
|
metaloworking: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
907
812
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -952,7 +857,7 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
952
857
|
count_shipments: z.ZodNumber;
|
|
953
858
|
count_create: z.ZodDefault<z.ZodNumber>;
|
|
954
859
|
closing_date: z.ZodNullable<z.ZodDate>;
|
|
955
|
-
type: z.ZodNativeEnum<typeof
|
|
860
|
+
type: z.ZodNativeEnum<typeof IzdType>;
|
|
956
861
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
957
862
|
description: z.ZodOptional<z.ZodString>;
|
|
958
863
|
detal_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -960,7 +865,7 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
960
865
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
961
866
|
stock_order_id: z.ZodNumber;
|
|
962
867
|
}, "strip", z.ZodTypeAny, {
|
|
963
|
-
type:
|
|
868
|
+
type: IzdType;
|
|
964
869
|
ban: boolean;
|
|
965
870
|
stock_order_id: number;
|
|
966
871
|
count_shipments: number;
|
|
@@ -972,7 +877,7 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
972
877
|
detal_id?: number | null | undefined;
|
|
973
878
|
product_id?: number | null | undefined;
|
|
974
879
|
}, {
|
|
975
|
-
type:
|
|
880
|
+
type: IzdType;
|
|
976
881
|
stock_order_id: number;
|
|
977
882
|
count_shipments: number;
|
|
978
883
|
closing_date: Date | null;
|
|
@@ -1111,15 +1016,15 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1111
1016
|
shipments_kolvo: number;
|
|
1112
1017
|
min_remaining: number;
|
|
1113
1018
|
responsibleId: number;
|
|
1114
|
-
|
|
1115
|
-
shipments_deficit: number;
|
|
1019
|
+
remainder_after_coming: number;
|
|
1116
1020
|
deficit: number;
|
|
1021
|
+
shipments_deficit: number;
|
|
1022
|
+
production_ordered: number;
|
|
1023
|
+
deficit_by_sclad: number;
|
|
1117
1024
|
parametrs: detalParametrsField | null;
|
|
1118
1025
|
characteristic: detalCharacteristicField | null;
|
|
1119
|
-
in_kit: number;
|
|
1120
|
-
remainder_after_coming: number;
|
|
1121
|
-
deficit_by_sclad: number;
|
|
1122
1026
|
workpiece_characterization: DetalWorkpieceCharacteristics | null;
|
|
1027
|
+
in_kit: number;
|
|
1123
1028
|
actual_shipment_id: number | null;
|
|
1124
1029
|
cbed?: {
|
|
1125
1030
|
ban: boolean;
|
|
@@ -1135,21 +1040,23 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1135
1040
|
shipments_kolvo: number;
|
|
1136
1041
|
min_remaining: number;
|
|
1137
1042
|
responsibleId: number | null;
|
|
1138
|
-
|
|
1139
|
-
shipments_deficit: number;
|
|
1043
|
+
remainder_after_coming: number;
|
|
1140
1044
|
deficit: number;
|
|
1045
|
+
shipments_deficit: number;
|
|
1046
|
+
production_ordered: number;
|
|
1047
|
+
deficit_by_sclad: number;
|
|
1141
1048
|
ava_path: string | null;
|
|
1142
1049
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
1143
1050
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
1051
|
+
in_kit: number;
|
|
1144
1052
|
listPokDet: EntityCommonSpecificationArray | null;
|
|
1145
|
-
listDetal: EntityCommonSpecificationArray | null;
|
|
1146
1053
|
listCbed: EntityCommonSpecificationArray | null;
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1054
|
+
listDetal: EntityCommonSpecificationArray | null;
|
|
1055
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1056
|
+
task_relative_id?: number | null | undefined;
|
|
1057
|
+
task_relative_type?: IzdType | null | undefined;
|
|
1150
1058
|
discontinued?: boolean | undefined;
|
|
1151
1059
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
1152
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1153
1060
|
}[] | undefined;
|
|
1154
1061
|
metaloworking?: {
|
|
1155
1062
|
status: string;
|
|
@@ -1210,7 +1117,6 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1210
1117
|
parent_id?: number | null | undefined;
|
|
1211
1118
|
}[] | undefined;
|
|
1212
1119
|
ava_path?: string | null | undefined;
|
|
1213
|
-
discontinued?: boolean | undefined;
|
|
1214
1120
|
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1215
1121
|
materials?: {
|
|
1216
1122
|
ban: boolean;
|
|
@@ -1275,10 +1181,10 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1275
1181
|
delivery_ordered: number;
|
|
1276
1182
|
deliveryTime: number;
|
|
1277
1183
|
min_remaining: number;
|
|
1278
|
-
shipments_deficit: number;
|
|
1279
1184
|
deficit: number;
|
|
1280
|
-
|
|
1185
|
+
shipments_deficit: number;
|
|
1281
1186
|
deficit_by_sclad: number;
|
|
1187
|
+
in_kit: number;
|
|
1282
1188
|
units_measurement: import("../../material").IUnitsMeasurement[];
|
|
1283
1189
|
actual_shipment_id: number | null;
|
|
1284
1190
|
typeMaterial: {
|
|
@@ -1329,59 +1235,10 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1329
1235
|
mat_zag?: number | null | undefined;
|
|
1330
1236
|
mat_za_obj?: ModelMaterial | undefined;
|
|
1331
1237
|
mat_zag_zam?: number | null | undefined;
|
|
1332
|
-
techProcesses?:
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
name?: number | undefined;
|
|
1337
|
-
detalId?: number | null | undefined;
|
|
1338
|
-
cbedId?: number | null | undefined;
|
|
1339
|
-
productId?: number | null | undefined;
|
|
1340
|
-
operations?: {
|
|
1341
|
-
ban: boolean;
|
|
1342
|
-
description: string;
|
|
1343
|
-
name: number;
|
|
1344
|
-
full_name: string;
|
|
1345
|
-
preTime: number;
|
|
1346
|
-
helperTime: number;
|
|
1347
|
-
mainTime: number;
|
|
1348
|
-
generalCountTime: string;
|
|
1349
|
-
instrumentList: string;
|
|
1350
|
-
instrumentMerList: string;
|
|
1351
|
-
instrumentOsnList: string;
|
|
1352
|
-
eqList: string;
|
|
1353
|
-
instrumentID: number | null;
|
|
1354
|
-
instrumentMerID: number | null;
|
|
1355
|
-
instrumentOsnID: number | null;
|
|
1356
|
-
eqID: number | null;
|
|
1357
|
-
idx: number;
|
|
1358
|
-
tOperationId: number | null;
|
|
1359
|
-
tech_process_id: number;
|
|
1360
|
-
id?: number | undefined;
|
|
1361
|
-
marks?: {
|
|
1362
|
-
status: import("../..").MarkStatusEnums;
|
|
1363
|
-
ban: boolean;
|
|
1364
|
-
id: number;
|
|
1365
|
-
date_build: string;
|
|
1366
|
-
kol: number;
|
|
1367
|
-
user_id: number;
|
|
1368
|
-
oper_id: number;
|
|
1369
|
-
assemble_id: number;
|
|
1370
|
-
metaloworking_id: number;
|
|
1371
|
-
brak: boolean;
|
|
1372
|
-
execution_time: number;
|
|
1373
|
-
production_task_id: number | null;
|
|
1374
|
-
quantity_shipped: number;
|
|
1375
|
-
description?: string | undefined;
|
|
1376
|
-
assemble_kit_id?: number | null | undefined;
|
|
1377
|
-
operation_execution_time?: {
|
|
1378
|
-
preTime: number;
|
|
1379
|
-
helperTime: number;
|
|
1380
|
-
mainTime: number;
|
|
1381
|
-
} | undefined;
|
|
1382
|
-
}[] | undefined;
|
|
1383
|
-
}[] | undefined;
|
|
1384
|
-
} | undefined;
|
|
1238
|
+
techProcesses?: ModelTechProcess | undefined;
|
|
1239
|
+
task_relative_id?: number | null | undefined;
|
|
1240
|
+
task_relative_type?: IzdType | null | undefined;
|
|
1241
|
+
discontinued?: boolean | undefined;
|
|
1385
1242
|
products?: {
|
|
1386
1243
|
ban: boolean;
|
|
1387
1244
|
designation: string | null;
|
|
@@ -1393,22 +1250,22 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1393
1250
|
shipments_kolvo: number;
|
|
1394
1251
|
min_remaining: number;
|
|
1395
1252
|
responsibleId: number | null;
|
|
1396
|
-
production_ordered: number;
|
|
1397
|
-
shipments_deficit: number;
|
|
1398
1253
|
deficit: number;
|
|
1399
|
-
|
|
1254
|
+
shipments_deficit: number;
|
|
1255
|
+
production_ordered: number;
|
|
1400
1256
|
ava_path: string | null;
|
|
1401
1257
|
parametrs: import("../../cbed").CbedVariableField[];
|
|
1402
1258
|
characteristic: import("../../cbed").CbedVariableField[];
|
|
1259
|
+
in_kit: number;
|
|
1403
1260
|
listPokDet: EntityCommonSpecificationArray;
|
|
1404
|
-
listDetal: EntityCommonSpecificationArray;
|
|
1405
1261
|
listCbed: EntityCommonSpecificationArray;
|
|
1406
|
-
|
|
1262
|
+
listDetal: EntityCommonSpecificationArray;
|
|
1263
|
+
articl: string | null;
|
|
1407
1264
|
is_custom: boolean;
|
|
1408
1265
|
id?: number | null | undefined;
|
|
1266
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1409
1267
|
discontinued?: boolean | undefined;
|
|
1410
1268
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
1411
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1412
1269
|
}[] | undefined;
|
|
1413
1270
|
sebestoim?: {
|
|
1414
1271
|
name: string;
|
|
@@ -1418,7 +1275,7 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1418
1275
|
productId?: number | null | undefined;
|
|
1419
1276
|
} | undefined;
|
|
1420
1277
|
stock_orders_items?: {
|
|
1421
|
-
type:
|
|
1278
|
+
type: IzdType;
|
|
1422
1279
|
ban: boolean;
|
|
1423
1280
|
stock_order_id: number;
|
|
1424
1281
|
count_shipments: number;
|
|
@@ -1451,23 +1308,25 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1451
1308
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
1452
1309
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
1453
1310
|
listPokDet: EntityCommonSpecificationArray | null;
|
|
1454
|
-
listDetal: EntityCommonSpecificationArray | null;
|
|
1455
1311
|
listCbed: EntityCommonSpecificationArray | null;
|
|
1312
|
+
listDetal: EntityCommonSpecificationArray | null;
|
|
1456
1313
|
ban?: boolean | undefined;
|
|
1457
1314
|
cbed?: import("../../cbed").CbedRelativeType[] | undefined;
|
|
1458
1315
|
attention?: boolean | undefined;
|
|
1459
1316
|
quantity?: number | undefined;
|
|
1460
1317
|
shipments_kolvo?: number | undefined;
|
|
1461
1318
|
min_remaining?: number | undefined;
|
|
1462
|
-
|
|
1463
|
-
shipments_deficit?: number | undefined;
|
|
1319
|
+
remainder_after_coming?: number | undefined;
|
|
1464
1320
|
deficit?: number | undefined;
|
|
1321
|
+
shipments_deficit?: number | undefined;
|
|
1322
|
+
production_ordered?: number | undefined;
|
|
1323
|
+
deficit_by_sclad?: number | undefined;
|
|
1324
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1465
1325
|
in_kit?: number | undefined;
|
|
1326
|
+
task_relative_id?: number | null | undefined;
|
|
1327
|
+
task_relative_type?: IzdType | null | undefined;
|
|
1466
1328
|
discontinued?: boolean | undefined;
|
|
1467
1329
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
1468
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1469
|
-
remainder_after_coming?: number | undefined;
|
|
1470
|
-
deficit_by_sclad?: number | undefined;
|
|
1471
1330
|
}[] | undefined;
|
|
1472
1331
|
metaloworking?: {
|
|
1473
1332
|
status: string;
|
|
@@ -1532,15 +1391,14 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1532
1391
|
quantity?: number | undefined;
|
|
1533
1392
|
shipments_kolvo?: number | undefined;
|
|
1534
1393
|
min_remaining?: number | undefined;
|
|
1535
|
-
|
|
1536
|
-
shipments_deficit?: number | undefined;
|
|
1394
|
+
remainder_after_coming?: number | undefined;
|
|
1537
1395
|
deficit?: number | undefined;
|
|
1396
|
+
shipments_deficit?: number | undefined;
|
|
1397
|
+
production_ordered?: number | undefined;
|
|
1398
|
+
deficit_by_sclad?: number | undefined;
|
|
1538
1399
|
ava_path?: string | null | undefined;
|
|
1539
|
-
in_kit?: number | undefined;
|
|
1540
|
-
discontinued?: boolean | undefined;
|
|
1541
1400
|
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1542
|
-
|
|
1543
|
-
deficit_by_sclad?: number | undefined;
|
|
1401
|
+
in_kit?: number | undefined;
|
|
1544
1402
|
materials?: {
|
|
1545
1403
|
description: string | null;
|
|
1546
1404
|
id: number;
|
|
@@ -1658,86 +1516,37 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1658
1516
|
mat_zag?: number | null | undefined;
|
|
1659
1517
|
mat_za_obj?: ModelMaterial | undefined;
|
|
1660
1518
|
mat_zag_zam?: number | null | undefined;
|
|
1661
|
-
techProcesses?:
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
name?: number | undefined;
|
|
1666
|
-
detalId?: number | null | undefined;
|
|
1667
|
-
cbedId?: number | null | undefined;
|
|
1668
|
-
productId?: number | null | undefined;
|
|
1669
|
-
operations?: {
|
|
1670
|
-
ban: boolean;
|
|
1671
|
-
description: string;
|
|
1672
|
-
name: number;
|
|
1673
|
-
full_name: string;
|
|
1674
|
-
preTime: number;
|
|
1675
|
-
helperTime: number;
|
|
1676
|
-
mainTime: number;
|
|
1677
|
-
generalCountTime: string;
|
|
1678
|
-
instrumentList: string;
|
|
1679
|
-
instrumentMerList: string;
|
|
1680
|
-
instrumentOsnList: string;
|
|
1681
|
-
eqList: string;
|
|
1682
|
-
instrumentID: number | null;
|
|
1683
|
-
instrumentMerID: number | null;
|
|
1684
|
-
instrumentOsnID: number | null;
|
|
1685
|
-
eqID: number | null;
|
|
1686
|
-
idx: number;
|
|
1687
|
-
tOperationId: number | null;
|
|
1688
|
-
tech_process_id: number;
|
|
1689
|
-
id?: number | undefined;
|
|
1690
|
-
marks?: {
|
|
1691
|
-
status: import("../..").MarkStatusEnums;
|
|
1692
|
-
ban: boolean;
|
|
1693
|
-
id: number;
|
|
1694
|
-
date_build: string;
|
|
1695
|
-
kol: number;
|
|
1696
|
-
user_id: number;
|
|
1697
|
-
oper_id: number;
|
|
1698
|
-
assemble_id: number;
|
|
1699
|
-
metaloworking_id: number;
|
|
1700
|
-
brak: boolean;
|
|
1701
|
-
execution_time: number;
|
|
1702
|
-
production_task_id: number | null;
|
|
1703
|
-
quantity_shipped: number;
|
|
1704
|
-
description?: string | undefined;
|
|
1705
|
-
assemble_kit_id?: number | null | undefined;
|
|
1706
|
-
operation_execution_time?: {
|
|
1707
|
-
preTime: number;
|
|
1708
|
-
helperTime: number;
|
|
1709
|
-
mainTime: number;
|
|
1710
|
-
} | undefined;
|
|
1711
|
-
}[] | undefined;
|
|
1712
|
-
}[] | undefined;
|
|
1713
|
-
} | undefined;
|
|
1519
|
+
techProcesses?: ModelTechProcess | undefined;
|
|
1520
|
+
task_relative_id?: number | null | undefined;
|
|
1521
|
+
task_relative_type?: IzdType | null | undefined;
|
|
1522
|
+
discontinued?: boolean | undefined;
|
|
1714
1523
|
products?: {
|
|
1715
1524
|
designation: string | null;
|
|
1716
1525
|
description: string | null;
|
|
1717
1526
|
name: string;
|
|
1718
1527
|
materialList: EntityCommonSpecificationArray;
|
|
1719
1528
|
responsibleId: number | null;
|
|
1720
|
-
articl: string | null;
|
|
1721
1529
|
ava_path: string | null;
|
|
1722
1530
|
listPokDet: EntityCommonSpecificationArray;
|
|
1723
|
-
listDetal: EntityCommonSpecificationArray;
|
|
1724
1531
|
listCbed: EntityCommonSpecificationArray;
|
|
1532
|
+
listDetal: EntityCommonSpecificationArray;
|
|
1533
|
+
articl: string | null;
|
|
1725
1534
|
ban?: boolean | undefined;
|
|
1726
1535
|
id?: number | null | undefined;
|
|
1727
1536
|
attention?: boolean | undefined;
|
|
1728
1537
|
quantity?: number | undefined;
|
|
1729
1538
|
shipments_kolvo?: number | undefined;
|
|
1730
1539
|
min_remaining?: number | undefined;
|
|
1731
|
-
production_ordered?: number | undefined;
|
|
1732
|
-
shipments_deficit?: number | undefined;
|
|
1733
1540
|
deficit?: number | undefined;
|
|
1541
|
+
shipments_deficit?: number | undefined;
|
|
1542
|
+
production_ordered?: number | undefined;
|
|
1543
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
1734
1544
|
parametrs?: import("../../cbed").CbedVariableField[] | undefined;
|
|
1735
1545
|
characteristic?: import("../../cbed").CbedVariableField[] | undefined;
|
|
1736
1546
|
in_kit?: number | undefined;
|
|
1737
|
-
is_custom?: boolean | undefined;
|
|
1738
1547
|
discontinued?: boolean | undefined;
|
|
1739
1548
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
1740
|
-
|
|
1549
|
+
is_custom?: boolean | undefined;
|
|
1741
1550
|
}[] | undefined;
|
|
1742
1551
|
sebestoim?: {
|
|
1743
1552
|
name: string;
|
|
@@ -1747,7 +1556,7 @@ export declare const DetalSchema: z.ZodObject<{
|
|
|
1747
1556
|
productId?: number | null | undefined;
|
|
1748
1557
|
} | undefined;
|
|
1749
1558
|
stock_orders_items?: {
|
|
1750
|
-
type:
|
|
1559
|
+
type: IzdType;
|
|
1751
1560
|
stock_order_id: number;
|
|
1752
1561
|
count_shipments: number;
|
|
1753
1562
|
closing_date: Date | null;
|
|
@@ -44,6 +44,8 @@ exports.DetalSchema = zod_1.z.object({
|
|
|
44
44
|
mat_zag_zam: zod_1.z.number().int().nullish(),
|
|
45
45
|
techProcesses: zod_1.z.custom().optional(),
|
|
46
46
|
responsibleId: zod_1.z.number().int(),
|
|
47
|
+
task_relative_id: zod_1.z.number().nullish(),
|
|
48
|
+
task_relative_type: zod_1.z.nativeEnum(utils_1.IzdType).nullish(),
|
|
47
49
|
actual_shipment_id: zod_1.z.number().nullable(),
|
|
48
50
|
cbed: zod_1.z.array(cbed_1.CbedSchema).optional(),
|
|
49
51
|
products: zod_1.z.array(product_1.ProductSchema).optional(),
|
|
@@ -16,5 +16,5 @@ exports.CreateEquipmentDtoZod = zod_1.z.object({
|
|
|
16
16
|
rootParentId: zod_1.z.preprocess(val => typeof val === 'string' && parseInt(val, 10) ? parseInt(val, 10) : null, zod_1.z.number()),
|
|
17
17
|
attention: zod_1.z.preprocess(val => typeof val === 'string' && (0, utils_1.parseBoolean)(val) ? (0, utils_1.parseBoolean)(val) : null, zod_1.z.boolean().nullable()),
|
|
18
18
|
fileBase: zod_1.z.string(),
|
|
19
|
-
typeOperationIds: zod_1.z.preprocess(
|
|
19
|
+
typeOperationIds: zod_1.z.preprocess(value => typeof value === 'string' ? (0, utils_1.parseParamsOrBody)({ value }, []) : value, zod_1.z.array(zod_1.z.number()).nullish().default([]))
|
|
20
20
|
});
|
|
@@ -19,13 +19,5 @@ exports.UpdateEquipmentDtoZod = zod_1.z.object({
|
|
|
19
19
|
instrumentIdList: zod_1.z.any(),
|
|
20
20
|
fileBase: zod_1.z.string(),
|
|
21
21
|
rootParentId: zod_1.z.preprocess(val => typeof val === 'string' && parseInt(val, 10) ? parseInt(val, 10) : null, zod_1.z.number().nullable()),
|
|
22
|
-
typeOperationIds: zod_1.z.preprocess(
|
|
23
|
-
if (Array.isArray(val)) {
|
|
24
|
-
return val.map(Number).filter(n => !Number.isNaN(n));
|
|
25
|
-
}
|
|
26
|
-
if (typeof val === 'string') {
|
|
27
|
-
return [Number(val)].filter(n => !Number.isNaN(n));
|
|
28
|
-
}
|
|
29
|
-
return [];
|
|
30
|
-
}, zod_1.z.array(zod_1.z.number()).nullish().default([]))
|
|
22
|
+
typeOperationIds: zod_1.z.preprocess(value => typeof value === 'string' ? (0, utils_1.parseParamsOrBody)({ value }, []) : value, zod_1.z.array(zod_1.z.number()).nullish().default([]))
|
|
31
23
|
});
|
|
@@ -399,10 +399,10 @@ export declare const MaterialSchema: z.ZodObject<{
|
|
|
399
399
|
delivery_ordered: number;
|
|
400
400
|
deliveryTime: number;
|
|
401
401
|
min_remaining: number;
|
|
402
|
-
shipments_deficit: number;
|
|
403
402
|
deficit: number;
|
|
404
|
-
|
|
403
|
+
shipments_deficit: number;
|
|
405
404
|
deficit_by_sclad: number;
|
|
405
|
+
in_kit: number;
|
|
406
406
|
units_measurement: IUnitsMeasurement[];
|
|
407
407
|
actual_shipment_id: number | null;
|
|
408
408
|
typeMaterial: {
|