@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.
Files changed (93) hide show
  1. package/dist/assemble/dto/assembly-paginate.dto.d.ts +8 -13
  2. package/dist/assemble/dto/assembly-paginate.dto.js +2 -4
  3. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +7 -7
  4. package/dist/assemble/dto/get-assemble-operation-pagination.dto.d.ts +8 -28
  5. package/dist/assemble/dto/get-assemble-operation-pagination.dto.js +2 -13
  6. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +7 -31
  7. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -15
  8. package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +11 -28
  9. package/dist/assemble/dto/get-assemble-pagination.dto.js +3 -13
  10. package/dist/assemble/schemas/assemble-coming.schema.d.ts +5 -5
  11. package/dist/assemble/schemas/assemble.schema.d.ts +5 -5
  12. package/dist/company/dto/companies-pagination.dto.d.ts +4 -4
  13. package/dist/company/dto/create-company.dto.d.ts +2 -2
  14. package/dist/company/dto/update-company.dto.d.ts +2 -2
  15. package/dist/equipment/dto/create-equipment.dto.d.ts +3 -3
  16. package/dist/equipment/dto/create-equipment.dto.js +1 -1
  17. package/dist/equipment/dto/get-instruments-pagination.dto.d.ts +8 -5
  18. package/dist/equipment/dto/get-instruments-pagination.dto.js +6 -5
  19. package/dist/equipment/dto/update-equipment.dto.d.ts +3 -3
  20. package/dist/equipment/dto/update-equipment.dto.js +9 -1
  21. package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
  22. package/dist/issue/dto/up-create-issue.dto.js +21 -0
  23. package/dist/issue/index.d.ts +5 -0
  24. package/dist/issue/index.js +21 -0
  25. package/dist/issue/interfaces/interface.d.ts +4 -0
  26. package/dist/issue/interfaces/interface.js +2 -0
  27. package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
  28. package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
  29. package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
  30. package/dist/issue/schemas/issue-user.schema.js +9 -0
  31. package/dist/issue/schemas/issue.schema.d.ts +51 -0
  32. package/dist/issue/schemas/issue.schema.js +21 -0
  33. package/dist/library/dto/create-chapter.dto.d.ts +12 -0
  34. package/dist/library/dto/create-chapter.dto.js +8 -0
  35. package/dist/library/dto/create-link.dto.d.ts +30 -0
  36. package/dist/library/dto/create-link.dto.js +14 -0
  37. package/dist/library/index.d.ts +5 -0
  38. package/dist/library/index.js +21 -0
  39. package/dist/library/interfaces/interface.d.ts +3 -0
  40. package/dist/library/interfaces/interface.js +2 -0
  41. package/dist/library/schemas/links-user.schema.d.ts +15 -0
  42. package/dist/library/schemas/links-user.schema.js +9 -0
  43. package/dist/library/schemas/links.schema.d.ts +30 -0
  44. package/dist/library/schemas/links.schema.js +14 -0
  45. package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.d.ts +8 -25
  46. package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.js +2 -6
  47. package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +7 -25
  48. package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -9
  49. package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +6 -27
  50. package/dist/movement-object/schemas/get-one-object-history.schema.js +1 -7
  51. package/dist/operations/dto/create-type-operation.dto.d.ts +3 -0
  52. package/dist/operations/dto/create-type-operation.dto.js +1 -0
  53. package/dist/operations/dto/update-type-operation.dto.d.ts +3 -0
  54. package/dist/operations/dto/update-type-operation.dto.js +1 -0
  55. package/dist/operations/index.d.ts +1 -0
  56. package/dist/operations/index.js +1 -0
  57. package/dist/operations/schemas/type-oper-equipment.schema.d.ts +15 -0
  58. package/dist/operations/schemas/type-oper-equipment.schema.js +9 -0
  59. package/dist/production-tasks/dto/get-by-users.dto.d.ts +3 -4
  60. package/dist/production-tasks/dto/get-by-users.dto.js +1 -2
  61. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +5 -2
  62. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +1 -0
  63. package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +19 -0
  64. package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +11 -0
  65. package/dist/production-tasks/dto/get-production-task.dto.d.ts +3 -4
  66. package/dist/production-tasks/dto/get-production-task.dto.js +1 -2
  67. package/dist/production-tasks/dto/online-board-working.dto.d.ts +4 -4
  68. package/dist/production-tasks/dto/plan-production-task.dto.d.ts +7 -6
  69. package/dist/production-tasks/dto/plan-production-task.dto.js +4 -1
  70. package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +12 -0
  71. package/dist/production-tasks/dto/set-start-time-detal.dto.js +8 -0
  72. package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
  73. package/dist/production-tasks/dto/update-marks.dto.js +8 -0
  74. package/dist/production-tasks/enums/production-tasks.d.ts +5 -1
  75. package/dist/production-tasks/enums/production-tasks.js +7 -2
  76. package/dist/production-tasks/index.d.ts +3 -1
  77. package/dist/production-tasks/index.js +3 -1
  78. package/dist/production-tasks/interfaces/production-tasks.d.ts +32 -1
  79. package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
  80. package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
  81. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +0 -4
  82. package/dist/production-tasks/schemas/production-operation-pos.schema.js +0 -4
  83. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +16 -0
  84. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +8 -0
  85. package/dist/production-tasks/schemas/production-task.schema.d.ts +3 -4
  86. package/dist/production-tasks/schemas/production-task.schema.js +1 -4
  87. package/dist/shipments/dto/entity-filtering-by-shipment.dto.d.ts +3 -0
  88. package/dist/shipments/dto/entity-filtering-by-shipment.dto.js +1 -0
  89. package/dist/utils/default-value/default-value.d.ts +7 -0
  90. package/dist/utils/default-value/default-value.js +11 -1
  91. package/dist/utils/interface/mat.interface.d.ts +10 -0
  92. package/dist/utils/interface/mat.interface.js +2 -0
  93. package/package.json +1 -1
@@ -13,7 +13,7 @@ export declare const UpdateEquipmentDtoZod: z.ZodObject<{
13
13
  instrumentIdList: z.ZodAny;
14
14
  fileBase: z.ZodString;
15
15
  rootParentId: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number | null, unknown>;
16
- typeOperationId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null | undefined, unknown>;
16
+ typeOperationIds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>, number[] | null, unknown>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  description: string;
19
19
  id: number | null;
@@ -25,10 +25,10 @@ export declare const UpdateEquipmentDtoZod: z.ZodObject<{
25
25
  parentId: number | null;
26
26
  companyIds: string;
27
27
  fileBase: string;
28
+ typeOperationIds: number[] | null;
28
29
  docs?: any;
29
30
  responsible?: number | null | undefined;
30
31
  instrumentIdList?: any;
31
- typeOperationId?: number | null | undefined;
32
32
  }, {
33
33
  description: string;
34
34
  name: string;
@@ -42,7 +42,7 @@ export declare const UpdateEquipmentDtoZod: z.ZodObject<{
42
42
  rootParentId?: unknown;
43
43
  parentId?: unknown;
44
44
  responsible?: unknown;
45
+ typeOperationIds?: unknown;
45
46
  instrumentIdList?: any;
46
- typeOperationId?: unknown;
47
47
  }>;
48
48
  export type UpdateEquipmentDtoType = z.infer<typeof UpdateEquipmentDtoZod>;
@@ -19,5 +19,13 @@ exports.UpdateEquipmentDtoZod = zod_1.z.object({
19
19
  instrumentIdList: zod_1.z.any(),
20
20
  fileBase: zod_1.z.string(),
21
21
  rootParentId: zod_1.z.preprocess(val => typeof val === 'string' && parseInt(val, 10) ? parseInt(val, 10) : null, zod_1.z.number().nullable()),
22
- typeOperationId: zod_1.z.preprocess(val => typeof val === 'string' && parseInt(val, 10) ? parseInt(val, 10) : null, zod_1.z.number().nullish())
22
+ typeOperationIds: zod_1.z.preprocess(val => {
23
+ if (Array.isArray(val)) {
24
+ return val.map(Number).filter(n => !Number.isNaN(n));
25
+ }
26
+ if (typeof val === 'string') {
27
+ return [Number(val)].filter(n => !Number.isNaN(n));
28
+ }
29
+ return [];
30
+ }, zod_1.z.array(zod_1.z.number()).nullish().default([]))
23
31
  });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,43 +1,26 @@
1
1
  import { z } from 'zod';
2
- import { MetalloworkingStatus, ParentType } from '../../utils';
2
+ import { MetalloworkingStatus } from '../../utils';
3
+ import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
4
  export declare const GetMetaloworkingByOperationPaginationDtoZod: z.ZodObject<{
4
5
  page: z.ZodNumber;
5
6
  operationId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6
7
  searchString: z.ZodString;
7
8
  status: z.ZodNativeEnum<typeof MetalloworkingStatus>;
8
- parentData: z.ZodObject<{
9
- parentType: z.ZodNullable<z.ZodType<ParentType, z.ZodTypeDef, ParentType>>;
10
- parentId: z.ZodNullable<z.ZodNumber>;
11
- }, "strip", z.ZodTypeAny, {
12
- parentId: number | null;
13
- parentType: ParentType;
14
- }, {
15
- parentId: number | null;
16
- parentType: ParentType;
17
- }>;
18
- detalIds: z.ZodArray<z.ZodNumber, "many">;
19
- shipmentIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
9
+ byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
10
+ byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
20
11
  }, "strip", z.ZodTypeAny, {
21
12
  status: MetalloworkingStatus;
22
13
  page: number;
23
14
  operationId: number | null;
24
15
  searchString: string;
25
- detalIds: number[];
26
- parentData: {
27
- parentId: number | null;
28
- parentType: ParentType;
29
- };
30
- shipmentIds?: number[] | null | undefined;
16
+ byParents?: IFiltersByParents | null | undefined;
17
+ byOrder?: IFiltersByByOrder | null | undefined;
31
18
  }, {
32
19
  status: MetalloworkingStatus;
33
20
  page: number;
34
21
  searchString: string;
35
- detalIds: number[];
36
- parentData: {
37
- parentId: number | null;
38
- parentType: ParentType;
39
- };
40
22
  operationId?: number | null | undefined;
41
- shipmentIds?: number[] | null | undefined;
23
+ byParents?: IFiltersByParents | null | undefined;
24
+ byOrder?: IFiltersByByOrder | null | undefined;
42
25
  }>;
43
26
  export type GetMetaloworkingByOperationPaginationDtoZodType = z.infer<typeof GetMetaloworkingByOperationPaginationDtoZod>;
@@ -8,10 +8,6 @@ exports.GetMetaloworkingByOperationPaginationDtoZod = zod_1.z.object({
8
8
  operationId: zod_1.z.number().nullable().optional().default(null),
9
9
  searchString: zod_1.z.string(),
10
10
  status: zod_1.z.nativeEnum(utils_1.MetalloworkingStatus),
11
- parentData: zod_1.z.object({
12
- parentType: zod_1.z.custom().nullable(),
13
- parentId: zod_1.z.number().nullable()
14
- }),
15
- detalIds: zod_1.z.array(zod_1.z.number()),
16
- shipmentIds: zod_1.z.array(zod_1.z.number()).optional().nullable()
11
+ byParents: zod_1.z.custom().nullable().optional(),
12
+ byOrder: zod_1.z.custom().nullable().optional()
17
13
  });
@@ -1,46 +1,28 @@
1
1
  import { z } from 'zod';
2
- import { ParentType } from '../../utils';
2
+ import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
3
  export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
4
4
  page: z.ZodNumber;
5
5
  responsibleUserId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
6
  searchString: z.ZodString;
7
7
  isBan: z.ZodBoolean;
8
- parentData: z.ZodOptional<z.ZodObject<{
9
- parentType: z.ZodNullable<z.ZodType<ParentType, z.ZodTypeDef, ParentType>>;
10
- parentId: z.ZodNullable<z.ZodNumber>;
11
- }, "strip", z.ZodTypeAny, {
12
- parentId: number | null;
13
- parentType: ParentType;
14
- }, {
15
- parentId: number | null;
16
- parentType: ParentType;
17
- }>>;
18
- detalIds: z.ZodArray<z.ZodNumber, "many">;
8
+ byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
9
+ byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
19
10
  childrenByProductionTaskIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
20
- shipmentIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
21
11
  }, "strip", z.ZodTypeAny, {
22
12
  page: number;
23
13
  searchString: string;
24
14
  isBan: boolean;
25
- detalIds: number[];
26
15
  responsibleUserId?: number | null | undefined;
27
- shipmentIds?: number[] | undefined;
28
- parentData?: {
29
- parentId: number | null;
30
- parentType: ParentType;
31
- } | undefined;
16
+ byParents?: IFiltersByParents | null | undefined;
17
+ byOrder?: IFiltersByByOrder | null | undefined;
32
18
  childrenByProductionTaskIds?: number[] | null | undefined;
33
19
  }, {
34
20
  page: number;
35
21
  searchString: string;
36
22
  isBan: boolean;
37
- detalIds: number[];
38
23
  responsibleUserId?: number | null | undefined;
39
- shipmentIds?: number[] | undefined;
40
- parentData?: {
41
- parentId: number | null;
42
- parentType: ParentType;
43
- } | undefined;
24
+ byParents?: IFiltersByParents | null | undefined;
25
+ byOrder?: IFiltersByByOrder | null | undefined;
44
26
  childrenByProductionTaskIds?: number[] | null | undefined;
45
27
  }>;
46
28
  export type GetMetaloworkingPaginationDtoZodType = z.infer<typeof GetMetaloworkingPaginationDtoZod>;
@@ -7,13 +7,7 @@ exports.GetMetaloworkingPaginationDtoZod = zod_1.z.object({
7
7
  responsibleUserId: zod_1.z.number().nullable().optional(),
8
8
  searchString: zod_1.z.string(),
9
9
  isBan: zod_1.z.boolean(),
10
- parentData: zod_1.z
11
- .object({
12
- parentType: zod_1.z.custom().nullable(),
13
- parentId: zod_1.z.number().nullable()
14
- })
15
- .optional(),
16
- detalIds: zod_1.z.array(zod_1.z.number()),
17
- childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
18
- shipmentIds: zod_1.z.array(zod_1.z.number()).optional()
10
+ byParents: zod_1.z.custom().nullable().optional(),
11
+ byOrder: zod_1.z.custom().nullable().optional(),
12
+ childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable()
19
13
  });