@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
|
@@ -11,14 +11,14 @@ export declare const CreateAssembleKitDtoZod: z.ZodObject<{
|
|
|
11
11
|
assembleId: number;
|
|
12
12
|
shipmentsIds: number[];
|
|
13
13
|
actionSendlerId: number;
|
|
14
|
-
listDetal?: any;
|
|
15
14
|
listCbed?: any;
|
|
15
|
+
listDetal?: any;
|
|
16
16
|
}, {
|
|
17
17
|
kolvoCollected: number;
|
|
18
18
|
assembleId: number;
|
|
19
19
|
shipmentsIds: number[];
|
|
20
20
|
actionSendlerId: number;
|
|
21
|
-
listDetal?: any;
|
|
22
21
|
listCbed?: any;
|
|
22
|
+
listDetal?: any;
|
|
23
23
|
}>;
|
|
24
24
|
export type CreateAssembleKitDtoType = z.infer<typeof CreateAssembleKitDtoZod>;
|
|
@@ -773,9 +773,9 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
773
773
|
ban: boolean;
|
|
774
774
|
id: number;
|
|
775
775
|
number_order: string;
|
|
776
|
-
type_izd: string;
|
|
777
776
|
kolvo_create: number;
|
|
778
777
|
kolvo_shipments: number;
|
|
778
|
+
type_izd: string;
|
|
779
779
|
submitted: number;
|
|
780
780
|
collected: number;
|
|
781
781
|
tech_process?: {
|
|
@@ -1138,9 +1138,9 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1138
1138
|
ban: boolean;
|
|
1139
1139
|
id: number;
|
|
1140
1140
|
number_order: string;
|
|
1141
|
-
type_izd: string;
|
|
1142
1141
|
kolvo_create: number;
|
|
1143
1142
|
kolvo_shipments: number;
|
|
1143
|
+
type_izd: string;
|
|
1144
1144
|
submitted: number;
|
|
1145
1145
|
collected: number;
|
|
1146
1146
|
tech_process?: {
|
|
@@ -793,9 +793,9 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
793
793
|
number_order: string;
|
|
794
794
|
entityId: number;
|
|
795
795
|
sum: number;
|
|
796
|
-
type_izd: string;
|
|
797
796
|
kolvo_create: number;
|
|
798
797
|
kolvo_shipments: number;
|
|
798
|
+
type_izd: string;
|
|
799
799
|
submitted: number;
|
|
800
800
|
collected: number;
|
|
801
801
|
precentCreated: string | number;
|
|
@@ -901,6 +901,9 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
901
901
|
cbed_id?: number | undefined;
|
|
902
902
|
product_id?: number | undefined;
|
|
903
903
|
shipment_id?: number | null | undefined;
|
|
904
|
+
ava_path?: string | {
|
|
905
|
+
path: string;
|
|
906
|
+
} | undefined;
|
|
904
907
|
timeComplite?: number | undefined;
|
|
905
908
|
assembly_kits?: {
|
|
906
909
|
status: import("../..").StatusAssembleKit;
|
|
@@ -974,9 +977,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
974
977
|
company_id?: number | undefined;
|
|
975
978
|
createdAt?: string | Date | undefined;
|
|
976
979
|
}[] | null | undefined;
|
|
977
|
-
ava_path?: string | {
|
|
978
|
-
path: string;
|
|
979
|
-
} | undefined;
|
|
980
980
|
}, {
|
|
981
981
|
type: PositionItemType.product | PositionItemType.cbed;
|
|
982
982
|
status: import("../..").StatusScladWorking;
|
|
@@ -1091,6 +1091,9 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
1091
1091
|
cbed_id?: number | undefined;
|
|
1092
1092
|
product_id?: number | undefined;
|
|
1093
1093
|
shipment_id?: number | null | undefined;
|
|
1094
|
+
ava_path?: string | {
|
|
1095
|
+
path: string;
|
|
1096
|
+
} | undefined;
|
|
1094
1097
|
kolvo_create?: number | undefined;
|
|
1095
1098
|
kolvo_shipments?: number | undefined;
|
|
1096
1099
|
timeComplite?: number | undefined;
|
|
@@ -1166,9 +1169,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
1166
1169
|
company_id?: number | undefined;
|
|
1167
1170
|
createdAt?: string | Date | undefined;
|
|
1168
1171
|
}[] | null | undefined;
|
|
1169
|
-
ava_path?: string | {
|
|
1170
|
-
path: string;
|
|
1171
|
-
} | undefined;
|
|
1172
1172
|
}>;
|
|
1173
1173
|
export type ModelAssembleComing = z.infer<typeof AssembleComingSchema> & {
|
|
1174
1174
|
product?: ModelProduct;
|
|
@@ -774,9 +774,9 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
774
774
|
ban: boolean;
|
|
775
775
|
id: number;
|
|
776
776
|
number_order: string;
|
|
777
|
-
type_izd: string;
|
|
778
777
|
kolvo_create: number;
|
|
779
778
|
kolvo_shipments: number;
|
|
779
|
+
type_izd: string;
|
|
780
780
|
submitted: number;
|
|
781
781
|
collected: number;
|
|
782
782
|
tech_process?: {
|
|
@@ -27,8 +27,8 @@ export declare const UpCreateCbedDtoZod: z.ZodObject<{
|
|
|
27
27
|
parametrs: any[];
|
|
28
28
|
characteristic: any[];
|
|
29
29
|
listPokDet: EntityCommonSpecification[];
|
|
30
|
-
listDetal: EntityCommonSpecification[];
|
|
31
30
|
listCbed: EntityCommonSpecification[];
|
|
31
|
+
listDetal: EntityCommonSpecification[];
|
|
32
32
|
discontinued: boolean;
|
|
33
33
|
techProcessID: string;
|
|
34
34
|
id?: number | null | undefined;
|
|
@@ -48,8 +48,8 @@ export declare const UpCreateCbedDtoZod: z.ZodObject<{
|
|
|
48
48
|
parametrs?: unknown;
|
|
49
49
|
characteristic?: unknown;
|
|
50
50
|
listPokDet?: unknown;
|
|
51
|
-
listDetal?: unknown;
|
|
52
51
|
listCbed?: unknown;
|
|
52
|
+
listDetal?: unknown;
|
|
53
53
|
responsible?: string | null | undefined;
|
|
54
54
|
}>;
|
|
55
55
|
export type UpCreateCbedDtoZodType = z.infer<typeof UpCreateCbedDtoZod>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { EntityCommonSpecificationArray, ProductionTimeType } from '../../utils';
|
|
2
|
+
import { EntityCommonSpecificationArray, IzdType, ProductionTimeType } from '../../utils';
|
|
3
3
|
import { CbedCharacteristicField, CbedParametrsField, CbedRelativeType } from '../types/cbed-types';
|
|
4
4
|
import { ModelDocuments } from '../../document';
|
|
5
5
|
import { ModelMaterial } from '../../material';
|
|
@@ -19,6 +19,8 @@ export declare const CbedSchema: z.ZodObject<{
|
|
|
19
19
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
20
20
|
min_remaining: z.ZodDefault<z.ZodNumber>;
|
|
21
21
|
remainder_after_coming: z.ZodDefault<z.ZodNumber>;
|
|
22
|
+
task_relative_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
task_relative_type: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof IzdType>>>;
|
|
22
24
|
quantity: z.ZodDefault<z.ZodNumber>;
|
|
23
25
|
deficit: z.ZodDefault<z.ZodNumber>;
|
|
24
26
|
shipments_kolvo: z.ZodDefault<z.ZodNumber>;
|
|
@@ -56,21 +58,23 @@ export declare const CbedSchema: z.ZodObject<{
|
|
|
56
58
|
shipments_kolvo: number;
|
|
57
59
|
min_remaining: number;
|
|
58
60
|
responsibleId: number | null;
|
|
59
|
-
|
|
60
|
-
shipments_deficit: number;
|
|
61
|
+
remainder_after_coming: number;
|
|
61
62
|
deficit: number;
|
|
63
|
+
shipments_deficit: number;
|
|
64
|
+
production_ordered: number;
|
|
65
|
+
deficit_by_sclad: number;
|
|
62
66
|
ava_path: string | null;
|
|
63
67
|
parametrs: CbedParametrsField | null;
|
|
64
68
|
characteristic: CbedCharacteristicField | null;
|
|
69
|
+
in_kit: number;
|
|
65
70
|
listPokDet: EntityCommonSpecificationArray | null;
|
|
66
|
-
listDetal: EntityCommonSpecificationArray | null;
|
|
67
71
|
listCbed: EntityCommonSpecificationArray | null;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
listDetal: EntityCommonSpecificationArray | null;
|
|
73
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
74
|
+
task_relative_id?: number | null | undefined;
|
|
75
|
+
task_relative_type?: IzdType | null | undefined;
|
|
71
76
|
discontinued?: boolean | undefined;
|
|
72
77
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
73
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
74
78
|
}, {
|
|
75
79
|
designation: string | null;
|
|
76
80
|
description: string | null;
|
|
@@ -83,23 +87,25 @@ export declare const CbedSchema: z.ZodObject<{
|
|
|
83
87
|
parametrs: CbedParametrsField | null;
|
|
84
88
|
characteristic: CbedCharacteristicField | null;
|
|
85
89
|
listPokDet: EntityCommonSpecificationArray | null;
|
|
86
|
-
listDetal: EntityCommonSpecificationArray | null;
|
|
87
90
|
listCbed: EntityCommonSpecificationArray | null;
|
|
91
|
+
listDetal: EntityCommonSpecificationArray | null;
|
|
88
92
|
ban?: boolean | undefined;
|
|
89
93
|
cbed?: CbedRelativeType[] | undefined;
|
|
90
94
|
attention?: boolean | undefined;
|
|
91
95
|
quantity?: number | undefined;
|
|
92
96
|
shipments_kolvo?: number | undefined;
|
|
93
97
|
min_remaining?: number | undefined;
|
|
94
|
-
|
|
95
|
-
shipments_deficit?: number | undefined;
|
|
98
|
+
remainder_after_coming?: number | undefined;
|
|
96
99
|
deficit?: number | undefined;
|
|
100
|
+
shipments_deficit?: number | undefined;
|
|
101
|
+
production_ordered?: number | undefined;
|
|
102
|
+
deficit_by_sclad?: number | undefined;
|
|
103
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
97
104
|
in_kit?: number | undefined;
|
|
105
|
+
task_relative_id?: number | null | undefined;
|
|
106
|
+
task_relative_type?: IzdType | null | undefined;
|
|
98
107
|
discontinued?: boolean | undefined;
|
|
99
108
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
100
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
101
|
-
remainder_after_coming?: number | undefined;
|
|
102
|
-
deficit_by_sclad?: number | undefined;
|
|
103
109
|
}>;
|
|
104
110
|
export type ModelCbed = z.infer<typeof CbedSchema> & {
|
|
105
111
|
documents?: ModelDocuments[];
|
|
@@ -9,6 +9,8 @@ exports.CbedSchema = zod_1.z.object({
|
|
|
9
9
|
ban: zod_1.z.boolean().default(false),
|
|
10
10
|
min_remaining: zod_1.z.number().int().default(0),
|
|
11
11
|
remainder_after_coming: zod_1.z.number().int().default(0),
|
|
12
|
+
task_relative_id: zod_1.z.number().nullish(),
|
|
13
|
+
task_relative_type: zod_1.z.nativeEnum(utils_1.IzdType).nullish(),
|
|
12
14
|
quantity: zod_1.z.number().int().default(0),
|
|
13
15
|
deficit: zod_1.z.number().int().default(0),
|
|
14
16
|
shipments_kolvo: zod_1.z.number().int().default(0),
|
|
@@ -25,8 +25,8 @@ export declare const UpCreateDetalDtoZod: z.ZodObject<{
|
|
|
25
25
|
attention: boolean;
|
|
26
26
|
materialList: EntityCommonSpecificationArray;
|
|
27
27
|
parametrs: detalParametrsField;
|
|
28
|
-
discontinued: boolean;
|
|
29
28
|
workpiece_characterization: DetalWorkpieceCharacteristics;
|
|
29
|
+
discontinued: boolean;
|
|
30
30
|
responsible: string;
|
|
31
31
|
id?: number | null | undefined;
|
|
32
32
|
docs?: any;
|
|
@@ -47,10 +47,10 @@ export declare const UpCreateDetalDtoZod: z.ZodObject<{
|
|
|
47
47
|
fileBase?: string | undefined;
|
|
48
48
|
parametrs?: unknown;
|
|
49
49
|
characteristic?: any;
|
|
50
|
-
discontinued?: unknown;
|
|
51
50
|
workpiece_characterization?: unknown;
|
|
52
51
|
mat_zag?: unknown;
|
|
53
52
|
mat_zag_zam?: unknown;
|
|
53
|
+
discontinued?: unknown;
|
|
54
54
|
techProcessID?: unknown;
|
|
55
55
|
}>;
|
|
56
56
|
export type UpCreateDetalDtoType = z.infer<typeof UpCreateDetalDtoZod>;
|