@pksep/zod-shared 0.0.531 → 0.0.533

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 (79) hide show
  1. package/dist/action/enums/enums.d.ts +1 -0
  2. package/dist/action/enums/enums.js +1 -0
  3. package/dist/action/schemas/actions.schema.d.ts +2 -2
  4. package/dist/assemble/dto/assembly-paginate.dto.d.ts +7 -1
  5. package/dist/assemble/dto/assembly-paginate.dto.js +3 -1
  6. package/dist/assemble/dto/create-assemble-kit.dto.d.ts +14 -8
  7. package/dist/assemble/dto/create-assemble-kit.dto.js +7 -3
  8. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +22 -6
  9. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.d.ts +7 -1
  10. package/dist/assemble/dto/get-assemble-pagination-sclad.dto.js +3 -1
  11. package/dist/assemble/dto/get-assemble-pagination.dto.d.ts +7 -1
  12. package/dist/assemble/dto/get-assemble-pagination.dto.js +3 -1
  13. package/dist/assemble/interfaces/interfaces.d.ts +12 -0
  14. package/dist/assemble/schemas/assemble-coming.schema.d.ts +16 -4
  15. package/dist/assemble/schemas/assemble.schema.d.ts +16 -4
  16. package/dist/assemble-kit/interfaces/interface.d.ts +7 -0
  17. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +7 -2
  18. package/dist/cbed/dto/get-deficit.dto.d.ts +7 -1
  19. package/dist/cbed/dto/get-deficit.dto.js +3 -1
  20. package/dist/deliveries/schemas/deliveries.schema.d.ts +2 -2
  21. package/dist/detal/dto/get-deficit.dto.d.ts +7 -1
  22. package/dist/detal/dto/get-deficit.dto.js +3 -1
  23. package/dist/detal/schemas/detal-deficit.schema.d.ts +10 -0
  24. package/dist/detal/schemas/detal.schema.d.ts +5 -0
  25. package/dist/equipment/schemas/equipment.schema.d.ts +8 -8
  26. package/dist/exclusion/dto/create-exclusion.dto.d.ts +16 -0
  27. package/dist/exclusion/dto/create-exclusion.dto.js +13 -0
  28. package/dist/exclusion/dto/get-exclusion-pagination.dto.d.ts +13 -0
  29. package/dist/exclusion/dto/get-exclusion-pagination.dto.js +12 -0
  30. package/dist/exclusion/dto/update-exclusion.dto.d.ts +13 -0
  31. package/dist/exclusion/dto/update-exclusion.dto.js +12 -0
  32. package/dist/exclusion/index.d.ts +5 -0
  33. package/dist/exclusion/index.js +21 -0
  34. package/dist/exclusion/interfaces/interface.d.ts +8 -0
  35. package/dist/exclusion/interfaces/interface.js +2 -0
  36. package/dist/exclusion/schemas/exclusion.schema.d.ts +28 -0
  37. package/dist/exclusion/schemas/exclusion.schema.js +17 -0
  38. package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
  39. package/dist/expenditure/schema/expenditure.schema.d.ts +2 -2
  40. package/dist/material/dto/get-deficit.dto.d.ts +7 -1
  41. package/dist/material/dto/get-deficit.dto.js +3 -1
  42. package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +7 -0
  43. package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +4 -1
  44. package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +2 -2
  45. package/dist/moving/schemas/moving.schema.d.ts +11 -6
  46. package/dist/product/dto/get-deficit.dto.d.ts +7 -1
  47. package/dist/product/dto/get-deficit.dto.js +3 -1
  48. package/dist/product/schemas/product-deficit.schema.d.ts +5 -0
  49. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +7 -0
  50. package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.js +4 -1
  51. package/dist/production-tasks/dto/online-board-working.dto.d.ts +7 -1
  52. package/dist/production-tasks/dto/online-board-working.dto.js +3 -1
  53. package/dist/production-tasks/interfaces/production-tasks.d.ts +2 -0
  54. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +2 -2
  55. package/dist/role/schemas/role.schema.d.ts +11 -6
  56. package/dist/sclad/schemas/remain.schema.d.ts +2 -2
  57. package/dist/shipments/dto/set-warehouse-readiness-date.dto.d.ts +12 -0
  58. package/dist/shipments/dto/set-warehouse-readiness-date.dto.js +8 -0
  59. package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +5 -0
  60. package/dist/shipments/dto/shipments-paginate.dto.d.ts +7 -1
  61. package/dist/shipments/dto/shipments-paginate.dto.js +3 -1
  62. package/dist/shipments/index.d.ts +1 -0
  63. package/dist/shipments/index.js +1 -0
  64. package/dist/shipments/schemas/shipment-list-item.schema.d.ts +3 -0
  65. package/dist/shipments/schemas/shipment-list-item.schema.js +4 -0
  66. package/dist/shipments/schemas/shipments.schema.d.ts +3 -0
  67. package/dist/shipments/schemas/shipments.schema.js +1 -0
  68. package/dist/specification/schema/attributes.schema.d.ts +7 -0
  69. package/dist/user/dto/update-user-table-config.dto.d.ts +5 -0
  70. package/dist/user/schemas/user-table-config.schema.d.ts +43 -0
  71. package/dist/user/schemas/user-table-config.schema.js +2 -1
  72. package/dist/user/schemas/user.schema.d.ts +7 -4
  73. package/dist/user/schemas/user.schema.js +1 -0
  74. package/dist/utils/index.d.ts +1 -0
  75. package/dist/utils/index.js +1 -0
  76. package/dist/utils/sorting.d.ts +10 -0
  77. package/dist/utils/sorting.js +40 -0
  78. package/dist/utils/tables-config/methods.js +28 -11
  79. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  export declare enum ActionEntityTypes {
2
+ production_operation_positions = "production_operation_positions",
2
3
  product = "product",
3
4
  cbed = "cbed",
4
5
  movement_error = "movement_error",
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActionEntityTypesDB = exports.ActionEntityTypes = void 0;
4
4
  var ActionEntityTypes;
5
5
  (function (ActionEntityTypes) {
6
+ ActionEntityTypes["production_operation_positions"] = "production_operation_positions";
6
7
  ActionEntityTypes["product"] = "product";
7
8
  ActionEntityTypes["cbed"] = "cbed";
8
9
  ActionEntityTypes["movement_error"] = "movement_error";
@@ -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> & {
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { IzdType } from '../../utils';
2
+ import { IzdType, ProductionPlanSortField } from '../../utils';
3
3
  import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
4
4
  export declare const AssemblyPaginateDtoZod: z.ZodObject<{
5
5
  type: z.ZodEnum<[IzdType.product, IzdType.cbed]>;
@@ -8,11 +8,15 @@ 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
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
12
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
13
  }, "strip", z.ZodTypeAny, {
12
14
  type: IzdType.product | IzdType.cbed;
13
15
  searchString: string;
16
+ sortDesc: boolean;
14
17
  isShowDeactivate: boolean;
15
18
  page?: number | undefined;
19
+ sortField?: ProductionPlanSortField | null | undefined;
16
20
  byParents?: IFiltersByParents | null | undefined;
17
21
  byOrder?: IFiltersByByOrder | null | undefined;
18
22
  }, {
@@ -20,6 +24,8 @@ export declare const AssemblyPaginateDtoZod: z.ZodObject<{
20
24
  isShowDeactivate: boolean;
21
25
  page?: number | undefined;
22
26
  searchString?: string | undefined;
27
+ sortField?: ProductionPlanSortField | null | undefined;
28
+ sortDesc?: boolean | undefined;
23
29
  byParents?: IFiltersByParents | null | undefined;
24
30
  byOrder?: IFiltersByByOrder | null | undefined;
25
31
  }>;
@@ -10,5 +10,7 @@ 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
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
15
+ sortDesc: zod_1.z.boolean().optional().default(false)
14
16
  });
@@ -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
  });
@@ -20,6 +20,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
20
20
  ban: z.ZodDefault<z.ZodBoolean>;
21
21
  date_order: z.ZodDate;
22
22
  date_shipments: z.ZodDate;
23
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
23
24
  number_order: z.ZodString;
24
25
  kol: z.ZodNumber;
25
26
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -96,6 +97,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
96
97
  purchasesId?: number | undefined;
97
98
  } | undefined;
98
99
  company_id?: number | undefined;
100
+ warehouse_readiness_date?: Date | null | undefined;
99
101
  parent_id?: number | null | undefined;
100
102
  }, {
101
103
  description: string;
@@ -124,6 +126,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
124
126
  purchasesId?: number | undefined;
125
127
  } | undefined;
126
128
  company_id?: number | undefined;
129
+ warehouse_readiness_date?: Date | null | undefined;
127
130
  bron?: boolean | undefined;
128
131
  is_custom_product?: boolean | undefined;
129
132
  parent_id?: number | null | undefined;
@@ -500,6 +503,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
500
503
  ban: z.ZodDefault<z.ZodBoolean>;
501
504
  date_order: z.ZodDate;
502
505
  date_shipments: z.ZodDate;
506
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
503
507
  number_order: z.ZodString;
504
508
  kol: z.ZodNumber;
505
509
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -576,6 +580,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
576
580
  purchasesId?: number | undefined;
577
581
  } | undefined;
578
582
  company_id?: number | undefined;
583
+ warehouse_readiness_date?: Date | null | undefined;
579
584
  parent_id?: number | null | undefined;
580
585
  }, {
581
586
  description: string;
@@ -604,6 +609,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
604
609
  purchasesId?: number | undefined;
605
610
  } | undefined;
606
611
  company_id?: number | undefined;
612
+ warehouse_readiness_date?: Date | null | undefined;
607
613
  bron?: boolean | undefined;
608
614
  is_custom_product?: boolean | undefined;
609
615
  parent_id?: number | null | undefined;
@@ -671,10 +677,11 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
671
677
  purchasesId?: number | undefined;
672
678
  } | undefined;
673
679
  company_id?: number | undefined;
680
+ warehouse_readiness_date?: Date | null | undefined;
674
681
  parent_id?: number | null | undefined;
675
682
  }[] | undefined;
676
- mark_id?: number | null | undefined;
677
683
  createdAt?: string | Date | undefined;
684
+ mark_id?: number | null | undefined;
678
685
  date_to_work?: string | undefined;
679
686
  }, {
680
687
  status: import("../..").StatusAssembleKit;
@@ -731,12 +738,13 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
731
738
  purchasesId?: number | undefined;
732
739
  } | undefined;
733
740
  company_id?: number | undefined;
741
+ warehouse_readiness_date?: Date | null | undefined;
734
742
  bron?: boolean | undefined;
735
743
  is_custom_product?: boolean | undefined;
736
744
  parent_id?: number | null | undefined;
737
745
  }[] | undefined;
738
- mark_id?: number | null | undefined;
739
746
  createdAt?: string | Date | undefined;
747
+ mark_id?: number | null | undefined;
740
748
  date_to_work?: string | undefined;
741
749
  kolvo_collected?: number | undefined;
742
750
  kolvo_submitted?: number | undefined;
@@ -883,6 +891,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
883
891
  purchasesId?: number | undefined;
884
892
  } | undefined;
885
893
  company_id?: number | undefined;
894
+ warehouse_readiness_date?: Date | null | undefined;
886
895
  parent_id?: number | null | undefined;
887
896
  } | null | undefined;
888
897
  production_task?: {
@@ -960,10 +969,11 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
960
969
  purchasesId?: number | undefined;
961
970
  } | undefined;
962
971
  company_id?: number | undefined;
972
+ warehouse_readiness_date?: Date | null | undefined;
963
973
  parent_id?: number | null | undefined;
964
974
  }[] | undefined;
965
- mark_id?: number | null | undefined;
966
975
  createdAt?: string | Date | undefined;
976
+ mark_id?: number | null | undefined;
967
977
  date_to_work?: string | undefined;
968
978
  }[] | null | undefined;
969
979
  waybills?: {
@@ -1064,6 +1074,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1064
1074
  purchasesId?: number | undefined;
1065
1075
  } | undefined;
1066
1076
  company_id?: number | undefined;
1077
+ warehouse_readiness_date?: Date | null | undefined;
1067
1078
  bron?: boolean | undefined;
1068
1079
  is_custom_product?: boolean | undefined;
1069
1080
  parent_id?: number | null | undefined;
@@ -1139,12 +1150,13 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1139
1150
  purchasesId?: number | undefined;
1140
1151
  } | undefined;
1141
1152
  company_id?: number | undefined;
1153
+ warehouse_readiness_date?: Date | null | undefined;
1142
1154
  bron?: boolean | undefined;
1143
1155
  is_custom_product?: boolean | undefined;
1144
1156
  parent_id?: number | null | undefined;
1145
1157
  }[] | undefined;
1146
- mark_id?: number | null | undefined;
1147
1158
  createdAt?: string | Date | undefined;
1159
+ mark_id?: number | null | undefined;
1148
1160
  date_to_work?: string | undefined;
1149
1161
  kolvo_collected?: number | undefined;
1150
1162
  kolvo_submitted?: number | undefined;
@@ -1256,6 +1268,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1256
1268
  purchasesId?: number | undefined;
1257
1269
  } | undefined;
1258
1270
  company_id?: number | undefined;
1271
+ warehouse_readiness_date?: Date | null | undefined;
1259
1272
  parent_id?: number | null | undefined;
1260
1273
  } | null | undefined;
1261
1274
  production_task?: {
@@ -1333,10 +1346,11 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1333
1346
  purchasesId?: number | undefined;
1334
1347
  } | undefined;
1335
1348
  company_id?: number | undefined;
1349
+ warehouse_readiness_date?: Date | null | undefined;
1336
1350
  parent_id?: number | null | undefined;
1337
1351
  }[] | undefined;
1338
- mark_id?: number | null | undefined;
1339
1352
  createdAt?: string | Date | undefined;
1353
+ mark_id?: number | null | undefined;
1340
1354
  date_to_work?: string | undefined;
1341
1355
  }[] | null | undefined;
1342
1356
  waybills?: {
@@ -1439,6 +1453,7 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1439
1453
  purchasesId?: number | undefined;
1440
1454
  } | undefined;
1441
1455
  company_id?: number | undefined;
1456
+ warehouse_readiness_date?: Date | null | undefined;
1442
1457
  bron?: boolean | undefined;
1443
1458
  is_custom_product?: boolean | undefined;
1444
1459
  parent_id?: number | null | undefined;
@@ -1514,12 +1529,13 @@ export declare const GetAssembleByOperationCountDtoZod: z.ZodObject<{
1514
1529
  purchasesId?: number | undefined;
1515
1530
  } | undefined;
1516
1531
  company_id?: number | undefined;
1532
+ warehouse_readiness_date?: Date | null | undefined;
1517
1533
  bron?: boolean | undefined;
1518
1534
  is_custom_product?: boolean | undefined;
1519
1535
  parent_id?: number | null | undefined;
1520
1536
  }[] | undefined;
1521
- mark_id?: number | null | undefined;
1522
1537
  createdAt?: string | Date | undefined;
1538
+ mark_id?: number | null | undefined;
1523
1539
  date_to_work?: string | undefined;
1524
1540
  kolvo_collected?: number | undefined;
1525
1541
  kolvo_submitted?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
- import { AssembleIzdEnum } from '../../utils';
3
+ import { AssembleIzdEnum, ProductionPlanSortField } from '../../utils';
4
4
  export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
5
5
  page: z.ZodNumber;
6
6
  searchString: z.ZodString;
@@ -8,11 +8,15 @@ 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
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
12
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
13
  }, "strip", z.ZodTypeAny, {
12
14
  type: AssembleIzdEnum | null;
13
15
  page: number;
14
16
  searchString: string;
17
+ sortDesc: boolean;
15
18
  responsibleUserId?: number | null | undefined;
19
+ sortField?: ProductionPlanSortField | null | undefined;
16
20
  byParents?: IFiltersByParents | null | undefined;
17
21
  byOrder?: IFiltersByByOrder | null | undefined;
18
22
  }, {
@@ -20,6 +24,8 @@ export declare const GetAssembleScladPaginationDtoZod: z.ZodObject<{
20
24
  searchString: string;
21
25
  type?: AssembleIzdEnum | null | undefined;
22
26
  responsibleUserId?: number | null | undefined;
27
+ sortField?: ProductionPlanSortField | null | undefined;
28
+ sortDesc?: boolean | undefined;
23
29
  byParents?: IFiltersByParents | null | undefined;
24
30
  byOrder?: IFiltersByByOrder | null | undefined;
25
31
  }>;
@@ -9,5 +9,7 @@ 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
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
14
+ sortDesc: zod_1.z.boolean().optional().default(false)
13
15
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { AssembleIzdEnum, SortReadinesEnum } from '../../utils';
2
+ import { AssembleIzdEnum, ProductionPlanSortField, SortReadinesEnum } from '../../utils';
3
3
  import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
4
4
  export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
5
5
  page: z.ZodNumber;
@@ -12,14 +12,18 @@ 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
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
16
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15
17
  }, "strip", z.ZodTypeAny, {
16
18
  type: AssembleIzdEnum;
17
19
  page: number;
18
20
  searchString: string;
19
21
  responsibleUserId: number | null;
20
22
  isBan: boolean;
23
+ sortDesc: boolean;
21
24
  sortReadines: SortReadinesEnum;
22
25
  onlyCanComplect: boolean;
26
+ sortField?: ProductionPlanSortField | null | undefined;
23
27
  byParents?: IFiltersByParents | null | undefined;
24
28
  byOrder?: IFiltersByByOrder | null | undefined;
25
29
  notOrderedByProductionTask?: boolean | null | undefined;
@@ -30,6 +34,8 @@ export declare const GetAssemblePaginationDtoZod: z.ZodObject<{
30
34
  isBan: boolean;
31
35
  onlyCanComplect: boolean;
32
36
  type?: AssembleIzdEnum | undefined;
37
+ sortField?: ProductionPlanSortField | null | undefined;
38
+ sortDesc?: boolean | undefined;
33
39
  byParents?: IFiltersByParents | null | undefined;
34
40
  byOrder?: IFiltersByByOrder | null | undefined;
35
41
  notOrderedByProductionTask?: boolean | null | undefined;
@@ -13,5 +13,7 @@ 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
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
18
+ sortDesc: zod_1.z.boolean().optional().default(false)
17
19
  });
@@ -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;
@@ -21,6 +21,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
21
21
  ban: z.ZodDefault<z.ZodBoolean>;
22
22
  date_order: z.ZodDate;
23
23
  date_shipments: z.ZodDate;
24
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
24
25
  number_order: z.ZodString;
25
26
  kol: z.ZodNumber;
26
27
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -97,6 +98,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
97
98
  purchasesId?: number | undefined;
98
99
  } | undefined;
99
100
  company_id?: number | undefined;
101
+ warehouse_readiness_date?: Date | null | undefined;
100
102
  parent_id?: number | null | undefined;
101
103
  }, {
102
104
  description: string;
@@ -125,6 +127,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
125
127
  purchasesId?: number | undefined;
126
128
  } | undefined;
127
129
  company_id?: number | undefined;
130
+ warehouse_readiness_date?: Date | null | undefined;
128
131
  bron?: boolean | undefined;
129
132
  is_custom_product?: boolean | undefined;
130
133
  parent_id?: number | null | undefined;
@@ -500,6 +503,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
500
503
  ban: z.ZodDefault<z.ZodBoolean>;
501
504
  date_order: z.ZodDate;
502
505
  date_shipments: z.ZodDate;
506
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
503
507
  number_order: z.ZodString;
504
508
  kol: z.ZodNumber;
505
509
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -576,6 +580,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
576
580
  purchasesId?: number | undefined;
577
581
  } | undefined;
578
582
  company_id?: number | undefined;
583
+ warehouse_readiness_date?: Date | null | undefined;
579
584
  parent_id?: number | null | undefined;
580
585
  }, {
581
586
  description: string;
@@ -604,6 +609,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
604
609
  purchasesId?: number | undefined;
605
610
  } | undefined;
606
611
  company_id?: number | undefined;
612
+ warehouse_readiness_date?: Date | null | undefined;
607
613
  bron?: boolean | undefined;
608
614
  is_custom_product?: boolean | undefined;
609
615
  parent_id?: number | null | undefined;
@@ -671,10 +677,11 @@ export declare const AssembleComingSchema: z.ZodObject<{
671
677
  purchasesId?: number | undefined;
672
678
  } | undefined;
673
679
  company_id?: number | undefined;
680
+ warehouse_readiness_date?: Date | null | undefined;
674
681
  parent_id?: number | null | undefined;
675
682
  }[] | undefined;
676
- mark_id?: number | null | undefined;
677
683
  createdAt?: string | Date | undefined;
684
+ mark_id?: number | null | undefined;
678
685
  date_to_work?: string | undefined;
679
686
  }, {
680
687
  status: import("../..").StatusAssembleKit;
@@ -731,12 +738,13 @@ export declare const AssembleComingSchema: z.ZodObject<{
731
738
  purchasesId?: number | undefined;
732
739
  } | undefined;
733
740
  company_id?: number | undefined;
741
+ warehouse_readiness_date?: Date | null | undefined;
734
742
  bron?: boolean | undefined;
735
743
  is_custom_product?: boolean | undefined;
736
744
  parent_id?: number | null | undefined;
737
745
  }[] | undefined;
738
- mark_id?: number | null | undefined;
739
746
  createdAt?: string | Date | undefined;
747
+ mark_id?: number | null | undefined;
740
748
  date_to_work?: string | undefined;
741
749
  kolvo_collected?: number | undefined;
742
750
  kolvo_submitted?: number | undefined;
@@ -907,6 +915,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
907
915
  purchasesId?: number | undefined;
908
916
  } | undefined;
909
917
  company_id?: number | undefined;
918
+ warehouse_readiness_date?: Date | null | undefined;
910
919
  parent_id?: number | null | undefined;
911
920
  } | null | undefined;
912
921
  production_task?: {
@@ -988,10 +997,11 @@ export declare const AssembleComingSchema: z.ZodObject<{
988
997
  purchasesId?: number | undefined;
989
998
  } | undefined;
990
999
  company_id?: number | undefined;
1000
+ warehouse_readiness_date?: Date | null | undefined;
991
1001
  parent_id?: number | null | undefined;
992
1002
  }[] | undefined;
993
- mark_id?: number | null | undefined;
994
1003
  createdAt?: string | Date | undefined;
1004
+ mark_id?: number | null | undefined;
995
1005
  date_to_work?: string | undefined;
996
1006
  }[] | null | undefined;
997
1007
  waybills?: {
@@ -1099,6 +1109,7 @@ export declare const AssembleComingSchema: z.ZodObject<{
1099
1109
  purchasesId?: number | undefined;
1100
1110
  } | undefined;
1101
1111
  company_id?: number | undefined;
1112
+ warehouse_readiness_date?: Date | null | undefined;
1102
1113
  bron?: boolean | undefined;
1103
1114
  is_custom_product?: boolean | undefined;
1104
1115
  parent_id?: number | null | undefined;
@@ -1178,12 +1189,13 @@ export declare const AssembleComingSchema: z.ZodObject<{
1178
1189
  purchasesId?: number | undefined;
1179
1190
  } | undefined;
1180
1191
  company_id?: number | undefined;
1192
+ warehouse_readiness_date?: Date | null | undefined;
1181
1193
  bron?: boolean | undefined;
1182
1194
  is_custom_product?: boolean | undefined;
1183
1195
  parent_id?: number | null | undefined;
1184
1196
  }[] | undefined;
1185
- mark_id?: number | null | undefined;
1186
1197
  createdAt?: string | Date | undefined;
1198
+ mark_id?: number | null | undefined;
1187
1199
  date_to_work?: string | undefined;
1188
1200
  kolvo_collected?: number | undefined;
1189
1201
  kolvo_submitted?: number | undefined;
@@ -21,6 +21,7 @@ export declare const AssembleSchema: z.ZodObject<{
21
21
  ban: z.ZodDefault<z.ZodBoolean>;
22
22
  date_order: z.ZodDate;
23
23
  date_shipments: z.ZodDate;
24
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
24
25
  number_order: z.ZodString;
25
26
  kol: z.ZodNumber;
26
27
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -97,6 +98,7 @@ export declare const AssembleSchema: z.ZodObject<{
97
98
  purchasesId?: number | undefined;
98
99
  } | undefined;
99
100
  company_id?: number | undefined;
101
+ warehouse_readiness_date?: Date | null | undefined;
100
102
  parent_id?: number | null | undefined;
101
103
  }, {
102
104
  description: string;
@@ -125,6 +127,7 @@ export declare const AssembleSchema: z.ZodObject<{
125
127
  purchasesId?: number | undefined;
126
128
  } | undefined;
127
129
  company_id?: number | undefined;
130
+ warehouse_readiness_date?: Date | null | undefined;
128
131
  bron?: boolean | undefined;
129
132
  is_custom_product?: boolean | undefined;
130
133
  parent_id?: number | null | undefined;
@@ -501,6 +504,7 @@ export declare const AssembleSchema: z.ZodObject<{
501
504
  ban: z.ZodDefault<z.ZodBoolean>;
502
505
  date_order: z.ZodDate;
503
506
  date_shipments: z.ZodDate;
507
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
504
508
  number_order: z.ZodString;
505
509
  kol: z.ZodNumber;
506
510
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -577,6 +581,7 @@ export declare const AssembleSchema: z.ZodObject<{
577
581
  purchasesId?: number | undefined;
578
582
  } | undefined;
579
583
  company_id?: number | undefined;
584
+ warehouse_readiness_date?: Date | null | undefined;
580
585
  parent_id?: number | null | undefined;
581
586
  }, {
582
587
  description: string;
@@ -605,6 +610,7 @@ export declare const AssembleSchema: z.ZodObject<{
605
610
  purchasesId?: number | undefined;
606
611
  } | undefined;
607
612
  company_id?: number | undefined;
613
+ warehouse_readiness_date?: Date | null | undefined;
608
614
  bron?: boolean | undefined;
609
615
  is_custom_product?: boolean | undefined;
610
616
  parent_id?: number | null | undefined;
@@ -672,10 +678,11 @@ export declare const AssembleSchema: z.ZodObject<{
672
678
  purchasesId?: number | undefined;
673
679
  } | undefined;
674
680
  company_id?: number | undefined;
681
+ warehouse_readiness_date?: Date | null | undefined;
675
682
  parent_id?: number | null | undefined;
676
683
  }[] | undefined;
677
- mark_id?: number | null | undefined;
678
684
  createdAt?: string | Date | undefined;
685
+ mark_id?: number | null | undefined;
679
686
  date_to_work?: string | undefined;
680
687
  }, {
681
688
  status: import("../../utils").StatusAssembleKit;
@@ -732,12 +739,13 @@ export declare const AssembleSchema: z.ZodObject<{
732
739
  purchasesId?: number | undefined;
733
740
  } | undefined;
734
741
  company_id?: number | undefined;
742
+ warehouse_readiness_date?: Date | null | undefined;
735
743
  bron?: boolean | undefined;
736
744
  is_custom_product?: boolean | undefined;
737
745
  parent_id?: number | null | undefined;
738
746
  }[] | undefined;
739
- mark_id?: number | null | undefined;
740
747
  createdAt?: string | Date | undefined;
748
+ mark_id?: number | null | undefined;
741
749
  date_to_work?: string | undefined;
742
750
  kolvo_collected?: number | undefined;
743
751
  kolvo_submitted?: number | undefined;
@@ -884,6 +892,7 @@ export declare const AssembleSchema: z.ZodObject<{
884
892
  purchasesId?: number | undefined;
885
893
  } | undefined;
886
894
  company_id?: number | undefined;
895
+ warehouse_readiness_date?: Date | null | undefined;
887
896
  parent_id?: number | null | undefined;
888
897
  } | null | undefined;
889
898
  production_task?: {
@@ -961,10 +970,11 @@ export declare const AssembleSchema: z.ZodObject<{
961
970
  purchasesId?: number | undefined;
962
971
  } | undefined;
963
972
  company_id?: number | undefined;
973
+ warehouse_readiness_date?: Date | null | undefined;
964
974
  parent_id?: number | null | undefined;
965
975
  }[] | undefined;
966
- mark_id?: number | null | undefined;
967
976
  createdAt?: string | Date | undefined;
977
+ mark_id?: number | null | undefined;
968
978
  date_to_work?: string | undefined;
969
979
  }[] | null | undefined;
970
980
  waybills?: {
@@ -1065,6 +1075,7 @@ export declare const AssembleSchema: z.ZodObject<{
1065
1075
  purchasesId?: number | undefined;
1066
1076
  } | undefined;
1067
1077
  company_id?: number | undefined;
1078
+ warehouse_readiness_date?: Date | null | undefined;
1068
1079
  bron?: boolean | undefined;
1069
1080
  is_custom_product?: boolean | undefined;
1070
1081
  parent_id?: number | null | undefined;
@@ -1140,12 +1151,13 @@ export declare const AssembleSchema: z.ZodObject<{
1140
1151
  purchasesId?: number | undefined;
1141
1152
  } | undefined;
1142
1153
  company_id?: number | undefined;
1154
+ warehouse_readiness_date?: Date | null | undefined;
1143
1155
  bron?: boolean | undefined;
1144
1156
  is_custom_product?: boolean | undefined;
1145
1157
  parent_id?: number | null | undefined;
1146
1158
  }[] | undefined;
1147
- mark_id?: number | null | undefined;
1148
1159
  createdAt?: string | Date | undefined;
1160
+ mark_id?: number | null | undefined;
1149
1161
  date_to_work?: string | undefined;
1150
1162
  kolvo_collected?: number | undefined;
1151
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
+ };