@pksep/zod-shared 0.0.517 → 0.0.518

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 (31) hide show
  1. package/dist/action/dto/actions-by-param.dto.d.ts +0 -3
  2. package/dist/action/dto/actions-by-param.dto.js +0 -1
  3. package/dist/action/enums/enums.d.ts +6 -1
  4. package/dist/action/enums/enums.js +5 -0
  5. package/dist/action/schemas/actions.schema.d.ts +0 -3
  6. package/dist/action/schemas/actions.schema.js +1 -2
  7. package/dist/action/types/types.d.ts +0 -3
  8. package/dist/equipment/schemas/equipment.schema.d.ts +0 -5
  9. package/dist/moving/schemas/moving.schema.d.ts +0 -7
  10. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +0 -3
  11. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +0 -1
  12. package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +0 -3
  13. package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +0 -1
  14. package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +0 -3
  15. package/dist/production-tasks/dto/get-production-task-by-user.dto.js +0 -1
  16. package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +0 -9
  17. package/dist/production-tasks/dto/workload-by-entity.dto.js +1 -4
  18. package/dist/production-tasks/interfaces/production-tasks.d.ts +6 -11
  19. package/dist/role/schemas/role.schema.d.ts +0 -7
  20. package/dist/user/index.d.ts +2 -0
  21. package/dist/user/index.js +2 -0
  22. package/dist/user/schemas/user.schema.d.ts +0 -5
  23. package/dist/utils/date.methods.d.ts +0 -8
  24. package/dist/utils/date.methods.js +0 -13
  25. package/dist/utils/index.d.ts +3 -0
  26. package/dist/utils/index.js +3 -0
  27. package/dist/utils/tables-config/enum.d.ts +2 -1
  28. package/dist/utils/tables-config/enum.js +2 -0
  29. package/dist/utils/tables-config/tables-array.js +3 -0
  30. package/dist/utils/types/types.d.ts +0 -2
  31. package/package.json +1 -1
@@ -6,7 +6,6 @@ export declare const ActionsByParamDtoZod: z.ZodObject<{
6
6
  searchString: z.ZodOptional<z.ZodString>;
7
7
  typeObject: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof ActionEntityTypes>>>;
8
8
  idObject: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
9
- relativeActionType: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ActionEntityTypes>>>>;
10
9
  operationId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
11
10
  rangeDate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
11
  start: z.ZodAny;
@@ -20,7 +19,6 @@ export declare const ActionsByParamDtoZod: z.ZodObject<{
20
19
  }>>>;
21
20
  }, "strip", z.ZodTypeAny, {
22
21
  typeObject: ActionEntityTypes | null;
23
- relativeActionType: ActionEntityTypes | null;
24
22
  operationId?: number | null | undefined;
25
23
  searchString?: string | undefined;
26
24
  responsibleId?: number[] | undefined;
@@ -37,7 +35,6 @@ export declare const ActionsByParamDtoZod: z.ZodObject<{
37
35
  offset?: number | undefined;
38
36
  typeObject?: ActionEntityTypes | null | undefined;
39
37
  idObject?: number | null | undefined;
40
- relativeActionType?: ActionEntityTypes | null | undefined;
41
38
  rangeDate?: {
42
39
  start?: any;
43
40
  end?: any;
@@ -9,7 +9,6 @@ exports.ActionsByParamDtoZod = zod_1.z.object({
9
9
  searchString: zod_1.z.string().optional(),
10
10
  typeObject: zod_1.z.nativeEnum(enums_1.ActionEntityTypes).nullable().default(null),
11
11
  idObject: zod_1.z.number().optional().nullable(),
12
- relativeActionType: zod_1.z.nativeEnum(enums_1.ActionEntityTypes).nullish().default(null),
13
12
  operationId: zod_1.z.number().optional().nullable(),
14
13
  rangeDate: zod_1.z
15
14
  .object({
@@ -34,7 +34,8 @@ export declare enum ActionEntityTypes {
34
34
  contact = "contact",
35
35
  company = "company",
36
36
  revision = "revision",
37
- thread_entity = "thread_entity"
37
+ thread_entity = "thread_entity",
38
+ user_table_config = "user_table_config"
38
39
  }
39
40
  /**
40
41
  * enum для обращения к моделям в бд
@@ -180,4 +181,8 @@ export declare const ActionEntityTypesDB: {
180
181
  readonly name: "thread_entity";
181
182
  readonly attributes: readonly ["id"];
182
183
  };
184
+ readonly user_table_config: {
185
+ readonly name: "user_table_configs";
186
+ readonly attributes: readonly ["id"];
187
+ };
183
188
  };
@@ -39,6 +39,7 @@ var ActionEntityTypes;
39
39
  ActionEntityTypes["company"] = "company";
40
40
  ActionEntityTypes["revision"] = "revision";
41
41
  ActionEntityTypes["thread_entity"] = "thread_entity";
42
+ ActionEntityTypes["user_table_config"] = "user_table_config";
42
43
  })(ActionEntityTypes || (exports.ActionEntityTypes = ActionEntityTypes = {}));
43
44
  /**
44
45
  * enum для обращения к моделям в бд
@@ -126,5 +127,9 @@ exports.ActionEntityTypesDB = {
126
127
  [ActionEntityTypes.thread_entity]: {
127
128
  name: 'thread_entity',
128
129
  attributes: ['id']
130
+ },
131
+ [ActionEntityTypes.user_table_config]: {
132
+ name: 'user_table_configs',
133
+ attributes: ['id']
129
134
  }
130
135
  };
@@ -57,7 +57,6 @@ export declare const ActionsSchema: z.ZodObject<{
57
57
  role_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
58
  parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
59
  production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
61
60
  }, "strip", z.ZodTypeAny, {
62
61
  ban: boolean;
63
62
  action: IActionText[];
@@ -72,7 +71,6 @@ export declare const ActionsSchema: z.ZodObject<{
72
71
  inventary_id?: number | null | undefined;
73
72
  responsible_id?: number | null | undefined;
74
73
  tech_process_id?: number | null | undefined;
75
- createdAt?: string | Date | undefined;
76
74
  equipment_id?: number | null | undefined;
77
75
  movement_object_id?: number | null | undefined;
78
76
  deliveries_id?: number | null | undefined;
@@ -107,7 +105,6 @@ export declare const ActionsSchema: z.ZodObject<{
107
105
  inventary_id?: number | null | undefined;
108
106
  responsible_id?: number | null | undefined;
109
107
  tech_process_id?: number | null | undefined;
110
- createdAt?: string | Date | undefined;
111
108
  equipment_id?: number | null | undefined;
112
109
  movement_object_id?: number | null | undefined;
113
110
  deliveries_id?: number | null | undefined;
@@ -35,6 +35,5 @@ exports.ActionsSchema = zod_1.z.object({
35
35
  mark_id: zod_1.z.number().nullish(),
36
36
  role_id: zod_1.z.number().nullish(),
37
37
  parent_action_idL: zod_1.z.number().nullable().optional(),
38
- production_task_id: zod_1.z.number().nullish(),
39
- createdAt: zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).optional()
38
+ production_task_id: zod_1.z.number().nullish()
40
39
  });
@@ -1,7 +1,4 @@
1
1
  import { ModelActions } from '../schemas/actions.schema';
2
2
  export type ActionWithParsedTextType = ModelActions & {
3
3
  parsedActionsText: string[];
4
- nameEntity: string | undefined | null;
5
- relatedEntityName: string | undefined | null;
6
- entityId: number | undefined | null;
7
4
  };
@@ -356,7 +356,6 @@ 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]>>;
360
359
  }, "strip", z.ZodTypeAny, {
361
360
  ban: boolean;
362
361
  action: import("../../action").IActionText[];
@@ -371,7 +370,6 @@ export declare const EquipmentSchema: z.ZodObject<{
371
370
  inventary_id?: number | null | undefined;
372
371
  responsible_id?: number | null | undefined;
373
372
  tech_process_id?: number | null | undefined;
374
- createdAt?: string | Date | undefined;
375
373
  equipment_id?: number | null | undefined;
376
374
  movement_object_id?: number | null | undefined;
377
375
  deliveries_id?: number | null | undefined;
@@ -406,7 +404,6 @@ export declare const EquipmentSchema: z.ZodObject<{
406
404
  inventary_id?: number | null | undefined;
407
405
  responsible_id?: number | null | undefined;
408
406
  tech_process_id?: number | null | undefined;
409
- createdAt?: string | Date | undefined;
410
407
  equipment_id?: number | null | undefined;
411
408
  movement_object_id?: number | null | undefined;
412
409
  deliveries_id?: number | null | undefined;
@@ -548,7 +545,6 @@ export declare const EquipmentSchema: z.ZodObject<{
548
545
  inventary_id?: number | null | undefined;
549
546
  responsible_id?: number | null | undefined;
550
547
  tech_process_id?: number | null | undefined;
551
- createdAt?: string | Date | undefined;
552
548
  equipment_id?: number | null | undefined;
553
549
  movement_object_id?: number | null | undefined;
554
550
  deliveries_id?: number | null | undefined;
@@ -690,7 +686,6 @@ export declare const EquipmentSchema: z.ZodObject<{
690
686
  inventary_id?: number | null | undefined;
691
687
  responsible_id?: number | null | undefined;
692
688
  tech_process_id?: number | null | undefined;
693
- createdAt?: string | Date | undefined;
694
689
  equipment_id?: number | null | undefined;
695
690
  movement_object_id?: number | null | undefined;
696
691
  deliveries_id?: number | null | undefined;
@@ -293,7 +293,6 @@ 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]>>;
297
296
  }, "strip", z.ZodTypeAny, {
298
297
  ban: boolean;
299
298
  action: import("../..").IActionText[];
@@ -308,7 +307,6 @@ export declare const MovingSchema: z.ZodObject<{
308
307
  inventary_id?: number | null | undefined;
309
308
  responsible_id?: number | null | undefined;
310
309
  tech_process_id?: number | null | undefined;
311
- createdAt?: string | Date | undefined;
312
310
  equipment_id?: number | null | undefined;
313
311
  movement_object_id?: number | null | undefined;
314
312
  deliveries_id?: number | null | undefined;
@@ -343,7 +341,6 @@ export declare const MovingSchema: z.ZodObject<{
343
341
  inventary_id?: number | null | undefined;
344
342
  responsible_id?: number | null | undefined;
345
343
  tech_process_id?: number | null | undefined;
346
- createdAt?: string | Date | undefined;
347
344
  equipment_id?: number | null | undefined;
348
345
  movement_object_id?: number | null | undefined;
349
346
  deliveries_id?: number | null | undefined;
@@ -552,7 +549,6 @@ export declare const MovingSchema: z.ZodObject<{
552
549
  inventary_id?: number | null | undefined;
553
550
  responsible_id?: number | null | undefined;
554
551
  tech_process_id?: number | null | undefined;
555
- createdAt?: string | Date | undefined;
556
552
  equipment_id?: number | null | undefined;
557
553
  movement_object_id?: number | null | undefined;
558
554
  deliveries_id?: number | null | undefined;
@@ -742,7 +738,6 @@ export declare const MovingSchema: z.ZodObject<{
742
738
  inventary_id?: number | null | undefined;
743
739
  responsible_id?: number | null | undefined;
744
740
  tech_process_id?: number | null | undefined;
745
- createdAt?: string | Date | undefined;
746
741
  equipment_id?: number | null | undefined;
747
742
  movement_object_id?: number | null | undefined;
748
743
  deliveries_id?: number | null | undefined;
@@ -993,7 +988,6 @@ export declare const MovingSchema: z.ZodObject<{
993
988
  inventary_id?: number | null | undefined;
994
989
  responsible_id?: number | null | undefined;
995
990
  tech_process_id?: number | null | undefined;
996
- createdAt?: string | Date | undefined;
997
991
  equipment_id?: number | null | undefined;
998
992
  movement_object_id?: number | null | undefined;
999
993
  deliveries_id?: number | null | undefined;
@@ -1206,7 +1200,6 @@ export declare const MovingSchema: z.ZodObject<{
1206
1200
  inventary_id?: number | null | undefined;
1207
1201
  responsible_id?: number | null | undefined;
1208
1202
  tech_process_id?: number | null | undefined;
1209
- createdAt?: string | Date | undefined;
1210
1203
  equipment_id?: number | null | undefined;
1211
1204
  movement_object_id?: number | null | undefined;
1212
1205
  deliveries_id?: number | null | undefined;
@@ -1,7 +1,6 @@
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>;
5
4
  taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
5
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7
6
  start: z.ZodAny;
@@ -16,7 +15,6 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
16
15
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
17
16
  }, "strip", z.ZodTypeAny, {
18
17
  equipmentId: number;
19
- searchString?: string | undefined;
20
18
  range?: {
21
19
  start?: any;
22
20
  end?: any;
@@ -25,7 +23,6 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
25
23
  onlyTOperation?: number | undefined;
26
24
  }, {
27
25
  equipmentId: number;
28
- searchString?: string | undefined;
29
26
  range?: {
30
27
  start?: any;
31
28
  end?: any;
@@ -4,7 +4,6 @@ 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(),
8
7
  taskId: zod_1.z.number().int().nullish(),
9
8
  range: zod_1.z
10
9
  .object({
@@ -2,7 +2,6 @@ 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>;
6
5
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
7
6
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
8
7
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -20,7 +19,6 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
20
19
  }, "strip", z.ZodTypeAny, {
21
20
  equipmentIds: number[] | null;
22
21
  operationTypeId: number;
23
- searchString?: string | undefined;
24
22
  range?: {
25
23
  start?: any;
26
24
  end?: any;
@@ -31,7 +29,6 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
31
29
  }, {
32
30
  operationTypeId: number;
33
31
  equipmentIds?: number[] | null | undefined;
34
- searchString?: string | undefined;
35
32
  range?: {
36
33
  start?: any;
37
34
  end?: any;
@@ -5,7 +5,6 @@ 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(),
9
8
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
10
9
  onlyTOperation: zod_1.z.number().int().optional(),
11
10
  range: zod_1.z
@@ -1,7 +1,6 @@
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>;
5
4
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
6
5
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
7
6
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -16,7 +15,6 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
16
15
  }>>>;
17
16
  }, "strip", z.ZodTypeAny, {
18
17
  userId: number;
19
- searchString?: string | undefined;
20
18
  range?: {
21
19
  start?: any;
22
20
  end?: any;
@@ -25,7 +23,6 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
25
23
  onlyTOperation?: number | undefined;
26
24
  }, {
27
25
  userId: number;
28
- searchString?: string | undefined;
29
26
  range?: {
30
27
  start?: any;
31
28
  end?: any;
@@ -4,7 +4,6 @@ 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(),
8
7
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
9
8
  onlyTOperation: zod_1.z.number().int().optional(),
10
9
  range: zod_1.z
@@ -12,26 +12,17 @@ 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>>;
18
15
  }, "strip", z.ZodTypeAny, {
19
16
  range: {
20
17
  start: string;
21
18
  end: string;
22
19
  };
23
20
  entityType: StockOrderType;
24
- userId?: number | null | undefined;
25
- equipmentId?: number | null | undefined;
26
- typeOperationId?: number | null | undefined;
27
21
  }, {
28
22
  range: {
29
23
  start: string;
30
24
  end: string;
31
25
  };
32
26
  entityType: StockOrderType;
33
- userId?: number | null | undefined;
34
- equipmentId?: number | null | undefined;
35
- typeOperationId?: number | null | undefined;
36
27
  }>;
37
28
  export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
@@ -8,8 +8,5 @@ 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
- }),
12
- userId: zod_1.z.number().nullish(),
13
- equipmentId: zod_1.z.number().nullish(),
14
- typeOperationId: zod_1.z.number().nullish()
11
+ })
15
12
  });
@@ -1,6 +1,6 @@
1
1
  import { ModelTechProcess } from '../../tech-process';
2
2
  import { ModelUser } from '../../user';
3
- import { EntityCommonSpecificationArray, IzdType, Neo4jEntityTypes, ProductionTimeType, StockOrderType } from '../../utils';
3
+ import { EntityCommonSpecificationArray, IzdType, 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';
@@ -189,15 +189,6 @@ export interface IGetDeficitsDetalByProductionTask {
189
189
  deficitByDetal: number;
190
190
  relativesIds: IRelativeIds;
191
191
  }
192
- export interface IGetActualTaskRelative {
193
- entityId: number;
194
- entityType: Neo4jEntityTypes;
195
- range?: {
196
- start: any;
197
- end: any;
198
- };
199
- transaction?: any;
200
- }
201
192
  export interface IActualOperationPos {
202
193
  userId: number;
203
194
  indexStartFrom?: number | null;
@@ -342,9 +333,13 @@ export interface IUnicalUsers extends IUnicalEntity {
342
333
  tabel?: string;
343
334
  }
344
335
  export interface IWorkloadByEntityResponse {
336
+ operationName: string;
337
+ typeOperationId: number | string;
338
+ workloadData: IWorkloadData[];
339
+ }
340
+ export interface IWorkloadData {
345
341
  responsibleInfo: any;
346
342
  positionsByDate: IWorkloadPositionByDate[];
347
- debt?: boolean;
348
343
  }
349
344
  export interface IWorkloadPositionSchema {
350
345
  normHours: number;
@@ -289,7 +289,6 @@ 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]>>;
293
292
  }, "strip", z.ZodTypeAny, {
294
293
  ban: boolean;
295
294
  action: import("../..").IActionText[];
@@ -304,7 +303,6 @@ export declare const RoleSchema: z.ZodObject<{
304
303
  inventary_id?: number | null | undefined;
305
304
  responsible_id?: number | null | undefined;
306
305
  tech_process_id?: number | null | undefined;
307
- createdAt?: string | Date | undefined;
308
306
  equipment_id?: number | null | undefined;
309
307
  movement_object_id?: number | null | undefined;
310
308
  deliveries_id?: number | null | undefined;
@@ -339,7 +337,6 @@ export declare const RoleSchema: z.ZodObject<{
339
337
  inventary_id?: number | null | undefined;
340
338
  responsible_id?: number | null | undefined;
341
339
  tech_process_id?: number | null | undefined;
342
- createdAt?: string | Date | undefined;
343
340
  equipment_id?: number | null | undefined;
344
341
  movement_object_id?: number | null | undefined;
345
342
  deliveries_id?: number | null | undefined;
@@ -548,7 +545,6 @@ export declare const RoleSchema: z.ZodObject<{
548
545
  inventary_id?: number | null | undefined;
549
546
  responsible_id?: number | null | undefined;
550
547
  tech_process_id?: number | null | undefined;
551
- createdAt?: string | Date | undefined;
552
548
  equipment_id?: number | null | undefined;
553
549
  movement_object_id?: number | null | undefined;
554
550
  deliveries_id?: number | null | undefined;
@@ -738,7 +734,6 @@ export declare const RoleSchema: z.ZodObject<{
738
734
  inventary_id?: number | null | undefined;
739
735
  responsible_id?: number | null | undefined;
740
736
  tech_process_id?: number | null | undefined;
741
- createdAt?: string | Date | undefined;
742
737
  equipment_id?: number | null | undefined;
743
738
  movement_object_id?: number | null | undefined;
744
739
  deliveries_id?: number | null | undefined;
@@ -936,7 +931,6 @@ export declare const RoleSchema: z.ZodObject<{
936
931
  inventary_id?: number | null | undefined;
937
932
  responsible_id?: number | null | undefined;
938
933
  tech_process_id?: number | null | undefined;
939
- createdAt?: string | Date | undefined;
940
934
  equipment_id?: number | null | undefined;
941
935
  movement_object_id?: number | null | undefined;
942
936
  deliveries_id?: number | null | undefined;
@@ -1131,7 +1125,6 @@ export declare const RoleSchema: z.ZodObject<{
1131
1125
  inventary_id?: number | null | undefined;
1132
1126
  responsible_id?: number | null | undefined;
1133
1127
  tech_process_id?: number | null | undefined;
1134
- createdAt?: string | Date | undefined;
1135
1128
  equipment_id?: number | null | undefined;
1136
1129
  movement_object_id?: number | null | undefined;
1137
1130
  deliveries_id?: number | null | undefined;
@@ -8,3 +8,5 @@ export * from './dto/tabel-unique.dto';
8
8
  export * from './default-value/model';
9
9
  export * from './dto/auth-user.dto';
10
10
  export * from './enums';
11
+ export * from './schemas/user-table-config.schema';
12
+ export * from './dto/update-user-table-config.dto';
@@ -24,3 +24,5 @@ __exportStar(require("./dto/tabel-unique.dto"), exports);
24
24
  __exportStar(require("./default-value/model"), exports);
25
25
  __exportStar(require("./dto/auth-user.dto"), exports);
26
26
  __exportStar(require("./enums"), exports);
27
+ __exportStar(require("./schemas/user-table-config.schema"), exports);
28
+ __exportStar(require("./dto/update-user-table-config.dto"), exports);
@@ -287,7 +287,6 @@ export declare const UserSchema: z.ZodObject<{
287
287
  role_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
288
288
  parent_action_idL: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
289
289
  production_task_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
290
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
291
290
  }, "strip", z.ZodTypeAny, {
292
291
  ban: boolean;
293
292
  action: import("../..").IActionText[];
@@ -302,7 +301,6 @@ export declare const UserSchema: z.ZodObject<{
302
301
  inventary_id?: number | null | undefined;
303
302
  responsible_id?: number | null | undefined;
304
303
  tech_process_id?: number | null | undefined;
305
- createdAt?: string | Date | undefined;
306
304
  equipment_id?: number | null | undefined;
307
305
  movement_object_id?: number | null | undefined;
308
306
  deliveries_id?: number | null | undefined;
@@ -337,7 +335,6 @@ export declare const UserSchema: z.ZodObject<{
337
335
  inventary_id?: number | null | undefined;
338
336
  responsible_id?: number | null | undefined;
339
337
  tech_process_id?: number | null | undefined;
340
- createdAt?: string | Date | undefined;
341
338
  equipment_id?: number | null | undefined;
342
339
  movement_object_id?: number | null | undefined;
343
340
  deliveries_id?: number | null | undefined;
@@ -546,7 +543,6 @@ export declare const UserSchema: z.ZodObject<{
546
543
  inventary_id?: number | null | undefined;
547
544
  responsible_id?: number | null | undefined;
548
545
  tech_process_id?: number | null | undefined;
549
- createdAt?: string | Date | undefined;
550
546
  equipment_id?: number | null | undefined;
551
547
  movement_object_id?: number | null | undefined;
552
548
  deliveries_id?: number | null | undefined;
@@ -736,7 +732,6 @@ export declare const UserSchema: z.ZodObject<{
736
732
  inventary_id?: number | null | undefined;
737
733
  responsible_id?: number | null | undefined;
738
734
  tech_process_id?: number | null | undefined;
739
- createdAt?: string | Date | undefined;
740
735
  equipment_id?: number | null | undefined;
741
736
  movement_object_id?: number | null | undefined;
742
737
  deliveries_id?: number | null | undefined;
@@ -21,14 +21,6 @@ export declare class DateMethods {
21
21
  * @returns
22
22
  */
23
23
  comparison: (one_date?: string, two_date?: string, operation?: string) => boolean;
24
- /**
25
- * Выссчитываем дельту двух дат.
26
- * Результат возвращается в минутах
27
- * @param calculatedCreateTime
28
- * @param planReadyTime
29
- * @returns
30
- */
31
- calculateDeltaTime: (calculatedCreateTime: Date, planReadyTime: Date) => number;
32
24
  /**
33
25
  * Функция возвращает текущее время в UTC формате
34
26
  * @param config
@@ -47,19 +47,6 @@ class DateMethods {
47
47
  }
48
48
  return result;
49
49
  };
50
- /**
51
- * Выссчитываем дельту двух дат.
52
- * Результат возвращается в минутах
53
- * @param calculatedCreateTime
54
- * @param planReadyTime
55
- * @returns
56
- */
57
- this.calculateDeltaTime = (calculatedCreateTime, planReadyTime) => {
58
- const calculateDate = new Date(calculatedCreateTime);
59
- const planReadyDate = new Date(planReadyTime);
60
- const diffInMs = planReadyDate.getTime() - calculateDate.getTime();
61
- return Math.round(diffInMs / (1000 * 60));
62
- };
63
50
  /**
64
51
  * Функция возвращает текущее время в UTC формате
65
52
  * @param config
@@ -24,3 +24,6 @@ export * from './interfaces';
24
24
  export * from './methods/utils';
25
25
  export * from './promise-pool';
26
26
  export * from './default-value/default-value';
27
+ export * from './tables-config/enum';
28
+ export * from './tables-config/methods';
29
+ export * from './tables-config/tables-array';
@@ -40,3 +40,6 @@ __exportStar(require("./interfaces"), exports);
40
40
  __exportStar(require("./methods/utils"), exports);
41
41
  __exportStar(require("./promise-pool"), exports);
42
42
  __exportStar(require("./default-value/default-value"), exports);
43
+ __exportStar(require("./tables-config/enum"), exports);
44
+ __exportStar(require("./tables-config/methods"), exports);
45
+ __exportStar(require("./tables-config/tables-array"), exports);
@@ -38,5 +38,6 @@ export declare enum tablesEnumConfig {
38
38
  nextOperation = "nextOperation",
39
39
  readyToComplect = "readyToComplect",
40
40
  readyInProcent = "readyInProcent",
41
- readyToAssembleQuantity = "readyToAssembleQuantity"
41
+ readyToAssembleQuantity = "readyToAssembleQuantity",
42
+ deltaTime = "deltaTime"
42
43
  }
@@ -78,4 +78,6 @@ var tablesEnumConfig;
78
78
  tablesEnumConfig["readyInProcent"] = "readyInProcent";
79
79
  // Готовность к сборке
80
80
  tablesEnumConfig["readyToAssembleQuantity"] = "readyToAssembleQuantity";
81
+ // Дельта по времени
82
+ tablesEnumConfig["deltaTime"] = "deltaTime";
81
83
  })(tablesEnumConfig || (exports.tablesEnumConfig = tablesEnumConfig = {}));
@@ -122,6 +122,7 @@ exports.productionTaskByUserTableConfig = [
122
122
  enum_1.tablesEnumConfig.startTime,
123
123
  enum_1.tablesEnumConfig.calculatedCreateTime,
124
124
  enum_1.tablesEnumConfig.calculateNeedsTime,
125
+ enum_1.tablesEnumConfig.deltaTime,
125
126
  enum_1.tablesEnumConfig.orderedByProduction,
126
127
  enum_1.tablesEnumConfig.remainingByProductionTask,
127
128
  enum_1.tablesEnumConfig.timeToProduction,
@@ -149,6 +150,7 @@ exports.productionTaskByOperationTableConfig = [
149
150
  enum_1.tablesEnumConfig.calculatedCreateTime,
150
151
  enum_1.tablesEnumConfig.calculateNeedsTime,
151
152
  enum_1.tablesEnumConfig.calculateAssembleTime,
153
+ enum_1.tablesEnumConfig.deltaTime,
152
154
  enum_1.tablesEnumConfig.orderedByProduction,
153
155
  enum_1.tablesEnumConfig.remainingByProductionTask,
154
156
  enum_1.tablesEnumConfig.timeToProduction,
@@ -176,6 +178,7 @@ exports.productionTaskByEquipmentTableConfig = [
176
178
  enum_1.tablesEnumConfig.calculatedCreateTime,
177
179
  enum_1.tablesEnumConfig.calculateNeedsTime,
178
180
  enum_1.tablesEnumConfig.calculateAssembleTime,
181
+ enum_1.tablesEnumConfig.deltaTime,
179
182
  enum_1.tablesEnumConfig.orderedByProduction,
180
183
  enum_1.tablesEnumConfig.remainingByProductionTask,
181
184
  enum_1.tablesEnumConfig.timeToProduction,
@@ -26,8 +26,6 @@ export type RelativesProductionTasksType = {
26
26
  dueData: Date;
27
27
  relativeName: string;
28
28
  relativeDesignation: string;
29
- equipmentId: number | null;
30
- userId: number | null;
31
29
  relativeAttention: boolean;
32
30
  relativeDiscontinued: boolean;
33
31
  relativeDescription: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pksep/zod-shared",
3
- "version": "0.0.517",
3
+ "version": "0.0.518",
4
4
  "description": "Zod package for erp project. Contains dto, interfaces, schems, types, enum",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",