@livechat/developer-studio-api 2.3.26 → 2.3.28

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
@@ -1164,9 +1164,10 @@ interface CreateRepositoryResponse {
1164
1164
  needToBeSeeded: boolean;
1165
1165
  }
1166
1166
  interface CreateSeedPayload {
1167
- appid: string;
1168
- clientId: string;
1167
+ appId: string;
1169
1168
  name: string;
1169
+ provider?: string;
1170
+ clientId?: string;
1170
1171
  }
1171
1172
  interface CreateSeedResponse {
1172
1173
  isSeeded: boolean;
@@ -1178,7 +1179,7 @@ interface CreateDeploymentPayload {
1178
1179
  provider: string;
1179
1180
  repositoryName: string;
1180
1181
  repositoryBranch: string;
1181
- repositoryTarget: string;
1182
+ repositoryTarget?: string;
1182
1183
  siteName?: string;
1183
1184
  projectName?: string;
1184
1185
  type: string;
@@ -1220,7 +1221,7 @@ interface CreatePropertiesPayload {
1220
1221
 
1221
1222
  interface CreateMonetizationPayload {
1222
1223
  appId: string;
1223
- payload: AddAppMonetizationData;
1224
+ payment: AddAppMonetizationData;
1224
1225
  }
1225
1226
 
1226
1227
  interface PlatformAdapterClientInstanceAuthorization {
@@ -2101,9 +2102,6 @@ declare const api: {
2101
2102
  sessions: {
2102
2103
  readonly deleteSessions: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
2103
2104
  };
2104
- token: {
2105
- exchangeCode(): Promise<axios.AxiosResponse<AuthorizeData>>;
2106
- };
2107
2105
  };
2108
2106
  billing: {
2109
2107
  account: {
package/dist/index.d.ts CHANGED
@@ -1164,9 +1164,10 @@ interface CreateRepositoryResponse {
1164
1164
  needToBeSeeded: boolean;
1165
1165
  }
1166
1166
  interface CreateSeedPayload {
1167
- appid: string;
1168
- clientId: string;
1167
+ appId: string;
1169
1168
  name: string;
1169
+ provider?: string;
1170
+ clientId?: string;
1170
1171
  }
1171
1172
  interface CreateSeedResponse {
1172
1173
  isSeeded: boolean;
@@ -1178,7 +1179,7 @@ interface CreateDeploymentPayload {
1178
1179
  provider: string;
1179
1180
  repositoryName: string;
1180
1181
  repositoryBranch: string;
1181
- repositoryTarget: string;
1182
+ repositoryTarget?: string;
1182
1183
  siteName?: string;
1183
1184
  projectName?: string;
1184
1185
  type: string;
@@ -1220,7 +1221,7 @@ interface CreatePropertiesPayload {
1220
1221
 
1221
1222
  interface CreateMonetizationPayload {
1222
1223
  appId: string;
1223
- payload: AddAppMonetizationData;
1224
+ payment: AddAppMonetizationData;
1224
1225
  }
1225
1226
 
1226
1227
  interface PlatformAdapterClientInstanceAuthorization {
@@ -2101,9 +2102,6 @@ declare const api: {
2101
2102
  sessions: {
2102
2103
  readonly deleteSessions: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
2103
2104
  };
2104
- token: {
2105
- exchangeCode(): Promise<axios.AxiosResponse<AuthorizeData>>;
2106
- };
2107
2105
  };
2108
2106
  billing: {
2109
2107
  account: {
package/dist/index.js CHANGED
@@ -3376,26 +3376,6 @@ var platformAccountsSessionsApi = {
3376
3376
  }
3377
3377
  };
3378
3378
 
3379
- // src/apis/platform/accounts/token/api.ts
3380
- var platformAccountsTokenApi = {
3381
- exchangeCode() {
3382
- return __async(this, null, function* () {
3383
- try {
3384
- return yield platformAccountsClientInstance.get(
3385
- `/v2/token`,
3386
- getPlatformAccountsClientConfig()
3387
- );
3388
- } catch (error) {
3389
- if (error instanceof Error) {
3390
- throw new Error(`Couldn't exchange code for token. [${error.message}]`);
3391
- } else {
3392
- throw error;
3393
- }
3394
- }
3395
- });
3396
- }
3397
- };
3398
-
3399
3379
  // src/apis/platform/accounts/api.ts
3400
3380
  var platformAccountsApi = {
3401
3381
  account: platformAccountsAccountApi,
@@ -3404,8 +3384,7 @@ var platformAccountsApi = {
3404
3384
  organization: platformAccountsOrganizationApi,
3405
3385
  products: platformAccountsProductsApi,
3406
3386
  scopes: platformAccountsScopesApi,
3407
- sessions: platformAccountsSessionsApi,
3408
- token: platformAccountsTokenApi
3387
+ sessions: platformAccountsSessionsApi
3409
3388
  };
3410
3389
 
3411
3390
  // src/apis/platform/dps/instance.ts
package/dist/index.mjs CHANGED
@@ -3285,26 +3285,6 @@ var platformAccountsSessionsApi = {
3285
3285
  }
3286
3286
  };
3287
3287
 
3288
- // src/apis/platform/accounts/token/api.ts
3289
- var platformAccountsTokenApi = {
3290
- exchangeCode() {
3291
- return __async(this, null, function* () {
3292
- try {
3293
- return yield platformAccountsClientInstance.get(
3294
- `/v2/token`,
3295
- getPlatformAccountsClientConfig()
3296
- );
3297
- } catch (error) {
3298
- if (error instanceof Error) {
3299
- throw new Error(`Couldn't exchange code for token. [${error.message}]`);
3300
- } else {
3301
- throw error;
3302
- }
3303
- }
3304
- });
3305
- }
3306
- };
3307
-
3308
3288
  // src/apis/platform/accounts/api.ts
3309
3289
  var platformAccountsApi = {
3310
3290
  account: platformAccountsAccountApi,
@@ -3313,8 +3293,7 @@ var platformAccountsApi = {
3313
3293
  organization: platformAccountsOrganizationApi,
3314
3294
  products: platformAccountsProductsApi,
3315
3295
  scopes: platformAccountsScopesApi,
3316
- sessions: platformAccountsSessionsApi,
3317
- token: platformAccountsTokenApi
3296
+ sessions: platformAccountsSessionsApi
3318
3297
  };
3319
3298
 
3320
3299
  // src/apis/platform/dps/instance.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.26",
3
+ "version": "2.3.28",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
20
  "config": "0.0.1",
21
- "tsconfig": "0.0.1",
22
- "eslint-config-custom": "0.0.2"
21
+ "eslint-config-custom": "0.0.2",
22
+ "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",