@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
@@ -75,6 +75,7 @@ export declare const AssembleKitSchema: z.ZodObject<{
75
75
  ban: z.ZodDefault<z.ZodBoolean>;
76
76
  date_order: z.ZodDate;
77
77
  date_shipments: z.ZodDate;
78
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
78
79
  number_order: z.ZodString;
79
80
  kol: z.ZodNumber;
80
81
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -151,6 +152,7 @@ export declare const AssembleKitSchema: z.ZodObject<{
151
152
  purchasesId?: number | undefined;
152
153
  } | undefined;
153
154
  company_id?: number | undefined;
155
+ warehouse_readiness_date?: Date | null | undefined;
154
156
  parent_id?: number | null | undefined;
155
157
  }, {
156
158
  description: string;
@@ -179,6 +181,7 @@ export declare const AssembleKitSchema: z.ZodObject<{
179
181
  purchasesId?: number | undefined;
180
182
  } | undefined;
181
183
  company_id?: number | undefined;
184
+ warehouse_readiness_date?: Date | null | undefined;
182
185
  bron?: boolean | undefined;
183
186
  is_custom_product?: boolean | undefined;
184
187
  parent_id?: number | null | undefined;
@@ -246,10 +249,11 @@ export declare const AssembleKitSchema: z.ZodObject<{
246
249
  purchasesId?: number | undefined;
247
250
  } | undefined;
248
251
  company_id?: number | undefined;
252
+ warehouse_readiness_date?: Date | null | undefined;
249
253
  parent_id?: number | null | undefined;
250
254
  }[] | undefined;
251
- mark_id?: number | null | undefined;
252
255
  createdAt?: string | Date | undefined;
256
+ mark_id?: number | null | undefined;
253
257
  date_to_work?: string | undefined;
254
258
  }, {
255
259
  status: StatusAssembleKit;
@@ -306,12 +310,13 @@ export declare const AssembleKitSchema: z.ZodObject<{
306
310
  purchasesId?: number | undefined;
307
311
  } | undefined;
308
312
  company_id?: number | undefined;
313
+ warehouse_readiness_date?: Date | null | undefined;
309
314
  bron?: boolean | undefined;
310
315
  is_custom_product?: boolean | undefined;
311
316
  parent_id?: number | null | undefined;
312
317
  }[] | undefined;
313
- mark_id?: number | null | undefined;
314
318
  createdAt?: string | Date | undefined;
319
+ mark_id?: number | null | undefined;
315
320
  date_to_work?: string | undefined;
316
321
  kolvo_collected?: number | undefined;
317
322
  kolvo_submitted?: number | 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 GetDeficitDtoZod: z.ZodObject<{
4
4
  cbedIds: z.ZodArray<z.ZodNumber, "many">;
5
5
  page: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
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
+ 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
  cbedIds: number[];
13
16
  page?: number | null | undefined;
14
17
  shipmentIds?: number[] | null | undefined;
18
+ sortField?: ProductionPlanSortField | null | undefined;
15
19
  }, {
16
20
  searchString: string;
17
21
  statusWorking: statusWorkingsDeficit;
18
22
  cbedIds: number[];
19
23
  page?: number | null | undefined;
20
24
  shipmentIds?: number[] | null | undefined;
25
+ sortField?: ProductionPlanSortField | null | undefined;
26
+ sortDesc?: boolean | undefined;
21
27
  }>;
22
28
  export type GetDeficitDtoZodType = z.infer<typeof GetDeficitDtoZod>;
@@ -8,5 +8,7 @@ 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
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
13
+ sortDesc: zod_1.z.boolean().optional().default(false)
12
14
  });
@@ -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;
@@ -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 GetDetalDeficitDtoZod: z.ZodObject<{
4
4
  detalIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
5
5
  statusWorking: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof statusWorkingsDeficit>>>;
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
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ProductionPlanSortField>>>;
10
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
11
  }, "strip", z.ZodTypeAny, {
10
12
  page: number;
11
13
  searchString: string;
12
14
  detalIds: number[];
13
15
  statusWorking: statusWorkingsDeficit;
14
16
  shipmentIds: number[] | null;
17
+ sortDesc: boolean;
18
+ sortField?: ProductionPlanSortField | null | undefined;
15
19
  }, {
16
20
  page: number;
17
21
  searchString?: string | undefined;
18
22
  detalIds?: number[] | undefined;
19
23
  statusWorking?: statusWorkingsDeficit | undefined;
20
24
  shipmentIds?: number[] | null | undefined;
25
+ sortField?: ProductionPlanSortField | null | undefined;
26
+ sortDesc?: boolean | undefined;
21
27
  }>;
22
28
  export type GetDetalDeficitDtoType = z.infer<typeof GetDetalDeficitDtoZod>;
@@ -11,5 +11,7 @@ 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
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
16
+ sortDesc: zod_1.z.boolean().optional().default(false)
15
17
  });
@@ -913,6 +913,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
913
913
  ban: z.ZodDefault<z.ZodBoolean>;
914
914
  date_order: z.ZodDate;
915
915
  date_shipments: z.ZodDate;
916
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
916
917
  number_order: z.ZodString;
917
918
  kol: z.ZodNumber;
918
919
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -989,6 +990,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
989
990
  purchasesId?: number | undefined;
990
991
  } | undefined;
991
992
  company_id?: number | undefined;
993
+ warehouse_readiness_date?: Date | null | undefined;
992
994
  parent_id?: number | null | undefined;
993
995
  }, {
994
996
  description: string;
@@ -1017,6 +1019,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1017
1019
  purchasesId?: number | undefined;
1018
1020
  } | undefined;
1019
1021
  company_id?: number | undefined;
1022
+ warehouse_readiness_date?: Date | null | undefined;
1020
1023
  bron?: boolean | undefined;
1021
1024
  is_custom_product?: boolean | undefined;
1022
1025
  parent_id?: number | null | undefined;
@@ -1029,6 +1032,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1029
1032
  ban: z.ZodDefault<z.ZodBoolean>;
1030
1033
  date_order: z.ZodDate;
1031
1034
  date_shipments: z.ZodDate;
1035
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1032
1036
  number_order: z.ZodString;
1033
1037
  kol: z.ZodNumber;
1034
1038
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -1105,6 +1109,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1105
1109
  purchasesId?: number | undefined;
1106
1110
  } | undefined;
1107
1111
  company_id?: number | undefined;
1112
+ warehouse_readiness_date?: Date | null | undefined;
1108
1113
  parent_id?: number | null | undefined;
1109
1114
  }, {
1110
1115
  description: string;
@@ -1133,6 +1138,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1133
1138
  purchasesId?: number | undefined;
1134
1139
  } | undefined;
1135
1140
  company_id?: number | undefined;
1141
+ warehouse_readiness_date?: Date | null | undefined;
1136
1142
  bron?: boolean | undefined;
1137
1143
  is_custom_product?: boolean | undefined;
1138
1144
  parent_id?: number | null | undefined;
@@ -1168,6 +1174,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1168
1174
  purchasesId?: number | undefined;
1169
1175
  } | undefined;
1170
1176
  company_id?: number | undefined;
1177
+ warehouse_readiness_date?: Date | null | undefined;
1171
1178
  parent_id?: number | null | undefined;
1172
1179
  };
1173
1180
  id: number;
@@ -1283,6 +1290,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1283
1290
  purchasesId?: number | undefined;
1284
1291
  } | undefined;
1285
1292
  company_id?: number | undefined;
1293
+ warehouse_readiness_date?: Date | null | undefined;
1286
1294
  parent_id?: number | null | undefined;
1287
1295
  }[] | undefined;
1288
1296
  task_relative_id?: number | null | undefined;
@@ -1486,6 +1494,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1486
1494
  purchasesId?: number | undefined;
1487
1495
  } | undefined;
1488
1496
  company_id?: number | undefined;
1497
+ warehouse_readiness_date?: Date | null | undefined;
1489
1498
  bron?: boolean | undefined;
1490
1499
  is_custom_product?: boolean | undefined;
1491
1500
  parent_id?: number | null | undefined;
@@ -1590,6 +1599,7 @@ export declare const DetalDeficitSchema: z.ZodObject<{
1590
1599
  purchasesId?: number | undefined;
1591
1600
  } | undefined;
1592
1601
  company_id?: number | undefined;
1602
+ warehouse_readiness_date?: Date | null | undefined;
1593
1603
  bron?: boolean | undefined;
1594
1604
  is_custom_product?: boolean | undefined;
1595
1605
  parent_id?: number | null | undefined;
@@ -919,6 +919,7 @@ export declare const DetalSchema: z.ZodObject<{
919
919
  ban: z.ZodDefault<z.ZodBoolean>;
920
920
  date_order: z.ZodDate;
921
921
  date_shipments: z.ZodDate;
922
+ warehouse_readiness_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
922
923
  number_order: z.ZodString;
923
924
  kol: z.ZodNumber;
924
925
  bron: z.ZodDefault<z.ZodBoolean>;
@@ -995,6 +996,7 @@ export declare const DetalSchema: z.ZodObject<{
995
996
  purchasesId?: number | undefined;
996
997
  } | undefined;
997
998
  company_id?: number | undefined;
999
+ warehouse_readiness_date?: Date | null | undefined;
998
1000
  parent_id?: number | null | undefined;
999
1001
  }, {
1000
1002
  description: string;
@@ -1023,6 +1025,7 @@ export declare const DetalSchema: z.ZodObject<{
1023
1025
  purchasesId?: number | undefined;
1024
1026
  } | undefined;
1025
1027
  company_id?: number | undefined;
1028
+ warehouse_readiness_date?: Date | null | undefined;
1026
1029
  bron?: boolean | undefined;
1027
1030
  is_custom_product?: boolean | undefined;
1028
1031
  parent_id?: number | null | undefined;
@@ -1142,6 +1145,7 @@ export declare const DetalSchema: z.ZodObject<{
1142
1145
  purchasesId?: number | undefined;
1143
1146
  } | undefined;
1144
1147
  company_id?: number | undefined;
1148
+ warehouse_readiness_date?: Date | null | undefined;
1145
1149
  parent_id?: number | null | undefined;
1146
1150
  }[] | undefined;
1147
1151
  task_relative_id?: number | null | undefined;
@@ -1417,6 +1421,7 @@ export declare const DetalSchema: z.ZodObject<{
1417
1421
  purchasesId?: number | undefined;
1418
1422
  } | undefined;
1419
1423
  company_id?: number | undefined;
1424
+ warehouse_readiness_date?: Date | null | undefined;
1420
1425
  bron?: boolean | undefined;
1421
1426
  is_custom_product?: boolean | undefined;
1422
1427
  parent_id?: number | null | undefined;
@@ -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;
@@ -0,0 +1,16 @@
1
+ import z from 'zod';
2
+ import { EnumExclusionType, IzdType } from '../../utils';
3
+ export declare const CreateExclusionDtoZod: z.ZodObject<{
4
+ exclusion: z.ZodString;
5
+ exclusionType: z.ZodNativeEnum<typeof EnumExclusionType>;
6
+ entityType: z.ZodNativeEnum<typeof IzdType>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ exclusion: string;
9
+ entityType: IzdType;
10
+ exclusionType: EnumExclusionType;
11
+ }, {
12
+ exclusion: string;
13
+ entityType: IzdType;
14
+ exclusionType: EnumExclusionType;
15
+ }>;
16
+ export type CreateExclusionDtoType = z.infer<typeof CreateExclusionDtoZod>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreateExclusionDtoZod = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const utils_1 = require("../../utils");
9
+ exports.CreateExclusionDtoZod = zod_1.default.object({
10
+ exclusion: zod_1.default.string(),
11
+ exclusionType: zod_1.default.nativeEnum(utils_1.EnumExclusionType),
12
+ entityType: zod_1.default.nativeEnum(utils_1.IzdType)
13
+ });
@@ -0,0 +1,13 @@
1
+ import z from 'zod';
2
+ import { IzdType } from '../../utils';
3
+ export declare const GetExclusionPaginationDtoZod: z.ZodObject<{
4
+ page: z.ZodNumber;
5
+ entityType: z.ZodNativeEnum<typeof IzdType>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ page: number;
8
+ entityType: IzdType;
9
+ }, {
10
+ page: number;
11
+ entityType: IzdType;
12
+ }>;
13
+ export type GetExclusionPaginationDtoType = z.infer<typeof GetExclusionPaginationDtoZod>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GetExclusionPaginationDtoZod = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const utils_1 = require("../../utils");
9
+ exports.GetExclusionPaginationDtoZod = zod_1.default.object({
10
+ page: zod_1.default.number(),
11
+ entityType: zod_1.default.nativeEnum(utils_1.IzdType)
12
+ });
@@ -0,0 +1,13 @@
1
+ import z from 'zod';
2
+ import { EnumExclusionType } from '../../utils';
3
+ export declare const UpdateExclusionDtoZod: z.ZodObject<{
4
+ exclusion: z.ZodString;
5
+ exclusionType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof EnumExclusionType>>>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ exclusion: string;
8
+ exclusionType?: EnumExclusionType | null | undefined;
9
+ }, {
10
+ exclusion: string;
11
+ exclusionType?: EnumExclusionType | null | undefined;
12
+ }>;
13
+ export type UpdateExclusionDtoType = z.infer<typeof UpdateExclusionDtoZod>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UpdateExclusionDtoZod = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const utils_1 = require("../../utils");
9
+ exports.UpdateExclusionDtoZod = zod_1.default.object({
10
+ exclusion: zod_1.default.string().nonempty(),
11
+ exclusionType: zod_1.default.nativeEnum(utils_1.EnumExclusionType).optional().nullish()
12
+ });
@@ -0,0 +1,5 @@
1
+ export * from './interfaces/interface';
2
+ export * from './schemas/exclusion.schema';
3
+ export * from './dto/get-exclusion-pagination.dto';
4
+ export * from './dto/create-exclusion.dto';
5
+ export * from './dto/update-exclusion.dto';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces/interface"), exports);
18
+ __exportStar(require("./schemas/exclusion.schema"), exports);
19
+ __exportStar(require("./dto/get-exclusion-pagination.dto"), exports);
20
+ __exportStar(require("./dto/create-exclusion.dto"), exports);
21
+ __exportStar(require("./dto/update-exclusion.dto"), exports);
@@ -0,0 +1,8 @@
1
+ import { EnumExclusionType, IzdType } from '../../utils';
2
+ export interface IExclusionCreateAttre {
3
+ exclusion: string;
4
+ exclusionType: EnumExclusionType;
5
+ entityType: IzdType;
6
+ createdAt?: Date | string;
7
+ updatedAt?: Date | string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import z from 'zod';
2
+ import { EnumExclusionType, IzdType } from '../../utils';
3
+ export declare const ExclusionSchema: z.ZodObject<{
4
+ id: z.ZodNumber;
5
+ ban: z.ZodDefault<z.ZodBoolean>;
6
+ exclusion: z.ZodString;
7
+ exclusionType: z.ZodNativeEnum<typeof EnumExclusionType>;
8
+ entityType: z.ZodNativeEnum<typeof IzdType>;
9
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
10
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ ban: boolean;
13
+ exclusion: string;
14
+ id: number;
15
+ entityType: IzdType;
16
+ exclusionType: EnumExclusionType;
17
+ createdAt?: string | Date | undefined;
18
+ updatedAt?: string | Date | undefined;
19
+ }, {
20
+ exclusion: string;
21
+ id: number;
22
+ entityType: IzdType;
23
+ exclusionType: EnumExclusionType;
24
+ ban?: boolean | undefined;
25
+ createdAt?: string | Date | undefined;
26
+ updatedAt?: string | Date | undefined;
27
+ }>;
28
+ export type ModelExclusion = z.infer<typeof ExclusionSchema>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ExclusionSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const utils_1 = require("../../utils");
9
+ exports.ExclusionSchema = zod_1.default.object({
10
+ id: zod_1.default.number().int().positive(),
11
+ ban: zod_1.default.boolean().default(false),
12
+ exclusion: zod_1.default.string().nonempty(),
13
+ exclusionType: zod_1.default.nativeEnum(utils_1.EnumExclusionType),
14
+ entityType: zod_1.default.nativeEnum(utils_1.IzdType),
15
+ createdAt: zod_1.default.union([zod_1.default.date(), zod_1.default.string()]).optional(),
16
+ updatedAt: zod_1.default.union([zod_1.default.date(), zod_1.default.string()]).optional()
17
+ });
@@ -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
  }>;
@@ -9,14 +9,14 @@ export declare const ExpenditureSchema: z.ZodObject<{
9
9
  updatedAt: z.ZodOptional<z.ZodString>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  id: number;
12
- waybill_id?: number | null | undefined;
13
12
  createdAt?: string | undefined;
13
+ waybill_id?: number | null | undefined;
14
14
  updatedAt?: string | undefined;
15
15
  sh_complit_id?: number | null | undefined;
16
16
  }, {
17
17
  id: number;
18
- waybill_id?: number | null | undefined;
19
18
  createdAt?: string | undefined;
19
+ waybill_id?: number | null | undefined;
20
20
  updatedAt?: string | undefined;
21
21
  sh_complit_id?: number | null | undefined;
22
22
  }>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { statusWorkingsDeficit } from '../../utils';
2
+ import { ProductionPlanSortField, statusWorkingsDeficit } from '../../utils';
3
3
  export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
4
4
  materialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
5
5
  typeMaterialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
@@ -8,19 +8,25 @@ export declare const GetMaterialDeficitDtoZod: z.ZodObject<{
8
8
  searchString: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9
9
  shipmentIds: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>>;
10
10
  page: z.ZodNumber;
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
  page: number;
13
15
  searchString: string;
14
16
  statusWorking: statusWorkingsDeficit;
15
17
  shipmentIds: number[] | null;
18
+ sortDesc: boolean;
16
19
  materialIds: number[];
17
20
  typeMaterialIds: number[];
18
21
  subTypeMaterialIds: number[];
22
+ sortField?: ProductionPlanSortField | null | undefined;
19
23
  }, {
20
24
  page: number;
21
25
  searchString?: string | undefined;
22
26
  statusWorking?: statusWorkingsDeficit | undefined;
23
27
  shipmentIds?: number[] | null | undefined;
28
+ sortField?: ProductionPlanSortField | null | undefined;
29
+ sortDesc?: boolean | undefined;
24
30
  materialIds?: number[] | undefined;
25
31
  typeMaterialIds?: number[] | undefined;
26
32
  subTypeMaterialIds?: number[] | undefined;
@@ -13,5 +13,7 @@ exports.GetMaterialDeficitDtoZod = zod_1.z.object({
13
13
  .default(utils_1.statusWorkingsDeficit.all),
14
14
  searchString: zod_1.z.string().optional().default(''),
15
15
  shipmentIds: zod_1.z.number().int().array().optional().nullable().default(null),
16
- page: zod_1.z.number().int()
16
+ page: zod_1.z.number().int(),
17
+ sortField: zod_1.z.nativeEnum(utils_1.ProductionPlanSortField).nullable().optional(),
18
+ sortDesc: zod_1.z.boolean().optional().default(false)
17
19
  });