@livechat/developer-studio-api 3.0.12 → 3.0.14

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
@@ -2574,6 +2574,11 @@ declare const api: {
2574
2574
  }>;
2575
2575
  };
2576
2576
  };
2577
+ log(payload: {
2578
+ userId: string;
2579
+ name: string;
2580
+ payload: Record<string, unknown>;
2581
+ }, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
2577
2582
  };
2578
2583
  dps: {
2579
2584
  applications: {
package/dist/index.d.ts CHANGED
@@ -2574,6 +2574,11 @@ declare const api: {
2574
2574
  }>;
2575
2575
  };
2576
2576
  };
2577
+ log(payload: {
2578
+ userId: string;
2579
+ name: string;
2580
+ payload: Record<string, unknown>;
2581
+ }, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
2577
2582
  };
2578
2583
  dps: {
2579
2584
  applications: {
package/dist/index.js CHANGED
@@ -795,7 +795,7 @@ var netlifyAccountApi = {
795
795
  if (!targetAccountId) {
796
796
  targetAccountId = yield this.getAccount(authorization);
797
797
  }
798
- if (!accountId) {
798
+ if (!targetAccountId) {
799
799
  throw new import_axios5.AxiosError("No account", "404");
800
800
  }
801
801
  yield netlifyClientInstance.delete(
@@ -5490,7 +5490,16 @@ var platformAdapterIntegrationsProxyApi = {
5490
5490
  var platformAdapterApi = {
5491
5491
  app: platformAdapterAppApi,
5492
5492
  conductor: platformAdapterConductorApi,
5493
- proxy: platformAdapterIntegrationsProxyApi
5493
+ proxy: platformAdapterIntegrationsProxyApi,
5494
+ log(payload, authorization) {
5495
+ return __async(this, null, function* () {
5496
+ return platformAdapterClientInstance.post(
5497
+ `/log`,
5498
+ payload,
5499
+ getPlatformAdapterClientConfig(authorization)
5500
+ );
5501
+ });
5502
+ }
5494
5503
  };
5495
5504
 
5496
5505
  // src/apis/platform/billing/account/api.ts
package/dist/index.mjs CHANGED
@@ -693,7 +693,7 @@ var netlifyAccountApi = {
693
693
  if (!targetAccountId) {
694
694
  targetAccountId = yield this.getAccount(authorization);
695
695
  }
696
- if (!accountId) {
696
+ if (!targetAccountId) {
697
697
  throw new AxiosError2("No account", "404");
698
698
  }
699
699
  yield netlifyClientInstance.delete(
@@ -5388,7 +5388,16 @@ var platformAdapterIntegrationsProxyApi = {
5388
5388
  var platformAdapterApi = {
5389
5389
  app: platformAdapterAppApi,
5390
5390
  conductor: platformAdapterConductorApi,
5391
- proxy: platformAdapterIntegrationsProxyApi
5391
+ proxy: platformAdapterIntegrationsProxyApi,
5392
+ log(payload, authorization) {
5393
+ return __async(this, null, function* () {
5394
+ return platformAdapterClientInstance.post(
5395
+ `/log`,
5396
+ payload,
5397
+ getPlatformAdapterClientConfig(authorization)
5398
+ );
5399
+ });
5400
+ }
5392
5401
  };
5393
5402
 
5394
5403
  // src/apis/platform/billing/account/api.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.12",
3
+ "version": "3.0.14",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "@types/node": "^17.0.12",
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
- "utils": "0.0.1",
21
20
  "eslint-config-custom": "0.0.6",
21
+ "utils": "0.0.1",
22
22
  "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {