@pksep/zod-shared 0.0.504 → 0.0.506
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/assembly-paginate.dto.d.ts +8 -13
- package/dist/assemble/dto/assembly-paginate.dto.js +2 -4
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +7 -7
- package/dist/assemble/dto/get-assemble-operation-pagination.dto.d.ts +8 -28
- package/dist/assemble/dto/get-assemble-operation-pagination.dto.js +2 -13
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +7 -31
- package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -15
- package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +11 -28
- package/dist/assemble/dto/get-assemble-pagination.dto.js +3 -13
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +5 -5
- package/dist/assemble/schemas/assemble.schema.d.ts +5 -5
- package/dist/cbed/schemas/cbed.schema.d.ts +3 -0
- package/dist/cbed/schemas/cbed.schema.js +1 -0
- package/dist/company/dto/companies-pagination.dto.d.ts +4 -4
- package/dist/company/dto/create-company.dto.d.ts +2 -2
- package/dist/company/dto/update-company.dto.d.ts +2 -2
- package/dist/detal/schemas/detal-deficit.schema.d.ts +18 -0
- package/dist/detal/schemas/detal.schema.d.ts +18 -0
- package/dist/detal/schemas/detal.schema.js +1 -0
- package/dist/equipment/dto/create-equipment.dto.d.ts +3 -3
- package/dist/equipment/dto/create-equipment.dto.js +1 -1
- package/dist/equipment/dto/get-instruments-pagination.dto.d.ts +8 -5
- package/dist/equipment/dto/get-instruments-pagination.dto.js +6 -5
- package/dist/equipment/dto/update-equipment.dto.d.ts +3 -3
- package/dist/equipment/dto/update-equipment.dto.js +9 -1
- package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
- package/dist/issue/dto/up-create-issue.dto.js +21 -0
- package/dist/issue/index.d.ts +5 -0
- package/dist/issue/index.js +21 -0
- package/dist/issue/interfaces/interface.d.ts +4 -0
- package/dist/issue/interfaces/interface.js +2 -0
- package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
- package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
- package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
- package/dist/issue/schemas/issue-user.schema.js +9 -0
- package/dist/issue/schemas/issue.schema.d.ts +51 -0
- package/dist/issue/schemas/issue.schema.js +21 -0
- package/dist/library/dto/create-chapter.dto.d.ts +12 -0
- package/dist/library/dto/create-chapter.dto.js +8 -0
- package/dist/library/dto/create-link.dto.d.ts +30 -0
- package/dist/library/dto/create-link.dto.js +14 -0
- package/dist/library/index.d.ts +5 -0
- package/dist/library/index.js +21 -0
- package/dist/library/interfaces/interface.d.ts +3 -0
- package/dist/library/interfaces/interface.js +2 -0
- package/dist/library/schemas/links-user.schema.d.ts +15 -0
- package/dist/library/schemas/links-user.schema.js +9 -0
- package/dist/library/schemas/links.schema.d.ts +30 -0
- package/dist/library/schemas/links.schema.js +14 -0
- package/dist/material/schemas/material.schema.d.ts +3 -0
- package/dist/material/schemas/material.schema.js +1 -0
- package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.d.ts +8 -25
- package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.js +2 -6
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +7 -25
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -9
- package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +6 -27
- package/dist/movement-object/schemas/get-one-object-history.schema.js +1 -7
- package/dist/moving/schemas/moving.schema.d.ts +21 -0
- package/dist/operations/dto/create-type-operation.dto.d.ts +3 -0
- package/dist/operations/dto/create-type-operation.dto.js +1 -0
- package/dist/operations/dto/update-type-operation.dto.d.ts +3 -0
- package/dist/operations/dto/update-type-operation.dto.js +1 -0
- package/dist/operations/index.d.ts +1 -0
- package/dist/operations/index.js +1 -0
- package/dist/operations/schemas/type-oper-equipment.schema.d.ts +15 -0
- package/dist/operations/schemas/type-oper-equipment.schema.js +9 -0
- package/dist/product/schemas/product-deficit.schema.d.ts +3 -0
- package/dist/product/schemas/product.schema.d.ts +3 -0
- package/dist/product/schemas/product.schema.js +1 -0
- package/dist/production-tasks/dto/get-by-users.dto.d.ts +3 -4
- package/dist/production-tasks/dto/get-by-users.dto.js +1 -2
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +5 -2
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +1 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +19 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +11 -0
- package/dist/production-tasks/dto/get-production-task.dto.d.ts +3 -4
- package/dist/production-tasks/dto/get-production-task.dto.js +1 -2
- package/dist/production-tasks/dto/online-board-working.dto.d.ts +4 -4
- package/dist/production-tasks/dto/plan-production-task.dto.d.ts +7 -6
- package/dist/production-tasks/dto/plan-production-task.dto.js +4 -1
- package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +12 -0
- package/dist/production-tasks/dto/set-start-time-detal.dto.js +8 -0
- package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
- package/dist/production-tasks/dto/update-marks.dto.js +8 -0
- package/dist/production-tasks/enums/production-tasks.d.ts +5 -1
- package/dist/production-tasks/enums/production-tasks.js +7 -2
- package/dist/production-tasks/index.d.ts +3 -1
- package/dist/production-tasks/index.js +3 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +32 -1
- package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
- package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
- package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +0 -4
- package/dist/production-tasks/schemas/production-operation-pos.schema.js +0 -4
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +16 -0
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +8 -0
- package/dist/production-tasks/schemas/production-task.schema.d.ts +3 -4
- package/dist/production-tasks/schemas/production-task.schema.js +1 -4
- package/dist/role/schemas/role.schema.d.ts +21 -0
- package/dist/shipments/dto/entity-filtering-by-shipment.dto.d.ts +3 -0
- package/dist/shipments/dto/entity-filtering-by-shipment.dto.js +1 -0
- package/dist/specification/schema/attributes.schema.d.ts +36 -0
- package/dist/user/schemas/user.schema.d.ts +15 -0
- package/dist/utils/default-value/default-value.d.ts +7 -0
- package/dist/utils/default-value/default-value.js +11 -1
- package/dist/utils/interface/mat.interface.d.ts +10 -0
- package/dist/utils/interface/mat.interface.js +2 -0
- package/package.json +1 -1
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { IzdType } from '../../utils';
|
|
3
|
+
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
4
|
export declare const AssemblyPaginateDtoZod: z.ZodObject<{
|
|
4
5
|
type: z.ZodEnum<[IzdType.product, IzdType.cbed]>;
|
|
5
6
|
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
7
7
|
searchString: z.ZodDefault<z.ZodString>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
byWorkers: z.ZodOptional<z.ZodNullable<z.ZodType<ByWorkersType, z.ZodTypeDef, ByWorkersType>>>;
|
|
8
|
+
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
9
|
+
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
11
10
|
isShowDeactivate: z.ZodBoolean;
|
|
12
11
|
}, "strip", z.ZodTypeAny, {
|
|
13
12
|
type: IzdType.product | IzdType.cbed;
|
|
14
13
|
searchString: string;
|
|
15
14
|
isShowDeactivate: boolean;
|
|
16
15
|
page?: number | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
byShipments?: ByShipmentsType | null | undefined;
|
|
20
|
-
byWorkers?: ByWorkersType | null | undefined;
|
|
16
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
17
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
21
18
|
}, {
|
|
22
19
|
type: IzdType.product | IzdType.cbed;
|
|
23
20
|
isShowDeactivate: boolean;
|
|
24
21
|
page?: number | undefined;
|
|
25
22
|
searchString?: string | undefined;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
byShipments?: ByShipmentsType | null | undefined;
|
|
29
|
-
byWorkers?: ByWorkersType | null | undefined;
|
|
23
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
24
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
30
25
|
}>;
|
|
31
26
|
export type AssemblyPaginateDtoZodType = z.infer<typeof AssemblyPaginateDtoZod>;
|
|
@@ -7,10 +7,8 @@ const IzdTypeEnum = zod_1.z.enum([utils_1.IzdType.product, utils_1.IzdType.cbed]
|
|
|
7
7
|
exports.AssemblyPaginateDtoZod = zod_1.z.object({
|
|
8
8
|
type: IzdTypeEnum,
|
|
9
9
|
page: zod_1.z.number().int().optional(),
|
|
10
|
-
shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
11
10
|
searchString: zod_1.z.string().default(''),
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
byWorkers: zod_1.z.custom().nullable().optional(),
|
|
11
|
+
byParents: zod_1.z.custom().nullable().optional(),
|
|
12
|
+
byOrder: zod_1.z.custom().nullable().optional(),
|
|
15
13
|
isShowDeactivate: zod_1.z.boolean()
|
|
16
14
|
});
|
|
@@ -726,10 +726,10 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
726
726
|
due_data: z.ZodDate;
|
|
727
727
|
working_type: z.ZodNativeEnum<typeof import("../..").StockOrderType>;
|
|
728
728
|
description: z.ZodOptional<z.ZodString>;
|
|
729
|
-
|
|
729
|
+
ban: z.ZodDefault<z.ZodBoolean>;
|
|
730
730
|
details_filters: z.ZodType<import("../..").IDescriptionFilters, z.ZodTypeDef, import("../..").IDescriptionFilters>;
|
|
731
731
|
}, "strip", z.ZodTypeAny, {
|
|
732
|
-
|
|
732
|
+
ban: boolean;
|
|
733
733
|
due_data: Date;
|
|
734
734
|
working_type: import("../..").StockOrderType;
|
|
735
735
|
details_filters: import("../..").IDescriptionFilters;
|
|
@@ -739,7 +739,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
739
739
|
due_data: Date;
|
|
740
740
|
working_type: import("../..").StockOrderType;
|
|
741
741
|
details_filters: import("../..").IDescriptionFilters;
|
|
742
|
-
|
|
742
|
+
ban?: boolean | undefined;
|
|
743
743
|
description?: string | undefined;
|
|
744
744
|
id?: number | null | undefined;
|
|
745
745
|
}>, "many">>>>;
|
|
@@ -864,7 +864,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
864
864
|
parent_id?: number | null | undefined;
|
|
865
865
|
} | null | undefined;
|
|
866
866
|
production_task?: {
|
|
867
|
-
|
|
867
|
+
ban: boolean;
|
|
868
868
|
due_data: Date;
|
|
869
869
|
working_type: import("../..").StockOrderType;
|
|
870
870
|
details_filters: import("../..").IDescriptionFilters;
|
|
@@ -1046,7 +1046,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1046
1046
|
due_data: Date;
|
|
1047
1047
|
working_type: import("../..").StockOrderType;
|
|
1048
1048
|
details_filters: import("../..").IDescriptionFilters;
|
|
1049
|
-
|
|
1049
|
+
ban?: boolean | undefined;
|
|
1050
1050
|
description?: string | undefined;
|
|
1051
1051
|
id?: number | null | undefined;
|
|
1052
1052
|
}[] | null | undefined;
|
|
@@ -1229,7 +1229,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1229
1229
|
parent_id?: number | null | undefined;
|
|
1230
1230
|
} | null | undefined;
|
|
1231
1231
|
production_task?: {
|
|
1232
|
-
|
|
1232
|
+
ban: boolean;
|
|
1233
1233
|
due_data: Date;
|
|
1234
1234
|
working_type: import("../..").StockOrderType;
|
|
1235
1235
|
details_filters: import("../..").IDescriptionFilters;
|
|
@@ -1413,7 +1413,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
|
|
|
1413
1413
|
due_data: Date;
|
|
1414
1414
|
working_type: import("../..").StockOrderType;
|
|
1415
1415
|
details_filters: import("../..").IDescriptionFilters;
|
|
1416
|
-
|
|
1416
|
+
ban?: boolean | undefined;
|
|
1417
1417
|
description?: string | undefined;
|
|
1418
1418
|
id?: number | null | undefined;
|
|
1419
1419
|
}[] | null | undefined;
|
|
@@ -1,46 +1,26 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AssembleStatus
|
|
2
|
+
import { AssembleStatus } from '../../utils';
|
|
3
|
+
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
4
|
export declare const GetAssembleByOperationPaginationDtoZod: z.ZodObject<{
|
|
4
5
|
page: z.ZodNumber;
|
|
5
6
|
operationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
6
7
|
searchString: z.ZodString;
|
|
7
8
|
status: z.ZodNativeEnum<typeof AssembleStatus>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
11
|
-
parentData: z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
12
|
-
parentType: z.ZodNullable<z.ZodType<ParentType, z.ZodTypeDef, ParentType>>;
|
|
13
|
-
parentId: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
parentId: number | null;
|
|
16
|
-
parentType: ParentType;
|
|
17
|
-
}, {
|
|
18
|
-
parentId: number | null;
|
|
19
|
-
parentType: ParentType;
|
|
20
|
-
}>>>;
|
|
9
|
+
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
10
|
+
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
21
11
|
}, "strip", z.ZodTypeAny, {
|
|
22
12
|
status: AssembleStatus;
|
|
23
13
|
page: number;
|
|
24
14
|
operationId: number | null;
|
|
25
15
|
searchString: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
parentType: ParentType;
|
|
29
|
-
} | null;
|
|
30
|
-
cbedIds: number[];
|
|
31
|
-
productIds: number[];
|
|
32
|
-
shipmentIds?: number[] | null | undefined;
|
|
16
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
17
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
33
18
|
}, {
|
|
34
19
|
status: AssembleStatus;
|
|
35
20
|
page: number;
|
|
36
21
|
searchString: string;
|
|
37
|
-
cbedIds: number[];
|
|
38
|
-
productIds: number[];
|
|
39
22
|
operationId?: number | null | undefined;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
parentId: number | null;
|
|
43
|
-
parentType: ParentType;
|
|
44
|
-
} | null | undefined;
|
|
23
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
24
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
45
25
|
}>;
|
|
46
26
|
export type GetAssembleByOperationPaginationDtoZodType = z.infer<typeof GetAssembleByOperationPaginationDtoZod>;
|
|
@@ -8,17 +8,6 @@ exports.GetAssembleByOperationPaginationDtoZod = zod_1.z.object({
|
|
|
8
8
|
operationId: zod_1.z.number().nullable().default(null),
|
|
9
9
|
searchString: zod_1.z.string(),
|
|
10
10
|
status: zod_1.z.nativeEnum(utils_1.AssembleStatus),
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
14
|
-
parentData: zod_1.z
|
|
15
|
-
.object({
|
|
16
|
-
parentType: zod_1.z.custom().nullable(),
|
|
17
|
-
parentId: zod_1.z.number().nullable()
|
|
18
|
-
})
|
|
19
|
-
.default({
|
|
20
|
-
parentType: null,
|
|
21
|
-
parentId: null
|
|
22
|
-
})
|
|
23
|
-
.nullable()
|
|
11
|
+
byOrder: zod_1.z.custom().nullable().optional(),
|
|
12
|
+
byParents: zod_1.z.custom().nullable().optional()
|
|
24
13
|
});
|
|
@@ -1,46 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
3
|
export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
|
|
4
4
|
page: z.ZodNumber;
|
|
5
5
|
searchString: z.ZodString;
|
|
6
6
|
responsibleUserId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
parentId: z.ZodNullable<z.ZodNumber>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
parentId: number | null;
|
|
12
|
-
parentType: ParentType;
|
|
13
|
-
}, {
|
|
14
|
-
parentId: number | null;
|
|
15
|
-
parentType: ParentType;
|
|
16
|
-
}>>>;
|
|
17
|
-
type: z.ZodDefault<z.ZodNativeEnum<typeof AssembleIzdEnum>>;
|
|
18
|
-
cbedIds: z.ZodArray<z.ZodNumber, "many">;
|
|
19
|
-
productIds: z.ZodArray<z.ZodNumber, "many">;
|
|
20
|
-
shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
7
|
+
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
8
|
+
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
21
9
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
type: AssembleIzdEnum;
|
|
23
10
|
page: number;
|
|
24
11
|
searchString: string;
|
|
25
|
-
parentData: {
|
|
26
|
-
parentId: number | null;
|
|
27
|
-
parentType: ParentType;
|
|
28
|
-
} | null;
|
|
29
|
-
cbedIds: number[];
|
|
30
|
-
productIds: number[];
|
|
31
12
|
responsibleUserId?: number | null | undefined;
|
|
32
|
-
|
|
13
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
14
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
33
15
|
}, {
|
|
34
16
|
page: number;
|
|
35
17
|
searchString: string;
|
|
36
|
-
cbedIds: number[];
|
|
37
|
-
productIds: number[];
|
|
38
|
-
type?: AssembleIzdEnum | undefined;
|
|
39
18
|
responsibleUserId?: number | null | undefined;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
parentId: number | null;
|
|
43
|
-
parentType: ParentType;
|
|
44
|
-
} | null | undefined;
|
|
19
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
20
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
45
21
|
}>;
|
|
46
22
|
export type GetAssembleScladPaginationDtoZodType = z.infer<typeof GetAssembleScladPaginationDtoZod>;
|
|
@@ -2,23 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetAssembleScladPaginationDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
5
|
exports.GetAssembleScladPaginationDtoZod = zod_1.z.object({
|
|
7
6
|
page: zod_1.z.number().int(),
|
|
8
7
|
searchString: zod_1.z.string(),
|
|
9
8
|
responsibleUserId: zod_1.z.number().nullable().optional(),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
parentType: zod_1.z.custom().nullable(),
|
|
13
|
-
parentId: zod_1.z.number().nullable()
|
|
14
|
-
})
|
|
15
|
-
.default({
|
|
16
|
-
parentType: null,
|
|
17
|
-
parentId: null
|
|
18
|
-
})
|
|
19
|
-
.nullable(),
|
|
20
|
-
type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).default(utils_1.AssembleIzdEnum.all),
|
|
21
|
-
cbedIds: zod_1.z.array(zod_1.z.number()),
|
|
22
|
-
productIds: zod_1.z.array(zod_1.z.number()),
|
|
23
|
-
shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional()
|
|
9
|
+
byParents: zod_1.z.custom().nullable().optional(),
|
|
10
|
+
byOrder: zod_1.z.custom().nullable().optional()
|
|
24
11
|
});
|
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AssembleIzdEnum,
|
|
2
|
+
import { AssembleIzdEnum, SortReadinesEnum } from '../../utils';
|
|
3
|
+
import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
|
|
3
4
|
export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
|
|
4
5
|
page: z.ZodNumber;
|
|
5
6
|
searchString: z.ZodString;
|
|
6
7
|
isBan: z.ZodBoolean;
|
|
7
8
|
responsibleUserId: z.ZodNullable<z.ZodNumber>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
parentId: z.ZodNullable<z.ZodNumber>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
parentId: number | null;
|
|
13
|
-
parentType: ParentType;
|
|
14
|
-
}, {
|
|
15
|
-
parentId: number | null;
|
|
16
|
-
parentType: ParentType;
|
|
17
|
-
}>>>;
|
|
9
|
+
notOrderedByProductionTask: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
|
+
byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
|
|
18
11
|
type: z.ZodDefault<z.ZodNativeEnum<typeof AssembleIzdEnum>>;
|
|
19
12
|
sortReadines: z.ZodDefault<z.ZodNativeEnum<typeof SortReadinesEnum>>;
|
|
20
|
-
|
|
21
|
-
productIds: z.ZodArray<z.ZodNumber, "many">;
|
|
22
|
-
shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
13
|
+
byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
|
|
23
14
|
onlyCanComplect: z.ZodBoolean;
|
|
24
15
|
}, "strip", z.ZodTypeAny, {
|
|
25
16
|
type: AssembleIzdEnum;
|
|
@@ -27,29 +18,21 @@ export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
|
|
|
27
18
|
searchString: string;
|
|
28
19
|
responsibleUserId: number | null;
|
|
29
20
|
isBan: boolean;
|
|
30
|
-
parentData: {
|
|
31
|
-
parentId: number | null;
|
|
32
|
-
parentType: ParentType;
|
|
33
|
-
} | null;
|
|
34
|
-
cbedIds: number[];
|
|
35
|
-
productIds: number[];
|
|
36
21
|
sortReadines: SortReadinesEnum;
|
|
37
22
|
onlyCanComplect: boolean;
|
|
38
|
-
|
|
23
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
24
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
25
|
+
notOrderedByProductionTask?: boolean | null | undefined;
|
|
39
26
|
}, {
|
|
40
27
|
page: number;
|
|
41
28
|
searchString: string;
|
|
42
29
|
responsibleUserId: number | null;
|
|
43
30
|
isBan: boolean;
|
|
44
|
-
cbedIds: number[];
|
|
45
|
-
productIds: number[];
|
|
46
31
|
onlyCanComplect: boolean;
|
|
47
32
|
type?: AssembleIzdEnum | undefined;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
parentType: ParentType;
|
|
52
|
-
} | null | undefined;
|
|
33
|
+
byParents?: IFiltersByParents | null | undefined;
|
|
34
|
+
byOrder?: IFiltersByByOrder | null | undefined;
|
|
35
|
+
notOrderedByProductionTask?: boolean | null | undefined;
|
|
53
36
|
sortReadines?: SortReadinesEnum | undefined;
|
|
54
37
|
}>;
|
|
55
38
|
export type GetAssemblePaginationDtoZodType = z.infer<typeof GetAssemblePaginationDtoZod>;
|
|
@@ -8,20 +8,10 @@ exports.GetAssemblePaginationDtoZod = zod_1.z.object({
|
|
|
8
8
|
searchString: zod_1.z.string(),
|
|
9
9
|
isBan: zod_1.z.boolean(),
|
|
10
10
|
responsibleUserId: zod_1.z.number().nullable(),
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
parentType: zod_1.z.custom().nullable(),
|
|
14
|
-
parentId: zod_1.z.number().nullable()
|
|
15
|
-
})
|
|
16
|
-
.default({
|
|
17
|
-
parentType: null,
|
|
18
|
-
parentId: null
|
|
19
|
-
})
|
|
20
|
-
.nullable(),
|
|
11
|
+
notOrderedByProductionTask: zod_1.z.boolean().nullish(),
|
|
12
|
+
byParents: zod_1.z.custom().nullable().optional(),
|
|
21
13
|
type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).default(utils_1.AssembleIzdEnum.all),
|
|
22
14
|
sortReadines: zod_1.z.nativeEnum(utils_1.SortReadinesEnum).default(utils_1.SortReadinesEnum.any),
|
|
23
|
-
|
|
24
|
-
productIds: zod_1.z.array(zod_1.z.number()),
|
|
25
|
-
shipmentIds: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
15
|
+
byOrder: zod_1.z.custom().nullable().optional(),
|
|
26
16
|
onlyCanComplect: zod_1.z.boolean()
|
|
27
17
|
});
|
|
@@ -726,10 +726,10 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
726
726
|
due_data: z.ZodDate;
|
|
727
727
|
working_type: z.ZodNativeEnum<typeof import("../..").StockOrderType>;
|
|
728
728
|
description: z.ZodOptional<z.ZodString>;
|
|
729
|
-
|
|
729
|
+
ban: z.ZodDefault<z.ZodBoolean>;
|
|
730
730
|
details_filters: z.ZodType<import("../..").IDescriptionFilters, z.ZodTypeDef, import("../..").IDescriptionFilters>;
|
|
731
731
|
}, "strip", z.ZodTypeAny, {
|
|
732
|
-
|
|
732
|
+
ban: boolean;
|
|
733
733
|
due_data: Date;
|
|
734
734
|
working_type: import("../..").StockOrderType;
|
|
735
735
|
details_filters: import("../..").IDescriptionFilters;
|
|
@@ -739,7 +739,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
739
739
|
due_data: Date;
|
|
740
740
|
working_type: import("../..").StockOrderType;
|
|
741
741
|
details_filters: import("../..").IDescriptionFilters;
|
|
742
|
-
|
|
742
|
+
ban?: boolean | undefined;
|
|
743
743
|
description?: string | undefined;
|
|
744
744
|
id?: number | null | undefined;
|
|
745
745
|
}>, "many">>>>;
|
|
@@ -888,7 +888,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
888
888
|
parent_id?: number | null | undefined;
|
|
889
889
|
} | null | undefined;
|
|
890
890
|
production_task?: {
|
|
891
|
-
|
|
891
|
+
ban: boolean;
|
|
892
892
|
due_data: Date;
|
|
893
893
|
working_type: import("../..").StockOrderType;
|
|
894
894
|
details_filters: import("../..").IDescriptionFilters;
|
|
@@ -1081,7 +1081,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
|
|
|
1081
1081
|
due_data: Date;
|
|
1082
1082
|
working_type: import("../..").StockOrderType;
|
|
1083
1083
|
details_filters: import("../..").IDescriptionFilters;
|
|
1084
|
-
|
|
1084
|
+
ban?: boolean | undefined;
|
|
1085
1085
|
description?: string | undefined;
|
|
1086
1086
|
id?: number | null | undefined;
|
|
1087
1087
|
}[] | null | undefined;
|
|
@@ -727,10 +727,10 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
727
727
|
due_data: z.ZodDate;
|
|
728
728
|
working_type: z.ZodNativeEnum<typeof import("../../utils").StockOrderType>;
|
|
729
729
|
description: z.ZodOptional<z.ZodString>;
|
|
730
|
-
|
|
730
|
+
ban: z.ZodDefault<z.ZodBoolean>;
|
|
731
731
|
details_filters: z.ZodType<import("../../production-tasks").IDescriptionFilters, z.ZodTypeDef, import("../../production-tasks").IDescriptionFilters>;
|
|
732
732
|
}, "strip", z.ZodTypeAny, {
|
|
733
|
-
|
|
733
|
+
ban: boolean;
|
|
734
734
|
due_data: Date;
|
|
735
735
|
working_type: import("../../utils").StockOrderType;
|
|
736
736
|
details_filters: import("../../production-tasks").IDescriptionFilters;
|
|
@@ -740,7 +740,7 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
740
740
|
due_data: Date;
|
|
741
741
|
working_type: import("../../utils").StockOrderType;
|
|
742
742
|
details_filters: import("../../production-tasks").IDescriptionFilters;
|
|
743
|
-
|
|
743
|
+
ban?: boolean | undefined;
|
|
744
744
|
description?: string | undefined;
|
|
745
745
|
id?: number | null | undefined;
|
|
746
746
|
}>, "many">>>>;
|
|
@@ -865,7 +865,7 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
865
865
|
parent_id?: number | null | undefined;
|
|
866
866
|
} | null | undefined;
|
|
867
867
|
production_task?: {
|
|
868
|
-
|
|
868
|
+
ban: boolean;
|
|
869
869
|
due_data: Date;
|
|
870
870
|
working_type: import("../../utils").StockOrderType;
|
|
871
871
|
details_filters: import("../../production-tasks").IDescriptionFilters;
|
|
@@ -1047,7 +1047,7 @@ export declare const AssembleSchema: z.ZodObject<{
|
|
|
1047
1047
|
due_data: Date;
|
|
1048
1048
|
working_type: import("../../utils").StockOrderType;
|
|
1049
1049
|
details_filters: import("../../production-tasks").IDescriptionFilters;
|
|
1050
|
-
|
|
1050
|
+
ban?: boolean | undefined;
|
|
1051
1051
|
description?: string | undefined;
|
|
1052
1052
|
id?: number | null | undefined;
|
|
1053
1053
|
}[] | null | undefined;
|
|
@@ -24,6 +24,7 @@ export declare const CbedSchema: z.ZodObject<{
|
|
|
24
24
|
shipments_kolvo: z.ZodDefault<z.ZodNumber>;
|
|
25
25
|
production_ordered: z.ZodDefault<z.ZodNumber>;
|
|
26
26
|
deficit_by_sclad: z.ZodDefault<z.ZodNumber>;
|
|
27
|
+
shipments_deficit: z.ZodDefault<z.ZodNumber>;
|
|
27
28
|
designation: z.ZodNullable<z.ZodString>;
|
|
28
29
|
description: z.ZodNullable<z.ZodString>;
|
|
29
30
|
ava_path: z.ZodNullable<z.ZodString>;
|
|
@@ -56,6 +57,7 @@ export declare const CbedSchema: z.ZodObject<{
|
|
|
56
57
|
min_remaining: number;
|
|
57
58
|
responsibleId: number | null;
|
|
58
59
|
production_ordered: number;
|
|
60
|
+
shipments_deficit: number;
|
|
59
61
|
deficit: number;
|
|
60
62
|
ava_path: string | null;
|
|
61
63
|
parametrs: CbedParametrsField | null;
|
|
@@ -90,6 +92,7 @@ export declare const CbedSchema: z.ZodObject<{
|
|
|
90
92
|
shipments_kolvo?: number | undefined;
|
|
91
93
|
min_remaining?: number | undefined;
|
|
92
94
|
production_ordered?: number | undefined;
|
|
95
|
+
shipments_deficit?: number | undefined;
|
|
93
96
|
deficit?: number | undefined;
|
|
94
97
|
in_kit?: number | undefined;
|
|
95
98
|
discontinued?: boolean | undefined;
|
|
@@ -14,6 +14,7 @@ exports.CbedSchema = zod_1.z.object({
|
|
|
14
14
|
shipments_kolvo: zod_1.z.number().int().default(0),
|
|
15
15
|
production_ordered: zod_1.z.number().int().default(0),
|
|
16
16
|
deficit_by_sclad: zod_1.z.number().int().default(0),
|
|
17
|
+
shipments_deficit: zod_1.z.number().int().default(0),
|
|
17
18
|
designation: zod_1.z.string().nullable(),
|
|
18
19
|
description: zod_1.z.string().nullable(),
|
|
19
20
|
ava_path: zod_1.z.string().nullable(),
|
|
@@ -12,13 +12,13 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
|
|
|
12
12
|
instrumentIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
13
13
|
inventaryIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
materialIds: number[];
|
|
16
15
|
equipmentIds: number[];
|
|
16
|
+
materialIds: number[];
|
|
17
17
|
instrumentIds: number[];
|
|
18
18
|
inventaryIds: number[];
|
|
19
19
|
}, {
|
|
20
|
-
materialIds?: number[] | undefined;
|
|
21
20
|
equipmentIds?: number[] | undefined;
|
|
21
|
+
materialIds?: number[] | undefined;
|
|
22
22
|
instrumentIds?: number[] | undefined;
|
|
23
23
|
inventaryIds?: number[] | undefined;
|
|
24
24
|
}>>;
|
|
@@ -30,8 +30,8 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
|
|
|
30
30
|
isBan: boolean;
|
|
31
31
|
filterByTypes: import("../enums/enums").DtoEnumCompanyType[];
|
|
32
32
|
filterByEntities?: {
|
|
33
|
-
materialIds: number[];
|
|
34
33
|
equipmentIds: number[];
|
|
34
|
+
materialIds: number[];
|
|
35
35
|
instrumentIds: number[];
|
|
36
36
|
inventaryIds: number[];
|
|
37
37
|
} | undefined;
|
|
@@ -43,8 +43,8 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
|
|
|
43
43
|
isBan?: boolean | undefined;
|
|
44
44
|
filterByTypes?: import("../enums/enums").DtoEnumCompanyType[] | undefined;
|
|
45
45
|
filterByEntities?: {
|
|
46
|
-
materialIds?: number[] | undefined;
|
|
47
46
|
equipmentIds?: number[] | undefined;
|
|
47
|
+
materialIds?: number[] | undefined;
|
|
48
48
|
instrumentIds?: number[] | undefined;
|
|
49
49
|
inventaryIds?: number[] | undefined;
|
|
50
50
|
} | undefined;
|
|
@@ -30,6 +30,7 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
|
|
|
30
30
|
name: string;
|
|
31
31
|
type?: import("../enums/enums").EnumCompanyType[] | undefined;
|
|
32
32
|
description?: string | undefined;
|
|
33
|
+
equipmentIds?: number[] | undefined;
|
|
33
34
|
docs?: string | undefined;
|
|
34
35
|
inn?: string | undefined;
|
|
35
36
|
cpp?: string | undefined;
|
|
@@ -42,7 +43,6 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
|
|
|
42
43
|
};
|
|
43
44
|
}[] | undefined;
|
|
44
45
|
materialIds?: number[] | undefined;
|
|
45
|
-
equipmentIds?: number[] | undefined;
|
|
46
46
|
instrumentIds?: number[] | undefined;
|
|
47
47
|
inventaryIds?: number[] | undefined;
|
|
48
48
|
contactIds?: number[] | undefined;
|
|
@@ -51,6 +51,7 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
|
|
|
51
51
|
name: string;
|
|
52
52
|
type?: import("../enums/enums").EnumCompanyType[] | undefined;
|
|
53
53
|
description?: string | undefined;
|
|
54
|
+
equipmentIds?: number[] | undefined;
|
|
54
55
|
docs?: string | undefined;
|
|
55
56
|
inn?: string | undefined;
|
|
56
57
|
cpp?: string | undefined;
|
|
@@ -63,7 +64,6 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
|
|
|
63
64
|
};
|
|
64
65
|
}[] | undefined;
|
|
65
66
|
materialIds?: number[] | undefined;
|
|
66
|
-
equipmentIds?: number[] | undefined;
|
|
67
67
|
instrumentIds?: number[] | undefined;
|
|
68
68
|
inventaryIds?: number[] | undefined;
|
|
69
69
|
contactIds?: number[] | undefined;
|
|
@@ -32,6 +32,7 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
|
|
|
32
32
|
type?: import("../enums/enums").EnumCompanyType[] | undefined;
|
|
33
33
|
description?: string | undefined;
|
|
34
34
|
name?: string | undefined;
|
|
35
|
+
equipmentIds?: number[] | undefined;
|
|
35
36
|
docs?: string | undefined;
|
|
36
37
|
inn?: string | undefined;
|
|
37
38
|
cpp?: string | undefined;
|
|
@@ -44,7 +45,6 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
|
|
|
44
45
|
};
|
|
45
46
|
}[] | undefined;
|
|
46
47
|
materialIds?: number[] | undefined;
|
|
47
|
-
equipmentIds?: number[] | undefined;
|
|
48
48
|
instrumentIds?: number[] | undefined;
|
|
49
49
|
inventaryIds?: number[] | undefined;
|
|
50
50
|
contactIds?: number[] | undefined;
|
|
@@ -54,6 +54,7 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
|
|
|
54
54
|
type?: import("../enums/enums").EnumCompanyType[] | undefined;
|
|
55
55
|
description?: string | undefined;
|
|
56
56
|
name?: string | undefined;
|
|
57
|
+
equipmentIds?: number[] | undefined;
|
|
57
58
|
docs?: string | undefined;
|
|
58
59
|
inn?: string | undefined;
|
|
59
60
|
cpp?: string | undefined;
|
|
@@ -66,7 +67,6 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
|
|
|
66
67
|
};
|
|
67
68
|
}[] | undefined;
|
|
68
69
|
materialIds?: number[] | undefined;
|
|
69
|
-
equipmentIds?: number[] | undefined;
|
|
70
70
|
instrumentIds?: number[] | undefined;
|
|
71
71
|
inventaryIds?: number[] | undefined;
|
|
72
72
|
contactIds?: number[] | undefined;
|