@pksep/zod-shared 0.0.530 → 0.0.532
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 +7 -1
- package/dist/action/enums/enums.js +6 -0
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +16 -0
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +12 -0
- package/dist/assemble/schemas/assemble.schema.d.ts +12 -0
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +5 -0
- package/dist/detal/schemas/detal-deficit.schema.d.ts +10 -0
- package/dist/detal/schemas/detal.schema.d.ts +5 -0
- package/dist/exclusion/dto/create-exclusion.dto.d.ts +16 -0
- package/dist/exclusion/dto/create-exclusion.dto.js +13 -0
- package/dist/exclusion/dto/get-exclusion-pagination.dto.d.ts +13 -0
- package/dist/exclusion/dto/get-exclusion-pagination.dto.js +12 -0
- package/dist/exclusion/dto/update-exclusion.dto.d.ts +13 -0
- package/dist/exclusion/dto/update-exclusion.dto.js +12 -0
- package/dist/exclusion/index.d.ts +5 -0
- package/dist/exclusion/index.js +21 -0
- package/dist/exclusion/interfaces/interface.d.ts +8 -0
- package/dist/exclusion/schemas/exclusion.schema.d.ts +28 -0
- package/dist/exclusion/schemas/exclusion.schema.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- 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/product/schemas/product-deficit.schema.d.ts +5 -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/interfaces/production-tasks.d.ts +2 -0
- package/dist/shipments/dto/set-warehouse-readiness-date.dto.d.ts +12 -0
- package/dist/shipments/dto/set-warehouse-readiness-date.dto.js +8 -0
- package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +5 -0
- package/dist/shipments/index.d.ts +1 -0
- package/dist/shipments/index.js +1 -0
- package/dist/shipments/schemas/shipment-list-item.schema.d.ts +3 -0
- package/dist/shipments/schemas/shipment-list-item.schema.js +4 -0
- package/dist/shipments/schemas/shipments.schema.d.ts +3 -0
- package/dist/shipments/schemas/shipments.schema.js +1 -0
- package/dist/specification/schema/attributes.schema.d.ts +7 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
- package/dist/user/dto/update-user-table-config.dto.d.ts +5 -0
- package/dist/user/schemas/user-table-config.schema.d.ts +43 -0
- package/dist/user/schemas/user-table-config.schema.js +2 -1
- package/dist/utils/enums.d.ts +7 -0
- package/dist/utils/enums.js +9 -1
- package/dist/utils/interface/mat.interface.d.ts +10 -0
- package/dist/utils/interface/mat.interface.js +2 -0
- package/dist/utils/tables-config/methods.js +28 -11
- package/package.json +1 -1
- package/dist/production-tasks/interfaces/workload-by-entity.d.ts +0 -19
- /package/dist/{production-tasks/interfaces/workload-by-entity.js → exclusion/interfaces/interface.js} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { EnumExclusionType, IzdType } from '../../utils';
|
|
3
|
+
export declare const ExclusionSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
ban: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
exclusion: z.ZodString;
|
|
7
|
+
exclusionType: z.ZodNativeEnum<typeof EnumExclusionType>;
|
|
8
|
+
entityType: z.ZodNativeEnum<typeof IzdType>;
|
|
9
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
10
|
+
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
ban: boolean;
|
|
13
|
+
exclusion: string;
|
|
14
|
+
id: number;
|
|
15
|
+
entityType: IzdType;
|
|
16
|
+
exclusionType: EnumExclusionType;
|
|
17
|
+
createdAt?: string | Date | undefined;
|
|
18
|
+
updatedAt?: string | Date | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
exclusion: string;
|
|
21
|
+
id: number;
|
|
22
|
+
entityType: IzdType;
|
|
23
|
+
exclusionType: EnumExclusionType;
|
|
24
|
+
ban?: boolean | undefined;
|
|
25
|
+
createdAt?: string | Date | undefined;
|
|
26
|
+
updatedAt?: string | Date | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export type ModelExclusion = z.infer<typeof ExclusionSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ExclusionSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
exports.ExclusionSchema = zod_1.default.object({
|
|
10
|
+
id: zod_1.default.number().int().positive(),
|
|
11
|
+
ban: zod_1.default.boolean().default(false),
|
|
12
|
+
exclusion: zod_1.default.string().nonempty(),
|
|
13
|
+
exclusionType: zod_1.default.nativeEnum(utils_1.EnumExclusionType),
|
|
14
|
+
entityType: zod_1.default.nativeEnum(utils_1.IzdType),
|
|
15
|
+
createdAt: zod_1.default.union([zod_1.default.date(), zod_1.default.string()]).optional(),
|
|
16
|
+
updatedAt: zod_1.default.union([zod_1.default.date(), zod_1.default.string()]).optional()
|
|
17
|
+
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
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>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
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);
|
|
@@ -0,0 +1,15 @@
|
|
|
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>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
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>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
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);
|
|
@@ -0,0 +1,15 @@
|
|
|
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>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
});
|
|
@@ -33,6 +33,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
33
33
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
34
34
|
date_order: z.ZodDate;
|
|
35
35
|
date_shipments: z.ZodDate;
|
|
36
|
+
warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
36
37
|
number_order: z.ZodString;
|
|
37
38
|
kol: z.ZodNumber;
|
|
38
39
|
bron: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -109,6 +110,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
109
110
|
purchasesId?: number | undefined;
|
|
110
111
|
} | undefined;
|
|
111
112
|
company_id?: number | undefined;
|
|
113
|
+
warehouse_readiness_date?: Date | null | undefined;
|
|
112
114
|
parent_id?: number | null | undefined;
|
|
113
115
|
}, {
|
|
114
116
|
description: string;
|
|
@@ -137,6 +139,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
137
139
|
purchasesId?: number | undefined;
|
|
138
140
|
} | undefined;
|
|
139
141
|
company_id?: number | undefined;
|
|
142
|
+
warehouse_readiness_date?: Date | null | undefined;
|
|
140
143
|
bron?: boolean | undefined;
|
|
141
144
|
is_custom_product?: boolean | undefined;
|
|
142
145
|
parent_id?: number | null | undefined;
|
|
@@ -173,6 +176,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
173
176
|
purchasesId?: number | undefined;
|
|
174
177
|
} | undefined;
|
|
175
178
|
company_id?: number | undefined;
|
|
179
|
+
warehouse_readiness_date?: Date | null | undefined;
|
|
176
180
|
parent_id?: number | null | undefined;
|
|
177
181
|
};
|
|
178
182
|
designation: string | null;
|
|
@@ -230,6 +234,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
|
|
|
230
234
|
purchasesId?: number | undefined;
|
|
231
235
|
} | undefined;
|
|
232
236
|
company_id?: number | undefined;
|
|
237
|
+
warehouse_readiness_date?: Date | null | undefined;
|
|
233
238
|
bron?: boolean | undefined;
|
|
234
239
|
is_custom_product?: boolean | undefined;
|
|
235
240
|
parent_id?: number | null | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
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>;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
});
|
|
@@ -72,6 +72,7 @@ export interface IGetByOperation {
|
|
|
72
72
|
operationPosId: number;
|
|
73
73
|
endDate: Date | null;
|
|
74
74
|
mainEquipment: ModelEquipment | null;
|
|
75
|
+
equipmentIds: number[];
|
|
75
76
|
currentOperation: ModelOperation;
|
|
76
77
|
entityType: IzdType;
|
|
77
78
|
createTimeMax: number;
|
|
@@ -261,6 +262,7 @@ export interface IGetByEquipment {
|
|
|
261
262
|
mainShipment: ModelShipments | null;
|
|
262
263
|
totalProductionTAskOrdered: number;
|
|
263
264
|
mainOperation: ModelOperation;
|
|
265
|
+
equipmentIds: number[];
|
|
264
266
|
prevOperation: ModelOperation | null;
|
|
265
267
|
nextOperation: ModelOperation | null;
|
|
266
268
|
orderedByCurrentTask: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const setShipmentWarehouseReadinessDateSchema: z.ZodObject<{
|
|
3
|
+
shipmentId: z.ZodNumber;
|
|
4
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
shipmentId: number;
|
|
7
|
+
date?: string | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
shipmentId: number;
|
|
10
|
+
date?: string | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type setShipmentWarehouseReadinessDateDto = z.infer<typeof setShipmentWarehouseReadinessDateSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setShipmentWarehouseReadinessDateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.setShipmentWarehouseReadinessDateSchema = zod_1.z.object({
|
|
6
|
+
shipmentId: zod_1.z.number(),
|
|
7
|
+
date: zod_1.z.string().nullish()
|
|
8
|
+
});
|
|
@@ -3,6 +3,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
|
|
|
3
3
|
count: z.ZodNumber;
|
|
4
4
|
rows: z.ZodArray<z.ZodObject<{
|
|
5
5
|
date_shipments: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
6
|
+
warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
|
|
6
7
|
id: z.ZodNumber;
|
|
7
8
|
number_order: z.ZodString;
|
|
8
9
|
product: z.ZodOptional<z.ZodObject<{
|
|
@@ -119,6 +120,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
|
|
|
119
120
|
shipmentsId: number;
|
|
120
121
|
};
|
|
121
122
|
}[] | undefined;
|
|
123
|
+
warehouse_readiness_date?: string | Date | null | undefined;
|
|
122
124
|
detals?: {
|
|
123
125
|
id: number;
|
|
124
126
|
ShipmentsDetal: {
|
|
@@ -151,6 +153,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
|
|
|
151
153
|
shipmentsId: number;
|
|
152
154
|
};
|
|
153
155
|
}[] | undefined;
|
|
156
|
+
warehouse_readiness_date?: string | Date | null | undefined;
|
|
154
157
|
detals?: {
|
|
155
158
|
id: number;
|
|
156
159
|
ShipmentsDetal: {
|
|
@@ -186,6 +189,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
|
|
|
186
189
|
shipmentsId: number;
|
|
187
190
|
};
|
|
188
191
|
}[] | undefined;
|
|
192
|
+
warehouse_readiness_date?: string | Date | null | undefined;
|
|
189
193
|
detals?: {
|
|
190
194
|
id: number;
|
|
191
195
|
ShipmentsDetal: {
|
|
@@ -221,6 +225,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
|
|
|
221
225
|
shipmentsId: number;
|
|
222
226
|
};
|
|
223
227
|
}[] | undefined;
|
|
228
|
+
warehouse_readiness_date?: string | Date | null | undefined;
|
|
224
229
|
detals?: {
|
|
225
230
|
id: number;
|
|
226
231
|
ShipmentsDetal: {
|
package/dist/shipments/index.js
CHANGED
|
@@ -36,3 +36,4 @@ __exportStar(require("./interface/interface"), exports);
|
|
|
36
36
|
__exportStar(require("./dto/entity-filtering-by-shipment.dto"), exports);
|
|
37
37
|
__exportStar(require("./schemas/shipments-sh-complit.schema"), exports);
|
|
38
38
|
__exportStar(require("./dto/sh-complit-update.dto"), exports);
|
|
39
|
+
__exportStar(require("./dto/set-warehouse-readiness-date.dto"), exports);
|