@pksep/zod-shared 0.0.505 → 0.0.506

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 (93) hide show
  1. package/dist/assemble/dto/assembly-paginate.dto.d.ts +8 -13
  2. package/dist/assemble/dto/assembly-paginate.dto.js +2 -4
  3. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +7 -7
  4. package/dist/assemble/dto/get-assemble-operation-pagination.dto.d.ts +8 -28
  5. package/dist/assemble/dto/get-assemble-operation-pagination.dto.js +2 -13
  6. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +7 -31
  7. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -15
  8. package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +11 -28
  9. package/dist/assemble/dto/get-assemble-pagination.dto.js +3 -13
  10. package/dist/assemble/schemas/assemble-coming.schema.d.ts +5 -5
  11. package/dist/assemble/schemas/assemble.schema.d.ts +5 -5
  12. package/dist/company/dto/companies-pagination.dto.d.ts +4 -4
  13. package/dist/company/dto/create-company.dto.d.ts +2 -2
  14. package/dist/company/dto/update-company.dto.d.ts +2 -2
  15. package/dist/equipment/dto/create-equipment.dto.d.ts +3 -3
  16. package/dist/equipment/dto/create-equipment.dto.js +1 -1
  17. package/dist/equipment/dto/get-instruments-pagination.dto.d.ts +8 -5
  18. package/dist/equipment/dto/get-instruments-pagination.dto.js +6 -5
  19. package/dist/equipment/dto/update-equipment.dto.d.ts +3 -3
  20. package/dist/equipment/dto/update-equipment.dto.js +9 -1
  21. package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
  22. package/dist/issue/dto/up-create-issue.dto.js +21 -0
  23. package/dist/issue/index.d.ts +5 -0
  24. package/dist/issue/index.js +21 -0
  25. package/dist/issue/interfaces/interface.d.ts +4 -0
  26. package/dist/issue/interfaces/interface.js +2 -0
  27. package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
  28. package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
  29. package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
  30. package/dist/issue/schemas/issue-user.schema.js +9 -0
  31. package/dist/issue/schemas/issue.schema.d.ts +51 -0
  32. package/dist/issue/schemas/issue.schema.js +21 -0
  33. package/dist/library/dto/create-chapter.dto.d.ts +12 -0
  34. package/dist/library/dto/create-chapter.dto.js +8 -0
  35. package/dist/library/dto/create-link.dto.d.ts +30 -0
  36. package/dist/library/dto/create-link.dto.js +14 -0
  37. package/dist/library/index.d.ts +5 -0
  38. package/dist/library/index.js +21 -0
  39. package/dist/library/interfaces/interface.d.ts +3 -0
  40. package/dist/library/interfaces/interface.js +2 -0
  41. package/dist/library/schemas/links-user.schema.d.ts +15 -0
  42. package/dist/library/schemas/links-user.schema.js +9 -0
  43. package/dist/library/schemas/links.schema.d.ts +30 -0
  44. package/dist/library/schemas/links.schema.js +14 -0
  45. package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.d.ts +8 -25
  46. package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.js +2 -6
  47. package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +7 -25
  48. package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -9
  49. package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +6 -27
  50. package/dist/movement-object/schemas/get-one-object-history.schema.js +1 -7
  51. package/dist/operations/dto/create-type-operation.dto.d.ts +3 -0
  52. package/dist/operations/dto/create-type-operation.dto.js +1 -0
  53. package/dist/operations/dto/update-type-operation.dto.d.ts +3 -0
  54. package/dist/operations/dto/update-type-operation.dto.js +1 -0
  55. package/dist/operations/index.d.ts +1 -0
  56. package/dist/operations/index.js +1 -0
  57. package/dist/operations/schemas/type-oper-equipment.schema.d.ts +15 -0
  58. package/dist/operations/schemas/type-oper-equipment.schema.js +9 -0
  59. package/dist/production-tasks/dto/get-by-users.dto.d.ts +3 -4
  60. package/dist/production-tasks/dto/get-by-users.dto.js +1 -2
  61. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +5 -2
  62. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +1 -0
  63. package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +19 -0
  64. package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +11 -0
  65. package/dist/production-tasks/dto/get-production-task.dto.d.ts +3 -4
  66. package/dist/production-tasks/dto/get-production-task.dto.js +1 -2
  67. package/dist/production-tasks/dto/online-board-working.dto.d.ts +4 -4
  68. package/dist/production-tasks/dto/plan-production-task.dto.d.ts +7 -6
  69. package/dist/production-tasks/dto/plan-production-task.dto.js +4 -1
  70. package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +12 -0
  71. package/dist/production-tasks/dto/set-start-time-detal.dto.js +8 -0
  72. package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
  73. package/dist/production-tasks/dto/update-marks.dto.js +8 -0
  74. package/dist/production-tasks/enums/production-tasks.d.ts +5 -1
  75. package/dist/production-tasks/enums/production-tasks.js +7 -2
  76. package/dist/production-tasks/index.d.ts +3 -1
  77. package/dist/production-tasks/index.js +3 -1
  78. package/dist/production-tasks/interfaces/production-tasks.d.ts +32 -1
  79. package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
  80. package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
  81. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +0 -4
  82. package/dist/production-tasks/schemas/production-operation-pos.schema.js +0 -4
  83. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +16 -0
  84. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +8 -0
  85. package/dist/production-tasks/schemas/production-task.schema.d.ts +3 -4
  86. package/dist/production-tasks/schemas/production-task.schema.js +1 -4
  87. package/dist/shipments/dto/entity-filtering-by-shipment.dto.d.ts +3 -0
  88. package/dist/shipments/dto/entity-filtering-by-shipment.dto.js +1 -0
  89. package/dist/utils/default-value/default-value.d.ts +7 -0
  90. package/dist/utils/default-value/default-value.js +11 -1
  91. package/dist/utils/interface/mat.interface.d.ts +10 -0
  92. package/dist/utils/interface/mat.interface.js +2 -0
  93. package/package.json +1 -1
@@ -1,31 +1,26 @@
1
1
  import { z } from 'zod';
2
- import { ByParenType, ByShipmentsType, ByWorkersType, IzdType } from '../../utils';
2
+ import { IzdType } from '../../utils';
3
+ import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
4
  export declare const AssemblyPaginateDtoZod: z.ZodObject<{
4
5
  type: z.ZodEnum<[IzdType.product, IzdType.cbed]>;
5
6
  page: z.ZodOptional<z.ZodNumber>;
6
- shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
7
7
  searchString: z.ZodDefault<z.ZodString>;
8
- byParent: z.ZodOptional<z.ZodNullable<z.ZodType<ByParenType, z.ZodTypeDef, ByParenType>>>;
9
- byShipments: z.ZodOptional<z.ZodNullable<z.ZodType<ByShipmentsType, z.ZodTypeDef, ByShipmentsType>>>;
10
- byWorkers: z.ZodOptional<z.ZodNullable<z.ZodType<ByWorkersType, z.ZodTypeDef, ByWorkersType>>>;
8
+ byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
9
+ byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
11
10
  isShowDeactivate: z.ZodBoolean;
12
11
  }, "strip", z.ZodTypeAny, {
13
12
  type: IzdType.product | IzdType.cbed;
14
13
  searchString: string;
15
14
  isShowDeactivate: boolean;
16
15
  page?: number | undefined;
17
- shipmentIds?: number[] | null | undefined;
18
- byParent?: ByParenType | null | undefined;
19
- byShipments?: ByShipmentsType | null | undefined;
20
- byWorkers?: ByWorkersType | null | undefined;
16
+ byParents?: IFiltersByParents | null | undefined;
17
+ byOrder?: IFiltersByByOrder | null | undefined;
21
18
  }, {
22
19
  type: IzdType.product | IzdType.cbed;
23
20
  isShowDeactivate: boolean;
24
21
  page?: number | undefined;
25
22
  searchString?: string | undefined;
26
- shipmentIds?: number[] | null | undefined;
27
- byParent?: ByParenType | null | undefined;
28
- byShipments?: ByShipmentsType | null | undefined;
29
- byWorkers?: ByWorkersType | null | undefined;
23
+ byParents?: IFiltersByParents | null | undefined;
24
+ byOrder?: IFiltersByByOrder | null | undefined;
30
25
  }>;
31
26
  export type AssemblyPaginateDtoZodType = z.infer<typeof AssemblyPaginateDtoZod>;
@@ -7,10 +7,8 @@ const IzdTypeEnum = zod_1.z.enum([utils_1.IzdType.product, utils_1.IzdType.cbed]
7
7
  exports.AssemblyPaginateDtoZod = zod_1.z.object({
8
8
  type: IzdTypeEnum,
9
9
  page: zod_1.z.number().int().optional(),
10
- shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
11
10
  searchString: zod_1.z.string().default(''),
12
- byParent: zod_1.z.custom().nullable().optional(),
13
- byShipments: zod_1.z.custom().nullable().optional(),
14
- byWorkers: zod_1.z.custom().nullable().optional(),
11
+ byParents: zod_1.z.custom().nullable().optional(),
12
+ byOrder: zod_1.z.custom().nullable().optional(),
15
13
  isShowDeactivate: zod_1.z.boolean()
16
14
  });
@@ -726,10 +726,10 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
726
726
  due_data: z.ZodDate;
727
727
  working_type: z.ZodNativeEnum<typeof import("../..").StockOrderType>;
728
728
  description: z.ZodOptional<z.ZodString>;
729
- status: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").StatusProductionTaskEnum>>;
729
+ ban: z.ZodDefault<z.ZodBoolean>;
730
730
  details_filters: z.ZodType<import("../..").IDescriptionFilters, z.ZodTypeDef, import("../..").IDescriptionFilters>;
731
731
  }, "strip", z.ZodTypeAny, {
732
- status: import("../..").StatusProductionTaskEnum;
732
+ ban: boolean;
733
733
  due_data: Date;
734
734
  working_type: import("../..").StockOrderType;
735
735
  details_filters: import("../..").IDescriptionFilters;
@@ -739,7 +739,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
739
739
  due_data: Date;
740
740
  working_type: import("../..").StockOrderType;
741
741
  details_filters: import("../..").IDescriptionFilters;
742
- status?: import("../..").StatusProductionTaskEnum | undefined;
742
+ ban?: boolean | undefined;
743
743
  description?: string | undefined;
744
744
  id?: number | null | undefined;
745
745
  }>, "many">>>>;
@@ -864,7 +864,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
864
864
  parent_id?: number | null | undefined;
865
865
  } | null | undefined;
866
866
  production_task?: {
867
- status: import("../..").StatusProductionTaskEnum;
867
+ ban: boolean;
868
868
  due_data: Date;
869
869
  working_type: import("../..").StockOrderType;
870
870
  details_filters: import("../..").IDescriptionFilters;
@@ -1046,7 +1046,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1046
1046
  due_data: Date;
1047
1047
  working_type: import("../..").StockOrderType;
1048
1048
  details_filters: import("../..").IDescriptionFilters;
1049
- status?: import("../..").StatusProductionTaskEnum | undefined;
1049
+ ban?: boolean | undefined;
1050
1050
  description?: string | undefined;
1051
1051
  id?: number | null | undefined;
1052
1052
  }[] | null | undefined;
@@ -1229,7 +1229,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1229
1229
  parent_id?: number | null | undefined;
1230
1230
  } | null | undefined;
1231
1231
  production_task?: {
1232
- status: import("../..").StatusProductionTaskEnum;
1232
+ ban: boolean;
1233
1233
  due_data: Date;
1234
1234
  working_type: import("../..").StockOrderType;
1235
1235
  details_filters: import("../..").IDescriptionFilters;
@@ -1413,7 +1413,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1413
1413
  due_data: Date;
1414
1414
  working_type: import("../..").StockOrderType;
1415
1415
  details_filters: import("../..").IDescriptionFilters;
1416
- status?: import("../..").StatusProductionTaskEnum | undefined;
1416
+ ban?: boolean | undefined;
1417
1417
  description?: string | undefined;
1418
1418
  id?: number | null | undefined;
1419
1419
  }[] | null | undefined;
@@ -1,46 +1,26 @@
1
1
  import { z } from 'zod';
2
- import { AssembleStatus, ParentType } from '../../utils';
2
+ import { AssembleStatus } from '../../utils';
3
+ import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
4
  export declare const GetAssembleByOperationPaginationDtoZod: z.ZodObject<{
4
5
  page: z.ZodNumber;
5
6
  operationId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6
7
  searchString: z.ZodString;
7
8
  status: z.ZodNativeEnum<typeof AssembleStatus>;
8
- productIds: z.ZodArray<z.ZodNumber, "many">;
9
- cbedIds: z.ZodArray<z.ZodNumber, "many">;
10
- shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
11
- parentData: z.ZodNullable<z.ZodDefault<z.ZodObject<{
12
- parentType: z.ZodNullable<z.ZodType<ParentType, z.ZodTypeDef, ParentType>>;
13
- parentId: z.ZodNullable<z.ZodNumber>;
14
- }, "strip", z.ZodTypeAny, {
15
- parentId: number | null;
16
- parentType: ParentType;
17
- }, {
18
- parentId: number | null;
19
- parentType: ParentType;
20
- }>>>;
9
+ byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
10
+ byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
21
11
  }, "strip", z.ZodTypeAny, {
22
12
  status: AssembleStatus;
23
13
  page: number;
24
14
  operationId: number | null;
25
15
  searchString: string;
26
- parentData: {
27
- parentId: number | null;
28
- parentType: ParentType;
29
- } | null;
30
- cbedIds: number[];
31
- productIds: number[];
32
- shipmentIds?: number[] | null | undefined;
16
+ byParents?: IFiltersByParents | null | undefined;
17
+ byOrder?: IFiltersByByOrder | null | undefined;
33
18
  }, {
34
19
  status: AssembleStatus;
35
20
  page: number;
36
21
  searchString: string;
37
- cbedIds: number[];
38
- productIds: number[];
39
22
  operationId?: number | null | undefined;
40
- shipmentIds?: number[] | null | undefined;
41
- parentData?: {
42
- parentId: number | null;
43
- parentType: ParentType;
44
- } | null | undefined;
23
+ byParents?: IFiltersByParents | null | undefined;
24
+ byOrder?: IFiltersByByOrder | null | undefined;
45
25
  }>;
46
26
  export type GetAssembleByOperationPaginationDtoZodType = z.infer<typeof GetAssembleByOperationPaginationDtoZod>;
@@ -8,17 +8,6 @@ exports.GetAssembleByOperationPaginationDtoZod = zod_1.z.object({
8
8
  operationId: zod_1.z.number().nullable().default(null),
9
9
  searchString: zod_1.z.string(),
10
10
  status: zod_1.z.nativeEnum(utils_1.AssembleStatus),
11
- productIds: zod_1.z.array(zod_1.z.number()),
12
- cbedIds: zod_1.z.array(zod_1.z.number()),
13
- shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
14
- parentData: zod_1.z
15
- .object({
16
- parentType: zod_1.z.custom().nullable(),
17
- parentId: zod_1.z.number().nullable()
18
- })
19
- .default({
20
- parentType: null,
21
- parentId: null
22
- })
23
- .nullable()
11
+ byOrder: zod_1.z.custom().nullable().optional(),
12
+ byParents: zod_1.z.custom().nullable().optional()
24
13
  });
@@ -1,46 +1,22 @@
1
1
  import { z } from 'zod';
2
- import { AssembleIzdEnum, ParentType } from '../../utils';
2
+ import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
3
  export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
4
4
  page: z.ZodNumber;
5
5
  searchString: z.ZodString;
6
6
  responsibleUserId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
- parentData: z.ZodNullable<z.ZodDefault<z.ZodObject<{
8
- parentType: z.ZodNullable<z.ZodType<ParentType, z.ZodTypeDef, ParentType>>;
9
- parentId: z.ZodNullable<z.ZodNumber>;
10
- }, "strip", z.ZodTypeAny, {
11
- parentId: number | null;
12
- parentType: ParentType;
13
- }, {
14
- parentId: number | null;
15
- parentType: ParentType;
16
- }>>>;
17
- type: z.ZodDefault<z.ZodNativeEnum<typeof AssembleIzdEnum>>;
18
- cbedIds: z.ZodArray<z.ZodNumber, "many">;
19
- productIds: z.ZodArray<z.ZodNumber, "many">;
20
- shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
7
+ byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
8
+ byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
21
9
  }, "strip", z.ZodTypeAny, {
22
- type: AssembleIzdEnum;
23
10
  page: number;
24
11
  searchString: string;
25
- parentData: {
26
- parentId: number | null;
27
- parentType: ParentType;
28
- } | null;
29
- cbedIds: number[];
30
- productIds: number[];
31
12
  responsibleUserId?: number | null | undefined;
32
- shipmentIds?: number[] | null | undefined;
13
+ byParents?: IFiltersByParents | null | undefined;
14
+ byOrder?: IFiltersByByOrder | null | undefined;
33
15
  }, {
34
16
  page: number;
35
17
  searchString: string;
36
- cbedIds: number[];
37
- productIds: number[];
38
- type?: AssembleIzdEnum | undefined;
39
18
  responsibleUserId?: number | null | undefined;
40
- shipmentIds?: number[] | null | undefined;
41
- parentData?: {
42
- parentId: number | null;
43
- parentType: ParentType;
44
- } | null | undefined;
19
+ byParents?: IFiltersByParents | null | undefined;
20
+ byOrder?: IFiltersByByOrder | null | undefined;
45
21
  }>;
46
22
  export type GetAssembleScladPaginationDtoZodType = z.infer<typeof GetAssembleScladPaginationDtoZod>;
@@ -2,23 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetAssembleScladPaginationDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
- const utils_1 = require("../../utils");
6
5
  exports.GetAssembleScladPaginationDtoZod = zod_1.z.object({
7
6
  page: zod_1.z.number().int(),
8
7
  searchString: zod_1.z.string(),
9
8
  responsibleUserId: zod_1.z.number().nullable().optional(),
10
- parentData: zod_1.z
11
- .object({
12
- parentType: zod_1.z.custom().nullable(),
13
- parentId: zod_1.z.number().nullable()
14
- })
15
- .default({
16
- parentType: null,
17
- parentId: null
18
- })
19
- .nullable(),
20
- type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).default(utils_1.AssembleIzdEnum.all),
21
- cbedIds: zod_1.z.array(zod_1.z.number()),
22
- productIds: zod_1.z.array(zod_1.z.number()),
23
- shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional()
9
+ byParents: zod_1.z.custom().nullable().optional(),
10
+ byOrder: zod_1.z.custom().nullable().optional()
24
11
  });
@@ -1,25 +1,16 @@
1
1
  import { z } from 'zod';
2
- import { AssembleIzdEnum, ParentType, SortReadinesEnum } from '../../utils';
2
+ import { AssembleIzdEnum, SortReadinesEnum } from '../../utils';
3
+ import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
4
  export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
4
5
  page: z.ZodNumber;
5
6
  searchString: z.ZodString;
6
7
  isBan: z.ZodBoolean;
7
8
  responsibleUserId: z.ZodNullable<z.ZodNumber>;
8
- parentData: z.ZodNullable<z.ZodDefault<z.ZodObject<{
9
- parentType: z.ZodNullable<z.ZodType<ParentType, z.ZodTypeDef, ParentType>>;
10
- parentId: z.ZodNullable<z.ZodNumber>;
11
- }, "strip", z.ZodTypeAny, {
12
- parentId: number | null;
13
- parentType: ParentType;
14
- }, {
15
- parentId: number | null;
16
- parentType: ParentType;
17
- }>>>;
9
+ notOrderedByProductionTask: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10
+ byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
18
11
  type: z.ZodDefault<z.ZodNativeEnum<typeof AssembleIzdEnum>>;
19
12
  sortReadines: z.ZodDefault<z.ZodNativeEnum<typeof SortReadinesEnum>>;
20
- cbedIds: z.ZodArray<z.ZodNumber, "many">;
21
- productIds: z.ZodArray<z.ZodNumber, "many">;
22
- shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
13
+ byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
23
14
  onlyCanComplect: z.ZodBoolean;
24
15
  }, "strip", z.ZodTypeAny, {
25
16
  type: AssembleIzdEnum;
@@ -27,29 +18,21 @@ export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
27
18
  searchString: string;
28
19
  responsibleUserId: number | null;
29
20
  isBan: boolean;
30
- parentData: {
31
- parentId: number | null;
32
- parentType: ParentType;
33
- } | null;
34
- cbedIds: number[];
35
- productIds: number[];
36
21
  sortReadines: SortReadinesEnum;
37
22
  onlyCanComplect: boolean;
38
- shipmentIds?: number[] | null | undefined;
23
+ byParents?: IFiltersByParents | null | undefined;
24
+ byOrder?: IFiltersByByOrder | null | undefined;
25
+ notOrderedByProductionTask?: boolean | null | undefined;
39
26
  }, {
40
27
  page: number;
41
28
  searchString: string;
42
29
  responsibleUserId: number | null;
43
30
  isBan: boolean;
44
- cbedIds: number[];
45
- productIds: number[];
46
31
  onlyCanComplect: boolean;
47
32
  type?: AssembleIzdEnum | undefined;
48
- shipmentIds?: number[] | null | undefined;
49
- parentData?: {
50
- parentId: number | null;
51
- parentType: ParentType;
52
- } | null | undefined;
33
+ byParents?: IFiltersByParents | null | undefined;
34
+ byOrder?: IFiltersByByOrder | null | undefined;
35
+ notOrderedByProductionTask?: boolean | null | undefined;
53
36
  sortReadines?: SortReadinesEnum | undefined;
54
37
  }>;
55
38
  export type GetAssemblePaginationDtoZodType = z.infer<typeof GetAssemblePaginationDtoZod>;
@@ -8,20 +8,10 @@ exports.GetAssemblePaginationDtoZod = zod_1.z.object({
8
8
  searchString: zod_1.z.string(),
9
9
  isBan: zod_1.z.boolean(),
10
10
  responsibleUserId: zod_1.z.number().nullable(),
11
- parentData: zod_1.z
12
- .object({
13
- parentType: zod_1.z.custom().nullable(),
14
- parentId: zod_1.z.number().nullable()
15
- })
16
- .default({
17
- parentType: null,
18
- parentId: null
19
- })
20
- .nullable(),
11
+ notOrderedByProductionTask: zod_1.z.boolean().nullish(),
12
+ byParents: zod_1.z.custom().nullable().optional(),
21
13
  type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).default(utils_1.AssembleIzdEnum.all),
22
14
  sortReadines: zod_1.z.nativeEnum(utils_1.SortReadinesEnum).default(utils_1.SortReadinesEnum.any),
23
- cbedIds: zod_1.z.array(zod_1.z.number()),
24
- productIds: zod_1.z.array(zod_1.z.number()),
25
- shipmentIds: zod_1.z.array(zod_1.z.number()).nullish(),
15
+ byOrder: zod_1.z.custom().nullable().optional(),
26
16
  onlyCanComplect: zod_1.z.boolean()
27
17
  });
@@ -726,10 +726,10 @@ export declare const AssembleComingSchema: z.ZodObject<{
726
726
  due_data: z.ZodDate;
727
727
  working_type: z.ZodNativeEnum<typeof import("../..").StockOrderType>;
728
728
  description: z.ZodOptional<z.ZodString>;
729
- status: z.ZodDefault<z.ZodNativeEnum<typeof import("../..").StatusProductionTaskEnum>>;
729
+ ban: z.ZodDefault<z.ZodBoolean>;
730
730
  details_filters: z.ZodType<import("../..").IDescriptionFilters, z.ZodTypeDef, import("../..").IDescriptionFilters>;
731
731
  }, "strip", z.ZodTypeAny, {
732
- status: import("../..").StatusProductionTaskEnum;
732
+ ban: boolean;
733
733
  due_data: Date;
734
734
  working_type: import("../..").StockOrderType;
735
735
  details_filters: import("../..").IDescriptionFilters;
@@ -739,7 +739,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
739
739
  due_data: Date;
740
740
  working_type: import("../..").StockOrderType;
741
741
  details_filters: import("../..").IDescriptionFilters;
742
- status?: import("../..").StatusProductionTaskEnum | undefined;
742
+ ban?: boolean | undefined;
743
743
  description?: string | undefined;
744
744
  id?: number | null | undefined;
745
745
  }>, "many">>>>;
@@ -888,7 +888,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
888
888
  parent_id?: number | null | undefined;
889
889
  } | null | undefined;
890
890
  production_task?: {
891
- status: import("../..").StatusProductionTaskEnum;
891
+ ban: boolean;
892
892
  due_data: Date;
893
893
  working_type: import("../..").StockOrderType;
894
894
  details_filters: import("../..").IDescriptionFilters;
@@ -1081,7 +1081,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
1081
1081
  due_data: Date;
1082
1082
  working_type: import("../..").StockOrderType;
1083
1083
  details_filters: import("../..").IDescriptionFilters;
1084
- status?: import("../..").StatusProductionTaskEnum | undefined;
1084
+ ban?: boolean | undefined;
1085
1085
  description?: string | undefined;
1086
1086
  id?: number | null | undefined;
1087
1087
  }[] | null | undefined;
@@ -727,10 +727,10 @@ export declare const AssembleSchema: z.ZodObject<{
727
727
  due_data: z.ZodDate;
728
728
  working_type: z.ZodNativeEnum<typeof import("../../utils").StockOrderType>;
729
729
  description: z.ZodOptional<z.ZodString>;
730
- status: z.ZodDefault<z.ZodNativeEnum<typeof import("../../production-tasks").StatusProductionTaskEnum>>;
730
+ ban: z.ZodDefault<z.ZodBoolean>;
731
731
  details_filters: z.ZodType<import("../../production-tasks").IDescriptionFilters, z.ZodTypeDef, import("../../production-tasks").IDescriptionFilters>;
732
732
  }, "strip", z.ZodTypeAny, {
733
- status: import("../../production-tasks").StatusProductionTaskEnum;
733
+ ban: boolean;
734
734
  due_data: Date;
735
735
  working_type: import("../../utils").StockOrderType;
736
736
  details_filters: import("../../production-tasks").IDescriptionFilters;
@@ -740,7 +740,7 @@ export declare const AssembleSchema: z.ZodObject<{
740
740
  due_data: Date;
741
741
  working_type: import("../../utils").StockOrderType;
742
742
  details_filters: import("../../production-tasks").IDescriptionFilters;
743
- status?: import("../../production-tasks").StatusProductionTaskEnum | undefined;
743
+ ban?: boolean | undefined;
744
744
  description?: string | undefined;
745
745
  id?: number | null | undefined;
746
746
  }>, "many">>>>;
@@ -865,7 +865,7 @@ export declare const AssembleSchema: z.ZodObject<{
865
865
  parent_id?: number | null | undefined;
866
866
  } | null | undefined;
867
867
  production_task?: {
868
- status: import("../../production-tasks").StatusProductionTaskEnum;
868
+ ban: boolean;
869
869
  due_data: Date;
870
870
  working_type: import("../../utils").StockOrderType;
871
871
  details_filters: import("../../production-tasks").IDescriptionFilters;
@@ -1047,7 +1047,7 @@ export declare const AssembleSchema: z.ZodObject<{
1047
1047
  due_data: Date;
1048
1048
  working_type: import("../../utils").StockOrderType;
1049
1049
  details_filters: import("../../production-tasks").IDescriptionFilters;
1050
- status?: import("../../production-tasks").StatusProductionTaskEnum | undefined;
1050
+ ban?: boolean | undefined;
1051
1051
  description?: string | undefined;
1052
1052
  id?: number | null | undefined;
1053
1053
  }[] | null | undefined;
@@ -12,13 +12,13 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
12
12
  instrumentIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
13
13
  inventaryIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- materialIds: number[];
16
15
  equipmentIds: number[];
16
+ materialIds: number[];
17
17
  instrumentIds: number[];
18
18
  inventaryIds: number[];
19
19
  }, {
20
- materialIds?: number[] | undefined;
21
20
  equipmentIds?: number[] | undefined;
21
+ materialIds?: number[] | undefined;
22
22
  instrumentIds?: number[] | undefined;
23
23
  inventaryIds?: number[] | undefined;
24
24
  }>>;
@@ -30,8 +30,8 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
30
30
  isBan: boolean;
31
31
  filterByTypes: import("../enums/enums").DtoEnumCompanyType[];
32
32
  filterByEntities?: {
33
- materialIds: number[];
34
33
  equipmentIds: number[];
34
+ materialIds: number[];
35
35
  instrumentIds: number[];
36
36
  inventaryIds: number[];
37
37
  } | undefined;
@@ -43,8 +43,8 @@ export declare const companiesPaginationDtoZod: z.ZodObject<{
43
43
  isBan?: boolean | undefined;
44
44
  filterByTypes?: import("../enums/enums").DtoEnumCompanyType[] | undefined;
45
45
  filterByEntities?: {
46
- materialIds?: number[] | undefined;
47
46
  equipmentIds?: number[] | undefined;
47
+ materialIds?: number[] | undefined;
48
48
  instrumentIds?: number[] | undefined;
49
49
  inventaryIds?: number[] | undefined;
50
50
  } | undefined;
@@ -30,6 +30,7 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
30
30
  name: string;
31
31
  type?: import("../enums/enums").EnumCompanyType[] | undefined;
32
32
  description?: string | undefined;
33
+ equipmentIds?: number[] | undefined;
33
34
  docs?: string | undefined;
34
35
  inn?: string | undefined;
35
36
  cpp?: string | undefined;
@@ -42,7 +43,6 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
42
43
  };
43
44
  }[] | undefined;
44
45
  materialIds?: number[] | undefined;
45
- equipmentIds?: number[] | undefined;
46
46
  instrumentIds?: number[] | undefined;
47
47
  inventaryIds?: number[] | undefined;
48
48
  contactIds?: number[] | undefined;
@@ -51,6 +51,7 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
51
51
  name: string;
52
52
  type?: import("../enums/enums").EnumCompanyType[] | undefined;
53
53
  description?: string | undefined;
54
+ equipmentIds?: number[] | undefined;
54
55
  docs?: string | undefined;
55
56
  inn?: string | undefined;
56
57
  cpp?: string | undefined;
@@ -63,7 +64,6 @@ export declare const сreateCompanyDtoZod: z.ZodObject<{
63
64
  };
64
65
  }[] | undefined;
65
66
  materialIds?: number[] | undefined;
66
- equipmentIds?: number[] | undefined;
67
67
  instrumentIds?: number[] | undefined;
68
68
  inventaryIds?: number[] | undefined;
69
69
  contactIds?: number[] | undefined;
@@ -32,6 +32,7 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
32
32
  type?: import("../enums/enums").EnumCompanyType[] | undefined;
33
33
  description?: string | undefined;
34
34
  name?: string | undefined;
35
+ equipmentIds?: number[] | undefined;
35
36
  docs?: string | undefined;
36
37
  inn?: string | undefined;
37
38
  cpp?: string | undefined;
@@ -44,7 +45,6 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
44
45
  };
45
46
  }[] | undefined;
46
47
  materialIds?: number[] | undefined;
47
- equipmentIds?: number[] | undefined;
48
48
  instrumentIds?: number[] | undefined;
49
49
  inventaryIds?: number[] | undefined;
50
50
  contactIds?: number[] | undefined;
@@ -54,6 +54,7 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
54
54
  type?: import("../enums/enums").EnumCompanyType[] | undefined;
55
55
  description?: string | undefined;
56
56
  name?: string | undefined;
57
+ equipmentIds?: number[] | undefined;
57
58
  docs?: string | undefined;
58
59
  inn?: string | undefined;
59
60
  cpp?: string | undefined;
@@ -66,7 +67,6 @@ export declare const updateCompanyDtoZod: z.ZodObject<{
66
67
  };
67
68
  }[] | undefined;
68
69
  materialIds?: number[] | undefined;
69
- equipmentIds?: number[] | undefined;
70
70
  instrumentIds?: number[] | undefined;
71
71
  inventaryIds?: number[] | undefined;
72
72
  contactIds?: number[] | undefined;
@@ -12,7 +12,7 @@ export declare const CreateEquipmentDtoZod: z.ZodObject<{
12
12
  rootParentId: z.ZodEffects<z.ZodNumber, number, unknown>;
13
13
  attention: z.ZodEffects<z.ZodNullable<z.ZodBoolean>, boolean | null, unknown>;
14
14
  fileBase: z.ZodString;
15
- typeOperationId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null | undefined, unknown>;
15
+ typeOperationIds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>>, number[] | null, unknown>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  description: string;
18
18
  name: string;
@@ -23,10 +23,10 @@ export declare const CreateEquipmentDtoZod: z.ZodObject<{
23
23
  parentId: number | null;
24
24
  companyIds: string;
25
25
  fileBase: string;
26
+ typeOperationIds: number[] | null;
26
27
  docs?: any;
27
28
  responsible?: number | null | undefined;
28
29
  instrumentIdList?: any;
29
- typeOperationId?: number | null | undefined;
30
30
  }, {
31
31
  description: string;
32
32
  name: string;
@@ -39,7 +39,7 @@ export declare const CreateEquipmentDtoZod: z.ZodObject<{
39
39
  rootParentId?: unknown;
40
40
  parentId?: unknown;
41
41
  responsible?: unknown;
42
+ typeOperationIds?: unknown;
42
43
  instrumentIdList?: any;
43
- typeOperationId?: unknown;
44
44
  }>;
45
45
  export type CreateEquipmentDtoType = z.infer<typeof CreateEquipmentDtoZod>;
@@ -16,5 +16,5 @@ exports.CreateEquipmentDtoZod = zod_1.z.object({
16
16
  rootParentId: zod_1.z.preprocess(val => typeof val === 'string' && parseInt(val, 10) ? parseInt(val, 10) : null, zod_1.z.number()),
17
17
  attention: zod_1.z.preprocess(val => typeof val === 'string' && (0, utils_1.parseBoolean)(val) ? (0, utils_1.parseBoolean)(val) : null, zod_1.z.boolean().nullable()),
18
18
  fileBase: zod_1.z.string(),
19
- typeOperationId: zod_1.z.preprocess(val => typeof val === 'string' && parseInt(val, 10) ? parseInt(val, 10) : null, zod_1.z.number().nullable().optional())
19
+ typeOperationIds: zod_1.z.preprocess(val => typeof val === 'string' && parseInt(val, 10) ? parseInt(val, 10) : [], zod_1.z.array(zod_1.z.number()).nullish().default([]))
20
20
  });
@@ -1,12 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  export declare const EquipmentPaginationDtoZod: z.ZodObject<{
3
- typeId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
4
- subTypeId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
3
+ typeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4
+ subTypeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
+ typeOperationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
6
  page: z.ZodNumber;
6
7
  searchString: z.ZodString;
7
- isFilteredByDate: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
8
- isFilteredByOwn: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
9
- isFilteredByAttention: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
8
+ isFilteredByDate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9
+ isFilteredByOwn: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10
+ isFilteredByAttention: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  page: number;
12
13
  searchString: string;
@@ -15,6 +16,7 @@ export declare const EquipmentPaginationDtoZod: z.ZodObject<{
15
16
  isFilteredByDate?: boolean | null | undefined;
16
17
  isFilteredByOwn?: boolean | null | undefined;
17
18
  isFilteredByAttention?: boolean | null | undefined;
19
+ typeOperationId?: number | null | undefined;
18
20
  }, {
19
21
  page: number;
20
22
  searchString: string;
@@ -23,5 +25,6 @@ export declare const EquipmentPaginationDtoZod: z.ZodObject<{
23
25
  isFilteredByDate?: boolean | null | undefined;
24
26
  isFilteredByOwn?: boolean | null | undefined;
25
27
  isFilteredByAttention?: boolean | null | undefined;
28
+ typeOperationId?: number | null | undefined;
26
29
  }>;
27
30
  export type EquipmentPaginationDtoType = z.infer<typeof EquipmentPaginationDtoZod>;
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EquipmentPaginationDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.EquipmentPaginationDtoZod = zod_1.z.object({
6
- typeId: zod_1.z.number().optional().nullable(),
7
- subTypeId: zod_1.z.number().optional().nullable(),
6
+ typeId: zod_1.z.number().nullish(),
7
+ subTypeId: zod_1.z.number().nullish(),
8
+ typeOperationId: zod_1.z.number().nullish(),
8
9
  page: zod_1.z.number(),
9
10
  searchString: zod_1.z.string(),
10
- isFilteredByDate: zod_1.z.boolean().optional().nullable(),
11
- isFilteredByOwn: zod_1.z.boolean().optional().nullable(),
12
- isFilteredByAttention: zod_1.z.boolean().optional().nullable()
11
+ isFilteredByDate: zod_1.z.boolean().nullish(),
12
+ isFilteredByOwn: zod_1.z.boolean().nullish(),
13
+ isFilteredByAttention: zod_1.z.boolean().nullish()
13
14
  });