@pksep/zod-shared 0.0.505 → 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/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/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/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/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/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/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/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
|
@@ -5,7 +5,6 @@ import { ModelProductionTask } from './production-task.schema';
|
|
|
5
5
|
import { ModelUser } from '../../user';
|
|
6
6
|
import { StockOrderType } from '../../utils';
|
|
7
7
|
import { ModelOperationPosition } from './operation-positions.schema';
|
|
8
|
-
import { StatusProductionTaskEnum } from '../enums/production-tasks';
|
|
9
8
|
export declare const createOperationPositionSchema: z.ZodObject<{
|
|
10
9
|
operationId: z.ZodNumber;
|
|
11
10
|
employeeId: z.ZodNumber;
|
|
@@ -26,7 +25,6 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
26
25
|
ass_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
26
|
metall_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
27
|
idx: z.ZodNumber;
|
|
29
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof StatusProductionTaskEnum>>;
|
|
30
28
|
quantity_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
29
|
responsible_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
30
|
quantity: z.ZodNumber;
|
|
@@ -35,7 +33,6 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
35
33
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
36
34
|
}, "strip", z.ZodTypeAny, {
|
|
37
35
|
type: StockOrderType;
|
|
38
|
-
status: StatusProductionTaskEnum;
|
|
39
36
|
ban: boolean;
|
|
40
37
|
production_task_id: number;
|
|
41
38
|
quantity: number;
|
|
@@ -52,7 +49,6 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
|
|
|
52
49
|
production_task_id: number;
|
|
53
50
|
quantity: number;
|
|
54
51
|
idx: number;
|
|
55
|
-
status?: StatusProductionTaskEnum | undefined;
|
|
56
52
|
ban?: boolean | undefined;
|
|
57
53
|
id?: number | null | undefined;
|
|
58
54
|
responsible_user_id?: number | null | undefined;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProductionOperationPosSchema = exports.createOperationPositionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
-
const production_tasks_1 = require("../enums/production-tasks");
|
|
7
6
|
exports.createOperationPositionSchema = zod_1.z.object({
|
|
8
7
|
operationId: zod_1.z.number(),
|
|
9
8
|
employeeId: zod_1.z.number(),
|
|
@@ -16,9 +15,6 @@ exports.ProductionOperationPosSchema = zod_1.z.object({
|
|
|
16
15
|
ass_id: zod_1.z.number().nullish(),
|
|
17
16
|
metall_id: zod_1.z.number().nullish(),
|
|
18
17
|
idx: zod_1.z.number(),
|
|
19
|
-
status: zod_1.z
|
|
20
|
-
.nativeEnum(production_tasks_1.StatusProductionTaskEnum)
|
|
21
|
-
.default(production_tasks_1.StatusProductionTaskEnum.active),
|
|
22
18
|
quantity_max: zod_1.z.number().nullish(),
|
|
23
19
|
responsible_user_id: zod_1.z.number().nullish(),
|
|
24
20
|
quantity: zod_1.z.number(),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const StartTimeDetalSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
+
type_operation_id: z.ZodNumber;
|
|
5
|
+
time: z.ZodDefault<z.ZodDate>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
time: Date;
|
|
8
|
+
type_operation_id: number;
|
|
9
|
+
id?: number | null | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
type_operation_id: number;
|
|
12
|
+
id?: number | null | undefined;
|
|
13
|
+
time?: Date | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type ModelStartDetalTime = z.infer<typeof StartTimeDetalSchema>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const zod_1 = require("zod");
|
|
4
|
+
const StartTimeDetalSchema = zod_1.z.object({
|
|
5
|
+
id: zod_1.z.number().nullish(),
|
|
6
|
+
type_operation_id: zod_1.z.number().int(),
|
|
7
|
+
time: zod_1.z.date().default(new Date())
|
|
8
|
+
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { StockOrderType } from '../../utils';
|
|
3
|
-
import { StatusProductionTaskEnum } from '../enums/production-tasks';
|
|
4
3
|
import { IDescriptionFilters } from '../interfaces/production-tasks';
|
|
5
4
|
import { ModelAssemble } from '../../assemble';
|
|
6
5
|
import { ModelMetaloworking } from '../../metaloworking';
|
|
@@ -11,10 +10,10 @@ export declare const ProductionTaskSchema: z.ZodObject<{
|
|
|
11
10
|
due_data: z.ZodDate;
|
|
12
11
|
working_type: z.ZodNativeEnum<typeof StockOrderType>;
|
|
13
12
|
description: z.ZodOptional<z.ZodString>;
|
|
14
|
-
|
|
13
|
+
ban: z.ZodDefault<z.ZodBoolean>;
|
|
15
14
|
details_filters: z.ZodType<IDescriptionFilters, z.ZodTypeDef, IDescriptionFilters>;
|
|
16
15
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
|
|
16
|
+
ban: boolean;
|
|
18
17
|
due_data: Date;
|
|
19
18
|
working_type: StockOrderType;
|
|
20
19
|
details_filters: IDescriptionFilters;
|
|
@@ -24,7 +23,7 @@ export declare const ProductionTaskSchema: z.ZodObject<{
|
|
|
24
23
|
due_data: Date;
|
|
25
24
|
working_type: StockOrderType;
|
|
26
25
|
details_filters: IDescriptionFilters;
|
|
27
|
-
|
|
26
|
+
ban?: boolean | undefined;
|
|
28
27
|
description?: string | undefined;
|
|
29
28
|
id?: number | null | undefined;
|
|
30
29
|
}>;
|
|
@@ -3,14 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProductionTaskSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
-
const production_tasks_1 = require("../enums/production-tasks");
|
|
7
6
|
exports.ProductionTaskSchema = zod_1.z.object({
|
|
8
7
|
id: zod_1.z.number().nullish(),
|
|
9
8
|
due_data: zod_1.z.date(),
|
|
10
9
|
working_type: zod_1.z.nativeEnum(utils_1.StockOrderType),
|
|
11
10
|
description: zod_1.z.string().optional(),
|
|
12
|
-
|
|
13
|
-
.nativeEnum(production_tasks_1.StatusProductionTaskEnum)
|
|
14
|
-
.default(production_tasks_1.StatusProductionTaskEnum.active),
|
|
11
|
+
ban: zod_1.z.boolean().default(false),
|
|
15
12
|
details_filters: zod_1.z.custom()
|
|
16
13
|
});
|
|
@@ -3,14 +3,17 @@ import { IzdType } from '../../utils';
|
|
|
3
3
|
export declare const EntityFilteringByShipmentSchema: z.ZodObject<{
|
|
4
4
|
entityIds: z.ZodArray<z.ZodNumber, "many">;
|
|
5
5
|
shipmentIds: z.ZodArray<z.ZodNumber, "many">;
|
|
6
|
+
recursiveObject: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
|
|
6
7
|
entityType: z.ZodNativeEnum<typeof IzdType>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
shipmentIds: number[];
|
|
9
10
|
entityType: IzdType;
|
|
10
11
|
entityIds: number[];
|
|
12
|
+
recursiveObject?: any;
|
|
11
13
|
}, {
|
|
12
14
|
shipmentIds: number[];
|
|
13
15
|
entityType: IzdType;
|
|
14
16
|
entityIds: number[];
|
|
17
|
+
recursiveObject?: any;
|
|
15
18
|
}>;
|
|
16
19
|
export type EntityFilteringByShipmentDto = z.infer<typeof EntityFilteringByShipmentSchema>;
|
|
@@ -6,5 +6,6 @@ const utils_1 = require("../../utils");
|
|
|
6
6
|
exports.EntityFilteringByShipmentSchema = zod_1.z.object({
|
|
7
7
|
entityIds: zod_1.z.array(zod_1.z.number()),
|
|
8
8
|
shipmentIds: zod_1.z.array(zod_1.z.number()),
|
|
9
|
+
recursiveObject: zod_1.z.any().nullish().default({}),
|
|
9
10
|
entityType: zod_1.z.nativeEnum(utils_1.IzdType)
|
|
10
11
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IFiltersByParents } from '../../production-tasks';
|
|
1
2
|
import { ProductionTimeType } from '../types/types';
|
|
2
3
|
export declare const defaultProducitonTime: ProductionTimeType;
|
|
3
4
|
export declare const defaultUnitsMeasurement: {
|
|
@@ -10,3 +11,9 @@ export declare const emptyTimeResponse: {
|
|
|
10
11
|
totalTime: number;
|
|
11
12
|
totalRemainingTime: number;
|
|
12
13
|
};
|
|
14
|
+
export declare const defaultFullChildrens: {
|
|
15
|
+
detalsIds: number[];
|
|
16
|
+
cbedsIds: number[];
|
|
17
|
+
materialsIds: number[];
|
|
18
|
+
};
|
|
19
|
+
export declare const defaultIByParentsData: IFiltersByParents;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.emptyTimeResponse = exports.defaultUnitsMeasurement = exports.defaultProducitonTime = void 0;
|
|
3
|
+
exports.defaultIByParentsData = exports.defaultFullChildrens = exports.emptyTimeResponse = exports.defaultUnitsMeasurement = exports.defaultProducitonTime = void 0;
|
|
4
4
|
exports.defaultProducitonTime = {
|
|
5
5
|
mainTime: 0,
|
|
6
6
|
preTime: 0,
|
|
@@ -23,3 +23,13 @@ exports.emptyTimeResponse = {
|
|
|
23
23
|
totalTime: 0,
|
|
24
24
|
totalRemainingTime: 0
|
|
25
25
|
};
|
|
26
|
+
exports.defaultFullChildrens = {
|
|
27
|
+
detalsIds: [],
|
|
28
|
+
cbedsIds: [],
|
|
29
|
+
materialsIds: []
|
|
30
|
+
};
|
|
31
|
+
exports.defaultIByParentsData = {
|
|
32
|
+
productIds: [],
|
|
33
|
+
cbedIds: [],
|
|
34
|
+
detalIds: []
|
|
35
|
+
};
|