eservices-core 1.0.524 → 1.0.526

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.
package/dist/index.d.ts CHANGED
@@ -65,11 +65,12 @@ import { useCommunication } from "./classes/Communication";
65
65
  import useFormRequest from "./hooks/use-form-request";
66
66
  import documentsService from "./services/documents-service";
67
67
  import billingService from "./services/billing-service";
68
+ import configurationService, { IListSettings } from "./services/configuration-service";
68
69
  import { List, useListRead, useListState, useListOrder, useListFilter, useListConfig, useProvideList, useListSelect, IListCell, IListOrder, IListFilter, useListSearch } from "./classes/new/List";
69
70
  import { useWizard } from "./hooks/use-wizard";
70
71
  import equipmentService from "./services/equipment-service";
71
72
  import { SYMBOL_ROW } from "./classes/table/Table";
72
- export { debounce, billingService, documentsService,
73
+ export { IListSettings, debounce, billingService, documentsService, configurationService,
73
74
  /**
74
75
  * @deprecated
75
76
  * */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.524
2
+ * eservices-core v1.0.526
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -5577,6 +5577,20 @@ class billingService {
5577
5577
  }
5578
5578
  }
5579
5579
 
5580
+ class configurationService {
5581
+ /**
5582
+ * @description Загрузка конфигурации из списка
5583
+ * */
5584
+ static getListSettings(entity, mark) {
5585
+ const params = new URLSearchParams();
5586
+ params.set('entity', entity);
5587
+ if (mark)
5588
+ params.set('mark', mark);
5589
+ const url = `/close-api/views/list/configs?${params.toString()}`;
5590
+ return Request(url);
5591
+ }
5592
+ }
5593
+
5580
5594
  function checkCompleted(res) {
5581
5595
  return res.statusName === 'Completed';
5582
5596
  }
@@ -5795,6 +5809,7 @@ exports.authService = authService;
5795
5809
  exports.billingService = billingService;
5796
5810
  exports.clickOutside = clickOutside;
5797
5811
  exports.communicationService = communicationService;
5812
+ exports.configurationService = configurationService;
5798
5813
  exports.dataService = dataService;
5799
5814
  exports.debounce = debounce;
5800
5815
  exports["default"] = index;
@@ -0,0 +1,15 @@
1
+ export default class configurationService {
2
+ /**
3
+ * @description Загрузка конфигурации из списка
4
+ * */
5
+ static getListSettings(entity: string, mark?: string): Promise<IListSettings>;
6
+ }
7
+ export interface IListSettings {
8
+ label?: string;
9
+ entity: string;
10
+ config?: any[];
11
+ order?: [string] | [string, 'desc' | 'asc'];
12
+ filters: any[];
13
+ mark?: string;
14
+ prefilters?: Record<string, any>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.524",
3
+ "version": "1.0.526",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {