@pksep/zod-shared 0.0.557 → 0.0.558
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +4 -1
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +3 -0
- package/dist/cbed/dto/get-deficit.dto.d.ts +4 -1
- package/dist/cbed/dto/get-deficit.dto.js +4 -1
- package/dist/detal/dto/get-deficit.dto.d.ts +4 -1
- package/dist/detal/dto/get-deficit.dto.js +4 -1
- package/dist/material/dto/get-deficit.dto.d.ts +4 -1
- package/dist/material/dto/get-deficit.dto.js +4 -1
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +4 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -0
- package/dist/operations/dto/create-type-operation.dto.d.ts +22 -22
- package/dist/operations/dto/create-type-operation.dto.js +12 -12
- package/dist/product/dto/get-deficit.dto.d.ts +4 -1
- package/dist/product/dto/get-deficit.dto.js +4 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +4 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +44 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +8 -0
- package/dist/shipments/dto/shipments-paginate.dto.d.ts +4 -1
- package/dist/shipments/dto/shipments-paginate.dto.js +3 -0
- package/dist/shipments/dto/up-create-shipments.dto.js +3 -5
- package/dist/utils/enums.d.ts +5 -0
- package/dist/utils/enums.js +7 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
|
-
import { AssembleIzdEnum } from '../../utils';
|
|
3
|
+
import { AssembleIzdEnum, WarehouseReadinessDateFilterEnum } from '../../utils';
|
|
4
4
|
export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
|
|
5
5
|
page: z.ZodNumber;
|
|
6
6
|
searchString: z.ZodString;
|
|
@@ -9,6 +9,7 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof AssembleIzdEnum>>>>;
|
|
10
10
|
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
11
11
|
isDiscontinued: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
12
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
12
13
|
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
14
|
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
14
15
|
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -29,6 +30,7 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
|
|
|
29
30
|
searchString: string;
|
|
30
31
|
isDiscontinued: boolean | null;
|
|
31
32
|
responsibleUserId?: number | null | undefined;
|
|
33
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
32
34
|
byParents?: IFiltersByParents | null | undefined;
|
|
33
35
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
34
36
|
}, {
|
|
@@ -41,6 +43,7 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
|
|
|
41
43
|
}[] | undefined;
|
|
42
44
|
responsibleUserId?: number | null | undefined;
|
|
43
45
|
isDiscontinued?: boolean | null | undefined;
|
|
46
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
44
47
|
byParents?: IFiltersByParents | null | undefined;
|
|
45
48
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
46
49
|
}>;
|
|
@@ -11,5 +11,8 @@ exports.GetAssembleScladPaginationDtoZod = zod_1.z.object({
|
|
|
11
11
|
type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).nullish().default(utils_1.AssembleIzdEnum.all),
|
|
12
12
|
byOrder: zod_1.z.custom().nullable().optional(),
|
|
13
13
|
isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
|
|
14
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
15
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
16
|
+
.optional(),
|
|
14
17
|
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
15
18
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusWorkingsDeficit } from '../../utils';
|
|
2
|
+
import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } from '../../utils';
|
|
3
3
|
export declare const GetDeficitDtoZod: z.ZodObject<{
|
|
4
4
|
cbedIds: z.ZodArray<z.ZodNumber, "many">;
|
|
5
5
|
page: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -17,6 +17,7 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
|
|
|
17
17
|
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
18
18
|
sortDesc?: boolean | undefined;
|
|
19
19
|
}>, "many">>>;
|
|
20
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
sort: {
|
|
22
23
|
sortDesc: boolean;
|
|
@@ -28,6 +29,7 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
|
|
|
28
29
|
cbedIds: number[];
|
|
29
30
|
page?: number | null | undefined;
|
|
30
31
|
shipmentIds?: number[] | null | undefined;
|
|
32
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
31
33
|
}, {
|
|
32
34
|
searchString: string;
|
|
33
35
|
statusWorking: statusWorkingsDeficit;
|
|
@@ -39,5 +41,6 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
|
|
|
39
41
|
page?: number | null | undefined;
|
|
40
42
|
isDiscontinued?: boolean | null | undefined;
|
|
41
43
|
shipmentIds?: number[] | null | undefined;
|
|
44
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
42
45
|
}>;
|
|
43
46
|
export type GetDeficitDtoZodType = z.infer<typeof GetDeficitDtoZod>;
|
|
@@ -10,5 +10,8 @@ exports.GetDeficitDtoZod = zod_1.z.object({
|
|
|
10
10
|
searchString: zod_1.z.string(),
|
|
11
11
|
shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
12
12
|
isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
|
|
13
|
-
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
13
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([]),
|
|
14
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
15
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
16
|
+
.optional()
|
|
14
17
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusWorkingsDeficit } from '../../utils';
|
|
2
|
+
import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } from '../../utils';
|
|
3
3
|
export declare const GetDetalDeficitDtoZod: z.ZodObject<{
|
|
4
4
|
detalIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
5
5
|
statusWorking: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof statusWorkingsDeficit>>>;
|
|
@@ -17,6 +17,7 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
|
|
|
17
17
|
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
18
18
|
sortDesc?: boolean | undefined;
|
|
19
19
|
}>, "many">>>;
|
|
20
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
sort: {
|
|
22
23
|
sortDesc: boolean;
|
|
@@ -28,6 +29,7 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
|
|
|
28
29
|
detalIds: number[];
|
|
29
30
|
statusWorking: statusWorkingsDeficit;
|
|
30
31
|
shipmentIds: number[] | null;
|
|
32
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
31
33
|
}, {
|
|
32
34
|
page: number;
|
|
33
35
|
sort?: {
|
|
@@ -39,5 +41,6 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
|
|
|
39
41
|
detalIds?: number[] | undefined;
|
|
40
42
|
statusWorking?: statusWorkingsDeficit | undefined;
|
|
41
43
|
shipmentIds?: number[] | null | undefined;
|
|
44
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
42
45
|
}>;
|
|
43
46
|
export type GetDetalDeficitDtoType = z.infer<typeof GetDetalDeficitDtoZod>;
|
|
@@ -13,5 +13,8 @@ exports.GetDetalDeficitDtoZod = zod_1.z.object({
|
|
|
13
13
|
shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
|
|
14
14
|
page: zod_1.z.number().int(),
|
|
15
15
|
isDiscontinued: zod_1.z.boolean().optional().default(false),
|
|
16
|
-
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
16
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([]),
|
|
17
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
18
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
19
|
+
.optional()
|
|
17
20
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusWorkingsDeficit } from '../../utils';
|
|
2
|
+
import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } from '../../utils';
|
|
3
3
|
export declare enum MaterialDeficitSortField {
|
|
4
4
|
plannedDeliveryDate = "plannedDeliveryDate"
|
|
5
5
|
}
|
|
@@ -32,6 +32,7 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
|
|
|
32
32
|
sortField?: MaterialDeficitSortField | null | undefined;
|
|
33
33
|
sortDesc?: boolean | undefined;
|
|
34
34
|
}>, "many">>>;
|
|
35
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
36
37
|
sort: {
|
|
37
38
|
sortDesc: boolean;
|
|
@@ -44,6 +45,7 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
|
|
|
44
45
|
materialIds: number[];
|
|
45
46
|
typeMaterialIds: number[];
|
|
46
47
|
subTypeMaterialIds: number[];
|
|
48
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
47
49
|
}, {
|
|
48
50
|
page: number;
|
|
49
51
|
sort?: {
|
|
@@ -53,6 +55,7 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
|
|
|
53
55
|
searchString?: string | undefined;
|
|
54
56
|
statusWorking?: statusWorkingsDeficit | undefined;
|
|
55
57
|
shipmentIds?: number[] | null | undefined;
|
|
58
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
56
59
|
materialIds?: number[] | undefined;
|
|
57
60
|
typeMaterialIds?: number[] | undefined;
|
|
58
61
|
subTypeMaterialIds?: number[] | undefined;
|
|
@@ -22,5 +22,8 @@ exports.GetMaterialDeficitDtoZod = zod_1.z.object({
|
|
|
22
22
|
searchString: zod_1.z.string().optional().default(''),
|
|
23
23
|
shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
|
|
24
24
|
page: zod_1.z.number().int(),
|
|
25
|
-
sort: zod_1.z.array(exports.MaterialDeficitSortRuleSchema).optional().default([])
|
|
25
|
+
sort: zod_1.z.array(exports.MaterialDeficitSortRuleSchema).optional().default([]),
|
|
26
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
27
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
28
|
+
.optional()
|
|
26
29
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WarehouseReadinessDateFilterEnum } from '../../utils';
|
|
2
3
|
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
4
|
export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
|
|
4
5
|
page: z.ZodNumber;
|
|
@@ -10,6 +11,7 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
|
|
|
10
11
|
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
11
12
|
childrenByProductionTaskIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
12
13
|
isDiscontinued: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
14
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
13
15
|
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
16
|
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
15
17
|
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -30,6 +32,7 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
|
|
|
30
32
|
isBan: boolean;
|
|
31
33
|
isDiscontinued: boolean | null;
|
|
32
34
|
responsibleUserId?: number | null | undefined;
|
|
35
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
33
36
|
byParents?: IFiltersByParents | null | undefined;
|
|
34
37
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
35
38
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
@@ -44,6 +47,7 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
|
|
|
44
47
|
}[] | undefined;
|
|
45
48
|
responsibleUserId?: number | null | undefined;
|
|
46
49
|
isDiscontinued?: boolean | null | undefined;
|
|
50
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
47
51
|
byParents?: IFiltersByParents | null | undefined;
|
|
48
52
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
49
53
|
childrenByProductionTaskIds?: number[] | null | undefined;
|
|
@@ -13,5 +13,8 @@ exports.GetMetaloworkingPaginationDtoZod = zod_1.z.object({
|
|
|
13
13
|
byOrder: zod_1.z.custom().nullable().optional(),
|
|
14
14
|
childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
|
|
15
15
|
isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
|
|
16
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
17
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
18
|
+
.optional(),
|
|
16
19
|
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
17
20
|
});
|
|
@@ -2,19 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
import { WorkStartCalcType } from '../enums/enums';
|
|
3
3
|
export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
preTime: z.ZodBoolean
|
|
6
|
-
helperTime: z.ZodBoolean
|
|
7
|
-
mainTime: z.ZodBoolean
|
|
8
|
-
cpu: z.ZodBoolean
|
|
9
|
-
square: z.ZodBoolean
|
|
10
|
-
list: z.ZodBoolean
|
|
5
|
+
preTime: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
helperTime: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
mainTime: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
cpu: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
square: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
list: z.ZodDefault<z.ZodBoolean>;
|
|
11
11
|
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
12
12
|
equipmentIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
13
|
-
metaloworking: z.ZodBoolean
|
|
14
|
-
assembly: z.ZodBoolean
|
|
15
|
-
sclad: z.ZodBoolean
|
|
16
|
-
preTimeMinute: z.ZodNumber
|
|
17
|
-
helperTimeMinute: z.ZodNumber
|
|
13
|
+
metaloworking: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
assembly: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
sclad: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
+
preTimeMinute: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
helperTimeMinute: z.ZodDefault<z.ZodNumber>;
|
|
18
18
|
workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
metaloworking: boolean;
|
|
@@ -33,20 +33,20 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
|
|
|
33
33
|
helperTimeMinute: number;
|
|
34
34
|
users?: number[] | null | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
metaloworking: boolean;
|
|
37
36
|
name: string;
|
|
38
|
-
|
|
39
|
-
helperTime: boolean;
|
|
40
|
-
mainTime: boolean;
|
|
41
|
-
cpu: boolean;
|
|
42
|
-
square: boolean;
|
|
43
|
-
list: boolean;
|
|
44
|
-
assembly: boolean;
|
|
45
|
-
sclad: boolean;
|
|
46
|
-
preTimeMinute: number;
|
|
47
|
-
helperTimeMinute: number;
|
|
37
|
+
metaloworking?: boolean | undefined;
|
|
48
38
|
users?: number[] | null | undefined;
|
|
39
|
+
preTime?: boolean | undefined;
|
|
40
|
+
helperTime?: boolean | undefined;
|
|
41
|
+
mainTime?: boolean | undefined;
|
|
42
|
+
cpu?: boolean | undefined;
|
|
43
|
+
square?: boolean | undefined;
|
|
44
|
+
list?: boolean | undefined;
|
|
49
45
|
workStartCalcType?: WorkStartCalcType | undefined;
|
|
50
46
|
equipmentIds?: number[] | null | undefined;
|
|
47
|
+
assembly?: boolean | undefined;
|
|
48
|
+
sclad?: boolean | undefined;
|
|
49
|
+
preTimeMinute?: number | undefined;
|
|
50
|
+
helperTimeMinute?: number | undefined;
|
|
51
51
|
}>;
|
|
52
52
|
export type CreateTypeOperationDto = z.infer<typeof CreateTypeOperationSchema>;
|
|
@@ -4,20 +4,20 @@ exports.CreateTypeOperationSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const enums_1 = require("../enums/enums");
|
|
6
6
|
exports.CreateTypeOperationSchema = zod_1.z.object({
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
preTime: zod_1.z.boolean(),
|
|
9
|
-
helperTime: zod_1.z.boolean(),
|
|
10
|
-
mainTime: zod_1.z.boolean(),
|
|
11
|
-
cpu: zod_1.z.boolean(),
|
|
12
|
-
square: zod_1.z.boolean(),
|
|
13
|
-
list: zod_1.z.boolean(),
|
|
7
|
+
name: zod_1.z.string().trim().min(1),
|
|
8
|
+
preTime: zod_1.z.boolean().default(false),
|
|
9
|
+
helperTime: zod_1.z.boolean().default(false),
|
|
10
|
+
mainTime: zod_1.z.boolean().default(false),
|
|
11
|
+
cpu: zod_1.z.boolean().default(false),
|
|
12
|
+
square: zod_1.z.boolean().default(false),
|
|
13
|
+
list: zod_1.z.boolean().default(false),
|
|
14
14
|
users: zod_1.z.number().array().nullable().optional(),
|
|
15
15
|
equipmentIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
|
|
16
|
-
metaloworking: zod_1.z.boolean(),
|
|
17
|
-
assembly: zod_1.z.boolean(),
|
|
18
|
-
sclad: zod_1.z.boolean(),
|
|
19
|
-
preTimeMinute: zod_1.z.number(),
|
|
20
|
-
helperTimeMinute: zod_1.z.number(),
|
|
16
|
+
metaloworking: zod_1.z.boolean().default(false),
|
|
17
|
+
assembly: zod_1.z.boolean().default(false),
|
|
18
|
+
sclad: zod_1.z.boolean().default(false),
|
|
19
|
+
preTimeMinute: zod_1.z.number().default(0),
|
|
20
|
+
helperTimeMinute: zod_1.z.number().default(0),
|
|
21
21
|
workStartCalcType: zod_1.z
|
|
22
22
|
.nativeEnum(enums_1.WorkStartCalcType)
|
|
23
23
|
.default(enums_1.WorkStartCalcType.automatic)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusWorkingsDeficit } from '../../utils';
|
|
2
|
+
import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } 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>;
|
|
@@ -17,6 +17,7 @@ export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
|
17
17
|
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
18
18
|
sortDesc?: boolean | undefined;
|
|
19
19
|
}>, "many">>>;
|
|
20
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
sort: {
|
|
22
23
|
sortDesc: boolean;
|
|
@@ -28,6 +29,7 @@ export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
|
28
29
|
productIds: number[];
|
|
29
30
|
page?: number | undefined;
|
|
30
31
|
shipmentIds?: number[] | null | undefined;
|
|
32
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
31
33
|
}, {
|
|
32
34
|
searchString: string;
|
|
33
35
|
statusWorking: statusWorkingsDeficit;
|
|
@@ -39,5 +41,6 @@ export declare const GetDeficitProductSchema: z.ZodObject<{
|
|
|
39
41
|
page?: number | undefined;
|
|
40
42
|
isDiscontinued?: boolean | null | undefined;
|
|
41
43
|
shipmentIds?: number[] | null | undefined;
|
|
44
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
42
45
|
}>;
|
|
43
46
|
export type GetDeficitProductDtoType = z.infer<typeof GetDeficitProductSchema>;
|
|
@@ -10,5 +10,8 @@ exports.GetDeficitProductSchema = zod_1.z.object({
|
|
|
10
10
|
shipmentIds: zod_1.z.number().int().array().optional().nullable(),
|
|
11
11
|
page: zod_1.z.number().int().optional(),
|
|
12
12
|
isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
|
|
13
|
-
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
13
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([]),
|
|
14
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
15
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
16
|
+
.optional()
|
|
14
17
|
});
|
|
@@ -133,6 +133,9 @@ export interface IgetTaskByOperations {
|
|
|
133
133
|
ordered: number;
|
|
134
134
|
typeOperationId: number;
|
|
135
135
|
firstPlanReadyDate: Date | null;
|
|
136
|
+
prevOperation?: ITaskByOperations | null;
|
|
137
|
+
nextOperation?: ITaskByOperations | null;
|
|
138
|
+
nextOperationCalculateNeedsTime?: Date | null;
|
|
136
139
|
};
|
|
137
140
|
}
|
|
138
141
|
export interface ITaskByOperations {
|
|
@@ -157,6 +160,7 @@ export interface ITaskByOperations {
|
|
|
157
160
|
planReadyTime: Date;
|
|
158
161
|
name: string;
|
|
159
162
|
fullName: string;
|
|
163
|
+
calculateNeedsTime?: Date | null;
|
|
160
164
|
}
|
|
161
165
|
export interface IGetDeficitsDetalByProductionTask {
|
|
162
166
|
detalId: number;
|
|
@@ -21,8 +21,10 @@ export declare const OrdersSummaryShipmentZod: z.ZodObject<{
|
|
|
21
21
|
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
parentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
24
|
+
parentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
24
25
|
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
25
26
|
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
27
|
+
shipmentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
26
28
|
quantity: z.ZodNumber;
|
|
27
29
|
requiredReadyDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
28
30
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -33,8 +35,10 @@ export declare const OrdersSummaryShipmentZod: z.ZodObject<{
|
|
|
33
35
|
parentPTQuantity: number | null;
|
|
34
36
|
parentPTNeed: number | null;
|
|
35
37
|
parentWarehouseReadinessDate: string | Date | null;
|
|
38
|
+
parentReadinessDate: string | Date | null;
|
|
36
39
|
shipmentNumber: string | null;
|
|
37
40
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
41
|
+
shipmentReadinessDate: string | Date | null;
|
|
38
42
|
}, {
|
|
39
43
|
quantity: number;
|
|
40
44
|
shipmentId: number | null;
|
|
@@ -43,8 +47,10 @@ export declare const OrdersSummaryShipmentZod: z.ZodObject<{
|
|
|
43
47
|
parentPTQuantity: number | null;
|
|
44
48
|
parentPTNeed: number | null;
|
|
45
49
|
parentWarehouseReadinessDate: string | Date | null;
|
|
50
|
+
parentReadinessDate: string | Date | null;
|
|
46
51
|
shipmentNumber: string | null;
|
|
47
52
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
53
|
+
shipmentReadinessDate: string | Date | null;
|
|
48
54
|
}>;
|
|
49
55
|
export declare const OrdersSummaryStockOrderZod: z.ZodObject<{
|
|
50
56
|
stockOrderItemId: z.ZodNumber;
|
|
@@ -77,8 +83,10 @@ export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
|
77
83
|
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
78
84
|
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
79
85
|
parentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
86
|
+
parentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
80
87
|
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
81
88
|
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
89
|
+
shipmentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
82
90
|
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
83
91
|
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
84
92
|
demandQuantity: z.ZodNumber;
|
|
@@ -92,8 +100,10 @@ export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
|
92
100
|
parentPTQuantity: number | null;
|
|
93
101
|
parentPTNeed: number | null;
|
|
94
102
|
parentWarehouseReadinessDate: string | Date | null;
|
|
103
|
+
parentReadinessDate: string | Date | null;
|
|
95
104
|
shipmentNumber: string | null;
|
|
96
105
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
106
|
+
shipmentReadinessDate: string | Date | null;
|
|
97
107
|
quantityByProductionTask: number;
|
|
98
108
|
quantityByShipment: number | null;
|
|
99
109
|
shipmentNeed: number | null;
|
|
@@ -107,8 +117,10 @@ export declare const OrdersSummaryDemandRowZod: z.ZodObject<{
|
|
|
107
117
|
parentPTQuantity: number | null;
|
|
108
118
|
parentPTNeed: number | null;
|
|
109
119
|
parentWarehouseReadinessDate: string | Date | null;
|
|
120
|
+
parentReadinessDate: string | Date | null;
|
|
110
121
|
shipmentNumber: string | null;
|
|
111
122
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
123
|
+
shipmentReadinessDate: string | Date | null;
|
|
112
124
|
quantityByProductionTask: number;
|
|
113
125
|
quantityByShipment: number | null;
|
|
114
126
|
shipmentNeed: number | null;
|
|
@@ -124,8 +136,10 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
124
136
|
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
125
137
|
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
126
138
|
parentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
139
|
+
parentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
127
140
|
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
128
141
|
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
142
|
+
shipmentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
129
143
|
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
130
144
|
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
131
145
|
stockOrderItemId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -134,7 +148,9 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
134
148
|
quantityByStockOrder: z.ZodNumber;
|
|
135
149
|
stockOrderNeed: z.ZodNumber;
|
|
136
150
|
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
151
|
+
stockReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
137
152
|
deficitWithPlannedIncoming: z.ZodNumber;
|
|
153
|
+
plannedIncomingFinal: z.ZodNumber;
|
|
138
154
|
deficit: z.ZodNumber;
|
|
139
155
|
}, "strip", z.ZodTypeAny, {
|
|
140
156
|
deficit: number;
|
|
@@ -147,8 +163,10 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
147
163
|
parentPTQuantity: number | null;
|
|
148
164
|
parentPTNeed: number | null;
|
|
149
165
|
parentWarehouseReadinessDate: string | Date | null;
|
|
166
|
+
parentReadinessDate: string | Date | null;
|
|
150
167
|
shipmentNumber: string | null;
|
|
151
168
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
169
|
+
shipmentReadinessDate: string | Date | null;
|
|
152
170
|
stockOrderItemId: number | null;
|
|
153
171
|
stockOrderId: number | null;
|
|
154
172
|
quantityByProductionTask: number;
|
|
@@ -157,7 +175,9 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
157
175
|
positionNumber: number | null;
|
|
158
176
|
quantityByStockOrder: number;
|
|
159
177
|
stockOrderNeed: number;
|
|
178
|
+
stockReadinessDate: string | Date | null;
|
|
160
179
|
deficitWithPlannedIncoming: number;
|
|
180
|
+
plannedIncomingFinal: number;
|
|
161
181
|
}, {
|
|
162
182
|
deficit: number;
|
|
163
183
|
warehouseReadinessDate: string | Date | null;
|
|
@@ -169,8 +189,10 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
169
189
|
parentPTQuantity: number | null;
|
|
170
190
|
parentPTNeed: number | null;
|
|
171
191
|
parentWarehouseReadinessDate: string | Date | null;
|
|
192
|
+
parentReadinessDate: string | Date | null;
|
|
172
193
|
shipmentNumber: string | null;
|
|
173
194
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
195
|
+
shipmentReadinessDate: string | Date | null;
|
|
174
196
|
stockOrderItemId: number | null;
|
|
175
197
|
stockOrderId: number | null;
|
|
176
198
|
quantityByProductionTask: number;
|
|
@@ -179,7 +201,9 @@ export declare const OrdersSummaryByEntityRowZod: z.ZodObject<{
|
|
|
179
201
|
positionNumber: number | null;
|
|
180
202
|
quantityByStockOrder: number;
|
|
181
203
|
stockOrderNeed: number;
|
|
204
|
+
stockReadinessDate: string | Date | null;
|
|
182
205
|
deficitWithPlannedIncoming: number;
|
|
206
|
+
plannedIncomingFinal: number;
|
|
183
207
|
}>;
|
|
184
208
|
export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
185
209
|
rows: z.ZodArray<z.ZodObject<{
|
|
@@ -192,8 +216,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
192
216
|
parentPTQuantity: z.ZodNullable<z.ZodNumber>;
|
|
193
217
|
parentPTNeed: z.ZodNullable<z.ZodNumber>;
|
|
194
218
|
parentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
219
|
+
parentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
195
220
|
shipmentNumber: z.ZodNullable<z.ZodString>;
|
|
196
221
|
shipmentWarehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
222
|
+
shipmentReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
197
223
|
quantityByShipment: z.ZodNullable<z.ZodNumber>;
|
|
198
224
|
shipmentNeed: z.ZodNullable<z.ZodNumber>;
|
|
199
225
|
stockOrderItemId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -202,7 +228,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
202
228
|
quantityByStockOrder: z.ZodNumber;
|
|
203
229
|
stockOrderNeed: z.ZodNumber;
|
|
204
230
|
warehouseReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
231
|
+
stockReadinessDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
205
232
|
deficitWithPlannedIncoming: z.ZodNumber;
|
|
233
|
+
plannedIncomingFinal: z.ZodNumber;
|
|
206
234
|
deficit: z.ZodNumber;
|
|
207
235
|
}, "strip", z.ZodTypeAny, {
|
|
208
236
|
deficit: number;
|
|
@@ -215,8 +243,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
215
243
|
parentPTQuantity: number | null;
|
|
216
244
|
parentPTNeed: number | null;
|
|
217
245
|
parentWarehouseReadinessDate: string | Date | null;
|
|
246
|
+
parentReadinessDate: string | Date | null;
|
|
218
247
|
shipmentNumber: string | null;
|
|
219
248
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
249
|
+
shipmentReadinessDate: string | Date | null;
|
|
220
250
|
stockOrderItemId: number | null;
|
|
221
251
|
stockOrderId: number | null;
|
|
222
252
|
quantityByProductionTask: number;
|
|
@@ -225,7 +255,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
225
255
|
positionNumber: number | null;
|
|
226
256
|
quantityByStockOrder: number;
|
|
227
257
|
stockOrderNeed: number;
|
|
258
|
+
stockReadinessDate: string | Date | null;
|
|
228
259
|
deficitWithPlannedIncoming: number;
|
|
260
|
+
plannedIncomingFinal: number;
|
|
229
261
|
}, {
|
|
230
262
|
deficit: number;
|
|
231
263
|
warehouseReadinessDate: string | Date | null;
|
|
@@ -237,8 +269,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
237
269
|
parentPTQuantity: number | null;
|
|
238
270
|
parentPTNeed: number | null;
|
|
239
271
|
parentWarehouseReadinessDate: string | Date | null;
|
|
272
|
+
parentReadinessDate: string | Date | null;
|
|
240
273
|
shipmentNumber: string | null;
|
|
241
274
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
275
|
+
shipmentReadinessDate: string | Date | null;
|
|
242
276
|
stockOrderItemId: number | null;
|
|
243
277
|
stockOrderId: number | null;
|
|
244
278
|
quantityByProductionTask: number;
|
|
@@ -247,7 +281,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
247
281
|
positionNumber: number | null;
|
|
248
282
|
quantityByStockOrder: number;
|
|
249
283
|
stockOrderNeed: number;
|
|
284
|
+
stockReadinessDate: string | Date | null;
|
|
250
285
|
deficitWithPlannedIncoming: number;
|
|
286
|
+
plannedIncomingFinal: number;
|
|
251
287
|
}>, "many">;
|
|
252
288
|
totalOrderNeed: z.ZodNumber;
|
|
253
289
|
totalQuantityByStockOrder: z.ZodNumber;
|
|
@@ -266,8 +302,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
266
302
|
parentPTQuantity: number | null;
|
|
267
303
|
parentPTNeed: number | null;
|
|
268
304
|
parentWarehouseReadinessDate: string | Date | null;
|
|
305
|
+
parentReadinessDate: string | Date | null;
|
|
269
306
|
shipmentNumber: string | null;
|
|
270
307
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
308
|
+
shipmentReadinessDate: string | Date | null;
|
|
271
309
|
stockOrderItemId: number | null;
|
|
272
310
|
stockOrderId: number | null;
|
|
273
311
|
quantityByProductionTask: number;
|
|
@@ -276,7 +314,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
276
314
|
positionNumber: number | null;
|
|
277
315
|
quantityByStockOrder: number;
|
|
278
316
|
stockOrderNeed: number;
|
|
317
|
+
stockReadinessDate: string | Date | null;
|
|
279
318
|
deficitWithPlannedIncoming: number;
|
|
319
|
+
plannedIncomingFinal: number;
|
|
280
320
|
}[];
|
|
281
321
|
totalOrderNeed: number;
|
|
282
322
|
totalQuantityByStockOrder: number;
|
|
@@ -295,8 +335,10 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
295
335
|
parentPTQuantity: number | null;
|
|
296
336
|
parentPTNeed: number | null;
|
|
297
337
|
parentWarehouseReadinessDate: string | Date | null;
|
|
338
|
+
parentReadinessDate: string | Date | null;
|
|
298
339
|
shipmentNumber: string | null;
|
|
299
340
|
shipmentWarehouseReadinessDate: string | Date | null;
|
|
341
|
+
shipmentReadinessDate: string | Date | null;
|
|
300
342
|
stockOrderItemId: number | null;
|
|
301
343
|
stockOrderId: number | null;
|
|
302
344
|
quantityByProductionTask: number;
|
|
@@ -305,7 +347,9 @@ export declare const OrdersSummaryByEntityResponseZod: z.ZodObject<{
|
|
|
305
347
|
positionNumber: number | null;
|
|
306
348
|
quantityByStockOrder: number;
|
|
307
349
|
stockOrderNeed: number;
|
|
350
|
+
stockReadinessDate: string | Date | null;
|
|
308
351
|
deficitWithPlannedIncoming: number;
|
|
352
|
+
plannedIncomingFinal: number;
|
|
309
353
|
}[];
|
|
310
354
|
totalOrderNeed: number;
|
|
311
355
|
totalQuantityByStockOrder: number;
|
|
@@ -15,8 +15,10 @@ exports.OrdersSummaryShipmentZod = zod_1.z.object({
|
|
|
15
15
|
parentPTQuantity: zod_1.z.number().nullable(),
|
|
16
16
|
parentPTNeed: zod_1.z.number().nullable(),
|
|
17
17
|
parentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
18
|
+
parentReadinessDate: OrdersSummaryDateZod,
|
|
18
19
|
shipmentNumber: zod_1.z.string().nullable(),
|
|
19
20
|
shipmentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
21
|
+
shipmentReadinessDate: OrdersSummaryDateZod,
|
|
20
22
|
quantity: zod_1.z.number(),
|
|
21
23
|
requiredReadyDate: OrdersSummaryDateZod
|
|
22
24
|
});
|
|
@@ -37,8 +39,10 @@ exports.OrdersSummaryDemandRowZod = zod_1.z.object({
|
|
|
37
39
|
parentPTQuantity: zod_1.z.number().nullable(),
|
|
38
40
|
parentPTNeed: zod_1.z.number().nullable(),
|
|
39
41
|
parentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
42
|
+
parentReadinessDate: OrdersSummaryDateZod,
|
|
40
43
|
shipmentNumber: zod_1.z.string().nullable(),
|
|
41
44
|
shipmentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
45
|
+
shipmentReadinessDate: OrdersSummaryDateZod,
|
|
42
46
|
quantityByShipment: zod_1.z.number().nullable(),
|
|
43
47
|
shipmentNeed: zod_1.z.number().nullable(),
|
|
44
48
|
demandQuantity: zod_1.z.number(),
|
|
@@ -54,8 +58,10 @@ exports.OrdersSummaryByEntityRowZod = zod_1.z.object({
|
|
|
54
58
|
parentPTQuantity: zod_1.z.number().nullable(),
|
|
55
59
|
parentPTNeed: zod_1.z.number().nullable(),
|
|
56
60
|
parentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
61
|
+
parentReadinessDate: OrdersSummaryDateZod,
|
|
57
62
|
shipmentNumber: zod_1.z.string().nullable(),
|
|
58
63
|
shipmentWarehouseReadinessDate: OrdersSummaryDateZod,
|
|
64
|
+
shipmentReadinessDate: OrdersSummaryDateZod,
|
|
59
65
|
quantityByShipment: zod_1.z.number().nullable(),
|
|
60
66
|
shipmentNeed: zod_1.z.number().nullable(),
|
|
61
67
|
stockOrderItemId: zod_1.z.number().nullable(),
|
|
@@ -64,7 +70,9 @@ exports.OrdersSummaryByEntityRowZod = zod_1.z.object({
|
|
|
64
70
|
quantityByStockOrder: zod_1.z.number(),
|
|
65
71
|
stockOrderNeed: zod_1.z.number(),
|
|
66
72
|
warehouseReadinessDate: OrdersSummaryDateZod,
|
|
73
|
+
stockReadinessDate: OrdersSummaryDateZod,
|
|
67
74
|
deficitWithPlannedIncoming: zod_1.z.number(),
|
|
75
|
+
plannedIncomingFinal: zod_1.z.number(),
|
|
68
76
|
deficit: zod_1.z.number()
|
|
69
77
|
});
|
|
70
78
|
exports.OrdersSummaryByEntityResponseZod = zod_1.z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { statusShipment } from '../../utils';
|
|
2
|
+
import { statusShipment, WarehouseReadinessDateFilterEnum } 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,6 +17,7 @@ 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
|
+
warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
|
|
20
21
|
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
22
|
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
22
23
|
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -40,6 +41,7 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
|
40
41
|
offset: number;
|
|
41
42
|
attributes?: string[] | undefined;
|
|
42
43
|
parentId?: number | null | undefined;
|
|
44
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
43
45
|
searchStr?: string | undefined;
|
|
44
46
|
companyId?: number | null | undefined;
|
|
45
47
|
}, {
|
|
@@ -55,6 +57,7 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
|
|
|
55
57
|
}[] | undefined;
|
|
56
58
|
attributes?: string[] | undefined;
|
|
57
59
|
parentId?: number | null | undefined;
|
|
60
|
+
warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
|
|
58
61
|
searchStr?: string | undefined;
|
|
59
62
|
companyId?: number | null | undefined;
|
|
60
63
|
}>;
|
|
@@ -17,5 +17,8 @@ exports.ShipmentsPaginateSchema = zod_1.z.object({
|
|
|
17
17
|
companyId: zod_1.z.number().int().nullish(),
|
|
18
18
|
searchStr: zod_1.z.string().optional(),
|
|
19
19
|
attributes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
20
|
+
warehouseReadinessDateFilter: zod_1.z
|
|
21
|
+
.nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
|
|
22
|
+
.optional(),
|
|
20
23
|
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
21
24
|
});
|
|
@@ -47,12 +47,10 @@ const optionalNumericIdSchema = zod_1.z.preprocess(value => {
|
|
|
47
47
|
return value;
|
|
48
48
|
}, zod_1.z.number().int().positive().optional());
|
|
49
49
|
const nullableDateSchema = zod_1.z.preprocess(value => {
|
|
50
|
-
if (value === undefined
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
value === 'null') {
|
|
50
|
+
if (value === undefined)
|
|
51
|
+
return undefined;
|
|
52
|
+
if (value === null || value === '' || value === 'null')
|
|
54
53
|
return null;
|
|
55
|
-
}
|
|
56
54
|
return value;
|
|
57
55
|
}, zod_1.z.string().datetime({ offset: true }).nullable().optional());
|
|
58
56
|
const shipmentQuantitySchema = zod_1.z.preprocess(value => {
|
package/dist/utils/enums.d.ts
CHANGED
|
@@ -110,6 +110,11 @@ export declare enum SortReadinesEnum {
|
|
|
110
110
|
no = "no",
|
|
111
111
|
any = "any"
|
|
112
112
|
}
|
|
113
|
+
/** Варианты фильтра по дате плановой готовности склада. */
|
|
114
|
+
export declare enum WarehouseReadinessDateFilterEnum {
|
|
115
|
+
all = "all",
|
|
116
|
+
requiredDateMismatch = "requiredDateMismatch"
|
|
117
|
+
}
|
|
113
118
|
/**
|
|
114
119
|
* Enum для обозначения типов производственных операций.
|
|
115
120
|
* @readonly
|
package/dist/utils/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnumExclusionType = exports.EnumStatusOrder = exports.EnumRequisitesUserType = exports.EnumRequisitesType = exports.FileCategory = exports.SpetificationEntityKeys = exports.MetalloworkingStatus = exports.InstansMaterial = exports.InstansTypeInstrument = exports.ParentTypeEnum = exports.IMG_TYPES = exports.UnitsEnum = exports.FileType = exports.WorkSpaceObject = exports.enumDeficit = exports.statusWorkingsDeficit = exports.MovementObjectBase = exports.ActionType = exports.ModuleIncludeForAvatarEnum = exports.ModuleIncludeForDocumentEnum = exports.ModuleInclude = exports.MovementObjectType = exports.WaybilTypeComingEnums = exports.WorkingItemType = exports.AssembleStatus = exports.ProductionOperationType = exports.SortReadinesEnum = exports.AssembleIzdEnum = exports.StockOrderType = exports.RevisionEntityTypes = exports.Neo4jEntityTypes = exports.EntityTypes = exports.EnumEntityDeliveryItem = exports.EnumStatusDelivery = exports.statusShipment = exports.StatusScladWorking = exports.IzdType = exports.bullJobStatusEnum = exports.TypeSubTypeEntities = exports.StatusIssue = exports.EnumFilePrefix = exports.QueueStatusEnum = exports.StatusAssembleKit = void 0;
|
|
3
|
+
exports.EnumExclusionType = exports.EnumStatusOrder = exports.EnumRequisitesUserType = exports.EnumRequisitesType = exports.FileCategory = exports.SpetificationEntityKeys = exports.MetalloworkingStatus = exports.InstansMaterial = exports.InstansTypeInstrument = exports.ParentTypeEnum = exports.IMG_TYPES = exports.UnitsEnum = exports.FileType = exports.WorkSpaceObject = exports.enumDeficit = exports.statusWorkingsDeficit = exports.MovementObjectBase = exports.ActionType = exports.ModuleIncludeForAvatarEnum = exports.ModuleIncludeForDocumentEnum = exports.ModuleInclude = exports.MovementObjectType = exports.WaybilTypeComingEnums = exports.WorkingItemType = exports.AssembleStatus = exports.ProductionOperationType = exports.WarehouseReadinessDateFilterEnum = exports.SortReadinesEnum = exports.AssembleIzdEnum = exports.StockOrderType = exports.RevisionEntityTypes = exports.Neo4jEntityTypes = exports.EntityTypes = exports.EnumEntityDeliveryItem = exports.EnumStatusDelivery = exports.statusShipment = exports.StatusScladWorking = exports.IzdType = exports.bullJobStatusEnum = exports.TypeSubTypeEntities = exports.StatusIssue = exports.EnumFilePrefix = exports.QueueStatusEnum = exports.StatusAssembleKit = void 0;
|
|
4
4
|
var StatusAssembleKit;
|
|
5
5
|
(function (StatusAssembleKit) {
|
|
6
6
|
StatusAssembleKit["collected"] = "\u0421\u043E\u0431\u0440\u0430\u043D\u043E";
|
|
@@ -130,6 +130,12 @@ var SortReadinesEnum;
|
|
|
130
130
|
SortReadinesEnum["no"] = "no";
|
|
131
131
|
SortReadinesEnum["any"] = "any";
|
|
132
132
|
})(SortReadinesEnum || (exports.SortReadinesEnum = SortReadinesEnum = {}));
|
|
133
|
+
/** Варианты фильтра по дате плановой готовности склада. */
|
|
134
|
+
var WarehouseReadinessDateFilterEnum;
|
|
135
|
+
(function (WarehouseReadinessDateFilterEnum) {
|
|
136
|
+
WarehouseReadinessDateFilterEnum["all"] = "all";
|
|
137
|
+
WarehouseReadinessDateFilterEnum["requiredDateMismatch"] = "requiredDateMismatch";
|
|
138
|
+
})(WarehouseReadinessDateFilterEnum || (exports.WarehouseReadinessDateFilterEnum = WarehouseReadinessDateFilterEnum = {}));
|
|
133
139
|
/**
|
|
134
140
|
* Enum для обозначения типов производственных операций.
|
|
135
141
|
* @readonly
|