@pksep/zod-shared 0.0.528 → 0.0.530

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 (141) hide show
  1. package/dist/action/dto/actions-by-param.dto.d.ts +2 -2
  2. package/dist/action/schemas/actions.schema.d.ts +18 -18
  3. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +90 -81
  4. package/dist/assemble/schemas/assemble-coming.schema.d.ts +75 -68
  5. package/dist/assemble/schemas/assemble.schema.d.ts +69 -62
  6. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +13 -13
  7. package/dist/buyer/schemas/buyer.schema.d.ts +1 -1
  8. package/dist/cbed/dto/cbed-pagination.dto.d.ts +1 -1
  9. package/dist/cbed/dto/get-one-cbed-dto.d.ts +2 -2
  10. package/dist/cbed/dto/up-create-cbed.dto.d.ts +6 -6
  11. package/dist/cbed/schemas/cbed-material.schema.d.ts +2 -2
  12. package/dist/cbed/schemas/cbed.schema.d.ts +21 -21
  13. package/dist/company/dto/companies-pagination.dto.d.ts +3 -0
  14. package/dist/company/dto/companies-pagination.dto.js +1 -0
  15. package/dist/company/dto/create-company.dto.d.ts +10 -10
  16. package/dist/company/dto/update-company.dto.d.ts +10 -10
  17. package/dist/company/schemas/companies.schema.d.ts +4 -4
  18. package/dist/contact/dto/create-contact.dto.d.ts +6 -6
  19. package/dist/contact/dto/update-contact.dto.d.ts +6 -6
  20. package/dist/contact/schemas/contact.schema.d.ts +3 -3
  21. package/dist/deliveries/dto/create-deliveries.dto.d.ts +3 -3
  22. package/dist/deliveries/schemas/deliveries-inventary.schema.d.ts +2 -2
  23. package/dist/deliveries/schemas/deliveries.schema.d.ts +4 -4
  24. package/dist/detal/dto/detal-pagination.dto.d.ts +2 -2
  25. package/dist/detal/dto/get-one-detal-dto.d.ts +1 -1
  26. package/dist/detal/dto/update-detal.dto.d.ts +9 -9
  27. package/dist/detal/schemas/detal-deficit.schema.d.ts +203 -203
  28. package/dist/detal/schemas/detal.schema.d.ts +200 -200
  29. package/dist/document/schemas/documentsSchema.d.ts +4 -4
  30. package/dist/equipment/dto/create-equipment.dto.d.ts +1 -1
  31. package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
  32. package/dist/equipment/schemas/equipment.schema.d.ts +98 -93
  33. package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
  34. package/dist/expenditure/schema/expenditure.schema.d.ts +2 -2
  35. package/dist/instrument/dto/create-name-instrument.dto.d.ts +1 -1
  36. package/dist/instrument/dto/update-name-instrument.dto.d.ts +2 -2
  37. package/dist/inventary/dto/create-inventary.dto.d.ts +1 -1
  38. package/dist/marks/dto/change-mark-quantity.dto.d.ts +16 -16
  39. package/dist/marks/dto/create-mark.dto.d.ts +8 -8
  40. package/dist/marks/dto/update-mark.dto.d.ts +2 -2
  41. package/dist/marks/schemas/marks.schema.d.ts +8 -8
  42. package/dist/marks/type/type.d.ts +2 -2
  43. package/dist/material/dto/create-material.dto.d.ts +20 -20
  44. package/dist/material/schemas/material-characteristics.schema.d.ts +6 -6
  45. package/dist/material/schemas/material.schema.d.ts +26 -26
  46. package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +4 -4
  47. package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
  48. package/dist/movement-error/schemas/movement-error.schema.d.ts +2 -2
  49. package/dist/moving/schemas/moving.schema.d.ts +463 -456
  50. package/dist/operations/dto/create-type-operation.dto.d.ts +4 -0
  51. package/dist/operations/dto/create-type-operation.dto.js +5 -1
  52. package/dist/operations/dto/update-type-operation.dto.d.ts +4 -0
  53. package/dist/operations/dto/update-type-operation.dto.js +5 -1
  54. package/dist/operations/enums/enums.d.ts +7 -0
  55. package/dist/operations/enums/enums.js +21 -1
  56. package/dist/operations/index.d.ts +2 -0
  57. package/dist/operations/index.js +2 -0
  58. package/dist/operations/interfaces/interface.d.ts +5 -0
  59. package/dist/operations/schemas/operation.schema.d.ts +21 -17
  60. package/dist/operations/schemas/operation.schema.js +4 -0
  61. package/dist/operations/schemas/type-operation.schema.d.ts +4 -0
  62. package/dist/operations/schemas/type-operation.schema.js +2 -0
  63. package/dist/product/dto/up-create-product.dto.d.ts +7 -7
  64. package/dist/product/schemas/product-deficit.schema.d.ts +20 -20
  65. package/dist/product/schemas/product-material.schema.d.ts +2 -2
  66. package/dist/product/schemas/product-specification.schema.d.ts +2 -2
  67. package/dist/product/schemas/product.schema.d.ts +17 -17
  68. package/dist/production-tasks/dto/create-operation-pos.dto.d.ts +2 -2
  69. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +4 -0
  70. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +3 -1
  71. package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +4 -0
  72. package/dist/production-tasks/dto/get-production-task-by-user.dto.js +2 -0
  73. package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +2 -2
  74. package/dist/production-tasks/interfaces/production-tasks.d.ts +2 -0
  75. package/dist/production-tasks/interfaces/workload-by-entity.d.ts +19 -0
  76. package/dist/production-tasks/schemas/operation-positions.schema.d.ts +7 -4
  77. package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
  78. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +4 -4
  79. package/dist/provider/dto/create-provider.dto.d.ts +4 -4
  80. package/dist/provider/schemas/provider.schema.d.ts +1 -1
  81. package/dist/rack/dto/get-all-racks.dto.d.ts +3 -0
  82. package/dist/rack/dto/get-all-racks.dto.js +2 -1
  83. package/dist/role/schemas/role.schema.d.ts +455 -448
  84. package/dist/sclad/schemas/remain.schema.d.ts +2 -2
  85. package/dist/sclad/schemas/remains.schema.d.ts +6 -6
  86. package/dist/shipments/dto/get-attributes.dto.d.ts +2 -2
  87. package/dist/shipments/dto/shipments-list-pagination.dto.d.ts +1 -1
  88. package/dist/shipments/dto/shipments-paginate.dto.d.ts +2 -2
  89. package/dist/shipments/schemas/sh-complit.schema.d.ts +2 -2
  90. package/dist/shipments/schemas/shipments.schema.d.ts +2 -2
  91. package/dist/specification/dto/specification-attributes.dto.d.ts +1 -1
  92. package/dist/specification/schema/attributes.schema.d.ts +472 -472
  93. package/dist/stock-order/schemas/stock-order-item.schema.d.ts +2 -2
  94. package/dist/tech-process/schemas/tech-process.schema.d.ts +31 -26
  95. package/dist/thread/dto/add-thread.dto.d.ts +8 -8
  96. package/dist/user/dto/create-user.dto.d.ts +5 -5
  97. package/dist/user/dto/get-one-user.dto.d.ts +2 -2
  98. package/dist/user/schemas/user.schema.d.ts +267 -262
  99. package/dist/utils/enums.d.ts +2 -1
  100. package/dist/utils/enums.js +2 -1
  101. package/dist/utils/methods.d.ts +13 -0
  102. package/dist/utils/methods.js +106 -26
  103. package/dist/utils/types/types.d.ts +1 -0
  104. package/dist/waybill/dto/create-waybill-product.dto.d.ts +8 -2
  105. package/dist/waybill/dto/create-waybill-product.dto.js +15 -1
  106. package/dist/waybill/dto/create-waybill.dto.d.ts +16 -6
  107. package/dist/waybill/dto/create-waybill.dto.js +1 -1
  108. package/dist/waybill/interface/interface.d.ts +1 -0
  109. package/dist/waybill/schemas/waybill-product.schema.d.ts +8 -8
  110. package/dist/waybill/schemas/waybill.schema.d.ts +2 -2
  111. package/package.json +1 -1
  112. package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
  113. package/dist/issue/dto/up-create-issue.dto.js +0 -21
  114. package/dist/issue/index.d.ts +0 -5
  115. package/dist/issue/index.js +0 -21
  116. package/dist/issue/interfaces/interface.d.ts +0 -4
  117. package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
  118. package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
  119. package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
  120. package/dist/issue/schemas/issue-user.schema.js +0 -9
  121. package/dist/issue/schemas/issue.schema.d.ts +0 -51
  122. package/dist/issue/schemas/issue.schema.js +0 -21
  123. package/dist/library/dto/create-chapter.dto.d.ts +0 -12
  124. package/dist/library/dto/create-chapter.dto.js +0 -8
  125. package/dist/library/dto/create-link.dto.d.ts +0 -30
  126. package/dist/library/dto/create-link.dto.js +0 -14
  127. package/dist/library/index.d.ts +0 -5
  128. package/dist/library/index.js +0 -21
  129. package/dist/library/interfaces/interface.d.ts +0 -3
  130. package/dist/library/interfaces/interface.js +0 -2
  131. package/dist/library/schemas/links-user.schema.d.ts +0 -15
  132. package/dist/library/schemas/links-user.schema.js +0 -9
  133. package/dist/library/schemas/links.schema.d.ts +0 -30
  134. package/dist/library/schemas/links.schema.js +0 -14
  135. package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
  136. package/dist/production-tasks/dto/update-marks.dto.js +0 -8
  137. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
  138. package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
  139. package/dist/utils/interface/mat.interface.d.ts +0 -10
  140. package/dist/utils/interface/mat.interface.js +0 -2
  141. /package/dist/{issue/interfaces/interface.js → production-tasks/interfaces/workload-by-entity.js} +0 -0
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { WorkStartCalcType } from '../enums/enums';
2
3
  export declare const CreateTypeOperationSchema: z.ZodObject<{
3
4
  name: z.ZodString;
4
5
  preTime: z.ZodBoolean;
@@ -14,6 +15,7 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
14
15
  sclad: z.ZodBoolean;
15
16
  preTimeMinute: z.ZodNumber;
16
17
  helperTimeMinute: z.ZodNumber;
18
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
17
19
  }, "strip", z.ZodTypeAny, {
18
20
  metaloworking: boolean;
19
21
  name: string;
@@ -23,6 +25,7 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
23
25
  cpu: boolean;
24
26
  square: boolean;
25
27
  list: boolean;
28
+ workStartCalcType: WorkStartCalcType;
26
29
  equipmentIds: number[] | null;
27
30
  assembly: boolean;
28
31
  sclad: boolean;
@@ -43,6 +46,7 @@ export declare const CreateTypeOperationSchema: z.ZodObject<{
43
46
  preTimeMinute: number;
44
47
  helperTimeMinute: number;
45
48
  users?: number[] | null | undefined;
49
+ workStartCalcType?: WorkStartCalcType | undefined;
46
50
  equipmentIds?: number[] | null | undefined;
47
51
  }>;
48
52
  export type CreateTypeOperationDto = z.infer<typeof CreateTypeOperationSchema>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateTypeOperationSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const enums_1 = require("../enums/enums");
5
6
  exports.CreateTypeOperationSchema = zod_1.z.object({
6
7
  name: zod_1.z.string(),
7
8
  preTime: zod_1.z.boolean(),
@@ -16,5 +17,8 @@ exports.CreateTypeOperationSchema = zod_1.z.object({
16
17
  assembly: zod_1.z.boolean(),
17
18
  sclad: zod_1.z.boolean(),
18
19
  preTimeMinute: zod_1.z.number(),
19
- helperTimeMinute: zod_1.z.number()
20
+ helperTimeMinute: zod_1.z.number(),
21
+ workStartCalcType: zod_1.z
22
+ .nativeEnum(enums_1.WorkStartCalcType)
23
+ .default(enums_1.WorkStartCalcType.automatic)
20
24
  });
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { WorkStartCalcType } from '../enums/enums';
2
3
  export declare const UpdateTypeOperationSchema: z.ZodObject<{
3
4
  id: z.ZodNumber;
4
5
  name: z.ZodString;
@@ -15,6 +16,7 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
15
16
  sclad: z.ZodBoolean;
16
17
  preTimeMinute: z.ZodNumber;
17
18
  helperTimeMinute: z.ZodNumber;
19
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
18
20
  }, "strip", z.ZodTypeAny, {
19
21
  metaloworking: boolean;
20
22
  id: number;
@@ -25,6 +27,7 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
25
27
  cpu: boolean;
26
28
  square: boolean;
27
29
  list: boolean;
30
+ workStartCalcType: WorkStartCalcType;
28
31
  equipmentIds: number[] | null;
29
32
  assembly: boolean;
30
33
  sclad: boolean;
@@ -46,6 +49,7 @@ export declare const UpdateTypeOperationSchema: z.ZodObject<{
46
49
  preTimeMinute: number;
47
50
  helperTimeMinute: number;
48
51
  users?: any;
52
+ workStartCalcType?: WorkStartCalcType | undefined;
49
53
  equipmentIds?: number[] | null | undefined;
50
54
  }>;
51
55
  export type UpdateTypeOperationDto = z.infer<typeof UpdateTypeOperationSchema>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateTypeOperationSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const enums_1 = require("../enums/enums");
5
6
  exports.UpdateTypeOperationSchema = zod_1.z.object({
6
7
  id: zod_1.z.number().int(),
7
8
  name: zod_1.z.string(),
@@ -17,5 +18,8 @@ exports.UpdateTypeOperationSchema = zod_1.z.object({
17
18
  assembly: zod_1.z.boolean(),
18
19
  sclad: zod_1.z.boolean(),
19
20
  preTimeMinute: zod_1.z.number(),
20
- helperTimeMinute: zod_1.z.number()
21
+ helperTimeMinute: zod_1.z.number(),
22
+ workStartCalcType: zod_1.z
23
+ .nativeEnum(enums_1.WorkStartCalcType)
24
+ .default(enums_1.WorkStartCalcType.automatic)
21
25
  });
@@ -5,6 +5,13 @@ export declare enum WorkStartCalcType {
5
5
  prevOperationReadinessDate = "prevOperationReadinessDate",
6
6
  nextOperationWorkStart = "nextOperationWorkStart"
7
7
  }
8
+ export declare enum WorkStartCalcTypeFilter {
9
+ automatic = "automatic",
10
+ byNextOperation = "byNextOperation",
11
+ byPrevOperation = "byPrevOperation",
12
+ all = "all"
13
+ }
14
+ export declare const workStartCalcTypeFilterToCalcType: (filter: WorkStartCalcTypeFilter) => WorkStartCalcType | null;
8
15
  export declare enum ModelIncludeForTypeOperation {
9
16
  operation = "operation",
10
17
  user = "user",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelIncludeForTypeOperation = exports.WorkStartCalcType = void 0;
3
+ exports.ModelIncludeForTypeOperation = exports.workStartCalcTypeFilterToCalcType = exports.WorkStartCalcTypeFilter = exports.WorkStartCalcType = void 0;
4
4
  var WorkStartCalcType;
5
5
  (function (WorkStartCalcType) {
6
6
  WorkStartCalcType["automatic"] = "automatic";
@@ -9,6 +9,26 @@ var WorkStartCalcType;
9
9
  WorkStartCalcType["prevOperationReadinessDate"] = "prevOperationReadinessDate";
10
10
  WorkStartCalcType["nextOperationWorkStart"] = "nextOperationWorkStart";
11
11
  })(WorkStartCalcType || (exports.WorkStartCalcType = WorkStartCalcType = {}));
12
+ var WorkStartCalcTypeFilter;
13
+ (function (WorkStartCalcTypeFilter) {
14
+ WorkStartCalcTypeFilter["automatic"] = "automatic";
15
+ WorkStartCalcTypeFilter["byNextOperation"] = "byNextOperation";
16
+ WorkStartCalcTypeFilter["byPrevOperation"] = "byPrevOperation";
17
+ WorkStartCalcTypeFilter["all"] = "all";
18
+ })(WorkStartCalcTypeFilter || (exports.WorkStartCalcTypeFilter = WorkStartCalcTypeFilter = {}));
19
+ const workStartCalcTypeFilterToCalcType = (filter) => {
20
+ switch (filter) {
21
+ case WorkStartCalcTypeFilter.automatic:
22
+ return WorkStartCalcType.automatic;
23
+ case WorkStartCalcTypeFilter.byNextOperation:
24
+ return WorkStartCalcType.nextOperationWorkStart;
25
+ case WorkStartCalcTypeFilter.byPrevOperation:
26
+ return WorkStartCalcType.prevOperationReadinessDate;
27
+ case WorkStartCalcTypeFilter.all:
28
+ return null;
29
+ }
30
+ };
31
+ exports.workStartCalcTypeFilterToCalcType = workStartCalcTypeFilterToCalcType;
12
32
  var ModelIncludeForTypeOperation;
13
33
  (function (ModelIncludeForTypeOperation) {
14
34
  ModelIncludeForTypeOperation["operation"] = "operation";
@@ -1,3 +1,4 @@
1
+ export * from './dto/get-type-operation-by-id.dto';
1
2
  export * from './dto/create-type-operation.dto';
2
3
  export * from './dto/up-create-tech-process.dto';
3
4
  export * from './dto/update-create-operation.dto';
@@ -11,3 +12,4 @@ export * from './schemas/type_oper_user.schema';
11
12
  export * from './interfaces/interface';
12
13
  export * from './dto/check-name-unique.dto';
13
14
  export * from './schemas/type-oper-equipment.schema';
15
+ export * from './enums/enums';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/get-type-operation-by-id.dto"), exports);
17
18
  __exportStar(require("./dto/create-type-operation.dto"), exports);
18
19
  __exportStar(require("./dto/up-create-tech-process.dto"), exports);
19
20
  __exportStar(require("./dto/update-create-operation.dto"), exports);
@@ -27,3 +28,4 @@ __exportStar(require("./schemas/type_oper_user.schema"), exports);
27
28
  __exportStar(require("./interfaces/interface"), exports);
28
29
  __exportStar(require("./dto/check-name-unique.dto"), exports);
29
30
  __exportStar(require("./schemas/type-oper-equipment.schema"), exports);
31
+ __exportStar(require("./enums/enums"), exports);
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { WorkStartCalcType } from '../enums/enums';
2
3
  export declare const ITypeOperationInWorkSchema: z.ZodObject<{
3
4
  id: z.ZodOptional<z.ZodNumber>;
4
5
  name: z.ZodString;
@@ -8,6 +9,7 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
8
9
  cpu: z.ZodDefault<z.ZodBoolean>;
9
10
  square: z.ZodDefault<z.ZodBoolean>;
10
11
  list: z.ZodDefault<z.ZodBoolean>;
12
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
11
13
  } & {
12
14
  countWorking: z.ZodNumber;
13
15
  }, "strip", z.ZodTypeAny, {
@@ -18,6 +20,7 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
18
20
  cpu: boolean;
19
21
  square: boolean;
20
22
  list: boolean;
23
+ workStartCalcType: WorkStartCalcType;
21
24
  countWorking: number;
22
25
  id?: number | undefined;
23
26
  }, {
@@ -30,6 +33,7 @@ export declare const ITypeOperationInWorkSchema: z.ZodObject<{
30
33
  cpu?: boolean | undefined;
31
34
  square?: boolean | undefined;
32
35
  list?: boolean | undefined;
36
+ workStartCalcType?: WorkStartCalcType | undefined;
33
37
  }>;
34
38
  export type ITypeOperationInWork = z.infer<typeof ITypeOperationInWorkSchema>;
35
39
  export declare const IOperationExecutionTimeSchema: z.ZodObject<{
@@ -54,4 +58,5 @@ export interface ITypeOperationCreationAttrs {
54
58
  preTime: boolean;
55
59
  helperTime: boolean;
56
60
  mainTime: boolean;
61
+ workStartCalcType?: WorkStartCalcType;
57
62
  }
@@ -4,6 +4,7 @@ import { ModelDocuments } from '../../document';
4
4
  import { ModelEquipment } from '../../equipment';
5
5
  import { ModelNameInstrument } from '../../instrument';
6
6
  import { ModelTechProcess } from '../../tech-process';
7
+ import { WorkStartCalcType } from '../enums/enums';
7
8
  export declare const OperationSchema: z.ZodObject<{
8
9
  id: z.ZodOptional<z.ZodNumber>;
9
10
  idx: z.ZodDefault<z.ZodNumber>;
@@ -23,6 +24,7 @@ export declare const OperationSchema: z.ZodObject<{
23
24
  instrumentOsnID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24
25
  eqList: z.ZodDefault<z.ZodString>;
25
26
  eqID: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
27
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
26
28
  tOperationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
27
29
  tech_process_id: z.ZodNumber;
28
30
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -58,15 +60,15 @@ export declare const OperationSchema: z.ZodObject<{
58
60
  status: import("../../marks").MarkStatusEnums;
59
61
  ban: boolean;
60
62
  id: number;
63
+ assemble_id: number;
64
+ user_id: number;
65
+ metaloworking_id: number;
66
+ production_task_id: number | null;
61
67
  date_build: string;
62
68
  kol: number;
63
- user_id: number;
64
69
  oper_id: number;
65
- assemble_id: number;
66
- metaloworking_id: number;
67
70
  brak: boolean;
68
71
  execution_time: number;
69
- production_task_id: number | null;
70
72
  quantity_shipped: number;
71
73
  description?: string | undefined;
72
74
  assemble_kit_id?: number | null | undefined;
@@ -79,15 +81,15 @@ export declare const OperationSchema: z.ZodObject<{
79
81
  status: import("../../marks").MarkStatusEnums;
80
82
  ban: boolean;
81
83
  id: number;
84
+ assemble_id: number;
85
+ user_id: number;
86
+ metaloworking_id: number;
87
+ production_task_id: number | null;
82
88
  date_build: string;
83
89
  kol: number;
84
- user_id: number;
85
90
  oper_id: number;
86
- assemble_id: number;
87
- metaloworking_id: number;
88
91
  brak: boolean;
89
92
  execution_time: number;
90
- production_task_id: number | null;
91
93
  quantity_shipped: number;
92
94
  description?: string | undefined;
93
95
  assemble_kit_id?: number | null | undefined;
@@ -105,6 +107,8 @@ export declare const OperationSchema: z.ZodObject<{
105
107
  preTime: number;
106
108
  helperTime: number;
107
109
  mainTime: number;
110
+ workStartCalcType: WorkStartCalcType;
111
+ tech_process_id: number;
108
112
  generalCountTime: string;
109
113
  instrumentList: string;
110
114
  instrumentMerList: string;
@@ -116,21 +120,20 @@ export declare const OperationSchema: z.ZodObject<{
116
120
  eqID: number | null;
117
121
  idx: number;
118
122
  tOperationId: number | null;
119
- tech_process_id: number;
120
123
  id?: number | undefined;
121
124
  marks?: {
122
125
  status: import("../../marks").MarkStatusEnums;
123
126
  ban: boolean;
124
127
  id: number;
128
+ assemble_id: number;
129
+ user_id: number;
130
+ metaloworking_id: number;
131
+ production_task_id: number | null;
125
132
  date_build: string;
126
133
  kol: number;
127
- user_id: number;
128
134
  oper_id: number;
129
- assemble_id: number;
130
- metaloworking_id: number;
131
135
  brak: boolean;
132
136
  execution_time: number;
133
- production_task_id: number | null;
134
137
  quantity_shipped: number;
135
138
  description?: string | undefined;
136
139
  assemble_kit_id?: number | null | undefined;
@@ -151,15 +154,15 @@ export declare const OperationSchema: z.ZodObject<{
151
154
  status: import("../../marks").MarkStatusEnums;
152
155
  ban: boolean;
153
156
  id: number;
157
+ assemble_id: number;
158
+ user_id: number;
159
+ metaloworking_id: number;
160
+ production_task_id: number | null;
154
161
  date_build: string;
155
162
  kol: number;
156
- user_id: number;
157
163
  oper_id: number;
158
- assemble_id: number;
159
- metaloworking_id: number;
160
164
  brak: boolean;
161
165
  execution_time: number;
162
- production_task_id: number | null;
163
166
  quantity_shipped: number;
164
167
  description?: string | undefined;
165
168
  assemble_kit_id?: number | null | undefined;
@@ -172,6 +175,7 @@ export declare const OperationSchema: z.ZodObject<{
172
175
  preTime?: number | undefined;
173
176
  helperTime?: number | undefined;
174
177
  mainTime?: number | undefined;
178
+ workStartCalcType?: WorkStartCalcType | undefined;
175
179
  generalCountTime?: string | undefined;
176
180
  instrumentList?: string | undefined;
177
181
  instrumentMerList?: string | undefined;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OperationSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const marks_1 = require("../../marks");
6
+ const enums_1 = require("../enums/enums");
6
7
  exports.OperationSchema = zod_1.z.object({
7
8
  id: zod_1.z.number().int().optional(),
8
9
  idx: zod_1.z.number().int().default(0),
@@ -22,6 +23,9 @@ exports.OperationSchema = zod_1.z.object({
22
23
  instrumentOsnID: zod_1.z.number().int().nullable().default(null),
23
24
  eqList: zod_1.z.string().default(''),
24
25
  eqID: zod_1.z.number().int().nullable().default(null),
26
+ workStartCalcType: zod_1.z
27
+ .nativeEnum(enums_1.WorkStartCalcType)
28
+ .default(enums_1.WorkStartCalcType.automatic),
25
29
  tOperationId: zod_1.z.number().int().nullable().default(null),
26
30
  tech_process_id: zod_1.z.number().int(),
27
31
  marks: zod_1.z.array(marks_1.marksSchema).optional()
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { ModelUser } from '../../user';
3
+ import { WorkStartCalcType } from '../enums/enums';
3
4
  export declare const TypeOperationSchema: z.ZodObject<{
4
5
  id: z.ZodOptional<z.ZodNumber>;
5
6
  name: z.ZodString;
@@ -9,6 +10,7 @@ export declare const TypeOperationSchema: z.ZodObject<{
9
10
  cpu: z.ZodDefault<z.ZodBoolean>;
10
11
  square: z.ZodDefault<z.ZodBoolean>;
11
12
  list: z.ZodDefault<z.ZodBoolean>;
13
+ workStartCalcType: z.ZodDefault<z.ZodNativeEnum<typeof WorkStartCalcType>>;
12
14
  countWorking: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
15
  }, "strip", z.ZodTypeAny, {
14
16
  name: string;
@@ -18,6 +20,7 @@ export declare const TypeOperationSchema: z.ZodObject<{
18
20
  cpu: boolean;
19
21
  square: boolean;
20
22
  list: boolean;
23
+ workStartCalcType: WorkStartCalcType;
21
24
  id?: number | undefined;
22
25
  countWorking?: number | undefined;
23
26
  }, {
@@ -29,6 +32,7 @@ export declare const TypeOperationSchema: z.ZodObject<{
29
32
  cpu?: boolean | undefined;
30
33
  square?: boolean | undefined;
31
34
  list?: boolean | undefined;
35
+ workStartCalcType?: WorkStartCalcType | undefined;
32
36
  countWorking?: number | undefined;
33
37
  }>;
34
38
  export type ModelTypeOperation = z.infer<typeof TypeOperationSchema> & {
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypeOperationSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const enums_1 = require("../enums/enums");
5
6
  exports.TypeOperationSchema = zod_1.z.object({
6
7
  id: zod_1.z.number().int().optional(),
7
8
  name: zod_1.z.string(),
@@ -11,5 +12,6 @@ exports.TypeOperationSchema = zod_1.z.object({
11
12
  cpu: zod_1.z.boolean().default(false),
12
13
  square: zod_1.z.boolean().default(false),
13
14
  list: zod_1.z.boolean().default(false),
15
+ workStartCalcType: zod_1.z.nativeEnum(enums_1.WorkStartCalcType).default(enums_1.WorkStartCalcType.automatic),
14
16
  countWorking: zod_1.z.number().default(0).optional()
15
17
  });
@@ -24,9 +24,9 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
24
24
  designation: string;
25
25
  description: string;
26
26
  name: string;
27
- materialList: EntityCommonSpecificationArray;
28
27
  parametrs: productParametrsField;
29
28
  characteristic: productCharacteristicField;
29
+ materialList: EntityCommonSpecificationArray;
30
30
  listPokDet: EntityCommonSpecificationArray;
31
31
  listCbed: EntityCommonSpecificationArray;
32
32
  listDetal: EntityCommonSpecificationArray;
@@ -34,11 +34,11 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
34
34
  responsible: string;
35
35
  techProcessID: string;
36
36
  id?: number | null | undefined;
37
- docs?: any;
38
37
  attention?: boolean | undefined;
39
- fileBase?: any;
40
38
  discontinued?: boolean | undefined;
41
39
  is_custom?: string | undefined;
40
+ docs?: any;
41
+ fileBase?: any;
42
42
  }, {
43
43
  designation: string;
44
44
  description: string;
@@ -47,16 +47,16 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
47
47
  responsible: string;
48
48
  techProcessID: string;
49
49
  id?: unknown;
50
- docs?: any;
51
- attention?: unknown;
52
- materialList?: unknown;
53
- fileBase?: any;
54
50
  parametrs?: unknown;
55
51
  characteristic?: unknown;
52
+ materialList?: unknown;
56
53
  listPokDet?: unknown;
57
54
  listCbed?: unknown;
58
55
  listDetal?: unknown;
56
+ attention?: unknown;
59
57
  discontinued?: unknown;
60
58
  is_custom?: string | undefined;
59
+ docs?: any;
60
+ fileBase?: any;
61
61
  }>;
62
62
  export type UpCreateProductDtoZodType = z.infer<typeof UpCreateProductDtoZod>;
@@ -70,10 +70,10 @@ export declare const ProductDeficitSchema: z.ZodObject<{
70
70
  ban?: boolean | undefined;
71
71
  description?: string | null | undefined;
72
72
  contacts?: string | null | undefined;
73
+ attention?: boolean | undefined;
73
74
  inn?: string | null | undefined;
74
75
  cpp?: string | null | undefined;
75
76
  rekvisit?: string | null | undefined;
76
- attention?: boolean | undefined;
77
77
  purchasesId?: number | undefined;
78
78
  }>>;
79
79
  status: z.ZodDefault<z.ZodString>;
@@ -130,10 +130,10 @@ export declare const ProductDeficitSchema: z.ZodObject<{
130
130
  ban?: boolean | undefined;
131
131
  description?: string | null | undefined;
132
132
  contacts?: string | null | undefined;
133
+ attention?: boolean | undefined;
133
134
  inn?: string | null | undefined;
134
135
  cpp?: string | null | undefined;
135
136
  rekvisit?: string | null | undefined;
136
- attention?: boolean | undefined;
137
137
  purchasesId?: number | undefined;
138
138
  } | undefined;
139
139
  company_id?: number | undefined;
@@ -178,30 +178,30 @@ export declare const ProductDeficitSchema: z.ZodObject<{
178
178
  designation: string | null;
179
179
  description: string | null;
180
180
  name: string;
181
- attention: boolean;
182
- materialList: import("../..").EntityCommonSpecificationArray;
183
- quantity: number;
184
- shipments_kolvo: number;
185
- min_remaining: number;
186
- responsibleId: number | null;
187
181
  calculate_needs_time: Date | null;
182
+ min_remaining: number;
183
+ quantity: number;
188
184
  deficit: number;
189
- shipments_deficit: number;
185
+ shipments_kolvo: number;
190
186
  production_ordered: number;
187
+ shipments_deficit: number;
191
188
  ava_path: string | null;
192
189
  parametrs: import("../..").CbedVariableField[];
193
190
  characteristic: import("../..").CbedVariableField[];
194
- in_kit: number;
191
+ materialList: import("../..").EntityCommonSpecificationArray;
195
192
  listPokDet: import("../..").EntityCommonSpecificationArray;
196
193
  listCbed: import("../..").EntityCommonSpecificationArray;
197
194
  listDetal: import("../..").EntityCommonSpecificationArray;
195
+ attention: boolean;
196
+ in_kit: number;
197
+ responsibleId: number | null;
198
198
  articl: string | null;
199
199
  is_custom: boolean;
200
200
  myQuantity: number;
201
201
  id?: number | null | undefined;
202
- production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
203
202
  discontinued?: boolean | undefined;
204
203
  production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
204
+ production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
205
205
  }, {
206
206
  shipment: {
207
207
  description: string;
@@ -223,10 +223,10 @@ export declare const ProductDeficitSchema: z.ZodObject<{
223
223
  ban?: boolean | undefined;
224
224
  description?: string | null | undefined;
225
225
  contacts?: string | null | undefined;
226
+ attention?: boolean | undefined;
226
227
  inn?: string | null | undefined;
227
228
  cpp?: string | null | undefined;
228
229
  rekvisit?: string | null | undefined;
229
- attention?: boolean | undefined;
230
230
  purchasesId?: number | undefined;
231
231
  } | undefined;
232
232
  company_id?: number | undefined;
@@ -237,30 +237,30 @@ export declare const ProductDeficitSchema: z.ZodObject<{
237
237
  designation: string | null;
238
238
  description: string | null;
239
239
  name: string;
240
- materialList: import("../..").EntityCommonSpecificationArray;
241
- responsibleId: number | null;
242
240
  ava_path: string | null;
241
+ materialList: import("../..").EntityCommonSpecificationArray;
243
242
  listPokDet: import("../..").EntityCommonSpecificationArray;
244
243
  listCbed: import("../..").EntityCommonSpecificationArray;
245
244
  listDetal: import("../..").EntityCommonSpecificationArray;
245
+ responsibleId: number | null;
246
246
  articl: string | null;
247
247
  myQuantity: number;
248
248
  ban?: boolean | undefined;
249
249
  id?: number | null | undefined;
250
- attention?: boolean | undefined;
251
- quantity?: number | undefined;
252
- shipments_kolvo?: number | undefined;
253
- min_remaining?: number | undefined;
254
250
  calculate_needs_time?: Date | null | undefined;
251
+ min_remaining?: number | undefined;
252
+ quantity?: number | undefined;
255
253
  deficit?: number | undefined;
256
- shipments_deficit?: number | undefined;
254
+ shipments_kolvo?: number | undefined;
257
255
  production_ordered?: number | undefined;
258
- production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
256
+ shipments_deficit?: number | undefined;
259
257
  parametrs?: import("../..").CbedVariableField[] | undefined;
260
258
  characteristic?: import("../..").CbedVariableField[] | undefined;
259
+ attention?: boolean | undefined;
261
260
  in_kit?: number | undefined;
262
261
  discontinued?: boolean | undefined;
263
262
  production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
263
+ production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
264
264
  is_custom?: boolean | undefined;
265
265
  }>;
266
266
  export type ModelProductDeficit = z.infer<typeof ProductDeficitSchema>;
@@ -4,12 +4,12 @@ declare const ProductMaterialSchema: z.ZodObject<{
4
4
  product_id: z.ZodNumber;
5
5
  materialId: z.ZodNumber;
6
6
  }, "strip", z.ZodTypeAny, {
7
- materialId: number;
8
7
  product_id: number;
8
+ materialId: number;
9
9
  id?: number | null | undefined;
10
10
  }, {
11
- materialId: number;
12
11
  product_id: number;
12
+ materialId: number;
13
13
  id?: number | null | undefined;
14
14
  }>;
15
15
  export type ModelProductMaterial = z.infer<typeof ProductMaterialSchema>;
@@ -6,14 +6,14 @@ export declare const ProductSpecificationSchema: z.ZodObject<{
6
6
  detals: z.ZodType<IProductSpecification[], z.ZodTypeDef, IProductSpecification[]>;
7
7
  materials: z.ZodType<IProductSpecification[], z.ZodTypeDef, IProductSpecification[]>;
8
8
  }, "strip", z.ZodTypeAny, {
9
+ cbeds: IProductSpecification[];
9
10
  productId: number;
10
11
  materials: IProductSpecification[];
11
- cbeds: IProductSpecification[];
12
12
  detals: IProductSpecification[];
13
13
  }, {
14
+ cbeds: IProductSpecification[];
14
15
  productId: number;
15
16
  materials: IProductSpecification[];
16
- cbeds: IProductSpecification[];
17
17
  detals: IProductSpecification[];
18
18
  }>;
19
19
  export type ModelProductSpecification = z.infer<typeof ProductSpecificationSchema>;
@@ -44,56 +44,56 @@ export declare const ProductSchema: z.ZodObject<{
44
44
  designation: string | null;
45
45
  description: string | null;
46
46
  name: string;
47
- attention: boolean;
48
- materialList: EntityCommonSpecificationArray;
49
- quantity: number;
50
- shipments_kolvo: number;
51
- min_remaining: number;
52
- responsibleId: number | null;
53
47
  calculate_needs_time: Date | null;
48
+ min_remaining: number;
49
+ quantity: number;
54
50
  deficit: number;
55
- shipments_deficit: number;
51
+ shipments_kolvo: number;
56
52
  production_ordered: number;
53
+ shipments_deficit: number;
57
54
  ava_path: string | null;
58
55
  parametrs: CbedVariableField[];
59
56
  characteristic: CbedVariableField[];
60
- in_kit: number;
57
+ materialList: EntityCommonSpecificationArray;
61
58
  listPokDet: EntityCommonSpecificationArray;
62
59
  listCbed: EntityCommonSpecificationArray;
63
60
  listDetal: EntityCommonSpecificationArray;
61
+ attention: boolean;
62
+ in_kit: number;
63
+ responsibleId: number | null;
64
64
  articl: string | null;
65
65
  is_custom: boolean;
66
66
  id?: number | null | undefined;
67
- production_time_metalloworking?: ProductionTimeType | null | undefined;
68
67
  discontinued?: boolean | undefined;
69
68
  production_time_assemble?: ProductionTimeType | null | undefined;
69
+ production_time_metalloworking?: ProductionTimeType | null | undefined;
70
70
  }, {
71
71
  designation: string | null;
72
72
  description: string | null;
73
73
  name: string;
74
- materialList: EntityCommonSpecificationArray;
75
- responsibleId: number | null;
76
74
  ava_path: string | null;
75
+ materialList: EntityCommonSpecificationArray;
77
76
  listPokDet: EntityCommonSpecificationArray;
78
77
  listCbed: EntityCommonSpecificationArray;
79
78
  listDetal: EntityCommonSpecificationArray;
79
+ responsibleId: number | null;
80
80
  articl: string | null;
81
81
  ban?: boolean | undefined;
82
82
  id?: number | null | undefined;
83
- attention?: boolean | undefined;
84
- quantity?: number | undefined;
85
- shipments_kolvo?: number | undefined;
86
- min_remaining?: number | undefined;
87
83
  calculate_needs_time?: Date | null | undefined;
84
+ min_remaining?: number | undefined;
85
+ quantity?: number | undefined;
88
86
  deficit?: number | undefined;
89
- shipments_deficit?: number | undefined;
87
+ shipments_kolvo?: number | undefined;
90
88
  production_ordered?: number | undefined;
91
- production_time_metalloworking?: ProductionTimeType | null | undefined;
89
+ shipments_deficit?: number | undefined;
92
90
  parametrs?: CbedVariableField[] | undefined;
93
91
  characteristic?: CbedVariableField[] | undefined;
92
+ attention?: boolean | undefined;
94
93
  in_kit?: number | undefined;
95
94
  discontinued?: boolean | undefined;
96
95
  production_time_assemble?: ProductionTimeType | null | undefined;
96
+ production_time_metalloworking?: ProductionTimeType | null | undefined;
97
97
  is_custom?: boolean | undefined;
98
98
  }>;
99
99
  export type ModelProduct = z.infer<typeof ProductSchema> & {