@pksep/zod-shared 0.0.556 → 0.0.558

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.
Files changed (60) hide show
  1. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +4 -1
  2. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +3 -0
  3. package/dist/cbed/dto/get-deficit.dto.d.ts +4 -1
  4. package/dist/cbed/dto/get-deficit.dto.js +4 -1
  5. package/dist/detal/dto/get-deficit.dto.d.ts +4 -1
  6. package/dist/detal/dto/get-deficit.dto.js +4 -1
  7. package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
  8. package/dist/issue/dto/up-create-issue.dto.js +21 -0
  9. package/dist/issue/index.d.ts +5 -0
  10. package/dist/issue/index.js +21 -0
  11. package/dist/issue/interfaces/interface.d.ts +4 -0
  12. package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
  13. package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
  14. package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
  15. package/dist/issue/schemas/issue-user.schema.js +9 -0
  16. package/dist/issue/schemas/issue.schema.d.ts +51 -0
  17. package/dist/issue/schemas/issue.schema.js +21 -0
  18. package/dist/library/dto/create-chapter.dto.d.ts +12 -0
  19. package/dist/library/dto/create-chapter.dto.js +8 -0
  20. package/dist/library/dto/create-link.dto.d.ts +30 -0
  21. package/dist/library/dto/create-link.dto.js +14 -0
  22. package/dist/library/index.d.ts +5 -0
  23. package/dist/library/index.js +21 -0
  24. package/dist/library/interfaces/interface.d.ts +3 -0
  25. package/dist/library/interfaces/interface.js +2 -0
  26. package/dist/library/schemas/links-user.schema.d.ts +15 -0
  27. package/dist/library/schemas/links-user.schema.js +9 -0
  28. package/dist/library/schemas/links.schema.d.ts +30 -0
  29. package/dist/library/schemas/links.schema.js +14 -0
  30. package/dist/material/dto/get-deficit.dto.d.ts +4 -1
  31. package/dist/material/dto/get-deficit.dto.js +4 -1
  32. package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +4 -0
  33. package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -0
  34. package/dist/operations/dto/create-type-operation.dto.d.ts +22 -22
  35. package/dist/operations/dto/create-type-operation.dto.js +12 -12
  36. package/dist/product/dto/get-deficit.dto.d.ts +4 -1
  37. package/dist/product/dto/get-deficit.dto.js +4 -1
  38. package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
  39. package/dist/production-tasks/dto/update-marks.dto.js +8 -0
  40. package/dist/production-tasks/dto/update-responsible.dto.d.ts +12 -0
  41. package/dist/production-tasks/dto/update-responsible.dto.js +8 -0
  42. package/dist/production-tasks/dto/update-status.dto.d.ts +13 -0
  43. package/dist/production-tasks/dto/update-status.dto.js +9 -0
  44. package/dist/production-tasks/interfaces/production-tasks.d.ts +4 -0
  45. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +16 -0
  46. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +2 -0
  47. package/dist/shipments/dto/shipments-paginate.dto.d.ts +4 -1
  48. package/dist/shipments/dto/shipments-paginate.dto.js +3 -0
  49. package/dist/shipments/dto/up-create-shipments.dto.js +3 -5
  50. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
  51. package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
  52. package/dist/utils/enums.d.ts +5 -0
  53. package/dist/utils/enums.js +7 -1
  54. package/dist/utils/interface/mat.interface.d.ts +10 -0
  55. package/dist/utils/interface/mat.interface.js +2 -0
  56. package/package.json +1 -1
  57. package/dist/material/workpiece-mass.d.ts +0 -45
  58. package/dist/material/workpiece-mass.js +0 -400
  59. package/dist/utils/interface/status-flags.interface.d.ts +0 -4
  60. /package/dist/{utils/interface/status-flags.interface.js → issue/interfaces/interface.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
- import { AssembleIzdEnum } from '../../utils';
3
+ import { AssembleIzdEnum, WarehouseReadinessDateFilterEnum } from '../../utils';
4
4
  export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
5
5
  page: z.ZodNumber;
6
6
  searchString: z.ZodString;
@@ -9,6 +9,7 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
9
9
  type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof AssembleIzdEnum>>>>;
10
10
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
11
11
  isDiscontinued: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
12
+ warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
12
13
  sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
14
  sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
14
15
  sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -29,6 +30,7 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
29
30
  searchString: string;
30
31
  isDiscontinued: boolean | null;
31
32
  responsibleUserId?: number | null | undefined;
33
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
32
34
  byParents?: IFiltersByParents | null | undefined;
33
35
  byOrder?: IFiltersByByOrder | null | undefined;
34
36
  }, {
@@ -41,6 +43,7 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
41
43
  }[] | undefined;
42
44
  responsibleUserId?: number | null | undefined;
43
45
  isDiscontinued?: boolean | null | undefined;
46
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
44
47
  byParents?: IFiltersByParents | null | undefined;
45
48
  byOrder?: IFiltersByByOrder | null | undefined;
46
49
  }>;
@@ -11,5 +11,8 @@ exports.GetAssembleScladPaginationDtoZod = zod_1.z.object({
11
11
  type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).nullish().default(utils_1.AssembleIzdEnum.all),
12
12
  byOrder: zod_1.z.custom().nullable().optional(),
13
13
  isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
14
+ warehouseReadinessDateFilter: zod_1.z
15
+ .nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
16
+ .optional(),
14
17
  sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
15
18
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { statusWorkingsDeficit } from '../../utils';
2
+ import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } from '../../utils';
3
3
  export declare const GetDeficitDtoZod: z.ZodObject<{
4
4
  cbedIds: z.ZodArray<z.ZodNumber, "many">;
5
5
  page: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -17,6 +17,7 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
17
17
  sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
18
18
  sortDesc?: boolean | undefined;
19
19
  }>, "many">>>;
20
+ warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
20
21
  }, "strip", z.ZodTypeAny, {
21
22
  sort: {
22
23
  sortDesc: boolean;
@@ -28,6 +29,7 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
28
29
  cbedIds: number[];
29
30
  page?: number | null | undefined;
30
31
  shipmentIds?: number[] | null | undefined;
32
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
31
33
  }, {
32
34
  searchString: string;
33
35
  statusWorking: statusWorkingsDeficit;
@@ -39,5 +41,6 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
39
41
  page?: number | null | undefined;
40
42
  isDiscontinued?: boolean | null | undefined;
41
43
  shipmentIds?: number[] | null | undefined;
44
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
42
45
  }>;
43
46
  export type GetDeficitDtoZodType = z.infer<typeof GetDeficitDtoZod>;
@@ -10,5 +10,8 @@ exports.GetDeficitDtoZod = zod_1.z.object({
10
10
  searchString: zod_1.z.string(),
11
11
  shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
12
12
  isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
13
- sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
13
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([]),
14
+ warehouseReadinessDateFilter: zod_1.z
15
+ .nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
16
+ .optional()
14
17
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { statusWorkingsDeficit } from '../../utils';
2
+ import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } from '../../utils';
3
3
  export declare const GetDetalDeficitDtoZod: z.ZodObject<{
4
4
  detalIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
5
5
  statusWorking: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof statusWorkingsDeficit>>>;
@@ -17,6 +17,7 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
17
17
  sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
18
18
  sortDesc?: boolean | undefined;
19
19
  }>, "many">>>;
20
+ warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
20
21
  }, "strip", z.ZodTypeAny, {
21
22
  sort: {
22
23
  sortDesc: boolean;
@@ -28,6 +29,7 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
28
29
  detalIds: number[];
29
30
  statusWorking: statusWorkingsDeficit;
30
31
  shipmentIds: number[] | null;
32
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
31
33
  }, {
32
34
  page: number;
33
35
  sort?: {
@@ -39,5 +41,6 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
39
41
  detalIds?: number[] | undefined;
40
42
  statusWorking?: statusWorkingsDeficit | undefined;
41
43
  shipmentIds?: number[] | null | undefined;
44
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
42
45
  }>;
43
46
  export type GetDetalDeficitDtoType = z.infer<typeof GetDetalDeficitDtoZod>;
@@ -13,5 +13,8 @@ exports.GetDetalDeficitDtoZod = zod_1.z.object({
13
13
  shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
14
14
  page: zod_1.z.number().int(),
15
15
  isDiscontinued: zod_1.z.boolean().optional().default(false),
16
- sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
16
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([]),
17
+ warehouseReadinessDateFilter: zod_1.z
18
+ .nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
19
+ .optional()
17
20
  });
@@ -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,5 @@
1
+ export * from './schemas/issue.schema';
2
+ export * from './schemas/issue-user.schema';
3
+ export * from './schemas/issue-user-controller.schema';
4
+ export * from './interfaces/interface';
5
+ export * from './dto/up-create-issue.dto';
@@ -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,4 @@
1
+ export interface IIssueCreationAttrs {
2
+ name: string;
3
+ instans: number;
4
+ }
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateChapterDtoZod = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.CreateChapterDtoZod = zod_1.z.object({
6
+ name: zod_1.z.string(),
7
+ id: zod_1.z.number()
8
+ });
@@ -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,5 @@
1
+ export * from './schemas/links.schema';
2
+ export * from './schemas/links-user.schema';
3
+ export * from './interfaces/interface';
4
+ export * from './dto/create-chapter.dto';
5
+ export * from './dto/create-link.dto';
@@ -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,3 @@
1
+ export interface ILinksCreationAttrs {
2
+ name: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { statusWorkingsDeficit } from '../../utils';
2
+ import { statusWorkingsDeficit, WarehouseReadinessDateFilterEnum } from '../../utils';
3
3
  export declare enum MaterialDeficitSortField {
4
4
  plannedDeliveryDate = "plannedDeliveryDate"
5
5
  }
@@ -32,6 +32,7 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
32
32
  sortField?: MaterialDeficitSortField | null | undefined;
33
33
  sortDesc?: boolean | undefined;
34
34
  }>, "many">>>;
35
+ warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
35
36
  }, "strip", z.ZodTypeAny, {
36
37
  sort: {
37
38
  sortDesc: boolean;
@@ -44,6 +45,7 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
44
45
  materialIds: number[];
45
46
  typeMaterialIds: number[];
46
47
  subTypeMaterialIds: number[];
48
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
47
49
  }, {
48
50
  page: number;
49
51
  sort?: {
@@ -53,6 +55,7 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
53
55
  searchString?: string | undefined;
54
56
  statusWorking?: statusWorkingsDeficit | undefined;
55
57
  shipmentIds?: number[] | null | undefined;
58
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
56
59
  materialIds?: number[] | undefined;
57
60
  typeMaterialIds?: number[] | undefined;
58
61
  subTypeMaterialIds?: number[] | undefined;
@@ -22,5 +22,8 @@ exports.GetMaterialDeficitDtoZod = zod_1.z.object({
22
22
  searchString: zod_1.z.string().optional().default(''),
23
23
  shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
24
24
  page: zod_1.z.number().int(),
25
- sort: zod_1.z.array(exports.MaterialDeficitSortRuleSchema).optional().default([])
25
+ sort: zod_1.z.array(exports.MaterialDeficitSortRuleSchema).optional().default([]),
26
+ warehouseReadinessDateFilter: zod_1.z
27
+ .nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
28
+ .optional()
26
29
  });
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { WarehouseReadinessDateFilterEnum } from '../../utils';
2
3
  import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
4
  export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
4
5
  page: z.ZodNumber;
@@ -10,6 +11,7 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
10
11
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
11
12
  childrenByProductionTaskIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
12
13
  isDiscontinued: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
14
+ warehouseReadinessDateFilter: z.ZodOptional<z.ZodNativeEnum<typeof WarehouseReadinessDateFilterEnum>>;
13
15
  sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
14
16
  sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
15
17
  sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -30,6 +32,7 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
30
32
  isBan: boolean;
31
33
  isDiscontinued: boolean | null;
32
34
  responsibleUserId?: number | null | undefined;
35
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
33
36
  byParents?: IFiltersByParents | null | undefined;
34
37
  byOrder?: IFiltersByByOrder | null | undefined;
35
38
  childrenByProductionTaskIds?: number[] | null | undefined;
@@ -44,6 +47,7 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
44
47
  }[] | undefined;
45
48
  responsibleUserId?: number | null | undefined;
46
49
  isDiscontinued?: boolean | null | undefined;
50
+ warehouseReadinessDateFilter?: WarehouseReadinessDateFilterEnum | undefined;
47
51
  byParents?: IFiltersByParents | null | undefined;
48
52
  byOrder?: IFiltersByByOrder | null | undefined;
49
53
  childrenByProductionTaskIds?: number[] | null | undefined;
@@ -13,5 +13,8 @@ exports.GetMetaloworkingPaginationDtoZod = zod_1.z.object({
13
13
  byOrder: zod_1.z.custom().nullable().optional(),
14
14
  childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
15
15
  isDiscontinued: zod_1.z.boolean().nullable().optional().default(false),
16
+ warehouseReadinessDateFilter: zod_1.z
17
+ .nativeEnum(utils_1.WarehouseReadinessDateFilterEnum)
18
+ .optional(),
16
19
  sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
17
20
  });