@pksep/zod-shared 0.0.527 → 0.0.528
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/dto/actions-by-param.dto.d.ts +2 -2
- package/dist/action/schemas/actions.schema.d.ts +23 -18
- package/dist/action/schemas/actions.schema.js +2 -1
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +81 -90
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +68 -75
- package/dist/assemble/schemas/assemble.schema.d.ts +62 -69
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +13 -13
- package/dist/buyer/schemas/buyer.schema.d.ts +1 -1
- package/dist/cbed/dto/cbed-pagination.dto.d.ts +1 -1
- package/dist/cbed/dto/get-one-cbed-dto.d.ts +2 -2
- package/dist/cbed/dto/up-create-cbed.dto.d.ts +6 -6
- package/dist/cbed/schemas/cbed-material.schema.d.ts +2 -2
- package/dist/cbed/schemas/cbed.schema.d.ts +21 -21
- package/dist/company/dto/create-company.dto.d.ts +10 -10
- package/dist/company/dto/update-company.dto.d.ts +10 -10
- package/dist/company/schemas/companies.schema.d.ts +4 -4
- package/dist/contact/dto/create-contact.dto.d.ts +6 -6
- package/dist/contact/dto/update-contact.dto.d.ts +6 -6
- package/dist/contact/schemas/contact.schema.d.ts +3 -3
- package/dist/deliveries/dto/create-deliveries.dto.d.ts +3 -3
- package/dist/deliveries/schemas/deliveries-inventary.schema.d.ts +2 -2
- package/dist/deliveries/schemas/deliveries.schema.d.ts +4 -4
- package/dist/detal/dto/detal-pagination.dto.d.ts +2 -2
- package/dist/detal/dto/get-one-detal-dto.d.ts +1 -1
- package/dist/detal/dto/update-detal.dto.d.ts +9 -9
- package/dist/detal/schemas/detal-deficit.schema.d.ts +203 -203
- package/dist/detal/schemas/detal.schema.d.ts +200 -200
- package/dist/document/schemas/documentsSchema.d.ts +4 -4
- package/dist/equipment/dto/create-equipment.dto.d.ts +1 -1
- package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
- package/dist/equipment/schemas/equipment.schema.d.ts +98 -98
- package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
- package/dist/expenditure/schema/expenditure.schema.d.ts +2 -2
- package/dist/instrument/dto/create-name-instrument.dto.d.ts +1 -1
- package/dist/instrument/dto/update-name-instrument.dto.d.ts +2 -2
- package/dist/inventary/dto/create-inventary.dto.d.ts +1 -1
- package/dist/marks/dto/change-mark-quantity.dto.d.ts +16 -16
- package/dist/marks/dto/create-mark.dto.d.ts +8 -8
- package/dist/marks/dto/update-mark.dto.d.ts +2 -2
- package/dist/marks/schemas/marks.schema.d.ts +8 -8
- package/dist/marks/type/type.d.ts +2 -2
- package/dist/material/dto/create-material.dto.d.ts +20 -20
- package/dist/material/schemas/material-characteristics.schema.d.ts +6 -6
- package/dist/material/schemas/material.schema.d.ts +26 -26
- package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +4 -4
- package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
- package/dist/movement-error/schemas/movement-error.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +462 -462
- package/dist/operations/dto/create-type-operation.dto.d.ts +0 -4
- package/dist/operations/dto/create-type-operation.dto.js +1 -5
- package/dist/operations/dto/update-type-operation.dto.d.ts +0 -4
- package/dist/operations/dto/update-type-operation.dto.js +1 -5
- package/dist/operations/index.d.ts +0 -2
- package/dist/operations/index.js +0 -2
- package/dist/operations/interfaces/interface.d.ts +0 -5
- package/dist/operations/schemas/operation.schema.d.ts +17 -21
- package/dist/operations/schemas/operation.schema.js +0 -4
- package/dist/operations/schemas/type-operation.schema.d.ts +0 -4
- package/dist/operations/schemas/type-operation.schema.js +0 -2
- package/dist/product/dto/up-create-product.dto.d.ts +7 -7
- package/dist/product/schemas/product-deficit.schema.d.ts +20 -20
- package/dist/product/schemas/product-material.schema.d.ts +2 -2
- package/dist/product/schemas/product-specification.schema.d.ts +2 -2
- package/dist/product/schemas/product.schema.d.ts +17 -17
- package/dist/production-tasks/dto/create-operation-pos.dto.d.ts +2 -2
- package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +2 -2
- package/dist/production-tasks/interfaces/production-tasks.d.ts +0 -1
- package/dist/production-tasks/schemas/operation-positions.schema.d.ts +4 -4
- package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +4 -4
- package/dist/provider/dto/create-provider.dto.d.ts +4 -4
- package/dist/provider/schemas/provider.schema.d.ts +1 -1
- package/dist/role/schemas/role.schema.d.ts +451 -451
- package/dist/sclad/schemas/remain.schema.d.ts +2 -2
- package/dist/sclad/schemas/remains.schema.d.ts +6 -6
- package/dist/shipments/dto/get-attributes.dto.d.ts +2 -2
- package/dist/shipments/dto/shipments-list-pagination.dto.d.ts +1 -1
- package/dist/shipments/dto/shipments-paginate.dto.d.ts +2 -2
- package/dist/shipments/schemas/sh-complit.schema.d.ts +2 -2
- package/dist/shipments/schemas/shipments.schema.d.ts +2 -2
- package/dist/specification/dto/specification-attributes.dto.d.ts +1 -1
- package/dist/specification/schema/attributes.schema.d.ts +482 -482
- package/dist/stock-order/schemas/stock-order-item.schema.d.ts +2 -2
- package/dist/tech-process/schemas/tech-process.schema.d.ts +26 -31
- package/dist/thread/dto/add-thread.dto.d.ts +8 -8
- package/dist/user/dto/create-user.dto.d.ts +5 -5
- package/dist/user/dto/get-one-user.dto.d.ts +2 -2
- package/dist/user/schemas/user.schema.d.ts +264 -264
- package/dist/waybill/schemas/waybill-product.schema.d.ts +8 -8
- package/dist/waybill/schemas/waybill.schema.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
3
2
|
export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
4
3
|
name: z.ZodString;
|
|
5
4
|
preTime: z.ZodBoolean;
|
|
@@ -15,7 +14,6 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
15
14
|
sclad: z.ZodBoolean;
|
|
16
15
|
preTimeMinute: z.ZodNumber;
|
|
17
16
|
helperTimeMinute: z.ZodNumber;
|
|
18
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
19
17
|
}, "strip", z.ZodTypeAny, {
|
|
20
18
|
metaloworking: boolean;
|
|
21
19
|
name: string;
|
|
@@ -25,7 +23,6 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
25
23
|
cpu: boolean;
|
|
26
24
|
square: boolean;
|
|
27
25
|
list: boolean;
|
|
28
|
-
workStartCalcType: WorkStartCalcType;
|
|
29
26
|
equipmentIds: number[] | null;
|
|
30
27
|
assembly: boolean;
|
|
31
28
|
sclad: boolean;
|
|
@@ -46,7 +43,6 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
46
43
|
preTimeMinute: number;
|
|
47
44
|
helperTimeMinute: number;
|
|
48
45
|
users?: number[] | null | undefined;
|
|
49
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
50
46
|
equipmentIds?: number[] | null | undefined;
|
|
51
47
|
}>;
|
|
52
48
|
export type CreateTypeOperationDto = z.infer<typeof CreateTypeOperationSchema>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateTypeOperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("../enums/enums");
|
|
6
5
|
exports.CreateTypeOperationSchema = zod_1.z.object({
|
|
7
6
|
name: zod_1.z.string(),
|
|
8
7
|
preTime: zod_1.z.boolean(),
|
|
@@ -17,8 +16,5 @@ exports.CreateTypeOperationSchema = zod_1.z.object({
|
|
|
17
16
|
assembly: zod_1.z.boolean(),
|
|
18
17
|
sclad: zod_1.z.boolean(),
|
|
19
18
|
preTimeMinute: zod_1.z.number(),
|
|
20
|
-
helperTimeMinute: zod_1.z.number()
|
|
21
|
-
workStartCalcType: zod_1.z
|
|
22
|
-
.nativeEnum(enums_1.WorkStartCalcType)
|
|
23
|
-
.default(enums_1.WorkStartCalcType.automatic)
|
|
19
|
+
helperTimeMinute: zod_1.z.number()
|
|
24
20
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
3
2
|
export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
4
3
|
id: z.ZodNumber;
|
|
5
4
|
name: z.ZodString;
|
|
@@ -16,7 +15,6 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
16
15
|
sclad: z.ZodBoolean;
|
|
17
16
|
preTimeMinute: z.ZodNumber;
|
|
18
17
|
helperTimeMinute: z.ZodNumber;
|
|
19
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
20
18
|
}, "strip", z.ZodTypeAny, {
|
|
21
19
|
metaloworking: boolean;
|
|
22
20
|
id: number;
|
|
@@ -27,7 +25,6 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
27
25
|
cpu: boolean;
|
|
28
26
|
square: boolean;
|
|
29
27
|
list: boolean;
|
|
30
|
-
workStartCalcType: WorkStartCalcType;
|
|
31
28
|
equipmentIds: number[] | null;
|
|
32
29
|
assembly: boolean;
|
|
33
30
|
sclad: boolean;
|
|
@@ -49,7 +46,6 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
49
46
|
preTimeMinute: number;
|
|
50
47
|
helperTimeMinute: number;
|
|
51
48
|
users?: any;
|
|
52
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
53
49
|
equipmentIds?: number[] | null | undefined;
|
|
54
50
|
}>;
|
|
55
51
|
export type UpdateTypeOperationDto = z.infer<typeof UpdateTypeOperationSchema>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateTypeOperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("../enums/enums");
|
|
6
5
|
exports.UpdateTypeOperationSchema = zod_1.z.object({
|
|
7
6
|
id: zod_1.z.number().int(),
|
|
8
7
|
name: zod_1.z.string(),
|
|
@@ -18,8 +17,5 @@ exports.UpdateTypeOperationSchema = zod_1.z.object({
|
|
|
18
17
|
assembly: zod_1.z.boolean(),
|
|
19
18
|
sclad: zod_1.z.boolean(),
|
|
20
19
|
preTimeMinute: zod_1.z.number(),
|
|
21
|
-
helperTimeMinute: zod_1.z.number()
|
|
22
|
-
workStartCalcType: zod_1.z
|
|
23
|
-
.nativeEnum(enums_1.WorkStartCalcType)
|
|
24
|
-
.default(enums_1.WorkStartCalcType.automatic)
|
|
20
|
+
helperTimeMinute: zod_1.z.number()
|
|
25
21
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './dto/get-type-operation-by-id.dto';
|
|
2
1
|
export * from './dto/create-type-operation.dto';
|
|
3
2
|
export * from './dto/up-create-tech-process.dto';
|
|
4
3
|
export * from './dto/update-create-operation.dto';
|
|
@@ -12,4 +11,3 @@ export * from './schemas/type_oper_user.schema';
|
|
|
12
11
|
export * from './interfaces/interface';
|
|
13
12
|
export * from './dto/check-name-unique.dto';
|
|
14
13
|
export * from './schemas/type-oper-equipment.schema';
|
|
15
|
-
export * from './enums/enums';
|
package/dist/operations/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./dto/get-type-operation-by-id.dto"), exports);
|
|
18
17
|
__exportStar(require("./dto/create-type-operation.dto"), exports);
|
|
19
18
|
__exportStar(require("./dto/up-create-tech-process.dto"), exports);
|
|
20
19
|
__exportStar(require("./dto/update-create-operation.dto"), exports);
|
|
@@ -28,4 +27,3 @@ __exportStar(require("./schemas/type_oper_user.schema"), exports);
|
|
|
28
27
|
__exportStar(require("./interfaces/interface"), exports);
|
|
29
28
|
__exportStar(require("./dto/check-name-unique.dto"), exports);
|
|
30
29
|
__exportStar(require("./schemas/type-oper-equipment.schema"), exports);
|
|
31
|
-
__exportStar(require("./enums/enums"), exports);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
3
2
|
export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
4
3
|
id: z.ZodOptional<z.ZodNumber>;
|
|
5
4
|
name: z.ZodString;
|
|
@@ -9,7 +8,6 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
|
9
8
|
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
10
9
|
square: z.ZodDefault<z.ZodBoolean>;
|
|
11
10
|
list: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
13
11
|
} & {
|
|
14
12
|
countWorking: z.ZodNumber;
|
|
15
13
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -20,7 +18,6 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
|
20
18
|
cpu: boolean;
|
|
21
19
|
square: boolean;
|
|
22
20
|
list: boolean;
|
|
23
|
-
workStartCalcType: WorkStartCalcType;
|
|
24
21
|
countWorking: number;
|
|
25
22
|
id?: number | undefined;
|
|
26
23
|
}, {
|
|
@@ -33,7 +30,6 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
|
|
|
33
30
|
cpu?: boolean | undefined;
|
|
34
31
|
square?: boolean | undefined;
|
|
35
32
|
list?: boolean | undefined;
|
|
36
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
37
33
|
}>;
|
|
38
34
|
export type ITypeOperationInWork = z.infer<typeof ITypeOperationInWorkSchema>;
|
|
39
35
|
export declare const IOperationExecutionTimeSchema: z.ZodObject<{
|
|
@@ -58,5 +54,4 @@ export interface ITypeOperationCreationAttrs {
|
|
|
58
54
|
preTime: boolean;
|
|
59
55
|
helperTime: boolean;
|
|
60
56
|
mainTime: boolean;
|
|
61
|
-
workStartCalcType?: WorkStartCalcType;
|
|
62
57
|
}
|
|
@@ -4,7 +4,6 @@ import { ModelDocuments } from '../../document';
|
|
|
4
4
|
import { ModelEquipment } from '../../equipment';
|
|
5
5
|
import { ModelNameInstrument } from '../../instrument';
|
|
6
6
|
import { ModelTechProcess } from '../../tech-process';
|
|
7
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
8
7
|
export declare const OperationSchema: z.ZodObject<{
|
|
9
8
|
id: z.ZodOptional<z.ZodNumber>;
|
|
10
9
|
idx: z.ZodDefault<z.ZodNumber>;
|
|
@@ -24,7 +23,6 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
24
23
|
instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
25
24
|
eqList: z.ZodDefault<z.ZodString>;
|
|
26
25
|
eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
28
26
|
tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
29
27
|
tech_process_id: z.ZodNumber;
|
|
30
28
|
marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -60,15 +58,15 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
60
58
|
status: import("../../marks").MarkStatusEnums;
|
|
61
59
|
ban: boolean;
|
|
62
60
|
id: number;
|
|
63
|
-
assemble_id: number;
|
|
64
|
-
user_id: number;
|
|
65
|
-
metaloworking_id: number;
|
|
66
|
-
production_task_id: number | null;
|
|
67
61
|
date_build: string;
|
|
68
62
|
kol: number;
|
|
63
|
+
user_id: number;
|
|
69
64
|
oper_id: number;
|
|
65
|
+
assemble_id: number;
|
|
66
|
+
metaloworking_id: number;
|
|
70
67
|
brak: boolean;
|
|
71
68
|
execution_time: number;
|
|
69
|
+
production_task_id: number | null;
|
|
72
70
|
quantity_shipped: number;
|
|
73
71
|
description?: string | undefined;
|
|
74
72
|
assemble_kit_id?: number | null | undefined;
|
|
@@ -81,15 +79,15 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
81
79
|
status: import("../../marks").MarkStatusEnums;
|
|
82
80
|
ban: boolean;
|
|
83
81
|
id: number;
|
|
84
|
-
assemble_id: number;
|
|
85
|
-
user_id: number;
|
|
86
|
-
metaloworking_id: number;
|
|
87
|
-
production_task_id: number | null;
|
|
88
82
|
date_build: string;
|
|
89
83
|
kol: number;
|
|
84
|
+
user_id: number;
|
|
90
85
|
oper_id: number;
|
|
86
|
+
assemble_id: number;
|
|
87
|
+
metaloworking_id: number;
|
|
91
88
|
brak: boolean;
|
|
92
89
|
execution_time: number;
|
|
90
|
+
production_task_id: number | null;
|
|
93
91
|
quantity_shipped: number;
|
|
94
92
|
description?: string | undefined;
|
|
95
93
|
assemble_kit_id?: number | null | undefined;
|
|
@@ -107,8 +105,6 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
107
105
|
preTime: number;
|
|
108
106
|
helperTime: number;
|
|
109
107
|
mainTime: number;
|
|
110
|
-
workStartCalcType: WorkStartCalcType;
|
|
111
|
-
tech_process_id: number;
|
|
112
108
|
generalCountTime: string;
|
|
113
109
|
instrumentList: string;
|
|
114
110
|
instrumentMerList: string;
|
|
@@ -120,20 +116,21 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
120
116
|
eqID: number | null;
|
|
121
117
|
idx: number;
|
|
122
118
|
tOperationId: number | null;
|
|
119
|
+
tech_process_id: number;
|
|
123
120
|
id?: number | undefined;
|
|
124
121
|
marks?: {
|
|
125
122
|
status: import("../../marks").MarkStatusEnums;
|
|
126
123
|
ban: boolean;
|
|
127
124
|
id: number;
|
|
128
|
-
assemble_id: number;
|
|
129
|
-
user_id: number;
|
|
130
|
-
metaloworking_id: number;
|
|
131
|
-
production_task_id: number | null;
|
|
132
125
|
date_build: string;
|
|
133
126
|
kol: number;
|
|
127
|
+
user_id: number;
|
|
134
128
|
oper_id: number;
|
|
129
|
+
assemble_id: number;
|
|
130
|
+
metaloworking_id: number;
|
|
135
131
|
brak: boolean;
|
|
136
132
|
execution_time: number;
|
|
133
|
+
production_task_id: number | null;
|
|
137
134
|
quantity_shipped: number;
|
|
138
135
|
description?: string | undefined;
|
|
139
136
|
assemble_kit_id?: number | null | undefined;
|
|
@@ -154,15 +151,15 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
154
151
|
status: import("../../marks").MarkStatusEnums;
|
|
155
152
|
ban: boolean;
|
|
156
153
|
id: number;
|
|
157
|
-
assemble_id: number;
|
|
158
|
-
user_id: number;
|
|
159
|
-
metaloworking_id: number;
|
|
160
|
-
production_task_id: number | null;
|
|
161
154
|
date_build: string;
|
|
162
155
|
kol: number;
|
|
156
|
+
user_id: number;
|
|
163
157
|
oper_id: number;
|
|
158
|
+
assemble_id: number;
|
|
159
|
+
metaloworking_id: number;
|
|
164
160
|
brak: boolean;
|
|
165
161
|
execution_time: number;
|
|
162
|
+
production_task_id: number | null;
|
|
166
163
|
quantity_shipped: number;
|
|
167
164
|
description?: string | undefined;
|
|
168
165
|
assemble_kit_id?: number | null | undefined;
|
|
@@ -175,7 +172,6 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
175
172
|
preTime?: number | undefined;
|
|
176
173
|
helperTime?: number | undefined;
|
|
177
174
|
mainTime?: number | undefined;
|
|
178
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
179
175
|
generalCountTime?: string | undefined;
|
|
180
176
|
instrumentList?: string | undefined;
|
|
181
177
|
instrumentMerList?: string | undefined;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const marks_1 = require("../../marks");
|
|
6
|
-
const enums_1 = require("../enums/enums");
|
|
7
6
|
exports.OperationSchema = zod_1.z.object({
|
|
8
7
|
id: zod_1.z.number().int().optional(),
|
|
9
8
|
idx: zod_1.z.number().int().default(0),
|
|
@@ -23,9 +22,6 @@ exports.OperationSchema = zod_1.z.object({
|
|
|
23
22
|
instrumentOsnID: zod_1.z.number().int().nullable().default(null),
|
|
24
23
|
eqList: zod_1.z.string().default(''),
|
|
25
24
|
eqID: zod_1.z.number().int().nullable().default(null),
|
|
26
|
-
workStartCalcType: zod_1.z
|
|
27
|
-
.nativeEnum(enums_1.WorkStartCalcType)
|
|
28
|
-
.default(enums_1.WorkStartCalcType.automatic),
|
|
29
25
|
tOperationId: zod_1.z.number().int().nullable().default(null),
|
|
30
26
|
tech_process_id: zod_1.z.number().int(),
|
|
31
27
|
marks: zod_1.z.array(marks_1.marksSchema).optional()
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ModelUser } from '../../user';
|
|
3
|
-
import { WorkStartCalcType } from '../enums/enums';
|
|
4
3
|
export declare const TypeOperationSchema: z.ZodObject<{
|
|
5
4
|
id: z.ZodOptional<z.ZodNumber>;
|
|
6
5
|
name: z.ZodString;
|
|
@@ -10,7 +9,6 @@ export declare const TypeOperationSchema: z.ZodObject<{
|
|
|
10
9
|
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
11
10
|
square: z.ZodDefault<z.ZodBoolean>;
|
|
12
11
|
list: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
14
12
|
countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
15
13
|
}, "strip", z.ZodTypeAny, {
|
|
16
14
|
name: string;
|
|
@@ -20,7 +18,6 @@ export declare const TypeOperationSchema: z.ZodObject<{
|
|
|
20
18
|
cpu: boolean;
|
|
21
19
|
square: boolean;
|
|
22
20
|
list: boolean;
|
|
23
|
-
workStartCalcType: WorkStartCalcType;
|
|
24
21
|
id?: number | undefined;
|
|
25
22
|
countWorking?: number | undefined;
|
|
26
23
|
}, {
|
|
@@ -32,7 +29,6 @@ export declare const TypeOperationSchema: z.ZodObject<{
|
|
|
32
29
|
cpu?: boolean | undefined;
|
|
33
30
|
square?: boolean | undefined;
|
|
34
31
|
list?: boolean | undefined;
|
|
35
|
-
workStartCalcType?: WorkStartCalcType | undefined;
|
|
36
32
|
countWorking?: number | undefined;
|
|
37
33
|
}>;
|
|
38
34
|
export type ModelTypeOperation = z.infer<typeof TypeOperationSchema> & {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TypeOperationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("../enums/enums");
|
|
6
5
|
exports.TypeOperationSchema = zod_1.z.object({
|
|
7
6
|
id: zod_1.z.number().int().optional(),
|
|
8
7
|
name: zod_1.z.string(),
|
|
@@ -12,6 +11,5 @@ exports.TypeOperationSchema = zod_1.z.object({
|
|
|
12
11
|
cpu: zod_1.z.boolean().default(false),
|
|
13
12
|
square: zod_1.z.boolean().default(false),
|
|
14
13
|
list: zod_1.z.boolean().default(false),
|
|
15
|
-
workStartCalcType: zod_1.z.nativeEnum(enums_1.WorkStartCalcType).default(enums_1.WorkStartCalcType.automatic),
|
|
16
14
|
countWorking: zod_1.z.number().default(0).optional()
|
|
17
15
|
});
|
|
@@ -24,9 +24,9 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
|
|
|
24
24
|
designation: string;
|
|
25
25
|
description: string;
|
|
26
26
|
name: string;
|
|
27
|
+
materialList: EntityCommonSpecificationArray;
|
|
27
28
|
parametrs: productParametrsField;
|
|
28
29
|
characteristic: productCharacteristicField;
|
|
29
|
-
materialList: EntityCommonSpecificationArray;
|
|
30
30
|
listPokDet: EntityCommonSpecificationArray;
|
|
31
31
|
listCbed: EntityCommonSpecificationArray;
|
|
32
32
|
listDetal: EntityCommonSpecificationArray;
|
|
@@ -34,11 +34,11 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
|
|
|
34
34
|
responsible: string;
|
|
35
35
|
techProcessID: string;
|
|
36
36
|
id?: number | null | undefined;
|
|
37
|
+
docs?: any;
|
|
37
38
|
attention?: boolean | undefined;
|
|
39
|
+
fileBase?: any;
|
|
38
40
|
discontinued?: boolean | undefined;
|
|
39
41
|
is_custom?: string | undefined;
|
|
40
|
-
docs?: any;
|
|
41
|
-
fileBase?: any;
|
|
42
42
|
}, {
|
|
43
43
|
designation: string;
|
|
44
44
|
description: string;
|
|
@@ -47,16 +47,16 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
|
|
|
47
47
|
responsible: string;
|
|
48
48
|
techProcessID: string;
|
|
49
49
|
id?: unknown;
|
|
50
|
+
docs?: any;
|
|
51
|
+
attention?: unknown;
|
|
52
|
+
materialList?: unknown;
|
|
53
|
+
fileBase?: any;
|
|
50
54
|
parametrs?: unknown;
|
|
51
55
|
characteristic?: unknown;
|
|
52
|
-
materialList?: unknown;
|
|
53
56
|
listPokDet?: unknown;
|
|
54
57
|
listCbed?: unknown;
|
|
55
58
|
listDetal?: unknown;
|
|
56
|
-
attention?: unknown;
|
|
57
59
|
discontinued?: unknown;
|
|
58
60
|
is_custom?: string | undefined;
|
|
59
|
-
docs?: any;
|
|
60
|
-
fileBase?: any;
|
|
61
61
|
}>;
|
|
62
62
|
export type UpCreateProductDtoZodType = z.infer<typeof UpCreateProductDtoZod>;
|
|
@@ -70,10 +70,10 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
70
70
|
ban?: boolean | undefined;
|
|
71
71
|
description?: string | null | undefined;
|
|
72
72
|
contacts?: string | null | undefined;
|
|
73
|
-
attention?: boolean | undefined;
|
|
74
73
|
inn?: string | null | undefined;
|
|
75
74
|
cpp?: string | null | undefined;
|
|
76
75
|
rekvisit?: string | null | undefined;
|
|
76
|
+
attention?: boolean | undefined;
|
|
77
77
|
purchasesId?: number | undefined;
|
|
78
78
|
}>>;
|
|
79
79
|
status: z.ZodDefault<z.ZodString>;
|
|
@@ -130,10 +130,10 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
130
130
|
ban?: boolean | undefined;
|
|
131
131
|
description?: string | null | undefined;
|
|
132
132
|
contacts?: string | null | undefined;
|
|
133
|
-
attention?: boolean | undefined;
|
|
134
133
|
inn?: string | null | undefined;
|
|
135
134
|
cpp?: string | null | undefined;
|
|
136
135
|
rekvisit?: string | null | undefined;
|
|
136
|
+
attention?: boolean | undefined;
|
|
137
137
|
purchasesId?: number | undefined;
|
|
138
138
|
} | undefined;
|
|
139
139
|
company_id?: number | undefined;
|
|
@@ -178,30 +178,30 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
178
178
|
designation: string | null;
|
|
179
179
|
description: string | null;
|
|
180
180
|
name: string;
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
attention: boolean;
|
|
182
|
+
materialList: import("../..").EntityCommonSpecificationArray;
|
|
183
183
|
quantity: number;
|
|
184
|
-
deficit: number;
|
|
185
184
|
shipments_kolvo: number;
|
|
186
|
-
|
|
185
|
+
min_remaining: number;
|
|
186
|
+
responsibleId: number | null;
|
|
187
|
+
calculate_needs_time: Date | null;
|
|
188
|
+
deficit: number;
|
|
187
189
|
shipments_deficit: number;
|
|
190
|
+
production_ordered: number;
|
|
188
191
|
ava_path: string | null;
|
|
189
192
|
parametrs: import("../..").CbedVariableField[];
|
|
190
193
|
characteristic: import("../..").CbedVariableField[];
|
|
191
|
-
|
|
194
|
+
in_kit: number;
|
|
192
195
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
193
196
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
194
197
|
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
195
|
-
attention: boolean;
|
|
196
|
-
in_kit: number;
|
|
197
|
-
responsibleId: number | null;
|
|
198
198
|
articl: string | null;
|
|
199
199
|
is_custom: boolean;
|
|
200
200
|
myQuantity: number;
|
|
201
201
|
id?: number | null | undefined;
|
|
202
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
202
203
|
discontinued?: boolean | undefined;
|
|
203
204
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
204
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
205
205
|
}, {
|
|
206
206
|
shipment: {
|
|
207
207
|
description: string;
|
|
@@ -223,10 +223,10 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
223
223
|
ban?: boolean | undefined;
|
|
224
224
|
description?: string | null | undefined;
|
|
225
225
|
contacts?: string | null | undefined;
|
|
226
|
-
attention?: boolean | undefined;
|
|
227
226
|
inn?: string | null | undefined;
|
|
228
227
|
cpp?: string | null | undefined;
|
|
229
228
|
rekvisit?: string | null | undefined;
|
|
229
|
+
attention?: boolean | undefined;
|
|
230
230
|
purchasesId?: number | undefined;
|
|
231
231
|
} | undefined;
|
|
232
232
|
company_id?: number | undefined;
|
|
@@ -237,30 +237,30 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
237
237
|
designation: string | null;
|
|
238
238
|
description: string | null;
|
|
239
239
|
name: string;
|
|
240
|
-
ava_path: string | null;
|
|
241
240
|
materialList: import("../..").EntityCommonSpecificationArray;
|
|
241
|
+
responsibleId: number | null;
|
|
242
|
+
ava_path: string | null;
|
|
242
243
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
243
244
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
244
245
|
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
245
|
-
responsibleId: number | null;
|
|
246
246
|
articl: string | null;
|
|
247
247
|
myQuantity: number;
|
|
248
248
|
ban?: boolean | undefined;
|
|
249
249
|
id?: number | null | undefined;
|
|
250
|
-
|
|
251
|
-
min_remaining?: number | undefined;
|
|
250
|
+
attention?: boolean | undefined;
|
|
252
251
|
quantity?: number | undefined;
|
|
253
|
-
deficit?: number | undefined;
|
|
254
252
|
shipments_kolvo?: number | undefined;
|
|
255
|
-
|
|
253
|
+
min_remaining?: number | undefined;
|
|
254
|
+
calculate_needs_time?: Date | null | undefined;
|
|
255
|
+
deficit?: number | undefined;
|
|
256
256
|
shipments_deficit?: number | undefined;
|
|
257
|
+
production_ordered?: number | undefined;
|
|
258
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
257
259
|
parametrs?: import("../..").CbedVariableField[] | undefined;
|
|
258
260
|
characteristic?: import("../..").CbedVariableField[] | undefined;
|
|
259
|
-
attention?: boolean | undefined;
|
|
260
261
|
in_kit?: number | undefined;
|
|
261
262
|
discontinued?: boolean | undefined;
|
|
262
263
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
263
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
264
264
|
is_custom?: boolean | undefined;
|
|
265
265
|
}>;
|
|
266
266
|
export type ModelProductDeficit = z.infer<typeof ProductDeficitSchema>;
|
|
@@ -4,12 +4,12 @@ declare const ProductMaterialSchema: z.ZodObject<{
|
|
|
4
4
|
product_id: z.ZodNumber;
|
|
5
5
|
materialId: z.ZodNumber;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
product_id: number;
|
|
8
7
|
materialId: number;
|
|
8
|
+
product_id: number;
|
|
9
9
|
id?: number | null | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
product_id: number;
|
|
12
11
|
materialId: number;
|
|
12
|
+
product_id: number;
|
|
13
13
|
id?: number | null | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type ModelProductMaterial = z.infer<typeof ProductMaterialSchema>;
|
|
@@ -6,14 +6,14 @@ export declare const ProductSpecificationSchema: z.ZodObject<{
|
|
|
6
6
|
detals: z.ZodType<IProductSpecification[], z.ZodTypeDef, IProductSpecification[]>;
|
|
7
7
|
materials: z.ZodType<IProductSpecification[], z.ZodTypeDef, IProductSpecification[]>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
cbeds: IProductSpecification[];
|
|
10
9
|
productId: number;
|
|
11
10
|
materials: IProductSpecification[];
|
|
11
|
+
cbeds: IProductSpecification[];
|
|
12
12
|
detals: IProductSpecification[];
|
|
13
13
|
}, {
|
|
14
|
-
cbeds: IProductSpecification[];
|
|
15
14
|
productId: number;
|
|
16
15
|
materials: IProductSpecification[];
|
|
16
|
+
cbeds: IProductSpecification[];
|
|
17
17
|
detals: IProductSpecification[];
|
|
18
18
|
}>;
|
|
19
19
|
export type ModelProductSpecification = z.infer<typeof ProductSpecificationSchema>;
|
|
@@ -44,56 +44,56 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
44
44
|
designation: string | null;
|
|
45
45
|
description: string | null;
|
|
46
46
|
name: string;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
attention: boolean;
|
|
48
|
+
materialList: EntityCommonSpecificationArray;
|
|
49
49
|
quantity: number;
|
|
50
|
-
deficit: number;
|
|
51
50
|
shipments_kolvo: number;
|
|
52
|
-
|
|
51
|
+
min_remaining: number;
|
|
52
|
+
responsibleId: number | null;
|
|
53
|
+
calculate_needs_time: Date | null;
|
|
54
|
+
deficit: number;
|
|
53
55
|
shipments_deficit: number;
|
|
56
|
+
production_ordered: number;
|
|
54
57
|
ava_path: string | null;
|
|
55
58
|
parametrs: CbedVariableField[];
|
|
56
59
|
characteristic: CbedVariableField[];
|
|
57
|
-
|
|
60
|
+
in_kit: number;
|
|
58
61
|
listPokDet: EntityCommonSpecificationArray;
|
|
59
62
|
listCbed: EntityCommonSpecificationArray;
|
|
60
63
|
listDetal: EntityCommonSpecificationArray;
|
|
61
|
-
attention: boolean;
|
|
62
|
-
in_kit: number;
|
|
63
|
-
responsibleId: number | null;
|
|
64
64
|
articl: string | null;
|
|
65
65
|
is_custom: boolean;
|
|
66
66
|
id?: number | null | undefined;
|
|
67
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
67
68
|
discontinued?: boolean | undefined;
|
|
68
69
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
69
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
designation: string | null;
|
|
72
72
|
description: string | null;
|
|
73
73
|
name: string;
|
|
74
|
-
ava_path: string | null;
|
|
75
74
|
materialList: EntityCommonSpecificationArray;
|
|
75
|
+
responsibleId: number | null;
|
|
76
|
+
ava_path: string | null;
|
|
76
77
|
listPokDet: EntityCommonSpecificationArray;
|
|
77
78
|
listCbed: EntityCommonSpecificationArray;
|
|
78
79
|
listDetal: EntityCommonSpecificationArray;
|
|
79
|
-
responsibleId: number | null;
|
|
80
80
|
articl: string | null;
|
|
81
81
|
ban?: boolean | undefined;
|
|
82
82
|
id?: number | null | undefined;
|
|
83
|
-
|
|
84
|
-
min_remaining?: number | undefined;
|
|
83
|
+
attention?: boolean | undefined;
|
|
85
84
|
quantity?: number | undefined;
|
|
86
|
-
deficit?: number | undefined;
|
|
87
85
|
shipments_kolvo?: number | undefined;
|
|
88
|
-
|
|
86
|
+
min_remaining?: number | undefined;
|
|
87
|
+
calculate_needs_time?: Date | null | undefined;
|
|
88
|
+
deficit?: number | undefined;
|
|
89
89
|
shipments_deficit?: number | undefined;
|
|
90
|
+
production_ordered?: number | undefined;
|
|
91
|
+
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
90
92
|
parametrs?: CbedVariableField[] | undefined;
|
|
91
93
|
characteristic?: CbedVariableField[] | undefined;
|
|
92
|
-
attention?: boolean | undefined;
|
|
93
94
|
in_kit?: number | undefined;
|
|
94
95
|
discontinued?: boolean | undefined;
|
|
95
96
|
production_time_assemble?: ProductionTimeType | null | undefined;
|
|
96
|
-
production_time_metalloworking?: ProductionTimeType | null | undefined;
|
|
97
97
|
is_custom?: boolean | undefined;
|
|
98
98
|
}>;
|
|
99
99
|
export type ModelProduct = z.infer<typeof ProductSchema> & {
|
|
@@ -23,8 +23,8 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
|
|
|
23
23
|
}>, "many">;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
type: StockOrderType;
|
|
26
|
-
quantity: number;
|
|
27
26
|
production_task_id: number;
|
|
27
|
+
quantity: number;
|
|
28
28
|
idx: number;
|
|
29
29
|
operation_positions: {
|
|
30
30
|
operationId: number;
|
|
@@ -36,8 +36,8 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
|
|
|
36
36
|
metall_id?: number | null | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
type: StockOrderType;
|
|
39
|
-
quantity: number;
|
|
40
39
|
production_task_id: number;
|
|
40
|
+
quantity: number;
|
|
41
41
|
idx: number;
|
|
42
42
|
operation_positions: {
|
|
43
43
|
operationId: number;
|
|
@@ -23,8 +23,8 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
23
23
|
};
|
|
24
24
|
entityType: StockOrderType;
|
|
25
25
|
userId?: number | null | undefined;
|
|
26
|
-
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
27
26
|
equipmentId?: number | null | undefined;
|
|
27
|
+
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
28
28
|
typeOperationId?: number | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
range: {
|
|
@@ -33,8 +33,8 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
33
33
|
};
|
|
34
34
|
entityType: StockOrderType;
|
|
35
35
|
userId?: number | null | undefined;
|
|
36
|
-
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
37
36
|
equipmentId?: number | null | undefined;
|
|
37
|
+
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
38
38
|
typeOperationId?: number | null | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
|