@pksep/zod-shared 0.0.528 → 0.0.529
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/dto/actions-by-param.dto.d.ts +2 -2
- package/dist/action/schemas/actions.schema.d.ts +18 -23
- package/dist/action/schemas/actions.schema.js +1 -2
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +90 -81
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +75 -68
- package/dist/assemble/schemas/assemble.schema.d.ts +69 -62
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +13 -13
- package/dist/buyer/schemas/buyer.schema.d.ts +1 -1
- package/dist/cbed/dto/cbed-pagination.dto.d.ts +1 -1
- package/dist/cbed/dto/get-one-cbed-dto.d.ts +2 -2
- package/dist/cbed/dto/up-create-cbed.dto.d.ts +6 -6
- package/dist/cbed/schemas/cbed-material.schema.d.ts +2 -2
- package/dist/cbed/schemas/cbed.schema.d.ts +21 -21
- package/dist/company/dto/create-company.dto.d.ts +10 -10
- package/dist/company/dto/update-company.dto.d.ts +10 -10
- package/dist/company/schemas/companies.schema.d.ts +4 -4
- package/dist/contact/dto/create-contact.dto.d.ts +6 -6
- package/dist/contact/dto/update-contact.dto.d.ts +6 -6
- package/dist/contact/schemas/contact.schema.d.ts +3 -3
- package/dist/deliveries/dto/create-deliveries.dto.d.ts +3 -3
- package/dist/deliveries/schemas/deliveries-inventary.schema.d.ts +2 -2
- package/dist/deliveries/schemas/deliveries.schema.d.ts +4 -4
- package/dist/detal/dto/detal-pagination.dto.d.ts +2 -2
- package/dist/detal/dto/get-one-detal-dto.d.ts +1 -1
- package/dist/detal/dto/update-detal.dto.d.ts +9 -9
- package/dist/detal/schemas/detal-deficit.schema.d.ts +203 -203
- package/dist/detal/schemas/detal.schema.d.ts +200 -200
- package/dist/document/schemas/documentsSchema.d.ts +4 -4
- package/dist/equipment/dto/create-equipment.dto.d.ts +1 -1
- package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
- package/dist/equipment/schemas/equipment.schema.d.ts +98 -98
- package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
- package/dist/expenditure/schema/expenditure.schema.d.ts +2 -2
- package/dist/instrument/dto/create-name-instrument.dto.d.ts +1 -1
- package/dist/instrument/dto/update-name-instrument.dto.d.ts +2 -2
- package/dist/inventary/dto/create-inventary.dto.d.ts +1 -1
- package/dist/marks/dto/change-mark-quantity.dto.d.ts +16 -16
- package/dist/marks/dto/create-mark.dto.d.ts +8 -8
- package/dist/marks/dto/update-mark.dto.d.ts +2 -2
- package/dist/marks/schemas/marks.schema.d.ts +8 -8
- package/dist/marks/type/type.d.ts +2 -2
- package/dist/material/dto/create-material.dto.d.ts +20 -20
- package/dist/material/schemas/material-characteristics.schema.d.ts +6 -6
- package/dist/material/schemas/material.schema.d.ts +26 -26
- package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +4 -4
- package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
- package/dist/movement-error/schemas/movement-error.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +460 -460
- package/dist/operations/dto/create-type-operation.dto.d.ts +4 -0
- package/dist/operations/dto/create-type-operation.dto.js +5 -1
- package/dist/operations/dto/update-type-operation.dto.d.ts +4 -0
- package/dist/operations/dto/update-type-operation.dto.js +5 -1
- package/dist/operations/enums/enums.d.ts +7 -0
- package/dist/operations/enums/enums.js +21 -1
- package/dist/operations/index.d.ts +2 -0
- package/dist/operations/index.js +2 -0
- package/dist/operations/interfaces/interface.d.ts +5 -0
- package/dist/operations/schemas/operation.schema.d.ts +21 -17
- package/dist/operations/schemas/operation.schema.js +4 -0
- package/dist/operations/schemas/type-operation.schema.d.ts +4 -0
- package/dist/operations/schemas/type-operation.schema.js +2 -0
- package/dist/product/dto/up-create-product.dto.d.ts +7 -7
- package/dist/product/schemas/product-deficit.schema.d.ts +20 -20
- package/dist/product/schemas/product-material.schema.d.ts +2 -2
- package/dist/product/schemas/product-specification.schema.d.ts +2 -2
- package/dist/product/schemas/product.schema.d.ts +17 -17
- package/dist/production-tasks/dto/create-operation-pos.dto.d.ts +2 -2
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +4 -0
- 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 +4 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.js +2 -0
- package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +2 -2
- package/dist/production-tasks/interfaces/production-tasks.d.ts +1 -0
- package/dist/production-tasks/schemas/operation-positions.schema.d.ts +4 -4
- package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +4 -4
- package/dist/provider/dto/create-provider.dto.d.ts +4 -4
- package/dist/provider/schemas/provider.schema.d.ts +1 -1
- package/dist/role/schemas/role.schema.d.ts +453 -453
- package/dist/sclad/schemas/remain.schema.d.ts +2 -2
- package/dist/sclad/schemas/remains.schema.d.ts +6 -6
- package/dist/shipments/dto/get-attributes.dto.d.ts +2 -2
- package/dist/shipments/dto/shipments-list-pagination.dto.d.ts +1 -1
- package/dist/shipments/dto/shipments-paginate.dto.d.ts +2 -2
- package/dist/shipments/schemas/sh-complit.schema.d.ts +2 -2
- package/dist/shipments/schemas/shipments.schema.d.ts +2 -2
- package/dist/specification/dto/specification-attributes.dto.d.ts +1 -1
- package/dist/specification/schema/attributes.schema.d.ts +472 -472
- package/dist/stock-order/schemas/stock-order-item.schema.d.ts +2 -2
- package/dist/tech-process/schemas/tech-process.schema.d.ts +31 -26
- package/dist/thread/dto/add-thread.dto.d.ts +8 -8
- package/dist/user/dto/create-user.dto.d.ts +5 -5
- package/dist/user/dto/get-one-user.dto.d.ts +2 -2
- package/dist/user/schemas/user.schema.d.ts +266 -266
- package/dist/utils/enums.d.ts +1 -1
- package/dist/utils/enums.js +1 -1
- package/dist/waybill/schemas/waybill-product.schema.d.ts +8 -8
- package/dist/waybill/schemas/waybill.schema.d.ts +2 -2
- package/package.json +1 -1
|
@@ -23,8 +23,8 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
|
|
|
23
23
|
}>, "many">;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
type: StockOrderType;
|
|
26
|
-
production_task_id: number;
|
|
27
26
|
quantity: number;
|
|
27
|
+
production_task_id: number;
|
|
28
28
|
idx: number;
|
|
29
29
|
operation_positions: {
|
|
30
30
|
operationId: number;
|
|
@@ -36,8 +36,8 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
|
|
|
36
36
|
metall_id?: number | null | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
type: StockOrderType;
|
|
39
|
-
production_task_id: number;
|
|
40
39
|
quantity: number;
|
|
40
|
+
production_task_id: number;
|
|
41
41
|
idx: number;
|
|
42
42
|
operation_positions: {
|
|
43
43
|
operationId: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WorkStartCalcTypeFilter } from '../../operations/enums/enums';
|
|
2
3
|
export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
3
4
|
equipmentId: z.ZodNumber;
|
|
4
5
|
searchString: z.ZodOptional<z.ZodString>;
|
|
@@ -14,6 +15,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
14
15
|
end?: any;
|
|
15
16
|
}>>>;
|
|
16
17
|
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
workStartCalcTypeFilter: z.ZodOptional<z.ZodNativeEnum<typeof WorkStartCalcTypeFilter>>;
|
|
17
19
|
}, "strip", z.ZodTypeAny, {
|
|
18
20
|
equipmentId: number;
|
|
19
21
|
searchString?: string | undefined;
|
|
@@ -23,6 +25,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
23
25
|
} | null | undefined;
|
|
24
26
|
taskId?: number | null | undefined;
|
|
25
27
|
onlyTOperation?: number | undefined;
|
|
28
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
26
29
|
}, {
|
|
27
30
|
equipmentId: number;
|
|
28
31
|
searchString?: string | undefined;
|
|
@@ -32,5 +35,6 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
32
35
|
} | null | undefined;
|
|
33
36
|
taskId?: number | null | undefined;
|
|
34
37
|
onlyTOperation?: number | undefined;
|
|
38
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
35
39
|
}>;
|
|
36
40
|
export type GetProductionTaskByEquipmentDtoZodType = z.infer<typeof GetProductionTaskByEquipmentDtoZod>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetProductionTaskByEquipmentDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../operations/enums/enums");
|
|
5
6
|
exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
|
|
6
7
|
equipmentId: zod_1.z.number().int(),
|
|
7
8
|
searchString: zod_1.z.string().optional(),
|
|
@@ -13,5 +14,6 @@ exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
|
|
|
13
14
|
})
|
|
14
15
|
.nullable()
|
|
15
16
|
.optional(),
|
|
16
|
-
onlyTOperation: zod_1.z.number().int().optional()
|
|
17
|
+
onlyTOperation: zod_1.z.number().int().optional(),
|
|
18
|
+
workStartCalcTypeFilter: zod_1.z.nativeEnum(enums_1.WorkStartCalcTypeFilter).optional()
|
|
17
19
|
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WorkStartCalcTypeFilter } from '../../operations/enums/enums';
|
|
2
3
|
export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
3
4
|
userId: z.ZodNumber;
|
|
4
5
|
searchString: z.ZodOptional<z.ZodString>;
|
|
5
6
|
page: z.ZodDefault<z.ZodNumber>;
|
|
6
7
|
taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
7
8
|
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
workStartCalcTypeFilter: z.ZodOptional<z.ZodNativeEnum<typeof WorkStartCalcTypeFilter>>;
|
|
8
10
|
range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
11
|
start: z.ZodAny;
|
|
10
12
|
end: z.ZodAny;
|
|
@@ -25,6 +27,7 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
|
25
27
|
} | null | undefined;
|
|
26
28
|
taskId?: number | null | undefined;
|
|
27
29
|
onlyTOperation?: number | undefined;
|
|
30
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
28
31
|
}, {
|
|
29
32
|
userId: number;
|
|
30
33
|
page?: number | undefined;
|
|
@@ -35,5 +38,6 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
|
35
38
|
} | null | undefined;
|
|
36
39
|
taskId?: number | null | undefined;
|
|
37
40
|
onlyTOperation?: number | undefined;
|
|
41
|
+
workStartCalcTypeFilter?: WorkStartCalcTypeFilter | undefined;
|
|
38
42
|
}>;
|
|
39
43
|
export type GetProductionTaskByUserDtoZodType = z.infer<typeof GetProductionTaskByUserDtoZod>;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetProductionTaskByUserDtoZod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../operations/enums/enums");
|
|
5
6
|
exports.GetProductionTaskByUserDtoZod = zod_1.z.object({
|
|
6
7
|
userId: zod_1.z.number().int(),
|
|
7
8
|
searchString: zod_1.z.string().optional(),
|
|
8
9
|
page: zod_1.z.number().int().min(0).default(0),
|
|
9
10
|
taskId: zod_1.z.number().int().nullable().default(null).optional(),
|
|
10
11
|
onlyTOperation: zod_1.z.number().int().optional(),
|
|
12
|
+
workStartCalcTypeFilter: zod_1.z.nativeEnum(enums_1.WorkStartCalcTypeFilter).optional(),
|
|
11
13
|
range: zod_1.z
|
|
12
14
|
.object({
|
|
13
15
|
start: zod_1.z.any(),
|
|
@@ -23,8 +23,8 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
23
23
|
};
|
|
24
24
|
entityType: StockOrderType;
|
|
25
25
|
userId?: number | null | undefined;
|
|
26
|
-
equipmentId?: number | null | undefined;
|
|
27
26
|
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
27
|
+
equipmentId?: number | null | undefined;
|
|
28
28
|
typeOperationId?: number | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
range: {
|
|
@@ -33,8 +33,8 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
|
|
|
33
33
|
};
|
|
34
34
|
entityType: StockOrderType;
|
|
35
35
|
userId?: number | null | undefined;
|
|
36
|
-
equipmentId?: number | null | undefined;
|
|
37
36
|
subdivision?: import("../../user").EnumSubdivision | null | undefined;
|
|
37
|
+
equipmentId?: number | null | undefined;
|
|
38
38
|
typeOperationId?: number | null | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
|
|
@@ -27,10 +27,10 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
27
27
|
create_time_minutes: number;
|
|
28
28
|
count_created: number;
|
|
29
29
|
is_relevance: boolean;
|
|
30
|
-
user_id?: number | null | undefined;
|
|
31
|
-
idx?: number | undefined;
|
|
32
30
|
equipment_id?: number | null | undefined;
|
|
31
|
+
user_id?: number | null | undefined;
|
|
33
32
|
operation_id?: number | null | undefined;
|
|
33
|
+
idx?: number | undefined;
|
|
34
34
|
start_time?: Date | null | undefined;
|
|
35
35
|
detal_idx?: number | undefined;
|
|
36
36
|
production_operation_pos_id?: number | null | undefined;
|
|
@@ -40,10 +40,10 @@ export declare const OperationPositionSchema: z.ZodObject<{
|
|
|
40
40
|
createdAt: Date;
|
|
41
41
|
updatedAt: Date;
|
|
42
42
|
ban?: boolean | undefined;
|
|
43
|
-
user_id?: number | null | undefined;
|
|
44
|
-
idx?: number | undefined;
|
|
45
43
|
equipment_id?: number | null | undefined;
|
|
44
|
+
user_id?: number | null | undefined;
|
|
46
45
|
operation_id?: number | null | undefined;
|
|
46
|
+
idx?: number | undefined;
|
|
47
47
|
start_time?: Date | null | undefined;
|
|
48
48
|
detal_idx?: number | undefined;
|
|
49
49
|
create_time_minutes?: number | undefined;
|
|
@@ -32,25 +32,25 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
type: StockOrderType;
|
|
34
34
|
ban: boolean;
|
|
35
|
-
production_task_id: number;
|
|
36
35
|
quantity: number;
|
|
36
|
+
production_task_id: number;
|
|
37
37
|
idx: number;
|
|
38
38
|
id?: number | null | undefined;
|
|
39
|
+
ass_id?: number | null | undefined;
|
|
39
40
|
createdAt?: Date | undefined;
|
|
40
41
|
updatedAt?: Date | undefined;
|
|
41
|
-
ass_id?: number | null | undefined;
|
|
42
42
|
metall_id?: number | null | undefined;
|
|
43
43
|
quantity_max?: number | null | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
type: StockOrderType;
|
|
46
|
-
production_task_id: number;
|
|
47
46
|
quantity: number;
|
|
47
|
+
production_task_id: number;
|
|
48
48
|
idx: number;
|
|
49
49
|
ban?: boolean | undefined;
|
|
50
50
|
id?: number | null | undefined;
|
|
51
|
+
ass_id?: number | null | undefined;
|
|
51
52
|
createdAt?: Date | undefined;
|
|
52
53
|
updatedAt?: Date | undefined;
|
|
53
|
-
ass_id?: number | null | undefined;
|
|
54
54
|
metall_id?: number | null | undefined;
|
|
55
55
|
quantity_max?: number | null | undefined;
|
|
56
56
|
}>;
|
|
@@ -18,11 +18,11 @@ export declare const CreateProviderDtoZod: z.ZodObject<{
|
|
|
18
18
|
description: string;
|
|
19
19
|
name: string;
|
|
20
20
|
contacts: string;
|
|
21
|
+
materialList: EntityCommonSpecificationArray;
|
|
22
|
+
attention: boolean;
|
|
21
23
|
inn: string;
|
|
22
24
|
cpp: string;
|
|
23
25
|
rekvisit: string;
|
|
24
|
-
attention: boolean;
|
|
25
|
-
materialList: EntityCommonSpecificationArray;
|
|
26
26
|
file_base: string;
|
|
27
27
|
id?: string | null | undefined;
|
|
28
28
|
docs?: string | undefined;
|
|
@@ -32,14 +32,14 @@ export declare const CreateProviderDtoZod: z.ZodObject<{
|
|
|
32
32
|
description: string;
|
|
33
33
|
name: string;
|
|
34
34
|
contacts: string;
|
|
35
|
+
attention: string;
|
|
35
36
|
inn: string;
|
|
36
37
|
cpp: string;
|
|
37
38
|
rekvisit: string;
|
|
38
|
-
attention: string;
|
|
39
39
|
file_base: string;
|
|
40
40
|
id?: string | null | undefined;
|
|
41
|
-
docs?: string | undefined;
|
|
42
41
|
materialList?: unknown;
|
|
42
|
+
docs?: string | undefined;
|
|
43
43
|
toolListId?: string | undefined;
|
|
44
44
|
equipmentListId?: string | undefined;
|
|
45
45
|
}>;
|
|
@@ -25,9 +25,9 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
25
25
|
description?: string | undefined;
|
|
26
26
|
id?: number | null | undefined;
|
|
27
27
|
contacts?: string | undefined;
|
|
28
|
+
attention?: boolean | undefined;
|
|
28
29
|
inn?: string | undefined;
|
|
29
30
|
cpp?: string | undefined;
|
|
30
31
|
rekvisit?: string | undefined;
|
|
31
|
-
attention?: boolean | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
export type ModelProviders = z.infer<typeof ProvidersSchema>;
|