@pksep/zod-shared 0.0.555 → 0.0.557

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 (117) hide show
  1. package/dist/action/enums/enums.d.ts +10 -0
  2. package/dist/action/enums/enums.js +10 -0
  3. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +24 -24
  4. package/dist/assemble/schemas/assemble-coming.schema.d.ts +18 -18
  5. package/dist/assemble/schemas/assemble.schema.d.ts +18 -18
  6. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +6 -6
  7. package/dist/buyer/schemas/buyer.schema.d.ts +2 -2
  8. package/dist/buyer/schemas/purchases.schema.d.ts +2 -2
  9. package/dist/cbed/schemas/cbed.schema.d.ts +2 -2
  10. package/dist/company/schemas/companies.schema.d.ts +2 -2
  11. package/dist/detal/default-values/default-values.d.ts +4 -0
  12. package/dist/detal/default-values/default-values.js +4 -0
  13. package/dist/detal/schemas/detal-deficit.schema.d.ts +198 -28
  14. package/dist/detal/schemas/detal.schema.d.ts +192 -22
  15. package/dist/document/dto/update-document.dto.d.ts +2 -2
  16. package/dist/edizm/schemas/edizm.schema.d.ts +2 -2
  17. package/dist/edizm/schemas/type-edizm.schema.d.ts +6 -6
  18. package/dist/equipment/dto/udate-equipment-type.dto.d.ts +2 -2
  19. package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
  20. package/dist/equipment/schemas/equipment-pt.schema.d.ts +2 -2
  21. package/dist/equipment/schemas/equipment.schema.d.ts +6 -6
  22. package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +4 -4
  23. package/dist/expenditure/schema/expenditure-position.schema.d.ts +2 -2
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +1 -0
  26. package/dist/instrument/dto/update-instrument.dto.d.ts +2 -2
  27. package/dist/instrument/dto/update-pt.dto.d.ts +2 -2
  28. package/dist/instrument/schemas/pt-instrument.schema.d.ts +2 -2
  29. package/dist/inventary/dto/update-inventary.dto.d.ts +2 -2
  30. package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
  31. package/dist/issue/dto/up-create-issue.dto.js +21 -0
  32. package/dist/issue/index.d.ts +5 -0
  33. package/dist/issue/index.js +21 -0
  34. package/dist/issue/interfaces/interface.d.ts +4 -0
  35. package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
  36. package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
  37. package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
  38. package/dist/issue/schemas/issue-user.schema.js +9 -0
  39. package/dist/issue/schemas/issue.schema.d.ts +51 -0
  40. package/dist/issue/schemas/issue.schema.js +21 -0
  41. package/dist/library/dto/create-chapter.dto.d.ts +12 -0
  42. package/dist/library/dto/create-chapter.dto.js +8 -0
  43. package/dist/library/dto/create-link.dto.d.ts +30 -0
  44. package/dist/library/dto/create-link.dto.js +14 -0
  45. package/dist/library/index.d.ts +5 -0
  46. package/dist/library/index.js +21 -0
  47. package/dist/library/interfaces/interface.d.ts +3 -0
  48. package/dist/library/interfaces/interface.js +2 -0
  49. package/dist/library/schemas/links-user.schema.d.ts +15 -0
  50. package/dist/library/schemas/links-user.schema.js +9 -0
  51. package/dist/library/schemas/links.schema.d.ts +30 -0
  52. package/dist/library/schemas/links.schema.js +14 -0
  53. package/dist/material/dto/create-material.dto.d.ts +136 -0
  54. package/dist/material/dto/create-material.dto.js +16 -0
  55. package/dist/material/dto/up-create-type-material.dto.d.ts +4 -0
  56. package/dist/material/dto/up-create-type-material.dto.js +6 -1
  57. package/dist/material/enum/enum.d.ts +10 -0
  58. package/dist/material/enum/enum.js +12 -1
  59. package/dist/material/index.d.ts +1 -0
  60. package/dist/material/index.js +1 -0
  61. package/dist/material/interfaces/interface.d.ts +5 -0
  62. package/dist/material/schemas/material-characteristics.schema.d.ts +56 -0
  63. package/dist/material/schemas/material-characteristics.schema.js +3 -1
  64. package/dist/material/schemas/material-shipments-response.schema.d.ts +130 -6
  65. package/dist/material/schemas/material.schema.d.ts +130 -6
  66. package/dist/material/schemas/subtype-material.schema.d.ts +2 -2
  67. package/dist/material/schemas/subtype-material.schema.js +1 -1
  68. package/dist/material/schemas/type-material.schema.d.ts +118 -2
  69. package/dist/material/schemas/type-material.schema.js +9 -2
  70. package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
  71. package/dist/moving/schemas/moving.schema.d.ts +6 -6
  72. package/dist/operations/dto/get-type-operation-by-id.dto.d.ts +3 -3
  73. package/dist/operations/dto/update-type-operation.dto.d.ts +2 -2
  74. package/dist/planning/index.d.ts +1 -0
  75. package/dist/planning/index.js +17 -0
  76. package/dist/planning/types/planning.d.ts +187 -0
  77. package/dist/planning/types/planning.js +25 -0
  78. package/dist/product/schemas/product-deficit.schema.d.ts +6 -6
  79. package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
  80. package/dist/production-tasks/dto/update-marks.dto.js +8 -0
  81. package/dist/production-tasks/dto/update-responsible.dto.d.ts +12 -0
  82. package/dist/production-tasks/dto/update-responsible.dto.js +8 -0
  83. package/dist/production-tasks/dto/update-status.dto.d.ts +13 -0
  84. package/dist/production-tasks/dto/update-status.dto.js +9 -0
  85. package/dist/production-tasks/interfaces/production-tasks.d.ts +11 -3
  86. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +14 -0
  87. package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +3 -0
  88. package/dist/role/dto/update-role.dto.d.ts +2 -2
  89. package/dist/role/schemas/role.schema.d.ts +8 -8
  90. package/dist/sclad/schemas/remain.schema.d.ts +2 -2
  91. package/dist/sclad/schemas/remains.schema.d.ts +16 -16
  92. package/dist/settings/dto/update-edizm.dto.d.ts +2 -2
  93. package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +18 -18
  94. package/dist/shipments/dto/up-create-shipments.dto.d.ts +4 -4
  95. package/dist/shipments/schemas/shipment-list-item.schema.d.ts +12 -12
  96. package/dist/shipments/schemas/shipments.schema.d.ts +4 -4
  97. package/dist/shipments/types/increment-shipments-kolvo.type.d.ts +12 -12
  98. package/dist/shipments/types/types.d.ts +1 -0
  99. package/dist/shipments/types/update-shipments-by-product.type.d.ts +12 -12
  100. package/dist/specification/schema/attributes.schema.d.ts +432 -46
  101. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
  102. package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
  103. package/dist/tech-process/schemas/tech-process.schema.d.ts +2 -2
  104. package/dist/user/schemas/user.schema.d.ts +4 -4
  105. package/dist/utils/interface/mat.interface.d.ts +10 -0
  106. package/dist/utils/interface/mat.interface.js +2 -0
  107. package/dist/utils/methods.js +4 -2
  108. package/dist/utils/schemas/schema.d.ts +2 -2
  109. package/dist/utils/tables-config/enum.d.ts +2 -1
  110. package/dist/utils/tables-config/enum.js +2 -0
  111. package/dist/utils/tables-config/tables-array.js +3 -0
  112. package/dist/utils/types.d.ts +6 -0
  113. package/package.json +1 -1
  114. package/dist/material/workpiece-mass.d.ts +0 -45
  115. package/dist/material/workpiece-mass.js +0 -400
  116. package/dist/utils/interface/status-flags.interface.d.ts +0 -4
  117. /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
- id: number;
9
8
  name: string;
9
+ id: number;
10
10
  instance_type: InstansTypeInstrument;
11
11
  }, {
12
- id: number;
13
12
  name: string;
13
+ id: number;
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
- id: number;
7
6
  name: string;
8
- }, {
9
7
  id: number;
8
+ }, {
10
9
  name: string;
10
+ id: number;
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
- id: number;
9
8
  name: string;
9
+ id: number;
10
10
  instruments: any[];
11
11
  nameInstrument: any[];
12
12
  }, {
13
- id: number;
14
13
  name: string;
14
+ id: number;
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
- id: number;
7
6
  name: string;
8
- }, {
9
7
  id: number;
8
+ }, {
10
9
  name: string;
10
+ id: number;
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,6 +129,38 @@ 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
+ }>>;
132
164
  }, "strip", z.ZodTypeAny, {
133
165
  length?: {
134
166
  used: boolean;
@@ -178,6 +210,18 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
178
210
  znach: string | number;
179
211
  shortName: string;
180
212
  } | 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;
181
225
  }, {
182
226
  length?: {
183
227
  used: boolean;
@@ -227,6 +271,18 @@ export declare const MaterialCharacteristicsSchemaZod: z.ZodObject<{
227
271
  znach: string | number;
228
272
  shortName: string;
229
273
  } | 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;
230
286
  }>;
231
287
  export declare const CreateMaterialDtoZod: z.ZodObject<{
232
288
  id: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
@@ -365,6 +421,38 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
365
421
  znach: string | number;
366
422
  shortName: string;
367
423
  }>>;
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
+ }>>;
368
456
  }, "strip", z.ZodTypeAny, {
369
457
  length?: {
370
458
  used: boolean;
@@ -414,6 +502,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
414
502
  znach: string | number;
415
503
  shortName: string;
416
504
  } | 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;
417
517
  }, {
418
518
  length?: {
419
519
  used: boolean;
@@ -463,6 +563,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
463
563
  znach: string | number;
464
564
  shortName: string;
465
565
  } | 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;
466
578
  }>>, {
467
579
  length?: {
468
580
  used: boolean;
@@ -512,6 +624,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
512
624
  znach: string | number;
513
625
  shortName: string;
514
626
  } | 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;
515
639
  } | undefined, unknown>;
516
640
  deliveryTime: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | null | undefined, unknown>;
517
641
  description: z.ZodString;
@@ -592,6 +716,18 @@ export declare const CreateMaterialDtoZod: z.ZodObject<{
592
716
  znach: string | number;
593
717
  shortName: string;
594
718
  } | 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;
595
731
  } | undefined;
596
732
  file_base?: string | null | undefined;
597
733
  deliveryTime?: number | null | undefined;