@closerplatform/spinner-openapi 0.12.1114 → 0.12.1116

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/api.d.ts CHANGED
@@ -8800,6 +8800,14 @@ export declare const CallsApiFetchParamCreator: (configuration?: Configuration)
8800
8800
  * @throws {RequiredError}
8801
8801
  */
8802
8802
  createCall(body: CreateCall, X_Device_Id: string, options?: any): FetchArgs;
8803
+ /**
8804
+ *
8805
+ * @summary Retrieves a single call by ID for the caller's organization
8806
+ * @param {string} id Call ID
8807
+ * @param {*} [options] Override http request option.
8808
+ * @throws {RequiredError}
8809
+ */
8810
+ getCall(id: string, options?: any): FetchArgs;
8803
8811
  /**
8804
8812
  *
8805
8813
  * @summary Get authentication credentials for a call using call token
@@ -8842,6 +8850,14 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
8842
8850
  * @throws {RequiredError}
8843
8851
  */
8844
8852
  createCall(body: CreateCall, X_Device_Id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Call>;
8853
+ /**
8854
+ *
8855
+ * @summary Retrieves a single call by ID for the caller's organization
8856
+ * @param {string} id Call ID
8857
+ * @param {*} [options] Override http request option.
8858
+ * @throws {RequiredError}
8859
+ */
8860
+ getCall(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Call>;
8845
8861
  /**
8846
8862
  *
8847
8863
  * @summary Get authentication credentials for a call using call token
@@ -8884,6 +8900,14 @@ export declare const CallsApiFactory: (configuration?: Configuration, fetch?: Fe
8884
8900
  * @throws {RequiredError}
8885
8901
  */
8886
8902
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8903
+ /**
8904
+ *
8905
+ * @summary Retrieves a single call by ID for the caller's organization
8906
+ * @param {string} id Call ID
8907
+ * @param {*} [options] Override http request option.
8908
+ * @throws {RequiredError}
8909
+ */
8910
+ getCall(id: string, options?: any): Promise<Call>;
8887
8911
  /**
8888
8912
  *
8889
8913
  * @summary Get authentication credentials for a call using call token
@@ -8929,6 +8953,15 @@ export declare class CallsApi extends BaseAPI {
8929
8953
  * @memberof CallsApi
8930
8954
  */
8931
8955
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8956
+ /**
8957
+ *
8958
+ * @summary Retrieves a single call by ID for the caller's organization
8959
+ * @param {string} id Call ID
8960
+ * @param {*} [options] Override http request option.
8961
+ * @throws {RequiredError}
8962
+ * @memberof CallsApi
8963
+ */
8964
+ getCall(id: string, options?: any): Promise<Call>;
8932
8965
  /**
8933
8966
  *
8934
8967
  * @summary Get authentication credentials for a call using call token
package/dist/api.js CHANGED
@@ -3376,6 +3376,40 @@ const CallsApiFetchParamCreator = function (configuration) {
3376
3376
  options: localVarRequestOptions,
3377
3377
  };
3378
3378
  },
3379
+ /**
3380
+ *
3381
+ * @summary Retrieves a single call by ID for the caller's organization
3382
+ * @param {string} id Call ID
3383
+ * @param {*} [options] Override http request option.
3384
+ * @throws {RequiredError}
3385
+ */
3386
+ getCall(id, options = {}) {
3387
+ // verify required parameter 'id' is not null or undefined
3388
+ if (id === null || id === undefined) {
3389
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling getCall.');
3390
+ }
3391
+ const localVarPath = `/calls/{id}`
3392
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3393
+ const localVarUrlObj = url.parse(localVarPath, true);
3394
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
3395
+ const localVarHeaderParameter = {};
3396
+ const localVarQueryParameter = {};
3397
+ // authentication apiKey required
3398
+ if (configuration && configuration.apiKey) {
3399
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3400
+ ? configuration.apiKey("X-Api-Key")
3401
+ : configuration.apiKey;
3402
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
3403
+ }
3404
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3405
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3406
+ delete localVarUrlObj.search;
3407
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3408
+ return {
3409
+ url: url.format(localVarUrlObj),
3410
+ options: localVarRequestOptions,
3411
+ };
3412
+ },
3379
3413
  /**
3380
3414
  *
3381
3415
  * @summary Get authentication credentials for a call using call token
@@ -3433,13 +3467,6 @@ const CallsApiFetchParamCreator = function (configuration) {
3433
3467
  : configuration.apiKey;
3434
3468
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
3435
3469
  }
3436
- // authentication fingerprintAuth required
3437
- if (configuration && configuration.apiKey) {
3438
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3439
- ? configuration.apiKey("X-Fingerprint")
3440
- : configuration.apiKey;
3441
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
3442
- }
3443
3470
  if (limit !== undefined) {
3444
3471
  localVarQueryParameter['limit'] = limit;
3445
3472
  }
@@ -3482,13 +3509,6 @@ const CallsApiFetchParamCreator = function (configuration) {
3482
3509
  : configuration.apiKey;
3483
3510
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
3484
3511
  }
3485
- // authentication fingerprintAuth required
3486
- if (configuration && configuration.apiKey) {
3487
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3488
- ? configuration.apiKey("X-Fingerprint")
3489
- : configuration.apiKey;
3490
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
3491
- }
3492
3512
  if (callId !== undefined) {
3493
3513
  localVarQueryParameter['callId'] = callId;
3494
3514
  }
@@ -3531,6 +3551,26 @@ const CallsApiFp = function (configuration) {
3531
3551
  });
3532
3552
  };
3533
3553
  },
3554
+ /**
3555
+ *
3556
+ * @summary Retrieves a single call by ID for the caller's organization
3557
+ * @param {string} id Call ID
3558
+ * @param {*} [options] Override http request option.
3559
+ * @throws {RequiredError}
3560
+ */
3561
+ getCall(id, options) {
3562
+ const localVarFetchArgs = (0, exports.CallsApiFetchParamCreator)(configuration).getCall(id, options);
3563
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
3564
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
3565
+ if (response.status >= 200 && response.status < 300) {
3566
+ return response.json();
3567
+ }
3568
+ else {
3569
+ throw response;
3570
+ }
3571
+ });
3572
+ };
3573
+ },
3534
3574
  /**
3535
3575
  *
3536
3576
  * @summary Get authentication credentials for a call using call token
@@ -3614,6 +3654,16 @@ const CallsApiFactory = function (configuration, fetch, basePath) {
3614
3654
  createCall(body, X_Device_Id, options) {
3615
3655
  return (0, exports.CallsApiFp)(configuration).createCall(body, X_Device_Id, options)(fetch, basePath);
3616
3656
  },
3657
+ /**
3658
+ *
3659
+ * @summary Retrieves a single call by ID for the caller's organization
3660
+ * @param {string} id Call ID
3661
+ * @param {*} [options] Override http request option.
3662
+ * @throws {RequiredError}
3663
+ */
3664
+ getCall(id, options) {
3665
+ return (0, exports.CallsApiFp)(configuration).getCall(id, options)(fetch, basePath);
3666
+ },
3617
3667
  /**
3618
3668
  *
3619
3669
  * @summary Get authentication credentials for a call using call token
@@ -3669,6 +3719,17 @@ class CallsApi extends BaseAPI {
3669
3719
  createCall(body, X_Device_Id, options) {
3670
3720
  return (0, exports.CallsApiFp)(this.configuration).createCall(body, X_Device_Id, options)(this.fetch, this.basePath);
3671
3721
  }
3722
+ /**
3723
+ *
3724
+ * @summary Retrieves a single call by ID for the caller's organization
3725
+ * @param {string} id Call ID
3726
+ * @param {*} [options] Override http request option.
3727
+ * @throws {RequiredError}
3728
+ * @memberof CallsApi
3729
+ */
3730
+ getCall(id, options) {
3731
+ return (0, exports.CallsApiFp)(this.configuration).getCall(id, options)(this.fetch, this.basePath);
3732
+ }
3672
3733
  /**
3673
3734
  *
3674
3735
  * @summary Get authentication credentials for a call using call token
@@ -10232,13 +10293,6 @@ const OrgsApiFetchParamCreator = function (configuration) {
10232
10293
  : configuration.apiKey;
10233
10294
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
10234
10295
  }
10235
- // authentication fingerprintAuth required
10236
- if (configuration && configuration.apiKey) {
10237
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
10238
- ? configuration.apiKey("X-Fingerprint")
10239
- : configuration.apiKey;
10240
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
10241
- }
10242
10296
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
10243
10297
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
10244
10298
  delete localVarUrlObj.search;
@@ -10307,6 +10361,13 @@ const OrgsApiFetchParamCreator = function (configuration) {
10307
10361
  : configuration.apiKey;
10308
10362
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
10309
10363
  }
10364
+ // authentication fingerprintAuth required
10365
+ if (configuration && configuration.apiKey) {
10366
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
10367
+ ? configuration.apiKey("X-Fingerprint")
10368
+ : configuration.apiKey;
10369
+ localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
10370
+ }
10310
10371
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
10311
10372
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
10312
10373
  delete localVarUrlObj.search;
@@ -10361,13 +10422,6 @@ const OrgsApiFetchParamCreator = function (configuration) {
10361
10422
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
10362
10423
  const localVarHeaderParameter = {};
10363
10424
  const localVarQueryParameter = {};
10364
- // authentication fingerprintAuth required
10365
- if (configuration && configuration.apiKey) {
10366
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
10367
- ? configuration.apiKey("X-Fingerprint")
10368
- : configuration.apiKey;
10369
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
10370
- }
10371
10425
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
10372
10426
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
10373
10427
  delete localVarUrlObj.search;
@@ -17408,13 +17462,6 @@ const UsersApiFetchParamCreator = function (configuration) {
17408
17462
  : configuration.apiKey;
17409
17463
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
17410
17464
  }
17411
- // authentication fingerprintAuth required
17412
- if (configuration && configuration.apiKey) {
17413
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17414
- ? configuration.apiKey("X-Fingerprint")
17415
- : configuration.apiKey;
17416
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
17417
- }
17418
17465
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
17419
17466
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17420
17467
  delete localVarUrlObj.search;
@@ -18383,13 +18430,6 @@ const UsersApiFetchParamCreator = function (configuration) {
18383
18430
  : configuration.apiKey;
18384
18431
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
18385
18432
  }
18386
- // authentication fingerprintAuth required
18387
- if (configuration && configuration.apiKey) {
18388
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18389
- ? configuration.apiKey("X-Fingerprint")
18390
- : configuration.apiKey;
18391
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
18392
- }
18393
18433
  localVarHeaderParameter['Content-Type'] = 'application/json';
18394
18434
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
18395
18435
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.1114",
3
+ "version": "0.12.1116",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [