@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
  import { z } from 'zod';
2
+ import { ProductionPlanSortField } from '../../utils';
2
3
  import { IFiltersByByOrder, IFiltersByParents } from '../../production-tasks';
3
4
  export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
4
5
  page: z.ZodNumber;
@@ -8,11 +9,15 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
8
9
  byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
9
10
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
10
11
  childrenByProductionTaskIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
12
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
13
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
14
  }, "strip", z.ZodTypeAny, {
12
15
  page: number;
13
16
  searchString: string;
14
17
  isBan: boolean;
18
+ sortDesc: boolean;
15
19
  responsibleUserId?: number | null | undefined;
20
+ sortField?: ProductionPlanSortField | null | undefined;
16
21
  byParents?: IFiltersByParents | null | undefined;
17
22
  byOrder?: IFiltersByByOrder | null | undefined;
18
23
  childrenByProductionTaskIds?: number[] | null | undefined;
@@ -21,6 +26,8 @@ export declare const GetMetaloworkingPaginationDtoZod: z.ZodObject<{
21
26
  searchString: string;
22
27
  isBan: boolean;
23
28
  responsibleUserId?: number | null | undefined;
29
+ sortField?: ProductionPlanSortField | null | undefined;
30
+ sortDesc?: boolean | undefined;
24
31
  byParents?: IFiltersByParents | null | undefined;
25
32
  byOrder?: IFiltersByByOrder | null | undefined;
26
33
  childrenByProductionTaskIds?: number[] | null | undefined;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetMetaloworkingPaginationDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
+ const utils_1 = require("../../utils");
5
6
  exports.GetMetaloworkingPaginationDtoZod = zod_1.z.object({
6
7
  page: zod_1.z.number(),
7
8
  responsibleUserId: zod_1.z.number().nullable().optional(),
@@ -9,5 +10,7 @@ exports.GetMetaloworkingPaginationDtoZod = zod_1.z.object({
9
10
  isBan: zod_1.z.boolean(),
10
11
  byParents: zod_1.z.custom().nullable().optional(),
11
12
  byOrder: zod_1.z.custom().nullable().optional(),
12
- childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable()
13
+ childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
14
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
15
+ sortDesc: zod_1.z.boolean().optional().default(false)
13
16
  });
@@ -27,9 +27,9 @@ export declare const MetaloworkingByOperationSchema: z.ZodObject<{
27
27
  description: string;
28
28
  id: number;
29
29
  number_order: string;
30
+ createdAt: string;
30
31
  detal_id: number;
31
32
  shipment_id: number;
32
- createdAt: string;
33
33
  updatedAt: string;
34
34
  kolvo_create: number;
35
35
  kolvo_shipments: number;
@@ -43,9 +43,9 @@ export declare const MetaloworkingByOperationSchema: z.ZodObject<{
43
43
  description: string;
44
44
  id: number;
45
45
  number_order: string;
46
+ createdAt: string;
46
47
  detal_id: number;
47
48
  shipment_id: number;
48
- createdAt: string;
49
49
  updatedAt: string;
50
50
  kolvo_create: number;
51
51
  kolvo_shipments: number;
@@ -38,6 +38,7 @@ export declare const MovingSchema: z.ZodObject<{
38
38
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  session_id: z.ZodNullable<z.ZodNumber>;
40
40
  last_online: z.ZodNullable<z.ZodNumber>;
41
+ createdAt: z.ZodOptional<z.ZodString>;
41
42
  rolesId: z.ZodNumber;
42
43
  role: z.ZodAny;
43
44
  documents: z.ZodArray<z.ZodObject<{
@@ -315,6 +316,7 @@ export declare const MovingSchema: z.ZodObject<{
315
316
  action: import("../..").IActionText[];
316
317
  type_object: string;
317
318
  id?: number | null | undefined;
319
+ createdAt?: string | Date | undefined;
318
320
  responsible_id?: number | null | undefined;
319
321
  equipment_id?: number | null | undefined;
320
322
  user_id?: number | null | undefined;
@@ -344,13 +346,13 @@ export declare const MovingSchema: z.ZodObject<{
344
346
  role_id?: number | null | undefined;
345
347
  parent_action_idL?: number | null | undefined;
346
348
  production_task_id?: number | null | undefined;
347
- createdAt?: string | Date | undefined;
348
349
  revision_id?: number | null | undefined;
349
350
  }, {
350
351
  action: import("../..").IActionText[];
351
352
  type_object: string;
352
353
  ban?: boolean | undefined;
353
354
  id?: number | null | undefined;
355
+ createdAt?: string | Date | undefined;
354
356
  responsible_id?: number | null | undefined;
355
357
  equipment_id?: number | null | undefined;
356
358
  user_id?: number | null | undefined;
@@ -380,7 +382,6 @@ export declare const MovingSchema: z.ZodObject<{
380
382
  role_id?: number | null | undefined;
381
383
  parent_action_idL?: number | null | undefined;
382
384
  production_task_id?: number | null | undefined;
383
- createdAt?: string | Date | undefined;
384
385
  revision_id?: number | null | undefined;
385
386
  }>, "many">;
386
387
  responsibleForProduct: z.ZodArray<z.ZodObject<{
@@ -664,6 +665,7 @@ export declare const MovingSchema: z.ZodObject<{
664
665
  action: import("../..").IActionText[];
665
666
  type_object: string;
666
667
  id?: number | null | undefined;
668
+ createdAt?: string | Date | undefined;
667
669
  responsible_id?: number | null | undefined;
668
670
  equipment_id?: number | null | undefined;
669
671
  user_id?: number | null | undefined;
@@ -693,7 +695,6 @@ export declare const MovingSchema: z.ZodObject<{
693
695
  role_id?: number | null | undefined;
694
696
  parent_action_idL?: number | null | undefined;
695
697
  production_task_id?: number | null | undefined;
696
- createdAt?: string | Date | undefined;
697
698
  revision_id?: number | null | undefined;
698
699
  }[];
699
700
  responsibleForProduct: {
@@ -757,6 +758,7 @@ export declare const MovingSchema: z.ZodObject<{
757
758
  }[];
758
759
  role?: any;
759
760
  image?: string | null | undefined;
761
+ createdAt?: string | undefined;
760
762
  subdivision?: import("../../user").EnumSubdivision | undefined;
761
763
  }, {
762
764
  banReason: string | null;
@@ -858,6 +860,7 @@ export declare const MovingSchema: z.ZodObject<{
858
860
  type_object: string;
859
861
  ban?: boolean | undefined;
860
862
  id?: number | null | undefined;
863
+ createdAt?: string | Date | undefined;
861
864
  responsible_id?: number | null | undefined;
862
865
  equipment_id?: number | null | undefined;
863
866
  user_id?: number | null | undefined;
@@ -887,7 +890,6 @@ export declare const MovingSchema: z.ZodObject<{
887
890
  role_id?: number | null | undefined;
888
891
  parent_action_idL?: number | null | undefined;
889
892
  production_task_id?: number | null | undefined;
890
- createdAt?: string | Date | undefined;
891
893
  revision_id?: number | null | undefined;
892
894
  }[];
893
895
  responsibleForProduct: {
@@ -960,6 +962,7 @@ export declare const MovingSchema: z.ZodObject<{
960
962
  };
961
963
  }[] | undefined;
962
964
  image?: string | null | undefined;
965
+ createdAt?: string | undefined;
963
966
  subdivision?: import("../../user").EnumSubdivision | undefined;
964
967
  }>, "many">>;
965
968
  documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1149,6 +1152,7 @@ export declare const MovingSchema: z.ZodObject<{
1149
1152
  action: import("../..").IActionText[];
1150
1153
  type_object: string;
1151
1154
  id?: number | null | undefined;
1155
+ createdAt?: string | Date | undefined;
1152
1156
  responsible_id?: number | null | undefined;
1153
1157
  equipment_id?: number | null | undefined;
1154
1158
  user_id?: number | null | undefined;
@@ -1178,7 +1182,6 @@ export declare const MovingSchema: z.ZodObject<{
1178
1182
  role_id?: number | null | undefined;
1179
1183
  parent_action_idL?: number | null | undefined;
1180
1184
  production_task_id?: number | null | undefined;
1181
- createdAt?: string | Date | undefined;
1182
1185
  revision_id?: number | null | undefined;
1183
1186
  }[];
1184
1187
  responsibleForProduct: {
@@ -1242,6 +1245,7 @@ export declare const MovingSchema: z.ZodObject<{
1242
1245
  }[];
1243
1246
  role?: any;
1244
1247
  image?: string | null | undefined;
1248
+ createdAt?: string | undefined;
1245
1249
  subdivision?: import("../../user").EnumSubdivision | undefined;
1246
1250
  }[] | undefined;
1247
1251
  cause?: string | undefined;
@@ -1371,6 +1375,7 @@ export declare const MovingSchema: z.ZodObject<{
1371
1375
  type_object: string;
1372
1376
  ban?: boolean | undefined;
1373
1377
  id?: number | null | undefined;
1378
+ createdAt?: string | Date | undefined;
1374
1379
  responsible_id?: number | null | undefined;
1375
1380
  equipment_id?: number | null | undefined;
1376
1381
  user_id?: number | null | undefined;
@@ -1400,7 +1405,6 @@ export declare const MovingSchema: z.ZodObject<{
1400
1405
  role_id?: number | null | undefined;
1401
1406
  parent_action_idL?: number | null | undefined;
1402
1407
  production_task_id?: number | null | undefined;
1403
- createdAt?: string | Date | undefined;
1404
1408
  revision_id?: number | null | undefined;
1405
1409
  }[];
1406
1410
  responsibleForProduct: {
@@ -1473,6 +1477,7 @@ export declare const MovingSchema: z.ZodObject<{
1473
1477
  };
1474
1478
  }[] | undefined;
1475
1479
  image?: string | null | undefined;
1480
+ createdAt?: string | undefined;
1476
1481
  subdivision?: import("../../user").EnumSubdivision | undefined;
1477
1482
  }[] | undefined;
1478
1483
  cause?: string | undefined;
@@ -1,22 +1,28 @@
1
1
  import { z } from 'zod';
2
- import { statusWorkingsDeficit } from '../../utils';
2
+ import { ProductionPlanSortField, statusWorkingsDeficit } from '../../utils';
3
3
  export declare const GetDeficitProductSchema: z.ZodObject<{
4
4
  productIds: z.ZodArray<z.ZodNumber, "many">;
5
5
  statusWorking: z.ZodNativeEnum<typeof statusWorkingsDeficit>;
6
6
  searchString: z.ZodString;
7
7
  shipmentIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
8
8
  page: z.ZodOptional<z.ZodNumber>;
9
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
10
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
11
  }, "strip", z.ZodTypeAny, {
10
12
  searchString: string;
11
13
  statusWorking: statusWorkingsDeficit;
14
+ sortDesc: boolean;
12
15
  productIds: number[];
13
16
  page?: number | undefined;
14
17
  shipmentIds?: number[] | null | undefined;
18
+ sortField?: ProductionPlanSortField | null | undefined;
15
19
  }, {
16
20
  searchString: string;
17
21
  statusWorking: statusWorkingsDeficit;
18
22
  productIds: number[];
19
23
  page?: number | undefined;
20
24
  shipmentIds?: number[] | null | undefined;
25
+ sortField?: ProductionPlanSortField | null | undefined;
26
+ sortDesc?: boolean | undefined;
21
27
  }>;
22
28
  export type GetDeficitProductDtoType = z.infer<typeof GetDeficitProductSchema>;
@@ -8,5 +8,7 @@ exports.GetDeficitProductSchema = zod_1.z.object({
8
8
  statusWorking: zod_1.z.nativeEnum(utils_1.statusWorkingsDeficit),
9
9
  searchString: zod_1.z.string(),
10
10
  shipmentIds: zod_1.z.number().int().array().optional().nullable(),
11
- page: zod_1.z.number().int().optional()
11
+ page: zod_1.z.number().int().optional(),
12
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
13
+ sortDesc: zod_1.z.boolean().optional().default(false)
12
14
  });
@@ -33,6 +33,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
33
33
  ban: z.ZodDefault<z.ZodBoolean>;
34
34
  date_order: z.ZodDate;
35
35
  date_shipments: z.ZodDate;
36
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
36
37
  number_order: z.ZodString;
37
38
  kol: z.ZodNumber;
38
39
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -109,6 +110,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
109
110
  purchasesId?: number | undefined;
110
111
  } | undefined;
111
112
  company_id?: number | undefined;
113
+ warehouse_readiness_date?: Date | null | undefined;
112
114
  parent_id?: number | null | undefined;
113
115
  }, {
114
116
  description: string;
@@ -137,6 +139,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
137
139
  purchasesId?: number | undefined;
138
140
  } | undefined;
139
141
  company_id?: number | undefined;
142
+ warehouse_readiness_date?: Date | null | undefined;
140
143
  bron?: boolean | undefined;
141
144
  is_custom_product?: boolean | undefined;
142
145
  parent_id?: number | null | undefined;
@@ -173,6 +176,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
173
176
  purchasesId?: number | undefined;
174
177
  } | undefined;
175
178
  company_id?: number | undefined;
179
+ warehouse_readiness_date?: Date | null | undefined;
176
180
  parent_id?: number | null | undefined;
177
181
  };
178
182
  designation: string | null;
@@ -230,6 +234,7 @@ export declare const ProductDeficitSchema: z.ZodObject<{
230
234
  purchasesId?: number | undefined;
231
235
  } | undefined;
232
236
  company_id?: number | undefined;
237
+ warehouse_readiness_date?: Date | null | undefined;
233
238
  bron?: boolean | undefined;
234
239
  is_custom_product?: boolean | undefined;
235
240
  parent_id?: number | null | undefined;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { ProductionPlanSortField } from '../../utils';
2
3
  import { IFiltersByByOrder, IFiltersByParents } from '../interfaces/online-board';
3
4
  export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
4
5
  page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -20,13 +21,17 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
20
21
  byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
21
22
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
22
23
  childrenByProductionTaskIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
24
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
25
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
23
26
  }, "strip", z.ZodTypeAny, {
27
+ sortDesc: boolean;
24
28
  typeOperationIds: number[] | null;
25
29
  employeIds: number[] | null;
26
30
  assembleIds: number[] | null;
27
31
  isOnlyDetalId: boolean | null;
28
32
  page?: number | null | undefined;
29
33
  searchString?: string | undefined;
34
+ sortField?: ProductionPlanSortField | null | undefined;
30
35
  range?: {
31
36
  start?: any;
32
37
  end?: any;
@@ -37,6 +42,8 @@ export declare const GetDeficitsDetalByProductionTaskDtoZod: z.ZodObject<{
37
42
  }, {
38
43
  page?: number | null | undefined;
39
44
  searchString?: string | undefined;
45
+ sortField?: ProductionPlanSortField | null | undefined;
46
+ sortDesc?: boolean | undefined;
40
47
  range?: {
41
48
  start?: any;
42
49
  end?: any;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetDeficitsDetalByProductionTaskDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
+ const utils_1 = require("../../utils");
5
6
  exports.GetDeficitsDetalByProductionTaskDtoZod = zod_1.z.object({
6
7
  page: zod_1.z.number().int().nullable().optional(),
7
8
  typeOperationIds: zod_1.z.array(zod_1.z.number()).nullish().default([]),
@@ -18,5 +19,7 @@ exports.GetDeficitsDetalByProductionTaskDtoZod = zod_1.z.object({
18
19
  searchString: zod_1.z.string().optional(),
19
20
  byParents: zod_1.z.custom().nullable().optional(),
20
21
  byOrder: zod_1.z.custom().nullable().optional(),
21
- childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).nullable().optional()
22
+ childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
23
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
24
+ sortDesc: zod_1.z.boolean().optional().default(false)
22
25
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { StockOrderType } from '../../utils';
2
+ import { ProductionPlanSortField, StockOrderType } from '../../utils';
3
3
  import { IFiltersByByOrder, IFiltersByParents, IFiltersByUserProductionTask } from '../interfaces/online-board';
4
4
  export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
5
5
  page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -23,12 +23,16 @@ export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
23
23
  childrenByProductionTaskIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
24
24
  isComplect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
25
25
  productionIds: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>>>;
26
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
27
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
26
28
  }, "strip", z.ZodTypeAny, {
29
+ sortDesc: boolean;
27
30
  workingType: StockOrderType;
28
31
  employeIds: number[] | null;
29
32
  isComplect: boolean;
30
33
  productionIds: number[] | null;
31
34
  page?: number | null | undefined;
35
+ sortField?: ProductionPlanSortField | null | undefined;
32
36
  range?: {
33
37
  start?: any;
34
38
  end?: any;
@@ -42,6 +46,8 @@ export declare const OnlineBoardWorkingDtoZod: z.ZodObject<{
42
46
  }, {
43
47
  workingType: StockOrderType;
44
48
  page?: number | null | undefined;
49
+ sortField?: ProductionPlanSortField | null | undefined;
50
+ sortDesc?: boolean | undefined;
45
51
  range?: {
46
52
  start?: any;
47
53
  end?: any;
@@ -24,5 +24,7 @@ exports.OnlineBoardWorkingDtoZod = zod_1.z.object({
24
24
  .optional(),
25
25
  childrenByProductionTaskIds: zod_1.z.array(zod_1.z.number()).nullable().optional(),
26
26
  isComplect: zod_1.z.boolean().optional().default(false),
27
- productionIds: zod_1.z.array(zod_1.z.number()).optional().nullish().default([])
27
+ productionIds: zod_1.z.array(zod_1.z.number()).optional().nullish().default([]),
28
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
29
+ sortDesc: zod_1.z.boolean().optional().default(false)
28
30
  });
@@ -72,6 +72,7 @@ export interface IGetByOperation {
72
72
  operationPosId: number;
73
73
  endDate: Date | null;
74
74
  mainEquipment: ModelEquipment | null;
75
+ equipmentIds: number[];
75
76
  currentOperation: ModelOperation;
76
77
  entityType: IzdType;
77
78
  createTimeMax: number;
@@ -261,6 +262,7 @@ export interface IGetByEquipment {
261
262
  mainShipment: ModelShipments | null;
262
263
  totalProductionTAskOrdered: number;
263
264
  mainOperation: ModelOperation;
265
+ equipmentIds: number[];
264
266
  prevOperation: ModelOperation | null;
265
267
  nextOperation: ModelOperation | null;
266
268
  orderedByCurrentTask: number;
@@ -36,8 +36,8 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
36
36
  production_task_id: number;
37
37
  idx: number;
38
38
  id?: number | null | undefined;
39
- ass_id?: number | null | undefined;
40
39
  createdAt?: Date | undefined;
40
+ ass_id?: number | null | undefined;
41
41
  updatedAt?: Date | undefined;
42
42
  metall_id?: number | null | undefined;
43
43
  quantity_max?: number | null | undefined;
@@ -48,8 +48,8 @@ export declare const ProductionOperationPosSchema: z.ZodObject<{
48
48
  idx: number;
49
49
  ban?: boolean | undefined;
50
50
  id?: number | null | undefined;
51
- ass_id?: number | null | undefined;
52
51
  createdAt?: Date | undefined;
52
+ ass_id?: number | null | undefined;
53
53
  updatedAt?: Date | undefined;
54
54
  metall_id?: number | null | undefined;
55
55
  quantity_max?: number | null | undefined;
@@ -34,6 +34,7 @@ export declare const RoleSchema: z.ZodObject<{
34
34
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  session_id: z.ZodNullable<z.ZodNumber>;
36
36
  last_online: z.ZodNullable<z.ZodNumber>;
37
+ createdAt: z.ZodOptional<z.ZodString>;
37
38
  rolesId: z.ZodNumber;
38
39
  role: z.ZodAny;
39
40
  documents: z.ZodArray<z.ZodObject<{
@@ -311,6 +312,7 @@ export declare const RoleSchema: z.ZodObject<{
311
312
  action: import("../..").IActionText[];
312
313
  type_object: string;
313
314
  id?: number | null | undefined;
315
+ createdAt?: string | Date | undefined;
314
316
  responsible_id?: number | null | undefined;
315
317
  equipment_id?: number | null | undefined;
316
318
  user_id?: number | null | undefined;
@@ -340,13 +342,13 @@ export declare const RoleSchema: z.ZodObject<{
340
342
  role_id?: number | null | undefined;
341
343
  parent_action_idL?: number | null | undefined;
342
344
  production_task_id?: number | null | undefined;
343
- createdAt?: string | Date | undefined;
344
345
  revision_id?: number | null | undefined;
345
346
  }, {
346
347
  action: import("../..").IActionText[];
347
348
  type_object: string;
348
349
  ban?: boolean | undefined;
349
350
  id?: number | null | undefined;
351
+ createdAt?: string | Date | undefined;
350
352
  responsible_id?: number | null | undefined;
351
353
  equipment_id?: number | null | undefined;
352
354
  user_id?: number | null | undefined;
@@ -376,7 +378,6 @@ export declare const RoleSchema: z.ZodObject<{
376
378
  role_id?: number | null | undefined;
377
379
  parent_action_idL?: number | null | undefined;
378
380
  production_task_id?: number | null | undefined;
379
- createdAt?: string | Date | undefined;
380
381
  revision_id?: number | null | undefined;
381
382
  }>, "many">;
382
383
  responsibleForProduct: z.ZodArray<z.ZodObject<{
@@ -660,6 +661,7 @@ export declare const RoleSchema: z.ZodObject<{
660
661
  action: import("../..").IActionText[];
661
662
  type_object: string;
662
663
  id?: number | null | undefined;
664
+ createdAt?: string | Date | undefined;
663
665
  responsible_id?: number | null | undefined;
664
666
  equipment_id?: number | null | undefined;
665
667
  user_id?: number | null | undefined;
@@ -689,7 +691,6 @@ export declare const RoleSchema: z.ZodObject<{
689
691
  role_id?: number | null | undefined;
690
692
  parent_action_idL?: number | null | undefined;
691
693
  production_task_id?: number | null | undefined;
692
- createdAt?: string | Date | undefined;
693
694
  revision_id?: number | null | undefined;
694
695
  }[];
695
696
  responsibleForProduct: {
@@ -753,6 +754,7 @@ export declare const RoleSchema: z.ZodObject<{
753
754
  }[];
754
755
  role?: any;
755
756
  image?: string | null | undefined;
757
+ createdAt?: string | undefined;
756
758
  subdivision?: import("../../user").EnumSubdivision | undefined;
757
759
  }, {
758
760
  banReason: string | null;
@@ -854,6 +856,7 @@ export declare const RoleSchema: z.ZodObject<{
854
856
  type_object: string;
855
857
  ban?: boolean | undefined;
856
858
  id?: number | null | undefined;
859
+ createdAt?: string | Date | undefined;
857
860
  responsible_id?: number | null | undefined;
858
861
  equipment_id?: number | null | undefined;
859
862
  user_id?: number | null | undefined;
@@ -883,7 +886,6 @@ export declare const RoleSchema: z.ZodObject<{
883
886
  role_id?: number | null | undefined;
884
887
  parent_action_idL?: number | null | undefined;
885
888
  production_task_id?: number | null | undefined;
886
- createdAt?: string | Date | undefined;
887
889
  revision_id?: number | null | undefined;
888
890
  }[];
889
891
  responsibleForProduct: {
@@ -956,6 +958,7 @@ export declare const RoleSchema: z.ZodObject<{
956
958
  };
957
959
  }[] | undefined;
958
960
  image?: string | null | undefined;
961
+ createdAt?: string | undefined;
959
962
  subdivision?: import("../../user").EnumSubdivision | undefined;
960
963
  }>, "many">>;
961
964
  }, "strip", z.ZodTypeAny, {
@@ -1072,6 +1075,7 @@ export declare const RoleSchema: z.ZodObject<{
1072
1075
  action: import("../..").IActionText[];
1073
1076
  type_object: string;
1074
1077
  id?: number | null | undefined;
1078
+ createdAt?: string | Date | undefined;
1075
1079
  responsible_id?: number | null | undefined;
1076
1080
  equipment_id?: number | null | undefined;
1077
1081
  user_id?: number | null | undefined;
@@ -1101,7 +1105,6 @@ export declare const RoleSchema: z.ZodObject<{
1101
1105
  role_id?: number | null | undefined;
1102
1106
  parent_action_idL?: number | null | undefined;
1103
1107
  production_task_id?: number | null | undefined;
1104
- createdAt?: string | Date | undefined;
1105
1108
  revision_id?: number | null | undefined;
1106
1109
  }[];
1107
1110
  responsibleForProduct: {
@@ -1165,6 +1168,7 @@ export declare const RoleSchema: z.ZodObject<{
1165
1168
  }[];
1166
1169
  role?: any;
1167
1170
  image?: string | null | undefined;
1171
+ createdAt?: string | undefined;
1168
1172
  subdivision?: import("../../user").EnumSubdivision | undefined;
1169
1173
  }[] | undefined;
1170
1174
  }, {
@@ -1271,6 +1275,7 @@ export declare const RoleSchema: z.ZodObject<{
1271
1275
  type_object: string;
1272
1276
  ban?: boolean | undefined;
1273
1277
  id?: number | null | undefined;
1278
+ createdAt?: string | Date | undefined;
1274
1279
  responsible_id?: number | null | undefined;
1275
1280
  equipment_id?: number | null | undefined;
1276
1281
  user_id?: number | null | undefined;
@@ -1300,7 +1305,6 @@ export declare const RoleSchema: z.ZodObject<{
1300
1305
  role_id?: number | null | undefined;
1301
1306
  parent_action_idL?: number | null | undefined;
1302
1307
  production_task_id?: number | null | undefined;
1303
- createdAt?: string | Date | undefined;
1304
1308
  revision_id?: number | null | undefined;
1305
1309
  }[];
1306
1310
  responsibleForProduct: {
@@ -1373,6 +1377,7 @@ export declare const RoleSchema: z.ZodObject<{
1373
1377
  };
1374
1378
  }[] | undefined;
1375
1379
  image?: string | null | undefined;
1380
+ createdAt?: string | undefined;
1376
1381
  subdivision?: import("../../user").EnumSubdivision | undefined;
1377
1382
  }[] | undefined;
1378
1383
  description?: string | undefined;
@@ -20,8 +20,8 @@ export declare const RemainSchema: z.ZodObject<{
20
20
  description: string;
21
21
  id: number;
22
22
  name: string;
23
- quantity: number;
24
23
  createdAt: string | Date;
24
+ quantity: number;
25
25
  attetion: boolean;
26
26
  min_remaining?: number | undefined;
27
27
  shipments_kolvo?: number | undefined;
@@ -35,8 +35,8 @@ export declare const RemainSchema: z.ZodObject<{
35
35
  description: string;
36
36
  id: number;
37
37
  name: string;
38
- quantity: number;
39
38
  createdAt: string | Date;
39
+ quantity: number;
40
40
  attetion: boolean;
41
41
  min_remaining?: number | undefined;
42
42
  shipments_kolvo?: number | undefined;
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export declare const setShipmentWarehouseReadinessDateSchema: z.ZodObject<{
3
+ shipmentId: z.ZodNumber;
4
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ shipmentId: number;
7
+ date?: string | null | undefined;
8
+ }, {
9
+ shipmentId: number;
10
+ date?: string | null | undefined;
11
+ }>;
12
+ export type setShipmentWarehouseReadinessDateDto = z.infer<typeof setShipmentWarehouseReadinessDateSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setShipmentWarehouseReadinessDateSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.setShipmentWarehouseReadinessDateSchema = zod_1.z.object({
6
+ shipmentId: zod_1.z.number(),
7
+ date: zod_1.z.string().nullish()
8
+ });
@@ -3,6 +3,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
3
3
  count: z.ZodNumber;
4
4
  rows: z.ZodArray<z.ZodObject<{
5
5
  date_shipments: z.ZodUnion<[z.ZodString, z.ZodDate]>;
6
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
6
7
  id: z.ZodNumber;
7
8
  number_order: z.ZodString;
8
9
  product: z.ZodOptional<z.ZodObject<{
@@ -119,6 +120,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
119
120
  shipmentsId: number;
120
121
  };
121
122
  }[] | undefined;
123
+ warehouse_readiness_date?: string | Date | null | undefined;
122
124
  detals?: {
123
125
  id: number;
124
126
  ShipmentsDetal: {
@@ -151,6 +153,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
151
153
  shipmentsId: number;
152
154
  };
153
155
  }[] | undefined;
156
+ warehouse_readiness_date?: string | Date | null | undefined;
154
157
  detals?: {
155
158
  id: number;
156
159
  ShipmentsDetal: {
@@ -186,6 +189,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
186
189
  shipmentsId: number;
187
190
  };
188
191
  }[] | undefined;
192
+ warehouse_readiness_date?: string | Date | null | undefined;
189
193
  detals?: {
190
194
  id: number;
191
195
  ShipmentsDetal: {
@@ -221,6 +225,7 @@ export declare const ShipmentsListPaginationResponseSchema: z.ZodObject<{
221
225
  shipmentsId: number;
222
226
  };
223
227
  }[] | undefined;
228
+ warehouse_readiness_date?: string | Date | null | undefined;
224
229
  detals?: {
225
230
  id: number;
226
231
  ShipmentsDetal: {
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { statusShipment } from '../../utils';
2
+ import { ProductionPlanSortField, statusShipment } from '../../utils';
3
3
  export declare const ShipmentsPaginateSchema: z.ZodObject<{
4
4
  offset: z.ZodNumber;
5
5
  parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -17,15 +17,19 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
17
17
  companyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
18
  searchStr: z.ZodOptional<z.ZodString>;
19
19
  attributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
21
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
20
22
  }, "strip", z.ZodTypeAny, {
21
23
  status: statusShipment[];
22
24
  dateRange: {
23
25
  start: string;
24
26
  end: string;
25
27
  } | null;
28
+ sortDesc: boolean;
26
29
  offset: number;
27
30
  attributes?: string[] | undefined;
28
31
  parentId?: number | null | undefined;
32
+ sortField?: ProductionPlanSortField | null | undefined;
29
33
  searchStr?: string | undefined;
30
34
  companyId?: number | null | undefined;
31
35
  }, {
@@ -37,6 +41,8 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
37
41
  offset: number;
38
42
  attributes?: string[] | undefined;
39
43
  parentId?: number | null | undefined;
44
+ sortField?: ProductionPlanSortField | null | undefined;
45
+ sortDesc?: boolean | undefined;
40
46
  searchStr?: string | undefined;
41
47
  companyId?: number | null | undefined;
42
48
  }>;