@livechat/developer-studio-api 3.4.18 → 3.4.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.
package/dist/index.d.mts CHANGED
@@ -7700,6 +7700,7 @@ declare function initApi(config: {
7700
7700
  };
7701
7701
  products?: {
7702
7702
  livechat?: string;
7703
+ helpdesk?: string;
7703
7704
  };
7704
7705
  integrations?: {
7705
7706
  text?: string;
package/dist/index.d.ts CHANGED
@@ -7700,6 +7700,7 @@ declare function initApi(config: {
7700
7700
  };
7701
7701
  products?: {
7702
7702
  livechat?: string;
7703
+ helpdesk?: string;
7703
7704
  };
7704
7705
  integrations?: {
7705
7706
  text?: string;
package/dist/index.js CHANGED
@@ -3103,7 +3103,7 @@ var HelpDeskApiError = class extends ApiErrorBase {
3103
3103
  }
3104
3104
  };
3105
3105
  var helpdeskClientInstance = import_axios20.default.create({
3106
- baseURL: "https://api.labs.helpdesk.com/v1"
3106
+ baseURL: "https://api.labs.helpdesk.com"
3107
3107
  });
3108
3108
  helpdeskClientInstance.interceptors.response.use(
3109
3109
  (response) => response,
@@ -5773,7 +5773,7 @@ var helpdeskWebhooksApi = {
5773
5773
  list(authorization) {
5774
5774
  return __async(this, null, function* () {
5775
5775
  const response = yield helpdeskClientInstance.get(
5776
- "/webhooks",
5776
+ "/v1/webhooks",
5777
5777
  getHelpDeskClientConfig(authorization)
5778
5778
  );
5779
5779
  return response;
@@ -5782,7 +5782,7 @@ var helpdeskWebhooksApi = {
5782
5782
  get(webhookId, authorization) {
5783
5783
  return __async(this, null, function* () {
5784
5784
  const response = yield helpdeskClientInstance.get(
5785
- `/webhooks/${encodeURIComponent(webhookId)}`,
5785
+ `/v1/webhooks/${encodeURIComponent(webhookId)}`,
5786
5786
  getHelpDeskClientConfig(authorization)
5787
5787
  );
5788
5788
  return response;
@@ -5791,7 +5791,7 @@ var helpdeskWebhooksApi = {
5791
5791
  create(payload, authorization) {
5792
5792
  return __async(this, null, function* () {
5793
5793
  const response = yield helpdeskClientInstance.post(
5794
- "/webhooks",
5794
+ "/v1/webhooks",
5795
5795
  payload,
5796
5796
  getHelpDeskClientConfig(authorization)
5797
5797
  );
@@ -5801,7 +5801,7 @@ var helpdeskWebhooksApi = {
5801
5801
  update(webhookId, payload, authorization) {
5802
5802
  return __async(this, null, function* () {
5803
5803
  const response = yield helpdeskClientInstance.patch(
5804
- `/webhooks/${encodeURIComponent(webhookId)}`,
5804
+ `/v1/webhooks/${encodeURIComponent(webhookId)}`,
5805
5805
  payload,
5806
5806
  getHelpDeskClientConfig(authorization)
5807
5807
  );
@@ -5811,7 +5811,7 @@ var helpdeskWebhooksApi = {
5811
5811
  delete(webhookId, authorization) {
5812
5812
  return __async(this, null, function* () {
5813
5813
  const response = yield helpdeskClientInstance.delete(
5814
- `/webhooks/${encodeURIComponent(webhookId)}`,
5814
+ `/v1/webhooks/${encodeURIComponent(webhookId)}`,
5815
5815
  getHelpDeskClientConfig(authorization)
5816
5816
  );
5817
5817
  return response;
@@ -8233,7 +8233,7 @@ var api2 = {
8233
8233
  isInitialized: false
8234
8234
  };
8235
8235
  function initApi(config, tokens) {
8236
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
8236
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
8237
8237
  initPlatformAccountsClient(
8238
8238
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
8239
8239
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.token
@@ -8255,17 +8255,18 @@ function initApi(config, tokens) {
8255
8255
  } : void 0
8256
8256
  );
8257
8257
  initLiveChatClient((_h = config.urls.products) == null ? void 0 : _h.livechat, (_i = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _i.token);
8258
- initTextClient((_j = config.urls.integrations) == null ? void 0 : _j.text, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
8259
- initGithubClient((_l = tokens == null ? void 0 : tokens.github) == null ? void 0 : _l.appToken);
8260
- initNetlifyClient((_m = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _m.token);
8261
- initVercelClient((_n = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _n.token);
8262
- initNeonClient((_o = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _o.token);
8263
- initPlanetScaleClient((_p = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _p.token);
8264
- initMailchimpClient((_q = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _q.token, (_r = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _r.server);
8265
- initShopifyClient((_s = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _t.shop);
8266
- initBigCommerceClient((_u = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _u.token, (_v = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _v.shop);
8267
- initHubspotClient((_w = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _w.token);
8268
- initSlackClient((_x = tokens == null ? void 0 : tokens.slack) == null ? void 0 : _x.token);
8258
+ initHelpDeskClient((_j = config.urls.products) == null ? void 0 : _j.helpdesk, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
8259
+ initTextClient((_l = config.urls.integrations) == null ? void 0 : _l.text, (_m = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _m.token);
8260
+ initGithubClient((_n = tokens == null ? void 0 : tokens.github) == null ? void 0 : _n.appToken);
8261
+ initNetlifyClient((_o = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _o.token);
8262
+ initVercelClient((_p = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _p.token);
8263
+ initNeonClient((_q = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _q.token);
8264
+ initPlanetScaleClient((_r = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _r.token);
8265
+ initMailchimpClient((_s = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _t.server);
8266
+ initShopifyClient((_u = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _u.token, (_v = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _v.shop);
8267
+ initBigCommerceClient((_w = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _w.token, (_x = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _x.shop);
8268
+ initHubspotClient((_y = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _y.token);
8269
+ initSlackClient((_z = tokens == null ? void 0 : tokens.slack) == null ? void 0 : _z.token);
8269
8270
  api2.isInitialized = true;
8270
8271
  }
8271
8272
 
package/dist/index.mjs CHANGED
@@ -2950,7 +2950,7 @@ var HelpDeskApiError = class extends ApiErrorBase {
2950
2950
  }
2951
2951
  };
2952
2952
  var helpdeskClientInstance = axios18.create({
2953
- baseURL: "https://api.labs.helpdesk.com/v1"
2953
+ baseURL: "https://api.labs.helpdesk.com"
2954
2954
  });
2955
2955
  helpdeskClientInstance.interceptors.response.use(
2956
2956
  (response) => response,
@@ -5620,7 +5620,7 @@ var helpdeskWebhooksApi = {
5620
5620
  list(authorization) {
5621
5621
  return __async(this, null, function* () {
5622
5622
  const response = yield helpdeskClientInstance.get(
5623
- "/webhooks",
5623
+ "/v1/webhooks",
5624
5624
  getHelpDeskClientConfig(authorization)
5625
5625
  );
5626
5626
  return response;
@@ -5629,7 +5629,7 @@ var helpdeskWebhooksApi = {
5629
5629
  get(webhookId, authorization) {
5630
5630
  return __async(this, null, function* () {
5631
5631
  const response = yield helpdeskClientInstance.get(
5632
- `/webhooks/${encodeURIComponent(webhookId)}`,
5632
+ `/v1/webhooks/${encodeURIComponent(webhookId)}`,
5633
5633
  getHelpDeskClientConfig(authorization)
5634
5634
  );
5635
5635
  return response;
@@ -5638,7 +5638,7 @@ var helpdeskWebhooksApi = {
5638
5638
  create(payload, authorization) {
5639
5639
  return __async(this, null, function* () {
5640
5640
  const response = yield helpdeskClientInstance.post(
5641
- "/webhooks",
5641
+ "/v1/webhooks",
5642
5642
  payload,
5643
5643
  getHelpDeskClientConfig(authorization)
5644
5644
  );
@@ -5648,7 +5648,7 @@ var helpdeskWebhooksApi = {
5648
5648
  update(webhookId, payload, authorization) {
5649
5649
  return __async(this, null, function* () {
5650
5650
  const response = yield helpdeskClientInstance.patch(
5651
- `/webhooks/${encodeURIComponent(webhookId)}`,
5651
+ `/v1/webhooks/${encodeURIComponent(webhookId)}`,
5652
5652
  payload,
5653
5653
  getHelpDeskClientConfig(authorization)
5654
5654
  );
@@ -5658,7 +5658,7 @@ var helpdeskWebhooksApi = {
5658
5658
  delete(webhookId, authorization) {
5659
5659
  return __async(this, null, function* () {
5660
5660
  const response = yield helpdeskClientInstance.delete(
5661
- `/webhooks/${encodeURIComponent(webhookId)}`,
5661
+ `/v1/webhooks/${encodeURIComponent(webhookId)}`,
5662
5662
  getHelpDeskClientConfig(authorization)
5663
5663
  );
5664
5664
  return response;
@@ -8080,7 +8080,7 @@ var api2 = {
8080
8080
  isInitialized: false
8081
8081
  };
8082
8082
  function initApi(config, tokens) {
8083
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
8083
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
8084
8084
  initPlatformAccountsClient(
8085
8085
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
8086
8086
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.token
@@ -8102,17 +8102,18 @@ function initApi(config, tokens) {
8102
8102
  } : void 0
8103
8103
  );
8104
8104
  initLiveChatClient((_h = config.urls.products) == null ? void 0 : _h.livechat, (_i = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _i.token);
8105
- initTextClient((_j = config.urls.integrations) == null ? void 0 : _j.text, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
8106
- initGithubClient((_l = tokens == null ? void 0 : tokens.github) == null ? void 0 : _l.appToken);
8107
- initNetlifyClient((_m = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _m.token);
8108
- initVercelClient((_n = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _n.token);
8109
- initNeonClient((_o = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _o.token);
8110
- initPlanetScaleClient((_p = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _p.token);
8111
- initMailchimpClient((_q = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _q.token, (_r = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _r.server);
8112
- initShopifyClient((_s = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _t.shop);
8113
- initBigCommerceClient((_u = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _u.token, (_v = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _v.shop);
8114
- initHubspotClient((_w = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _w.token);
8115
- initSlackClient((_x = tokens == null ? void 0 : tokens.slack) == null ? void 0 : _x.token);
8105
+ initHelpDeskClient((_j = config.urls.products) == null ? void 0 : _j.helpdesk, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
8106
+ initTextClient((_l = config.urls.integrations) == null ? void 0 : _l.text, (_m = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _m.token);
8107
+ initGithubClient((_n = tokens == null ? void 0 : tokens.github) == null ? void 0 : _n.appToken);
8108
+ initNetlifyClient((_o = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _o.token);
8109
+ initVercelClient((_p = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _p.token);
8110
+ initNeonClient((_q = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _q.token);
8111
+ initPlanetScaleClient((_r = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _r.token);
8112
+ initMailchimpClient((_s = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _t.server);
8113
+ initShopifyClient((_u = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _u.token, (_v = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _v.shop);
8114
+ initBigCommerceClient((_w = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _w.token, (_x = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _x.shop);
8115
+ initHubspotClient((_y = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _y.token);
8116
+ initSlackClient((_z = tokens == null ? void 0 : tokens.slack) == null ? void 0 : _z.token);
8116
8117
  api2.isInitialized = true;
8117
8118
  }
8118
8119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.4.18",
3
+ "version": "3.4.20",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "tsup": "^7.1.0",
22
22
  "typescript": "^5.1.6",
23
23
  "eslint-config-custom": "0.0.10",
24
- "tsconfig": "0.0.1",
25
- "utils": "0.0.5"
24
+ "utils": "0.0.5",
25
+ "tsconfig": "0.0.1"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsup",