@livechat/developer-studio-api 3.0.45 → 3.0.46

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.js CHANGED
@@ -2418,6 +2418,7 @@ function getMailchimpClientConfig(options = {}) {
2418
2418
  throw new UnauthorizeApiError("mailchimp");
2419
2419
  }
2420
2420
  return {
2421
+ baseURL: config.baseUrl,
2421
2422
  headers: __spreadValues({}, config.authorization ? { Authorization: config.authorization } : {})
2422
2423
  };
2423
2424
  }
@@ -2457,10 +2458,8 @@ var mailchimpListsWebhooksApi = {
2457
2458
  add(listId, webhook, authorization) {
2458
2459
  return __async(this, null, function* () {
2459
2460
  const response = yield mailchimpClientInstance.post(
2460
- `/list/${listId}/webhooks`,
2461
- {
2462
- webhook
2463
- },
2461
+ `/lists/${listId}/webhooks`,
2462
+ webhook,
2464
2463
  getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
2465
2464
  ensureAuthorizationToken: true
2466
2465
  }))
package/dist/index.mjs CHANGED
@@ -2302,6 +2302,7 @@ function getMailchimpClientConfig(options = {}) {
2302
2302
  throw new UnauthorizeApiError("mailchimp");
2303
2303
  }
2304
2304
  return {
2305
+ baseURL: config.baseUrl,
2305
2306
  headers: __spreadValues({}, config.authorization ? { Authorization: config.authorization } : {})
2306
2307
  };
2307
2308
  }
@@ -2341,10 +2342,8 @@ var mailchimpListsWebhooksApi = {
2341
2342
  add(listId, webhook, authorization) {
2342
2343
  return __async(this, null, function* () {
2343
2344
  const response = yield mailchimpClientInstance.post(
2344
- `/list/${listId}/webhooks`,
2345
- {
2346
- webhook
2347
- },
2345
+ `/lists/${listId}/webhooks`,
2346
+ webhook,
2348
2347
  getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
2349
2348
  ensureAuthorizationToken: true
2350
2349
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.45",
3
+ "version": "3.0.46",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",