@pksep/zod-shared 0.0.523 → 0.0.524

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 (34) hide show
  1. package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +0 -3
  2. package/dist/production-tasks/dto/workload-by-entity.dto.js +1 -3
  3. package/dist/production-tasks/interfaces/workload-by-entity.d.ts +19 -0
  4. package/package.json +1 -1
  5. package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
  6. package/dist/issue/dto/up-create-issue.dto.js +0 -21
  7. package/dist/issue/index.d.ts +0 -5
  8. package/dist/issue/index.js +0 -21
  9. package/dist/issue/interfaces/interface.d.ts +0 -4
  10. package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
  11. package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
  12. package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
  13. package/dist/issue/schemas/issue-user.schema.js +0 -9
  14. package/dist/issue/schemas/issue.schema.d.ts +0 -51
  15. package/dist/issue/schemas/issue.schema.js +0 -21
  16. package/dist/library/dto/create-chapter.dto.d.ts +0 -12
  17. package/dist/library/dto/create-chapter.dto.js +0 -8
  18. package/dist/library/dto/create-link.dto.d.ts +0 -30
  19. package/dist/library/dto/create-link.dto.js +0 -14
  20. package/dist/library/index.d.ts +0 -5
  21. package/dist/library/index.js +0 -21
  22. package/dist/library/interfaces/interface.d.ts +0 -3
  23. package/dist/library/interfaces/interface.js +0 -2
  24. package/dist/library/schemas/links-user.schema.d.ts +0 -15
  25. package/dist/library/schemas/links-user.schema.js +0 -9
  26. package/dist/library/schemas/links.schema.d.ts +0 -30
  27. package/dist/library/schemas/links.schema.js +0 -14
  28. package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
  29. package/dist/production-tasks/dto/update-marks.dto.js +0 -8
  30. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
  31. package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
  32. package/dist/utils/interface/mat.interface.d.ts +0 -10
  33. package/dist/utils/interface/mat.interface.js +0 -2
  34. /package/dist/{issue/interfaces/interface.js → production-tasks/interfaces/workload-by-entity.js} +0 -0
@@ -15,7 +15,6 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
15
15
  userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
16
  equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
17
  typeOperationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
- subdivision: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../user").EnumSubdivision>>>;
19
18
  }, "strip", z.ZodTypeAny, {
20
19
  range: {
21
20
  start: string;
@@ -24,7 +23,6 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
24
23
  entityType: StockOrderType;
25
24
  userId?: number | null | undefined;
26
25
  equipmentId?: number | null | undefined;
27
- subdivision?: import("../../user").EnumSubdivision | null | undefined;
28
26
  typeOperationId?: number | null | undefined;
29
27
  }, {
30
28
  range: {
@@ -34,7 +32,6 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
34
32
  entityType: StockOrderType;
35
33
  userId?: number | null | undefined;
36
34
  equipmentId?: number | null | undefined;
37
- subdivision?: import("../../user").EnumSubdivision | null | undefined;
38
35
  typeOperationId?: number | null | undefined;
39
36
  }>;
40
37
  export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WorkloadByEntityDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const utils_1 = require("../../utils");
6
- const user_1 = require("../../user");
7
6
  exports.WorkloadByEntityDtoZod = zod_1.z.object({
8
7
  entityType: zod_1.z.nativeEnum(utils_1.StockOrderType),
9
8
  range: zod_1.z.object({
@@ -12,6 +11,5 @@ exports.WorkloadByEntityDtoZod = zod_1.z.object({
12
11
  }),
13
12
  userId: zod_1.z.number().nullish(),
14
13
  equipmentId: zod_1.z.number().nullish(),
15
- typeOperationId: zod_1.z.number().nullish(),
16
- subdivision: user_1.EnumSubdivisionZod.nullish()
14
+ typeOperationId: zod_1.z.number().nullish()
17
15
  });
@@ -0,0 +1,19 @@
1
+ export interface IWorkloadByEntityResponse {
2
+ operationName: string;
3
+ workloadData: IWorkloadData[];
4
+ }
5
+ export interface IWorkloadData {
6
+ responsibleInfo: any;
7
+ positions: IWorkloadPositionByDate[];
8
+ }
9
+ export interface IWorkloadPositionByDate {
10
+ workDate: string;
11
+ positions: {
12
+ normHours: number;
13
+ deltaTime: number;
14
+ datesToCheck: {
15
+ calculateDate: Date | string;
16
+ planReadyDate: Date | string;
17
+ }[];
18
+ };
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pksep/zod-shared",
3
- "version": "0.0.523",
3
+ "version": "0.0.524",
4
4
  "description": "Zod package for erp project. Contains dto, interfaces, schems, types, enum",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,49 +0,0 @@
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>;
@@ -1,21 +0,0 @@
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
- });
@@ -1,5 +0,0 @@
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';
@@ -1,21 +0,0 @@
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);
@@ -1,4 +0,0 @@
1
- export interface IIssueCreationAttrs {
2
- name: string;
3
- instans: number;
4
- }
@@ -1,15 +0,0 @@
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>;
@@ -1,9 +0,0 @@
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
- });
@@ -1,15 +0,0 @@
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>;
@@ -1,9 +0,0 @@
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
- });
@@ -1,51 +0,0 @@
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>;
@@ -1,21 +0,0 @@
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
- });
@@ -1,12 +0,0 @@
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>;
@@ -1,8 +0,0 @@
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
- });
@@ -1,30 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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
- });
@@ -1,5 +0,0 @@
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';
@@ -1,21 +0,0 @@
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);
@@ -1,3 +0,0 @@
1
- export interface ILinksCreationAttrs {
2
- name: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
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>;
@@ -1,9 +0,0 @@
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
- });
@@ -1,30 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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,13 +0,0 @@
1
- import { z } from 'zod';
2
- import { IOperationPosition } from '../interfaces/production-tasks';
3
- export declare const UpdateProductionTaskMarksDtoZod: z.ZodObject<{
4
- operationPosition: z.ZodOptional<z.ZodNullable<z.ZodType<IOperationPosition, z.ZodTypeDef, IOperationPosition>>>;
5
- productionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
- }, "strip", z.ZodTypeAny, {
7
- operationPosition?: IOperationPosition | null | undefined;
8
- productionTaskId?: number | null | undefined;
9
- }, {
10
- operationPosition?: IOperationPosition | null | undefined;
11
- productionTaskId?: number | null | undefined;
12
- }>;
13
- export type UpdateProductionTaskMarksDtoZodType = z.infer<typeof UpdateProductionTaskMarksDtoZod>;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateProductionTaskMarksDtoZod = void 0;
4
- const zod_1 = require("zod");
5
- exports.UpdateProductionTaskMarksDtoZod = zod_1.z.object({
6
- operationPosition: zod_1.z.custom().nullable().optional(),
7
- productionTaskId: zod_1.z.number().int().nullable().optional()
8
- });
@@ -1,306 +0,0 @@
1
- import { z } from 'zod';
2
- import { ModelProduct } from '../../product';
3
- import { ModelCbed } from '../../cbed';
4
- import { ModelDetal } from '../../detal';
5
- export declare const TechProcessWithOpetionsSchema: z.ZodObject<{
6
- id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
- name: z.ZodOptional<z.ZodNumber>;
8
- ban: z.ZodDefault<z.ZodBoolean>;
9
- description: z.ZodDefault<z.ZodString>;
10
- detalId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
- cbedId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
- productId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
- operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
- id: z.ZodOptional<z.ZodNumber>;
15
- idx: z.ZodDefault<z.ZodNumber>;
16
- name: z.ZodNumber;
17
- full_name: z.ZodString;
18
- ban: z.ZodDefault<z.ZodBoolean>;
19
- preTime: z.ZodDefault<z.ZodNumber>;
20
- helperTime: z.ZodDefault<z.ZodNumber>;
21
- mainTime: z.ZodDefault<z.ZodNumber>;
22
- generalCountTime: z.ZodDefault<z.ZodString>;
23
- description: z.ZodDefault<z.ZodString>;
24
- instrumentList: z.ZodDefault<z.ZodString>;
25
- instrumentID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
26
- instrumentMerList: z.ZodDefault<z.ZodString>;
27
- instrumentMerID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
28
- instrumentOsnList: z.ZodDefault<z.ZodString>;
29
- instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
30
- eqList: z.ZodDefault<z.ZodString>;
31
- eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
32
- tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
33
- tech_process_id: z.ZodNumber;
34
- marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
- id: z.ZodNumber;
36
- date_build: z.ZodString;
37
- kol: z.ZodNumber;
38
- quantity_shipped: z.ZodNumber;
39
- brak: z.ZodBoolean;
40
- ban: z.ZodBoolean;
41
- status: z.ZodNativeEnum<typeof import("../..").MarkStatusEnums>;
42
- description: z.ZodOptional<z.ZodString>;
43
- execution_time: z.ZodNumber;
44
- operation_execution_time: z.ZodOptional<z.ZodObject<{
45
- helperTime: z.ZodNumber;
46
- mainTime: z.ZodNumber;
47
- preTime: z.ZodNumber;
48
- }, "strip", z.ZodTypeAny, {
49
- preTime: number;
50
- helperTime: number;
51
- mainTime: number;
52
- }, {
53
- preTime: number;
54
- helperTime: number;
55
- mainTime: number;
56
- }>>;
57
- user_id: z.ZodNumber;
58
- assemble_id: z.ZodNumber;
59
- metaloworking_id: z.ZodNumber;
60
- oper_id: z.ZodNumber;
61
- assemble_kit_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
- production_task_id: z.ZodNullable<z.ZodNumber>;
63
- }, "strip", z.ZodTypeAny, {
64
- status: import("../..").MarkStatusEnums;
65
- ban: boolean;
66
- id: number;
67
- date_build: string;
68
- kol: number;
69
- user_id: number;
70
- oper_id: number;
71
- assemble_id: number;
72
- metaloworking_id: number;
73
- brak: boolean;
74
- execution_time: number;
75
- production_task_id: number | null;
76
- quantity_shipped: number;
77
- description?: string | undefined;
78
- assemble_kit_id?: number | null | undefined;
79
- operation_execution_time?: {
80
- preTime: number;
81
- helperTime: number;
82
- mainTime: number;
83
- } | undefined;
84
- }, {
85
- status: import("../..").MarkStatusEnums;
86
- ban: boolean;
87
- id: number;
88
- date_build: string;
89
- kol: number;
90
- user_id: number;
91
- oper_id: number;
92
- assemble_id: number;
93
- metaloworking_id: number;
94
- brak: boolean;
95
- execution_time: number;
96
- production_task_id: number | null;
97
- quantity_shipped: number;
98
- description?: string | undefined;
99
- assemble_kit_id?: number | null | undefined;
100
- operation_execution_time?: {
101
- preTime: number;
102
- helperTime: number;
103
- mainTime: number;
104
- } | undefined;
105
- }>, "many">>;
106
- }, "strip", z.ZodTypeAny, {
107
- ban: boolean;
108
- description: string;
109
- name: number;
110
- full_name: string;
111
- preTime: number;
112
- helperTime: number;
113
- mainTime: number;
114
- generalCountTime: string;
115
- instrumentList: string;
116
- instrumentMerList: string;
117
- instrumentOsnList: string;
118
- eqList: string;
119
- instrumentID: number | null;
120
- instrumentMerID: number | null;
121
- instrumentOsnID: number | null;
122
- eqID: number | null;
123
- idx: number;
124
- tOperationId: number | null;
125
- tech_process_id: number;
126
- id?: number | undefined;
127
- marks?: {
128
- status: import("../..").MarkStatusEnums;
129
- ban: boolean;
130
- id: number;
131
- date_build: string;
132
- kol: number;
133
- user_id: number;
134
- oper_id: number;
135
- assemble_id: number;
136
- metaloworking_id: number;
137
- brak: boolean;
138
- execution_time: number;
139
- production_task_id: number | null;
140
- quantity_shipped: number;
141
- description?: string | undefined;
142
- assemble_kit_id?: number | null | undefined;
143
- operation_execution_time?: {
144
- preTime: number;
145
- helperTime: number;
146
- mainTime: number;
147
- } | undefined;
148
- }[] | undefined;
149
- }, {
150
- name: number;
151
- full_name: string;
152
- tech_process_id: number;
153
- ban?: boolean | undefined;
154
- description?: string | undefined;
155
- id?: number | undefined;
156
- marks?: {
157
- status: import("../..").MarkStatusEnums;
158
- ban: boolean;
159
- id: number;
160
- date_build: string;
161
- kol: number;
162
- user_id: number;
163
- oper_id: number;
164
- assemble_id: number;
165
- metaloworking_id: number;
166
- brak: boolean;
167
- execution_time: number;
168
- production_task_id: number | null;
169
- quantity_shipped: number;
170
- description?: string | undefined;
171
- assemble_kit_id?: number | null | undefined;
172
- operation_execution_time?: {
173
- preTime: number;
174
- helperTime: number;
175
- mainTime: number;
176
- } | undefined;
177
- }[] | undefined;
178
- preTime?: number | undefined;
179
- helperTime?: number | undefined;
180
- mainTime?: number | undefined;
181
- generalCountTime?: string | undefined;
182
- instrumentList?: string | undefined;
183
- instrumentMerList?: string | undefined;
184
- instrumentOsnList?: string | undefined;
185
- eqList?: string | undefined;
186
- instrumentID?: number | null | undefined;
187
- instrumentMerID?: number | null | undefined;
188
- instrumentOsnID?: number | null | undefined;
189
- eqID?: number | null | undefined;
190
- idx?: number | undefined;
191
- tOperationId?: number | null | undefined;
192
- }>, "many">>;
193
- } & {
194
- isCanUpdated: z.ZodDefault<z.ZodBoolean>;
195
- }, "strip", z.ZodTypeAny, {
196
- ban: boolean;
197
- description: string;
198
- isCanUpdated: boolean;
199
- id?: number | null | undefined;
200
- name?: number | undefined;
201
- detalId?: number | null | undefined;
202
- cbedId?: number | null | undefined;
203
- productId?: number | null | undefined;
204
- operations?: {
205
- ban: boolean;
206
- description: string;
207
- name: number;
208
- full_name: string;
209
- preTime: number;
210
- helperTime: number;
211
- mainTime: number;
212
- generalCountTime: string;
213
- instrumentList: string;
214
- instrumentMerList: string;
215
- instrumentOsnList: string;
216
- eqList: string;
217
- instrumentID: number | null;
218
- instrumentMerID: number | null;
219
- instrumentOsnID: number | null;
220
- eqID: number | null;
221
- idx: number;
222
- tOperationId: number | null;
223
- tech_process_id: number;
224
- id?: number | undefined;
225
- marks?: {
226
- status: import("../..").MarkStatusEnums;
227
- ban: boolean;
228
- id: number;
229
- date_build: string;
230
- kol: number;
231
- user_id: number;
232
- oper_id: number;
233
- assemble_id: number;
234
- metaloworking_id: number;
235
- brak: boolean;
236
- execution_time: number;
237
- production_task_id: number | null;
238
- quantity_shipped: number;
239
- description?: string | undefined;
240
- assemble_kit_id?: number | null | undefined;
241
- operation_execution_time?: {
242
- preTime: number;
243
- helperTime: number;
244
- mainTime: number;
245
- } | undefined;
246
- }[] | undefined;
247
- }[] | undefined;
248
- }, {
249
- ban?: boolean | undefined;
250
- description?: string | undefined;
251
- id?: number | null | undefined;
252
- name?: number | undefined;
253
- detalId?: number | null | undefined;
254
- cbedId?: number | null | undefined;
255
- productId?: number | null | undefined;
256
- operations?: {
257
- name: number;
258
- full_name: string;
259
- tech_process_id: number;
260
- ban?: boolean | undefined;
261
- description?: string | undefined;
262
- id?: number | undefined;
263
- marks?: {
264
- status: import("../..").MarkStatusEnums;
265
- ban: boolean;
266
- id: number;
267
- date_build: string;
268
- kol: number;
269
- user_id: number;
270
- oper_id: number;
271
- assemble_id: number;
272
- metaloworking_id: number;
273
- brak: boolean;
274
- execution_time: number;
275
- production_task_id: number | null;
276
- quantity_shipped: number;
277
- description?: string | undefined;
278
- assemble_kit_id?: number | null | undefined;
279
- operation_execution_time?: {
280
- preTime: number;
281
- helperTime: number;
282
- mainTime: number;
283
- } | undefined;
284
- }[] | undefined;
285
- preTime?: number | undefined;
286
- helperTime?: number | undefined;
287
- mainTime?: number | undefined;
288
- generalCountTime?: string | undefined;
289
- instrumentList?: string | undefined;
290
- instrumentMerList?: string | undefined;
291
- instrumentOsnList?: string | undefined;
292
- eqList?: string | undefined;
293
- instrumentID?: number | null | undefined;
294
- instrumentMerID?: number | null | undefined;
295
- instrumentOsnID?: number | null | undefined;
296
- eqID?: number | null | undefined;
297
- idx?: number | undefined;
298
- tOperationId?: number | null | undefined;
299
- }[] | undefined;
300
- isCanUpdated?: boolean | undefined;
301
- }>;
302
- export type ModelTechProcessWithOpetions = z.infer<typeof TechProcessWithOpetionsSchema> & {
303
- product?: ModelProduct | null;
304
- cbed?: ModelCbed | null;
305
- detal?: ModelDetal | null;
306
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TechProcessWithOpetionsSchema = void 0;
4
- const zod_1 = require("zod");
5
- const tech_process_schema_1 = require("./tech-process.schema");
6
- exports.TechProcessWithOpetionsSchema = tech_process_schema_1.TechProcessSchema.extend({
7
- isCanUpdated: zod_1.z.boolean().default(false)
8
- });
@@ -1,10 +0,0 @@
1
- export interface IUnitsMeasurementStructure {
2
- units_type: number;
3
- shipments: number;
4
- delivery: number;
5
- quantity: number;
6
- price: number;
7
- used: boolean;
8
- min_remaining: number;
9
- working_quantity: number;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });