eservices-core 1.0.591 → 1.0.593

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.
@@ -4,6 +4,7 @@ interface ActionGetOptions {
4
4
  export default class ActionService {
5
5
  private static url;
6
6
  static get({ criterion }: ActionGetOptions): Promise<IActionResponse[]>;
7
+ static getById(entity: string, id: number): Promise<IActionResponse[]>;
7
8
  }
8
9
  export interface IActionExecuteResult {
9
10
  code: number;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.591
2
+ * eservices-core v1.0.593
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -5085,7 +5085,7 @@ processWizardService.url = '/close-api/views/process-wizard';
5085
5085
 
5086
5086
  class metadataService {
5087
5087
  static get url() {
5088
- return `/close-api/metadata/`;
5088
+ return `/close-api/metadata`;
5089
5089
  }
5090
5090
  static get(entity, criteria, id) {
5091
5091
  return __awaiter(this, void 0, void 0, function* () {
@@ -5094,13 +5094,13 @@ class metadataService {
5094
5094
  query.append('criteria', criteria);
5095
5095
  if (id)
5096
5096
  query.append('id', String(id));
5097
- return yield fetch(this.url + `${entity}?${query.toString()}`, {
5097
+ return yield fetch(this.url + `/${entity}?${query.toString()}`, {
5098
5098
  method: "GET",
5099
5099
  }).then(res => res.json());
5100
5100
  });
5101
5101
  }
5102
5102
  static getById(entity, id) {
5103
- return Request(this.url + `${entity}/${id}`);
5103
+ return Request([this.url, entity, id].join('/'));
5104
5104
  }
5105
5105
  static getByMaster(entity, masterEntities) {
5106
5106
  const query = new URLSearchParams(masterEntities.map(config => [config.entity, String(config.id)]));
@@ -5187,6 +5187,11 @@ class ActionService {
5187
5187
  }).then(res => res.json());
5188
5188
  });
5189
5189
  }
5190
+ static getById(entity, id) {
5191
+ return Request([this.url(), entity, id].join('/'), {
5192
+ method: "GET",
5193
+ });
5194
+ }
5190
5195
  }
5191
5196
 
5192
5197
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.591",
3
+ "version": "1.0.593",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {