@pksep/zod-shared 0.0.551 → 0.0.553

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 (110) hide show
  1. package/dist/action/enums/enums.d.ts +0 -10
  2. package/dist/action/enums/enums.js +0 -10
  3. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +24 -24
  4. package/dist/assemble/interfaces/interfaces.d.ts +36 -6
  5. package/dist/assemble/schemas/assemble-coming.schema.d.ts +18 -18
  6. package/dist/assemble/schemas/assemble.schema.d.ts +18 -18
  7. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +6 -6
  8. package/dist/buyer/schemas/buyer.schema.d.ts +2 -2
  9. package/dist/buyer/schemas/purchases.schema.d.ts +2 -2
  10. package/dist/cbed/schemas/cbed.schema.d.ts +2 -2
  11. package/dist/company/schemas/companies.schema.d.ts +2 -2
  12. package/dist/detal/default-values/default-values.d.ts +0 -4
  13. package/dist/detal/default-values/default-values.js +0 -4
  14. package/dist/detal/schemas/detal-deficit.schema.d.ts +28 -198
  15. package/dist/detal/schemas/detal.schema.d.ts +22 -192
  16. package/dist/document/dto/update-document.dto.d.ts +2 -2
  17. package/dist/edizm/schemas/edizm.schema.d.ts +2 -2
  18. package/dist/edizm/schemas/type-edizm.schema.d.ts +6 -6
  19. package/dist/equipment/dto/udate-equipment-type.dto.d.ts +2 -2
  20. package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
  21. package/dist/equipment/schemas/equipment-pt.schema.d.ts +2 -2
  22. package/dist/equipment/schemas/equipment.schema.d.ts +6 -6
  23. package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +4 -4
  24. package/dist/expenditure/schema/expenditure-position.schema.d.ts +2 -2
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/instrument/dto/update-instrument.dto.d.ts +2 -2
  28. package/dist/instrument/dto/update-pt.dto.d.ts +2 -2
  29. package/dist/instrument/schemas/pt-instrument.schema.d.ts +2 -2
  30. package/dist/inventary/dto/update-inventary.dto.d.ts +2 -2
  31. package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
  32. package/dist/issue/dto/up-create-issue.dto.js +21 -0
  33. package/dist/issue/index.d.ts +5 -0
  34. package/dist/issue/index.js +21 -0
  35. package/dist/issue/interfaces/interface.d.ts +4 -0
  36. package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
  37. package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
  38. package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
  39. package/dist/issue/schemas/issue-user.schema.js +9 -0
  40. package/dist/issue/schemas/issue.schema.d.ts +51 -0
  41. package/dist/issue/schemas/issue.schema.js +21 -0
  42. package/dist/library/dto/create-chapter.dto.d.ts +12 -0
  43. package/dist/library/dto/create-chapter.dto.js +8 -0
  44. package/dist/library/dto/create-link.dto.d.ts +30 -0
  45. package/dist/library/dto/create-link.dto.js +14 -0
  46. package/dist/library/index.d.ts +5 -0
  47. package/dist/library/index.js +21 -0
  48. package/dist/library/interfaces/interface.d.ts +3 -0
  49. package/dist/library/interfaces/interface.js +2 -0
  50. package/dist/library/schemas/links-user.schema.d.ts +15 -0
  51. package/dist/library/schemas/links-user.schema.js +9 -0
  52. package/dist/library/schemas/links.schema.d.ts +30 -0
  53. package/dist/library/schemas/links.schema.js +14 -0
  54. package/dist/material/dto/create-material.dto.d.ts +0 -136
  55. package/dist/material/dto/create-material.dto.js +0 -16
  56. package/dist/material/dto/up-create-type-material.dto.d.ts +0 -4
  57. package/dist/material/dto/up-create-type-material.dto.js +1 -6
  58. package/dist/material/enum/enum.d.ts +0 -10
  59. package/dist/material/enum/enum.js +1 -12
  60. package/dist/material/index.d.ts +0 -1
  61. package/dist/material/index.js +0 -1
  62. package/dist/material/interfaces/interface.d.ts +0 -5
  63. package/dist/material/schemas/material-characteristics.schema.d.ts +0 -56
  64. package/dist/material/schemas/material-characteristics.schema.js +1 -3
  65. package/dist/material/schemas/material-shipments-response.schema.d.ts +6 -130
  66. package/dist/material/schemas/material.schema.d.ts +6 -130
  67. package/dist/material/schemas/subtype-material.schema.d.ts +2 -2
  68. package/dist/material/schemas/subtype-material.schema.js +1 -1
  69. package/dist/material/schemas/type-material.schema.d.ts +2 -118
  70. package/dist/material/schemas/type-material.schema.js +2 -9
  71. package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
  72. package/dist/moving/schemas/moving.schema.d.ts +6 -6
  73. package/dist/operations/dto/get-type-operation-by-id.dto.d.ts +3 -3
  74. package/dist/operations/dto/update-type-operation.dto.d.ts +2 -2
  75. package/dist/planning/index.d.ts +1 -0
  76. package/dist/planning/index.js +17 -0
  77. package/dist/planning/types/planning.d.ts +177 -0
  78. package/dist/planning/types/planning.js +25 -0
  79. package/dist/product/schemas/product-deficit.schema.d.ts +6 -6
  80. package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
  81. package/dist/production-tasks/dto/update-marks.dto.js +8 -0
  82. package/dist/production-tasks/dto/update-responsible.dto.d.ts +12 -0
  83. package/dist/production-tasks/dto/update-responsible.dto.js +8 -0
  84. package/dist/production-tasks/dto/update-status.dto.d.ts +13 -0
  85. package/dist/production-tasks/dto/update-status.dto.js +9 -0
  86. package/dist/role/dto/update-role.dto.d.ts +2 -2
  87. package/dist/role/schemas/role.schema.d.ts +8 -8
  88. package/dist/sclad/schemas/remain.schema.d.ts +2 -2
  89. package/dist/sclad/schemas/remains.schema.d.ts +16 -16
  90. package/dist/settings/dto/update-edizm.dto.d.ts +2 -2
  91. package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +18 -18
  92. package/dist/shipments/dto/up-create-shipments.dto.d.ts +4 -4
  93. package/dist/shipments/schemas/shipment-list-item.schema.d.ts +12 -12
  94. package/dist/shipments/schemas/shipments.schema.d.ts +4 -4
  95. package/dist/shipments/types/increment-shipments-kolvo.type.d.ts +12 -12
  96. package/dist/shipments/types/update-shipments-by-product.type.d.ts +12 -12
  97. package/dist/specification/schema/attributes.schema.d.ts +46 -432
  98. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
  99. package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
  100. package/dist/tech-process/schemas/tech-process.schema.d.ts +2 -2
  101. package/dist/user/schemas/user.schema.d.ts +4 -4
  102. package/dist/utils/interface/mat.interface.d.ts +10 -0
  103. package/dist/utils/interface/mat.interface.js +2 -0
  104. package/dist/utils/schemas/schema.d.ts +2 -2
  105. package/dist/utils/types.d.ts +0 -6
  106. package/package.json +1 -1
  107. package/dist/material/workpiece-mass.d.ts +0 -45
  108. package/dist/material/workpiece-mass.js +0 -400
  109. package/dist/utils/interface/status-flags.interface.d.ts +0 -4
  110. /package/dist/{utils/interface/status-flags.interface.js → issue/interfaces/interface.js} +0 -0
package/dist/index.js CHANGED
@@ -55,3 +55,4 @@ __exportStar(require("./supply"), exports);
55
55
  __exportStar(require("./thread"), exports);
56
56
  __exportStar(require("./movement-error"), exports);
57
57
  __exportStar(require("./exclusion"), exports);
58
+ __exportStar(require("./planning"), exports);
@@ -5,12 +5,12 @@ export declare const UpdateTInstrumentDtoZod: z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  instance_type: z.ZodNativeEnum<typeof InstansTypeInstrument>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- name: string;
9
8
  id: number;
9
+ name: string;
10
10
  instance_type: InstansTypeInstrument;
11
11
  }, {
12
- name: string;
13
12
  id: number;
13
+ name: string;
14
14
  instance_type: InstansTypeInstrument;
15
15
  }>;
16
16
  export type UpdateTInstrumentDtoType = z.infer<typeof UpdateTInstrumentDtoZod>;
@@ -3,10 +3,10 @@ export declare const UpdatePTInstrumentDtoZod: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
4
  name: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- name: string;
7
6
  id: number;
8
- }, {
9
7
  name: string;
8
+ }, {
10
9
  id: number;
10
+ name: string;
11
11
  }>;
12
12
  export type UpdatePTInstrumentDtoType = z.infer<typeof UpdatePTInstrumentDtoZod>;
@@ -5,13 +5,13 @@ export declare const PInstrumentSchema: z.ZodObject<{
5
5
  instruments: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
6
6
  nameInstrument: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
7
7
  }, "strip", z.ZodTypeAny, {
8
- name: string;
9
8
  id: number;
9
+ name: string;
10
10
  instruments: any[];
11
11
  nameInstrument: any[];
12
12
  }, {
13
- name: string;
14
13
  id: number;
14
+ name: string;
15
15
  instruments: any[];
16
16
  nameInstrument: any[];
17
17
  }>;
@@ -3,10 +3,10 @@ export declare const UpdateInventaryDtoZod: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
4
  name: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- name: string;
7
6
  id: number;
8
- }, {
9
7
  name: string;
8
+ }, {
10
9
  id: number;
10
+ name: string;
11
11
  }>;
12
12
  export type UpdateInventaryDtoType = z.infer<typeof UpdateInventaryDtoZod>;
@@ -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
+ });
@@ -129,38 +129,6 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
129
129
  znach: string | number;
130
130
  shortName: string;
131
131
  }>>;
132
- acrossFlats: z.ZodOptional<z.ZodObject<{
133
- used: z.ZodBoolean;
134
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
135
- edizmId: z.ZodNumber;
136
- shortName: z.ZodString;
137
- }, "strip", z.ZodTypeAny, {
138
- used: boolean;
139
- edizmId: number;
140
- znach: string | number;
141
- shortName: string;
142
- }, {
143
- used: boolean;
144
- edizmId: number;
145
- znach: string | number;
146
- shortName: string;
147
- }>>;
148
- massPerMeter: z.ZodOptional<z.ZodObject<{
149
- used: z.ZodBoolean;
150
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
151
- edizmId: z.ZodNumber;
152
- shortName: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- used: boolean;
155
- edizmId: number;
156
- znach: string | number;
157
- shortName: string;
158
- }, {
159
- used: boolean;
160
- edizmId: number;
161
- znach: string | number;
162
- shortName: string;
163
- }>>;
164
132
  }, "strip", z.ZodTypeAny, {
165
133
  length?: {
166
134
  used: boolean;
@@ -210,18 +178,6 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
210
178
  znach: string | number;
211
179
  shortName: string;
212
180
  } | undefined;
213
- acrossFlats?: {
214
- used: boolean;
215
- edizmId: number;
216
- znach: string | number;
217
- shortName: string;
218
- } | undefined;
219
- massPerMeter?: {
220
- used: boolean;
221
- edizmId: number;
222
- znach: string | number;
223
- shortName: string;
224
- } | undefined;
225
181
  }, {
226
182
  length?: {
227
183
  used: boolean;
@@ -271,18 +227,6 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
271
227
  znach: string | number;
272
228
  shortName: string;
273
229
  } | undefined;
274
- acrossFlats?: {
275
- used: boolean;
276
- edizmId: number;
277
- znach: string | number;
278
- shortName: string;
279
- } | undefined;
280
- massPerMeter?: {
281
- used: boolean;
282
- edizmId: number;
283
- znach: string | number;
284
- shortName: string;
285
- } | undefined;
286
230
  }>;
287
231
  export declare const CreateMaterialDtoZod: z.ZodObject<{
288
232
  id: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
@@ -421,38 +365,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
421
365
  znach: string | number;
422
366
  shortName: string;
423
367
  }>>;
424
- acrossFlats: z.ZodOptional<z.ZodObject<{
425
- used: z.ZodBoolean;
426
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
427
- edizmId: z.ZodNumber;
428
- shortName: z.ZodString;
429
- }, "strip", z.ZodTypeAny, {
430
- used: boolean;
431
- edizmId: number;
432
- znach: string | number;
433
- shortName: string;
434
- }, {
435
- used: boolean;
436
- edizmId: number;
437
- znach: string | number;
438
- shortName: string;
439
- }>>;
440
- massPerMeter: z.ZodOptional<z.ZodObject<{
441
- used: z.ZodBoolean;
442
- znach: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
443
- edizmId: z.ZodNumber;
444
- shortName: z.ZodString;
445
- }, "strip", z.ZodTypeAny, {
446
- used: boolean;
447
- edizmId: number;
448
- znach: string | number;
449
- shortName: string;
450
- }, {
451
- used: boolean;
452
- edizmId: number;
453
- znach: string | number;
454
- shortName: string;
455
- }>>;
456
368
  }, "strip", z.ZodTypeAny, {
457
369
  length?: {
458
370
  used: boolean;
@@ -502,18 +414,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
502
414
  znach: string | number;
503
415
  shortName: string;
504
416
  } | undefined;
505
- acrossFlats?: {
506
- used: boolean;
507
- edizmId: number;
508
- znach: string | number;
509
- shortName: string;
510
- } | undefined;
511
- massPerMeter?: {
512
- used: boolean;
513
- edizmId: number;
514
- znach: string | number;
515
- shortName: string;
516
- } | undefined;
517
417
  }, {
518
418
  length?: {
519
419
  used: boolean;
@@ -563,18 +463,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
563
463
  znach: string | number;
564
464
  shortName: string;
565
465
  } | undefined;
566
- acrossFlats?: {
567
- used: boolean;
568
- edizmId: number;
569
- znach: string | number;
570
- shortName: string;
571
- } | undefined;
572
- massPerMeter?: {
573
- used: boolean;
574
- edizmId: number;
575
- znach: string | number;
576
- shortName: string;
577
- } | undefined;
578
466
  }>>, {
579
467
  length?: {
580
468
  used: boolean;
@@ -624,18 +512,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
624
512
  znach: string | number;
625
513
  shortName: string;
626
514
  } | undefined;
627
- acrossFlats?: {
628
- used: boolean;
629
- edizmId: number;
630
- znach: string | number;
631
- shortName: string;
632
- } | undefined;
633
- massPerMeter?: {
634
- used: boolean;
635
- edizmId: number;
636
- znach: string | number;
637
- shortName: string;
638
- } | undefined;
639
515
  } | undefined, unknown>;
640
516
  deliveryTime: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | null | undefined, unknown>;
641
517
  description: z.ZodString;
@@ -716,18 +592,6 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
716
592
  znach: string | number;
717
593
  shortName: string;
718
594
  } | undefined;
719
- acrossFlats?: {
720
- used: boolean;
721
- edizmId: number;
722
- znach: string | number;
723
- shortName: string;
724
- } | undefined;
725
- massPerMeter?: {
726
- used: boolean;
727
- edizmId: number;
728
- znach: string | number;
729
- shortName: string;
730
- } | undefined;
731
595
  } | undefined;
732
596
  file_base?: string | null | undefined;
733
597
  deliveryTime?: number | null | undefined;