@eleva-io/erp-sdk 0.1.19 → 0.1.20

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,9 +1,12 @@
1
1
  import { HTTPClient } from '../../utils/http';
2
2
  import { GlobalSearchAPI } from './search';
3
+ import { GlobalCountry, GlobalLanguage } from './types';
3
4
  export declare class GlobalAPI {
4
5
  private _httpClient;
5
6
  private readonly _baseUrl;
6
7
  constructor(_httpClient: HTTPClient, baseUrl: string);
7
8
  search(): GlobalSearchAPI;
9
+ languages(query?: Record<string, unknown>): Promise<GlobalLanguage[]>;
10
+ countries(query?: Record<string, unknown>): Promise<GlobalCountry[]>;
8
11
  }
9
12
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,qBAAa,SAAS;IAIlB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,MAAM,IAAI,eAAe;CAG1B"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEvD,qBAAa,SAAS;IAIlB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,MAAM,IAAI,eAAe;IAIzB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIrE,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;CAGrE"}
@@ -12,6 +12,12 @@ class GlobalAPI {
12
12
  search() {
13
13
  return new search_1.GlobalSearchAPI(this._httpClient, `${this._baseUrl}/search`);
14
14
  }
15
+ languages(query) {
16
+ return this._httpClient.get(`${this._baseUrl}/languages`, query);
17
+ }
18
+ countries(query) {
19
+ return this._httpClient.get(`${this._baseUrl}/countries`, query);
20
+ }
15
21
  }
16
22
  exports.GlobalAPI = GlobalAPI;
17
23
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":";;;AACA,qCAA0C;AAE1C,MAAa,SAAS;IAIV;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,SAAS,CAAA;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,wBAAe,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS,CAAC,CAAA;IACzE,CAAC;CACF;AAbD,8BAaC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":";;;AACA,qCAA0C;AAG1C,MAAa,SAAS;IAIV;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,SAAS,CAAA;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,wBAAe,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS,CAAC,CAAA;IACzE,CAAC;IAED,SAAS,CAAC,KAA+B;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,YAAY,EAAE,KAAK,CAAC,CAAA;IAClE,CAAC;IAED,SAAS,CAAC,KAA+B;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,YAAY,EAAE,KAAK,CAAC,CAAA;IAClE,CAAC;CACF;AArBD,8BAqBC"}
@@ -1,3 +1,4 @@
1
1
  export * from './search';
2
+ export * from './types';
2
3
  export * from './api';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./search"), exports);
18
+ __exportStar(require("./types"), exports);
18
19
  __exportStar(require("./api"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,wCAAqB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,0CAAuB;AACvB,wCAAqB"}
@@ -0,0 +1,11 @@
1
+ export interface GlobalCountry {
2
+ id: number;
3
+ code: string;
4
+ name: string;
5
+ }
6
+ export interface GlobalLanguage {
7
+ id: number;
8
+ code: string;
9
+ name: string;
10
+ }
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/global/types.ts"],"names":[],"mappings":""}
@@ -1,9 +1,12 @@
1
1
  import { HTTPClient } from '../../utils/http';
2
2
  import { GlobalSearchAPI } from './search';
3
+ import { GlobalCountry, GlobalLanguage } from './types';
3
4
  export declare class GlobalAPI {
4
5
  private _httpClient;
5
6
  private readonly _baseUrl;
6
7
  constructor(_httpClient: HTTPClient, baseUrl: string);
7
8
  search(): GlobalSearchAPI;
9
+ languages(query?: Record<string, unknown>): Promise<GlobalLanguage[]>;
10
+ countries(query?: Record<string, unknown>): Promise<GlobalCountry[]>;
8
11
  }
9
12
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,qBAAa,SAAS;IAIlB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,MAAM,IAAI,eAAe;CAG1B"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEvD,qBAAa,SAAS;IAIlB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,MAAM,IAAI,eAAe;IAIzB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIrE,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;CAGrE"}
@@ -9,5 +9,11 @@ export class GlobalAPI {
9
9
  search() {
10
10
  return new GlobalSearchAPI(this._httpClient, `${this._baseUrl}/search`);
11
11
  }
12
+ languages(query) {
13
+ return this._httpClient.get(`${this._baseUrl}/languages`, query);
14
+ }
15
+ countries(query) {
16
+ return this._httpClient.get(`${this._baseUrl}/countries`, query);
17
+ }
12
18
  }
13
19
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,OAAO,SAAS;IAIV;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,SAAS,CAAA;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS,CAAC,CAAA;IACzE,CAAC;CACF"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/global/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,MAAM,OAAO,SAAS;IAIV;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,SAAS,CAAA;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS,CAAC,CAAA;IACzE,CAAC;IAED,SAAS,CAAC,KAA+B;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,YAAY,EAAE,KAAK,CAAC,CAAA;IAClE,CAAC;IAED,SAAS,CAAC,KAA+B;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,YAAY,EAAE,KAAK,CAAC,CAAA;IAClE,CAAC;CACF"}
@@ -1,3 +1,4 @@
1
1
  export * from './search';
2
+ export * from './types';
2
3
  export * from './api';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export * from './search';
2
+ export * from './types';
2
3
  export * from './api';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -0,0 +1,11 @@
1
+ export interface GlobalCountry {
2
+ id: number;
3
+ code: string;
4
+ name: string;
5
+ }
6
+ export interface GlobalLanguage {
7
+ id: number;
8
+ code: string;
9
+ name: string;
10
+ }
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/global/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleva-io/erp-sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "SDK oficial para el ERP de Eleva",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",