@pksep/zod-shared 0.0.554 → 0.0.556
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 +10 -0
- package/dist/action/enums/enums.js +10 -0
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +24 -24
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +18 -18
- package/dist/assemble/schemas/assemble.schema.d.ts +18 -18
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +6 -6
- package/dist/buyer/schemas/buyer.schema.d.ts +2 -2
- package/dist/buyer/schemas/purchases.schema.d.ts +2 -2
- package/dist/cbed/schemas/cbed.schema.d.ts +2 -2
- package/dist/company/schemas/companies.schema.d.ts +2 -2
- package/dist/detal/default-values/default-values.d.ts +4 -0
- package/dist/detal/default-values/default-values.js +4 -0
- package/dist/detal/schemas/detal-deficit.schema.d.ts +198 -28
- package/dist/detal/schemas/detal.schema.d.ts +192 -22
- package/dist/document/dto/update-document.dto.d.ts +2 -2
- package/dist/edizm/schemas/edizm.schema.d.ts +2 -2
- package/dist/edizm/schemas/type-edizm.schema.d.ts +6 -6
- package/dist/equipment/dto/udate-equipment-type.dto.d.ts +2 -2
- package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
- package/dist/equipment/schemas/equipment-pt.schema.d.ts +2 -2
- package/dist/equipment/schemas/equipment.schema.d.ts +6 -6
- package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +4 -4
- package/dist/expenditure/schema/expenditure-position.schema.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/instrument/dto/update-instrument.dto.d.ts +2 -2
- package/dist/instrument/dto/update-pt.dto.d.ts +2 -2
- package/dist/instrument/schemas/pt-instrument.schema.d.ts +2 -2
- package/dist/inventary/dto/update-inventary.dto.d.ts +2 -2
- package/dist/material/dto/create-material.dto.d.ts +136 -0
- package/dist/material/dto/create-material.dto.js +16 -0
- package/dist/material/dto/up-create-type-material.dto.d.ts +4 -0
- package/dist/material/dto/up-create-type-material.dto.js +6 -1
- package/dist/material/enum/enum.d.ts +10 -0
- package/dist/material/enum/enum.js +12 -1
- package/dist/material/index.d.ts +1 -0
- package/dist/material/index.js +1 -0
- package/dist/material/interfaces/interface.d.ts +5 -0
- package/dist/material/schemas/material-characteristics.schema.d.ts +56 -0
- package/dist/material/schemas/material-characteristics.schema.js +3 -1
- package/dist/material/schemas/material-shipments-response.schema.d.ts +130 -6
- package/dist/material/schemas/material.schema.d.ts +130 -6
- package/dist/material/schemas/subtype-material.schema.d.ts +2 -2
- package/dist/material/schemas/subtype-material.schema.js +1 -1
- package/dist/material/schemas/type-material.schema.d.ts +118 -2
- package/dist/material/schemas/type-material.schema.js +9 -2
- package/dist/material/utils/workpiece-mass.js +13 -6
- package/dist/material/workpiece-mass.d.ts +45 -0
- package/dist/material/workpiece-mass.js +400 -0
- package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +6 -6
- package/dist/operations/dto/get-type-operation-by-id.dto.d.ts +3 -3
- package/dist/operations/dto/update-type-operation.dto.d.ts +2 -2
- package/dist/product/schemas/product-deficit.schema.d.ts +6 -6
- package/dist/production-tasks/index.d.ts +1 -0
- package/dist/production-tasks/index.js +1 -0
- package/dist/production-tasks/interfaces/production-tasks.d.ts +8 -3
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +349 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +83 -0
- package/dist/role/dto/update-role.dto.d.ts +2 -2
- package/dist/role/schemas/role.schema.d.ts +8 -8
- package/dist/sclad/schemas/remain.schema.d.ts +2 -2
- package/dist/sclad/schemas/remains.schema.d.ts +16 -16
- package/dist/settings/dto/update-edizm.dto.d.ts +2 -2
- package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +18 -18
- package/dist/shipments/dto/up-create-shipments.dto.d.ts +4 -4
- package/dist/shipments/schemas/shipment-list-item.schema.d.ts +12 -12
- package/dist/shipments/schemas/shipments.schema.d.ts +4 -4
- package/dist/shipments/types/increment-shipments-kolvo.type.d.ts +12 -12
- package/dist/shipments/types/types.d.ts +1 -0
- package/dist/shipments/types/update-shipments-by-product.type.d.ts +12 -12
- package/dist/specification/schema/attributes.schema.d.ts +432 -46
- package/dist/tech-process/schemas/tech-process.schema.d.ts +2 -2
- package/dist/user/schemas/user.schema.d.ts +4 -4
- package/dist/utils/interface/status-flags.interface.d.ts +4 -0
- package/dist/utils/methods.js +4 -2
- package/dist/utils/schemas/schema.d.ts +2 -2
- package/dist/utils/types.d.ts +6 -0
- package/package.json +1 -1
- package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
- package/dist/issue/dto/up-create-issue.dto.js +0 -21
- package/dist/issue/index.d.ts +0 -5
- package/dist/issue/index.js +0 -21
- package/dist/issue/interfaces/interface.d.ts +0 -4
- package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
- package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user.schema.js +0 -9
- package/dist/issue/schemas/issue.schema.d.ts +0 -51
- package/dist/issue/schemas/issue.schema.js +0 -21
- package/dist/library/dto/create-chapter.dto.d.ts +0 -12
- package/dist/library/dto/create-chapter.dto.js +0 -8
- package/dist/library/dto/create-link.dto.d.ts +0 -30
- package/dist/library/dto/create-link.dto.js +0 -14
- package/dist/library/index.d.ts +0 -5
- package/dist/library/index.js +0 -21
- package/dist/library/interfaces/interface.d.ts +0 -3
- package/dist/library/interfaces/interface.js +0 -2
- package/dist/library/schemas/links-user.schema.d.ts +0 -15
- package/dist/library/schemas/links-user.schema.js +0 -9
- package/dist/library/schemas/links.schema.d.ts +0 -30
- package/dist/library/schemas/links.schema.js +0 -14
- package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-marks.dto.js +0 -8
- package/dist/production-tasks/dto/update-responsible.dto.d.ts +0 -12
- package/dist/production-tasks/dto/update-responsible.dto.js +0 -8
- package/dist/production-tasks/dto/update-status.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-status.dto.js +0 -9
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
- package/dist/utils/interface/mat.interface.d.ts +0 -10
- package/dist/utils/interface/mat.interface.js +0 -2
- /package/dist/{issue/interfaces/interface.js → utils/interface/status-flags.interface.js} +0 -0
|
@@ -196,8 +196,8 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
196
196
|
}, "strip", z.ZodTypeAny, {
|
|
197
197
|
ban: boolean;
|
|
198
198
|
description: string;
|
|
199
|
-
id?: number | null | undefined;
|
|
200
199
|
name?: number | undefined;
|
|
200
|
+
id?: number | null | undefined;
|
|
201
201
|
detalId?: number | null | undefined;
|
|
202
202
|
cbedId?: number | null | undefined;
|
|
203
203
|
productId?: number | null | undefined;
|
|
@@ -249,8 +249,8 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
249
249
|
}, {
|
|
250
250
|
ban?: boolean | undefined;
|
|
251
251
|
description?: string | undefined;
|
|
252
|
-
id?: number | null | undefined;
|
|
253
252
|
name?: number | undefined;
|
|
253
|
+
id?: number | null | undefined;
|
|
254
254
|
detalId?: number | null | undefined;
|
|
255
255
|
cbedId?: number | null | undefined;
|
|
256
256
|
productId?: number | null | undefined;
|
|
@@ -125,8 +125,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
125
125
|
cbed: import("../../cbed").CbedRelativeType[];
|
|
126
126
|
designation: string | null;
|
|
127
127
|
description: string | null;
|
|
128
|
-
id: number;
|
|
129
128
|
name: string;
|
|
129
|
+
id: number;
|
|
130
130
|
calculate_needs_time: Date | null;
|
|
131
131
|
entity_children_need_time: Date | null;
|
|
132
132
|
min_remaining: number;
|
|
@@ -156,8 +156,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
156
156
|
}, {
|
|
157
157
|
designation: string | null;
|
|
158
158
|
description: string | null;
|
|
159
|
-
id: number;
|
|
160
159
|
name: string;
|
|
160
|
+
id: number;
|
|
161
161
|
ava_path: string | null;
|
|
162
162
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
163
163
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
@@ -600,8 +600,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
600
600
|
cbed: import("../../cbed").CbedRelativeType[];
|
|
601
601
|
designation: string | null;
|
|
602
602
|
description: string | null;
|
|
603
|
-
id: number;
|
|
604
603
|
name: string;
|
|
604
|
+
id: number;
|
|
605
605
|
calculate_needs_time: Date | null;
|
|
606
606
|
entity_children_need_time: Date | null;
|
|
607
607
|
min_remaining: number;
|
|
@@ -794,8 +794,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
794
794
|
cbeds: {
|
|
795
795
|
designation: string | null;
|
|
796
796
|
description: string | null;
|
|
797
|
-
id: number;
|
|
798
797
|
name: string;
|
|
798
|
+
id: number;
|
|
799
799
|
ava_path: string | null;
|
|
800
800
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
801
801
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
package/dist/utils/methods.js
CHANGED
|
@@ -800,7 +800,8 @@ const countChildrensRelative = (data) => {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
const materialMap = new Map();
|
|
803
|
-
const materialsArray = concatedMaterialLists
|
|
803
|
+
const materialsArray = concatedMaterialLists
|
|
804
|
+
.map((listMaterialItem) => {
|
|
804
805
|
const foundedMaterials = materials.find(material => listMaterialItem.id === material.id);
|
|
805
806
|
// если материал не найден, пропускаем
|
|
806
807
|
if (!foundedMaterials) {
|
|
@@ -819,7 +820,8 @@ const countChildrensRelative = (data) => {
|
|
|
819
820
|
return Object.assign(Object.assign(Object.assign({}, foundedMaterials), (0, sequelize_1.addFieldByCondition)(data.isNeedsTypes, {
|
|
820
821
|
entity_type: enums_1.IzdType.material
|
|
821
822
|
})), { measure_id: listMaterialItem.measureId, count_to_obj_not_converted: listMaterialItem.quantity, count_to_needs_not_converted: relativeNeeds * listMaterialItem.quantity, count_to_obj: specificationConvertedQuantity, count_to_needs: relativeNeeds * specificationConvertedQuantity, needs: relativeNeeds * specificationConvertedQuantity, parent_id: relative.id, parent_type: relativeType, parent_ava: relative === null || relative === void 0 ? void 0 : relative.ava_path, parent_designation: (relative === null || relative === void 0 ? void 0 : relative.designation) || '-', parent_name: (relative === null || relative === void 0 ? void 0 : relative.name) || '-' });
|
|
822
|
-
})
|
|
823
|
+
})
|
|
824
|
+
.filter(Boolean);
|
|
823
825
|
materialsArray.forEach((currentMaterial) => {
|
|
824
826
|
const materialKey = `${currentMaterial.parent_id}_${currentMaterial.parent_type}_${currentMaterial.id}`;
|
|
825
827
|
if (materialMap.has(materialKey)) {
|
|
@@ -8,15 +8,15 @@ export declare const SpecificationForObjectSchema: z.ZodObject<{
|
|
|
8
8
|
measureId: z.ZodNumber;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
designation: string;
|
|
11
|
-
id: number;
|
|
12
11
|
name: string;
|
|
12
|
+
id: number;
|
|
13
13
|
quantity: number;
|
|
14
14
|
discontinued: boolean;
|
|
15
15
|
measureId: number;
|
|
16
16
|
}, {
|
|
17
17
|
designation: string;
|
|
18
|
-
id: number;
|
|
19
18
|
name: string;
|
|
19
|
+
id: number;
|
|
20
20
|
quantity: number;
|
|
21
21
|
measureId: number;
|
|
22
22
|
discontinued?: boolean | undefined;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export type DetalWorkpieceCharacteristics = {
|
|
|
57
57
|
outsideDiameter: number;
|
|
58
58
|
thickness: number;
|
|
59
59
|
areaCrossSectional: number;
|
|
60
|
+
acrossFlats: number;
|
|
61
|
+
massPerMeter: number;
|
|
60
62
|
mass: number;
|
|
61
63
|
trash: number;
|
|
62
64
|
density: number;
|
|
@@ -76,6 +78,8 @@ export type MaterialCharacteristics = {
|
|
|
76
78
|
outsideDiameter: MaterialCharacteristicsItem;
|
|
77
79
|
thickness: MaterialCharacteristicsItem;
|
|
78
80
|
areaCrossSectional: MaterialCharacteristicsItem;
|
|
81
|
+
acrossFlats: MaterialCharacteristicsItem;
|
|
82
|
+
massPerMeter: MaterialCharacteristicsItem;
|
|
79
83
|
};
|
|
80
84
|
export declare enum TypeMaterialCharZnachEnum {
|
|
81
85
|
variable = "variable",
|
|
@@ -94,6 +98,8 @@ export type TypeMaterialCharacteristics = {
|
|
|
94
98
|
outsideDiameter: TypeMaterialCharacteristicsItem;
|
|
95
99
|
thickness: TypeMaterialCharacteristicsItem;
|
|
96
100
|
areaCrossSectional: TypeMaterialCharacteristicsItem;
|
|
101
|
+
acrossFlats: TypeMaterialCharacteristicsItem;
|
|
102
|
+
massPerMeter: TypeMaterialCharacteristicsItem;
|
|
97
103
|
};
|
|
98
104
|
export interface IgetFirstUnits {
|
|
99
105
|
units_measurement: any[];
|
package/package.json
CHANGED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { StatusIssue } from '../../utils';
|
|
3
|
-
export declare const UpCreateIssueDtoZod: z.ZodObject<{
|
|
4
|
-
description: z.ZodString;
|
|
5
|
-
dateUse: z.ZodString;
|
|
6
|
-
normTime: z.ZodString;
|
|
7
|
-
sourse: z.ZodString;
|
|
8
|
-
srok: z.ZodString;
|
|
9
|
-
status: z.ZodNativeEnum<typeof StatusIssue>;
|
|
10
|
-
controllerList: z.ZodString;
|
|
11
|
-
executorList: z.ZodString;
|
|
12
|
-
izdList: z.ZodString;
|
|
13
|
-
shopNeeds: z.ZodString;
|
|
14
|
-
fileArrModal: z.ZodString;
|
|
15
|
-
srok_control: z.ZodString;
|
|
16
|
-
id: z.ZodNumber;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
status: StatusIssue;
|
|
20
|
-
id: number;
|
|
21
|
-
name: string;
|
|
22
|
-
description: string;
|
|
23
|
-
dateUse: string;
|
|
24
|
-
normTime: string;
|
|
25
|
-
sourse: string;
|
|
26
|
-
srok: string;
|
|
27
|
-
controllerList: string;
|
|
28
|
-
executorList: string;
|
|
29
|
-
srok_control: string;
|
|
30
|
-
izdList: string;
|
|
31
|
-
shopNeeds: string;
|
|
32
|
-
fileArrModal: string;
|
|
33
|
-
}, {
|
|
34
|
-
status: StatusIssue;
|
|
35
|
-
id: number;
|
|
36
|
-
name: string;
|
|
37
|
-
description: string;
|
|
38
|
-
dateUse: string;
|
|
39
|
-
normTime: string;
|
|
40
|
-
sourse: string;
|
|
41
|
-
srok: string;
|
|
42
|
-
controllerList: string;
|
|
43
|
-
executorList: string;
|
|
44
|
-
srok_control: string;
|
|
45
|
-
izdList: string;
|
|
46
|
-
shopNeeds: string;
|
|
47
|
-
fileArrModal: string;
|
|
48
|
-
}>;
|
|
49
|
-
export type UpCreateIssueDtoType = z.infer<typeof UpCreateIssueDtoZod>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpCreateIssueDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
|
-
exports.UpCreateIssueDtoZod = zod_1.z.object({
|
|
7
|
-
description: zod_1.z.string(),
|
|
8
|
-
dateUse: zod_1.z.string(),
|
|
9
|
-
normTime: zod_1.z.string(),
|
|
10
|
-
sourse: zod_1.z.string(),
|
|
11
|
-
srok: zod_1.z.string(),
|
|
12
|
-
status: zod_1.z.nativeEnum(utils_1.StatusIssue),
|
|
13
|
-
controllerList: zod_1.z.string(),
|
|
14
|
-
executorList: zod_1.z.string(),
|
|
15
|
-
izdList: zod_1.z.string(),
|
|
16
|
-
shopNeeds: zod_1.z.string(),
|
|
17
|
-
fileArrModal: zod_1.z.string(),
|
|
18
|
-
srok_control: zod_1.z.string(),
|
|
19
|
-
id: zod_1.z.number(),
|
|
20
|
-
name: zod_1.z.string()
|
|
21
|
-
});
|
package/dist/issue/index.d.ts
DELETED
package/dist/issue/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./schemas/issue.schema"), exports);
|
|
18
|
-
__exportStar(require("./schemas/issue-user.schema"), exports);
|
|
19
|
-
__exportStar(require("./schemas/issue-user-controller.schema"), exports);
|
|
20
|
-
__exportStar(require("./interfaces/interface"), exports);
|
|
21
|
-
__exportStar(require("./dto/up-create-issue.dto"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const issueUserControllerSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
issueId: z.ZodNumber;
|
|
5
|
-
userId: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
userId: number;
|
|
8
|
-
issueId: number;
|
|
9
|
-
id?: number | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
userId: number;
|
|
12
|
-
issueId: number;
|
|
13
|
-
id?: number | null | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export type ModelIssueUserController = z.infer<typeof issueUserControllerSchema>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.issueUserControllerSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.issueUserControllerSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
issueId: zod_1.z.number().int().positive(),
|
|
8
|
-
userId: zod_1.z.number().int().positive()
|
|
9
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const issueUserSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
issueId: z.ZodNumber;
|
|
5
|
-
userId: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
userId: number;
|
|
8
|
-
issueId: number;
|
|
9
|
-
id?: number | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
userId: number;
|
|
12
|
-
issueId: number;
|
|
13
|
-
id?: number | null | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export type ModelissueUser = z.infer<typeof issueUserSchema>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.issueUserSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.issueUserSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
issueId: zod_1.z.number().int().positive(),
|
|
8
|
-
userId: zod_1.z.number().int().positive()
|
|
9
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const IssueSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
dateUse: z.ZodOptional<z.ZodString>;
|
|
7
|
-
normTime: z.ZodOptional<z.ZodString>;
|
|
8
|
-
sourse: z.ZodOptional<z.ZodString>;
|
|
9
|
-
srok: z.ZodOptional<z.ZodString>;
|
|
10
|
-
status: z.ZodOptional<z.ZodString>;
|
|
11
|
-
controllerList: z.ZodOptional<z.ZodString>;
|
|
12
|
-
executorList: z.ZodOptional<z.ZodString>;
|
|
13
|
-
srok_control: z.ZodOptional<z.ZodString>;
|
|
14
|
-
izdList: z.ZodOptional<z.ZodString>;
|
|
15
|
-
shopNeeds: z.ZodOptional<z.ZodString>;
|
|
16
|
-
instans: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
responsibleUserId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
name: string;
|
|
20
|
-
instans: number;
|
|
21
|
-
status?: string | undefined;
|
|
22
|
-
id?: number | null | undefined;
|
|
23
|
-
description?: string | undefined;
|
|
24
|
-
responsibleUserId?: number | null | undefined;
|
|
25
|
-
dateUse?: string | undefined;
|
|
26
|
-
normTime?: string | undefined;
|
|
27
|
-
sourse?: string | undefined;
|
|
28
|
-
srok?: string | undefined;
|
|
29
|
-
controllerList?: string | undefined;
|
|
30
|
-
executorList?: string | undefined;
|
|
31
|
-
srok_control?: string | undefined;
|
|
32
|
-
izdList?: string | undefined;
|
|
33
|
-
shopNeeds?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
name: string;
|
|
36
|
-
status?: string | undefined;
|
|
37
|
-
id?: number | null | undefined;
|
|
38
|
-
description?: string | undefined;
|
|
39
|
-
instans?: number | undefined;
|
|
40
|
-
responsibleUserId?: number | null | undefined;
|
|
41
|
-
dateUse?: string | undefined;
|
|
42
|
-
normTime?: string | undefined;
|
|
43
|
-
sourse?: string | undefined;
|
|
44
|
-
srok?: string | undefined;
|
|
45
|
-
controllerList?: string | undefined;
|
|
46
|
-
executorList?: string | undefined;
|
|
47
|
-
srok_control?: string | undefined;
|
|
48
|
-
izdList?: string | undefined;
|
|
49
|
-
shopNeeds?: string | undefined;
|
|
50
|
-
}>;
|
|
51
|
-
export type ModelIssue = z.infer<typeof IssueSchema>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IssueSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.IssueSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
description: zod_1.z.string().optional(),
|
|
9
|
-
dateUse: zod_1.z.string().optional(),
|
|
10
|
-
normTime: zod_1.z.string().optional(),
|
|
11
|
-
sourse: zod_1.z.string().optional(),
|
|
12
|
-
srok: zod_1.z.string().optional(),
|
|
13
|
-
status: zod_1.z.string().optional(),
|
|
14
|
-
controllerList: zod_1.z.string().optional(),
|
|
15
|
-
executorList: zod_1.z.string().optional(),
|
|
16
|
-
srok_control: zod_1.z.string().optional(),
|
|
17
|
-
izdList: zod_1.z.string().optional(),
|
|
18
|
-
shopNeeds: zod_1.z.string().optional(),
|
|
19
|
-
instans: zod_1.z.number().int().positive().default(1),
|
|
20
|
-
responsibleUserId: zod_1.z.number().nullish()
|
|
21
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CreateChapterDtoZod: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
id: z.ZodNumber;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
}, {
|
|
9
|
-
id: number;
|
|
10
|
-
name: string;
|
|
11
|
-
}>;
|
|
12
|
-
export type CreateChapterDtoType = z.infer<typeof CreateChapterDtoZod>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CreateLinkDtoZod: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
is_link: z.ZodString;
|
|
5
|
-
link: z.ZodString;
|
|
6
|
-
description: z.ZodString;
|
|
7
|
-
docs: z.ZodAny;
|
|
8
|
-
user_id: z.ZodNumber;
|
|
9
|
-
chapter_id: z.ZodNumber;
|
|
10
|
-
id: z.ZodNumber;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
id: number;
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
user_id: number;
|
|
16
|
-
link: string;
|
|
17
|
-
is_link: string;
|
|
18
|
-
chapter_id: number;
|
|
19
|
-
docs?: any;
|
|
20
|
-
}, {
|
|
21
|
-
id: number;
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
user_id: number;
|
|
25
|
-
link: string;
|
|
26
|
-
is_link: string;
|
|
27
|
-
chapter_id: number;
|
|
28
|
-
docs?: any;
|
|
29
|
-
}>;
|
|
30
|
-
export type CreateLinkDtoType = z.infer<typeof CreateLinkDtoZod>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateLinkDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.CreateLinkDtoZod = zod_1.z.object({
|
|
6
|
-
name: zod_1.z.string(),
|
|
7
|
-
is_link: zod_1.z.string(),
|
|
8
|
-
link: zod_1.z.string(),
|
|
9
|
-
description: zod_1.z.string(),
|
|
10
|
-
docs: zod_1.z.any(),
|
|
11
|
-
user_id: zod_1.z.number(),
|
|
12
|
-
chapter_id: zod_1.z.number(),
|
|
13
|
-
id: zod_1.z.number()
|
|
14
|
-
});
|
package/dist/library/index.d.ts
DELETED
package/dist/library/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./schemas/links.schema"), exports);
|
|
18
|
-
__exportStar(require("./schemas/links-user.schema"), exports);
|
|
19
|
-
__exportStar(require("./interfaces/interface"), exports);
|
|
20
|
-
__exportStar(require("./dto/create-chapter.dto"), exports);
|
|
21
|
-
__exportStar(require("./dto/create-link.dto"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const LinksUserSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
links_id: z.ZodNumber;
|
|
5
|
-
user_id: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
user_id: number;
|
|
8
|
-
links_id: number;
|
|
9
|
-
id?: number | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
user_id: number;
|
|
12
|
-
links_id: number;
|
|
13
|
-
id?: number | null | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export type ModelLinksUser = z.infer<typeof LinksUserSchema>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LinksUserSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.LinksUserSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
links_id: zod_1.z.number().int().positive(),
|
|
8
|
-
user_id: zod_1.z.number().int().positive()
|
|
9
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const LinksSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
link: z.ZodOptional<z.ZodString>;
|
|
6
|
-
is_link: z.ZodBoolean;
|
|
7
|
-
ban: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9
|
-
responsible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
-
chapter_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
ban: boolean;
|
|
13
|
-
name: string;
|
|
14
|
-
is_link: boolean;
|
|
15
|
-
id?: number | null | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
responsible_id?: number | null | undefined;
|
|
18
|
-
link?: string | undefined;
|
|
19
|
-
chapter_id?: number | null | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
name: string;
|
|
22
|
-
is_link: boolean;
|
|
23
|
-
ban?: boolean | undefined;
|
|
24
|
-
id?: number | null | undefined;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
responsible_id?: number | null | undefined;
|
|
27
|
-
link?: string | undefined;
|
|
28
|
-
chapter_id?: number | null | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export type ModelLinks = z.infer<typeof LinksSchema>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LinksSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.LinksSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
link: zod_1.z.string().optional(),
|
|
9
|
-
is_link: zod_1.z.boolean(),
|
|
10
|
-
ban: zod_1.z.boolean().default(false),
|
|
11
|
-
description: zod_1.z.string().optional(),
|
|
12
|
-
responsible_id: zod_1.z.number().nullish(),
|
|
13
|
-
chapter_id: zod_1.z.number().nullish()
|
|
14
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { IOperationPosition } from '../interfaces/production-tasks';
|
|
3
|
-
export declare const UpdateProductionTaskMarksDtoZod: z.ZodObject<{
|
|
4
|
-
operationPosition: z.ZodOptional<z.ZodNullable<z.ZodType<IOperationPosition, z.ZodTypeDef, IOperationPosition>>>;
|
|
5
|
-
productionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
operationPosition?: IOperationPosition | null | undefined;
|
|
8
|
-
productionTaskId?: number | null | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
operationPosition?: IOperationPosition | null | undefined;
|
|
11
|
-
productionTaskId?: number | null | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export type UpdateProductionTaskMarksDtoZodType = z.infer<typeof UpdateProductionTaskMarksDtoZod>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateProductionTaskMarksDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.UpdateProductionTaskMarksDtoZod = zod_1.z.object({
|
|
6
|
-
operationPosition: zod_1.z.custom().nullable().optional(),
|
|
7
|
-
productionTaskId: zod_1.z.number().int().nullable().optional()
|
|
8
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const UpdateProductionTaskREsponsibleDtoZod: z.ZodObject<{
|
|
3
|
-
userId: z.ZodNumber;
|
|
4
|
-
productionPosId: z.ZodNumber;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
userId: number;
|
|
7
|
-
productionPosId: number;
|
|
8
|
-
}, {
|
|
9
|
-
userId: number;
|
|
10
|
-
productionPosId: number;
|
|
11
|
-
}>;
|
|
12
|
-
export type UpdateProductionTaskREsponsibleDtoZodType = z.infer<typeof UpdateProductionTaskREsponsibleDtoZod>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateProductionTaskREsponsibleDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.UpdateProductionTaskREsponsibleDtoZod = zod_1.z.object({
|
|
6
|
-
userId: zod_1.z.number(),
|
|
7
|
-
productionPosId: zod_1.z.number()
|
|
8
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { StatusProductionTaskEnum } from '../enums/production-tasks';
|
|
3
|
-
export declare const UpdateStatusProductionTaskEnumDtoZod: z.ZodObject<{
|
|
4
|
-
productionTaskId: z.ZodNumber;
|
|
5
|
-
status: z.ZodNativeEnum<typeof StatusProductionTaskEnum>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
status: StatusProductionTaskEnum;
|
|
8
|
-
productionTaskId: number;
|
|
9
|
-
}, {
|
|
10
|
-
status: StatusProductionTaskEnum;
|
|
11
|
-
productionTaskId: number;
|
|
12
|
-
}>;
|
|
13
|
-
export type UpdateStatusProductionTaskEnumDtoZodType = z.infer<typeof UpdateStatusProductionTaskEnumDtoZod>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateStatusProductionTaskEnumDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const production_tasks_1 = require("../enums/production-tasks");
|
|
6
|
-
exports.UpdateStatusProductionTaskEnumDtoZod = zod_1.z.object({
|
|
7
|
-
productionTaskId: zod_1.z.number().int(),
|
|
8
|
-
status: zod_1.z.nativeEnum(production_tasks_1.StatusProductionTaskEnum)
|
|
9
|
-
});
|