@pksep/zod-shared 0.0.551 → 0.0.552
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/enums/enums.d.ts +0 -10
- package/dist/action/enums/enums.js +0 -10
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +24 -24
- package/dist/assemble/interfaces/interfaces.d.ts +36 -6
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +18 -18
- package/dist/assemble/schemas/assemble.schema.d.ts +18 -18
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +6 -6
- package/dist/buyer/schemas/buyer.schema.d.ts +2 -2
- package/dist/buyer/schemas/purchases.schema.d.ts +2 -2
- package/dist/cbed/schemas/cbed.schema.d.ts +2 -2
- package/dist/company/schemas/companies.schema.d.ts +2 -2
- package/dist/detal/default-values/default-values.d.ts +0 -4
- package/dist/detal/default-values/default-values.js +0 -4
- package/dist/detal/schemas/detal-deficit.schema.d.ts +28 -198
- package/dist/detal/schemas/detal.schema.d.ts +22 -192
- package/dist/document/dto/update-document.dto.d.ts +2 -2
- package/dist/edizm/schemas/edizm.schema.d.ts +2 -2
- package/dist/edizm/schemas/type-edizm.schema.d.ts +6 -6
- package/dist/equipment/dto/udate-equipment-type.dto.d.ts +2 -2
- package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
- package/dist/equipment/schemas/equipment-pt.schema.d.ts +2 -2
- package/dist/equipment/schemas/equipment.schema.d.ts +6 -6
- package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +4 -4
- package/dist/expenditure/schema/expenditure-position.schema.d.ts +2 -2
- package/dist/instrument/dto/update-instrument.dto.d.ts +2 -2
- package/dist/instrument/dto/update-pt.dto.d.ts +2 -2
- package/dist/instrument/schemas/pt-instrument.schema.d.ts +2 -2
- package/dist/inventary/dto/update-inventary.dto.d.ts +2 -2
- package/dist/material/dto/create-material.dto.d.ts +0 -136
- package/dist/material/dto/create-material.dto.js +0 -16
- package/dist/material/dto/up-create-type-material.dto.d.ts +0 -4
- package/dist/material/dto/up-create-type-material.dto.js +1 -6
- package/dist/material/enum/enum.d.ts +0 -10
- package/dist/material/enum/enum.js +1 -12
- package/dist/material/index.d.ts +0 -1
- package/dist/material/index.js +0 -1
- package/dist/material/interfaces/interface.d.ts +0 -5
- package/dist/material/schemas/material-characteristics.schema.d.ts +0 -56
- package/dist/material/schemas/material-characteristics.schema.js +1 -3
- package/dist/material/schemas/material-shipments-response.schema.d.ts +6 -130
- package/dist/material/schemas/material.schema.d.ts +6 -130
- package/dist/material/schemas/subtype-material.schema.d.ts +2 -2
- package/dist/material/schemas/subtype-material.schema.js +1 -1
- package/dist/material/schemas/type-material.schema.d.ts +2 -118
- package/dist/material/schemas/type-material.schema.js +2 -9
- package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +6 -6
- package/dist/operations/dto/get-type-operation-by-id.dto.d.ts +3 -3
- package/dist/operations/dto/update-type-operation.dto.d.ts +2 -2
- package/dist/product/schemas/product-deficit.schema.d.ts +6 -6
- package/dist/production-tasks/index.d.ts +1 -0
- package/dist/production-tasks/index.js +1 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +232 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +64 -0
- package/dist/role/dto/update-role.dto.d.ts +2 -2
- package/dist/role/schemas/role.schema.d.ts +8 -8
- package/dist/sclad/schemas/remain.schema.d.ts +2 -2
- package/dist/sclad/schemas/remains.schema.d.ts +16 -16
- package/dist/settings/dto/update-edizm.dto.d.ts +2 -2
- package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +18 -18
- package/dist/shipments/dto/up-create-shipments.dto.d.ts +4 -4
- package/dist/shipments/schemas/shipment-list-item.schema.d.ts +12 -12
- package/dist/shipments/schemas/shipments.schema.d.ts +4 -4
- package/dist/shipments/types/increment-shipments-kolvo.type.d.ts +12 -12
- package/dist/shipments/types/update-shipments-by-product.type.d.ts +12 -12
- package/dist/specification/schema/attributes.schema.d.ts +46 -432
- package/dist/tech-process/schemas/tech-process.schema.d.ts +2 -2
- package/dist/user/schemas/user.schema.d.ts +4 -4
- package/dist/utils/schemas/schema.d.ts +2 -2
- package/dist/utils/types.d.ts +0 -6
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TypeMaterialSchema = exports.TypeMaterialCharacteristicsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../enum/enum");
|
|
6
5
|
const utils_1 = require("../../utils");
|
|
7
6
|
const TypeMaterialCharacteristicsItemSchema = zod_1.z.object({
|
|
8
7
|
edizmId: zod_1.z.number().int(),
|
|
@@ -16,18 +15,12 @@ exports.TypeMaterialCharacteristicsSchema = zod_1.z.object({
|
|
|
16
15
|
wallThickness: TypeMaterialCharacteristicsItemSchema,
|
|
17
16
|
outsideDiameter: TypeMaterialCharacteristicsItemSchema,
|
|
18
17
|
thickness: TypeMaterialCharacteristicsItemSchema,
|
|
19
|
-
areaCrossSectional: TypeMaterialCharacteristicsItemSchema
|
|
20
|
-
acrossFlats: TypeMaterialCharacteristicsItemSchema,
|
|
21
|
-
massPerMeter: TypeMaterialCharacteristicsItemSchema
|
|
18
|
+
areaCrossSectional: TypeMaterialCharacteristicsItemSchema
|
|
22
19
|
});
|
|
23
20
|
exports.TypeMaterialSchema = zod_1.z.object({
|
|
24
21
|
id: zod_1.z.number().int().positive(),
|
|
25
22
|
ban: zod_1.z.boolean(),
|
|
26
23
|
name: zod_1.z.string(),
|
|
27
24
|
characteristics: exports.TypeMaterialCharacteristicsSchema,
|
|
28
|
-
instance_type: zod_1.z.number().int().min(1).max(3)
|
|
29
|
-
workpieceMassFormulaKey: zod_1.z
|
|
30
|
-
.nativeEnum(enum_1.WorkpieceMassFormulaKey)
|
|
31
|
-
.nullable()
|
|
32
|
-
.optional()
|
|
25
|
+
instance_type: zod_1.z.number().int().min(1).max(3)
|
|
33
26
|
});
|
|
@@ -36,9 +36,9 @@ export declare const MetaloworkingComingSchema: z.ZodObject<{
|
|
|
36
36
|
wokrek_id: number;
|
|
37
37
|
designation?: string | undefined;
|
|
38
38
|
description?: string | undefined;
|
|
39
|
-
name?: string | undefined;
|
|
40
39
|
id?: number | null | undefined;
|
|
41
40
|
number_order?: string | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
42
|
ava_path?: string | undefined;
|
|
43
43
|
detal_id?: number | null | undefined;
|
|
44
44
|
shipment_id?: number | null | undefined;
|
|
@@ -56,9 +56,9 @@ export declare const MetaloworkingComingSchema: z.ZodObject<{
|
|
|
56
56
|
ban?: boolean | undefined;
|
|
57
57
|
designation?: string | undefined;
|
|
58
58
|
description?: string | undefined;
|
|
59
|
-
name?: string | undefined;
|
|
60
59
|
id?: number | null | undefined;
|
|
61
60
|
number_order?: string | undefined;
|
|
61
|
+
name?: string | undefined;
|
|
62
62
|
ava_path?: string | undefined;
|
|
63
63
|
detal_id?: number | null | undefined;
|
|
64
64
|
shipment_id?: number | null | undefined;
|
|
@@ -131,8 +131,8 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
131
131
|
cbed: import("../..").CbedRelativeType[];
|
|
132
132
|
designation: string | null;
|
|
133
133
|
description: string | null;
|
|
134
|
-
name: string;
|
|
135
134
|
id: number;
|
|
135
|
+
name: string;
|
|
136
136
|
calculate_needs_time: Date | null;
|
|
137
137
|
entity_children_need_time: Date | null;
|
|
138
138
|
min_remaining: number;
|
|
@@ -162,8 +162,8 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
162
162
|
}, {
|
|
163
163
|
designation: string | null;
|
|
164
164
|
description: string | null;
|
|
165
|
-
name: string;
|
|
166
165
|
id: number;
|
|
166
|
+
name: string;
|
|
167
167
|
ava_path: string | null;
|
|
168
168
|
parametrs: import("../..").CbedParametrsField | null;
|
|
169
169
|
characteristic: import("../..").CbedCharacteristicField | null;
|
|
@@ -606,8 +606,8 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
606
606
|
cbed: import("../..").CbedRelativeType[];
|
|
607
607
|
designation: string | null;
|
|
608
608
|
description: string | null;
|
|
609
|
-
name: string;
|
|
610
609
|
id: number;
|
|
610
|
+
name: string;
|
|
611
611
|
calculate_needs_time: Date | null;
|
|
612
612
|
entity_children_need_time: Date | null;
|
|
613
613
|
min_remaining: number;
|
|
@@ -800,8 +800,8 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
800
800
|
cbeds: {
|
|
801
801
|
designation: string | null;
|
|
802
802
|
description: string | null;
|
|
803
|
-
name: string;
|
|
804
803
|
id: number;
|
|
804
|
+
name: string;
|
|
805
805
|
ava_path: string | null;
|
|
806
806
|
parametrs: import("../..").CbedParametrsField | null;
|
|
807
807
|
characteristic: import("../..").CbedCharacteristicField | null;
|
|
@@ -1095,8 +1095,8 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1095
1095
|
cbed: import("../..").CbedRelativeType[];
|
|
1096
1096
|
designation: string | null;
|
|
1097
1097
|
description: string | null;
|
|
1098
|
-
name: string;
|
|
1099
1098
|
id: number;
|
|
1099
|
+
name: string;
|
|
1100
1100
|
calculate_needs_time: Date | null;
|
|
1101
1101
|
entity_children_need_time: Date | null;
|
|
1102
1102
|
min_remaining: number;
|
|
@@ -1317,8 +1317,8 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1317
1317
|
cbeds: {
|
|
1318
1318
|
designation: string | null;
|
|
1319
1319
|
description: string | null;
|
|
1320
|
-
name: string;
|
|
1321
1320
|
id: number;
|
|
1321
|
+
name: string;
|
|
1322
1322
|
ava_path: string | null;
|
|
1323
1323
|
parametrs: import("../..").CbedParametrsField | null;
|
|
1324
1324
|
characteristic: import("../..").CbedCharacteristicField | null;
|
|
@@ -2,15 +2,15 @@ import z from 'zod';
|
|
|
2
2
|
import { ModelIncludeForTypeOperation } from '../enums/enums';
|
|
3
3
|
export declare const GetTypeOperationByIdDtoZod: z.ZodObject<{
|
|
4
4
|
id: z.ZodNumber;
|
|
5
|
-
attributes: z.ZodOptional<z.ZodArray<z.ZodEnum<["
|
|
5
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodEnum<["id", "name", "preTime", "helperTime", "mainTime", "cpu", "square", "list", "workStartCalcType", "countWorking"]>, "many">>;
|
|
6
6
|
modelInclude: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ModelIncludeForTypeOperation>, "many">>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
id: number;
|
|
9
|
-
attributes?: ("
|
|
9
|
+
attributes?: ("id" | "name" | "preTime" | "helperTime" | "mainTime" | "cpu" | "square" | "list" | "workStartCalcType" | "countWorking")[] | undefined;
|
|
10
10
|
modelInclude?: ModelIncludeForTypeOperation[] | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
id: number;
|
|
13
|
-
attributes?: ("
|
|
13
|
+
attributes?: ("id" | "name" | "preTime" | "helperTime" | "mainTime" | "cpu" | "square" | "list" | "workStartCalcType" | "countWorking")[] | undefined;
|
|
14
14
|
modelInclude?: ModelIncludeForTypeOperation[] | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export type GetTypeOperationByIdDtoType = z.TypeOf<typeof GetTypeOperationByIdDtoZod>;
|
|
@@ -19,8 +19,8 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
19
19
|
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
metaloworking: boolean;
|
|
22
|
-
name: string;
|
|
23
22
|
id: number;
|
|
23
|
+
name: string;
|
|
24
24
|
preTime: boolean;
|
|
25
25
|
helperTime: boolean;
|
|
26
26
|
mainTime: boolean;
|
|
@@ -36,8 +36,8 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
|
|
|
36
36
|
users?: any;
|
|
37
37
|
}, {
|
|
38
38
|
metaloworking: boolean;
|
|
39
|
-
name: string;
|
|
40
39
|
id: number;
|
|
40
|
+
name: string;
|
|
41
41
|
preTime: boolean;
|
|
42
42
|
helperTime: boolean;
|
|
43
43
|
mainTime: boolean;
|
|
@@ -56,8 +56,8 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
56
56
|
purchasesId: z.ZodOptional<z.ZodNumber>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
ban: boolean;
|
|
59
|
-
name: string;
|
|
60
59
|
id: number;
|
|
60
|
+
name: string;
|
|
61
61
|
attention: boolean;
|
|
62
62
|
description?: string | null | undefined;
|
|
63
63
|
contacts?: string | null | undefined;
|
|
@@ -66,8 +66,8 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
66
66
|
rekvisit?: string | null | undefined;
|
|
67
67
|
purchasesId?: number | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
name: string;
|
|
70
69
|
id: number;
|
|
70
|
+
name: string;
|
|
71
71
|
ban?: boolean | undefined;
|
|
72
72
|
description?: string | null | undefined;
|
|
73
73
|
contacts?: string | null | undefined;
|
|
@@ -99,8 +99,8 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
99
99
|
product?: any;
|
|
100
100
|
buyer?: {
|
|
101
101
|
ban: boolean;
|
|
102
|
-
name: string;
|
|
103
102
|
id: number;
|
|
103
|
+
name: string;
|
|
104
104
|
attention: boolean;
|
|
105
105
|
description?: string | null | undefined;
|
|
106
106
|
contacts?: string | null | undefined;
|
|
@@ -127,8 +127,8 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
127
127
|
ban?: boolean | undefined;
|
|
128
128
|
product?: any;
|
|
129
129
|
buyer?: {
|
|
130
|
-
name: string;
|
|
131
130
|
id: number;
|
|
131
|
+
name: string;
|
|
132
132
|
ban?: boolean | undefined;
|
|
133
133
|
description?: string | null | undefined;
|
|
134
134
|
contacts?: string | null | undefined;
|
|
@@ -166,8 +166,8 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
166
166
|
product?: any;
|
|
167
167
|
buyer?: {
|
|
168
168
|
ban: boolean;
|
|
169
|
-
name: string;
|
|
170
169
|
id: number;
|
|
170
|
+
name: string;
|
|
171
171
|
attention: boolean;
|
|
172
172
|
description?: string | null | undefined;
|
|
173
173
|
contacts?: string | null | undefined;
|
|
@@ -224,8 +224,8 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
224
224
|
ban?: boolean | undefined;
|
|
225
225
|
product?: any;
|
|
226
226
|
buyer?: {
|
|
227
|
-
name: string;
|
|
228
227
|
id: number;
|
|
228
|
+
name: string;
|
|
229
229
|
ban?: boolean | undefined;
|
|
230
230
|
description?: string | null | undefined;
|
|
231
231
|
contacts?: string | null | undefined;
|
|
@@ -25,6 +25,7 @@ export * from './dto/set-start-time.dto';
|
|
|
25
25
|
export * from './dto/workload-by-entity.dto';
|
|
26
26
|
export * from './dto/get-deficits-detal-by-production-task.dto';
|
|
27
27
|
export * from './schemas/production-operation-pos.schema';
|
|
28
|
+
export * from './schemas/orders-summary-by-entity.schema';
|
|
28
29
|
export * from './dto/create-operation-pos.dto';
|
|
29
30
|
export * from './methods/methods';
|
|
30
31
|
export * from './default-data/default-data';
|
|
@@ -41,6 +41,7 @@ __exportStar(require("./dto/set-start-time.dto"), exports);
|
|
|
41
41
|
__exportStar(require("./dto/workload-by-entity.dto"), exports);
|
|
42
42
|
__exportStar(require("./dto/get-deficits-detal-by-production-task.dto"), exports);
|
|
43
43
|
__exportStar(require("./schemas/production-operation-pos.schema"), exports);
|
|
44
|
+
__exportStar(require("./schemas/orders-summary-by-entity.schema"), exports);
|
|
44
45
|
__exportStar(require("./dto/create-operation-pos.dto"), exports);
|
|
45
46
|
__exportStar(require("./methods/methods"), exports);
|
|
46
47
|
__exportStar(require("./default-data/default-data"), exports);
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OrdersSummaryProductionTaskZod: z.ZodObject<{
|
|
3
|
+
productionTaskId: z.ZodNumber;
|
|
4
|
+
quantity: z.ZodNumber;
|
|
5
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
6
|
+
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
quantity: number;
|
|
9
|
+
productionTaskId: number;
|
|
10
|
+
planReadyDate: string | Date | null;
|
|
11
|
+
requiredReadyDate: string | Date | null;
|
|
12
|
+
}, {
|
|
13
|
+
quantity: number;
|
|
14
|
+
productionTaskId: number;
|
|
15
|
+
planReadyDate: string | Date | null;
|
|
16
|
+
requiredReadyDate: string | Date | null;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const OrdersSummaryShipmentZod: z.ZodObject<{
|
|
19
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
24
|
+
quantity: z.ZodNumber;
|
|
25
|
+
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
quantity: number;
|
|
28
|
+
shipmentId: number | null;
|
|
29
|
+
requiredReadyDate: string | Date | null;
|
|
30
|
+
parentPTNumber: number | null;
|
|
31
|
+
parentPTQuantity: number | null;
|
|
32
|
+
parentPTNeed: number | null;
|
|
33
|
+
shipmentNumber: string | null;
|
|
34
|
+
}, {
|
|
35
|
+
quantity: number;
|
|
36
|
+
shipmentId: number | null;
|
|
37
|
+
requiredReadyDate: string | Date | null;
|
|
38
|
+
parentPTNumber: number | null;
|
|
39
|
+
parentPTQuantity: number | null;
|
|
40
|
+
parentPTNeed: number | null;
|
|
41
|
+
shipmentNumber: string | null;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const OrdersSummaryStockOrderZod: z.ZodObject<{
|
|
44
|
+
stockOrderItemId: z.ZodNumber;
|
|
45
|
+
stockOrderId: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
stockOrderNumber: z.ZodNullable<z.ZodString>;
|
|
47
|
+
quantity: z.ZodNumber;
|
|
48
|
+
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
49
|
+
remainingQuantity: z.ZodNumber;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
quantity: number;
|
|
52
|
+
warehouseReadinessDate: string | Date | null;
|
|
53
|
+
stockOrderNumber: string | null;
|
|
54
|
+
stockOrderItemId: number;
|
|
55
|
+
stockOrderId: number | null;
|
|
56
|
+
remainingQuantity: number;
|
|
57
|
+
}, {
|
|
58
|
+
quantity: number;
|
|
59
|
+
warehouseReadinessDate: string | Date | null;
|
|
60
|
+
stockOrderNumber: string | null;
|
|
61
|
+
stockOrderItemId: number;
|
|
62
|
+
stockOrderId: number | null;
|
|
63
|
+
remainingQuantity: number;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
66
|
+
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
67
|
+
quantityByProductionTask: z.ZodNumber;
|
|
68
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
69
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
71
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
74
|
+
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
demandQuantity: z.ZodNumber;
|
|
77
|
+
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
shipmentId: number | null;
|
|
80
|
+
productionTaskId: number | null;
|
|
81
|
+
planReadyDate: string | Date | null;
|
|
82
|
+
requiredReadyDate: string | Date | null;
|
|
83
|
+
parentPTNumber: number | null;
|
|
84
|
+
parentPTQuantity: number | null;
|
|
85
|
+
parentPTNeed: number | null;
|
|
86
|
+
shipmentNumber: string | null;
|
|
87
|
+
quantityByProductionTask: number;
|
|
88
|
+
quantityByShipment: number | null;
|
|
89
|
+
shipmentNeed: number | null;
|
|
90
|
+
demandQuantity: number;
|
|
91
|
+
}, {
|
|
92
|
+
shipmentId: number | null;
|
|
93
|
+
productionTaskId: number | null;
|
|
94
|
+
planReadyDate: string | Date | null;
|
|
95
|
+
requiredReadyDate: string | Date | null;
|
|
96
|
+
parentPTNumber: number | null;
|
|
97
|
+
parentPTQuantity: number | null;
|
|
98
|
+
parentPTNeed: number | null;
|
|
99
|
+
shipmentNumber: string | null;
|
|
100
|
+
quantityByProductionTask: number;
|
|
101
|
+
quantityByShipment: number | null;
|
|
102
|
+
shipmentNeed: number | null;
|
|
103
|
+
demandQuantity: number;
|
|
104
|
+
}>;
|
|
105
|
+
export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
106
|
+
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
107
|
+
quantityByProductionTask: z.ZodNumber;
|
|
108
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
109
|
+
positionNumber: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
111
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
112
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
113
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
114
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
115
|
+
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
stockOrderItemId: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
stockOrderId: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
stockOrderNumber: z.ZodNullable<z.ZodString>;
|
|
120
|
+
quantityByStockOrder: z.ZodNumber;
|
|
121
|
+
stockOrderNeed: z.ZodNumber;
|
|
122
|
+
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
123
|
+
deficitWithPlannedIncoming: z.ZodNumber;
|
|
124
|
+
deficit: z.ZodNumber;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
deficit: number;
|
|
127
|
+
warehouseReadinessDate: string | Date | null;
|
|
128
|
+
stockOrderNumber: string | null;
|
|
129
|
+
shipmentId: number | null;
|
|
130
|
+
productionTaskId: number | null;
|
|
131
|
+
planReadyDate: string | Date | null;
|
|
132
|
+
parentPTNumber: number | null;
|
|
133
|
+
parentPTQuantity: number | null;
|
|
134
|
+
parentPTNeed: number | null;
|
|
135
|
+
shipmentNumber: string | null;
|
|
136
|
+
stockOrderItemId: number | null;
|
|
137
|
+
stockOrderId: number | null;
|
|
138
|
+
quantityByProductionTask: number;
|
|
139
|
+
quantityByShipment: number | null;
|
|
140
|
+
shipmentNeed: number | null;
|
|
141
|
+
positionNumber: number | null;
|
|
142
|
+
quantityByStockOrder: number;
|
|
143
|
+
stockOrderNeed: number;
|
|
144
|
+
deficitWithPlannedIncoming: number;
|
|
145
|
+
}, {
|
|
146
|
+
deficit: number;
|
|
147
|
+
warehouseReadinessDate: string | Date | null;
|
|
148
|
+
stockOrderNumber: string | null;
|
|
149
|
+
shipmentId: number | null;
|
|
150
|
+
productionTaskId: number | null;
|
|
151
|
+
planReadyDate: string | Date | null;
|
|
152
|
+
parentPTNumber: number | null;
|
|
153
|
+
parentPTQuantity: number | null;
|
|
154
|
+
parentPTNeed: number | null;
|
|
155
|
+
shipmentNumber: string | null;
|
|
156
|
+
stockOrderItemId: number | null;
|
|
157
|
+
stockOrderId: number | null;
|
|
158
|
+
quantityByProductionTask: number;
|
|
159
|
+
quantityByShipment: number | null;
|
|
160
|
+
shipmentNeed: number | null;
|
|
161
|
+
positionNumber: number | null;
|
|
162
|
+
quantityByStockOrder: number;
|
|
163
|
+
stockOrderNeed: number;
|
|
164
|
+
deficitWithPlannedIncoming: number;
|
|
165
|
+
}>;
|
|
166
|
+
export declare const OrdersSummaryByEntityResponseZod: z.ZodArray<z.ZodObject<{
|
|
167
|
+
productionTaskId: z.ZodNullable<z.ZodNumber>;
|
|
168
|
+
quantityByProductionTask: z.ZodNumber;
|
|
169
|
+
planReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
170
|
+
positionNumber: z.ZodNullable<z.ZodNumber>;
|
|
171
|
+
shipmentId: z.ZodNullable<z.ZodNumber>;
|
|
172
|
+
parentPTNumber: z.ZodNullable<z.ZodNumber>;
|
|
173
|
+
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
174
|
+
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
175
|
+
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
176
|
+
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
177
|
+
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
178
|
+
stockOrderItemId: z.ZodNullable<z.ZodNumber>;
|
|
179
|
+
stockOrderId: z.ZodNullable<z.ZodNumber>;
|
|
180
|
+
stockOrderNumber: z.ZodNullable<z.ZodString>;
|
|
181
|
+
quantityByStockOrder: z.ZodNumber;
|
|
182
|
+
stockOrderNeed: z.ZodNumber;
|
|
183
|
+
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
184
|
+
deficitWithPlannedIncoming: z.ZodNumber;
|
|
185
|
+
deficit: z.ZodNumber;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
deficit: number;
|
|
188
|
+
warehouseReadinessDate: string | Date | null;
|
|
189
|
+
stockOrderNumber: string | null;
|
|
190
|
+
shipmentId: number | null;
|
|
191
|
+
productionTaskId: number | null;
|
|
192
|
+
planReadyDate: string | Date | null;
|
|
193
|
+
parentPTNumber: number | null;
|
|
194
|
+
parentPTQuantity: number | null;
|
|
195
|
+
parentPTNeed: number | null;
|
|
196
|
+
shipmentNumber: string | null;
|
|
197
|
+
stockOrderItemId: number | null;
|
|
198
|
+
stockOrderId: number | null;
|
|
199
|
+
quantityByProductionTask: number;
|
|
200
|
+
quantityByShipment: number | null;
|
|
201
|
+
shipmentNeed: number | null;
|
|
202
|
+
positionNumber: number | null;
|
|
203
|
+
quantityByStockOrder: number;
|
|
204
|
+
stockOrderNeed: number;
|
|
205
|
+
deficitWithPlannedIncoming: number;
|
|
206
|
+
}, {
|
|
207
|
+
deficit: number;
|
|
208
|
+
warehouseReadinessDate: string | Date | null;
|
|
209
|
+
stockOrderNumber: string | null;
|
|
210
|
+
shipmentId: number | null;
|
|
211
|
+
productionTaskId: number | null;
|
|
212
|
+
planReadyDate: string | Date | null;
|
|
213
|
+
parentPTNumber: number | null;
|
|
214
|
+
parentPTQuantity: number | null;
|
|
215
|
+
parentPTNeed: number | null;
|
|
216
|
+
shipmentNumber: string | null;
|
|
217
|
+
stockOrderItemId: number | null;
|
|
218
|
+
stockOrderId: number | null;
|
|
219
|
+
quantityByProductionTask: number;
|
|
220
|
+
quantityByShipment: number | null;
|
|
221
|
+
shipmentNeed: number | null;
|
|
222
|
+
positionNumber: number | null;
|
|
223
|
+
quantityByStockOrder: number;
|
|
224
|
+
stockOrderNeed: number;
|
|
225
|
+
deficitWithPlannedIncoming: number;
|
|
226
|
+
}>, "many">;
|
|
227
|
+
export type OrdersSummaryProductionTaskZodType = z.infer<typeof OrdersSummaryProductionTaskZod>;
|
|
228
|
+
export type OrdersSummaryShipmentZodType = z.infer<typeof OrdersSummaryShipmentZod>;
|
|
229
|
+
export type OrdersSummaryStockOrderZodType = z.infer<typeof OrdersSummaryStockOrderZod>;
|
|
230
|
+
export type OrdersSummaryDemandRowZodType = z.infer<typeof OrdersSummaryDemandRowZod>;
|
|
231
|
+
export type OrdersSummaryByEntityRowZodType = z.infer<typeof OrdersSummaryByEntityRowZod>;
|
|
232
|
+
export type OrdersSummaryByEntityResponseZodType = z.infer<typeof OrdersSummaryByEntityResponseZod>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrdersSummaryByEntityResponseZod = exports.OrdersSummaryByEntityRowZod = exports.OrdersSummaryDemandRowZod = exports.OrdersSummaryStockOrderZod = exports.OrdersSummaryShipmentZod = exports.OrdersSummaryProductionTaskZod = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const OrdersSummaryDateZod = zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).nullable();
|
|
6
|
+
exports.OrdersSummaryProductionTaskZod = zod_1.z.object({
|
|
7
|
+
productionTaskId: zod_1.z.number(),
|
|
8
|
+
quantity: zod_1.z.number(),
|
|
9
|
+
planReadyDate: OrdersSummaryDateZod,
|
|
10
|
+
requiredReadyDate: OrdersSummaryDateZod
|
|
11
|
+
});
|
|
12
|
+
exports.OrdersSummaryShipmentZod = zod_1.z.object({
|
|
13
|
+
shipmentId: zod_1.z.number().nullable(),
|
|
14
|
+
parentPTNumber: zod_1.z.number().nullable(),
|
|
15
|
+
parentPTQuantity: zod_1.z.number().nullable(),
|
|
16
|
+
parentPTNeed: zod_1.z.number().nullable(),
|
|
17
|
+
shipmentNumber: zod_1.z.string().nullable(),
|
|
18
|
+
quantity: zod_1.z.number(),
|
|
19
|
+
requiredReadyDate: OrdersSummaryDateZod
|
|
20
|
+
});
|
|
21
|
+
exports.OrdersSummaryStockOrderZod = zod_1.z.object({
|
|
22
|
+
stockOrderItemId: zod_1.z.number(),
|
|
23
|
+
stockOrderId: zod_1.z.number().nullable(),
|
|
24
|
+
stockOrderNumber: zod_1.z.string().nullable(),
|
|
25
|
+
quantity: zod_1.z.number(),
|
|
26
|
+
warehouseReadinessDate: OrdersSummaryDateZod,
|
|
27
|
+
remainingQuantity: zod_1.z.number()
|
|
28
|
+
});
|
|
29
|
+
exports.OrdersSummaryDemandRowZod = zod_1.z.object({
|
|
30
|
+
productionTaskId: zod_1.z.number().nullable(),
|
|
31
|
+
quantityByProductionTask: zod_1.z.number(),
|
|
32
|
+
planReadyDate: OrdersSummaryDateZod,
|
|
33
|
+
shipmentId: zod_1.z.number().nullable(),
|
|
34
|
+
parentPTNumber: zod_1.z.number().nullable(),
|
|
35
|
+
parentPTQuantity: zod_1.z.number().nullable(),
|
|
36
|
+
parentPTNeed: zod_1.z.number().nullable(),
|
|
37
|
+
shipmentNumber: zod_1.z.string().nullable(),
|
|
38
|
+
quantityByShipment: zod_1.z.number().nullable(),
|
|
39
|
+
shipmentNeed: zod_1.z.number().nullable(),
|
|
40
|
+
demandQuantity: zod_1.z.number(),
|
|
41
|
+
requiredReadyDate: OrdersSummaryDateZod
|
|
42
|
+
});
|
|
43
|
+
exports.OrdersSummaryByEntityRowZod = zod_1.z.object({
|
|
44
|
+
productionTaskId: zod_1.z.number().nullable(),
|
|
45
|
+
quantityByProductionTask: zod_1.z.number(),
|
|
46
|
+
planReadyDate: OrdersSummaryDateZod,
|
|
47
|
+
positionNumber: zod_1.z.number().nullable(),
|
|
48
|
+
shipmentId: zod_1.z.number().nullable(),
|
|
49
|
+
parentPTNumber: zod_1.z.number().nullable(),
|
|
50
|
+
parentPTQuantity: zod_1.z.number().nullable(),
|
|
51
|
+
parentPTNeed: zod_1.z.number().nullable(),
|
|
52
|
+
shipmentNumber: zod_1.z.string().nullable(),
|
|
53
|
+
quantityByShipment: zod_1.z.number().nullable(),
|
|
54
|
+
shipmentNeed: zod_1.z.number().nullable(),
|
|
55
|
+
stockOrderItemId: zod_1.z.number().nullable(),
|
|
56
|
+
stockOrderId: zod_1.z.number().nullable(),
|
|
57
|
+
stockOrderNumber: zod_1.z.string().nullable(),
|
|
58
|
+
quantityByStockOrder: zod_1.z.number(),
|
|
59
|
+
stockOrderNeed: zod_1.z.number(),
|
|
60
|
+
warehouseReadinessDate: OrdersSummaryDateZod,
|
|
61
|
+
deficitWithPlannedIncoming: zod_1.z.number(),
|
|
62
|
+
deficit: zod_1.z.number()
|
|
63
|
+
});
|
|
64
|
+
exports.OrdersSummaryByEntityResponseZod = zod_1.z.array(exports.OrdersSummaryByEntityRowZod);
|
|
@@ -4,12 +4,12 @@ export declare const UpdateRoleDtoZod: z.ZodObject<{
|
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
name: string;
|
|
8
7
|
id: number;
|
|
8
|
+
name: string;
|
|
9
9
|
description?: string | null | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
name: string;
|
|
12
11
|
id: number;
|
|
12
|
+
name: string;
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type UpdateRoleDtoZodType = z.infer<typeof UpdateRoleDtoZod>;
|
|
@@ -127,8 +127,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
127
127
|
cbed: import("../..").CbedRelativeType[];
|
|
128
128
|
designation: string | null;
|
|
129
129
|
description: string | null;
|
|
130
|
-
name: string;
|
|
131
130
|
id: number;
|
|
131
|
+
name: string;
|
|
132
132
|
calculate_needs_time: Date | null;
|
|
133
133
|
entity_children_need_time: Date | null;
|
|
134
134
|
min_remaining: number;
|
|
@@ -158,8 +158,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
158
158
|
}, {
|
|
159
159
|
designation: string | null;
|
|
160
160
|
description: string | null;
|
|
161
|
-
name: string;
|
|
162
161
|
id: number;
|
|
162
|
+
name: string;
|
|
163
163
|
ava_path: string | null;
|
|
164
164
|
parametrs: import("../..").CbedParametrsField | null;
|
|
165
165
|
characteristic: import("../..").CbedCharacteristicField | null;
|
|
@@ -602,8 +602,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
602
602
|
cbed: import("../..").CbedRelativeType[];
|
|
603
603
|
designation: string | null;
|
|
604
604
|
description: string | null;
|
|
605
|
-
name: string;
|
|
606
605
|
id: number;
|
|
606
|
+
name: string;
|
|
607
607
|
calculate_needs_time: Date | null;
|
|
608
608
|
entity_children_need_time: Date | null;
|
|
609
609
|
min_remaining: number;
|
|
@@ -796,8 +796,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
796
796
|
cbeds: {
|
|
797
797
|
designation: string | null;
|
|
798
798
|
description: string | null;
|
|
799
|
-
name: string;
|
|
800
799
|
id: number;
|
|
800
|
+
name: string;
|
|
801
801
|
ava_path: string | null;
|
|
802
802
|
parametrs: import("../..").CbedParametrsField | null;
|
|
803
803
|
characteristic: import("../..").CbedCharacteristicField | null;
|
|
@@ -969,8 +969,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
969
969
|
}, "strip", z.ZodTypeAny, {
|
|
970
970
|
ban: boolean;
|
|
971
971
|
description: string;
|
|
972
|
-
name: string;
|
|
973
972
|
id: number;
|
|
973
|
+
name: string;
|
|
974
974
|
user?: {
|
|
975
975
|
banReason: string | null;
|
|
976
976
|
ban: boolean;
|
|
@@ -1018,8 +1018,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1018
1018
|
cbed: import("../..").CbedRelativeType[];
|
|
1019
1019
|
designation: string | null;
|
|
1020
1020
|
description: string | null;
|
|
1021
|
-
name: string;
|
|
1022
1021
|
id: number;
|
|
1022
|
+
name: string;
|
|
1023
1023
|
calculate_needs_time: Date | null;
|
|
1024
1024
|
entity_children_need_time: Date | null;
|
|
1025
1025
|
min_remaining: number;
|
|
@@ -1178,8 +1178,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1178
1178
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
1179
1179
|
}[] | undefined;
|
|
1180
1180
|
}, {
|
|
1181
|
-
name: string;
|
|
1182
1181
|
id: number;
|
|
1182
|
+
name: string;
|
|
1183
1183
|
ban?: boolean | undefined;
|
|
1184
1184
|
user?: {
|
|
1185
1185
|
banReason: string | null;
|
|
@@ -1217,8 +1217,8 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1217
1217
|
cbeds: {
|
|
1218
1218
|
designation: string | null;
|
|
1219
1219
|
description: string | null;
|
|
1220
|
-
name: string;
|
|
1221
1220
|
id: number;
|
|
1221
|
+
name: string;
|
|
1222
1222
|
ava_path: string | null;
|
|
1223
1223
|
parametrs: import("../..").CbedParametrsField | null;
|
|
1224
1224
|
characteristic: import("../..").CbedCharacteristicField | null;
|
|
@@ -18,8 +18,8 @@ export declare const RemainSchema: z.ZodObject<{
|
|
|
18
18
|
ban: boolean;
|
|
19
19
|
designation: string;
|
|
20
20
|
description: string;
|
|
21
|
-
name: string;
|
|
22
21
|
id: number;
|
|
22
|
+
name: string;
|
|
23
23
|
createdAt: string | Date;
|
|
24
24
|
quantity: number;
|
|
25
25
|
attetion: boolean;
|
|
@@ -33,8 +33,8 @@ export declare const RemainSchema: z.ZodObject<{
|
|
|
33
33
|
ban: boolean;
|
|
34
34
|
designation: string;
|
|
35
35
|
description: string;
|
|
36
|
-
name: string;
|
|
37
36
|
id: number;
|
|
37
|
+
name: string;
|
|
38
38
|
createdAt: string | Date;
|
|
39
39
|
quantity: number;
|
|
40
40
|
attetion: boolean;
|