@pksep/zod-shared 0.0.518 → 0.0.520

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 (55) hide show
  1. package/dist/action/dto/actions-by-param.dto.d.ts +3 -0
  2. package/dist/action/dto/actions-by-param.dto.js +1 -0
  3. package/dist/action/schemas/actions.schema.d.ts +3 -0
  4. package/dist/action/schemas/actions.schema.js +2 -1
  5. package/dist/action/types/types.d.ts +3 -0
  6. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +0 -16
  7. package/dist/assemble/schemas/assemble-coming.schema.d.ts +0 -12
  8. package/dist/assemble/schemas/assemble.schema.d.ts +0 -12
  9. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +0 -5
  10. package/dist/cbed/dto/get-deficit.dto.d.ts +1 -4
  11. package/dist/cbed/dto/get-deficit.dto.js +0 -1
  12. package/dist/detal/dto/get-deficit.dto.d.ts +1 -4
  13. package/dist/detal/dto/get-deficit.dto.js +0 -1
  14. package/dist/detal/dto/get-detal-deficit-dto.d.ts +1 -4
  15. package/dist/detal/dto/get-detal-deficit-dto.js +0 -1
  16. package/dist/detal/schemas/detal-deficit.schema.d.ts +0 -10
  17. package/dist/detal/schemas/detal.schema.d.ts +0 -5
  18. package/dist/equipment/schemas/equipment.schema.d.ts +5 -0
  19. package/dist/material/dto/get-deficit.dto.d.ts +1 -4
  20. package/dist/material/dto/get-deficit.dto.js +0 -1
  21. package/dist/moving/schemas/moving.schema.d.ts +7 -0
  22. package/dist/product/dto/get-deficit.dto.d.ts +1 -4
  23. package/dist/product/dto/get-deficit.dto.js +0 -1
  24. package/dist/product/schemas/product-deficit.schema.d.ts +0 -5
  25. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +3 -0
  26. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +1 -0
  27. package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +3 -0
  28. package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +1 -0
  29. package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +3 -0
  30. package/dist/production-tasks/dto/get-production-task-by-user.dto.js +1 -0
  31. package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +9 -0
  32. package/dist/production-tasks/dto/workload-by-entity.dto.js +4 -1
  33. package/dist/production-tasks/interfaces/production-tasks.d.ts +21 -5
  34. package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
  35. package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
  36. package/dist/role/schemas/role.schema.d.ts +7 -0
  37. package/dist/sclad/dto/set-warehouse-readiness-date.dto.d.ts +12 -0
  38. package/dist/sclad/dto/set-warehouse-readiness-date.dto.js +8 -0
  39. package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +0 -5
  40. package/dist/shipments/index.d.ts +0 -1
  41. package/dist/shipments/index.js +0 -1
  42. package/dist/shipments/schemas/shipment-list-item.schema.d.ts +0 -3
  43. package/dist/shipments/schemas/shipment-list-item.schema.js +0 -1
  44. package/dist/shipments/schemas/shipments.schema.d.ts +0 -3
  45. package/dist/shipments/schemas/shipments.schema.js +0 -1
  46. package/dist/specification/schema/attributes.schema.d.ts +0 -7
  47. package/dist/user/schemas/user.schema.d.ts +5 -0
  48. package/dist/utils/date.methods.d.ts +8 -0
  49. package/dist/utils/date.methods.js +47 -0
  50. package/dist/utils/tables-config/methods.d.ts +4 -0
  51. package/dist/utils/tables-config/methods.js +4 -0
  52. package/dist/utils/tables-config/tables-array.js +2 -2
  53. package/dist/utils/types/types.d.ts +2 -0
  54. package/dist/utils/workings.js +1 -16
  55. package/package.json +1 -1
@@ -356,6 +356,7 @@ export declare const EquipmentSchema: z.ZodObject<{
356
356
  role_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
357
357
  parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
358
358
  production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
359
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
359
360
  }, "strip", z.ZodTypeAny, {
360
361
  ban: boolean;
361
362
  action: import("../../action").IActionText[];
@@ -370,6 +371,7 @@ export declare const EquipmentSchema: z.ZodObject<{
370
371
  inventary_id?: number | null | undefined;
371
372
  responsible_id?: number | null | undefined;
372
373
  tech_process_id?: number | null | undefined;
374
+ createdAt?: string | Date | undefined;
373
375
  equipment_id?: number | null | undefined;
374
376
  movement_object_id?: number | null | undefined;
375
377
  deliveries_id?: number | null | undefined;
@@ -404,6 +406,7 @@ export declare const EquipmentSchema: z.ZodObject<{
404
406
  inventary_id?: number | null | undefined;
405
407
  responsible_id?: number | null | undefined;
406
408
  tech_process_id?: number | null | undefined;
409
+ createdAt?: string | Date | undefined;
407
410
  equipment_id?: number | null | undefined;
408
411
  movement_object_id?: number | null | undefined;
409
412
  deliveries_id?: number | null | undefined;
@@ -545,6 +548,7 @@ export declare const EquipmentSchema: z.ZodObject<{
545
548
  inventary_id?: number | null | undefined;
546
549
  responsible_id?: number | null | undefined;
547
550
  tech_process_id?: number | null | undefined;
551
+ createdAt?: string | Date | undefined;
548
552
  equipment_id?: number | null | undefined;
549
553
  movement_object_id?: number | null | undefined;
550
554
  deliveries_id?: number | null | undefined;
@@ -686,6 +690,7 @@ export declare const EquipmentSchema: z.ZodObject<{
686
690
  inventary_id?: number | null | undefined;
687
691
  responsible_id?: number | null | undefined;
688
692
  tech_process_id?: number | null | undefined;
693
+ createdAt?: string | Date | undefined;
689
694
  equipment_id?: number | null | undefined;
690
695
  movement_object_id?: number | null | undefined;
691
696
  deliveries_id?: number | null | undefined;
@@ -1,11 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { enumDeficit, statusWorkingsDeficit } from '../../utils';
2
+ import { statusWorkingsDeficit } from '../../utils';
3
3
  export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
4
4
  materialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
5
5
  typeMaterialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
6
6
  subTypeMaterialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
7
7
  statusWorking: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof statusWorkingsDeficit>>>;
8
- statusDeficit: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof enumDeficit>>>;
9
8
  searchString: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10
9
  shipmentIds: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>>;
11
10
  page: z.ZodNumber;
@@ -13,7 +12,6 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
13
12
  page: number;
14
13
  searchString: string;
15
14
  statusWorking: statusWorkingsDeficit;
16
- statusDeficit: enumDeficit;
17
15
  shipmentIds: number[] | null;
18
16
  materialIds: number[];
19
17
  typeMaterialIds: number[];
@@ -22,7 +20,6 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
22
20
  page: number;
23
21
  searchString?: string | undefined;
24
22
  statusWorking?: statusWorkingsDeficit | undefined;
25
- statusDeficit?: enumDeficit | undefined;
26
23
  shipmentIds?: number[] | null | undefined;
27
24
  materialIds?: number[] | undefined;
28
25
  typeMaterialIds?: number[] | undefined;
@@ -11,7 +11,6 @@ exports.GetMaterialDeficitDtoZod = zod_1.z.object({
11
11
  .nativeEnum(utils_1.statusWorkingsDeficit)
12
12
  .optional()
13
13
  .default(utils_1.statusWorkingsDeficit.all),
14
- statusDeficit: zod_1.z.nativeEnum(utils_1.enumDeficit).optional().default(utils_1.enumDeficit.all),
15
14
  searchString: zod_1.z.string().optional().default(''),
16
15
  shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
17
16
  page: zod_1.z.number().int()
@@ -293,6 +293,7 @@ export declare const MovingSchema: z.ZodObject<{
293
293
  role_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
294
294
  parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
295
295
  production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
296
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
296
297
  }, "strip", z.ZodTypeAny, {
297
298
  ban: boolean;
298
299
  action: import("../..").IActionText[];
@@ -307,6 +308,7 @@ export declare const MovingSchema: z.ZodObject<{
307
308
  inventary_id?: number | null | undefined;
308
309
  responsible_id?: number | null | undefined;
309
310
  tech_process_id?: number | null | undefined;
311
+ createdAt?: string | Date | undefined;
310
312
  equipment_id?: number | null | undefined;
311
313
  movement_object_id?: number | null | undefined;
312
314
  deliveries_id?: number | null | undefined;
@@ -341,6 +343,7 @@ export declare const MovingSchema: z.ZodObject<{
341
343
  inventary_id?: number | null | undefined;
342
344
  responsible_id?: number | null | undefined;
343
345
  tech_process_id?: number | null | undefined;
346
+ createdAt?: string | Date | undefined;
344
347
  equipment_id?: number | null | undefined;
345
348
  movement_object_id?: number | null | undefined;
346
349
  deliveries_id?: number | null | undefined;
@@ -549,6 +552,7 @@ export declare const MovingSchema: z.ZodObject<{
549
552
  inventary_id?: number | null | undefined;
550
553
  responsible_id?: number | null | undefined;
551
554
  tech_process_id?: number | null | undefined;
555
+ createdAt?: string | Date | undefined;
552
556
  equipment_id?: number | null | undefined;
553
557
  movement_object_id?: number | null | undefined;
554
558
  deliveries_id?: number | null | undefined;
@@ -738,6 +742,7 @@ export declare const MovingSchema: z.ZodObject<{
738
742
  inventary_id?: number | null | undefined;
739
743
  responsible_id?: number | null | undefined;
740
744
  tech_process_id?: number | null | undefined;
745
+ createdAt?: string | Date | undefined;
741
746
  equipment_id?: number | null | undefined;
742
747
  movement_object_id?: number | null | undefined;
743
748
  deliveries_id?: number | null | undefined;
@@ -988,6 +993,7 @@ export declare const MovingSchema: z.ZodObject<{
988
993
  inventary_id?: number | null | undefined;
989
994
  responsible_id?: number | null | undefined;
990
995
  tech_process_id?: number | null | undefined;
996
+ createdAt?: string | Date | undefined;
991
997
  equipment_id?: number | null | undefined;
992
998
  movement_object_id?: number | null | undefined;
993
999
  deliveries_id?: number | null | undefined;
@@ -1200,6 +1206,7 @@ export declare const MovingSchema: z.ZodObject<{
1200
1206
  inventary_id?: number | null | undefined;
1201
1207
  responsible_id?: number | null | undefined;
1202
1208
  tech_process_id?: number | null | undefined;
1209
+ createdAt?: string | Date | undefined;
1203
1210
  equipment_id?: number | null | undefined;
1204
1211
  movement_object_id?: number | null | undefined;
1205
1212
  deliveries_id?: number | null | undefined;
@@ -1,23 +1,20 @@
1
1
  import { z } from 'zod';
2
- import { enumDeficit, statusWorkingsDeficit } from '../../utils';
2
+ import { statusWorkingsDeficit } from '../../utils';
3
3
  export declare const GetDeficitProductSchema: z.ZodObject<{
4
4
  productIds: z.ZodArray<z.ZodNumber, "many">;
5
5
  statusWorking: z.ZodNativeEnum<typeof statusWorkingsDeficit>;
6
- statusDeficit: z.ZodNativeEnum<typeof enumDeficit>;
7
6
  searchString: z.ZodString;
8
7
  shipmentIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
9
8
  page: z.ZodOptional<z.ZodNumber>;
10
9
  }, "strip", z.ZodTypeAny, {
11
10
  searchString: string;
12
11
  statusWorking: statusWorkingsDeficit;
13
- statusDeficit: enumDeficit;
14
12
  productIds: number[];
15
13
  page?: number | undefined;
16
14
  shipmentIds?: number[] | null | undefined;
17
15
  }, {
18
16
  searchString: string;
19
17
  statusWorking: statusWorkingsDeficit;
20
- statusDeficit: enumDeficit;
21
18
  productIds: number[];
22
19
  page?: number | undefined;
23
20
  shipmentIds?: number[] | null | undefined;
@@ -6,7 +6,6 @@ const utils_1 = require("../../utils");
6
6
  exports.GetDeficitProductSchema = zod_1.z.object({
7
7
  productIds: zod_1.z.number().int().array(),
8
8
  statusWorking: zod_1.z.nativeEnum(utils_1.statusWorkingsDeficit),
9
- statusDeficit: zod_1.z.nativeEnum(utils_1.enumDeficit),
10
9
  searchString: zod_1.z.string(),
11
10
  shipmentIds: zod_1.z.number().int().array().optional().nullable(),
12
11
  page: zod_1.z.number().int().optional()
@@ -33,7 +33,6 @@ export declare const ProductDeficitSchema: z.ZodObject<{
33
33
  ban: z.ZodDefault<z.ZodBoolean>;
34
34
  date_order: z.ZodDate;
35
35
  date_shipments: z.ZodDate;
36
- date_by_urgency: z.ZodDate;
37
36
  number_order: z.ZodString;
38
37
  kol: z.ZodNumber;
39
38
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -92,7 +91,6 @@ export declare const ProductDeficitSchema: z.ZodObject<{
92
91
  date_shipments: Date;
93
92
  productId: number;
94
93
  date_order: Date;
95
- date_by_urgency: Date;
96
94
  bron: boolean;
97
95
  is_custom_product: boolean;
98
96
  buyerId: number;
@@ -121,7 +119,6 @@ export declare const ProductDeficitSchema: z.ZodObject<{
121
119
  date_shipments: Date;
122
120
  productId: number;
123
121
  date_order: Date;
124
- date_by_urgency: Date;
125
122
  buyerId: number;
126
123
  manager_id: number;
127
124
  status?: string | undefined;
@@ -158,7 +155,6 @@ export declare const ProductDeficitSchema: z.ZodObject<{
158
155
  date_shipments: Date;
159
156
  productId: number;
160
157
  date_order: Date;
161
- date_by_urgency: Date;
162
158
  bron: boolean;
163
159
  is_custom_product: boolean;
164
160
  buyerId: number;
@@ -216,7 +212,6 @@ export declare const ProductDeficitSchema: z.ZodObject<{
216
212
  date_shipments: Date;
217
213
  productId: number;
218
214
  date_order: Date;
219
- date_by_urgency: Date;
220
215
  buyerId: number;
221
216
  manager_id: number;
222
217
  status?: string | undefined;
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
3
3
  equipmentId: z.ZodNumber;
4
+ searchString: z.ZodOptional<z.ZodString>;
4
5
  taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
6
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
7
  start: z.ZodAny;
@@ -15,6 +16,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
15
16
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
16
17
  }, "strip", z.ZodTypeAny, {
17
18
  equipmentId: number;
19
+ searchString?: string | undefined;
18
20
  range?: {
19
21
  start?: any;
20
22
  end?: any;
@@ -23,6 +25,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
23
25
  onlyTOperation?: number | undefined;
24
26
  }, {
25
27
  equipmentId: number;
28
+ searchString?: string | undefined;
26
29
  range?: {
27
30
  start?: any;
28
31
  end?: any;
@@ -4,6 +4,7 @@ exports.GetProductionTaskByEquipmentDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
6
6
  equipmentId: zod_1.z.number().int(),
7
+ searchString: zod_1.z.string().optional(),
7
8
  taskId: zod_1.z.number().int().nullish(),
8
9
  range: zod_1.z
9
10
  .object({
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { StockOrderType } from '../../utils';
3
3
  export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
4
4
  operationTypeId: z.ZodNumber;
5
+ searchString: z.ZodOptional<z.ZodString>;
5
6
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
6
7
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
7
8
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -19,6 +20,7 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  equipmentIds: number[] | null;
21
22
  operationTypeId: number;
23
+ searchString?: string | undefined;
22
24
  range?: {
23
25
  start?: any;
24
26
  end?: any;
@@ -29,6 +31,7 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
29
31
  }, {
30
32
  operationTypeId: number;
31
33
  equipmentIds?: number[] | null | undefined;
34
+ searchString?: string | undefined;
32
35
  range?: {
33
36
  start?: any;
34
37
  end?: any;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const utils_1 = require("../../utils");
6
6
  exports.GetProductionTaskByOperationDtoZod = zod_1.z.object({
7
7
  operationTypeId: zod_1.z.number().int(),
8
+ searchString: zod_1.z.string().optional(),
8
9
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
9
10
  onlyTOperation: zod_1.z.number().int().optional(),
10
11
  range: zod_1.z
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
3
3
  userId: z.ZodNumber;
4
+ searchString: z.ZodOptional<z.ZodString>;
4
5
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
5
6
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
6
7
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -15,6 +16,7 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
15
16
  }>>>;
16
17
  }, "strip", z.ZodTypeAny, {
17
18
  userId: number;
19
+ searchString?: string | undefined;
18
20
  range?: {
19
21
  start?: any;
20
22
  end?: any;
@@ -23,6 +25,7 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
23
25
  onlyTOperation?: number | undefined;
24
26
  }, {
25
27
  userId: number;
28
+ searchString?: string | undefined;
26
29
  range?: {
27
30
  start?: any;
28
31
  end?: any;
@@ -4,6 +4,7 @@ exports.GetProductionTaskByUserDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.GetProductionTaskByUserDtoZod = zod_1.z.object({
6
6
  userId: zod_1.z.number().int(),
7
+ searchString: zod_1.z.string().optional(),
7
8
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
8
9
  onlyTOperation: zod_1.z.number().int().optional(),
9
10
  range: zod_1.z
@@ -12,17 +12,26 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
12
12
  start: string;
13
13
  end: string;
14
14
  }>;
15
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ typeOperationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
18
  }, "strip", z.ZodTypeAny, {
16
19
  range: {
17
20
  start: string;
18
21
  end: string;
19
22
  };
20
23
  entityType: StockOrderType;
24
+ userId?: number | null | undefined;
25
+ equipmentId?: number | null | undefined;
26
+ typeOperationId?: number | null | undefined;
21
27
  }, {
22
28
  range: {
23
29
  start: string;
24
30
  end: string;
25
31
  };
26
32
  entityType: StockOrderType;
33
+ userId?: number | null | undefined;
34
+ equipmentId?: number | null | undefined;
35
+ typeOperationId?: number | null | undefined;
27
36
  }>;
28
37
  export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
@@ -8,5 +8,8 @@ exports.WorkloadByEntityDtoZod = zod_1.z.object({
8
8
  range: zod_1.z.object({
9
9
  start: zod_1.z.string(),
10
10
  end: zod_1.z.string()
11
- })
11
+ }),
12
+ userId: zod_1.z.number().nullish(),
13
+ equipmentId: zod_1.z.number().nullish(),
14
+ typeOperationId: zod_1.z.number().nullish()
12
15
  });
@@ -1,6 +1,6 @@
1
1
  import { ModelTechProcess } from '../../tech-process';
2
2
  import { ModelUser } from '../../user';
3
- import { EntityCommonSpecificationArray, IzdType, ProductionTimeType, StockOrderType } from '../../utils';
3
+ import { EntityCommonSpecificationArray, IzdType, Neo4jEntityTypes, ProductionTimeType, StockOrderType } from '../../utils';
4
4
  import { ModelProductionTaskAssembly } from '../schemas/production-taks-assembly.schema';
5
5
  import { ModelProductionTaskMetalloworking } from '../schemas/production-taks-metalloworkig.schema';
6
6
  import { ModelProductionTask } from '../schemas/production-task.schema';
@@ -51,6 +51,7 @@ export interface IrecalculateStartTimeDetalByEquipment {
51
51
  equipmentId: number;
52
52
  startTime?: Date;
53
53
  transaction?: any;
54
+ preventTaskRelative?: boolean;
54
55
  }
55
56
  export interface IFilterByDate<T> {
56
57
  itemToSort: T[];
@@ -189,6 +190,20 @@ export interface IGetDeficitsDetalByProductionTask {
189
190
  deficitByDetal: number;
190
191
  relativesIds: IRelativeIds;
191
192
  }
193
+ export interface IGetActualTaskRelative {
194
+ entityId: number;
195
+ entityType: Neo4jEntityTypes;
196
+ range?: {
197
+ start: any;
198
+ end: any;
199
+ };
200
+ transaction?: any;
201
+ }
202
+ export interface IRelevanceOfProductionTask {
203
+ operationId: number;
204
+ isStopActualPositions?: boolean;
205
+ transaction?: any;
206
+ }
192
207
  export interface IActualOperationPos {
193
208
  userId: number;
194
209
  indexStartFrom?: number | null;
@@ -333,13 +348,14 @@ export interface IUnicalUsers extends IUnicalEntity {
333
348
  tabel?: string;
334
349
  }
335
350
  export interface IWorkloadByEntityResponse {
351
+ responsibleInfo: any;
352
+ operationWorkload: IWorkloadByOperationData[];
353
+ }
354
+ export interface IWorkloadByOperationData {
336
355
  operationName: string;
337
356
  typeOperationId: number | string;
338
- workloadData: IWorkloadData[];
339
- }
340
- export interface IWorkloadData {
341
- responsibleInfo: any;
342
357
  positionsByDate: IWorkloadPositionByDate[];
358
+ debt?: boolean;
343
359
  }
344
360
  export interface IWorkloadPositionSchema {
345
361
  normHours: number;
@@ -15,6 +15,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
15
15
  production_operation_pos_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
16
  operation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
17
  plan_ready_time: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
18
+ is_relevance: z.ZodDefault<z.ZodBoolean>;
18
19
  createdAt: z.ZodDate;
19
20
  updatedAt: z.ZodDate;
20
21
  }, "strip", z.ZodTypeAny, {
@@ -23,6 +24,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
23
24
  createdAt: Date;
24
25
  updatedAt: Date;
25
26
  create_time_minutes: number;
27
+ is_relevance: boolean;
26
28
  user_id?: number | null | undefined;
27
29
  idx?: number | undefined;
28
30
  equipment_id?: number | null | undefined;
@@ -45,6 +47,7 @@ export declare const OperationPositionSchema: z.ZodObject<{
45
47
  create_time_minutes?: number | undefined;
46
48
  production_operation_pos_id?: number | null | undefined;
47
49
  plan_ready_time?: Date | null | undefined;
50
+ is_relevance?: boolean | undefined;
48
51
  }>;
49
52
  export type ModelOperationPosition = z.infer<typeof OperationPositionSchema> & {
50
53
  responsibleUser?: ModelUser;
@@ -14,6 +14,7 @@ exports.OperationPositionSchema = zod_1.z.object({
14
14
  production_operation_pos_id: zod_1.z.number().nullish(),
15
15
  operation_id: zod_1.z.number().int().nullish(),
16
16
  plan_ready_time: zod_1.z.date().nullish(),
17
+ is_relevance: zod_1.z.boolean().default(true),
17
18
  createdAt: zod_1.z.date(),
18
19
  updatedAt: zod_1.z.date()
19
20
  });
@@ -289,6 +289,7 @@ export declare const RoleSchema: z.ZodObject<{
289
289
  role_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
290
290
  parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
291
291
  production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
292
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
292
293
  }, "strip", z.ZodTypeAny, {
293
294
  ban: boolean;
294
295
  action: import("../..").IActionText[];
@@ -303,6 +304,7 @@ export declare const RoleSchema: z.ZodObject<{
303
304
  inventary_id?: number | null | undefined;
304
305
  responsible_id?: number | null | undefined;
305
306
  tech_process_id?: number | null | undefined;
307
+ createdAt?: string | Date | undefined;
306
308
  equipment_id?: number | null | undefined;
307
309
  movement_object_id?: number | null | undefined;
308
310
  deliveries_id?: number | null | undefined;
@@ -337,6 +339,7 @@ export declare const RoleSchema: z.ZodObject<{
337
339
  inventary_id?: number | null | undefined;
338
340
  responsible_id?: number | null | undefined;
339
341
  tech_process_id?: number | null | undefined;
342
+ createdAt?: string | Date | undefined;
340
343
  equipment_id?: number | null | undefined;
341
344
  movement_object_id?: number | null | undefined;
342
345
  deliveries_id?: number | null | undefined;
@@ -545,6 +548,7 @@ export declare const RoleSchema: z.ZodObject<{
545
548
  inventary_id?: number | null | undefined;
546
549
  responsible_id?: number | null | undefined;
547
550
  tech_process_id?: number | null | undefined;
551
+ createdAt?: string | Date | undefined;
548
552
  equipment_id?: number | null | undefined;
549
553
  movement_object_id?: number | null | undefined;
550
554
  deliveries_id?: number | null | undefined;
@@ -734,6 +738,7 @@ export declare const RoleSchema: z.ZodObject<{
734
738
  inventary_id?: number | null | undefined;
735
739
  responsible_id?: number | null | undefined;
736
740
  tech_process_id?: number | null | undefined;
741
+ createdAt?: string | Date | undefined;
737
742
  equipment_id?: number | null | undefined;
738
743
  movement_object_id?: number | null | undefined;
739
744
  deliveries_id?: number | null | undefined;
@@ -931,6 +936,7 @@ export declare const RoleSchema: z.ZodObject<{
931
936
  inventary_id?: number | null | undefined;
932
937
  responsible_id?: number | null | undefined;
933
938
  tech_process_id?: number | null | undefined;
939
+ createdAt?: string | Date | undefined;
934
940
  equipment_id?: number | null | undefined;
935
941
  movement_object_id?: number | null | undefined;
936
942
  deliveries_id?: number | null | undefined;
@@ -1125,6 +1131,7 @@ export declare const RoleSchema: z.ZodObject<{
1125
1131
  inventary_id?: number | null | undefined;
1126
1132
  responsible_id?: number | null | undefined;
1127
1133
  tech_process_id?: number | null | undefined;
1134
+ createdAt?: string | Date | undefined;
1128
1135
  equipment_id?: number | null | undefined;
1129
1136
  movement_object_id?: number | null | undefined;
1130
1137
  deliveries_id?: number | null | undefined;
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export declare const setWarehouseReadinessDateSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ id: number;
7
+ date?: string | null | undefined;
8
+ }, {
9
+ id: number;
10
+ date?: string | null | undefined;
11
+ }>;
12
+ export type setWarehouseReadinessDateDto = z.infer<typeof setWarehouseReadinessDateSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setWarehouseReadinessDateSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.setWarehouseReadinessDateSchema = zod_1.z.object({
6
+ id: zod_1.z.number(),
7
+ date: zod_1.z.string().nullish()
8
+ });
@@ -2,7 +2,6 @@ import { z } from 'zod';
2
2
  export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
3
3
  count: z.ZodNumber;
4
4
  rows: z.ZodArray<z.ZodObject<{
5
- date_by_urgency: z.ZodUnion<[z.ZodString, z.ZodDate]>;
6
5
  date_shipments: z.ZodUnion<[z.ZodString, z.ZodDate]>;
7
6
  id: z.ZodNumber;
8
7
  number_order: z.ZodString;
@@ -100,7 +99,6 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
100
99
  id: number;
101
100
  number_order: string;
102
101
  date_shipments: string | Date;
103
- date_by_urgency: string | Date;
104
102
  product?: {
105
103
  id: number;
106
104
  name: string;
@@ -133,7 +131,6 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
133
131
  id: number;
134
132
  number_order: string;
135
133
  date_shipments: string | Date;
136
- date_by_urgency: string | Date;
137
134
  product?: {
138
135
  id: number;
139
136
  name: string;
@@ -169,7 +166,6 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
169
166
  id: number;
170
167
  number_order: string;
171
168
  date_shipments: string | Date;
172
- date_by_urgency: string | Date;
173
169
  product?: {
174
170
  id: number;
175
171
  name: string;
@@ -205,7 +201,6 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
205
201
  id: number;
206
202
  number_order: string;
207
203
  date_shipments: string | Date;
208
- date_by_urgency: string | Date;
209
204
  product?: {
210
205
  id: number;
211
206
  name: string;
@@ -15,7 +15,6 @@ export * from './dto/shipments-paginate.dto';
15
15
  export * from './dto/up-create-shipments.dto';
16
16
  export * from './types/increment-shipments-kolvo.type';
17
17
  export * from './types/update-shipments-by-product.type';
18
- export * from './dto/change-date-urgency.dto';
19
18
  export * from './dto/format-list-shipment.dto';
20
19
  export * from './interface/interface';
21
20
  export * from './dto/entity-filtering-by-shipment.dto';
@@ -31,7 +31,6 @@ __exportStar(require("./dto/shipments-paginate.dto"), exports);
31
31
  __exportStar(require("./dto/up-create-shipments.dto"), exports);
32
32
  __exportStar(require("./types/increment-shipments-kolvo.type"), exports);
33
33
  __exportStar(require("./types/update-shipments-by-product.type"), exports);
34
- __exportStar(require("./dto/change-date-urgency.dto"), exports);
35
34
  __exportStar(require("./dto/format-list-shipment.dto"), exports);
36
35
  __exportStar(require("./interface/interface"), exports);
37
36
  __exportStar(require("./dto/entity-filtering-by-shipment.dto"), exports);
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ShipmentListItem: z.ZodObject<{
3
- date_by_urgency: z.ZodUnion<[z.ZodString, z.ZodDate]>;
4
3
  date_shipments: z.ZodUnion<[z.ZodString, z.ZodDate]>;
5
4
  id: z.ZodNumber;
6
5
  number_order: z.ZodString;
@@ -98,7 +97,6 @@ export declare const ShipmentListItem: z.ZodObject<{
98
97
  id: number;
99
98
  number_order: string;
100
99
  date_shipments: string | Date;
101
- date_by_urgency: string | Date;
102
100
  product?: {
103
101
  id: number;
104
102
  name: string;
@@ -131,7 +129,6 @@ export declare const ShipmentListItem: z.ZodObject<{
131
129
  id: number;
132
130
  number_order: string;
133
131
  date_shipments: string | Date;
134
- date_by_urgency: string | Date;
135
132
  product?: {
136
133
  id: number;
137
134
  name: string;
@@ -5,7 +5,6 @@ const zod_1 = require("zod");
5
5
  const shipments_detal_schema_1 = require("./shipments-detal.schema");
6
6
  const shipments_cbed_schema_1 = require("./shipments-cbed.schema");
7
7
  exports.ShipmentListItem = zod_1.z.object({
8
- date_by_urgency: zod_1.z.union([zod_1.z.string(), zod_1.z.date()]),
9
8
  date_shipments: zod_1.z.union([zod_1.z.string(), zod_1.z.date()]),
10
9
  id: zod_1.z.number().int(),
11
10
  number_order: zod_1.z.string(),
@@ -16,7 +16,6 @@ export declare const ShipmentsSchema: z.ZodObject<{
16
16
  ban: z.ZodDefault<z.ZodBoolean>;
17
17
  date_order: z.ZodDate;
18
18
  date_shipments: z.ZodDate;
19
- date_by_urgency: z.ZodDate;
20
19
  number_order: z.ZodString;
21
20
  kol: z.ZodNumber;
22
21
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -75,7 +74,6 @@ export declare const ShipmentsSchema: z.ZodObject<{
75
74
  date_shipments: Date;
76
75
  productId: number;
77
76
  date_order: Date;
78
- date_by_urgency: Date;
79
77
  bron: boolean;
80
78
  is_custom_product: boolean;
81
79
  buyerId: number;
@@ -104,7 +102,6 @@ export declare const ShipmentsSchema: z.ZodObject<{
104
102
  date_shipments: Date;
105
103
  productId: number;
106
104
  date_order: Date;
107
- date_by_urgency: Date;
108
105
  buyerId: number;
109
106
  manager_id: number;
110
107
  status?: string | undefined;
@@ -9,7 +9,6 @@ exports.ShipmentsSchema = zod_1.z.object({
9
9
  ban: zod_1.z.boolean().default(false),
10
10
  date_order: zod_1.z.date(),
11
11
  date_shipments: zod_1.z.date(),
12
- date_by_urgency: zod_1.z.date(),
13
12
  number_order: zod_1.z.string(),
14
13
  kol: zod_1.z.number().int().nonnegative(),
15
14
  bron: zod_1.z.boolean().default(false),