eservices-core 1.0.531 → 1.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.
@@ -1,5 +1,5 @@
1
1
  export default class equipmentService {
2
- static search(searchText: string, categoryId: string, useType: boolean, statusCode?: string, options?: IEquipmentSearchParams): Promise<any>;
2
+ static search(searchText: string, categoryId: string, useType: boolean, statusCode?: string, options?: IEquipmentSearchParams): Promise<unknown>;
3
3
  }
4
4
  interface IEquipmentSearchParams {
5
5
  limit?: number;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.531
2
+ * eservices-core v1.0.533
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -5732,7 +5732,7 @@ function checkFieldsForValues(fields, values) {
5732
5732
  return true;
5733
5733
  }
5734
5734
 
5735
- const serviceUrl = `/close-api/proxy/Equipment/Search`;
5735
+ const serviceUrl = `close-api/proxy/Equipment/Search`;
5736
5736
  class equipmentService {
5737
5737
  static search(searchText, categoryId, useType, statusCode, options) {
5738
5738
  const params = new URLSearchParams();
@@ -5748,8 +5748,12 @@ class equipmentService {
5748
5748
  params.append('offset', String(options.offset));
5749
5749
  }
5750
5750
  const url = `/${serviceUrl}?${params.toString()}`;
5751
- return fetch(url)
5752
- .then(res => res.json());
5751
+ return Request(url, {
5752
+ method: 'GET',
5753
+ headers: {
5754
+ 'Content-Type': 'application/json',
5755
+ },
5756
+ });
5753
5757
  }
5754
5758
  }
5755
5759
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.531",
3
+ "version": "1.0.533",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {