@livechat/developer-studio-api 3.0.5 → 3.0.6

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
@@ -2451,8 +2451,8 @@ declare const api: {
2451
2451
  deleteVariable(appId: string, key: string): Promise<void>;
2452
2452
  };
2453
2453
  templates: {
2454
- getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
2455
- getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepositoryTemplates>;
2454
+ getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppTemplates, any>>;
2455
+ getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
2456
2456
  };
2457
2457
  push(payload: PushAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<PushAppResult, any>>;
2458
2458
  pull(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppManifest, any>>;
package/dist/index.d.ts CHANGED
@@ -2451,8 +2451,8 @@ declare const api: {
2451
2451
  deleteVariable(appId: string, key: string): Promise<void>;
2452
2452
  };
2453
2453
  templates: {
2454
- getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
2455
- getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepositoryTemplates>;
2454
+ getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppTemplates, any>>;
2455
+ getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
2456
2456
  };
2457
2457
  push(payload: PushAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<PushAppResult, any>>;
2458
2458
  pull(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppManifest, any>>;
package/dist/index.js CHANGED
@@ -5427,38 +5427,18 @@ var platformAdapterAppVariablesApi = {
5427
5427
  var platformAdapterAppTemplatesApi = {
5428
5428
  getTemplates(authorization) {
5429
5429
  return __async(this, null, function* () {
5430
- try {
5431
- const response = yield platformAdapterClientInstance.get(
5432
- `/console/app/templates`,
5433
- getPlatformAdapterClientDefaultConfig(authorization)
5434
- );
5435
- return response.data;
5436
- } catch (error) {
5437
- if (error instanceof Error) {
5438
- throw new Error(
5439
- `App templates couldn't be fetched. [${error.message}]`
5440
- );
5441
- }
5442
- throw error;
5443
- }
5430
+ return platformAdapterClientInstance.get(
5431
+ `/console/app/templates`,
5432
+ getPlatformAdapterClientDefaultConfig(authorization)
5433
+ );
5444
5434
  });
5445
5435
  },
5446
5436
  getRepositoryTemplates(authorization) {
5447
5437
  return __async(this, null, function* () {
5448
- try {
5449
- const response = yield platformAdapterClientInstance.get(
5450
- `/console/app/templates/repository`,
5451
- getPlatformAdapterClientDefaultConfig(authorization)
5452
- );
5453
- return response.data;
5454
- } catch (error) {
5455
- if (error instanceof Error) {
5456
- throw new Error(
5457
- `App repository templates couldn't be fetched. [${error.message}]`
5458
- );
5459
- }
5460
- throw error;
5461
- }
5438
+ return platformAdapterClientInstance.get(
5439
+ `/console/app/templates/repository`,
5440
+ getPlatformAdapterClientDefaultConfig(authorization)
5441
+ );
5462
5442
  });
5463
5443
  }
5464
5444
  };
package/dist/index.mjs CHANGED
@@ -5326,38 +5326,18 @@ var platformAdapterAppVariablesApi = {
5326
5326
  var platformAdapterAppTemplatesApi = {
5327
5327
  getTemplates(authorization) {
5328
5328
  return __async(this, null, function* () {
5329
- try {
5330
- const response = yield platformAdapterClientInstance.get(
5331
- `/console/app/templates`,
5332
- getPlatformAdapterClientDefaultConfig(authorization)
5333
- );
5334
- return response.data;
5335
- } catch (error) {
5336
- if (error instanceof Error) {
5337
- throw new Error(
5338
- `App templates couldn't be fetched. [${error.message}]`
5339
- );
5340
- }
5341
- throw error;
5342
- }
5329
+ return platformAdapterClientInstance.get(
5330
+ `/console/app/templates`,
5331
+ getPlatformAdapterClientDefaultConfig(authorization)
5332
+ );
5343
5333
  });
5344
5334
  },
5345
5335
  getRepositoryTemplates(authorization) {
5346
5336
  return __async(this, null, function* () {
5347
- try {
5348
- const response = yield platformAdapterClientInstance.get(
5349
- `/console/app/templates/repository`,
5350
- getPlatformAdapterClientDefaultConfig(authorization)
5351
- );
5352
- return response.data;
5353
- } catch (error) {
5354
- if (error instanceof Error) {
5355
- throw new Error(
5356
- `App repository templates couldn't be fetched. [${error.message}]`
5357
- );
5358
- }
5359
- throw error;
5360
- }
5337
+ return platformAdapterClientInstance.get(
5338
+ `/console/app/templates/repository`,
5339
+ getPlatformAdapterClientDefaultConfig(authorization)
5340
+ );
5361
5341
  });
5362
5342
  }
5363
5343
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",