@closerplatform/spinner-openapi 0.12.1049 → 0.12.1051
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 +58 -0
- package/dist/api.js +84 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -5062,6 +5062,12 @@ export interface OrgConfig {
|
|
|
5062
5062
|
* @memberof OrgConfig
|
|
5063
5063
|
*/
|
|
5064
5064
|
recordingEnabled: boolean;
|
|
5065
|
+
/**
|
|
5066
|
+
*
|
|
5067
|
+
* @type {number}
|
|
5068
|
+
* @memberof OrgConfig
|
|
5069
|
+
*/
|
|
5070
|
+
recordingValidityMinutes: number;
|
|
5065
5071
|
}
|
|
5066
5072
|
/**
|
|
5067
5073
|
*
|
|
@@ -5661,6 +5667,25 @@ export interface RawPhone {
|
|
|
5661
5667
|
*/
|
|
5662
5668
|
number: string;
|
|
5663
5669
|
}
|
|
5670
|
+
/**
|
|
5671
|
+
*
|
|
5672
|
+
* @export
|
|
5673
|
+
* @interface RecordingSignedUrl
|
|
5674
|
+
*/
|
|
5675
|
+
export interface RecordingSignedUrl {
|
|
5676
|
+
/**
|
|
5677
|
+
* Signed URL to download the call recording
|
|
5678
|
+
* @type {string}
|
|
5679
|
+
* @memberof RecordingSignedUrl
|
|
5680
|
+
*/
|
|
5681
|
+
url: string;
|
|
5682
|
+
/**
|
|
5683
|
+
*
|
|
5684
|
+
* @type {boolean}
|
|
5685
|
+
* @memberof RecordingSignedUrl
|
|
5686
|
+
*/
|
|
5687
|
+
hasVideo: boolean;
|
|
5688
|
+
}
|
|
5664
5689
|
/**
|
|
5665
5690
|
*
|
|
5666
5691
|
* @export
|
|
@@ -8688,6 +8713,14 @@ export declare const CallsApiFetchParamCreator: (configuration?: Configuration)
|
|
|
8688
8713
|
* @throws {RequiredError}
|
|
8689
8714
|
*/
|
|
8690
8715
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): FetchArgs;
|
|
8716
|
+
/**
|
|
8717
|
+
*
|
|
8718
|
+
* @summary Get signed download URL for call recording
|
|
8719
|
+
* @param {string} callId Call ID
|
|
8720
|
+
* @param {*} [options] Override http request option.
|
|
8721
|
+
* @throws {RequiredError}
|
|
8722
|
+
*/
|
|
8723
|
+
getSignedUrlForCall(callId: string, options?: any): FetchArgs;
|
|
8691
8724
|
};
|
|
8692
8725
|
/**
|
|
8693
8726
|
* CallsApi - functional programming interface
|
|
@@ -8713,6 +8746,14 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
|
|
|
8713
8746
|
* @throws {RequiredError}
|
|
8714
8747
|
*/
|
|
8715
8748
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CallPaging>;
|
|
8749
|
+
/**
|
|
8750
|
+
*
|
|
8751
|
+
* @summary Get signed download URL for call recording
|
|
8752
|
+
* @param {string} callId Call ID
|
|
8753
|
+
* @param {*} [options] Override http request option.
|
|
8754
|
+
* @throws {RequiredError}
|
|
8755
|
+
*/
|
|
8756
|
+
getSignedUrlForCall(callId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RecordingSignedUrl>;
|
|
8716
8757
|
};
|
|
8717
8758
|
/**
|
|
8718
8759
|
* CallsApi - factory interface
|
|
@@ -8738,6 +8779,14 @@ export declare const CallsApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
8738
8779
|
* @throws {RequiredError}
|
|
8739
8780
|
*/
|
|
8740
8781
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
|
|
8782
|
+
/**
|
|
8783
|
+
*
|
|
8784
|
+
* @summary Get signed download URL for call recording
|
|
8785
|
+
* @param {string} callId Call ID
|
|
8786
|
+
* @param {*} [options] Override http request option.
|
|
8787
|
+
* @throws {RequiredError}
|
|
8788
|
+
*/
|
|
8789
|
+
getSignedUrlForCall(callId: string, options?: any): Promise<RecordingSignedUrl>;
|
|
8741
8790
|
};
|
|
8742
8791
|
/**
|
|
8743
8792
|
* CallsApi - object-oriented interface
|
|
@@ -8767,6 +8816,15 @@ export declare class CallsApi extends BaseAPI {
|
|
|
8767
8816
|
* @memberof CallsApi
|
|
8768
8817
|
*/
|
|
8769
8818
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
|
|
8819
|
+
/**
|
|
8820
|
+
*
|
|
8821
|
+
* @summary Get signed download URL for call recording
|
|
8822
|
+
* @param {string} callId Call ID
|
|
8823
|
+
* @param {*} [options] Override http request option.
|
|
8824
|
+
* @throws {RequiredError}
|
|
8825
|
+
* @memberof CallsApi
|
|
8826
|
+
*/
|
|
8827
|
+
getSignedUrlForCall(callId: string, options?: any): Promise<RecordingSignedUrl>;
|
|
8770
8828
|
}
|
|
8771
8829
|
/**
|
|
8772
8830
|
* CobrowsingApi - fetch parameter creator
|
package/dist/api.js
CHANGED
|
@@ -3390,6 +3390,49 @@ const CallsApiFetchParamCreator = function (configuration) {
|
|
|
3390
3390
|
options: localVarRequestOptions,
|
|
3391
3391
|
};
|
|
3392
3392
|
},
|
|
3393
|
+
/**
|
|
3394
|
+
*
|
|
3395
|
+
* @summary Get signed download URL for call recording
|
|
3396
|
+
* @param {string} callId Call ID
|
|
3397
|
+
* @param {*} [options] Override http request option.
|
|
3398
|
+
* @throws {RequiredError}
|
|
3399
|
+
*/
|
|
3400
|
+
getSignedUrlForCall(callId, options = {}) {
|
|
3401
|
+
// verify required parameter 'callId' is not null or undefined
|
|
3402
|
+
if (callId === null || callId === undefined) {
|
|
3403
|
+
throw new RequiredError('callId', 'Required parameter callId was null or undefined when calling getSignedUrlForCall.');
|
|
3404
|
+
}
|
|
3405
|
+
const localVarPath = `/calls/signedUrl`;
|
|
3406
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
3407
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
3408
|
+
const localVarHeaderParameter = {};
|
|
3409
|
+
const localVarQueryParameter = {};
|
|
3410
|
+
// authentication apiKey required
|
|
3411
|
+
if (configuration && configuration.apiKey) {
|
|
3412
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
3413
|
+
? configuration.apiKey("X-Api-Key")
|
|
3414
|
+
: configuration.apiKey;
|
|
3415
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
3416
|
+
}
|
|
3417
|
+
// authentication fingerprintAuth required
|
|
3418
|
+
if (configuration && configuration.apiKey) {
|
|
3419
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
3420
|
+
? configuration.apiKey("X-Fingerprint")
|
|
3421
|
+
: configuration.apiKey;
|
|
3422
|
+
localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
|
|
3423
|
+
}
|
|
3424
|
+
if (callId !== undefined) {
|
|
3425
|
+
localVarQueryParameter['callId'] = callId;
|
|
3426
|
+
}
|
|
3427
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
3428
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
3429
|
+
delete localVarUrlObj.search;
|
|
3430
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
3431
|
+
return {
|
|
3432
|
+
url: url.format(localVarUrlObj),
|
|
3433
|
+
options: localVarRequestOptions,
|
|
3434
|
+
};
|
|
3435
|
+
},
|
|
3393
3436
|
};
|
|
3394
3437
|
};
|
|
3395
3438
|
exports.CallsApiFetchParamCreator = CallsApiFetchParamCreator;
|
|
@@ -3442,6 +3485,26 @@ const CallsApiFp = function (configuration) {
|
|
|
3442
3485
|
});
|
|
3443
3486
|
};
|
|
3444
3487
|
},
|
|
3488
|
+
/**
|
|
3489
|
+
*
|
|
3490
|
+
* @summary Get signed download URL for call recording
|
|
3491
|
+
* @param {string} callId Call ID
|
|
3492
|
+
* @param {*} [options] Override http request option.
|
|
3493
|
+
* @throws {RequiredError}
|
|
3494
|
+
*/
|
|
3495
|
+
getSignedUrlForCall(callId, options) {
|
|
3496
|
+
const localVarFetchArgs = (0, exports.CallsApiFetchParamCreator)(configuration).getSignedUrlForCall(callId, options);
|
|
3497
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
3498
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3499
|
+
if (response.status >= 200 && response.status < 300) {
|
|
3500
|
+
return response.json();
|
|
3501
|
+
}
|
|
3502
|
+
else {
|
|
3503
|
+
throw response;
|
|
3504
|
+
}
|
|
3505
|
+
});
|
|
3506
|
+
};
|
|
3507
|
+
},
|
|
3445
3508
|
};
|
|
3446
3509
|
};
|
|
3447
3510
|
exports.CallsApiFp = CallsApiFp;
|
|
@@ -3474,6 +3537,16 @@ const CallsApiFactory = function (configuration, fetch, basePath) {
|
|
|
3474
3537
|
getCalls(limit, afterCreated, afterId, options) {
|
|
3475
3538
|
return (0, exports.CallsApiFp)(configuration).getCalls(limit, afterCreated, afterId, options)(fetch, basePath);
|
|
3476
3539
|
},
|
|
3540
|
+
/**
|
|
3541
|
+
*
|
|
3542
|
+
* @summary Get signed download URL for call recording
|
|
3543
|
+
* @param {string} callId Call ID
|
|
3544
|
+
* @param {*} [options] Override http request option.
|
|
3545
|
+
* @throws {RequiredError}
|
|
3546
|
+
*/
|
|
3547
|
+
getSignedUrlForCall(callId, options) {
|
|
3548
|
+
return (0, exports.CallsApiFp)(configuration).getSignedUrlForCall(callId, options)(fetch, basePath);
|
|
3549
|
+
},
|
|
3477
3550
|
};
|
|
3478
3551
|
};
|
|
3479
3552
|
exports.CallsApiFactory = CallsApiFactory;
|
|
@@ -3509,6 +3582,17 @@ class CallsApi extends BaseAPI {
|
|
|
3509
3582
|
getCalls(limit, afterCreated, afterId, options) {
|
|
3510
3583
|
return (0, exports.CallsApiFp)(this.configuration).getCalls(limit, afterCreated, afterId, options)(this.fetch, this.basePath);
|
|
3511
3584
|
}
|
|
3585
|
+
/**
|
|
3586
|
+
*
|
|
3587
|
+
* @summary Get signed download URL for call recording
|
|
3588
|
+
* @param {string} callId Call ID
|
|
3589
|
+
* @param {*} [options] Override http request option.
|
|
3590
|
+
* @throws {RequiredError}
|
|
3591
|
+
* @memberof CallsApi
|
|
3592
|
+
*/
|
|
3593
|
+
getSignedUrlForCall(callId, options) {
|
|
3594
|
+
return (0, exports.CallsApiFp)(this.configuration).getSignedUrlForCall(callId, options)(this.fetch, this.basePath);
|
|
3595
|
+
}
|
|
3512
3596
|
}
|
|
3513
3597
|
exports.CallsApi = CallsApi;
|
|
3514
3598
|
/**
|