@livechat/developer-studio-api 3.0.7 → 3.0.8

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
@@ -2348,7 +2348,7 @@ declare const api: {
2348
2348
  };
2349
2349
  pat: {
2350
2350
  readonly getPersonalAccessTokens: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<PatDto[], any>>;
2351
- readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<PatWithSecretDto>;
2351
+ readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<PatWithSecretDto, any>>;
2352
2352
  readonly deletePersonalAccessToken: (id: string, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void, any>>;
2353
2353
  };
2354
2354
  organization: {
package/dist/index.d.ts CHANGED
@@ -2348,7 +2348,7 @@ declare const api: {
2348
2348
  };
2349
2349
  pat: {
2350
2350
  readonly getPersonalAccessTokens: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<PatDto[], any>>;
2351
- readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<PatWithSecretDto>;
2351
+ readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<PatWithSecretDto, any>>;
2352
2352
  readonly deletePersonalAccessToken: (id: string, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void, any>>;
2353
2353
  };
2354
2354
  organization: {
package/dist/index.js CHANGED
@@ -3069,7 +3069,7 @@ var platformAccountsPersonalAccessTokenApi = {
3069
3069
  scope: scopes.map((item) => item.name).filter((el) => el).join(",")
3070
3070
  },
3071
3071
  getPlatformAccountsClientConfig(authorization)
3072
- ).then(({ data }) => data).catch((error) => {
3072
+ ).catch((error) => {
3073
3073
  throw error.withCustomMessage(
3074
3074
  "Personal Access Tokens couldn't be created."
3075
3075
  );
package/dist/index.mjs CHANGED
@@ -2968,7 +2968,7 @@ var platformAccountsPersonalAccessTokenApi = {
2968
2968
  scope: scopes.map((item) => item.name).filter((el) => el).join(",")
2969
2969
  },
2970
2970
  getPlatformAccountsClientConfig(authorization)
2971
- ).then(({ data }) => data).catch((error) => {
2971
+ ).catch((error) => {
2972
2972
  throw error.withCustomMessage(
2973
2973
  "Personal Access Tokens couldn't be created."
2974
2974
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",