@livechat/developer-studio-api 3.1.0 → 3.1.1

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.
package/dist/index.d.mts CHANGED
@@ -529,7 +529,7 @@ interface TextClientOptions extends TextClientAuthorization {
529
529
  declare const textClientInstance: axios.AxiosInstance;
530
530
  declare function getTextClientAuthorization(req: {
531
531
  headers: Record<string, string | string[] | undefined> | Headers;
532
- }, useIntegration?: boolean): TextClientAuthorization;
532
+ }): TextClientAuthorization;
533
533
  declare function getTextClientConfig(option?: TextClientOptions): AxiosRequestConfig;
534
534
  declare function initTextClient(baseUrl?: string, token?: string): void;
535
535
  declare function updateTextClient(baseUrl?: string, token?: string): void;
package/dist/index.d.ts CHANGED
@@ -529,7 +529,7 @@ interface TextClientOptions extends TextClientAuthorization {
529
529
  declare const textClientInstance: axios.AxiosInstance;
530
530
  declare function getTextClientAuthorization(req: {
531
531
  headers: Record<string, string | string[] | undefined> | Headers;
532
- }, useIntegration?: boolean): TextClientAuthorization;
532
+ }): TextClientAuthorization;
533
533
  declare function getTextClientConfig(option?: TextClientOptions): AxiosRequestConfig;
534
534
  declare function initTextClient(baseUrl?: string, token?: string): void;
535
535
  declare function updateTextClient(baseUrl?: string, token?: string): void;
package/dist/index.js CHANGED
@@ -1445,17 +1445,15 @@ var import_axios8 = __toESM(require("axios"));
1445
1445
  var textClientInstance = import_axios8.default.create({
1446
1446
  baseURL: "https://api.labs.text.com"
1447
1447
  });
1448
- function getTextClientAuthorization(req, useIntegration) {
1448
+ function getTextClientAuthorization(req) {
1449
1449
  if (req.headers instanceof Headers) {
1450
1450
  return {
1451
- token: req.headers.get(
1452
- useIntegration ? "x-adapter-text-token" : "x-adapter-platform-token"
1453
- ),
1451
+ token: req.headers.get("x-adapter-text-token"),
1454
1452
  tokenType: "Bearer"
1455
1453
  };
1456
1454
  }
1457
1455
  return {
1458
- token: req.headers[useIntegration ? "x-adapter-text-token" : "x-adapter-platform-token"],
1456
+ token: req.headers["x-adapter-text-token"],
1459
1457
  tokenType: "Bearer"
1460
1458
  };
1461
1459
  }
package/dist/index.mjs CHANGED
@@ -1318,17 +1318,15 @@ import axios6 from "axios";
1318
1318
  var textClientInstance = axios6.create({
1319
1319
  baseURL: "https://api.labs.text.com"
1320
1320
  });
1321
- function getTextClientAuthorization(req, useIntegration) {
1321
+ function getTextClientAuthorization(req) {
1322
1322
  if (req.headers instanceof Headers) {
1323
1323
  return {
1324
- token: req.headers.get(
1325
- useIntegration ? "x-adapter-text-token" : "x-adapter-platform-token"
1326
- ),
1324
+ token: req.headers.get("x-adapter-text-token"),
1327
1325
  tokenType: "Bearer"
1328
1326
  };
1329
1327
  }
1330
1328
  return {
1331
- token: req.headers[useIntegration ? "x-adapter-text-token" : "x-adapter-platform-token"],
1329
+ token: req.headers["x-adapter-text-token"],
1332
1330
  tokenType: "Bearer"
1333
1331
  };
1334
1332
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",