@pksep/zod-shared 0.0.533 → 0.0.535
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 +6 -1
- package/dist/action/enums/enums.js +5 -0
- package/dist/assemble/dto/assembly-paginate.dto.d.ts +19 -7
- package/dist/assemble/dto/assembly-paginate.dto.js +1 -2
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +19 -7
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +1 -2
- package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +19 -7
- package/dist/assemble/dto/get-assemble-pagination.dto.js +1 -2
- package/dist/cbed/dto/get-deficit.dto.d.ts +19 -7
- package/dist/cbed/dto/get-deficit.dto.js +1 -2
- package/dist/detal/dto/get-deficit.dto.d.ts +19 -7
- package/dist/detal/dto/get-deficit.dto.js +1 -2
- package/dist/detal/schemas/detal-deficit.schema.d.ts +3 -0
- package/dist/detal/schemas/detal-deficit.schema.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/material/dto/get-deficit.dto.d.ts +19 -7
- package/dist/material/dto/get-deficit.dto.js +1 -2
- package/dist/material/index.d.ts +1 -0
- package/dist/material/index.js +1 -0
- package/dist/material/schemas/material-shipments-response.schema.d.ts +733 -0
- package/dist/material/schemas/material-shipments-response.schema.js +21 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +18 -7
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +1 -2
- package/dist/product/dto/get-deficit.dto.d.ts +19 -7
- package/dist/product/dto/get-deficit.dto.js +1 -2
- package/dist/product/schemas/product-deficit.schema.d.ts +3 -0
- package/dist/product/schemas/product-deficit.schema.js +2 -1
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +18 -7
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +1 -2
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +3 -3
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +3 -1
- package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +3 -3
- package/dist/production-tasks/dto/get-production-task-by-user.dto.js +3 -1
- package/dist/production-tasks/dto/online-board-working.dto.d.ts +19 -7
- package/dist/production-tasks/dto/online-board-working.dto.js +1 -2
- package/dist/production-tasks/interfaces/production-tasks.d.ts +1 -0
- package/dist/role/default-value/index.js +6 -0
- package/dist/shipments/dto/shipments-paginate.dto.d.ts +19 -7
- package/dist/shipments/dto/shipments-paginate.dto.js +1 -2
- package/dist/stock-order/schemas/stock-order.schema.d.ts +4 -1
- package/dist/stock-order/schemas/stock-order.schema.js +1 -0
- package/dist/utils/enums.d.ts +8 -0
- package/dist/utils/enums.js +10 -1
- package/dist/utils/methods.d.ts +0 -4
- package/dist/utils/methods.js +3 -22
- package/dist/utils/sorting.d.ts +16 -1
- package/dist/utils/sorting.js +44 -17
- package/package.json +1 -1
|
@@ -37,7 +37,8 @@ export declare enum ActionEntityTypes {
|
|
|
37
37
|
revision = "revision",
|
|
38
38
|
thread_entity = "thread_entity",
|
|
39
39
|
user_table_config = "user_table_config",
|
|
40
|
-
tasks = "tasks"
|
|
40
|
+
tasks = "tasks",
|
|
41
|
+
exclusion = "exclusion"
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
44
|
* enum для обращения к моделям в бд
|
|
@@ -187,4 +188,8 @@ export declare const ActionEntityTypesDB: {
|
|
|
187
188
|
readonly name: "user_table_configs";
|
|
188
189
|
readonly attributes: readonly ["id"];
|
|
189
190
|
};
|
|
191
|
+
readonly exclusion: {
|
|
192
|
+
readonly name: "exclusion";
|
|
193
|
+
readonly attributes: readonly ["id"];
|
|
194
|
+
};
|
|
190
195
|
};
|
|
@@ -42,6 +42,7 @@ var ActionEntityTypes;
|
|
|
42
42
|
ActionEntityTypes["thread_entity"] = "thread_entity";
|
|
43
43
|
ActionEntityTypes["user_table_config"] = "user_table_config";
|
|
44
44
|
ActionEntityTypes["tasks"] = "tasks";
|
|
45
|
+
ActionEntityTypes["exclusion"] = "exclusion";
|
|
45
46
|
})(ActionEntityTypes || (exports.ActionEntityTypes = ActionEntityTypes = {}));
|
|
46
47
|
/**
|
|
47
48
|
* enum для обращения к моделям в бд
|
|
@@ -133,5 +134,9 @@ exports.ActionEntityTypesDB = {
|
|
|
133
134
|
[ActionEntityTypes.user_table_config]: {
|
|
134
135
|
name: 'user_table_configs',
|
|
135
136
|
attributes: ['id']
|
|
137
|
+
},
|
|
138
|
+
[ActionEntityTypes.exclusion]: {
|
|
139
|
+
name: 'exclusion',
|
|
140
|
+
attributes: ['id']
|
|
136
141
|
}
|
|
137
142
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { IzdType
|
|
2
|
+
import { IzdType } from '../../utils';
|
|
3
3
|
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
4
4
|
export declare const AssemblyPaginateDtoZod: z.ZodObject<{
|
|
5
5
|
type: z.ZodEnum<[IzdType.product, IzdType.cbed]>;
|
|
@@ -8,24 +8,36 @@ export declare const AssemblyPaginateDtoZod: z.ZodObject<{
|
|
|
8
8
|
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
9
9
|
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
10
10
|
isShowDeactivate: z.ZodBoolean;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
13
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
sortDesc: boolean;
|
|
16
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
19
|
+
sortDesc?: boolean | undefined;
|
|
20
|
+
}>, "many">>>;
|
|
13
21
|
}, "strip", z.ZodTypeAny, {
|
|
14
22
|
type: IzdType.product | IzdType.cbed;
|
|
23
|
+
sort: {
|
|
24
|
+
sortDesc: boolean;
|
|
25
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
26
|
+
}[];
|
|
15
27
|
searchString: string;
|
|
16
|
-
sortDesc: boolean;
|
|
17
28
|
isShowDeactivate: boolean;
|
|
18
29
|
page?: number | undefined;
|
|
19
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
20
30
|
byParents?: IFiltersByParents | null | undefined;
|
|
21
31
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
22
32
|
}, {
|
|
23
33
|
type: IzdType.product | IzdType.cbed;
|
|
24
34
|
isShowDeactivate: boolean;
|
|
35
|
+
sort?: {
|
|
36
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
37
|
+
sortDesc?: boolean | undefined;
|
|
38
|
+
}[] | undefined;
|
|
25
39
|
page?: number | undefined;
|
|
26
40
|
searchString?: string | undefined;
|
|
27
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
28
|
-
sortDesc?: boolean | undefined;
|
|
29
41
|
byParents?: IFiltersByParents | null | undefined;
|
|
30
42
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
31
43
|
}>;
|
|
@@ -11,6 +11,5 @@ exports.AssemblyPaginateDtoZod = zod_1.z.object({
|
|
|
11
11
|
byParents: zod_1.z.custom().nullable().optional(),
|
|
12
12
|
byOrder: zod_1.z.custom().nullable().optional(),
|
|
13
13
|
isShowDeactivate: zod_1.z.boolean(),
|
|
14
|
-
|
|
15
|
-
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
14
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
16
15
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
|
-
import { AssembleIzdEnum
|
|
3
|
+
import { AssembleIzdEnum } from '../../utils';
|
|
4
4
|
export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
|
|
5
5
|
page: z.ZodNumber;
|
|
6
6
|
searchString: z.ZodString;
|
|
@@ -8,24 +8,36 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
|
|
|
8
8
|
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
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
|
-
|
|
12
|
-
|
|
11
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
13
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
sortDesc: boolean;
|
|
16
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
19
|
+
sortDesc?: boolean | undefined;
|
|
20
|
+
}>, "many">>>;
|
|
13
21
|
}, "strip", z.ZodTypeAny, {
|
|
14
22
|
type: AssembleIzdEnum | null;
|
|
23
|
+
sort: {
|
|
24
|
+
sortDesc: boolean;
|
|
25
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
26
|
+
}[];
|
|
15
27
|
page: number;
|
|
16
28
|
searchString: string;
|
|
17
|
-
sortDesc: boolean;
|
|
18
29
|
responsibleUserId?: number | null | undefined;
|
|
19
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
20
30
|
byParents?: IFiltersByParents | null | undefined;
|
|
21
31
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
22
32
|
}, {
|
|
23
33
|
page: number;
|
|
24
34
|
searchString: string;
|
|
25
35
|
type?: AssembleIzdEnum | null | undefined;
|
|
36
|
+
sort?: {
|
|
37
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
38
|
+
sortDesc?: boolean | undefined;
|
|
39
|
+
}[] | undefined;
|
|
26
40
|
responsibleUserId?: number | null | undefined;
|
|
27
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
28
|
-
sortDesc?: boolean | undefined;
|
|
29
41
|
byParents?: IFiltersByParents | null | undefined;
|
|
30
42
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
31
43
|
}>;
|
|
@@ -10,6 +10,5 @@ exports.GetAssembleScladPaginationDtoZod = zod_1.z.object({
|
|
|
10
10
|
byParents: zod_1.z.custom().nullable().optional(),
|
|
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
|
-
|
|
14
|
-
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
13
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
15
14
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AssembleIzdEnum,
|
|
2
|
+
import { AssembleIzdEnum, SortReadinesEnum } from '../../utils';
|
|
3
3
|
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
4
4
|
export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
|
|
5
5
|
page: z.ZodNumber;
|
|
@@ -12,18 +12,28 @@ export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
|
|
|
12
12
|
sortReadines: z.ZodDefault<z.ZodNativeEnum<typeof SortReadinesEnum>>;
|
|
13
13
|
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
14
14
|
onlyCanComplect: z.ZodBoolean;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
17
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
sortDesc: boolean;
|
|
20
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
23
|
+
sortDesc?: boolean | undefined;
|
|
24
|
+
}>, "many">>>;
|
|
17
25
|
}, "strip", z.ZodTypeAny, {
|
|
18
26
|
type: AssembleIzdEnum;
|
|
27
|
+
sort: {
|
|
28
|
+
sortDesc: boolean;
|
|
29
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
30
|
+
}[];
|
|
19
31
|
page: number;
|
|
20
32
|
searchString: string;
|
|
21
33
|
responsibleUserId: number | null;
|
|
22
34
|
isBan: boolean;
|
|
23
|
-
sortDesc: boolean;
|
|
24
35
|
sortReadines: SortReadinesEnum;
|
|
25
36
|
onlyCanComplect: boolean;
|
|
26
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
27
37
|
byParents?: IFiltersByParents | null | undefined;
|
|
28
38
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
29
39
|
notOrderedByProductionTask?: boolean | null | undefined;
|
|
@@ -34,8 +44,10 @@ export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
|
|
|
34
44
|
isBan: boolean;
|
|
35
45
|
onlyCanComplect: boolean;
|
|
36
46
|
type?: AssembleIzdEnum | undefined;
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
sort?: {
|
|
48
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
49
|
+
sortDesc?: boolean | undefined;
|
|
50
|
+
}[] | undefined;
|
|
39
51
|
byParents?: IFiltersByParents | null | undefined;
|
|
40
52
|
byOrder?: IFiltersByByOrder | null | undefined;
|
|
41
53
|
notOrderedByProductionTask?: boolean | null | undefined;
|
|
@@ -14,6 +14,5 @@ exports.GetAssemblePaginationDtoZod = zod_1.z.object({
|
|
|
14
14
|
sortReadines: zod_1.z.nativeEnum(utils_1.SortReadinesEnum).default(utils_1.SortReadinesEnum.any),
|
|
15
15
|
byOrder: zod_1.z.custom().nullable().optional(),
|
|
16
16
|
onlyCanComplect: zod_1.z.boolean(),
|
|
17
|
-
|
|
18
|
-
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
17
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
19
18
|
});
|
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { statusWorkingsDeficit } 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>>;
|
|
6
6
|
statusWorking: z.ZodNativeEnum<typeof statusWorkingsDeficit>;
|
|
7
7
|
searchString: z.ZodString;
|
|
8
8
|
shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
11
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
sortDesc: boolean;
|
|
14
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
17
|
+
sortDesc?: boolean | undefined;
|
|
18
|
+
}>, "many">>>;
|
|
11
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
sort: {
|
|
21
|
+
sortDesc: boolean;
|
|
22
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
23
|
+
}[];
|
|
12
24
|
searchString: string;
|
|
13
25
|
statusWorking: statusWorkingsDeficit;
|
|
14
|
-
sortDesc: boolean;
|
|
15
26
|
cbedIds: number[];
|
|
16
27
|
page?: number | null | undefined;
|
|
17
28
|
shipmentIds?: number[] | null | undefined;
|
|
18
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
19
29
|
}, {
|
|
20
30
|
searchString: string;
|
|
21
31
|
statusWorking: statusWorkingsDeficit;
|
|
22
32
|
cbedIds: number[];
|
|
33
|
+
sort?: {
|
|
34
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
35
|
+
sortDesc?: boolean | undefined;
|
|
36
|
+
}[] | undefined;
|
|
23
37
|
page?: number | null | undefined;
|
|
24
38
|
shipmentIds?: number[] | null | undefined;
|
|
25
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
26
|
-
sortDesc?: boolean | undefined;
|
|
27
39
|
}>;
|
|
28
40
|
export type GetDeficitDtoZodType = z.infer<typeof GetDeficitDtoZod>;
|
|
@@ -9,6 +9,5 @@ exports.GetDeficitDtoZod = zod_1.z.object({
|
|
|
9
9
|
statusWorking: zod_1.z.nativeEnum(utils_1.statusWorkingsDeficit),
|
|
10
10
|
searchString: zod_1.z.string(),
|
|
11
11
|
shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
12
|
-
|
|
13
|
-
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
12
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
14
13
|
});
|
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { statusWorkingsDeficit } 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>>>;
|
|
6
6
|
searchString: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7
7
|
shipmentIds: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>>;
|
|
8
8
|
page: z.ZodNumber;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
11
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
sortDesc: boolean;
|
|
14
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
17
|
+
sortDesc?: boolean | undefined;
|
|
18
|
+
}>, "many">>>;
|
|
11
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
sort: {
|
|
21
|
+
sortDesc: boolean;
|
|
22
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
23
|
+
}[];
|
|
12
24
|
page: number;
|
|
13
25
|
searchString: string;
|
|
14
26
|
detalIds: number[];
|
|
15
27
|
statusWorking: statusWorkingsDeficit;
|
|
16
28
|
shipmentIds: number[] | null;
|
|
17
|
-
sortDesc: boolean;
|
|
18
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
19
29
|
}, {
|
|
20
30
|
page: number;
|
|
31
|
+
sort?: {
|
|
32
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
33
|
+
sortDesc?: boolean | undefined;
|
|
34
|
+
}[] | undefined;
|
|
21
35
|
searchString?: string | undefined;
|
|
22
36
|
detalIds?: number[] | undefined;
|
|
23
37
|
statusWorking?: statusWorkingsDeficit | undefined;
|
|
24
38
|
shipmentIds?: number[] | null | undefined;
|
|
25
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
26
|
-
sortDesc?: boolean | undefined;
|
|
27
39
|
}>;
|
|
28
40
|
export type GetDetalDeficitDtoType = z.infer<typeof GetDetalDeficitDtoZod>;
|
|
@@ -12,6 +12,5 @@ exports.GetDetalDeficitDtoZod = zod_1.z.object({
|
|
|
12
12
|
searchString: zod_1.z.string().optional().default(''),
|
|
13
13
|
shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
|
|
14
14
|
page: zod_1.z.number().int(),
|
|
15
|
-
|
|
16
|
-
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
15
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
17
16
|
});
|
|
@@ -1027,6 +1027,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
|
|
|
1027
1027
|
discontinued: z.ZodOptional<z.ZodBoolean>;
|
|
1028
1028
|
} & {
|
|
1029
1029
|
myQuantity: z.ZodNumber;
|
|
1030
|
+
isOrderedByStockOrder: z.ZodBoolean;
|
|
1030
1031
|
shipment: z.ZodObject<{
|
|
1031
1032
|
id: z.ZodNumber;
|
|
1032
1033
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1197,6 +1198,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
|
|
|
1197
1198
|
workpiece_characterization: import("../..").DetalWorkpieceCharacteristics | null;
|
|
1198
1199
|
actual_shipment_id: number | null;
|
|
1199
1200
|
myQuantity: number;
|
|
1201
|
+
isOrderedByStockOrder: boolean;
|
|
1200
1202
|
cbed?: {
|
|
1201
1203
|
ban: boolean;
|
|
1202
1204
|
cbed: import("../..").CbedRelativeType[];
|
|
@@ -1507,6 +1509,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
|
|
|
1507
1509
|
workpiece_characterization: import("../..").DetalWorkpieceCharacteristics | null;
|
|
1508
1510
|
actual_shipment_id: number | null;
|
|
1509
1511
|
myQuantity: number;
|
|
1512
|
+
isOrderedByStockOrder: boolean;
|
|
1510
1513
|
ban?: boolean | undefined;
|
|
1511
1514
|
cbed?: {
|
|
1512
1515
|
designation: string | null;
|
|
@@ -6,5 +6,6 @@ const detal_schema_1 = require("./detal.schema");
|
|
|
6
6
|
const shipments_1 = require("../../shipments");
|
|
7
7
|
exports.DetalDeficitSchema = detal_schema_1.DetalSchema.extend({
|
|
8
8
|
myQuantity: zod_1.z.number().int(),
|
|
9
|
+
isOrderedByStockOrder: zod_1.z.boolean(),
|
|
9
10
|
shipment: shipments_1.ShipmentsSchema
|
|
10
11
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { 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,25 +8,37 @@ 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
|
-
|
|
12
|
-
|
|
11
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
|
|
13
|
+
sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
sortDesc: boolean;
|
|
16
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
19
|
+
sortDesc?: boolean | undefined;
|
|
20
|
+
}>, "many">>>;
|
|
13
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
sort: {
|
|
23
|
+
sortDesc: boolean;
|
|
24
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
25
|
+
}[];
|
|
14
26
|
page: number;
|
|
15
27
|
searchString: string;
|
|
16
28
|
statusWorking: statusWorkingsDeficit;
|
|
17
29
|
shipmentIds: number[] | null;
|
|
18
|
-
sortDesc: boolean;
|
|
19
30
|
materialIds: number[];
|
|
20
31
|
typeMaterialIds: number[];
|
|
21
32
|
subTypeMaterialIds: number[];
|
|
22
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
23
33
|
}, {
|
|
24
34
|
page: number;
|
|
35
|
+
sort?: {
|
|
36
|
+
sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
|
|
37
|
+
sortDesc?: boolean | undefined;
|
|
38
|
+
}[] | undefined;
|
|
25
39
|
searchString?: string | undefined;
|
|
26
40
|
statusWorking?: statusWorkingsDeficit | undefined;
|
|
27
41
|
shipmentIds?: number[] | null | undefined;
|
|
28
|
-
sortField?: ProductionPlanSortField | null | undefined;
|
|
29
|
-
sortDesc?: boolean | undefined;
|
|
30
42
|
materialIds?: number[] | undefined;
|
|
31
43
|
typeMaterialIds?: number[] | undefined;
|
|
32
44
|
subTypeMaterialIds?: number[] | undefined;
|
|
@@ -14,6 +14,5 @@ exports.GetMaterialDeficitDtoZod = zod_1.z.object({
|
|
|
14
14
|
searchString: zod_1.z.string().optional().default(''),
|
|
15
15
|
shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
|
|
16
16
|
page: zod_1.z.number().int(),
|
|
17
|
-
|
|
18
|
-
sortDesc: zod_1.z.boolean().optional().default(false)
|
|
17
|
+
sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
|
|
19
18
|
});
|
package/dist/material/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './schemas/mat-pod-mat.schema';
|
|
2
2
|
export * from './schemas/material.schema';
|
|
3
|
+
export * from './schemas/material-shipments-response.schema';
|
|
3
4
|
export * from './schemas/subtype-material.schema';
|
|
4
5
|
export * from './schemas/type-material.schema';
|
|
5
6
|
export * from './schemas/material-characteristics.schema';
|
package/dist/material/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./schemas/mat-pod-mat.schema"), exports);
|
|
18
18
|
__exportStar(require("./schemas/material.schema"), exports);
|
|
19
|
+
__exportStar(require("./schemas/material-shipments-response.schema"), exports);
|
|
19
20
|
__exportStar(require("./schemas/subtype-material.schema"), exports);
|
|
20
21
|
__exportStar(require("./schemas/type-material.schema"), exports);
|
|
21
22
|
__exportStar(require("./schemas/material-characteristics.schema"), exports);
|