@pksep/zod-shared 0.0.529 → 0.0.530
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/action/schemas/actions.schema.d.ts +5 -0
- package/dist/action/schemas/actions.schema.js +2 -1
- package/dist/company/dto/companies-pagination.dto.d.ts +3 -0
- package/dist/company/dto/companies-pagination.dto.js +1 -0
- package/dist/equipment/schemas/equipment.schema.d.ts +5 -0
- package/dist/moving/schemas/moving.schema.d.ts +7 -0
- package/dist/production-tasks/interfaces/production-tasks.d.ts +1 -0
- package/dist/production-tasks/interfaces/workload-by-entity.d.ts +19 -0
- 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/rack/dto/get-all-racks.dto.d.ts +3 -0
- package/dist/rack/dto/get-all-racks.dto.js +2 -1
- package/dist/role/schemas/role.schema.d.ts +7 -0
- package/dist/user/schemas/user.schema.d.ts +5 -0
- package/dist/utils/enums.d.ts +1 -0
- package/dist/utils/enums.js +1 -0
- package/dist/utils/methods.d.ts +13 -0
- package/dist/utils/methods.js +106 -26
- package/dist/utils/types/types.d.ts +1 -0
- package/dist/waybill/dto/create-waybill-product.dto.d.ts +8 -2
- package/dist/waybill/dto/create-waybill-product.dto.js +15 -1
- package/dist/waybill/dto/create-waybill.dto.d.ts +16 -6
- package/dist/waybill/dto/create-waybill.dto.js +1 -1
- package/dist/waybill/interface/interface.d.ts +1 -0
- 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/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 → production-tasks/interfaces/workload-by-entity.js} +0 -0
|
@@ -23,6 +23,7 @@ import { ModelRole } from '../../role';
|
|
|
23
23
|
import { ModelProductionTask } from '../../production-tasks';
|
|
24
24
|
import { ModelContact } from '../../contact';
|
|
25
25
|
import { ModelCompany } from '../../company';
|
|
26
|
+
import { ModelRevision } from '../../sclad';
|
|
26
27
|
export declare const ActionsSchema: z.ZodObject<{
|
|
27
28
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
29
|
responsible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -58,6 +59,7 @@ export declare const ActionsSchema: z.ZodObject<{
|
|
|
58
59
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
60
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
61
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
62
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
63
|
}, "strip", z.ZodTypeAny, {
|
|
62
64
|
ban: boolean;
|
|
63
65
|
action: IActionText[];
|
|
@@ -93,6 +95,7 @@ export declare const ActionsSchema: z.ZodObject<{
|
|
|
93
95
|
parent_action_idL?: number | null | undefined;
|
|
94
96
|
production_task_id?: number | null | undefined;
|
|
95
97
|
createdAt?: string | Date | undefined;
|
|
98
|
+
revision_id?: number | null | undefined;
|
|
96
99
|
}, {
|
|
97
100
|
action: IActionText[];
|
|
98
101
|
type_object: string;
|
|
@@ -128,6 +131,7 @@ export declare const ActionsSchema: z.ZodObject<{
|
|
|
128
131
|
parent_action_idL?: number | null | undefined;
|
|
129
132
|
production_task_id?: number | null | undefined;
|
|
130
133
|
createdAt?: string | Date | undefined;
|
|
134
|
+
revision_id?: number | null | undefined;
|
|
131
135
|
}>;
|
|
132
136
|
export type ModelActions = z.infer<typeof ActionsSchema> & {
|
|
133
137
|
child_actions?: ModelActions[];
|
|
@@ -158,4 +162,5 @@ export type ModelActions = z.infer<typeof ActionsSchema> & {
|
|
|
158
162
|
type_operation?: ModelTypeOperation;
|
|
159
163
|
contact?: ModelContact;
|
|
160
164
|
company?: ModelCompany;
|
|
165
|
+
revision?: ModelRevision;
|
|
161
166
|
};
|
|
@@ -36,5 +36,6 @@ exports.ActionsSchema = zod_1.z.object({
|
|
|
36
36
|
role_id: zod_1.z.number().nullish(),
|
|
37
37
|
parent_action_idL: zod_1.z.number().nullable().optional(),
|
|
38
38
|
production_task_id: zod_1.z.number().nullish(),
|
|
39
|
-
createdAt: zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).optional()
|
|
39
|
+
createdAt: zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).optional(),
|
|
40
|
+
revision_id: zod_1.z.number().nullish()
|
|
40
41
|
});
|
|
@@ -5,6 +5,7 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
|
|
|
5
5
|
isSortedByAttention: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
6
|
isSortedByDate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7
7
|
filterByTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../enums/enums").DtoEnumCompanyType>, "many">>>;
|
|
8
|
+
isFilteredByInboundSupplier: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
9
|
isBan: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
10
|
filterByEntities: z.ZodOptional<z.ZodObject<{
|
|
10
11
|
materialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -29,6 +30,7 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
|
|
|
29
30
|
isSortedByDate: boolean;
|
|
30
31
|
isBan: boolean;
|
|
31
32
|
filterByTypes: import("../enums/enums").DtoEnumCompanyType[];
|
|
33
|
+
isFilteredByInboundSupplier: boolean;
|
|
32
34
|
filterByEntities?: {
|
|
33
35
|
equipmentIds: number[];
|
|
34
36
|
materialIds: number[];
|
|
@@ -42,6 +44,7 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
|
|
|
42
44
|
isSortedByDate?: boolean | undefined;
|
|
43
45
|
isBan?: boolean | undefined;
|
|
44
46
|
filterByTypes?: import("../enums/enums").DtoEnumCompanyType[] | undefined;
|
|
47
|
+
isFilteredByInboundSupplier?: boolean | undefined;
|
|
45
48
|
filterByEntities?: {
|
|
46
49
|
equipmentIds?: number[] | undefined;
|
|
47
50
|
materialIds?: number[] | undefined;
|
|
@@ -9,6 +9,7 @@ exports.companiesPaginationDtoZod = zod_1.z.object({
|
|
|
9
9
|
isSortedByAttention: zod_1.z.boolean().optional().default(false),
|
|
10
10
|
isSortedByDate: zod_1.z.boolean().optional().default(false),
|
|
11
11
|
filterByTypes: zod_1.z.array(enums_1.EnumDtoCompanyTypeZod).optional().default([]),
|
|
12
|
+
isFilteredByInboundSupplier: zod_1.z.boolean().optional().default(false),
|
|
12
13
|
isBan: zod_1.z.boolean().optional().default(false),
|
|
13
14
|
filterByEntities: zod_1.z
|
|
14
15
|
.object({
|
|
@@ -375,6 +375,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
375
375
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
376
376
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
377
377
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
378
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
378
379
|
}, "strip", z.ZodTypeAny, {
|
|
379
380
|
ban: boolean;
|
|
380
381
|
action: import("../../action").IActionText[];
|
|
@@ -410,6 +411,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
410
411
|
parent_action_idL?: number | null | undefined;
|
|
411
412
|
production_task_id?: number | null | undefined;
|
|
412
413
|
createdAt?: string | Date | undefined;
|
|
414
|
+
revision_id?: number | null | undefined;
|
|
413
415
|
}, {
|
|
414
416
|
action: import("../../action").IActionText[];
|
|
415
417
|
type_object: string;
|
|
@@ -445,6 +447,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
445
447
|
parent_action_idL?: number | null | undefined;
|
|
446
448
|
production_task_id?: number | null | undefined;
|
|
447
449
|
createdAt?: string | Date | undefined;
|
|
450
|
+
revision_id?: number | null | undefined;
|
|
448
451
|
}>, "many">>;
|
|
449
452
|
}, "strip", z.ZodTypeAny, {
|
|
450
453
|
ban: boolean;
|
|
@@ -591,6 +594,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
591
594
|
parent_action_idL?: number | null | undefined;
|
|
592
595
|
production_task_id?: number | null | undefined;
|
|
593
596
|
createdAt?: string | Date | undefined;
|
|
597
|
+
revision_id?: number | null | undefined;
|
|
594
598
|
}[] | undefined;
|
|
595
599
|
nameInstrument?: any[] | undefined;
|
|
596
600
|
equipmentType?: any;
|
|
@@ -737,6 +741,7 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
737
741
|
parent_action_idL?: number | null | undefined;
|
|
738
742
|
production_task_id?: number | null | undefined;
|
|
739
743
|
createdAt?: string | Date | undefined;
|
|
744
|
+
revision_id?: number | null | undefined;
|
|
740
745
|
}[] | undefined;
|
|
741
746
|
price?: number | undefined;
|
|
742
747
|
delivery_ordered?: number | undefined;
|
|
@@ -309,6 +309,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
309
309
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
310
310
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
311
311
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
312
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
312
313
|
}, "strip", z.ZodTypeAny, {
|
|
313
314
|
ban: boolean;
|
|
314
315
|
action: import("../..").IActionText[];
|
|
@@ -344,6 +345,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
344
345
|
parent_action_idL?: number | null | undefined;
|
|
345
346
|
production_task_id?: number | null | undefined;
|
|
346
347
|
createdAt?: string | Date | undefined;
|
|
348
|
+
revision_id?: number | null | undefined;
|
|
347
349
|
}, {
|
|
348
350
|
action: import("../..").IActionText[];
|
|
349
351
|
type_object: string;
|
|
@@ -379,6 +381,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
379
381
|
parent_action_idL?: number | null | undefined;
|
|
380
382
|
production_task_id?: number | null | undefined;
|
|
381
383
|
createdAt?: string | Date | undefined;
|
|
384
|
+
revision_id?: number | null | undefined;
|
|
382
385
|
}>, "many">;
|
|
383
386
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
384
387
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -691,6 +694,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
691
694
|
parent_action_idL?: number | null | undefined;
|
|
692
695
|
production_task_id?: number | null | undefined;
|
|
693
696
|
createdAt?: string | Date | undefined;
|
|
697
|
+
revision_id?: number | null | undefined;
|
|
694
698
|
}[];
|
|
695
699
|
responsibleForProduct: {
|
|
696
700
|
ban: boolean;
|
|
@@ -884,6 +888,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
884
888
|
parent_action_idL?: number | null | undefined;
|
|
885
889
|
production_task_id?: number | null | undefined;
|
|
886
890
|
createdAt?: string | Date | undefined;
|
|
891
|
+
revision_id?: number | null | undefined;
|
|
887
892
|
}[];
|
|
888
893
|
responsibleForProduct: {
|
|
889
894
|
designation: string | null;
|
|
@@ -1174,6 +1179,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1174
1179
|
parent_action_idL?: number | null | undefined;
|
|
1175
1180
|
production_task_id?: number | null | undefined;
|
|
1176
1181
|
createdAt?: string | Date | undefined;
|
|
1182
|
+
revision_id?: number | null | undefined;
|
|
1177
1183
|
}[];
|
|
1178
1184
|
responsibleForProduct: {
|
|
1179
1185
|
ban: boolean;
|
|
@@ -1395,6 +1401,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1395
1401
|
parent_action_idL?: number | null | undefined;
|
|
1396
1402
|
production_task_id?: number | null | undefined;
|
|
1397
1403
|
createdAt?: string | Date | undefined;
|
|
1404
|
+
revision_id?: number | null | undefined;
|
|
1398
1405
|
}[];
|
|
1399
1406
|
responsibleForProduct: {
|
|
1400
1407
|
designation: string | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface IWorkloadByEntityResponse {
|
|
2
|
+
operationName: string;
|
|
3
|
+
workloadData: IWorkloadData[];
|
|
4
|
+
}
|
|
5
|
+
export interface IWorkloadData {
|
|
6
|
+
responsibleInfo: any;
|
|
7
|
+
positions: IWorkloadPositionByDate[];
|
|
8
|
+
}
|
|
9
|
+
export interface IWorkloadPositionByDate {
|
|
10
|
+
workDate: string;
|
|
11
|
+
positions: {
|
|
12
|
+
normHours: number;
|
|
13
|
+
deltaTime: number;
|
|
14
|
+
datesToCheck: {
|
|
15
|
+
calculateDate: Date | string;
|
|
16
|
+
planReadyDate: Date | string;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -17,6 +17,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
17
17
|
count_created: z.ZodDefault<z.ZodNumber>;
|
|
18
18
|
plan_ready_time: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
19
19
|
is_relevance: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
calculate_start_time: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
20
21
|
createdAt: z.ZodDate;
|
|
21
22
|
updatedAt: z.ZodDate;
|
|
22
23
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -35,6 +36,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
35
36
|
detal_idx?: number | undefined;
|
|
36
37
|
production_operation_pos_id?: number | null | undefined;
|
|
37
38
|
plan_ready_time?: Date | null | undefined;
|
|
39
|
+
calculate_start_time?: Date | null | undefined;
|
|
38
40
|
}, {
|
|
39
41
|
id: number;
|
|
40
42
|
createdAt: Date;
|
|
@@ -51,6 +53,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
51
53
|
count_created?: number | undefined;
|
|
52
54
|
plan_ready_time?: Date | null | undefined;
|
|
53
55
|
is_relevance?: boolean | undefined;
|
|
56
|
+
calculate_start_time?: Date | null | undefined;
|
|
54
57
|
}>;
|
|
55
58
|
export type ModelOperationPosition = z.infer<typeof OperationPositionSchema> & {
|
|
56
59
|
responsibleUser?: ModelUser;
|
|
@@ -16,6 +16,7 @@ exports.OperationPositionSchema = zod_1.z.object({
|
|
|
16
16
|
count_created: zod_1.z.number().int().nonnegative().default(0),
|
|
17
17
|
plan_ready_time: zod_1.z.date().nullish(),
|
|
18
18
|
is_relevance: zod_1.z.boolean().default(true),
|
|
19
|
+
calculate_start_time: zod_1.z.date().nullish(),
|
|
19
20
|
createdAt: zod_1.z.date(),
|
|
20
21
|
updatedAt: zod_1.z.date()
|
|
21
22
|
});
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const getAllRacksSchemaDto: z.ZodObject<{
|
|
3
3
|
page: z.ZodNumber;
|
|
4
|
+
searchString: z.ZodOptional<z.ZodString>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
5
6
|
page: number;
|
|
7
|
+
searchString?: string | undefined;
|
|
6
8
|
}, {
|
|
7
9
|
page: number;
|
|
10
|
+
searchString?: string | undefined;
|
|
8
11
|
}>;
|
|
9
12
|
export type GetAllRacksDto = z.infer<typeof getAllRacksSchemaDto>;
|
|
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getAllRacksSchemaDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.getAllRacksSchemaDto = zod_1.z.object({
|
|
6
|
-
page: zod_1.z.number().int().describe('страница пагинации')
|
|
6
|
+
page: zod_1.z.number().int().describe('страница пагинации'),
|
|
7
|
+
searchString: zod_1.z.string().optional().describe('поиск')
|
|
7
8
|
});
|
|
@@ -305,6 +305,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
305
305
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
306
306
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
307
307
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
308
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
308
309
|
}, "strip", z.ZodTypeAny, {
|
|
309
310
|
ban: boolean;
|
|
310
311
|
action: import("../..").IActionText[];
|
|
@@ -340,6 +341,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
340
341
|
parent_action_idL?: number | null | undefined;
|
|
341
342
|
production_task_id?: number | null | undefined;
|
|
342
343
|
createdAt?: string | Date | undefined;
|
|
344
|
+
revision_id?: number | null | undefined;
|
|
343
345
|
}, {
|
|
344
346
|
action: import("../..").IActionText[];
|
|
345
347
|
type_object: string;
|
|
@@ -375,6 +377,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
375
377
|
parent_action_idL?: number | null | undefined;
|
|
376
378
|
production_task_id?: number | null | undefined;
|
|
377
379
|
createdAt?: string | Date | undefined;
|
|
380
|
+
revision_id?: number | null | undefined;
|
|
378
381
|
}>, "many">;
|
|
379
382
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
380
383
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -687,6 +690,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
687
690
|
parent_action_idL?: number | null | undefined;
|
|
688
691
|
production_task_id?: number | null | undefined;
|
|
689
692
|
createdAt?: string | Date | undefined;
|
|
693
|
+
revision_id?: number | null | undefined;
|
|
690
694
|
}[];
|
|
691
695
|
responsibleForProduct: {
|
|
692
696
|
ban: boolean;
|
|
@@ -880,6 +884,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
880
884
|
parent_action_idL?: number | null | undefined;
|
|
881
885
|
production_task_id?: number | null | undefined;
|
|
882
886
|
createdAt?: string | Date | undefined;
|
|
887
|
+
revision_id?: number | null | undefined;
|
|
883
888
|
}[];
|
|
884
889
|
responsibleForProduct: {
|
|
885
890
|
designation: string | null;
|
|
@@ -1097,6 +1102,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1097
1102
|
parent_action_idL?: number | null | undefined;
|
|
1098
1103
|
production_task_id?: number | null | undefined;
|
|
1099
1104
|
createdAt?: string | Date | undefined;
|
|
1105
|
+
revision_id?: number | null | undefined;
|
|
1100
1106
|
}[];
|
|
1101
1107
|
responsibleForProduct: {
|
|
1102
1108
|
ban: boolean;
|
|
@@ -1295,6 +1301,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1295
1301
|
parent_action_idL?: number | null | undefined;
|
|
1296
1302
|
production_task_id?: number | null | undefined;
|
|
1297
1303
|
createdAt?: string | Date | undefined;
|
|
1304
|
+
revision_id?: number | null | undefined;
|
|
1298
1305
|
}[];
|
|
1299
1306
|
responsibleForProduct: {
|
|
1300
1307
|
designation: string | null;
|
|
@@ -303,6 +303,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
303
303
|
parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
304
304
|
production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
305
305
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
306
|
+
revision_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
306
307
|
}, "strip", z.ZodTypeAny, {
|
|
307
308
|
ban: boolean;
|
|
308
309
|
action: import("../..").IActionText[];
|
|
@@ -338,6 +339,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
338
339
|
parent_action_idL?: number | null | undefined;
|
|
339
340
|
production_task_id?: number | null | undefined;
|
|
340
341
|
createdAt?: string | Date | undefined;
|
|
342
|
+
revision_id?: number | null | undefined;
|
|
341
343
|
}, {
|
|
342
344
|
action: import("../..").IActionText[];
|
|
343
345
|
type_object: string;
|
|
@@ -373,6 +375,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
373
375
|
parent_action_idL?: number | null | undefined;
|
|
374
376
|
production_task_id?: number | null | undefined;
|
|
375
377
|
createdAt?: string | Date | undefined;
|
|
378
|
+
revision_id?: number | null | undefined;
|
|
376
379
|
}>, "many">;
|
|
377
380
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
378
381
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -685,6 +688,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
685
688
|
parent_action_idL?: number | null | undefined;
|
|
686
689
|
production_task_id?: number | null | undefined;
|
|
687
690
|
createdAt?: string | Date | undefined;
|
|
691
|
+
revision_id?: number | null | undefined;
|
|
688
692
|
}[];
|
|
689
693
|
responsibleForProduct: {
|
|
690
694
|
ban: boolean;
|
|
@@ -878,6 +882,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
878
882
|
parent_action_idL?: number | null | undefined;
|
|
879
883
|
production_task_id?: number | null | undefined;
|
|
880
884
|
createdAt?: string | Date | undefined;
|
|
885
|
+
revision_id?: number | null | undefined;
|
|
881
886
|
}[];
|
|
882
887
|
responsibleForProduct: {
|
|
883
888
|
designation: string | null;
|
package/dist/utils/enums.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare enum StatusScladWorking {
|
|
|
48
48
|
export declare enum statusShipment {
|
|
49
49
|
all = "\u0412\u0441\u0435",
|
|
50
50
|
order = "\u0417\u0430\u043A\u0430\u0437\u0430\u043D\u043E",
|
|
51
|
+
readyToShip = "\u0413\u043E\u0442\u043E\u0432\u043E \u043A \u043E\u0442\u0433\u0440\u0443\u0437\u043A\u0435",
|
|
51
52
|
ban = "\u0423\u0434\u0430\u043B\u0435\u043D\u043E",
|
|
52
53
|
done = "\u041E\u0442\u0433\u0440\u0443\u0436\u0435\u043D\u043E",
|
|
53
54
|
overbue = "\u041F\u0440\u043E\u0441\u0440\u043E\u0447\u0435\u043D\u043E"
|
package/dist/utils/enums.js
CHANGED
|
@@ -60,6 +60,7 @@ var statusShipment;
|
|
|
60
60
|
(function (statusShipment) {
|
|
61
61
|
statusShipment["all"] = "\u0412\u0441\u0435";
|
|
62
62
|
statusShipment["order"] = "\u0417\u0430\u043A\u0430\u0437\u0430\u043D\u043E";
|
|
63
|
+
statusShipment["readyToShip"] = "\u0413\u043E\u0442\u043E\u0432\u043E \u043A \u043E\u0442\u0433\u0440\u0443\u0437\u043A\u0435";
|
|
63
64
|
statusShipment["ban"] = "\u0423\u0434\u0430\u043B\u0435\u043D\u043E";
|
|
64
65
|
statusShipment["done"] = "\u041E\u0442\u0433\u0440\u0443\u0436\u0435\u043D\u043E";
|
|
65
66
|
statusShipment["overbue"] = "\u041F\u0440\u043E\u0441\u0440\u043E\u0447\u0435\u043D\u043E";
|
package/dist/utils/methods.d.ts
CHANGED
|
@@ -60,7 +60,20 @@ export interface HolidayConfig {
|
|
|
60
60
|
*/
|
|
61
61
|
skipDefaultJanuaryHolidays?: boolean;
|
|
62
62
|
}
|
|
63
|
+
export declare const WORK_DAY_START_HOUR = 5;
|
|
64
|
+
export declare const WORK_DAY_END_HOUR = 13;
|
|
65
|
+
export declare const WORK_DAY_END_MINUTE = 30;
|
|
63
66
|
export declare const calculateEndDate: (startDate: Date, totalMinutes: number, config?: HolidayConfig) => Date;
|
|
67
|
+
/**
|
|
68
|
+
* Возвращает время начала работы, вычитая рабочие минуты из конечной даты.
|
|
69
|
+
* Обратное направление по сравнению с calculateEndDate.
|
|
70
|
+
* Учитываются только рабочие часы (5:00-13:30 UTC, будни).
|
|
71
|
+
* @param endDate Конечная дата (от которой идем назад)
|
|
72
|
+
* @param totalMinutes Количество минут, которое нужно вычесть
|
|
73
|
+
* @param config Опциональная конфигурация праздников
|
|
74
|
+
* @returns Дата начала работы
|
|
75
|
+
*/
|
|
76
|
+
export declare const calculateStartDate: (endDate: Date, totalMinutes: number, config?: HolidayConfig) => Date;
|
|
64
77
|
/**
|
|
65
78
|
* Функция получает сущность и генерирует из него элемент спецификации
|
|
66
79
|
* @param entity
|
package/dist/utils/methods.js
CHANGED
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.intersect = exports.shipmentsNullOne = exports.differencesShipments = exports.dateDifference = exports.toFormatString = exports.comparison = exports.comparisonTimestamp = exports.parseDate = exports.dataFormat = exports.dateToTimestampFormat = exports.convertStringValuesToNumbers = exports.dateToFormat = exports.photoPreloadUrl = exports.isImage = exports.getReversDate = exports.isValidNumber = exports.returnTypePosition = exports.checkMissingEntity = exports.countChildrensRelative = exports.concatedLists = exports.countUniqueValueChildren = exports.removeArrDublicateByAttr = exports.getOnCommonListChildrens = exports.sleep = exports.parseBoolean = exports.strIsBoolean = exports.useWorkpieceCharacterizationItems = exports.getFileType = exports.calculateEndDate = exports.leftToDoByProductionTask = exports.calculateByMeasurementRate = void 0;
|
|
23
|
+
exports.intersect = exports.shipmentsNullOne = exports.differencesShipments = exports.dateDifference = exports.toFormatString = exports.comparison = exports.comparisonTimestamp = exports.parseDate = exports.dataFormat = exports.dateToTimestampFormat = exports.convertStringValuesToNumbers = exports.dateToFormat = exports.photoPreloadUrl = exports.isImage = exports.getReversDate = exports.isValidNumber = exports.returnTypePosition = exports.checkMissingEntity = exports.countChildrensRelative = exports.concatedLists = exports.countUniqueValueChildren = exports.removeArrDublicateByAttr = exports.getOnCommonListChildrens = exports.sleep = exports.parseBoolean = exports.strIsBoolean = exports.useWorkpieceCharacterizationItems = exports.getFileType = exports.calculateStartDate = exports.calculateEndDate = exports.WORK_DAY_END_MINUTE = exports.WORK_DAY_END_HOUR = exports.WORK_DAY_START_HOUR = exports.leftToDoByProductionTask = exports.calculateByMeasurementRate = void 0;
|
|
24
24
|
exports.moreMinusNum = moreMinusNum;
|
|
25
25
|
exports.getFieldsSpetification = getFieldsSpetification;
|
|
26
26
|
exports.isThisExclusionDesignation = isThisExclusionDesignation;
|
|
@@ -113,13 +113,12 @@ const leftToDoByProductionTask = (marks, myQuantity) => {
|
|
|
113
113
|
return moreMinusNum(myQuantity - createByMarks);
|
|
114
114
|
};
|
|
115
115
|
exports.leftToDoByProductionTask = leftToDoByProductionTask;
|
|
116
|
+
exports.WORK_DAY_START_HOUR = 5;
|
|
117
|
+
exports.WORK_DAY_END_HOUR = 13;
|
|
118
|
+
exports.WORK_DAY_END_MINUTE = 30;
|
|
116
119
|
const calculateEndDate = (startDate, totalMinutes, config) => {
|
|
117
120
|
let currentDate = new Date(startDate);
|
|
118
121
|
let remainingMinutes = totalMinutes;
|
|
119
|
-
const workDayStartHour = 5;
|
|
120
|
-
const workDayHours = 8;
|
|
121
|
-
const workDayEndHour = workDayStartHour + workDayHours;
|
|
122
|
-
// Функция для проверки, является ли дата рабочим днем
|
|
123
122
|
const isWorkDay = (date) => {
|
|
124
123
|
var _a, _b;
|
|
125
124
|
const dayOfWeek = date.getUTCDay();
|
|
@@ -129,7 +128,6 @@ const calculateEndDate = (startDate, totalMinutes, config) => {
|
|
|
129
128
|
if (skipJanuary && month === 0 && day >= 1 && day <= 14) {
|
|
130
129
|
return false;
|
|
131
130
|
}
|
|
132
|
-
// Проверяем кастомные праздники из конфига
|
|
133
131
|
if ((_b = config === null || config === void 0 ? void 0 : config.holidays) === null || _b === void 0 ? void 0 : _b.length) {
|
|
134
132
|
const isHoliday = config.holidays.some(holiday => holiday.month === month && holiday.day === day);
|
|
135
133
|
if (isHoliday) {
|
|
@@ -140,12 +138,12 @@ const calculateEndDate = (startDate, totalMinutes, config) => {
|
|
|
140
138
|
};
|
|
141
139
|
const getWorkDayStart = (date) => {
|
|
142
140
|
const start = new Date(date);
|
|
143
|
-
start.setUTCHours(
|
|
141
|
+
start.setUTCHours(exports.WORK_DAY_START_HOUR, 0, 0, 0);
|
|
144
142
|
return start;
|
|
145
143
|
};
|
|
146
144
|
const getWorkDayEnd = (date) => {
|
|
147
145
|
const end = new Date(date);
|
|
148
|
-
end.setUTCHours(
|
|
146
|
+
end.setUTCHours(exports.WORK_DAY_END_HOUR, exports.WORK_DAY_END_MINUTE, 0, 0);
|
|
149
147
|
return end;
|
|
150
148
|
};
|
|
151
149
|
const moveToNextWorkDay = (date) => {
|
|
@@ -153,7 +151,7 @@ const calculateEndDate = (startDate, totalMinutes, config) => {
|
|
|
153
151
|
do {
|
|
154
152
|
nextDay.setUTCDate(nextDay.getUTCDate() + 1);
|
|
155
153
|
} while (!isWorkDay(nextDay));
|
|
156
|
-
nextDay.setUTCHours(
|
|
154
|
+
nextDay.setUTCHours(exports.WORK_DAY_START_HOUR, 0, 0, 0);
|
|
157
155
|
return nextDay;
|
|
158
156
|
};
|
|
159
157
|
if (!isWorkDay(currentDate)) {
|
|
@@ -163,12 +161,12 @@ const calculateEndDate = (startDate, totalMinutes, config) => {
|
|
|
163
161
|
const currentHour = currentDate.getUTCHours();
|
|
164
162
|
const currentMinutes = currentDate.getUTCMinutes();
|
|
165
163
|
const currentTimeInMinutes = currentHour * 60 + currentMinutes;
|
|
166
|
-
const workDayStartInMinutes =
|
|
167
|
-
const workDayEndInMinutes =
|
|
164
|
+
const workDayStartInMinutes = exports.WORK_DAY_START_HOUR * 60;
|
|
165
|
+
const workDayEndInMinutes = exports.WORK_DAY_END_HOUR * 60 + exports.WORK_DAY_END_MINUTE;
|
|
168
166
|
if (currentTimeInMinutes < workDayStartInMinutes) {
|
|
169
167
|
currentDate = getWorkDayStart(currentDate);
|
|
170
168
|
}
|
|
171
|
-
else if (currentTimeInMinutes
|
|
169
|
+
else if (currentTimeInMinutes > workDayEndInMinutes) {
|
|
172
170
|
currentDate = moveToNextWorkDay(currentDate);
|
|
173
171
|
}
|
|
174
172
|
}
|
|
@@ -186,6 +184,83 @@ const calculateEndDate = (startDate, totalMinutes, config) => {
|
|
|
186
184
|
return currentDate;
|
|
187
185
|
};
|
|
188
186
|
exports.calculateEndDate = calculateEndDate;
|
|
187
|
+
/**
|
|
188
|
+
* Возвращает время начала работы, вычитая рабочие минуты из конечной даты.
|
|
189
|
+
* Обратное направление по сравнению с calculateEndDate.
|
|
190
|
+
* Учитываются только рабочие часы (5:00-13:30 UTC, будни).
|
|
191
|
+
* @param endDate Конечная дата (от которой идем назад)
|
|
192
|
+
* @param totalMinutes Количество минут, которое нужно вычесть
|
|
193
|
+
* @param config Опциональная конфигурация праздников
|
|
194
|
+
* @returns Дата начала работы
|
|
195
|
+
*/
|
|
196
|
+
const calculateStartDate = (endDate, totalMinutes, config) => {
|
|
197
|
+
let currentDate = new Date(endDate);
|
|
198
|
+
let remainingMinutes = totalMinutes;
|
|
199
|
+
const isWorkDay = (date) => {
|
|
200
|
+
var _a, _b;
|
|
201
|
+
const dayOfWeek = date.getUTCDay();
|
|
202
|
+
const month = date.getUTCMonth();
|
|
203
|
+
const day = date.getUTCDate();
|
|
204
|
+
const skipJanuary = (_a = config === null || config === void 0 ? void 0 : config.skipDefaultJanuaryHolidays) !== null && _a !== void 0 ? _a : true;
|
|
205
|
+
if (skipJanuary && month === 0 && day >= 1 && day <= 14) {
|
|
206
|
+
return false;
|
|
207
|
+
}
|
|
208
|
+
if ((_b = config === null || config === void 0 ? void 0 : config.holidays) === null || _b === void 0 ? void 0 : _b.length) {
|
|
209
|
+
const isHoliday = config.holidays.some(holiday => holiday.month === month && holiday.day === day);
|
|
210
|
+
if (isHoliday) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return dayOfWeek !== 0 && dayOfWeek !== 6;
|
|
215
|
+
};
|
|
216
|
+
const getWorkDayStart = (date) => {
|
|
217
|
+
const start = new Date(date);
|
|
218
|
+
start.setUTCHours(exports.WORK_DAY_START_HOUR, 0, 0, 0);
|
|
219
|
+
return start;
|
|
220
|
+
};
|
|
221
|
+
const getWorkDayEnd = (date) => {
|
|
222
|
+
const end = new Date(date);
|
|
223
|
+
end.setUTCHours(exports.WORK_DAY_END_HOUR, exports.WORK_DAY_END_MINUTE, 0, 0);
|
|
224
|
+
return end;
|
|
225
|
+
};
|
|
226
|
+
const moveToPrevWorkDay = (date) => {
|
|
227
|
+
const prevDay = new Date(date);
|
|
228
|
+
do {
|
|
229
|
+
prevDay.setUTCDate(prevDay.getUTCDate() - 1);
|
|
230
|
+
} while (!isWorkDay(prevDay));
|
|
231
|
+
prevDay.setUTCHours(exports.WORK_DAY_END_HOUR, exports.WORK_DAY_END_MINUTE, 0, 0);
|
|
232
|
+
return prevDay;
|
|
233
|
+
};
|
|
234
|
+
if (!isWorkDay(currentDate)) {
|
|
235
|
+
currentDate = moveToPrevWorkDay(currentDate);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
const currentHour = currentDate.getUTCHours();
|
|
239
|
+
const currentMinutes = currentDate.getUTCMinutes();
|
|
240
|
+
const currentTimeInMinutes = currentHour * 60 + currentMinutes;
|
|
241
|
+
const workDayStartInMinutes = exports.WORK_DAY_START_HOUR * 60;
|
|
242
|
+
const workDayEndInMinutes = exports.WORK_DAY_END_HOUR * 60 + exports.WORK_DAY_END_MINUTE;
|
|
243
|
+
if (currentTimeInMinutes > workDayEndInMinutes) {
|
|
244
|
+
currentDate = getWorkDayEnd(currentDate);
|
|
245
|
+
}
|
|
246
|
+
else if (currentTimeInMinutes < workDayStartInMinutes) {
|
|
247
|
+
currentDate = moveToPrevWorkDay(currentDate);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
while (remainingMinutes > 0) {
|
|
251
|
+
const workDayStart = getWorkDayStart(currentDate);
|
|
252
|
+
const availableMinutesToday = Math.min(remainingMinutes, (currentDate.getTime() - workDayStart.getTime()) / (1000 * 60));
|
|
253
|
+
if (availableMinutesToday > 0) {
|
|
254
|
+
currentDate = new Date(currentDate.getTime() - availableMinutesToday * 60 * 1000);
|
|
255
|
+
remainingMinutes -= availableMinutesToday;
|
|
256
|
+
}
|
|
257
|
+
if (remainingMinutes > 0) {
|
|
258
|
+
currentDate = moveToPrevWorkDay(currentDate);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return currentDate;
|
|
262
|
+
};
|
|
263
|
+
exports.calculateStartDate = calculateStartDate;
|
|
189
264
|
/**
|
|
190
265
|
* Функция получает сущность и генерирует из него элемент спецификации
|
|
191
266
|
* @param entity
|
|
@@ -735,26 +810,31 @@ const countChildrensRelative = (data) => {
|
|
|
735
810
|
const characteristicValue = materialConverRate
|
|
736
811
|
? Math.ceil(detalMass / materialConverRate)
|
|
737
812
|
: 0;
|
|
738
|
-
const characteristicQuantity = characteristicValue
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
quantity: characteristicQuantity
|
|
745
|
-
});
|
|
813
|
+
const characteristicQuantity = characteristicValue || 0;
|
|
814
|
+
// всегда добавляем материал, даже если количество = 0, чтобы не терять его в графе
|
|
815
|
+
concatedMaterialLists.push({
|
|
816
|
+
id: relative === null || relative === void 0 ? void 0 : relative.mat_zag,
|
|
817
|
+
quantity: characteristicQuantity
|
|
818
|
+
});
|
|
746
819
|
}
|
|
747
820
|
}
|
|
748
821
|
const materialMap = new Map();
|
|
749
822
|
const materialsArray = concatedMaterialLists.map((listMaterialItem) => {
|
|
750
823
|
const foundedMaterials = materials.find(material => listMaterialItem.id === material.id);
|
|
824
|
+
// если материал не найден, пропускаем
|
|
825
|
+
if (!foundedMaterials) {
|
|
826
|
+
return null;
|
|
827
|
+
}
|
|
828
|
+
// проверяем: это реальный 0 или результат ошибки/расчета
|
|
829
|
+
const isZeroQuantity = listMaterialItem.quantity === 0;
|
|
751
830
|
//конвертируем потребность в ШТ
|
|
752
|
-
const materialConverRate = foundedMaterials
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
831
|
+
const materialConverRate = (0, exports.calculateByMeasurementRate)(foundedMaterials.units_measurement, listMaterialItem.measureId);
|
|
832
|
+
// если количество 0, не пересчитываем, иначе - считаем как раньше
|
|
833
|
+
const specificationConvertedQuantity = isZeroQuantity
|
|
834
|
+
? 0
|
|
835
|
+
: materialConverRate
|
|
836
|
+
? Math.ceil(listMaterialItem.quantity / materialConverRate)
|
|
837
|
+
: 0;
|
|
758
838
|
return Object.assign(Object.assign(Object.assign({}, foundedMaterials), (0, sequelize_1.addFieldByCondition)(data.isNeedsTypes, {
|
|
759
839
|
entity_type: enums_1.IzdType.material
|
|
760
840
|
})), { measure_id: listMaterialItem.measureId, count_to_obj_not_converted: listMaterialItem.quantity, count_to_needs_not_converted: relativeNeeds * listMaterialItem.quantity, count_to_obj: specificationConvertedQuantity, count_to_needs: relativeNeeds * specificationConvertedQuantity, needs: relativeNeeds * specificationConvertedQuantity, parent_id: relative.id, parent_type: relativeType, parent_designation: (relative === null || relative === void 0 ? void 0 : relative.designation) || '-', parent_name: (relative === null || relative === void 0 ? void 0 : relative.name) || '-' });
|
|
@@ -6,7 +6,9 @@ export declare const CreateWaybillProductSchema: z.ZodObject<{
|
|
|
6
6
|
quantity: z.ZodNumber;
|
|
7
7
|
entityType: z.ZodNativeEnum<typeof PositionItemType>;
|
|
8
8
|
workerType: z.ZodNativeEnum<typeof WaybilTypeComingEnums>;
|
|
9
|
-
sum: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
sum: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
10
|
+
deliveryId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
11
|
+
deliveryPositionIndex: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
10
12
|
productId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
11
13
|
toolsId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
12
14
|
cbedId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
@@ -36,6 +38,8 @@ export declare const CreateWaybillProductSchema: z.ZodObject<{
|
|
|
36
38
|
cbedId?: number | null | undefined;
|
|
37
39
|
productId?: number | null | undefined;
|
|
38
40
|
assembleId?: number | null | undefined;
|
|
41
|
+
deliveryId?: number | null | undefined;
|
|
42
|
+
deliveryPositionIndex?: number | null | undefined;
|
|
39
43
|
toolsId?: number | null | undefined;
|
|
40
44
|
inventaryId?: number | null | undefined;
|
|
41
45
|
metalloworkingId?: number | null | undefined;
|
|
@@ -51,11 +55,13 @@ export declare const CreateWaybillProductSchema: z.ZodObject<{
|
|
|
51
55
|
detalId?: number | null | undefined;
|
|
52
56
|
equipmentId?: number | null | undefined;
|
|
53
57
|
materialId?: number | null | undefined;
|
|
54
|
-
sum?:
|
|
58
|
+
sum?: unknown;
|
|
55
59
|
instrumentId?: number | null | undefined;
|
|
56
60
|
cbedId?: number | null | undefined;
|
|
57
61
|
productId?: number | null | undefined;
|
|
58
62
|
assembleId?: number | null | undefined;
|
|
63
|
+
deliveryId?: number | null | undefined;
|
|
64
|
+
deliveryPositionIndex?: number | null | undefined;
|
|
59
65
|
toolsId?: number | null | undefined;
|
|
60
66
|
inventaryId?: number | null | undefined;
|
|
61
67
|
metalloworkingId?: number | null | undefined;
|