@nhvbeauty/tpl 0.1.1 → 0.1.3

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
  import type { IFindParams, IFindResponse } from './interfaces/find.interface';
2
2
  import { Entity } from '../@shared/entity';
3
3
  export declare class Orders extends Entity {
4
- get(params: IFindParams): Promise<IFindResponse>;
4
+ find(params: IFindParams): Promise<IFindResponse>;
5
5
  }
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Orders = void 0;
13
13
  const entity_1 = require("../@shared/entity");
14
14
  class Orders extends entity_1.Entity {
15
- get(params) {
15
+ find(params) {
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
17
  return yield this.repository.request({
18
18
  endpoint: '/get/orderdetail',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/orders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,8CAA0C;AAE1C,MAAa,MAAO,SAAQ,eAAM;IAInB,GAAG,CACd,MAAmB;;YAEnB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;gBACnC,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;iBACd;aACF,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAdD,wBAcC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/orders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,8CAA0C;AAE1C,MAAa,MAAO,SAAQ,eAAM;IAInB,IAAI,CACf,MAAmB;;YAEnB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;gBACnC,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;iBACd;aACF,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAdD,wBAcC"}
@@ -1,2 +1,2 @@
1
- import type { ITplRepository } from 'src/repositories/tpl.repository.interface';
1
+ import type { ITplRepository } from '../repositories/tpl.repository.interface';
2
2
  export declare function getRepository(authToken: string | undefined, baseUrl: string): ITplRepository;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRepository = getRepository;
4
- const tpl_repository_1 = require("src/repositories/tpl.repository");
4
+ const tpl_repository_1 = require("../repositories/tpl.repository");
5
5
  function getRepository(authToken, baseUrl) {
6
6
  return new tpl_repository_1.TplRepository(authToken, baseUrl);
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ioc.js","sourceRoot":"","sources":["../../src/providers/ioc.ts"],"names":[],"mappings":";;AAQA,sCAKC;AAZD,oEAA+D;AAO/D,SAAgB,aAAa,CAC3B,SAA6B,EAC7B,OAAe;IAEf,OAAO,IAAI,8BAAa,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;AAC9C,CAAC"}
1
+ {"version":3,"file":"ioc.js","sourceRoot":"","sources":["../../src/providers/ioc.ts"],"names":[],"mappings":";;AAQA,sCAKC;AAZD,mEAA8D;AAO9D,SAAgB,aAAa,CAC3B,SAA6B,EAC7B,OAAe;IAEf,OAAO,IAAI,8BAAa,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;AAC9C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nhvbeauty/tpl",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Pacote de integração com a API da TPL",
5
5
  "directories": {
6
6
  "test": "test"