@tec.pet/tecpet-sdk 0.0.74 → 0.0.77

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.
@@ -19,3 +19,4 @@ export * from './enum/chatbotInfoCollectionEnums/chatbot-price-display-mode.enum
19
19
  export * from './enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum';
20
20
  export * from './enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum';
21
21
  export * from './enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum';
22
+ export * from './enum/chatbotActionEnums/chatbot-action-schedule-permission.enum';
@@ -35,3 +35,4 @@ __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-price-display-mo
35
35
  __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum"), exports);
36
36
  __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum"), exports);
37
37
  __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum"), exports);
38
+ __exportStar(require("./enum/chatbotActionEnums/chatbot-action-schedule-permission.enum"), exports);
@@ -0,0 +1,22 @@
1
+ export declare enum ApiIntegrationType {
2
+ DATAON = "DATAON",
3
+ OMIE = "OMIE",
4
+ TECPET = "TECPET",
5
+ ASAAS = "ASAAS",
6
+ WHATSAPP = "WHATSAPP",
7
+ DR_SNOPPY = "DR_SNOPPY",
8
+ CONTA_AZUL = "CONTA_AZUL",
9
+ GESTAO_CLICK = "GESTAO_CLICK",
10
+ WHATSAPP_SENDER = "WHATSAPP_SENDER",
11
+ VHSYS = "VHSYS",
12
+ VHSYS_V2 = "VHSYS_V2",
13
+ BLING = "BLING",
14
+ SANKHYA = "SANKHYA",
15
+ ICLUB = "ICLUB",
16
+ ZANTHUS = "ZANTHUS"
17
+ }
18
+ export declare class PaGetIntegrationShopByLoginResponse {
19
+ integrationShopId: number;
20
+ integrationType: ApiIntegrationType;
21
+ shopId: number;
22
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaGetIntegrationShopByLoginResponse = exports.ApiIntegrationType = void 0;
4
+ var ApiIntegrationType;
5
+ (function (ApiIntegrationType) {
6
+ ApiIntegrationType["DATAON"] = "DATAON";
7
+ ApiIntegrationType["OMIE"] = "OMIE";
8
+ ApiIntegrationType["TECPET"] = "TECPET";
9
+ ApiIntegrationType["ASAAS"] = "ASAAS";
10
+ ApiIntegrationType["WHATSAPP"] = "WHATSAPP";
11
+ ApiIntegrationType["DR_SNOPPY"] = "DR_SNOPPY";
12
+ ApiIntegrationType["CONTA_AZUL"] = "CONTA_AZUL";
13
+ ApiIntegrationType["GESTAO_CLICK"] = "GESTAO_CLICK";
14
+ ApiIntegrationType["WHATSAPP_SENDER"] = "WHATSAPP_SENDER";
15
+ ApiIntegrationType["VHSYS"] = "VHSYS";
16
+ ApiIntegrationType["VHSYS_V2"] = "VHSYS_V2";
17
+ ApiIntegrationType["BLING"] = "BLING";
18
+ ApiIntegrationType["SANKHYA"] = "SANKHYA";
19
+ ApiIntegrationType["ICLUB"] = "ICLUB";
20
+ ApiIntegrationType["ZANTHUS"] = "ZANTHUS";
21
+ })(ApiIntegrationType || (exports.ApiIntegrationType = ApiIntegrationType = {}));
22
+ class PaGetIntegrationShopByLoginResponse {
23
+ integrationShopId;
24
+ integrationType;
25
+ shopId;
26
+ }
27
+ exports.PaGetIntegrationShopByLoginResponse = PaGetIntegrationShopByLoginResponse;
@@ -0,0 +1,2 @@
1
+ export * from './integrationShop.service';
2
+ export * from './dto/pa.get-integration-shop-by-login.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./integrationShop.service"), exports);
18
+ __exportStar(require("./dto/pa.get-integration-shop-by-login.dto"), exports);
@@ -0,0 +1,7 @@
1
+ import { HttpClient } from "infra/http/client.http";
2
+ import { ApiIntegrationType, PaGetIntegrationShopByLoginResponse } from "./dto/pa.get-integration-shop-by-login.dto";
3
+ export declare class IntegrationShopService {
4
+ private readonly api;
5
+ constructor(api: HttpClient);
6
+ getIntegrationShopByLogin(type: ApiIntegrationType | string, login: string): Promise<PaGetIntegrationShopByLoginResponse>;
7
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntegrationShopService = void 0;
4
+ class IntegrationShopService {
5
+ api;
6
+ constructor(api) {
7
+ this.api = api;
8
+ }
9
+ async getIntegrationShopByLogin(type, login) {
10
+ const path = `/integrationShop/type/${type}/login/${login}`;
11
+ const response = await this.api.get(path);
12
+ return response;
13
+ }
14
+ }
15
+ exports.IntegrationShopService = IntegrationShopService;
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ import { ShopService } from "./domain/shop/shop.service";
12
12
  import { SpecieService } from "./domain/specie/specie.service";
13
13
  import { TokenService } from "./domain/token/token.service";
14
14
  import { BookingGuardService } from "./domain/bookingGuard/bookingGuard.service";
15
+ import { IntegrationShopService } from "./domain/integrationShop/integrationShop.service";
15
16
  export declare class TecpetSDK {
16
17
  private api;
17
18
  client: ClientService;
@@ -28,6 +29,7 @@ export declare class TecpetSDK {
28
29
  token: TokenService;
29
30
  employee: EmployeeService;
30
31
  bookingGuard: BookingGuardService;
32
+ integrationShop: IntegrationShopService;
31
33
  constructor(baseURL: string, apiKey?: string);
32
34
  }
33
35
  export * from './domain/availableTimes';
@@ -44,4 +46,5 @@ export * from './domain/service';
44
46
  export * from './domain/shop';
45
47
  export * from './domain/specie';
46
48
  export * from './domain/token';
49
+ export * from './domain/integrationShop';
47
50
  export * from './utils/index';
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ const specie_service_1 = require("./domain/specie/specie.service");
30
30
  const token_service_1 = require("./domain/token/token.service");
31
31
  const client_http_1 = require("./infra/http/client.http");
32
32
  const bookingGuard_service_1 = require("./domain/bookingGuard/bookingGuard.service");
33
+ const integrationShop_service_1 = require("./domain/integrationShop/integrationShop.service");
33
34
  class TecpetSDK {
34
35
  api;
35
36
  client;
@@ -46,6 +47,7 @@ class TecpetSDK {
46
47
  token;
47
48
  employee;
48
49
  bookingGuard;
50
+ integrationShop;
49
51
  constructor(baseURL, apiKey) {
50
52
  this.api = new client_http_1.HttpClient(baseURL, apiKey);
51
53
  this.client = new client_service_1.ClientService(this.api);
@@ -62,6 +64,7 @@ class TecpetSDK {
62
64
  this.token = new token_service_1.TokenService(this.api);
63
65
  this.employee = new employee_service_1.EmployeeService(this.api);
64
66
  this.bookingGuard = new bookingGuard_service_1.BookingGuardService(this.api);
67
+ this.integrationShop = new integrationShop_service_1.IntegrationShopService(this.api);
65
68
  }
66
69
  }
67
70
  exports.TecpetSDK = TecpetSDK;
@@ -79,4 +82,5 @@ __exportStar(require("./domain/service"), exports);
79
82
  __exportStar(require("./domain/shop"), exports);
80
83
  __exportStar(require("./domain/specie"), exports);
81
84
  __exportStar(require("./domain/token"), exports);
85
+ __exportStar(require("./domain/integrationShop"), exports);
82
86
  __exportStar(require("./utils/index"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.74",
3
+ "version": "0.0.77",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",