@pksep/zod-shared 0.0.532 → 0.0.533
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 +1 -6
- package/dist/action/enums/enums.js +0 -5
- package/dist/action/schemas/actions.schema.d.ts +2 -2
- package/dist/assemble/dto/assembly-paginate.dto.d.ts +7 -1
- package/dist/assemble/dto/assembly-paginate.dto.js +3 -1
- package/dist/assemble/dto/create-assemble-kit.dto.d.ts +14 -8
- package/dist/assemble/dto/create-assemble-kit.dto.js +7 -3
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +6 -6
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +7 -1
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +3 -1
- package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +7 -1
- package/dist/assemble/dto/get-assemble-pagination.dto.js +3 -1
- package/dist/assemble/interfaces/interfaces.d.ts +12 -0
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +4 -4
- package/dist/assemble/schemas/assemble.schema.d.ts +4 -4
- package/dist/assemble-kit/interfaces/interface.d.ts +7 -0
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +2 -2
- package/dist/cbed/dto/get-deficit.dto.d.ts +7 -1
- package/dist/cbed/dto/get-deficit.dto.js +3 -1
- package/dist/deliveries/schemas/deliveries.schema.d.ts +2 -2
- package/dist/detal/dto/get-deficit.dto.d.ts +7 -1
- package/dist/detal/dto/get-deficit.dto.js +3 -1
- package/dist/equipment/schemas/equipment.schema.d.ts +8 -8
- package/dist/exclusion/dto/create-exclusion.dto.js +1 -1
- package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
- package/dist/expenditure/schema/expenditure.schema.d.ts +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/material/dto/get-deficit.dto.d.ts +7 -1
- package/dist/material/dto/get-deficit.dto.js +3 -1
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +7 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +4 -1
- package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +11 -6
- package/dist/product/dto/get-deficit.dto.d.ts +7 -1
- package/dist/product/dto/get-deficit.dto.js +3 -1
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +7 -0
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +4 -1
- package/dist/production-tasks/dto/online-board-working.dto.d.ts +7 -1
- package/dist/production-tasks/dto/online-board-working.dto.js +3 -1
- package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +2 -2
- package/dist/role/schemas/role.schema.d.ts +11 -6
- package/dist/sclad/schemas/remain.schema.d.ts +2 -2
- package/dist/shipments/dto/shipments-paginate.dto.d.ts +7 -1
- package/dist/shipments/dto/shipments-paginate.dto.js +3 -1
- package/dist/user/schemas/user.schema.d.ts +7 -4
- package/dist/user/schemas/user.schema.js +1 -0
- package/dist/utils/enums.d.ts +0 -7
- package/dist/utils/enums.js +1 -9
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/sorting.d.ts +10 -0
- package/dist/utils/sorting.js +40 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ exports.CreateExclusionDtoZod = void 0;
|
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
9
|
exports.CreateExclusionDtoZod = zod_1.default.object({
|
|
10
|
-
exclusion: zod_1.default.string()
|
|
10
|
+
exclusion: zod_1.default.string(),
|
|
11
11
|
exclusionType: zod_1.default.nativeEnum(utils_1.EnumExclusionType),
|
|
12
12
|
entityType: zod_1.default.nativeEnum(utils_1.IzdType)
|
|
13
13
|
});
|
|
@@ -42,8 +42,8 @@ export declare const ExpenditureConsumptionSchema: z.ZodObject<{
|
|
|
42
42
|
quanity: number;
|
|
43
43
|
designation?: string | undefined;
|
|
44
44
|
}[];
|
|
45
|
-
waybill_id?: number | null | undefined;
|
|
46
45
|
createdAt?: string | undefined;
|
|
46
|
+
waybill_id?: number | null | undefined;
|
|
47
47
|
updatedAt?: string | undefined;
|
|
48
48
|
sh_complit_id?: number | null | undefined;
|
|
49
49
|
}, {
|
|
@@ -57,8 +57,8 @@ export declare const ExpenditureConsumptionSchema: z.ZodObject<{
|
|
|
57
57
|
quanity: number;
|
|
58
58
|
designation?: string | undefined;
|
|
59
59
|
}[];
|
|
60
|
-
waybill_id?: number | null | undefined;
|
|
61
60
|
createdAt?: string | undefined;
|
|
61
|
+
waybill_id?: number | null | undefined;
|
|
62
62
|
updatedAt?: string | undefined;
|
|
63
63
|
sh_complit_id?: number | null | undefined;
|
|
64
64
|
}>;
|
|
@@ -9,14 +9,14 @@ export declare const ExpenditureSchema: z.ZodObject<{
|
|
|
9
9
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
id: number;
|
|
12
|
-
waybill_id?: number | null | undefined;
|
|
13
12
|
createdAt?: string | undefined;
|
|
13
|
+
waybill_id?: number | null | undefined;
|
|
14
14
|
updatedAt?: string | undefined;
|
|
15
15
|
sh_complit_id?: number | null | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
id: number;
|
|
18
|
-
waybill_id?: number | null | undefined;
|
|
19
18
|
createdAt?: string | undefined;
|
|
19
|
+
waybill_id?: number | null | undefined;
|
|
20
20
|
updatedAt?: string | undefined;
|
|
21
21
|
sh_complit_id?: number | null | undefined;
|
|
22
22
|
}>;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusWorkingsDeficit } from '../../utils';
|
|
2
|
+
import { ProductionPlanSortField, statusWorkingsDeficit } from '../../utils';
|
|
3
3
|
export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
|
|
4
4
|
materialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
5
5
|
typeMaterialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -8,19 +8,25 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
|
|
|
8
8
|
searchString: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9
9
|
shipmentIds: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
10
10
|
page: z.ZodNumber;
|
|
11
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
|
|
12
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
13
|
}, "strip", z.ZodTypeAny, {
|
|
12
14
|
page: number;
|
|
13
15
|
searchString: string;
|
|
14
16
|
statusWorking: statusWorkingsDeficit;
|
|
15
17
|
shipmentIds: number[] | null;
|
|
18
|
+
sortDesc: boolean;
|
|
16
19
|
materialIds: number[];
|
|
17
20
|
typeMaterialIds: number[];
|
|
18
21
|
subTypeMaterialIds: number[];
|
|
22
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
19
23
|
}, {
|
|
20
24
|
page: number;
|
|
21
25
|
searchString?: string | undefined;
|
|
22
26
|
statusWorking?: statusWorkingsDeficit | undefined;
|
|
23
27
|
shipmentIds?: number[] | null | undefined;
|
|
28
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
29
|
+
sortDesc?: boolean | undefined;
|
|
24
30
|
materialIds?: number[] | undefined;
|
|
25
31
|
typeMaterialIds?: number[] | undefined;
|
|
26
32
|
subTypeMaterialIds?: number[] | undefined;
|
|
@@ -13,5 +13,7 @@ exports.GetMaterialDeficitDtoZod = zod_1.z.object({
|
|
|
13
13
|
.default(utils_1.statusWorkingsDeficit.all),
|
|
14
14
|
searchString: zod_1.z.string().optional().default(''),
|
|
15
15
|
shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
|
|
16
|
-
page: zod_1.z.number().int()
|
|
16
|
+
page: zod_1.z.number().int(),
|
|
17
|
+
sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
|
|
18
|
+
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
17
19
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ProductionPlanSortField } from '../../utils';
|
|
2
3
|
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
4
|
export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
|
|
4
5
|
page: z.ZodNumber;
|
|
@@ -8,11 +9,15 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
|
|
|
8
9
|
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
9
10
|
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
10
11
|
childrenByProductionTaskIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
12
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
|
|
13
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
14
|
}, "strip", z.ZodTypeAny, {
|
|
12
15
|
page: number;
|
|
13
16
|
searchString: string;
|
|
14
17
|
isBan: boolean;
|
|
18
|
+
sortDesc: boolean;
|
|
15
19
|
responsibleUserId?: number | null | undefined;
|
|
20
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
16
21
|
byParents?: IFiltersByParents | null | undefined;
|
|
17
22
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
18
23
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
@@ -21,6 +26,8 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
|
|
|
21
26
|
searchString: string;
|
|
22
27
|
isBan: boolean;
|
|
23
28
|
responsibleUserId?: number | null | undefined;
|
|
29
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
30
|
+
sortDesc?: boolean | undefined;
|
|
24
31
|
byParents?: IFiltersByParents | null | undefined;
|
|
25
32
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
26
33
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetMetaloworkingPaginationDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
5
6
|
exports.GetMetaloworkingPaginationDtoZod = zod_1.z.object({
|
|
6
7
|
page: zod_1.z.number(),
|
|
7
8
|
responsibleUserId: zod_1.z.number().nullable().optional(),
|
|
@@ -9,5 +10,7 @@ exports.GetMetaloworkingPaginationDtoZod = zod_1.z.object({
|
|
|
9
10
|
isBan: zod_1.z.boolean(),
|
|
10
11
|
byParents: zod_1.z.custom().nullable().optional(),
|
|
11
12
|
byOrder: zod_1.z.custom().nullable().optional(),
|
|
12
|
-
childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable()
|
|
13
|
+
childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
|
|
14
|
+
sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
|
|
15
|
+
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
13
16
|
});
|
|
@@ -27,9 +27,9 @@ export declare const MetaloworkingByOperationSchema: z.ZodObject<{
|
|
|
27
27
|
description: string;
|
|
28
28
|
id: number;
|
|
29
29
|
number_order: string;
|
|
30
|
+
createdAt: string;
|
|
30
31
|
detal_id: number;
|
|
31
32
|
shipment_id: number;
|
|
32
|
-
createdAt: string;
|
|
33
33
|
updatedAt: string;
|
|
34
34
|
kolvo_create: number;
|
|
35
35
|
kolvo_shipments: number;
|
|
@@ -43,9 +43,9 @@ export declare const MetaloworkingByOperationSchema: z.ZodObject<{
|
|
|
43
43
|
description: string;
|
|
44
44
|
id: number;
|
|
45
45
|
number_order: string;
|
|
46
|
+
createdAt: string;
|
|
46
47
|
detal_id: number;
|
|
47
48
|
shipment_id: number;
|
|
48
|
-
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
kolvo_create: number;
|
|
51
51
|
kolvo_shipments: number;
|
|
@@ -38,6 +38,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
38
38
|
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
session_id: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
last_online: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
41
42
|
rolesId: z.ZodNumber;
|
|
42
43
|
role: z.ZodAny;
|
|
43
44
|
documents: z.ZodArray<z.ZodObject<{
|
|
@@ -315,6 +316,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
315
316
|
action: import("../..").IActionText[];
|
|
316
317
|
type_object: string;
|
|
317
318
|
id?: number | null | undefined;
|
|
319
|
+
createdAt?: string | Date | undefined;
|
|
318
320
|
responsible_id?: number | null | undefined;
|
|
319
321
|
equipment_id?: number | null | undefined;
|
|
320
322
|
user_id?: number | null | undefined;
|
|
@@ -344,13 +346,13 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
344
346
|
role_id?: number | null | undefined;
|
|
345
347
|
parent_action_idL?: number | null | undefined;
|
|
346
348
|
production_task_id?: number | null | undefined;
|
|
347
|
-
createdAt?: string | Date | undefined;
|
|
348
349
|
revision_id?: number | null | undefined;
|
|
349
350
|
}, {
|
|
350
351
|
action: import("../..").IActionText[];
|
|
351
352
|
type_object: string;
|
|
352
353
|
ban?: boolean | undefined;
|
|
353
354
|
id?: number | null | undefined;
|
|
355
|
+
createdAt?: string | Date | undefined;
|
|
354
356
|
responsible_id?: number | null | undefined;
|
|
355
357
|
equipment_id?: number | null | undefined;
|
|
356
358
|
user_id?: number | null | undefined;
|
|
@@ -380,7 +382,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
380
382
|
role_id?: number | null | undefined;
|
|
381
383
|
parent_action_idL?: number | null | undefined;
|
|
382
384
|
production_task_id?: number | null | undefined;
|
|
383
|
-
createdAt?: string | Date | undefined;
|
|
384
385
|
revision_id?: number | null | undefined;
|
|
385
386
|
}>, "many">;
|
|
386
387
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
@@ -664,6 +665,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
664
665
|
action: import("../..").IActionText[];
|
|
665
666
|
type_object: string;
|
|
666
667
|
id?: number | null | undefined;
|
|
668
|
+
createdAt?: string | Date | undefined;
|
|
667
669
|
responsible_id?: number | null | undefined;
|
|
668
670
|
equipment_id?: number | null | undefined;
|
|
669
671
|
user_id?: number | null | undefined;
|
|
@@ -693,7 +695,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
693
695
|
role_id?: number | null | undefined;
|
|
694
696
|
parent_action_idL?: number | null | undefined;
|
|
695
697
|
production_task_id?: number | null | undefined;
|
|
696
|
-
createdAt?: string | Date | undefined;
|
|
697
698
|
revision_id?: number | null | undefined;
|
|
698
699
|
}[];
|
|
699
700
|
responsibleForProduct: {
|
|
@@ -757,6 +758,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
757
758
|
}[];
|
|
758
759
|
role?: any;
|
|
759
760
|
image?: string | null | undefined;
|
|
761
|
+
createdAt?: string | undefined;
|
|
760
762
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
761
763
|
}, {
|
|
762
764
|
banReason: string | null;
|
|
@@ -858,6 +860,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
858
860
|
type_object: string;
|
|
859
861
|
ban?: boolean | undefined;
|
|
860
862
|
id?: number | null | undefined;
|
|
863
|
+
createdAt?: string | Date | undefined;
|
|
861
864
|
responsible_id?: number | null | undefined;
|
|
862
865
|
equipment_id?: number | null | undefined;
|
|
863
866
|
user_id?: number | null | undefined;
|
|
@@ -887,7 +890,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
887
890
|
role_id?: number | null | undefined;
|
|
888
891
|
parent_action_idL?: number | null | undefined;
|
|
889
892
|
production_task_id?: number | null | undefined;
|
|
890
|
-
createdAt?: string | Date | undefined;
|
|
891
893
|
revision_id?: number | null | undefined;
|
|
892
894
|
}[];
|
|
893
895
|
responsibleForProduct: {
|
|
@@ -960,6 +962,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
960
962
|
};
|
|
961
963
|
}[] | undefined;
|
|
962
964
|
image?: string | null | undefined;
|
|
965
|
+
createdAt?: string | undefined;
|
|
963
966
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
964
967
|
}>, "many">>;
|
|
965
968
|
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1149,6 +1152,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1149
1152
|
action: import("../..").IActionText[];
|
|
1150
1153
|
type_object: string;
|
|
1151
1154
|
id?: number | null | undefined;
|
|
1155
|
+
createdAt?: string | Date | undefined;
|
|
1152
1156
|
responsible_id?: number | null | undefined;
|
|
1153
1157
|
equipment_id?: number | null | undefined;
|
|
1154
1158
|
user_id?: number | null | undefined;
|
|
@@ -1178,7 +1182,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1178
1182
|
role_id?: number | null | undefined;
|
|
1179
1183
|
parent_action_idL?: number | null | undefined;
|
|
1180
1184
|
production_task_id?: number | null | undefined;
|
|
1181
|
-
createdAt?: string | Date | undefined;
|
|
1182
1185
|
revision_id?: number | null | undefined;
|
|
1183
1186
|
}[];
|
|
1184
1187
|
responsibleForProduct: {
|
|
@@ -1242,6 +1245,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1242
1245
|
}[];
|
|
1243
1246
|
role?: any;
|
|
1244
1247
|
image?: string | null | undefined;
|
|
1248
|
+
createdAt?: string | undefined;
|
|
1245
1249
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
1246
1250
|
}[] | undefined;
|
|
1247
1251
|
cause?: string | undefined;
|
|
@@ -1371,6 +1375,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1371
1375
|
type_object: string;
|
|
1372
1376
|
ban?: boolean | undefined;
|
|
1373
1377
|
id?: number | null | undefined;
|
|
1378
|
+
createdAt?: string | Date | undefined;
|
|
1374
1379
|
responsible_id?: number | null | undefined;
|
|
1375
1380
|
equipment_id?: number | null | undefined;
|
|
1376
1381
|
user_id?: number | null | undefined;
|
|
@@ -1400,7 +1405,6 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1400
1405
|
role_id?: number | null | undefined;
|
|
1401
1406
|
parent_action_idL?: number | null | undefined;
|
|
1402
1407
|
production_task_id?: number | null | undefined;
|
|
1403
|
-
createdAt?: string | Date | undefined;
|
|
1404
1408
|
revision_id?: number | null | undefined;
|
|
1405
1409
|
}[];
|
|
1406
1410
|
responsibleForProduct: {
|
|
@@ -1473,6 +1477,7 @@ export declare const MovingSchema: z.ZodObject<{
|
|
|
1473
1477
|
};
|
|
1474
1478
|
}[] | undefined;
|
|
1475
1479
|
image?: string | null | undefined;
|
|
1480
|
+
createdAt?: string | undefined;
|
|
1476
1481
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
1477
1482
|
}[] | undefined;
|
|
1478
1483
|
cause?: string | undefined;
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusWorkingsDeficit } from '../../utils';
|
|
2
|
+
import { ProductionPlanSortField, statusWorkingsDeficit } from '../../utils';
|
|
3
3
|
export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
4
4
|
productIds: z.ZodArray<z.ZodNumber, "many">;
|
|
5
5
|
statusWorking: z.ZodNativeEnum<typeof statusWorkingsDeficit>;
|
|
6
6
|
searchString: z.ZodString;
|
|
7
7
|
shipmentIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
8
8
|
page: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
|
|
10
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
11
|
}, "strip", z.ZodTypeAny, {
|
|
10
12
|
searchString: string;
|
|
11
13
|
statusWorking: statusWorkingsDeficit;
|
|
14
|
+
sortDesc: boolean;
|
|
12
15
|
productIds: number[];
|
|
13
16
|
page?: number | undefined;
|
|
14
17
|
shipmentIds?: number[] | null | undefined;
|
|
18
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
15
19
|
}, {
|
|
16
20
|
searchString: string;
|
|
17
21
|
statusWorking: statusWorkingsDeficit;
|
|
18
22
|
productIds: number[];
|
|
19
23
|
page?: number | undefined;
|
|
20
24
|
shipmentIds?: number[] | null | undefined;
|
|
25
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
26
|
+
sortDesc?: boolean | undefined;
|
|
21
27
|
}>;
|
|
22
28
|
export type GetDeficitProductDtoType = z.infer<typeof GetDeficitProductSchema>;
|
|
@@ -8,5 +8,7 @@ exports.GetDeficitProductSchema = zod_1.z.object({
|
|
|
8
8
|
statusWorking: zod_1.z.nativeEnum(utils_1.statusWorkingsDeficit),
|
|
9
9
|
searchString: zod_1.z.string(),
|
|
10
10
|
shipmentIds: zod_1.z.number().int().array().optional().nullable(),
|
|
11
|
-
page: zod_1.z.number().int().optional()
|
|
11
|
+
page: zod_1.z.number().int().optional(),
|
|
12
|
+
sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
|
|
13
|
+
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
12
14
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ProductionPlanSortField } from '../../utils';
|
|
2
3
|
import { IFiltersByByOrder, IFiltersByParents } from '../interfaces/online-board';
|
|
3
4
|
export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
|
|
4
5
|
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -20,13 +21,17 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
|
|
|
20
21
|
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
21
22
|
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
22
23
|
childrenByProductionTaskIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
24
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
|
|
25
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
23
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
sortDesc: boolean;
|
|
24
28
|
typeOperationIds: number[] | null;
|
|
25
29
|
employeIds: number[] | null;
|
|
26
30
|
assembleIds: number[] | null;
|
|
27
31
|
isOnlyDetalId: boolean | null;
|
|
28
32
|
page?: number | null | undefined;
|
|
29
33
|
searchString?: string | undefined;
|
|
34
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
30
35
|
range?: {
|
|
31
36
|
start?: any;
|
|
32
37
|
end?: any;
|
|
@@ -37,6 +42,8 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
|
|
|
37
42
|
}, {
|
|
38
43
|
page?: number | null | undefined;
|
|
39
44
|
searchString?: string | undefined;
|
|
45
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
46
|
+
sortDesc?: boolean | undefined;
|
|
40
47
|
range?: {
|
|
41
48
|
start?: any;
|
|
42
49
|
end?: any;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetDeficitsDetalByProductionTaskDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
5
6
|
exports.GetDeficitsDetalByProductionTaskDtoZod = zod_1.z.object({
|
|
6
7
|
page: zod_1.z.number().int().nullable().optional(),
|
|
7
8
|
typeOperationIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
|
|
@@ -18,5 +19,7 @@ exports.GetDeficitsDetalByProductionTaskDtoZod = zod_1.z.object({
|
|
|
18
19
|
searchString: zod_1.z.string().optional(),
|
|
19
20
|
byParents: zod_1.z.custom().nullable().optional(),
|
|
20
21
|
byOrder: zod_1.z.custom().nullable().optional(),
|
|
21
|
-
childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).nullable().optional()
|
|
22
|
+
childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
23
|
+
sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
|
|
24
|
+
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
22
25
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { StockOrderType } from '../../utils';
|
|
2
|
+
import { ProductionPlanSortField, StockOrderType } from '../../utils';
|
|
3
3
|
import { IFiltersByByOrder, IFiltersByParents, IFiltersByUserProductionTask } from '../interfaces/online-board';
|
|
4
4
|
export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
|
|
5
5
|
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -23,12 +23,16 @@ export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
|
|
|
23
23
|
childrenByProductionTaskIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
24
24
|
isComplect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
25
25
|
productionIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>>>;
|
|
26
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
|
|
27
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
26
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
sortDesc: boolean;
|
|
27
30
|
workingType: StockOrderType;
|
|
28
31
|
employeIds: number[] | null;
|
|
29
32
|
isComplect: boolean;
|
|
30
33
|
productionIds: number[] | null;
|
|
31
34
|
page?: number | null | undefined;
|
|
35
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
32
36
|
range?: {
|
|
33
37
|
start?: any;
|
|
34
38
|
end?: any;
|
|
@@ -42,6 +46,8 @@ export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
|
|
|
42
46
|
}, {
|
|
43
47
|
workingType: StockOrderType;
|
|
44
48
|
page?: number | null | undefined;
|
|
49
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
50
|
+
sortDesc?: boolean | undefined;
|
|
45
51
|
range?: {
|
|
46
52
|
start?: any;
|
|
47
53
|
end?: any;
|
|
@@ -24,5 +24,7 @@ exports.OnlineBoardWorkingDtoZod = zod_1.z.object({
|
|
|
24
24
|
.optional(),
|
|
25
25
|
childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
26
26
|
isComplect: zod_1.z.boolean().optional().default(false),
|
|
27
|
-
productionIds: zod_1.z.array(zod_1.z.number()).optional().nullish().default([])
|
|
27
|
+
productionIds: zod_1.z.array(zod_1.z.number()).optional().nullish().default([]),
|
|
28
|
+
sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
|
|
29
|
+
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
28
30
|
});
|
|
@@ -36,8 +36,8 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
36
36
|
production_task_id: number;
|
|
37
37
|
idx: number;
|
|
38
38
|
id?: number | null | undefined;
|
|
39
|
-
ass_id?: number | null | undefined;
|
|
40
39
|
createdAt?: Date | undefined;
|
|
40
|
+
ass_id?: number | null | undefined;
|
|
41
41
|
updatedAt?: Date | undefined;
|
|
42
42
|
metall_id?: number | null | undefined;
|
|
43
43
|
quantity_max?: number | null | undefined;
|
|
@@ -48,8 +48,8 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
48
48
|
idx: number;
|
|
49
49
|
ban?: boolean | undefined;
|
|
50
50
|
id?: number | null | undefined;
|
|
51
|
-
ass_id?: number | null | undefined;
|
|
52
51
|
createdAt?: Date | undefined;
|
|
52
|
+
ass_id?: number | null | undefined;
|
|
53
53
|
updatedAt?: Date | undefined;
|
|
54
54
|
metall_id?: number | null | undefined;
|
|
55
55
|
quantity_max?: number | null | undefined;
|
|
@@ -34,6 +34,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
34
34
|
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
session_id: z.ZodNullable<z.ZodNumber>;
|
|
36
36
|
last_online: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
37
38
|
rolesId: z.ZodNumber;
|
|
38
39
|
role: z.ZodAny;
|
|
39
40
|
documents: z.ZodArray<z.ZodObject<{
|
|
@@ -311,6 +312,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
311
312
|
action: import("../..").IActionText[];
|
|
312
313
|
type_object: string;
|
|
313
314
|
id?: number | null | undefined;
|
|
315
|
+
createdAt?: string | Date | undefined;
|
|
314
316
|
responsible_id?: number | null | undefined;
|
|
315
317
|
equipment_id?: number | null | undefined;
|
|
316
318
|
user_id?: number | null | undefined;
|
|
@@ -340,13 +342,13 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
340
342
|
role_id?: number | null | undefined;
|
|
341
343
|
parent_action_idL?: number | null | undefined;
|
|
342
344
|
production_task_id?: number | null | undefined;
|
|
343
|
-
createdAt?: string | Date | undefined;
|
|
344
345
|
revision_id?: number | null | undefined;
|
|
345
346
|
}, {
|
|
346
347
|
action: import("../..").IActionText[];
|
|
347
348
|
type_object: string;
|
|
348
349
|
ban?: boolean | undefined;
|
|
349
350
|
id?: number | null | undefined;
|
|
351
|
+
createdAt?: string | Date | undefined;
|
|
350
352
|
responsible_id?: number | null | undefined;
|
|
351
353
|
equipment_id?: number | null | undefined;
|
|
352
354
|
user_id?: number | null | undefined;
|
|
@@ -376,7 +378,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
376
378
|
role_id?: number | null | undefined;
|
|
377
379
|
parent_action_idL?: number | null | undefined;
|
|
378
380
|
production_task_id?: number | null | undefined;
|
|
379
|
-
createdAt?: string | Date | undefined;
|
|
380
381
|
revision_id?: number | null | undefined;
|
|
381
382
|
}>, "many">;
|
|
382
383
|
responsibleForProduct: z.ZodArray<z.ZodObject<{
|
|
@@ -660,6 +661,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
660
661
|
action: import("../..").IActionText[];
|
|
661
662
|
type_object: string;
|
|
662
663
|
id?: number | null | undefined;
|
|
664
|
+
createdAt?: string | Date | undefined;
|
|
663
665
|
responsible_id?: number | null | undefined;
|
|
664
666
|
equipment_id?: number | null | undefined;
|
|
665
667
|
user_id?: number | null | undefined;
|
|
@@ -689,7 +691,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
689
691
|
role_id?: number | null | undefined;
|
|
690
692
|
parent_action_idL?: number | null | undefined;
|
|
691
693
|
production_task_id?: number | null | undefined;
|
|
692
|
-
createdAt?: string | Date | undefined;
|
|
693
694
|
revision_id?: number | null | undefined;
|
|
694
695
|
}[];
|
|
695
696
|
responsibleForProduct: {
|
|
@@ -753,6 +754,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
753
754
|
}[];
|
|
754
755
|
role?: any;
|
|
755
756
|
image?: string | null | undefined;
|
|
757
|
+
createdAt?: string | undefined;
|
|
756
758
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
757
759
|
}, {
|
|
758
760
|
banReason: string | null;
|
|
@@ -854,6 +856,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
854
856
|
type_object: string;
|
|
855
857
|
ban?: boolean | undefined;
|
|
856
858
|
id?: number | null | undefined;
|
|
859
|
+
createdAt?: string | Date | undefined;
|
|
857
860
|
responsible_id?: number | null | undefined;
|
|
858
861
|
equipment_id?: number | null | undefined;
|
|
859
862
|
user_id?: number | null | undefined;
|
|
@@ -883,7 +886,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
883
886
|
role_id?: number | null | undefined;
|
|
884
887
|
parent_action_idL?: number | null | undefined;
|
|
885
888
|
production_task_id?: number | null | undefined;
|
|
886
|
-
createdAt?: string | Date | undefined;
|
|
887
889
|
revision_id?: number | null | undefined;
|
|
888
890
|
}[];
|
|
889
891
|
responsibleForProduct: {
|
|
@@ -956,6 +958,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
956
958
|
};
|
|
957
959
|
}[] | undefined;
|
|
958
960
|
image?: string | null | undefined;
|
|
961
|
+
createdAt?: string | undefined;
|
|
959
962
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
960
963
|
}>, "many">>;
|
|
961
964
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1072,6 +1075,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1072
1075
|
action: import("../..").IActionText[];
|
|
1073
1076
|
type_object: string;
|
|
1074
1077
|
id?: number | null | undefined;
|
|
1078
|
+
createdAt?: string | Date | undefined;
|
|
1075
1079
|
responsible_id?: number | null | undefined;
|
|
1076
1080
|
equipment_id?: number | null | undefined;
|
|
1077
1081
|
user_id?: number | null | undefined;
|
|
@@ -1101,7 +1105,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1101
1105
|
role_id?: number | null | undefined;
|
|
1102
1106
|
parent_action_idL?: number | null | undefined;
|
|
1103
1107
|
production_task_id?: number | null | undefined;
|
|
1104
|
-
createdAt?: string | Date | undefined;
|
|
1105
1108
|
revision_id?: number | null | undefined;
|
|
1106
1109
|
}[];
|
|
1107
1110
|
responsibleForProduct: {
|
|
@@ -1165,6 +1168,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1165
1168
|
}[];
|
|
1166
1169
|
role?: any;
|
|
1167
1170
|
image?: string | null | undefined;
|
|
1171
|
+
createdAt?: string | undefined;
|
|
1168
1172
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
1169
1173
|
}[] | undefined;
|
|
1170
1174
|
}, {
|
|
@@ -1271,6 +1275,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1271
1275
|
type_object: string;
|
|
1272
1276
|
ban?: boolean | undefined;
|
|
1273
1277
|
id?: number | null | undefined;
|
|
1278
|
+
createdAt?: string | Date | undefined;
|
|
1274
1279
|
responsible_id?: number | null | undefined;
|
|
1275
1280
|
equipment_id?: number | null | undefined;
|
|
1276
1281
|
user_id?: number | null | undefined;
|
|
@@ -1300,7 +1305,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1300
1305
|
role_id?: number | null | undefined;
|
|
1301
1306
|
parent_action_idL?: number | null | undefined;
|
|
1302
1307
|
production_task_id?: number | null | undefined;
|
|
1303
|
-
createdAt?: string | Date | undefined;
|
|
1304
1308
|
revision_id?: number | null | undefined;
|
|
1305
1309
|
}[];
|
|
1306
1310
|
responsibleForProduct: {
|
|
@@ -1373,6 +1377,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
1373
1377
|
};
|
|
1374
1378
|
}[] | undefined;
|
|
1375
1379
|
image?: string | null | undefined;
|
|
1380
|
+
createdAt?: string | undefined;
|
|
1376
1381
|
subdivision?: import("../../user").EnumSubdivision | undefined;
|
|
1377
1382
|
}[] | undefined;
|
|
1378
1383
|
description?: string | undefined;
|
|
@@ -20,8 +20,8 @@ export declare const RemainSchema: z.ZodObject<{
|
|
|
20
20
|
description: string;
|
|
21
21
|
id: number;
|
|
22
22
|
name: string;
|
|
23
|
-
quantity: number;
|
|
24
23
|
createdAt: string | Date;
|
|
24
|
+
quantity: number;
|
|
25
25
|
attetion: boolean;
|
|
26
26
|
min_remaining?: number | undefined;
|
|
27
27
|
shipments_kolvo?: number | undefined;
|
|
@@ -35,8 +35,8 @@ export declare const RemainSchema: z.ZodObject<{
|
|
|
35
35
|
description: string;
|
|
36
36
|
id: number;
|
|
37
37
|
name: string;
|
|
38
|
-
quantity: number;
|
|
39
38
|
createdAt: string | Date;
|
|
39
|
+
quantity: number;
|
|
40
40
|
attetion: boolean;
|
|
41
41
|
min_remaining?: number | undefined;
|
|
42
42
|
shipments_kolvo?: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusShipment } from '../../utils';
|
|
2
|
+
import { ProductionPlanSortField, statusShipment } from '../../utils';
|
|
3
3
|
export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
4
4
|
offset: z.ZodNumber;
|
|
5
5
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -17,15 +17,19 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
|
17
17
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
searchStr: z.ZodOptional<z.ZodString>;
|
|
19
19
|
attributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
|
|
21
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
20
22
|
}, "strip", z.ZodTypeAny, {
|
|
21
23
|
status: statusShipment[];
|
|
22
24
|
dateRange: {
|
|
23
25
|
start: string;
|
|
24
26
|
end: string;
|
|
25
27
|
} | null;
|
|
28
|
+
sortDesc: boolean;
|
|
26
29
|
offset: number;
|
|
27
30
|
attributes?: string[] | undefined;
|
|
28
31
|
parentId?: number | null | undefined;
|
|
32
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
29
33
|
searchStr?: string | undefined;
|
|
30
34
|
companyId?: number | null | undefined;
|
|
31
35
|
}, {
|
|
@@ -37,6 +41,8 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
|
37
41
|
offset: number;
|
|
38
42
|
attributes?: string[] | undefined;
|
|
39
43
|
parentId?: number | null | undefined;
|
|
44
|
+
sortField?: ProductionPlanSortField | null | undefined;
|
|
45
|
+
sortDesc?: boolean | undefined;
|
|
40
46
|
searchStr?: string | undefined;
|
|
41
47
|
companyId?: number | null | undefined;
|
|
42
48
|
}>;
|
|
@@ -16,5 +16,7 @@ exports.ShipmentsPaginateSchema = zod_1.z.object({
|
|
|
16
16
|
]),
|
|
17
17
|
companyId: zod_1.z.number().int().nullish(),
|
|
18
18
|
searchStr: zod_1.z.string().optional(),
|
|
19
|
-
attributes: zod_1.z.array(zod_1.z.string()).optional()
|
|
19
|
+
attributes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
20
|
+
sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
|
|
21
|
+
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
20
22
|
});
|