@closerplatform/spinner-openapi 0.12.1049 → 0.12.1050
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 +52 -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,19 @@ 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
|
+
}
|
|
5664
5683
|
/**
|
|
5665
5684
|
*
|
|
5666
5685
|
* @export
|
|
@@ -8688,6 +8707,14 @@ export declare const CallsApiFetchParamCreator: (configuration?: Configuration)
|
|
|
8688
8707
|
* @throws {RequiredError}
|
|
8689
8708
|
*/
|
|
8690
8709
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): FetchArgs;
|
|
8710
|
+
/**
|
|
8711
|
+
*
|
|
8712
|
+
* @summary Get signed download URL for call recording
|
|
8713
|
+
* @param {string} callId Call ID
|
|
8714
|
+
* @param {*} [options] Override http request option.
|
|
8715
|
+
* @throws {RequiredError}
|
|
8716
|
+
*/
|
|
8717
|
+
getSignedUrlForCall(callId: string, options?: any): FetchArgs;
|
|
8691
8718
|
};
|
|
8692
8719
|
/**
|
|
8693
8720
|
* CallsApi - functional programming interface
|
|
@@ -8713,6 +8740,14 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
|
|
|
8713
8740
|
* @throws {RequiredError}
|
|
8714
8741
|
*/
|
|
8715
8742
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CallPaging>;
|
|
8743
|
+
/**
|
|
8744
|
+
*
|
|
8745
|
+
* @summary Get signed download URL for call recording
|
|
8746
|
+
* @param {string} callId Call ID
|
|
8747
|
+
* @param {*} [options] Override http request option.
|
|
8748
|
+
* @throws {RequiredError}
|
|
8749
|
+
*/
|
|
8750
|
+
getSignedUrlForCall(callId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RecordingSignedUrl>;
|
|
8716
8751
|
};
|
|
8717
8752
|
/**
|
|
8718
8753
|
* CallsApi - factory interface
|
|
@@ -8738,6 +8773,14 @@ export declare const CallsApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
8738
8773
|
* @throws {RequiredError}
|
|
8739
8774
|
*/
|
|
8740
8775
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
|
|
8776
|
+
/**
|
|
8777
|
+
*
|
|
8778
|
+
* @summary Get signed download URL for call recording
|
|
8779
|
+
* @param {string} callId Call ID
|
|
8780
|
+
* @param {*} [options] Override http request option.
|
|
8781
|
+
* @throws {RequiredError}
|
|
8782
|
+
*/
|
|
8783
|
+
getSignedUrlForCall(callId: string, options?: any): Promise<RecordingSignedUrl>;
|
|
8741
8784
|
};
|
|
8742
8785
|
/**
|
|
8743
8786
|
* CallsApi - object-oriented interface
|
|
@@ -8767,6 +8810,15 @@ export declare class CallsApi extends BaseAPI {
|
|
|
8767
8810
|
* @memberof CallsApi
|
|
8768
8811
|
*/
|
|
8769
8812
|
getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
|
|
8813
|
+
/**
|
|
8814
|
+
*
|
|
8815
|
+
* @summary Get signed download URL for call recording
|
|
8816
|
+
* @param {string} callId Call ID
|
|
8817
|
+
* @param {*} [options] Override http request option.
|
|
8818
|
+
* @throws {RequiredError}
|
|
8819
|
+
* @memberof CallsApi
|
|
8820
|
+
*/
|
|
8821
|
+
getSignedUrlForCall(callId: string, options?: any): Promise<RecordingSignedUrl>;
|
|
8770
8822
|
}
|
|
8771
8823
|
/**
|
|
8772
8824
|
* 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
|
/**
|