@pksep/zod-shared 0.0.532 → 0.0.534

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 (50) hide show
  1. package/dist/action/schemas/actions.schema.d.ts +2 -2
  2. package/dist/assemble/dto/assembly-paginate.dto.d.ts +18 -0
  3. package/dist/assemble/dto/assembly-paginate.dto.js +2 -1
  4. package/dist/assemble/dto/create-assemble-kit.dto.d.ts +14 -8
  5. package/dist/assemble/dto/create-assemble-kit.dto.js +7 -3
  6. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +6 -6
  7. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +18 -0
  8. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +2 -1
  9. package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +18 -0
  10. package/dist/assemble/dto/get-assemble-pagination.dto.js +2 -1
  11. package/dist/assemble/interfaces/interfaces.d.ts +12 -0
  12. package/dist/assemble/schemas/assemble-coming.schema.d.ts +4 -4
  13. package/dist/assemble/schemas/assemble.schema.d.ts +4 -4
  14. package/dist/assemble-kit/interfaces/interface.d.ts +7 -0
  15. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +2 -2
  16. package/dist/cbed/dto/get-deficit.dto.d.ts +18 -0
  17. package/dist/cbed/dto/get-deficit.dto.js +2 -1
  18. package/dist/deliveries/schemas/deliveries.schema.d.ts +2 -2
  19. package/dist/detal/dto/get-deficit.dto.d.ts +18 -0
  20. package/dist/detal/dto/get-deficit.dto.js +2 -1
  21. package/dist/equipment/schemas/equipment.schema.d.ts +8 -8
  22. package/dist/exclusion/dto/create-exclusion.dto.js +1 -1
  23. package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
  24. package/dist/expenditure/schema/expenditure.schema.d.ts +2 -2
  25. package/dist/material/dto/get-deficit.dto.d.ts +18 -0
  26. package/dist/material/dto/get-deficit.dto.js +2 -1
  27. package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +18 -0
  28. package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +3 -1
  29. package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +2 -2
  30. package/dist/moving/schemas/moving.schema.d.ts +11 -6
  31. package/dist/product/dto/get-deficit.dto.d.ts +18 -0
  32. package/dist/product/dto/get-deficit.dto.js +2 -1
  33. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +18 -0
  34. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +3 -1
  35. package/dist/production-tasks/dto/online-board-working.dto.d.ts +18 -0
  36. package/dist/production-tasks/dto/online-board-working.dto.js +2 -1
  37. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +2 -2
  38. package/dist/role/schemas/role.schema.d.ts +11 -6
  39. package/dist/sclad/schemas/remain.schema.d.ts +2 -2
  40. package/dist/shipments/dto/shipments-paginate.dto.d.ts +18 -0
  41. package/dist/shipments/dto/shipments-paginate.dto.js +2 -1
  42. package/dist/user/schemas/user.schema.d.ts +7 -4
  43. package/dist/user/schemas/user.schema.js +1 -0
  44. package/dist/utils/index.d.ts +1 -0
  45. package/dist/utils/index.js +1 -0
  46. package/dist/utils/methods.d.ts +0 -4
  47. package/dist/utils/methods.js +3 -22
  48. package/dist/utils/sorting.d.ts +25 -0
  49. package/dist/utils/sorting.js +56 -0
  50. package/package.json +1 -1
@@ -65,6 +65,7 @@ export declare const ActionsSchema: z.ZodObject<{
65
65
  action: IActionText[];
66
66
  type_object: string;
67
67
  id?: number | null | undefined;
68
+ createdAt?: string | Date | undefined;
68
69
  responsible_id?: number | null | undefined;
69
70
  equipment_id?: number | null | undefined;
70
71
  user_id?: number | null | undefined;
@@ -94,13 +95,13 @@ export declare const ActionsSchema: z.ZodObject<{
94
95
  role_id?: number | null | undefined;
95
96
  parent_action_idL?: number | null | undefined;
96
97
  production_task_id?: number | null | undefined;
97
- createdAt?: string | Date | undefined;
98
98
  revision_id?: number | null | undefined;
99
99
  }, {
100
100
  action: IActionText[];
101
101
  type_object: string;
102
102
  ban?: boolean | undefined;
103
103
  id?: number | null | undefined;
104
+ createdAt?: string | Date | undefined;
104
105
  responsible_id?: number | null | undefined;
105
106
  equipment_id?: number | null | undefined;
106
107
  user_id?: number | null | undefined;
@@ -130,7 +131,6 @@ export declare const ActionsSchema: z.ZodObject<{
130
131
  role_id?: number | null | undefined;
131
132
  parent_action_idL?: number | null | undefined;
132
133
  production_task_id?: number | null | undefined;
133
- createdAt?: string | Date | undefined;
134
134
  revision_id?: number | null | undefined;
135
135
  }>;
136
136
  export type ModelActions = z.infer<typeof ActionsSchema> & {
@@ -8,8 +8,22 @@ export declare const AssemblyPaginateDtoZod: z.ZodObject<{
8
8
  byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
9
9
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
10
10
  isShowDeactivate: z.ZodBoolean;
11
+ sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
13
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ sortDesc: boolean;
16
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
17
+ }, {
18
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
19
+ sortDesc?: boolean | undefined;
20
+ }>, "many">>>;
11
21
  }, "strip", z.ZodTypeAny, {
12
22
  type: IzdType.product | IzdType.cbed;
23
+ sort: {
24
+ sortDesc: boolean;
25
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
26
+ }[];
13
27
  searchString: string;
14
28
  isShowDeactivate: boolean;
15
29
  page?: number | undefined;
@@ -18,6 +32,10 @@ export declare const AssemblyPaginateDtoZod: z.ZodObject<{
18
32
  }, {
19
33
  type: IzdType.product | IzdType.cbed;
20
34
  isShowDeactivate: boolean;
35
+ sort?: {
36
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
37
+ sortDesc?: boolean | undefined;
38
+ }[] | undefined;
21
39
  page?: number | undefined;
22
40
  searchString?: string | undefined;
23
41
  byParents?: IFiltersByParents | null | undefined;
@@ -10,5 +10,6 @@ exports.AssemblyPaginateDtoZod = zod_1.z.object({
10
10
  searchString: zod_1.z.string().default(''),
11
11
  byParents: zod_1.z.custom().nullable().optional(),
12
12
  byOrder: zod_1.z.custom().nullable().optional(),
13
- isShowDeactivate: zod_1.z.boolean()
13
+ isShowDeactivate: zod_1.z.boolean(),
14
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
14
15
  });
@@ -2,23 +2,29 @@ import { z } from 'zod';
2
2
  export declare const CreateAssembleKitDtoZod: z.ZodObject<{
3
3
  kolvoCollected: z.ZodNumber;
4
4
  assembleId: z.ZodNumber;
5
- shipmentsIds: z.ZodArray<z.ZodNumber, "many">;
6
- listCbed: z.ZodAny;
7
- listDetal: z.ZodAny;
5
+ shipmentsIds: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
6
+ listCbed: z.ZodDefault<z.ZodString>;
7
+ listDetal: z.ZodDefault<z.ZodString>;
8
+ listPokDet: z.ZodDefault<z.ZodString>;
9
+ materialList: z.ZodDefault<z.ZodString>;
8
10
  actionSendlerId: z.ZodNumber;
9
11
  }, "strip", z.ZodTypeAny, {
12
+ materialList: string;
13
+ listPokDet: string;
14
+ listCbed: string;
15
+ listDetal: string;
10
16
  kolvoCollected: number;
11
17
  assembleId: number;
12
18
  shipmentsIds: number[];
13
19
  actionSendlerId: number;
14
- listCbed?: any;
15
- listDetal?: any;
16
20
  }, {
17
21
  kolvoCollected: number;
18
22
  assembleId: number;
19
- shipmentsIds: number[];
20
23
  actionSendlerId: number;
21
- listCbed?: any;
22
- listDetal?: any;
24
+ materialList?: string | undefined;
25
+ listPokDet?: string | undefined;
26
+ listCbed?: string | undefined;
27
+ listDetal?: string | undefined;
28
+ shipmentsIds?: number[] | undefined;
23
29
  }>;
24
30
  export type CreateAssembleKitDtoType = z.infer<typeof CreateAssembleKitDtoZod>;
@@ -2,11 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateAssembleKitDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
+ const utils_1 = require("../../utils");
6
+ const emptyCompressedSpecification = (0, utils_1.compressJson)(JSON.stringify([]));
5
7
  exports.CreateAssembleKitDtoZod = zod_1.z.object({
6
8
  kolvoCollected: zod_1.z.number().int(),
7
9
  assembleId: zod_1.z.number().int(),
8
- shipmentsIds: zod_1.z.array(zod_1.z.number()),
9
- listCbed: zod_1.z.any(),
10
- listDetal: zod_1.z.any(),
10
+ shipmentsIds: zod_1.z.array(zod_1.z.number()).default([]),
11
+ listCbed: zod_1.z.string().default(emptyCompressedSpecification),
12
+ listDetal: zod_1.z.string().default(emptyCompressedSpecification),
13
+ listPokDet: zod_1.z.string().default(emptyCompressedSpecification),
14
+ materialList: zod_1.z.string().default(emptyCompressedSpecification),
11
15
  actionSendlerId: zod_1.z.number().int()
12
16
  });
@@ -680,8 +680,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
680
680
  warehouse_readiness_date?: Date | null | undefined;
681
681
  parent_id?: number | null | undefined;
682
682
  }[] | undefined;
683
- mark_id?: number | null | undefined;
684
683
  createdAt?: string | Date | undefined;
684
+ mark_id?: number | null | undefined;
685
685
  date_to_work?: string | undefined;
686
686
  }, {
687
687
  status: import("../..").StatusAssembleKit;
@@ -743,8 +743,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
743
743
  is_custom_product?: boolean | undefined;
744
744
  parent_id?: number | null | undefined;
745
745
  }[] | undefined;
746
- mark_id?: number | null | undefined;
747
746
  createdAt?: string | Date | undefined;
747
+ mark_id?: number | null | undefined;
748
748
  date_to_work?: string | undefined;
749
749
  kolvo_collected?: number | undefined;
750
750
  kolvo_submitted?: number | undefined;
@@ -972,8 +972,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
972
972
  warehouse_readiness_date?: Date | null | undefined;
973
973
  parent_id?: number | null | undefined;
974
974
  }[] | undefined;
975
- mark_id?: number | null | undefined;
976
975
  createdAt?: string | Date | undefined;
976
+ mark_id?: number | null | undefined;
977
977
  date_to_work?: string | undefined;
978
978
  }[] | null | undefined;
979
979
  waybills?: {
@@ -1155,8 +1155,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1155
1155
  is_custom_product?: boolean | undefined;
1156
1156
  parent_id?: number | null | undefined;
1157
1157
  }[] | undefined;
1158
- mark_id?: number | null | undefined;
1159
1158
  createdAt?: string | Date | undefined;
1159
+ mark_id?: number | null | undefined;
1160
1160
  date_to_work?: string | undefined;
1161
1161
  kolvo_collected?: number | undefined;
1162
1162
  kolvo_submitted?: number | undefined;
@@ -1349,8 +1349,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1349
1349
  warehouse_readiness_date?: Date | null | undefined;
1350
1350
  parent_id?: number | null | undefined;
1351
1351
  }[] | undefined;
1352
- mark_id?: number | null | undefined;
1353
1352
  createdAt?: string | Date | undefined;
1353
+ mark_id?: number | null | undefined;
1354
1354
  date_to_work?: string | undefined;
1355
1355
  }[] | null | undefined;
1356
1356
  waybills?: {
@@ -1534,8 +1534,8 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1534
1534
  is_custom_product?: boolean | undefined;
1535
1535
  parent_id?: number | null | undefined;
1536
1536
  }[] | undefined;
1537
- mark_id?: number | null | undefined;
1538
1537
  createdAt?: string | Date | undefined;
1538
+ mark_id?: number | null | undefined;
1539
1539
  date_to_work?: string | undefined;
1540
1540
  kolvo_collected?: number | undefined;
1541
1541
  kolvo_submitted?: number | undefined;
@@ -8,8 +8,22 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
8
8
  byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
9
9
  type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof AssembleIzdEnum>>>>;
10
10
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
11
+ sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
13
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ sortDesc: boolean;
16
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
17
+ }, {
18
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
19
+ sortDesc?: boolean | undefined;
20
+ }>, "many">>>;
11
21
  }, "strip", z.ZodTypeAny, {
12
22
  type: AssembleIzdEnum | null;
23
+ sort: {
24
+ sortDesc: boolean;
25
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
26
+ }[];
13
27
  page: number;
14
28
  searchString: string;
15
29
  responsibleUserId?: number | null | undefined;
@@ -19,6 +33,10 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
19
33
  page: number;
20
34
  searchString: string;
21
35
  type?: AssembleIzdEnum | null | undefined;
36
+ sort?: {
37
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
38
+ sortDesc?: boolean | undefined;
39
+ }[] | undefined;
22
40
  responsibleUserId?: number | null | undefined;
23
41
  byParents?: IFiltersByParents | null | undefined;
24
42
  byOrder?: IFiltersByByOrder | null | undefined;
@@ -9,5 +9,6 @@ exports.GetAssembleScladPaginationDtoZod = zod_1.z.object({
9
9
  responsibleUserId: zod_1.z.number().nullable().optional(),
10
10
  byParents: zod_1.z.custom().nullable().optional(),
11
11
  type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).nullish().default(utils_1.AssembleIzdEnum.all),
12
- byOrder: zod_1.z.custom().nullable().optional()
12
+ byOrder: zod_1.z.custom().nullable().optional(),
13
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
13
14
  });
@@ -12,8 +12,22 @@ export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
12
12
  sortReadines: z.ZodDefault<z.ZodNativeEnum<typeof SortReadinesEnum>>;
13
13
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
14
14
  onlyCanComplect: z.ZodBoolean;
15
+ sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
16
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
17
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ sortDesc: boolean;
20
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
21
+ }, {
22
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
23
+ sortDesc?: boolean | undefined;
24
+ }>, "many">>>;
15
25
  }, "strip", z.ZodTypeAny, {
16
26
  type: AssembleIzdEnum;
27
+ sort: {
28
+ sortDesc: boolean;
29
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
30
+ }[];
17
31
  page: number;
18
32
  searchString: string;
19
33
  responsibleUserId: number | null;
@@ -30,6 +44,10 @@ export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
30
44
  isBan: boolean;
31
45
  onlyCanComplect: boolean;
32
46
  type?: AssembleIzdEnum | undefined;
47
+ sort?: {
48
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
49
+ sortDesc?: boolean | undefined;
50
+ }[] | undefined;
33
51
  byParents?: IFiltersByParents | null | undefined;
34
52
  byOrder?: IFiltersByByOrder | null | undefined;
35
53
  notOrderedByProductionTask?: boolean | null | undefined;
@@ -13,5 +13,6 @@ exports.GetAssemblePaginationDtoZod = zod_1.z.object({
13
13
  type: zod_1.z.nativeEnum(utils_1.AssembleIzdEnum).default(utils_1.AssembleIzdEnum.all),
14
14
  sortReadines: zod_1.z.nativeEnum(utils_1.SortReadinesEnum).default(utils_1.SortReadinesEnum.any),
15
15
  byOrder: zod_1.z.custom().nullable().optional(),
16
- onlyCanComplect: zod_1.z.boolean()
16
+ onlyCanComplect: zod_1.z.boolean(),
17
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
17
18
  });
@@ -37,6 +37,12 @@ export interface IChangeInKitListAssemblyData {
37
37
  transaction: any;
38
38
  waybillId?: number;
39
39
  includeStockQuantity?: boolean;
40
+ specificationOverride?: {
41
+ listCbed: any[];
42
+ listDetal: any[];
43
+ materialList: any[];
44
+ listPokDet: any[];
45
+ };
40
46
  }
41
47
  export interface IChangeInKitQuantity {
42
48
  item: any;
@@ -61,6 +67,12 @@ export interface IDisactivateComplectKit {
61
67
  userId: number;
62
68
  transaction: any;
63
69
  actionRelativeId?: number;
70
+ specificationOverride?: {
71
+ listCbed: any[];
72
+ listDetal: any[];
73
+ materialList: any[];
74
+ listPokDet: any[];
75
+ };
64
76
  }
65
77
  export interface ICreateMovementObject {
66
78
  type: IzdType;
@@ -680,8 +680,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
680
680
  warehouse_readiness_date?: Date | null | undefined;
681
681
  parent_id?: number | null | undefined;
682
682
  }[] | undefined;
683
- mark_id?: number | null | undefined;
684
683
  createdAt?: string | Date | undefined;
684
+ mark_id?: number | null | undefined;
685
685
  date_to_work?: string | undefined;
686
686
  }, {
687
687
  status: import("../..").StatusAssembleKit;
@@ -743,8 +743,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
743
743
  is_custom_product?: boolean | undefined;
744
744
  parent_id?: number | null | undefined;
745
745
  }[] | undefined;
746
- mark_id?: number | null | undefined;
747
746
  createdAt?: string | Date | undefined;
747
+ mark_id?: number | null | undefined;
748
748
  date_to_work?: string | undefined;
749
749
  kolvo_collected?: number | undefined;
750
750
  kolvo_submitted?: number | undefined;
@@ -1000,8 +1000,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
1000
1000
  warehouse_readiness_date?: Date | null | undefined;
1001
1001
  parent_id?: number | null | undefined;
1002
1002
  }[] | undefined;
1003
- mark_id?: number | null | undefined;
1004
1003
  createdAt?: string | Date | undefined;
1004
+ mark_id?: number | null | undefined;
1005
1005
  date_to_work?: string | undefined;
1006
1006
  }[] | null | undefined;
1007
1007
  waybills?: {
@@ -1194,8 +1194,8 @@ export declare const AssembleComingSchema: z.ZodObject<{
1194
1194
  is_custom_product?: boolean | undefined;
1195
1195
  parent_id?: number | null | undefined;
1196
1196
  }[] | undefined;
1197
- mark_id?: number | null | undefined;
1198
1197
  createdAt?: string | Date | undefined;
1198
+ mark_id?: number | null | undefined;
1199
1199
  date_to_work?: string | undefined;
1200
1200
  kolvo_collected?: number | undefined;
1201
1201
  kolvo_submitted?: number | undefined;
@@ -681,8 +681,8 @@ export declare const AssembleSchema: z.ZodObject<{
681
681
  warehouse_readiness_date?: Date | null | undefined;
682
682
  parent_id?: number | null | undefined;
683
683
  }[] | undefined;
684
- mark_id?: number | null | undefined;
685
684
  createdAt?: string | Date | undefined;
685
+ mark_id?: number | null | undefined;
686
686
  date_to_work?: string | undefined;
687
687
  }, {
688
688
  status: import("../../utils").StatusAssembleKit;
@@ -744,8 +744,8 @@ export declare const AssembleSchema: z.ZodObject<{
744
744
  is_custom_product?: boolean | undefined;
745
745
  parent_id?: number | null | undefined;
746
746
  }[] | undefined;
747
- mark_id?: number | null | undefined;
748
747
  createdAt?: string | Date | undefined;
748
+ mark_id?: number | null | undefined;
749
749
  date_to_work?: string | undefined;
750
750
  kolvo_collected?: number | undefined;
751
751
  kolvo_submitted?: number | undefined;
@@ -973,8 +973,8 @@ export declare const AssembleSchema: z.ZodObject<{
973
973
  warehouse_readiness_date?: Date | null | undefined;
974
974
  parent_id?: number | null | undefined;
975
975
  }[] | undefined;
976
- mark_id?: number | null | undefined;
977
976
  createdAt?: string | Date | undefined;
977
+ mark_id?: number | null | undefined;
978
978
  date_to_work?: string | undefined;
979
979
  }[] | null | undefined;
980
980
  waybills?: {
@@ -1156,8 +1156,8 @@ export declare const AssembleSchema: z.ZodObject<{
1156
1156
  is_custom_product?: boolean | undefined;
1157
1157
  parent_id?: number | null | undefined;
1158
1158
  }[] | undefined;
1159
- mark_id?: number | null | undefined;
1160
1159
  createdAt?: string | Date | undefined;
1160
+ mark_id?: number | null | undefined;
1161
1161
  date_to_work?: string | undefined;
1162
1162
  kolvo_collected?: number | undefined;
1163
1163
  kolvo_submitted?: number | undefined;
@@ -2,3 +2,10 @@ export interface IUpdateAssembleKitResponsible {
2
2
  user_id: number;
3
3
  id: number;
4
4
  }
5
+ export type TMaterialStockConsumption<TMaterial = unknown> = {
6
+ availableStockQuantity: number;
7
+ label: string;
8
+ material: TMaterial;
9
+ normalizedRequiredStockQuantity: number;
10
+ requiredStockQuantity: number;
11
+ };
@@ -252,8 +252,8 @@ export declare const AssembleKitSchema: z.ZodObject<{
252
252
  warehouse_readiness_date?: Date | null | undefined;
253
253
  parent_id?: number | null | undefined;
254
254
  }[] | undefined;
255
- mark_id?: number | null | undefined;
256
255
  createdAt?: string | Date | undefined;
256
+ mark_id?: number | null | undefined;
257
257
  date_to_work?: string | undefined;
258
258
  }, {
259
259
  status: StatusAssembleKit;
@@ -315,8 +315,8 @@ export declare const AssembleKitSchema: z.ZodObject<{
315
315
  is_custom_product?: boolean | undefined;
316
316
  parent_id?: number | null | undefined;
317
317
  }[] | undefined;
318
- mark_id?: number | null | undefined;
319
318
  createdAt?: string | Date | undefined;
319
+ mark_id?: number | null | undefined;
320
320
  date_to_work?: string | undefined;
321
321
  kolvo_collected?: number | undefined;
322
322
  kolvo_submitted?: number | undefined;
@@ -6,7 +6,21 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
6
6
  statusWorking: z.ZodNativeEnum<typeof statusWorkingsDeficit>;
7
7
  searchString: z.ZodString;
8
8
  shipmentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
9
+ sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
11
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ sortDesc: boolean;
14
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
15
+ }, {
16
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
17
+ sortDesc?: boolean | undefined;
18
+ }>, "many">>>;
9
19
  }, "strip", z.ZodTypeAny, {
20
+ sort: {
21
+ sortDesc: boolean;
22
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
23
+ }[];
10
24
  searchString: string;
11
25
  statusWorking: statusWorkingsDeficit;
12
26
  cbedIds: number[];
@@ -16,6 +30,10 @@ export declare const GetDeficitDtoZod: z.ZodObject<{
16
30
  searchString: string;
17
31
  statusWorking: statusWorkingsDeficit;
18
32
  cbedIds: number[];
33
+ sort?: {
34
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
35
+ sortDesc?: boolean | undefined;
36
+ }[] | undefined;
19
37
  page?: number | null | undefined;
20
38
  shipmentIds?: number[] | null | undefined;
21
39
  }>;
@@ -8,5 +8,6 @@ exports.GetDeficitDtoZod = zod_1.z.object({
8
8
  page: zod_1.z.number().optional().nullable(),
9
9
  statusWorking: zod_1.z.nativeEnum(utils_1.statusWorkingsDeficit),
10
10
  searchString: zod_1.z.string(),
11
- shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional()
11
+ shipmentIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
12
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
12
13
  });
@@ -30,8 +30,8 @@ export declare const DeliveriesSchema: z.ZodObject<{
30
30
  id?: number | null | undefined;
31
31
  number_order?: string | undefined;
32
32
  number_check?: string | undefined;
33
- provider_id?: number | null | undefined;
34
33
  createdAt?: string | undefined;
34
+ provider_id?: number | null | undefined;
35
35
  count?: number | undefined;
36
36
  date_shipments?: Date | undefined;
37
37
  delivery_position_list?: DELIVERY_POSITION_LIST | undefined;
@@ -44,8 +44,8 @@ export declare const DeliveriesSchema: z.ZodObject<{
44
44
  id?: number | null | undefined;
45
45
  number_order?: string | undefined;
46
46
  number_check?: string | undefined;
47
- provider_id?: number | null | undefined;
48
47
  createdAt?: string | undefined;
48
+ provider_id?: number | null | undefined;
49
49
  count?: number | undefined;
50
50
  date_shipments?: Date | undefined;
51
51
  nds?: number | undefined;
@@ -6,7 +6,21 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
6
6
  searchString: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
7
  shipmentIds: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>>;
8
8
  page: z.ZodNumber;
9
+ sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
11
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ sortDesc: boolean;
14
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
15
+ }, {
16
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
17
+ sortDesc?: boolean | undefined;
18
+ }>, "many">>>;
9
19
  }, "strip", z.ZodTypeAny, {
20
+ sort: {
21
+ sortDesc: boolean;
22
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
23
+ }[];
10
24
  page: number;
11
25
  searchString: string;
12
26
  detalIds: number[];
@@ -14,6 +28,10 @@ export declare const GetDetalDeficitDtoZod: z.ZodObject<{
14
28
  shipmentIds: number[] | null;
15
29
  }, {
16
30
  page: number;
31
+ sort?: {
32
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
33
+ sortDesc?: boolean | undefined;
34
+ }[] | undefined;
17
35
  searchString?: string | undefined;
18
36
  detalIds?: number[] | undefined;
19
37
  statusWorking?: statusWorkingsDeficit | undefined;
@@ -11,5 +11,6 @@ exports.GetDetalDeficitDtoZod = zod_1.z.object({
11
11
  .default(utils_1.statusWorkingsDeficit.all),
12
12
  searchString: zod_1.z.string().optional().default(''),
13
13
  shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
14
- page: zod_1.z.number().int()
14
+ page: zod_1.z.number().int(),
15
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
15
16
  });
@@ -316,8 +316,8 @@ export declare const EquipmentSchema: z.ZodObject<{
316
316
  id?: number | null | undefined;
317
317
  number_order?: string | undefined;
318
318
  number_check?: string | undefined;
319
- provider_id?: number | null | undefined;
320
319
  createdAt?: string | undefined;
320
+ provider_id?: number | null | undefined;
321
321
  count?: number | undefined;
322
322
  date_shipments?: Date | undefined;
323
323
  delivery_position_list?: import("../..").DELIVERY_POSITION_LIST | undefined;
@@ -330,8 +330,8 @@ export declare const EquipmentSchema: z.ZodObject<{
330
330
  id?: number | null | undefined;
331
331
  number_order?: string | undefined;
332
332
  number_check?: string | undefined;
333
- provider_id?: number | null | undefined;
334
333
  createdAt?: string | undefined;
334
+ provider_id?: number | null | undefined;
335
335
  count?: number | undefined;
336
336
  date_shipments?: Date | undefined;
337
337
  nds?: number | undefined;
@@ -381,6 +381,7 @@ export declare const EquipmentSchema: z.ZodObject<{
381
381
  action: import("../../action").IActionText[];
382
382
  type_object: string;
383
383
  id?: number | null | undefined;
384
+ createdAt?: string | Date | undefined;
384
385
  responsible_id?: number | null | undefined;
385
386
  equipment_id?: number | null | undefined;
386
387
  user_id?: number | null | undefined;
@@ -410,13 +411,13 @@ export declare const EquipmentSchema: z.ZodObject<{
410
411
  role_id?: number | null | undefined;
411
412
  parent_action_idL?: number | null | undefined;
412
413
  production_task_id?: number | null | undefined;
413
- createdAt?: string | Date | undefined;
414
414
  revision_id?: number | null | undefined;
415
415
  }, {
416
416
  action: import("../../action").IActionText[];
417
417
  type_object: string;
418
418
  ban?: boolean | undefined;
419
419
  id?: number | null | undefined;
420
+ createdAt?: string | Date | undefined;
420
421
  responsible_id?: number | null | undefined;
421
422
  equipment_id?: number | null | undefined;
422
423
  user_id?: number | null | undefined;
@@ -446,7 +447,6 @@ export declare const EquipmentSchema: z.ZodObject<{
446
447
  role_id?: number | null | undefined;
447
448
  parent_action_idL?: number | null | undefined;
448
449
  production_task_id?: number | null | undefined;
449
- createdAt?: string | Date | undefined;
450
450
  revision_id?: number | null | undefined;
451
451
  }>, "many">>;
452
452
  }, "strip", z.ZodTypeAny, {
@@ -522,8 +522,8 @@ export declare const EquipmentSchema: z.ZodObject<{
522
522
  id?: number | null | undefined;
523
523
  number_order?: string | undefined;
524
524
  number_check?: string | undefined;
525
- provider_id?: number | null | undefined;
526
525
  createdAt?: string | undefined;
526
+ provider_id?: number | null | undefined;
527
527
  count?: number | undefined;
528
528
  date_shipments?: Date | undefined;
529
529
  delivery_position_list?: import("../..").DELIVERY_POSITION_LIST | undefined;
@@ -564,6 +564,7 @@ export declare const EquipmentSchema: z.ZodObject<{
564
564
  action: import("../../action").IActionText[];
565
565
  type_object: string;
566
566
  id?: number | null | undefined;
567
+ createdAt?: string | Date | undefined;
567
568
  responsible_id?: number | null | undefined;
568
569
  equipment_id?: number | null | undefined;
569
570
  user_id?: number | null | undefined;
@@ -593,7 +594,6 @@ export declare const EquipmentSchema: z.ZodObject<{
593
594
  role_id?: number | null | undefined;
594
595
  parent_action_idL?: number | null | undefined;
595
596
  production_task_id?: number | null | undefined;
596
- createdAt?: string | Date | undefined;
597
597
  revision_id?: number | null | undefined;
598
598
  }[] | undefined;
599
599
  nameInstrument?: any[] | undefined;
@@ -664,8 +664,8 @@ export declare const EquipmentSchema: z.ZodObject<{
664
664
  id?: number | null | undefined;
665
665
  number_order?: string | undefined;
666
666
  number_check?: string | undefined;
667
- provider_id?: number | null | undefined;
668
667
  createdAt?: string | undefined;
668
+ provider_id?: number | null | undefined;
669
669
  count?: number | undefined;
670
670
  date_shipments?: Date | undefined;
671
671
  nds?: number | undefined;
@@ -711,6 +711,7 @@ export declare const EquipmentSchema: z.ZodObject<{
711
711
  type_object: string;
712
712
  ban?: boolean | undefined;
713
713
  id?: number | null | undefined;
714
+ createdAt?: string | Date | undefined;
714
715
  responsible_id?: number | null | undefined;
715
716
  equipment_id?: number | null | undefined;
716
717
  user_id?: number | null | undefined;
@@ -740,7 +741,6 @@ export declare const EquipmentSchema: z.ZodObject<{
740
741
  role_id?: number | null | undefined;
741
742
  parent_action_idL?: number | null | undefined;
742
743
  production_task_id?: number | null | undefined;
743
- createdAt?: string | Date | undefined;
744
744
  revision_id?: number | null | undefined;
745
745
  }[] | undefined;
746
746
  price?: number | undefined;
@@ -7,7 +7,7 @@ exports.CreateExclusionDtoZod = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  const utils_1 = require("../../utils");
9
9
  exports.CreateExclusionDtoZod = zod_1.default.object({
10
- exclusion: zod_1.default.string().nonempty(),
10
+ exclusion: zod_1.default.string(),
11
11
  exclusionType: zod_1.default.nativeEnum(utils_1.EnumExclusionType),
12
12
  entityType: zod_1.default.nativeEnum(utils_1.IzdType)
13
13
  });
@@ -42,8 +42,8 @@ export declare const ExpenditureConsumptionSchema: z.ZodObject<{
42
42
  quanity: number;
43
43
  designation?: string | undefined;
44
44
  }[];
45
- waybill_id?: number | null | undefined;
46
45
  createdAt?: string | undefined;
46
+ waybill_id?: number | null | undefined;
47
47
  updatedAt?: string | undefined;
48
48
  sh_complit_id?: number | null | undefined;
49
49
  }, {
@@ -57,8 +57,8 @@ export declare const ExpenditureConsumptionSchema: z.ZodObject<{
57
57
  quanity: number;
58
58
  designation?: string | undefined;
59
59
  }[];
60
- waybill_id?: number | null | undefined;
61
60
  createdAt?: string | undefined;
61
+ waybill_id?: number | null | undefined;
62
62
  updatedAt?: string | undefined;
63
63
  sh_complit_id?: number | null | undefined;
64
64
  }>;