@pksep/zod-shared 0.0.506 → 0.0.508

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 (73) hide show
  1. package/dist/assemble/dto/create-assemble-kit.dto.d.ts +2 -2
  2. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +2 -2
  3. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +4 -0
  4. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -0
  5. package/dist/assemble/schemas/assemble-coming.schema.d.ts +7 -7
  6. package/dist/assemble/schemas/assemble.schema.d.ts +1 -1
  7. package/dist/cbed/dto/get-one-cbed-dto.d.ts +3 -0
  8. package/dist/cbed/dto/get-one-cbed-dto.js +1 -0
  9. package/dist/cbed/dto/up-create-cbed.dto.d.ts +2 -2
  10. package/dist/cbed/schemas/cbed.schema.d.ts +23 -14
  11. package/dist/cbed/schemas/cbed.schema.js +3 -0
  12. package/dist/detal/dto/update-detal.dto.d.ts +2 -2
  13. package/dist/detal/schemas/detal-deficit.schema.d.ts +98 -277
  14. package/dist/detal/schemas/detal.schema.d.ts +105 -283
  15. package/dist/detal/schemas/detal.schema.js +3 -0
  16. package/dist/equipment/dto/create-equipment.dto.js +1 -1
  17. package/dist/equipment/dto/update-equipment.dto.js +1 -9
  18. package/dist/material/schemas/material.schema.d.ts +2 -2
  19. package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +5 -0
  20. package/dist/movement-object/schemas/get-one-object-history.schema.js +1 -0
  21. package/dist/moving/schemas/moving.schema.d.ts +146 -111
  22. package/dist/operations/dto/update-create-operation.dto.d.ts +3 -0
  23. package/dist/operations/dto/update-create-operation.dto.js +1 -0
  24. package/dist/product/dto/up-create-product.dto.d.ts +5 -5
  25. package/dist/product/schemas/product-deficit.schema.d.ts +15 -12
  26. package/dist/product/schemas/product.schema.d.ts +15 -12
  27. package/dist/product/schemas/product.schema.js +1 -0
  28. package/dist/production-tasks/dto/create-operation-pos.dto.d.ts +0 -3
  29. package/dist/production-tasks/dto/create-operation-pos.dto.js +1 -2
  30. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +2 -2
  31. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +18 -0
  32. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +7 -0
  33. package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +21 -0
  34. package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +8 -0
  35. package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +18 -0
  36. package/dist/production-tasks/dto/get-production-task-by-user.dto.js +8 -1
  37. package/dist/production-tasks/dto/get-taks-by-toperation.dto.d.ts +3 -0
  38. package/dist/production-tasks/dto/get-taks-by-toperation.dto.js +4 -0
  39. package/dist/production-tasks/dto/get-tasks-by-operation.dto.d.ts +19 -0
  40. package/dist/production-tasks/dto/get-tasks-by-operation.dto.js +11 -0
  41. package/dist/production-tasks/dto/plan-production-task.dto.d.ts +6 -0
  42. package/dist/production-tasks/dto/plan-production-task.dto.js +2 -0
  43. package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +3 -3
  44. package/dist/production-tasks/dto/set-start-time-detal.dto.js +1 -1
  45. package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +28 -0
  46. package/dist/production-tasks/dto/workload-by-entity.dto.js +12 -0
  47. package/dist/production-tasks/index.d.ts +2 -1
  48. package/dist/production-tasks/index.js +2 -1
  49. package/dist/production-tasks/interfaces/production-tasks.d.ts +201 -3
  50. package/dist/production-tasks/methods/methods.d.ts +2 -1
  51. package/dist/production-tasks/methods/methods.js +10 -18
  52. package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
  53. package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
  54. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +0 -5
  55. package/dist/production-tasks/schemas/production-operation-pos.schema.js +0 -1
  56. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +3 -3
  57. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +1 -1
  58. package/dist/role/schemas/role.schema.d.ts +146 -111
  59. package/dist/sclad/schemas/remains.schema.d.ts +4 -4
  60. package/dist/specification/schema/attributes.schema.d.ts +208 -462
  61. package/dist/tech-process/index.d.ts +1 -0
  62. package/dist/tech-process/index.js +1 -0
  63. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
  64. package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
  65. package/dist/tech-process/schemas/tech-process.schema.d.ts +8 -1
  66. package/dist/tech-process/types/tech-process-with-options.d.ts +4 -0
  67. package/dist/tech-process/types/tech-process-with-options.js +2 -0
  68. package/dist/user/schemas/user.schema.d.ts +99 -74
  69. package/dist/utils/methods.d.ts +1 -1
  70. package/dist/utils/methods.js +2 -4
  71. package/dist/utils/operation.d.ts +1 -0
  72. package/dist/utils/operation.js +15 -1
  73. package/package.json +1 -1
@@ -25,20 +25,20 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
25
25
  description: string;
26
26
  name: string;
27
27
  materialList: EntityCommonSpecificationArray;
28
- articl: string;
29
28
  parametrs: productParametrsField;
30
29
  characteristic: productCharacteristicField;
31
30
  listPokDet: EntityCommonSpecificationArray;
32
- listDetal: EntityCommonSpecificationArray;
33
31
  listCbed: EntityCommonSpecificationArray;
32
+ listDetal: EntityCommonSpecificationArray;
33
+ articl: string;
34
34
  responsible: string;
35
35
  techProcessID: string;
36
36
  id?: number | null | undefined;
37
37
  docs?: any;
38
38
  attention?: boolean | undefined;
39
39
  fileBase?: any;
40
- is_custom?: string | undefined;
41
40
  discontinued?: boolean | undefined;
41
+ is_custom?: string | undefined;
42
42
  }, {
43
43
  designation: string;
44
44
  description: string;
@@ -54,9 +54,9 @@ export declare const UpCreateProductDtoZod: z.ZodObject<{
54
54
  parametrs?: unknown;
55
55
  characteristic?: unknown;
56
56
  listPokDet?: unknown;
57
- listDetal?: unknown;
58
57
  listCbed?: unknown;
59
- is_custom?: string | undefined;
58
+ listDetal?: unknown;
60
59
  discontinued?: unknown;
60
+ is_custom?: string | undefined;
61
61
  }>;
62
62
  export type UpCreateProductDtoZodType = z.infer<typeof UpCreateProductDtoZod>;
@@ -20,6 +20,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
20
20
  listDetal: z.ZodType<import("../..").EntityCommonSpecificationArray, z.ZodTypeDef, import("../..").EntityCommonSpecificationArray>;
21
21
  listCbed: z.ZodType<import("../..").EntityCommonSpecificationArray, z.ZodTypeDef, import("../..").EntityCommonSpecificationArray>;
22
22
  attention: z.ZodDefault<z.ZodBoolean>;
23
+ calculate_needs_time: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
23
24
  in_kit: z.ZodDefault<z.ZodNumber>;
24
25
  is_custom: z.ZodDefault<z.ZodBoolean>;
25
26
  responsibleId: z.ZodNullable<z.ZodNumber>;
@@ -187,23 +188,24 @@ export declare const ProductDeficitSchema: z.ZodObject<{
187
188
  shipments_kolvo: number;
188
189
  min_remaining: number;
189
190
  responsibleId: number | null;
190
- production_ordered: number;
191
- shipments_deficit: number;
191
+ calculate_needs_time: Date | null;
192
192
  deficit: number;
193
- articl: string | null;
193
+ shipments_deficit: number;
194
+ production_ordered: number;
194
195
  ava_path: string | null;
195
196
  parametrs: import("../..").CbedVariableField[];
196
197
  characteristic: import("../..").CbedVariableField[];
198
+ in_kit: number;
197
199
  listPokDet: import("../..").EntityCommonSpecificationArray;
198
- listDetal: import("../..").EntityCommonSpecificationArray;
199
200
  listCbed: import("../..").EntityCommonSpecificationArray;
200
- in_kit: number;
201
+ listDetal: import("../..").EntityCommonSpecificationArray;
202
+ articl: string | null;
201
203
  is_custom: boolean;
202
204
  myQuantity: number;
203
205
  id?: number | null | undefined;
206
+ production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
204
207
  discontinued?: boolean | undefined;
205
208
  production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
206
- production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
207
209
  }, {
208
210
  shipment: {
209
211
  description: string;
@@ -242,11 +244,11 @@ export declare const ProductDeficitSchema: z.ZodObject<{
242
244
  name: string;
243
245
  materialList: import("../..").EntityCommonSpecificationArray;
244
246
  responsibleId: number | null;
245
- articl: string | null;
246
247
  ava_path: string | null;
247
248
  listPokDet: import("../..").EntityCommonSpecificationArray;
248
- listDetal: import("../..").EntityCommonSpecificationArray;
249
249
  listCbed: import("../..").EntityCommonSpecificationArray;
250
+ listDetal: import("../..").EntityCommonSpecificationArray;
251
+ articl: string | null;
250
252
  myQuantity: number;
251
253
  ban?: boolean | undefined;
252
254
  id?: number | null | undefined;
@@ -254,15 +256,16 @@ export declare const ProductDeficitSchema: z.ZodObject<{
254
256
  quantity?: number | undefined;
255
257
  shipments_kolvo?: number | undefined;
256
258
  min_remaining?: number | undefined;
257
- production_ordered?: number | undefined;
258
- shipments_deficit?: number | undefined;
259
+ calculate_needs_time?: Date | null | undefined;
259
260
  deficit?: number | undefined;
261
+ shipments_deficit?: number | undefined;
262
+ production_ordered?: number | undefined;
263
+ production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
260
264
  parametrs?: import("../..").CbedVariableField[] | undefined;
261
265
  characteristic?: import("../..").CbedVariableField[] | undefined;
262
266
  in_kit?: number | undefined;
263
- is_custom?: boolean | undefined;
264
267
  discontinued?: boolean | undefined;
265
268
  production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
266
- production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
269
+ is_custom?: boolean | undefined;
267
270
  }>;
268
271
  export type ModelProductDeficit = z.infer<typeof ProductDeficitSchema>;
@@ -32,6 +32,7 @@ export declare const ProductSchema: z.ZodObject<{
32
32
  listDetal: z.ZodType<EntityCommonSpecificationArray, z.ZodTypeDef, EntityCommonSpecificationArray>;
33
33
  listCbed: z.ZodType<EntityCommonSpecificationArray, z.ZodTypeDef, EntityCommonSpecificationArray>;
34
34
  attention: z.ZodDefault<z.ZodBoolean>;
35
+ calculate_needs_time: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
35
36
  in_kit: z.ZodDefault<z.ZodNumber>;
36
37
  is_custom: z.ZodDefault<z.ZodBoolean>;
37
38
  responsibleId: z.ZodNullable<z.ZodNumber>;
@@ -49,49 +50,51 @@ export declare const ProductSchema: z.ZodObject<{
49
50
  shipments_kolvo: number;
50
51
  min_remaining: number;
51
52
  responsibleId: number | null;
52
- production_ordered: number;
53
- shipments_deficit: number;
53
+ calculate_needs_time: Date | null;
54
54
  deficit: number;
55
- articl: string | null;
55
+ shipments_deficit: number;
56
+ production_ordered: number;
56
57
  ava_path: string | null;
57
58
  parametrs: CbedVariableField[];
58
59
  characteristic: CbedVariableField[];
60
+ in_kit: number;
59
61
  listPokDet: EntityCommonSpecificationArray;
60
- listDetal: EntityCommonSpecificationArray;
61
62
  listCbed: EntityCommonSpecificationArray;
62
- in_kit: number;
63
+ listDetal: EntityCommonSpecificationArray;
64
+ articl: string | null;
63
65
  is_custom: boolean;
64
66
  id?: number | null | undefined;
67
+ production_time_metalloworking?: ProductionTimeType | null | undefined;
65
68
  discontinued?: boolean | undefined;
66
69
  production_time_assemble?: ProductionTimeType | null | undefined;
67
- production_time_metalloworking?: ProductionTimeType | null | undefined;
68
70
  }, {
69
71
  designation: string | null;
70
72
  description: string | null;
71
73
  name: string;
72
74
  materialList: EntityCommonSpecificationArray;
73
75
  responsibleId: number | null;
74
- articl: string | null;
75
76
  ava_path: string | null;
76
77
  listPokDet: EntityCommonSpecificationArray;
77
- listDetal: EntityCommonSpecificationArray;
78
78
  listCbed: EntityCommonSpecificationArray;
79
+ listDetal: EntityCommonSpecificationArray;
80
+ articl: string | null;
79
81
  ban?: boolean | undefined;
80
82
  id?: number | null | undefined;
81
83
  attention?: boolean | undefined;
82
84
  quantity?: number | undefined;
83
85
  shipments_kolvo?: number | undefined;
84
86
  min_remaining?: number | undefined;
85
- production_ordered?: number | undefined;
86
- shipments_deficit?: number | undefined;
87
+ calculate_needs_time?: Date | null | undefined;
87
88
  deficit?: number | undefined;
89
+ shipments_deficit?: number | undefined;
90
+ production_ordered?: number | undefined;
91
+ production_time_metalloworking?: ProductionTimeType | null | undefined;
88
92
  parametrs?: CbedVariableField[] | undefined;
89
93
  characteristic?: CbedVariableField[] | undefined;
90
94
  in_kit?: number | undefined;
91
- is_custom?: boolean | undefined;
92
95
  discontinued?: boolean | undefined;
93
96
  production_time_assemble?: ProductionTimeType | null | undefined;
94
- production_time_metalloworking?: ProductionTimeType | null | undefined;
97
+ is_custom?: boolean | undefined;
95
98
  }>;
96
99
  export type ModelProduct = z.infer<typeof ProductSchema> & {
97
100
  documents?: ModelDocuments[];
@@ -24,6 +24,7 @@ exports.ProductSchema = zod_1.z.object({
24
24
  listDetal: zod_1.z.custom(),
25
25
  listCbed: zod_1.z.custom(),
26
26
  attention: zod_1.z.boolean().default(false),
27
+ calculate_needs_time: zod_1.z.date().nullish().default(null),
27
28
  in_kit: zod_1.z.number().int().default(0),
28
29
  is_custom: zod_1.z.boolean().default(false),
29
30
  responsibleId: zod_1.z.number().int().positive().nullable(),
@@ -21,7 +21,6 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
21
21
  employeeId: number;
22
22
  equipmentId?: number | null | undefined;
23
23
  }>, "many">;
24
- responsible_user_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
25
24
  }, "strip", z.ZodTypeAny, {
26
25
  type: StockOrderType;
27
26
  production_task_id: number;
@@ -33,7 +32,6 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
33
32
  employeeId: number;
34
33
  }[];
35
34
  id?: number | null | undefined;
36
- responsible_user_id?: number | null | undefined;
37
35
  ass_id?: number | null | undefined;
38
36
  metall_id?: number | null | undefined;
39
37
  }, {
@@ -47,7 +45,6 @@ export declare const CreateProductionOperationPosZod: z.ZodObject<{
47
45
  equipmentId?: number | null | undefined;
48
46
  }[];
49
47
  id?: number | null | undefined;
50
- responsible_user_id?: number | null | undefined;
51
48
  ass_id?: number | null | undefined;
52
49
  metall_id?: number | null | undefined;
53
50
  }>;
@@ -12,6 +12,5 @@ exports.CreateProductionOperationPosZod = zod_1.z.object({
12
12
  metall_id: zod_1.z.number().nullish(),
13
13
  idx: zod_1.z.number(),
14
14
  quantity: zod_1.z.number(),
15
- operation_positions: zod_1.z.array(production_operation_pos_schema_1.createOperationPositionSchema),
16
- responsible_user_id: zod_1.z.number().nullish().optional()
15
+ operation_positions: zod_1.z.array(production_operation_pos_schema_1.createOperationPositionSchema)
17
16
  });
@@ -23,8 +23,8 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  typeOperationIds: number[] | null;
25
25
  employeIds: number[] | null;
26
- isOnlyDetalId: boolean | null;
27
26
  assembleIds: number[] | null;
27
+ isOnlyDetalId: boolean | null;
28
28
  page?: number | null | undefined;
29
29
  searchString?: string | undefined;
30
30
  range?: {
@@ -46,7 +46,7 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
46
46
  typeOperationIds?: number[] | null | undefined;
47
47
  employeIds?: number[] | null | undefined;
48
48
  childrenByProductionTaskIds?: number[] | null | undefined;
49
- isOnlyDetalId?: boolean | null | undefined;
50
49
  assembleIds?: number[] | null | undefined;
50
+ isOnlyDetalId?: boolean | null | undefined;
51
51
  }>;
52
52
  export type GetDeficitsDetalByProductionTaskDtoZodType = z.infer<typeof GetDeficitsDetalByProductionTaskDtoZod>;
@@ -2,13 +2,31 @@ import { z } from 'zod';
2
2
  export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
3
3
  equipmentId: z.ZodNumber;
4
4
  taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
+ range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
+ start: z.ZodAny;
7
+ end: z.ZodAny;
8
+ }, "strip", z.ZodTypeAny, {
9
+ start?: any;
10
+ end?: any;
11
+ }, {
12
+ start?: any;
13
+ end?: any;
14
+ }>>>;
5
15
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
6
16
  }, "strip", z.ZodTypeAny, {
7
17
  equipmentId: number;
18
+ range?: {
19
+ start?: any;
20
+ end?: any;
21
+ } | null | undefined;
8
22
  taskId?: number | null | undefined;
9
23
  onlyTOperation?: number | undefined;
10
24
  }, {
11
25
  equipmentId: number;
26
+ range?: {
27
+ start?: any;
28
+ end?: any;
29
+ } | null | undefined;
12
30
  taskId?: number | null | undefined;
13
31
  onlyTOperation?: number | undefined;
14
32
  }>;
@@ -5,5 +5,12 @@ const zod_1 = require("zod");
5
5
  exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
6
6
  equipmentId: zod_1.z.number().int(),
7
7
  taskId: zod_1.z.number().int().nullish(),
8
+ range: zod_1.z
9
+ .object({
10
+ start: zod_1.z.any(),
11
+ end: zod_1.z.any()
12
+ })
13
+ .nullable()
14
+ .optional(),
8
15
  onlyTOperation: zod_1.z.number().int().optional()
9
16
  });
@@ -4,14 +4,35 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
4
4
  operationTypeId: z.ZodNumber;
5
5
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
6
6
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
7
+ range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
+ start: z.ZodAny;
9
+ end: z.ZodAny;
10
+ }, "strip", z.ZodTypeAny, {
11
+ start?: any;
12
+ end?: any;
13
+ }, {
14
+ start?: any;
15
+ end?: any;
16
+ }>>>;
17
+ equipmentIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
7
18
  productionOperationType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof StockOrderType>>>;
8
19
  }, "strip", z.ZodTypeAny, {
20
+ equipmentIds: number[] | null;
9
21
  operationTypeId: number;
22
+ range?: {
23
+ start?: any;
24
+ end?: any;
25
+ } | null | undefined;
10
26
  taskId?: number | null | undefined;
11
27
  onlyTOperation?: number | undefined;
12
28
  productionOperationType?: StockOrderType | null | undefined;
13
29
  }, {
14
30
  operationTypeId: number;
31
+ equipmentIds?: number[] | null | undefined;
32
+ range?: {
33
+ start?: any;
34
+ end?: any;
35
+ } | null | undefined;
15
36
  taskId?: number | null | undefined;
16
37
  onlyTOperation?: number | undefined;
17
38
  productionOperationType?: StockOrderType | null | undefined;
@@ -7,5 +7,13 @@ exports.GetProductionTaskByOperationDtoZod = zod_1.z.object({
7
7
  operationTypeId: zod_1.z.number().int(),
8
8
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
9
9
  onlyTOperation: zod_1.z.number().int().optional(),
10
+ range: zod_1.z
11
+ .object({
12
+ start: zod_1.z.any(),
13
+ end: zod_1.z.any()
14
+ })
15
+ .nullable()
16
+ .optional(),
17
+ equipmentIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
10
18
  productionOperationType: zod_1.z.nativeEnum(utils_1.StockOrderType).nullish()
11
19
  });
@@ -3,12 +3,30 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
3
3
  userId: z.ZodNumber;
4
4
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
5
5
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
6
+ range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7
+ start: z.ZodAny;
8
+ end: z.ZodAny;
9
+ }, "strip", z.ZodTypeAny, {
10
+ start?: any;
11
+ end?: any;
12
+ }, {
13
+ start?: any;
14
+ end?: any;
15
+ }>>>;
6
16
  }, "strip", z.ZodTypeAny, {
7
17
  userId: number;
18
+ range?: {
19
+ start?: any;
20
+ end?: any;
21
+ } | null | undefined;
8
22
  taskId?: number | null | undefined;
9
23
  onlyTOperation?: number | undefined;
10
24
  }, {
11
25
  userId: number;
26
+ range?: {
27
+ start?: any;
28
+ end?: any;
29
+ } | null | undefined;
12
30
  taskId?: number | null | undefined;
13
31
  onlyTOperation?: number | undefined;
14
32
  }>;
@@ -5,5 +5,12 @@ const zod_1 = require("zod");
5
5
  exports.GetProductionTaskByUserDtoZod = zod_1.z.object({
6
6
  userId: zod_1.z.number().int(),
7
7
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
8
- onlyTOperation: zod_1.z.number().int().optional()
8
+ onlyTOperation: zod_1.z.number().int().optional(),
9
+ range: zod_1.z
10
+ .object({
11
+ start: zod_1.z.any(),
12
+ end: zod_1.z.any()
13
+ })
14
+ .nullable()
15
+ .optional()
9
16
  });
@@ -3,14 +3,17 @@ import { StockOrderType } from '../../utils';
3
3
  export declare const ProductionTaskByTypeOperationDtoZod: z.ZodObject<{
4
4
  productionTaskIds: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>, number[], number[] | undefined>;
5
5
  productionOperationType: z.ZodNativeEnum<typeof StockOrderType>;
6
+ equipmentIds: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>, number[], number[] | undefined>;
6
7
  tOperationId: z.ZodNumber;
7
8
  }, "strip", z.ZodTypeAny, {
9
+ equipmentIds: number[];
8
10
  tOperationId: number;
9
11
  productionOperationType: StockOrderType;
10
12
  productionTaskIds: number[];
11
13
  }, {
12
14
  tOperationId: number;
13
15
  productionOperationType: StockOrderType;
16
+ equipmentIds?: number[] | undefined;
14
17
  productionTaskIds?: number[] | undefined;
15
18
  }>;
16
19
  export type ProductionTaskByTypeOperationDtoZodType = z.infer<typeof ProductionTaskByTypeOperationDtoZod>;
@@ -9,5 +9,9 @@ exports.ProductionTaskByTypeOperationDtoZod = zod_1.z.object({
9
9
  .optional()
10
10
  .transform(val => val !== null && val !== void 0 ? val : []),
11
11
  productionOperationType: zod_1.z.nativeEnum(utils_1.StockOrderType),
12
+ equipmentIds: zod_1.z
13
+ .array(zod_1.z.number().int())
14
+ .optional()
15
+ .transform(val => val !== null && val !== void 0 ? val : []),
12
16
  tOperationId: zod_1.z.number().int()
13
17
  });
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { StockOrderType } from '../../utils';
3
+ export declare const GetTaskByOperationsSchema: z.ZodObject<{
4
+ entityType: z.ZodNativeEnum<typeof StockOrderType>;
5
+ productionEntityId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
+ operationId: z.ZodNumber;
7
+ productionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ operationId: number;
10
+ entityType: StockOrderType;
11
+ productionTaskId?: number | null | undefined;
12
+ productionEntityId?: number | null | undefined;
13
+ }, {
14
+ operationId: number;
15
+ entityType: StockOrderType;
16
+ productionTaskId?: number | null | undefined;
17
+ productionEntityId?: number | null | undefined;
18
+ }>;
19
+ export type GetTaskByOperationsType = z.infer<typeof GetTaskByOperationsSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTaskByOperationsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const utils_1 = require("../../utils");
6
+ exports.GetTaskByOperationsSchema = zod_1.z.object({
7
+ entityType: zod_1.z.nativeEnum(utils_1.StockOrderType),
8
+ productionEntityId: zod_1.z.number().nullish(),
9
+ operationId: zod_1.z.number(),
10
+ productionTaskId: zod_1.z.number().nullish()
11
+ });
@@ -6,6 +6,8 @@ export declare const PlanForProductionTaskDtoZod: z.ZodObject<{
6
6
  workingType: z.ZodNativeEnum<typeof StockOrderType>;
7
7
  byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
8
8
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
9
+ assembleIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>;
10
+ onlyDeficit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
11
  deficitFilteringType: z.ZodDefault<z.ZodNativeEnum<typeof ProductionTaskDeficitFilterEnum>>;
10
12
  searchStr: z.ZodOptional<z.ZodString>;
11
13
  typeOperationIds: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>, number[] | undefined, unknown>, number[], unknown>;
@@ -27,6 +29,8 @@ export declare const PlanForProductionTaskDtoZod: z.ZodObject<{
27
29
  page: number;
28
30
  workingType: StockOrderType;
29
31
  typeOperationIds: number[];
32
+ assembleIds: number[] | null;
33
+ onlyDeficit: boolean;
30
34
  deficitFilteringType: ProductionTaskDeficitFilterEnum;
31
35
  excludeIds: number[];
32
36
  sortReadiness: SortReadinesEnum;
@@ -50,6 +54,8 @@ export declare const PlanForProductionTaskDtoZod: z.ZodObject<{
50
54
  typeOperationIds?: unknown;
51
55
  searchStr?: string | undefined;
52
56
  childrenByProductionTaskIds?: number[] | null | undefined;
57
+ assembleIds?: number[] | null | undefined;
58
+ onlyDeficit?: boolean | undefined;
53
59
  deficitFilteringType?: ProductionTaskDeficitFilterEnum | undefined;
54
60
  excludeIds?: number[] | undefined;
55
61
  sortReadiness?: SortReadinesEnum | undefined;
@@ -8,6 +8,8 @@ exports.PlanForProductionTaskDtoZod = zod_1.z.object({
8
8
  workingType: zod_1.z.nativeEnum(utils_1.StockOrderType),
9
9
  byParents: zod_1.z.custom().nullable().optional(),
10
10
  byOrder: zod_1.z.custom().nullable().optional(),
11
+ assembleIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
12
+ onlyDeficit: zod_1.z.boolean().optional().default(false),
11
13
  deficitFilteringType: zod_1.z
12
14
  .nativeEnum(production_tasks_1.ProductionTaskDeficitFilterEnum)
13
15
  .default(production_tasks_1.ProductionTaskDeficitFilterEnum.all),
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SetStartDetalTimeDtoZod: z.ZodObject<{
3
- typeOperationId: z.ZodNumber;
3
+ equipmentId: z.ZodNumber;
4
4
  time: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
+ equipmentId: number;
6
7
  time: string;
7
- typeOperationId: number;
8
8
  }, {
9
+ equipmentId: number;
9
10
  time: string;
10
- typeOperationId: number;
11
11
  }>;
12
12
  export type SetStartDetalTimeDtoZodType = z.infer<typeof SetStartDetalTimeDtoZod>;
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SetStartDetalTimeDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.SetStartDetalTimeDtoZod = zod_1.z.object({
6
- typeOperationId: zod_1.z.number(),
6
+ equipmentId: zod_1.z.number(),
7
7
  time: zod_1.z.string()
8
8
  });
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ import { StockOrderType } from '../../utils';
3
+ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
4
+ entityType: z.ZodNativeEnum<typeof StockOrderType>;
5
+ range: z.ZodObject<{
6
+ start: z.ZodString;
7
+ end: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ start: string;
10
+ end: string;
11
+ }, {
12
+ start: string;
13
+ end: string;
14
+ }>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ range: {
17
+ start: string;
18
+ end: string;
19
+ };
20
+ entityType: StockOrderType;
21
+ }, {
22
+ range: {
23
+ start: string;
24
+ end: string;
25
+ };
26
+ entityType: StockOrderType;
27
+ }>;
28
+ export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkloadByEntityDtoZod = void 0;
4
+ const zod_1 = require("zod");
5
+ const utils_1 = require("../../utils");
6
+ exports.WorkloadByEntityDtoZod = zod_1.z.object({
7
+ entityType: zod_1.z.nativeEnum(utils_1.StockOrderType),
8
+ range: zod_1.z.object({
9
+ start: zod_1.z.string(),
10
+ end: zod_1.z.string()
11
+ })
12
+ });
@@ -20,9 +20,9 @@ export * from './dto/update.dto';
20
20
  export * from './dto/change-due-date.dto';
21
21
  export * from './dto/percent-created.dto';
22
22
  export * from './dto/update-position.dto';
23
- export * from './dto/update-responsible.dto';
24
23
  export * from './schemas/production-taks-start-time.schema';
25
24
  export * from './dto/set-start-time.dto';
25
+ export * from './dto/workload-by-entity.dto';
26
26
  export * from './dto/get-deficits-detal-by-production-task.dto';
27
27
  export * from './schemas/production-operation-pos.schema';
28
28
  export * from './dto/create-operation-pos.dto';
@@ -32,3 +32,4 @@ export * from './schemas/operation-positions.schema';
32
32
  export * from './dto/get-production-task-by-operation.dto';
33
33
  export * from './schemas/production-taks-start-time-detal.schema';
34
34
  export * from './dto/set-start-time-detal.dto';
35
+ export * from './dto/get-tasks-by-operation.dto';
@@ -36,9 +36,9 @@ __exportStar(require("./dto/update.dto"), exports);
36
36
  __exportStar(require("./dto/change-due-date.dto"), exports);
37
37
  __exportStar(require("./dto/percent-created.dto"), exports);
38
38
  __exportStar(require("./dto/update-position.dto"), exports);
39
- __exportStar(require("./dto/update-responsible.dto"), exports);
40
39
  __exportStar(require("./schemas/production-taks-start-time.schema"), exports);
41
40
  __exportStar(require("./dto/set-start-time.dto"), exports);
41
+ __exportStar(require("./dto/workload-by-entity.dto"), exports);
42
42
  __exportStar(require("./dto/get-deficits-detal-by-production-task.dto"), exports);
43
43
  __exportStar(require("./schemas/production-operation-pos.schema"), exports);
44
44
  __exportStar(require("./dto/create-operation-pos.dto"), exports);
@@ -48,3 +48,4 @@ __exportStar(require("./schemas/operation-positions.schema"), exports);
48
48
  __exportStar(require("./dto/get-production-task-by-operation.dto"), exports);
49
49
  __exportStar(require("./schemas/production-taks-start-time-detal.schema"), exports);
50
50
  __exportStar(require("./dto/set-start-time-detal.dto"), exports);
51
+ __exportStar(require("./dto/get-tasks-by-operation.dto"), exports);