@livechat/developer-studio-api 2.3.19 → 2.3.21

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
@@ -2083,6 +2083,18 @@ declare const api: {
2083
2083
  key: string;
2084
2084
  }): Promise<void>;
2085
2085
  };
2086
+ creator: {
2087
+ app(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2088
+ repository(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2089
+ seed(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2090
+ deployment(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2091
+ deployment_accessible(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2092
+ storage(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2093
+ authorization(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2094
+ widgets(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2095
+ properties(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2096
+ monetization(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2097
+ };
2086
2098
  create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2087
2099
  createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2088
2100
  };
package/dist/index.d.ts CHANGED
@@ -2083,6 +2083,18 @@ declare const api: {
2083
2083
  key: string;
2084
2084
  }): Promise<void>;
2085
2085
  };
2086
+ creator: {
2087
+ app(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2088
+ repository(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2089
+ seed(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2090
+ deployment(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2091
+ deployment_accessible(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2092
+ storage(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2093
+ authorization(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2094
+ widgets(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2095
+ properties(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2096
+ monetization(payload: CreateApplicationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2097
+ };
2086
2098
  create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2087
2099
  createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2088
2100
  };
package/dist/index.js CHANGED
@@ -5363,10 +5363,189 @@ var platformAdapterAppVariablesApi = {
5363
5363
  }
5364
5364
  };
5365
5365
 
5366
+ // src/apis/platform/adapter/app/creator/api.ts
5367
+ var platformAdapterAppCreatorApi = {
5368
+ app(payload, authorization) {
5369
+ return __async(this, null, function* () {
5370
+ try {
5371
+ const response = yield platformAdapterClientInstance.post(
5372
+ `/console/app/new/app`,
5373
+ payload,
5374
+ getPlatformAdapterClientConfig(authorization)
5375
+ );
5376
+ return response.data;
5377
+ } catch (error) {
5378
+ if (error instanceof Error) {
5379
+ throw new Error(`App couldn't be created. [${error.message}]`);
5380
+ }
5381
+ throw error;
5382
+ }
5383
+ });
5384
+ },
5385
+ repository(payload, authorization) {
5386
+ return __async(this, null, function* () {
5387
+ try {
5388
+ const response = yield platformAdapterClientInstance.post(
5389
+ `/console/app/new/repository`,
5390
+ payload,
5391
+ getPlatformAdapterClientConfig(authorization)
5392
+ );
5393
+ return response.data;
5394
+ } catch (error) {
5395
+ if (error instanceof Error) {
5396
+ throw new Error(`Repository couldn't be created. [${error.message}]`);
5397
+ }
5398
+ throw error;
5399
+ }
5400
+ });
5401
+ },
5402
+ seed(payload, authorization) {
5403
+ return __async(this, null, function* () {
5404
+ try {
5405
+ const response = yield platformAdapterClientInstance.post(
5406
+ `/console/app/new/seed`,
5407
+ payload,
5408
+ getPlatformAdapterClientConfig(authorization)
5409
+ );
5410
+ return response.data;
5411
+ } catch (error) {
5412
+ if (error instanceof Error) {
5413
+ throw new Error(`Seed couldn't be created. [${error.message}]`);
5414
+ }
5415
+ throw error;
5416
+ }
5417
+ });
5418
+ },
5419
+ deployment(payload, authorization) {
5420
+ return __async(this, null, function* () {
5421
+ try {
5422
+ const response = yield platformAdapterClientInstance.post(
5423
+ `/console/app/new/deployment`,
5424
+ payload,
5425
+ getPlatformAdapterClientConfig(authorization)
5426
+ );
5427
+ return response.data;
5428
+ } catch (error) {
5429
+ if (error instanceof Error) {
5430
+ throw new Error(`Deployment couldn't be created. [${error.message}]`);
5431
+ }
5432
+ throw error;
5433
+ }
5434
+ });
5435
+ },
5436
+ deployment_accessible(payload, authorization) {
5437
+ return __async(this, null, function* () {
5438
+ try {
5439
+ const response = yield platformAdapterClientInstance.post(
5440
+ `/console/app/new/deployment_accessible`,
5441
+ payload,
5442
+ getPlatformAdapterClientConfig(authorization)
5443
+ );
5444
+ return response.data;
5445
+ } catch (error) {
5446
+ if (error instanceof Error) {
5447
+ throw new Error(
5448
+ `Deployment accessibility couldn't be checked. [${error.message}]`
5449
+ );
5450
+ }
5451
+ throw error;
5452
+ }
5453
+ });
5454
+ },
5455
+ storage(payload, authorization) {
5456
+ return __async(this, null, function* () {
5457
+ try {
5458
+ const response = yield platformAdapterClientInstance.post(
5459
+ `/console/app/new/storage`,
5460
+ payload,
5461
+ getPlatformAdapterClientConfig(authorization)
5462
+ );
5463
+ return response.data;
5464
+ } catch (error) {
5465
+ if (error instanceof Error) {
5466
+ throw new Error(`Storage couldn't be created. [${error.message}]`);
5467
+ }
5468
+ throw error;
5469
+ }
5470
+ });
5471
+ },
5472
+ authorization(payload, authorization) {
5473
+ return __async(this, null, function* () {
5474
+ try {
5475
+ const response = yield platformAdapterClientInstance.post(
5476
+ `/console/app/new/authorization`,
5477
+ payload,
5478
+ getPlatformAdapterClientConfig(authorization)
5479
+ );
5480
+ return response.data;
5481
+ } catch (error) {
5482
+ if (error instanceof Error) {
5483
+ throw new Error(
5484
+ `Authorization couldn't be created. [${error.message}]`
5485
+ );
5486
+ }
5487
+ throw error;
5488
+ }
5489
+ });
5490
+ },
5491
+ widgets(payload, authorization) {
5492
+ return __async(this, null, function* () {
5493
+ try {
5494
+ const response = yield platformAdapterClientInstance.post(
5495
+ `/console/app/new/widgets`,
5496
+ payload,
5497
+ getPlatformAdapterClientConfig(authorization)
5498
+ );
5499
+ return response.data;
5500
+ } catch (error) {
5501
+ if (error instanceof Error) {
5502
+ throw new Error(`Widgets couldn't be created. [${error.message}]`);
5503
+ }
5504
+ throw error;
5505
+ }
5506
+ });
5507
+ },
5508
+ properties(payload, authorization) {
5509
+ return __async(this, null, function* () {
5510
+ try {
5511
+ const response = yield platformAdapterClientInstance.post(
5512
+ `/console/app/new/properties`,
5513
+ payload,
5514
+ getPlatformAdapterClientConfig(authorization)
5515
+ );
5516
+ return response.data;
5517
+ } catch (error) {
5518
+ if (error instanceof Error) {
5519
+ throw new Error(`Properties couldn't be created. [${error.message}]`);
5520
+ }
5521
+ throw error;
5522
+ }
5523
+ });
5524
+ },
5525
+ monetization(payload, authorization) {
5526
+ return __async(this, null, function* () {
5527
+ try {
5528
+ const response = yield platformAdapterClientInstance.post(
5529
+ `/console/app/new/monetization`,
5530
+ payload,
5531
+ getPlatformAdapterClientConfig(authorization)
5532
+ );
5533
+ return response.data;
5534
+ } catch (error) {
5535
+ if (error instanceof Error) {
5536
+ throw new Error(`Monetization couldn't be created. [${error.message}]`);
5537
+ }
5538
+ throw error;
5539
+ }
5540
+ });
5541
+ }
5542
+ };
5543
+
5366
5544
  // src/apis/platform/adapter/app/api.ts
5367
5545
  var platformAdapterAppApi = {
5368
5546
  blocks: platformAdapterAppBlocksApi,
5369
5547
  variables: platformAdapterAppVariablesApi,
5548
+ creator: platformAdapterAppCreatorApi,
5370
5549
  create(payload, authorization) {
5371
5550
  return __async(this, null, function* () {
5372
5551
  const response = yield platformAdapterClientInstance.post(
package/dist/index.mjs CHANGED
@@ -5272,10 +5272,189 @@ var platformAdapterAppVariablesApi = {
5272
5272
  }
5273
5273
  };
5274
5274
 
5275
+ // src/apis/platform/adapter/app/creator/api.ts
5276
+ var platformAdapterAppCreatorApi = {
5277
+ app(payload, authorization) {
5278
+ return __async(this, null, function* () {
5279
+ try {
5280
+ const response = yield platformAdapterClientInstance.post(
5281
+ `/console/app/new/app`,
5282
+ payload,
5283
+ getPlatformAdapterClientConfig(authorization)
5284
+ );
5285
+ return response.data;
5286
+ } catch (error) {
5287
+ if (error instanceof Error) {
5288
+ throw new Error(`App couldn't be created. [${error.message}]`);
5289
+ }
5290
+ throw error;
5291
+ }
5292
+ });
5293
+ },
5294
+ repository(payload, authorization) {
5295
+ return __async(this, null, function* () {
5296
+ try {
5297
+ const response = yield platformAdapterClientInstance.post(
5298
+ `/console/app/new/repository`,
5299
+ payload,
5300
+ getPlatformAdapterClientConfig(authorization)
5301
+ );
5302
+ return response.data;
5303
+ } catch (error) {
5304
+ if (error instanceof Error) {
5305
+ throw new Error(`Repository couldn't be created. [${error.message}]`);
5306
+ }
5307
+ throw error;
5308
+ }
5309
+ });
5310
+ },
5311
+ seed(payload, authorization) {
5312
+ return __async(this, null, function* () {
5313
+ try {
5314
+ const response = yield platformAdapterClientInstance.post(
5315
+ `/console/app/new/seed`,
5316
+ payload,
5317
+ getPlatformAdapterClientConfig(authorization)
5318
+ );
5319
+ return response.data;
5320
+ } catch (error) {
5321
+ if (error instanceof Error) {
5322
+ throw new Error(`Seed couldn't be created. [${error.message}]`);
5323
+ }
5324
+ throw error;
5325
+ }
5326
+ });
5327
+ },
5328
+ deployment(payload, authorization) {
5329
+ return __async(this, null, function* () {
5330
+ try {
5331
+ const response = yield platformAdapterClientInstance.post(
5332
+ `/console/app/new/deployment`,
5333
+ payload,
5334
+ getPlatformAdapterClientConfig(authorization)
5335
+ );
5336
+ return response.data;
5337
+ } catch (error) {
5338
+ if (error instanceof Error) {
5339
+ throw new Error(`Deployment couldn't be created. [${error.message}]`);
5340
+ }
5341
+ throw error;
5342
+ }
5343
+ });
5344
+ },
5345
+ deployment_accessible(payload, authorization) {
5346
+ return __async(this, null, function* () {
5347
+ try {
5348
+ const response = yield platformAdapterClientInstance.post(
5349
+ `/console/app/new/deployment_accessible`,
5350
+ payload,
5351
+ getPlatformAdapterClientConfig(authorization)
5352
+ );
5353
+ return response.data;
5354
+ } catch (error) {
5355
+ if (error instanceof Error) {
5356
+ throw new Error(
5357
+ `Deployment accessibility couldn't be checked. [${error.message}]`
5358
+ );
5359
+ }
5360
+ throw error;
5361
+ }
5362
+ });
5363
+ },
5364
+ storage(payload, authorization) {
5365
+ return __async(this, null, function* () {
5366
+ try {
5367
+ const response = yield platformAdapterClientInstance.post(
5368
+ `/console/app/new/storage`,
5369
+ payload,
5370
+ getPlatformAdapterClientConfig(authorization)
5371
+ );
5372
+ return response.data;
5373
+ } catch (error) {
5374
+ if (error instanceof Error) {
5375
+ throw new Error(`Storage couldn't be created. [${error.message}]`);
5376
+ }
5377
+ throw error;
5378
+ }
5379
+ });
5380
+ },
5381
+ authorization(payload, authorization) {
5382
+ return __async(this, null, function* () {
5383
+ try {
5384
+ const response = yield platformAdapterClientInstance.post(
5385
+ `/console/app/new/authorization`,
5386
+ payload,
5387
+ getPlatformAdapterClientConfig(authorization)
5388
+ );
5389
+ return response.data;
5390
+ } catch (error) {
5391
+ if (error instanceof Error) {
5392
+ throw new Error(
5393
+ `Authorization couldn't be created. [${error.message}]`
5394
+ );
5395
+ }
5396
+ throw error;
5397
+ }
5398
+ });
5399
+ },
5400
+ widgets(payload, authorization) {
5401
+ return __async(this, null, function* () {
5402
+ try {
5403
+ const response = yield platformAdapterClientInstance.post(
5404
+ `/console/app/new/widgets`,
5405
+ payload,
5406
+ getPlatformAdapterClientConfig(authorization)
5407
+ );
5408
+ return response.data;
5409
+ } catch (error) {
5410
+ if (error instanceof Error) {
5411
+ throw new Error(`Widgets couldn't be created. [${error.message}]`);
5412
+ }
5413
+ throw error;
5414
+ }
5415
+ });
5416
+ },
5417
+ properties(payload, authorization) {
5418
+ return __async(this, null, function* () {
5419
+ try {
5420
+ const response = yield platformAdapterClientInstance.post(
5421
+ `/console/app/new/properties`,
5422
+ payload,
5423
+ getPlatformAdapterClientConfig(authorization)
5424
+ );
5425
+ return response.data;
5426
+ } catch (error) {
5427
+ if (error instanceof Error) {
5428
+ throw new Error(`Properties couldn't be created. [${error.message}]`);
5429
+ }
5430
+ throw error;
5431
+ }
5432
+ });
5433
+ },
5434
+ monetization(payload, authorization) {
5435
+ return __async(this, null, function* () {
5436
+ try {
5437
+ const response = yield platformAdapterClientInstance.post(
5438
+ `/console/app/new/monetization`,
5439
+ payload,
5440
+ getPlatformAdapterClientConfig(authorization)
5441
+ );
5442
+ return response.data;
5443
+ } catch (error) {
5444
+ if (error instanceof Error) {
5445
+ throw new Error(`Monetization couldn't be created. [${error.message}]`);
5446
+ }
5447
+ throw error;
5448
+ }
5449
+ });
5450
+ }
5451
+ };
5452
+
5275
5453
  // src/apis/platform/adapter/app/api.ts
5276
5454
  var platformAdapterAppApi = {
5277
5455
  blocks: platformAdapterAppBlocksApi,
5278
5456
  variables: platformAdapterAppVariablesApi,
5457
+ creator: platformAdapterAppCreatorApi,
5279
5458
  create(payload, authorization) {
5280
5459
  return __async(this, null, function* () {
5281
5460
  const response = yield platformAdapterClientInstance.post(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.19",
3
+ "version": "2.3.21",
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,9 +17,9 @@
17
17
  "@types/node": "^17.0.12",
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
+ "config": "0.0.1",
20
21
  "eslint-config-custom": "0.0.2",
21
- "tsconfig": "0.0.1",
22
- "config": "0.0.1"
22
+ "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",