eservices-core 1.0.599 → 1.0.601

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,5 +4,4 @@ export default class metadataService {
4
4
  private static get url();
5
5
  static get(entity: string, criteria?: string, id?: any): Promise<MetadataResponse>;
6
6
  static getById(entity: string, id: any, masterEntities?: MasterEntities): Promise<MetadataResponse>;
7
- static getByMaster(entity: string, masterEntities?: MasterEntities): Promise<unknown>;
8
7
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.599
2
+ * eservices-core v1.0.601
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -5124,6 +5124,8 @@ class metadataService {
5124
5124
  }
5125
5125
  static get(entity, criteria, id) {
5126
5126
  return __awaiter(this, void 0, void 0, function* () {
5127
+ console.warn('GETTING METADATA BY DEPRECATED METHOD.');
5128
+ console.trace();
5127
5129
  const query = new URLSearchParams();
5128
5130
  if (criteria)
5129
5131
  query.append('criteria', criteria);
@@ -5137,12 +5139,9 @@ class metadataService {
5137
5139
  static getById(entity, id, masterEntities = []) {
5138
5140
  const query = new URLSearchParams();
5139
5141
  addMasterEntitiesToSearchParams(query, masterEntities);
5140
- return Request([this.url, entity, id].join('/') + `?${query.toString()}`);
5141
- }
5142
- static getByMaster(entity, masterEntities = []) {
5143
- const query = new URLSearchParams();
5144
- addMasterEntitiesToSearchParams(query, masterEntities);
5145
- return Request([this.url, 'by-master', entity].join('/') + `?${query.toString()}`);
5142
+ if (id)
5143
+ query.append('id', id);
5144
+ return Request([this.url, entity].join('/') + `?${query.toString()}`);
5146
5145
  }
5147
5146
  }
5148
5147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.599",
3
+ "version": "1.0.601",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {