@pksep/zod-shared 0.0.505 → 0.0.507

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 (129) 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/create-assemble-kit.dto.d.ts +2 -2
  4. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +9 -9
  5. package/dist/assemble/dto/get-assemble-operation-pagination.dto.d.ts +8 -28
  6. package/dist/assemble/dto/get-assemble-operation-pagination.dto.js +2 -13
  7. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +7 -31
  8. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -15
  9. package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +11 -28
  10. package/dist/assemble/dto/get-assemble-pagination.dto.js +3 -13
  11. package/dist/assemble/schemas/assemble-coming.schema.d.ts +12 -12
  12. package/dist/assemble/schemas/assemble.schema.d.ts +6 -6
  13. package/dist/cbed/dto/up-create-cbed.dto.d.ts +2 -2
  14. package/dist/cbed/schemas/cbed.schema.d.ts +20 -14
  15. package/dist/cbed/schemas/cbed.schema.js +2 -0
  16. package/dist/company/dto/companies-pagination.dto.d.ts +4 -4
  17. package/dist/company/dto/create-company.dto.d.ts +2 -2
  18. package/dist/company/dto/update-company.dto.d.ts +2 -2
  19. package/dist/detal/dto/update-detal.dto.d.ts +2 -2
  20. package/dist/detal/schemas/detal-deficit.schema.d.ts +85 -277
  21. package/dist/detal/schemas/detal.schema.d.ts +92 -283
  22. package/dist/detal/schemas/detal.schema.js +2 -0
  23. package/dist/equipment/dto/create-equipment.dto.d.ts +3 -3
  24. package/dist/equipment/dto/create-equipment.dto.js +1 -1
  25. package/dist/equipment/dto/get-instruments-pagination.dto.d.ts +8 -5
  26. package/dist/equipment/dto/get-instruments-pagination.dto.js +6 -5
  27. package/dist/equipment/dto/update-equipment.dto.d.ts +3 -3
  28. package/dist/equipment/dto/update-equipment.dto.js +1 -1
  29. package/dist/issue/dto/up-create-issue.dto.d.ts +49 -0
  30. package/dist/issue/dto/up-create-issue.dto.js +21 -0
  31. package/dist/issue/index.d.ts +5 -0
  32. package/dist/issue/index.js +21 -0
  33. package/dist/issue/interfaces/interface.d.ts +4 -0
  34. package/dist/issue/interfaces/interface.js +2 -0
  35. package/dist/issue/schemas/issue-user-controller.schema.d.ts +15 -0
  36. package/dist/issue/schemas/issue-user-controller.schema.js +9 -0
  37. package/dist/issue/schemas/issue-user.schema.d.ts +15 -0
  38. package/dist/issue/schemas/issue-user.schema.js +9 -0
  39. package/dist/issue/schemas/issue.schema.d.ts +51 -0
  40. package/dist/issue/schemas/issue.schema.js +21 -0
  41. package/dist/library/dto/create-chapter.dto.d.ts +12 -0
  42. package/dist/library/dto/create-chapter.dto.js +8 -0
  43. package/dist/library/dto/create-link.dto.d.ts +30 -0
  44. package/dist/library/dto/create-link.dto.js +14 -0
  45. package/dist/library/index.d.ts +5 -0
  46. package/dist/library/index.js +21 -0
  47. package/dist/library/interfaces/interface.d.ts +3 -0
  48. package/dist/library/interfaces/interface.js +2 -0
  49. package/dist/library/schemas/links-user.schema.d.ts +15 -0
  50. package/dist/library/schemas/links-user.schema.js +9 -0
  51. package/dist/library/schemas/links.schema.d.ts +30 -0
  52. package/dist/library/schemas/links.schema.js +14 -0
  53. package/dist/material/schemas/material.schema.d.ts +2 -2
  54. package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.d.ts +8 -25
  55. package/dist/metaloworking/dto/get-metallworking-operation-pagination.dto.js +2 -6
  56. package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +7 -25
  57. package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -9
  58. package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +6 -27
  59. package/dist/movement-object/schemas/get-one-object-history.schema.js +1 -7
  60. package/dist/moving/schemas/moving.schema.d.ts +125 -111
  61. package/dist/operations/dto/create-type-operation.dto.d.ts +3 -0
  62. package/dist/operations/dto/create-type-operation.dto.js +1 -0
  63. package/dist/operations/dto/update-create-operation.dto.d.ts +3 -0
  64. package/dist/operations/dto/update-create-operation.dto.js +1 -0
  65. package/dist/operations/dto/update-type-operation.dto.d.ts +3 -0
  66. package/dist/operations/dto/update-type-operation.dto.js +1 -0
  67. package/dist/operations/index.d.ts +1 -0
  68. package/dist/operations/index.js +1 -0
  69. package/dist/operations/schemas/type-oper-equipment.schema.d.ts +15 -0
  70. package/dist/operations/schemas/type-oper-equipment.schema.js +9 -0
  71. package/dist/product/dto/up-create-product.dto.d.ts +5 -5
  72. package/dist/product/schemas/product-deficit.schema.d.ts +12 -12
  73. package/dist/product/schemas/product.schema.d.ts +12 -12
  74. package/dist/production-tasks/dto/get-by-users.dto.d.ts +3 -4
  75. package/dist/production-tasks/dto/get-by-users.dto.js +1 -2
  76. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +5 -2
  77. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +1 -0
  78. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +18 -0
  79. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +7 -0
  80. package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +40 -0
  81. package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +19 -0
  82. package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +18 -0
  83. package/dist/production-tasks/dto/get-production-task-by-user.dto.js +8 -1
  84. package/dist/production-tasks/dto/get-production-task.dto.d.ts +3 -4
  85. package/dist/production-tasks/dto/get-production-task.dto.js +1 -2
  86. package/dist/production-tasks/dto/get-taks-by-toperation.dto.d.ts +3 -0
  87. package/dist/production-tasks/dto/get-taks-by-toperation.dto.js +4 -0
  88. package/dist/production-tasks/dto/online-board-working.dto.d.ts +4 -4
  89. package/dist/production-tasks/dto/plan-production-task.dto.d.ts +10 -3
  90. package/dist/production-tasks/dto/plan-production-task.dto.js +5 -0
  91. package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +12 -0
  92. package/dist/production-tasks/dto/set-start-time-detal.dto.js +8 -0
  93. package/dist/production-tasks/dto/update-marks.dto.d.ts +13 -0
  94. package/dist/production-tasks/dto/update-marks.dto.js +8 -0
  95. package/dist/production-tasks/enums/production-tasks.d.ts +5 -1
  96. package/dist/production-tasks/enums/production-tasks.js +7 -2
  97. package/dist/production-tasks/index.d.ts +3 -1
  98. package/dist/production-tasks/index.js +3 -1
  99. package/dist/production-tasks/interfaces/production-tasks.d.ts +127 -1
  100. package/dist/production-tasks/methods/methods.d.ts +2 -0
  101. package/dist/production-tasks/methods/methods.js +36 -4
  102. package/dist/production-tasks/schemas/operation-positions.schema.d.ts +6 -0
  103. package/dist/production-tasks/schemas/operation-positions.schema.js +2 -0
  104. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +0 -4
  105. package/dist/production-tasks/schemas/production-operation-pos.schema.js +0 -4
  106. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +16 -0
  107. package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +8 -0
  108. package/dist/production-tasks/schemas/production-task.schema.d.ts +3 -4
  109. package/dist/production-tasks/schemas/production-task.schema.js +1 -4
  110. package/dist/role/schemas/role.schema.d.ts +125 -111
  111. package/dist/sclad/schemas/remains.schema.d.ts +4 -4
  112. package/dist/shipments/dto/entity-filtering-by-shipment.dto.d.ts +3 -0
  113. package/dist/shipments/dto/entity-filtering-by-shipment.dto.js +1 -0
  114. package/dist/specification/schema/attributes.schema.d.ts +184 -462
  115. package/dist/tech-process/index.d.ts +1 -0
  116. package/dist/tech-process/index.js +1 -0
  117. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
  118. package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
  119. package/dist/tech-process/schemas/tech-process.schema.d.ts +8 -1
  120. package/dist/user/schemas/user.schema.d.ts +84 -74
  121. package/dist/utils/default-value/default-value.d.ts +7 -0
  122. package/dist/utils/default-value/default-value.js +11 -1
  123. package/dist/utils/interface/mat.interface.d.ts +10 -0
  124. package/dist/utils/interface/mat.interface.js +2 -0
  125. package/dist/utils/methods.d.ts +1 -1
  126. package/dist/utils/methods.js +2 -4
  127. package/dist/utils/operation.d.ts +1 -0
  128. package/dist/utils/operation.js +8 -1
  129. 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
  });
@@ -11,14 +11,14 @@ export declare const CreateAssembleKitDtoZod: z.ZodObject<{
11
11
  assembleId: number;
12
12
  shipmentsIds: number[];
13
13
  actionSendlerId: number;
14
- listDetal?: any;
15
14
  listCbed?: any;
15
+ listDetal?: any;
16
16
  }, {
17
17
  kolvoCollected: number;
18
18
  assembleId: number;
19
19
  shipmentsIds: number[];
20
20
  actionSendlerId: number;
21
- listDetal?: any;
22
21
  listCbed?: any;
22
+ listDetal?: any;
23
23
  }>;
24
24
  export type CreateAssembleKitDtoType = z.infer<typeof CreateAssembleKitDtoZod>;
@@ -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">>>>;
@@ -773,9 +773,9 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
773
773
  ban: boolean;
774
774
  id: number;
775
775
  number_order: string;
776
- type_izd: string;
777
776
  kolvo_create: number;
778
777
  kolvo_shipments: number;
778
+ type_izd: string;
779
779
  submitted: number;
780
780
  collected: number;
781
781
  tech_process?: {
@@ -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;
@@ -1138,9 +1138,9 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1138
1138
  ban: boolean;
1139
1139
  id: number;
1140
1140
  number_order: string;
1141
- type_izd: string;
1142
1141
  kolvo_create: number;
1143
1142
  kolvo_shipments: number;
1143
+ type_izd: string;
1144
1144
  submitted: number;
1145
1145
  collected: number;
1146
1146
  tech_process?: {
@@ -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">>>>;
@@ -793,9 +793,9 @@ export declare const AssembleComingSchema: z.ZodObject<{
793
793
  number_order: string;
794
794
  entityId: number;
795
795
  sum: number;
796
- type_izd: string;
797
796
  kolvo_create: number;
798
797
  kolvo_shipments: number;
798
+ type_izd: string;
799
799
  submitted: number;
800
800
  collected: number;
801
801
  precentCreated: string | number;
@@ -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;
@@ -901,6 +901,9 @@ export declare const AssembleComingSchema: z.ZodObject<{
901
901
  cbed_id?: number | undefined;
902
902
  product_id?: number | undefined;
903
903
  shipment_id?: number | null | undefined;
904
+ ava_path?: string | {
905
+ path: string;
906
+ } | undefined;
904
907
  timeComplite?: number | undefined;
905
908
  assembly_kits?: {
906
909
  status: import("../..").StatusAssembleKit;
@@ -974,9 +977,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
974
977
  company_id?: number | undefined;
975
978
  createdAt?: string | Date | undefined;
976
979
  }[] | null | undefined;
977
- ava_path?: string | {
978
- path: string;
979
- } | undefined;
980
980
  }, {
981
981
  type: PositionItemType.product | PositionItemType.cbed;
982
982
  status: import("../..").StatusScladWorking;
@@ -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;
@@ -1091,6 +1091,9 @@ export declare const AssembleComingSchema: z.ZodObject<{
1091
1091
  cbed_id?: number | undefined;
1092
1092
  product_id?: number | undefined;
1093
1093
  shipment_id?: number | null | undefined;
1094
+ ava_path?: string | {
1095
+ path: string;
1096
+ } | undefined;
1094
1097
  kolvo_create?: number | undefined;
1095
1098
  kolvo_shipments?: number | undefined;
1096
1099
  timeComplite?: number | undefined;
@@ -1166,9 +1169,6 @@ export declare const AssembleComingSchema: z.ZodObject<{
1166
1169
  company_id?: number | undefined;
1167
1170
  createdAt?: string | Date | undefined;
1168
1171
  }[] | null | undefined;
1169
- ava_path?: string | {
1170
- path: string;
1171
- } | undefined;
1172
1172
  }>;
1173
1173
  export type ModelAssembleComing = z.infer<typeof AssembleComingSchema> & {
1174
1174
  product?: ModelProduct;
@@ -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">>>>;
@@ -774,9 +774,9 @@ export declare const AssembleSchema: z.ZodObject<{
774
774
  ban: boolean;
775
775
  id: number;
776
776
  number_order: string;
777
- type_izd: string;
778
777
  kolvo_create: number;
779
778
  kolvo_shipments: number;
779
+ type_izd: string;
780
780
  submitted: number;
781
781
  collected: number;
782
782
  tech_process?: {
@@ -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;
@@ -27,8 +27,8 @@ export declare const UpCreateCbedDtoZod: z.ZodObject<{
27
27
  parametrs: any[];
28
28
  characteristic: any[];
29
29
  listPokDet: EntityCommonSpecification[];
30
- listDetal: EntityCommonSpecification[];
31
30
  listCbed: EntityCommonSpecification[];
31
+ listDetal: EntityCommonSpecification[];
32
32
  discontinued: boolean;
33
33
  techProcessID: string;
34
34
  id?: number | null | undefined;
@@ -48,8 +48,8 @@ export declare const UpCreateCbedDtoZod: z.ZodObject<{
48
48
  parametrs?: unknown;
49
49
  characteristic?: unknown;
50
50
  listPokDet?: unknown;
51
- listDetal?: unknown;
52
51
  listCbed?: unknown;
52
+ listDetal?: unknown;
53
53
  responsible?: string | null | undefined;
54
54
  }>;
55
55
  export type UpCreateCbedDtoZodType = z.infer<typeof UpCreateCbedDtoZod>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { EntityCommonSpecificationArray, ProductionTimeType } from '../../utils';
2
+ import { EntityCommonSpecificationArray, IzdType, ProductionTimeType } from '../../utils';
3
3
  import { CbedCharacteristicField, CbedParametrsField, CbedRelativeType } from '../types/cbed-types';
4
4
  import { ModelDocuments } from '../../document';
5
5
  import { ModelMaterial } from '../../material';
@@ -19,6 +19,8 @@ export declare const CbedSchema: z.ZodObject<{
19
19
  ban: z.ZodDefault<z.ZodBoolean>;
20
20
  min_remaining: z.ZodDefault<z.ZodNumber>;
21
21
  remainder_after_coming: z.ZodDefault<z.ZodNumber>;
22
+ task_relative_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ task_relative_type: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof IzdType>>>;
22
24
  quantity: z.ZodDefault<z.ZodNumber>;
23
25
  deficit: z.ZodDefault<z.ZodNumber>;
24
26
  shipments_kolvo: z.ZodDefault<z.ZodNumber>;
@@ -56,21 +58,23 @@ export declare const CbedSchema: z.ZodObject<{
56
58
  shipments_kolvo: number;
57
59
  min_remaining: number;
58
60
  responsibleId: number | null;
59
- production_ordered: number;
60
- shipments_deficit: number;
61
+ remainder_after_coming: number;
61
62
  deficit: number;
63
+ shipments_deficit: number;
64
+ production_ordered: number;
65
+ deficit_by_sclad: number;
62
66
  ava_path: string | null;
63
67
  parametrs: CbedParametrsField | null;
64
68
  characteristic: CbedCharacteristicField | null;
69
+ in_kit: number;
65
70
  listPokDet: EntityCommonSpecificationArray | null;
66
- listDetal: EntityCommonSpecificationArray | null;
67
71
  listCbed: EntityCommonSpecificationArray | null;
68
- in_kit: number;
69
- remainder_after_coming: number;
70
- deficit_by_sclad: number;
72
+ listDetal: EntityCommonSpecificationArray | null;
73
+ production_time_metalloworking?: ProductionTimeType | null | undefined;
74
+ task_relative_id?: number | null | undefined;
75
+ task_relative_type?: IzdType | null | undefined;
71
76
  discontinued?: boolean | undefined;
72
77
  production_time_assemble?: ProductionTimeType | null | undefined;
73
- production_time_metalloworking?: ProductionTimeType | null | undefined;
74
78
  }, {
75
79
  designation: string | null;
76
80
  description: string | null;
@@ -83,23 +87,25 @@ export declare const CbedSchema: z.ZodObject<{
83
87
  parametrs: CbedParametrsField | null;
84
88
  characteristic: CbedCharacteristicField | null;
85
89
  listPokDet: EntityCommonSpecificationArray | null;
86
- listDetal: EntityCommonSpecificationArray | null;
87
90
  listCbed: EntityCommonSpecificationArray | null;
91
+ listDetal: EntityCommonSpecificationArray | null;
88
92
  ban?: boolean | undefined;
89
93
  cbed?: CbedRelativeType[] | undefined;
90
94
  attention?: boolean | undefined;
91
95
  quantity?: number | undefined;
92
96
  shipments_kolvo?: number | undefined;
93
97
  min_remaining?: number | undefined;
94
- production_ordered?: number | undefined;
95
- shipments_deficit?: number | undefined;
98
+ remainder_after_coming?: number | undefined;
96
99
  deficit?: number | undefined;
100
+ shipments_deficit?: number | undefined;
101
+ production_ordered?: number | undefined;
102
+ deficit_by_sclad?: number | undefined;
103
+ production_time_metalloworking?: ProductionTimeType | null | undefined;
97
104
  in_kit?: number | undefined;
105
+ task_relative_id?: number | null | undefined;
106
+ task_relative_type?: IzdType | null | undefined;
98
107
  discontinued?: boolean | undefined;
99
108
  production_time_assemble?: ProductionTimeType | null | undefined;
100
- production_time_metalloworking?: ProductionTimeType | null | undefined;
101
- remainder_after_coming?: number | undefined;
102
- deficit_by_sclad?: number | undefined;
103
109
  }>;
104
110
  export type ModelCbed = z.infer<typeof CbedSchema> & {
105
111
  documents?: ModelDocuments[];
@@ -9,6 +9,8 @@ exports.CbedSchema = zod_1.z.object({
9
9
  ban: zod_1.z.boolean().default(false),
10
10
  min_remaining: zod_1.z.number().int().default(0),
11
11
  remainder_after_coming: zod_1.z.number().int().default(0),
12
+ task_relative_id: zod_1.z.number().nullish(),
13
+ task_relative_type: zod_1.z.nativeEnum(utils_1.IzdType).nullish(),
12
14
  quantity: zod_1.z.number().int().default(0),
13
15
  deficit: zod_1.z.number().int().default(0),
14
16
  shipments_kolvo: zod_1.z.number().int().default(0),