@pksep/zod-shared 0.0.548 → 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/assemble-kit/dto/assemble-kit-paginate.dto.d.ts +2 -2
- package/dist/deliveries/dto/create-deliveries.dto.d.ts +185 -0
- package/dist/deliveries/dto/create-deliveries.dto.js +70 -1
- package/dist/deliveries/schemas/deliveries-position.schema.d.ts +46 -26
- package/dist/deliveries/schemas/deliveries-position.schema.js +16 -9
- package/dist/deliveries/schemas/deliveries.schema.d.ts +5 -6
- package/dist/deliveries/schemas/deliveries.schema.js +0 -1
- 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/equipment/schemas/equipment.schema.d.ts +0 -5
- package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
- 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/get-deficit.dto.d.ts +19 -5
- package/dist/material/dto/get-deficit.dto.js +10 -2
- 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 -8
- package/dist/material/schemas/material.schema.d.ts +125 -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/up-create-shipments.dto.d.ts +342 -4
- package/dist/shipments/dto/up-create-shipments.dto.js +97 -3
- package/dist/shipments/index.d.ts +1 -0
- package/dist/shipments/index.js +1 -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/interface/status-flags.interface.d.ts +4 -0
- package/dist/utils/sorting.d.ts +5 -1
- 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
- package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
- package/dist/issue/dto/up-create-issue.dto.js +0 -21
- package/dist/issue/index.d.ts +0 -5
- package/dist/issue/index.js +0 -21
- package/dist/issue/interfaces/interface.d.ts +0 -4
- package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
- package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user.schema.js +0 -9
- package/dist/issue/schemas/issue.schema.d.ts +0 -51
- package/dist/issue/schemas/issue.schema.js +0 -21
- package/dist/library/dto/create-chapter.dto.d.ts +0 -12
- package/dist/library/dto/create-chapter.dto.js +0 -8
- package/dist/library/dto/create-link.dto.d.ts +0 -30
- package/dist/library/dto/create-link.dto.js +0 -14
- package/dist/library/index.d.ts +0 -5
- package/dist/library/index.js +0 -21
- package/dist/library/interfaces/interface.d.ts +0 -3
- package/dist/library/interfaces/interface.js +0 -2
- package/dist/library/schemas/links-user.schema.d.ts +0 -15
- package/dist/library/schemas/links-user.schema.js +0 -9
- package/dist/library/schemas/links.schema.d.ts +0 -30
- package/dist/library/schemas/links.schema.js +0 -14
- package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-marks.dto.js +0 -8
- package/dist/production-tasks/dto/update-responsible.dto.d.ts +0 -12
- package/dist/production-tasks/dto/update-responsible.dto.js +0 -8
- package/dist/production-tasks/dto/update-status.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-status.dto.js +0 -9
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
- package/dist/utils/interface/mat.interface.d.ts +0 -10
- package/dist/utils/interface/mat.interface.js +0 -2
- /package/dist/{issue/interfaces/interface.js → utils/interface/status-flags.interface.js} +0 -0
|
@@ -781,6 +781,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
781
781
|
type_сoming: z.ZodNativeEnum<typeof import("../..").WaybilTypeComingEnums>;
|
|
782
782
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
783
783
|
company_id: z.ZodOptional<z.ZodNumber>;
|
|
784
|
+
order_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
order_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
|
784
786
|
}, "strip", z.ZodTypeAny, {
|
|
785
787
|
ban: boolean;
|
|
786
788
|
description: string;
|
|
@@ -789,6 +791,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
789
791
|
id?: number | null | undefined;
|
|
790
792
|
createdAt?: string | Date | undefined;
|
|
791
793
|
company_id?: number | undefined;
|
|
794
|
+
order_number?: string | null | undefined;
|
|
795
|
+
order_date?: string | Date | null | undefined;
|
|
792
796
|
}, {
|
|
793
797
|
name: string;
|
|
794
798
|
type_сoming: import("../..").WaybilTypeComingEnums;
|
|
@@ -797,6 +801,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
797
801
|
id?: number | null | undefined;
|
|
798
802
|
createdAt?: string | Date | undefined;
|
|
799
803
|
company_id?: number | undefined;
|
|
804
|
+
order_number?: string | null | undefined;
|
|
805
|
+
order_date?: string | Date | null | undefined;
|
|
800
806
|
}>, "many">>>>;
|
|
801
807
|
}, "strip", z.ZodTypeAny, {
|
|
802
808
|
status: import("../..").StatusScladWorking;
|
|
@@ -984,6 +990,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
984
990
|
id?: number | null | undefined;
|
|
985
991
|
createdAt?: string | Date | undefined;
|
|
986
992
|
company_id?: number | undefined;
|
|
993
|
+
order_number?: string | null | undefined;
|
|
994
|
+
order_date?: string | Date | null | undefined;
|
|
987
995
|
}[] | null | undefined;
|
|
988
996
|
}, {
|
|
989
997
|
status: import("../..").StatusScladWorking;
|
|
@@ -1171,6 +1179,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1171
1179
|
id?: number | null | undefined;
|
|
1172
1180
|
createdAt?: string | Date | undefined;
|
|
1173
1181
|
company_id?: number | undefined;
|
|
1182
|
+
order_number?: string | null | undefined;
|
|
1183
|
+
order_date?: string | Date | null | undefined;
|
|
1174
1184
|
}[] | null | undefined;
|
|
1175
1185
|
}>, "many">;
|
|
1176
1186
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1361,6 +1371,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1361
1371
|
id?: number | null | undefined;
|
|
1362
1372
|
createdAt?: string | Date | undefined;
|
|
1363
1373
|
company_id?: number | undefined;
|
|
1374
|
+
order_number?: string | null | undefined;
|
|
1375
|
+
order_date?: string | Date | null | undefined;
|
|
1364
1376
|
}[] | null | undefined;
|
|
1365
1377
|
}[];
|
|
1366
1378
|
}, {
|
|
@@ -1550,6 +1562,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1550
1562
|
id?: number | null | undefined;
|
|
1551
1563
|
createdAt?: string | Date | undefined;
|
|
1552
1564
|
company_id?: number | undefined;
|
|
1565
|
+
order_number?: string | null | undefined;
|
|
1566
|
+
order_date?: string | Date | null | undefined;
|
|
1553
1567
|
}[] | null | undefined;
|
|
1554
1568
|
}[];
|
|
1555
1569
|
operationId?: number | null | undefined;
|
|
@@ -781,6 +781,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
781
781
|
type_сoming: z.ZodNativeEnum<typeof import("../..").WaybilTypeComingEnums>;
|
|
782
782
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
783
783
|
company_id: z.ZodOptional<z.ZodNumber>;
|
|
784
|
+
order_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
order_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
|
784
786
|
}, "strip", z.ZodTypeAny, {
|
|
785
787
|
ban: boolean;
|
|
786
788
|
description: string;
|
|
@@ -789,6 +791,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
789
791
|
id?: number | null | undefined;
|
|
790
792
|
createdAt?: string | Date | undefined;
|
|
791
793
|
company_id?: number | undefined;
|
|
794
|
+
order_number?: string | null | undefined;
|
|
795
|
+
order_date?: string | Date | null | undefined;
|
|
792
796
|
}, {
|
|
793
797
|
name: string;
|
|
794
798
|
type_сoming: import("../..").WaybilTypeComingEnums;
|
|
@@ -797,6 +801,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
797
801
|
id?: number | null | undefined;
|
|
798
802
|
createdAt?: string | Date | undefined;
|
|
799
803
|
company_id?: number | undefined;
|
|
804
|
+
order_number?: string | null | undefined;
|
|
805
|
+
order_date?: string | Date | null | undefined;
|
|
800
806
|
}>, "many">>>>;
|
|
801
807
|
} & {
|
|
802
808
|
ava_path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -1012,6 +1018,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
1012
1018
|
id?: number | null | undefined;
|
|
1013
1019
|
createdAt?: string | Date | undefined;
|
|
1014
1020
|
company_id?: number | undefined;
|
|
1021
|
+
order_number?: string | null | undefined;
|
|
1022
|
+
order_date?: string | Date | null | undefined;
|
|
1015
1023
|
}[] | null | undefined;
|
|
1016
1024
|
}, {
|
|
1017
1025
|
type: PositionItemType.product | PositionItemType.cbed;
|
|
@@ -1210,6 +1218,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
1210
1218
|
id?: number | null | undefined;
|
|
1211
1219
|
createdAt?: string | Date | undefined;
|
|
1212
1220
|
company_id?: number | undefined;
|
|
1221
|
+
order_number?: string | null | undefined;
|
|
1222
|
+
order_date?: string | Date | null | undefined;
|
|
1213
1223
|
}[] | null | undefined;
|
|
1214
1224
|
}>;
|
|
1215
1225
|
export type ModelAssembleComing = z.infer<typeof AssembleComingSchema> & {
|
|
@@ -782,6 +782,8 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
782
782
|
type_сoming: z.ZodNativeEnum<typeof import("../../utils").WaybilTypeComingEnums>;
|
|
783
783
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
784
784
|
company_id: z.ZodOptional<z.ZodNumber>;
|
|
785
|
+
order_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
|
+
order_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
|
785
787
|
}, "strip", z.ZodTypeAny, {
|
|
786
788
|
ban: boolean;
|
|
787
789
|
description: string;
|
|
@@ -790,6 +792,8 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
790
792
|
id?: number | null | undefined;
|
|
791
793
|
createdAt?: string | Date | undefined;
|
|
792
794
|
company_id?: number | undefined;
|
|
795
|
+
order_number?: string | null | undefined;
|
|
796
|
+
order_date?: string | Date | null | undefined;
|
|
793
797
|
}, {
|
|
794
798
|
name: string;
|
|
795
799
|
type_сoming: import("../../utils").WaybilTypeComingEnums;
|
|
@@ -798,6 +802,8 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
798
802
|
id?: number | null | undefined;
|
|
799
803
|
createdAt?: string | Date | undefined;
|
|
800
804
|
company_id?: number | undefined;
|
|
805
|
+
order_number?: string | null | undefined;
|
|
806
|
+
order_date?: string | Date | null | undefined;
|
|
801
807
|
}>, "many">>>>;
|
|
802
808
|
}, "strip", z.ZodTypeAny, {
|
|
803
809
|
status: StatusScladWorking;
|
|
@@ -985,6 +991,8 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
985
991
|
id?: number | null | undefined;
|
|
986
992
|
createdAt?: string | Date | undefined;
|
|
987
993
|
company_id?: number | undefined;
|
|
994
|
+
order_number?: string | null | undefined;
|
|
995
|
+
order_date?: string | Date | null | undefined;
|
|
988
996
|
}[] | null | undefined;
|
|
989
997
|
}, {
|
|
990
998
|
status: StatusScladWorking;
|
|
@@ -1172,6 +1180,8 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
1172
1180
|
id?: number | null | undefined;
|
|
1173
1181
|
createdAt?: string | Date | undefined;
|
|
1174
1182
|
company_id?: number | undefined;
|
|
1183
|
+
order_number?: string | null | undefined;
|
|
1184
|
+
order_date?: string | Date | null | undefined;
|
|
1175
1185
|
}[] | null | undefined;
|
|
1176
1186
|
}>;
|
|
1177
1187
|
export type ModelAssemble = z.infer<typeof AssembleSchema> & {
|
|
@@ -17,10 +17,10 @@ export declare const AssembleKitPaginateDtoZod: z.ZodObject<{
|
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
status: string;
|
|
19
19
|
responsibleId: number | null;
|
|
20
|
+
offset: number;
|
|
20
21
|
isShowDeactivate: boolean;
|
|
21
22
|
productIds: number[];
|
|
22
23
|
searchStr: string;
|
|
23
|
-
offset: number;
|
|
24
24
|
currentPage: number;
|
|
25
25
|
sortKitCount: string;
|
|
26
26
|
cbedsIds: number[];
|
|
@@ -30,8 +30,8 @@ export declare const AssembleKitPaginateDtoZod: z.ZodObject<{
|
|
|
30
30
|
assemblyId?: number | null | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
status: string;
|
|
33
|
-
searchStr: string;
|
|
34
33
|
offset: number;
|
|
34
|
+
searchStr: string;
|
|
35
35
|
currentPage: number;
|
|
36
36
|
sortKitCount: string;
|
|
37
37
|
responsibleId?: number | null | undefined;
|
|
@@ -4,6 +4,7 @@ export declare const DeliveryPositionListItemSchema: z.ZodObject<{
|
|
|
4
4
|
entityId: z.ZodNumber;
|
|
5
5
|
type: z.ZodNativeEnum<typeof EnumEntityDeliveryItem>;
|
|
6
6
|
ezId: z.ZodNumber;
|
|
7
|
+
plannedDeliveryDate: z.ZodOptional<z.ZodString>;
|
|
7
8
|
shipped: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
9
|
quantity: z.ZodNumber;
|
|
9
10
|
sum: z.ZodNumber;
|
|
@@ -18,6 +19,7 @@ export declare const DeliveryPositionListItemSchema: z.ZodObject<{
|
|
|
18
19
|
ezId: number;
|
|
19
20
|
sum: number;
|
|
20
21
|
coming: number;
|
|
22
|
+
plannedDeliveryDate?: string | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
type: EnumEntityDeliveryItem;
|
|
23
25
|
description: string;
|
|
@@ -27,6 +29,7 @@ export declare const DeliveryPositionListItemSchema: z.ZodObject<{
|
|
|
27
29
|
sum: number;
|
|
28
30
|
coming: number;
|
|
29
31
|
shipped?: number | undefined;
|
|
32
|
+
plannedDeliveryDate?: string | undefined;
|
|
30
33
|
}>;
|
|
31
34
|
export declare const CreateDeliveriesDtoZod: z.ZodObject<{
|
|
32
35
|
companyId: z.ZodNumber;
|
|
@@ -37,6 +40,7 @@ export declare const CreateDeliveriesDtoZod: z.ZodObject<{
|
|
|
37
40
|
entityId: z.ZodNumber;
|
|
38
41
|
type: z.ZodNativeEnum<typeof EnumEntityDeliveryItem>;
|
|
39
42
|
ezId: z.ZodNumber;
|
|
43
|
+
plannedDeliveryDate: z.ZodOptional<z.ZodString>;
|
|
40
44
|
shipped: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
41
45
|
quantity: z.ZodNumber;
|
|
42
46
|
sum: z.ZodNumber;
|
|
@@ -51,6 +55,7 @@ export declare const CreateDeliveriesDtoZod: z.ZodObject<{
|
|
|
51
55
|
ezId: number;
|
|
52
56
|
sum: number;
|
|
53
57
|
coming: number;
|
|
58
|
+
plannedDeliveryDate?: string | undefined;
|
|
54
59
|
}, {
|
|
55
60
|
type: EnumEntityDeliveryItem;
|
|
56
61
|
description: string;
|
|
@@ -60,6 +65,7 @@ export declare const CreateDeliveriesDtoZod: z.ZodObject<{
|
|
|
60
65
|
sum: number;
|
|
61
66
|
coming: number;
|
|
62
67
|
shipped?: number | undefined;
|
|
68
|
+
plannedDeliveryDate?: string | undefined;
|
|
63
69
|
}>, "many">;
|
|
64
70
|
documentsIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
65
71
|
dateShipments: z.ZodString;
|
|
@@ -79,6 +85,7 @@ export declare const CreateDeliveriesDtoZod: z.ZodObject<{
|
|
|
79
85
|
ezId: number;
|
|
80
86
|
sum: number;
|
|
81
87
|
coming: number;
|
|
88
|
+
plannedDeliveryDate?: string | undefined;
|
|
82
89
|
}[];
|
|
83
90
|
dateShipments: string;
|
|
84
91
|
documentsIds?: number[] | null | undefined;
|
|
@@ -97,8 +104,186 @@ export declare const CreateDeliveriesDtoZod: z.ZodObject<{
|
|
|
97
104
|
sum: number;
|
|
98
105
|
coming: number;
|
|
99
106
|
shipped?: number | undefined;
|
|
107
|
+
plannedDeliveryDate?: string | undefined;
|
|
100
108
|
}[];
|
|
101
109
|
dateShipments: string;
|
|
102
110
|
documentsIds?: number[] | null | undefined;
|
|
103
111
|
}>;
|
|
104
112
|
export type CreateDeliveriesDtoZodType = z.infer<typeof CreateDeliveriesDtoZod>;
|
|
113
|
+
export declare const CreateDeliveryPositionDtoZod: z.ZodEffects<z.ZodObject<Omit<{
|
|
114
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
115
|
+
deliveryId: z.ZodNumber;
|
|
116
|
+
entityType: z.ZodNativeEnum<typeof EnumEntityDeliveryItem>;
|
|
117
|
+
materialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
118
|
+
equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
119
|
+
instrumentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
120
|
+
inventaryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
121
|
+
unitMeasurementId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
|
+
orderedQuantity: z.ZodNumber;
|
|
123
|
+
receivedQuantity: z.ZodDefault<z.ZodNumber>;
|
|
124
|
+
plannedDeliveryDate: z.ZodDate;
|
|
125
|
+
totalAmount: z.ZodDefault<z.ZodNumber>;
|
|
126
|
+
description: z.ZodDefault<z.ZodString>;
|
|
127
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
128
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, "id" | "createdAt" | "updatedAt" | "plannedDeliveryDate" | "deliveryId" | "receivedQuantity"> & {
|
|
130
|
+
plannedDeliveryDate: z.ZodString;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
description: string;
|
|
133
|
+
plannedDeliveryDate: string;
|
|
134
|
+
entityType: EnumEntityDeliveryItem;
|
|
135
|
+
orderedQuantity: number;
|
|
136
|
+
totalAmount: number;
|
|
137
|
+
equipmentId?: number | null | undefined;
|
|
138
|
+
materialId?: number | null | undefined;
|
|
139
|
+
instrumentId?: number | null | undefined;
|
|
140
|
+
inventaryId?: number | null | undefined;
|
|
141
|
+
unitMeasurementId?: number | null | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
plannedDeliveryDate: string;
|
|
144
|
+
entityType: EnumEntityDeliveryItem;
|
|
145
|
+
orderedQuantity: number;
|
|
146
|
+
description?: string | undefined;
|
|
147
|
+
equipmentId?: number | null | undefined;
|
|
148
|
+
materialId?: number | null | undefined;
|
|
149
|
+
instrumentId?: number | null | undefined;
|
|
150
|
+
inventaryId?: number | null | undefined;
|
|
151
|
+
unitMeasurementId?: number | null | undefined;
|
|
152
|
+
totalAmount?: number | undefined;
|
|
153
|
+
}>, {
|
|
154
|
+
description: string;
|
|
155
|
+
plannedDeliveryDate: string;
|
|
156
|
+
entityType: EnumEntityDeliveryItem;
|
|
157
|
+
orderedQuantity: number;
|
|
158
|
+
totalAmount: number;
|
|
159
|
+
equipmentId?: number | null | undefined;
|
|
160
|
+
materialId?: number | null | undefined;
|
|
161
|
+
instrumentId?: number | null | undefined;
|
|
162
|
+
inventaryId?: number | null | undefined;
|
|
163
|
+
unitMeasurementId?: number | null | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
plannedDeliveryDate: string;
|
|
166
|
+
entityType: EnumEntityDeliveryItem;
|
|
167
|
+
orderedQuantity: number;
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
equipmentId?: number | null | undefined;
|
|
170
|
+
materialId?: number | null | undefined;
|
|
171
|
+
instrumentId?: number | null | undefined;
|
|
172
|
+
inventaryId?: number | null | undefined;
|
|
173
|
+
unitMeasurementId?: number | null | undefined;
|
|
174
|
+
totalAmount?: number | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
export declare const CreateDeliveriesByPositionsDtoZod: z.ZodObject<{
|
|
177
|
+
companyId: z.ZodNumber;
|
|
178
|
+
numberCheck: z.ZodString;
|
|
179
|
+
nds: z.ZodNumber;
|
|
180
|
+
count: z.ZodNumber;
|
|
181
|
+
positions: z.ZodArray<z.ZodEffects<z.ZodObject<Omit<{
|
|
182
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
183
|
+
deliveryId: z.ZodNumber;
|
|
184
|
+
entityType: z.ZodNativeEnum<typeof EnumEntityDeliveryItem>;
|
|
185
|
+
materialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
186
|
+
equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
187
|
+
instrumentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
188
|
+
inventaryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
189
|
+
unitMeasurementId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
190
|
+
orderedQuantity: z.ZodNumber;
|
|
191
|
+
receivedQuantity: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
plannedDeliveryDate: z.ZodDate;
|
|
193
|
+
totalAmount: z.ZodDefault<z.ZodNumber>;
|
|
194
|
+
description: z.ZodDefault<z.ZodString>;
|
|
195
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
196
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, "id" | "createdAt" | "updatedAt" | "plannedDeliveryDate" | "deliveryId" | "receivedQuantity"> & {
|
|
198
|
+
plannedDeliveryDate: z.ZodString;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
description: string;
|
|
201
|
+
plannedDeliveryDate: string;
|
|
202
|
+
entityType: EnumEntityDeliveryItem;
|
|
203
|
+
orderedQuantity: number;
|
|
204
|
+
totalAmount: number;
|
|
205
|
+
equipmentId?: number | null | undefined;
|
|
206
|
+
materialId?: number | null | undefined;
|
|
207
|
+
instrumentId?: number | null | undefined;
|
|
208
|
+
inventaryId?: number | null | undefined;
|
|
209
|
+
unitMeasurementId?: number | null | undefined;
|
|
210
|
+
}, {
|
|
211
|
+
plannedDeliveryDate: string;
|
|
212
|
+
entityType: EnumEntityDeliveryItem;
|
|
213
|
+
orderedQuantity: number;
|
|
214
|
+
description?: string | undefined;
|
|
215
|
+
equipmentId?: number | null | undefined;
|
|
216
|
+
materialId?: number | null | undefined;
|
|
217
|
+
instrumentId?: number | null | undefined;
|
|
218
|
+
inventaryId?: number | null | undefined;
|
|
219
|
+
unitMeasurementId?: number | null | undefined;
|
|
220
|
+
totalAmount?: number | undefined;
|
|
221
|
+
}>, {
|
|
222
|
+
description: string;
|
|
223
|
+
plannedDeliveryDate: string;
|
|
224
|
+
entityType: EnumEntityDeliveryItem;
|
|
225
|
+
orderedQuantity: number;
|
|
226
|
+
totalAmount: number;
|
|
227
|
+
equipmentId?: number | null | undefined;
|
|
228
|
+
materialId?: number | null | undefined;
|
|
229
|
+
instrumentId?: number | null | undefined;
|
|
230
|
+
inventaryId?: number | null | undefined;
|
|
231
|
+
unitMeasurementId?: number | null | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
plannedDeliveryDate: string;
|
|
234
|
+
entityType: EnumEntityDeliveryItem;
|
|
235
|
+
orderedQuantity: number;
|
|
236
|
+
description?: string | undefined;
|
|
237
|
+
equipmentId?: number | null | undefined;
|
|
238
|
+
materialId?: number | null | undefined;
|
|
239
|
+
instrumentId?: number | null | undefined;
|
|
240
|
+
inventaryId?: number | null | undefined;
|
|
241
|
+
unitMeasurementId?: number | null | undefined;
|
|
242
|
+
totalAmount?: number | undefined;
|
|
243
|
+
}>, "many">;
|
|
244
|
+
documentsIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
245
|
+
dateShipments: z.ZodString;
|
|
246
|
+
description: z.ZodString;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
description: string;
|
|
249
|
+
count: number;
|
|
250
|
+
nds: number;
|
|
251
|
+
companyId: number;
|
|
252
|
+
numberCheck: string;
|
|
253
|
+
dateShipments: string;
|
|
254
|
+
positions: {
|
|
255
|
+
description: string;
|
|
256
|
+
plannedDeliveryDate: string;
|
|
257
|
+
entityType: EnumEntityDeliveryItem;
|
|
258
|
+
orderedQuantity: number;
|
|
259
|
+
totalAmount: number;
|
|
260
|
+
equipmentId?: number | null | undefined;
|
|
261
|
+
materialId?: number | null | undefined;
|
|
262
|
+
instrumentId?: number | null | undefined;
|
|
263
|
+
inventaryId?: number | null | undefined;
|
|
264
|
+
unitMeasurementId?: number | null | undefined;
|
|
265
|
+
}[];
|
|
266
|
+
documentsIds?: number[] | null | undefined;
|
|
267
|
+
}, {
|
|
268
|
+
description: string;
|
|
269
|
+
count: number;
|
|
270
|
+
nds: number;
|
|
271
|
+
companyId: number;
|
|
272
|
+
numberCheck: string;
|
|
273
|
+
dateShipments: string;
|
|
274
|
+
positions: {
|
|
275
|
+
plannedDeliveryDate: string;
|
|
276
|
+
entityType: EnumEntityDeliveryItem;
|
|
277
|
+
orderedQuantity: number;
|
|
278
|
+
description?: string | undefined;
|
|
279
|
+
equipmentId?: number | null | undefined;
|
|
280
|
+
materialId?: number | null | undefined;
|
|
281
|
+
instrumentId?: number | null | undefined;
|
|
282
|
+
inventaryId?: number | null | undefined;
|
|
283
|
+
unitMeasurementId?: number | null | undefined;
|
|
284
|
+
totalAmount?: number | undefined;
|
|
285
|
+
}[];
|
|
286
|
+
documentsIds?: number[] | null | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
export type CreateDeliveryPositionDtoZodType = z.infer<typeof CreateDeliveryPositionDtoZod>;
|
|
289
|
+
export type CreateDeliveriesByPositionsDtoZodType = z.infer<typeof CreateDeliveriesByPositionsDtoZod>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateDeliveriesDtoZod = exports.DeliveryPositionListItemSchema = void 0;
|
|
3
|
+
exports.CreateDeliveriesByPositionsDtoZod = exports.CreateDeliveryPositionDtoZod = exports.CreateDeliveriesDtoZod = exports.DeliveryPositionListItemSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
+
const deliveries_position_schema_1 = require("../schemas/deliveries-position.schema");
|
|
6
7
|
exports.DeliveryPositionListItemSchema = zod_1.z.object({
|
|
7
8
|
entityId: zod_1.z.number(),
|
|
8
9
|
type: zod_1.z.nativeEnum(utils_1.EnumEntityDeliveryItem),
|
|
9
10
|
ezId: zod_1.z.number(),
|
|
11
|
+
plannedDeliveryDate: zod_1.z.string().datetime({ offset: true }).optional(),
|
|
10
12
|
shipped: zod_1.z.number().optional().default(0),
|
|
11
13
|
quantity: zod_1.z.number(),
|
|
12
14
|
sum: zod_1.z.number(),
|
|
@@ -23,3 +25,70 @@ exports.CreateDeliveriesDtoZod = zod_1.z.object({
|
|
|
23
25
|
dateShipments: zod_1.z.string(),
|
|
24
26
|
description: zod_1.z.string()
|
|
25
27
|
});
|
|
28
|
+
exports.CreateDeliveryPositionDtoZod = deliveries_position_schema_1.DeliveryPositionSchema.omit({
|
|
29
|
+
id: true,
|
|
30
|
+
deliveryId: true,
|
|
31
|
+
receivedQuantity: true,
|
|
32
|
+
plannedDeliveryDate: true,
|
|
33
|
+
createdAt: true,
|
|
34
|
+
updatedAt: true
|
|
35
|
+
})
|
|
36
|
+
.extend({
|
|
37
|
+
plannedDeliveryDate: zod_1.z.string()
|
|
38
|
+
})
|
|
39
|
+
.superRefine((position, ctx) => {
|
|
40
|
+
const entityIds = [
|
|
41
|
+
position.materialId,
|
|
42
|
+
position.equipmentId,
|
|
43
|
+
position.instrumentId,
|
|
44
|
+
position.inventaryId
|
|
45
|
+
].filter(value => Number(value) > 0);
|
|
46
|
+
if (entityIds.length !== 1) {
|
|
47
|
+
ctx.addIssue({
|
|
48
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
49
|
+
message: 'Для позиции заказа должна быть указана ровно одна сущность'
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (position.entityType === utils_1.EnumEntityDeliveryItem.material &&
|
|
53
|
+
!position.materialId) {
|
|
54
|
+
ctx.addIssue({
|
|
55
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
56
|
+
path: ['materialId'],
|
|
57
|
+
message: 'Для материала должен быть указан materialId'
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (position.entityType === utils_1.EnumEntityDeliveryItem.equipment &&
|
|
61
|
+
!position.equipmentId) {
|
|
62
|
+
ctx.addIssue({
|
|
63
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
64
|
+
path: ['equipmentId'],
|
|
65
|
+
message: 'Для оборудования должен быть указан equipmentId'
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (position.entityType === utils_1.EnumEntityDeliveryItem.instrument &&
|
|
69
|
+
!position.instrumentId) {
|
|
70
|
+
ctx.addIssue({
|
|
71
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
72
|
+
path: ['instrumentId'],
|
|
73
|
+
message: 'Для инструмента должен быть указан instrumentId'
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (position.entityType === utils_1.EnumEntityDeliveryItem.inventary &&
|
|
77
|
+
!position.inventaryId) {
|
|
78
|
+
ctx.addIssue({
|
|
79
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
80
|
+
path: ['inventaryId'],
|
|
81
|
+
message: 'Для инвентаря должен быть указан inventaryId'
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
exports.CreateDeliveriesByPositionsDtoZod = zod_1.z.object({
|
|
86
|
+
companyId: zod_1.z.number(),
|
|
87
|
+
numberCheck: zod_1.z.string(),
|
|
88
|
+
nds: zod_1.z.number(),
|
|
89
|
+
count: zod_1.z.number(),
|
|
90
|
+
positions: exports.CreateDeliveryPositionDtoZod.array(),
|
|
91
|
+
documentsIds: zod_1.z.array(zod_1.z.number().int()).nullish(),
|
|
92
|
+
dateShipments: zod_1.z.string(),
|
|
93
|
+
description: zod_1.z.string()
|
|
94
|
+
});
|
|
@@ -1,32 +1,52 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { EnumEntityDeliveryItem } from '../../utils';
|
|
2
3
|
export declare const DeliveryPositionSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
+
deliveryId: z.ZodNumber;
|
|
6
|
+
entityType: z.ZodNativeEnum<typeof EnumEntityDeliveryItem>;
|
|
7
|
+
materialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
instrumentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
inventaryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
unitMeasurementId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
orderedQuantity: z.ZodNumber;
|
|
13
|
+
receivedQuantity: z.ZodDefault<z.ZodNumber>;
|
|
14
|
+
plannedDeliveryDate: z.ZodDate;
|
|
15
|
+
totalAmount: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
description: z.ZodDefault<z.ZodString>;
|
|
17
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
12
19
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
type: string;
|
|
14
20
|
description: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
plannedDeliveryDate: Date;
|
|
22
|
+
entityType: EnumEntityDeliveryItem;
|
|
23
|
+
deliveryId: number;
|
|
24
|
+
orderedQuantity: number;
|
|
25
|
+
receivedQuantity: number;
|
|
26
|
+
totalAmount: number;
|
|
27
|
+
id?: number | null | undefined;
|
|
28
|
+
createdAt?: string | undefined;
|
|
29
|
+
equipmentId?: number | null | undefined;
|
|
30
|
+
materialId?: number | null | undefined;
|
|
31
|
+
updatedAt?: string | undefined;
|
|
32
|
+
instrumentId?: number | null | undefined;
|
|
33
|
+
inventaryId?: number | null | undefined;
|
|
34
|
+
unitMeasurementId?: number | null | undefined;
|
|
22
35
|
}, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
plannedDeliveryDate: Date;
|
|
37
|
+
entityType: EnumEntityDeliveryItem;
|
|
38
|
+
deliveryId: number;
|
|
39
|
+
orderedQuantity: number;
|
|
40
|
+
description?: string | undefined;
|
|
41
|
+
id?: number | null | undefined;
|
|
42
|
+
createdAt?: string | undefined;
|
|
43
|
+
equipmentId?: number | null | undefined;
|
|
44
|
+
materialId?: number | null | undefined;
|
|
45
|
+
updatedAt?: string | undefined;
|
|
46
|
+
instrumentId?: number | null | undefined;
|
|
47
|
+
inventaryId?: number | null | undefined;
|
|
48
|
+
unitMeasurementId?: number | null | undefined;
|
|
49
|
+
receivedQuantity?: number | undefined;
|
|
50
|
+
totalAmount?: number | undefined;
|
|
32
51
|
}>;
|
|
52
|
+
export type ModelDeliveryPosition = z.infer<typeof DeliveryPositionSchema>;
|
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeliveryPositionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
5
6
|
exports.DeliveryPositionSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number(),
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
id: zod_1.z.number().nullish(),
|
|
8
|
+
deliveryId: zod_1.z.number().int().positive(),
|
|
9
|
+
entityType: zod_1.z.nativeEnum(utils_1.EnumEntityDeliveryItem),
|
|
10
|
+
materialId: zod_1.z.number().int().positive().nullish(),
|
|
11
|
+
equipmentId: zod_1.z.number().int().positive().nullish(),
|
|
12
|
+
instrumentId: zod_1.z.number().int().positive().nullish(),
|
|
13
|
+
inventaryId: zod_1.z.number().int().positive().nullish(),
|
|
14
|
+
unitMeasurementId: zod_1.z.number().int().positive().nullish(),
|
|
15
|
+
orderedQuantity: zod_1.z.number(),
|
|
16
|
+
receivedQuantity: zod_1.z.number().default(0),
|
|
17
|
+
plannedDeliveryDate: zod_1.z.date(),
|
|
18
|
+
totalAmount: zod_1.z.number().default(0),
|
|
19
|
+
description: zod_1.z.string().default(''),
|
|
20
|
+
createdAt: zod_1.z.string().optional(),
|
|
21
|
+
updatedAt: zod_1.z.string().optional()
|
|
15
22
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { DELIVERY_POSITION_LIST, EnumStatusDelivery } from '../../utils';
|
|
3
|
-
import { ModelProviders } from '../../provider';
|
|
2
|
+
import { DELIVERY_POSITION_LIST, EnumStatusDelivery, EnumStatusOrder } from '../../utils';
|
|
4
3
|
import { ModelDocuments } from '../../document';
|
|
5
4
|
import { ModelMaterial } from '../../material';
|
|
6
5
|
import { ModelNameInstrument } from '../../instrument';
|
|
@@ -18,7 +17,6 @@ export declare const DeliveriesSchema: z.ZodObject<{
|
|
|
18
17
|
delivery_position_list: z.ZodOptional<z.ZodType<DELIVERY_POSITION_LIST, z.ZodTypeDef, DELIVERY_POSITION_LIST>>;
|
|
19
18
|
description: z.ZodOptional<z.ZodString>;
|
|
20
19
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
provider_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
20
|
company_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
21
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
24
22
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -31,7 +29,6 @@ export declare const DeliveriesSchema: z.ZodObject<{
|
|
|
31
29
|
number_order?: string | undefined;
|
|
32
30
|
number_check?: string | undefined;
|
|
33
31
|
createdAt?: string | undefined;
|
|
34
|
-
provider_id?: number | null | undefined;
|
|
35
32
|
count?: number | undefined;
|
|
36
33
|
date_shipments?: Date | undefined;
|
|
37
34
|
delivery_position_list?: DELIVERY_POSITION_LIST | undefined;
|
|
@@ -45,7 +42,6 @@ export declare const DeliveriesSchema: z.ZodObject<{
|
|
|
45
42
|
number_order?: string | undefined;
|
|
46
43
|
number_check?: string | undefined;
|
|
47
44
|
createdAt?: string | undefined;
|
|
48
|
-
provider_id?: number | null | undefined;
|
|
49
45
|
count?: number | undefined;
|
|
50
46
|
date_shipments?: Date | undefined;
|
|
51
47
|
nds?: number | undefined;
|
|
@@ -54,7 +50,6 @@ export declare const DeliveriesSchema: z.ZodObject<{
|
|
|
54
50
|
updatedAt?: string | undefined;
|
|
55
51
|
}>;
|
|
56
52
|
export type ModelDeliveries = z.infer<typeof DeliveriesSchema> & {
|
|
57
|
-
provider?: ModelProviders;
|
|
58
53
|
documents?: ModelDocuments[];
|
|
59
54
|
materials?: ModelMaterial[];
|
|
60
55
|
tools?: ModelNameInstrument[];
|
|
@@ -62,3 +57,7 @@ export type ModelDeliveries = z.infer<typeof DeliveriesSchema> & {
|
|
|
62
57
|
inventary?: ModelInventary[];
|
|
63
58
|
company?: ModelCompany;
|
|
64
59
|
};
|
|
60
|
+
export interface IModelDeliveriesExtended extends ModelDeliveries {
|
|
61
|
+
status_computed: EnumStatusOrder | null;
|
|
62
|
+
positions_count?: number;
|
|
63
|
+
}
|
|
@@ -14,7 +14,6 @@ exports.DeliveriesSchema = zod_1.z.object({
|
|
|
14
14
|
delivery_position_list: zod_1.z.custom().optional(),
|
|
15
15
|
description: zod_1.z.string().optional(),
|
|
16
16
|
ban: zod_1.z.boolean().default(false),
|
|
17
|
-
provider_id: zod_1.z.number().nullish(),
|
|
18
17
|
company_id: zod_1.z.number().nullish(),
|
|
19
18
|
createdAt: zod_1.z.string().optional(),
|
|
20
19
|
updatedAt: zod_1.z.string().optional()
|