ultracart_rest_api_v2_typescript 3.10.196 → 3.10.197
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/README.md +3 -2
- package/api.ts +155 -0
- package/dist/api.d.ts +91 -0
- package/dist/api.js +89 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.197
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.197 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.197 | 05/02/2024 | conversation - new method to load pbx audio usage |
|
|
57
58
|
| 3.10.196 | 05/02/2024 | autoorder - fields to record merge association and tstamp |
|
|
58
59
|
| 3.10.195 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
|
|
59
60
|
| 3.10.194 | 04/24/2024 | esp - add fields for external generation on email |
|
package/api.ts
CHANGED
|
@@ -8902,6 +8902,56 @@ export interface ConversationPbxAudioUploadUrlResponse {
|
|
|
8902
8902
|
warning?: Warning;
|
|
8903
8903
|
}
|
|
8904
8904
|
|
|
8905
|
+
/**
|
|
8906
|
+
*
|
|
8907
|
+
* @export
|
|
8908
|
+
* @interface ConversationPbxAudioUsageResponse
|
|
8909
|
+
*/
|
|
8910
|
+
export interface ConversationPbxAudioUsageResponse {
|
|
8911
|
+
/**
|
|
8912
|
+
*
|
|
8913
|
+
* @type {ModelError}
|
|
8914
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8915
|
+
*/
|
|
8916
|
+
error?: ModelError;
|
|
8917
|
+
/**
|
|
8918
|
+
*
|
|
8919
|
+
* @type {Array<ConversationPbxMenu>}
|
|
8920
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8921
|
+
*/
|
|
8922
|
+
menus?: Array<ConversationPbxMenu>;
|
|
8923
|
+
/**
|
|
8924
|
+
*
|
|
8925
|
+
* @type {ResponseMetadata}
|
|
8926
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8927
|
+
*/
|
|
8928
|
+
metadata?: ResponseMetadata;
|
|
8929
|
+
/**
|
|
8930
|
+
*
|
|
8931
|
+
* @type {Array<ConversationPbxQueue>}
|
|
8932
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8933
|
+
*/
|
|
8934
|
+
queues?: Array<ConversationPbxQueue>;
|
|
8935
|
+
/**
|
|
8936
|
+
* Indicates if API call was successful
|
|
8937
|
+
* @type {boolean}
|
|
8938
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8939
|
+
*/
|
|
8940
|
+
success?: boolean;
|
|
8941
|
+
/**
|
|
8942
|
+
*
|
|
8943
|
+
* @type {Array<ConversationPbxVoicemailMailbox>}
|
|
8944
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8945
|
+
*/
|
|
8946
|
+
voicemail_mailboxes?: Array<ConversationPbxVoicemailMailbox>;
|
|
8947
|
+
/**
|
|
8948
|
+
*
|
|
8949
|
+
* @type {Warning}
|
|
8950
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8951
|
+
*/
|
|
8952
|
+
warning?: Warning;
|
|
8953
|
+
}
|
|
8954
|
+
|
|
8905
8955
|
/**
|
|
8906
8956
|
*
|
|
8907
8957
|
* @export
|
|
@@ -52424,6 +52474,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
52424
52474
|
|
|
52425
52475
|
|
|
52426
52476
|
|
|
52477
|
+
// authentication ultraCartOauth required
|
|
52478
|
+
// oauth required
|
|
52479
|
+
if (configuration && configuration.accessToken) {
|
|
52480
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
52481
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
52482
|
+
: configuration.accessToken;
|
|
52483
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
52484
|
+
}
|
|
52485
|
+
|
|
52486
|
+
// authentication ultraCartSimpleApiKey required
|
|
52487
|
+
if (configuration && configuration.apiKey) {
|
|
52488
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
52489
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
52490
|
+
: configuration.apiKey;
|
|
52491
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
52492
|
+
}
|
|
52493
|
+
|
|
52494
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
52495
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
52496
|
+
delete localVarUrlObj.search;
|
|
52497
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
52498
|
+
|
|
52499
|
+
return {
|
|
52500
|
+
url: url.format(localVarUrlObj),
|
|
52501
|
+
options: localVarRequestOptions,
|
|
52502
|
+
};
|
|
52503
|
+
},
|
|
52504
|
+
/**
|
|
52505
|
+
* Retrieve a pbx audio usage
|
|
52506
|
+
* @summary Get pbx audio usage
|
|
52507
|
+
* @param {string} conversationPbxAudioUuid
|
|
52508
|
+
* @param {*} [options] Override http request option.
|
|
52509
|
+
* @throws {RequiredError}
|
|
52510
|
+
*/
|
|
52511
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options: any = {}): FetchArgs {
|
|
52512
|
+
// verify required parameter 'conversationPbxAudioUuid' is not null or undefined
|
|
52513
|
+
if (conversationPbxAudioUuid === null || conversationPbxAudioUuid === undefined) {
|
|
52514
|
+
throw new RequiredError('conversationPbxAudioUuid','Required parameter conversationPbxAudioUuid was null or undefined when calling getPbxAudioUsage.');
|
|
52515
|
+
}
|
|
52516
|
+
const localVarPath = `/conversation/pbx/audio/{conversationPbxAudioUuid}/usage`
|
|
52517
|
+
.replace(`{${"conversationPbxAudioUuid"}}`, encodeURIComponent(String(conversationPbxAudioUuid)));
|
|
52518
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
52519
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
52520
|
+
const localVarHeaderParameter = {} as any;
|
|
52521
|
+
const localVarQueryParameter = {} as any;
|
|
52522
|
+
|
|
52523
|
+
if(configuration && configuration.apiVersion) {
|
|
52524
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
52525
|
+
}
|
|
52526
|
+
|
|
52527
|
+
|
|
52528
|
+
|
|
52427
52529
|
// authentication ultraCartOauth required
|
|
52428
52530
|
// oauth required
|
|
52429
52531
|
if (configuration && configuration.accessToken) {
|
|
@@ -55874,6 +55976,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
55874
55976
|
});
|
|
55875
55977
|
};
|
|
55876
55978
|
},
|
|
55979
|
+
/**
|
|
55980
|
+
* Retrieve a pbx audio usage
|
|
55981
|
+
* @summary Get pbx audio usage
|
|
55982
|
+
* @param {string} conversationPbxAudioUuid
|
|
55983
|
+
* @param {*} [options] Override http request option.
|
|
55984
|
+
* @throws {RequiredError}
|
|
55985
|
+
*/
|
|
55986
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxAudioUsageResponse> {
|
|
55987
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getPbxAudioUsage(conversationPbxAudioUuid, options);
|
|
55988
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
55989
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
55990
|
+
|
|
55991
|
+
if (response.status >= 200 && response.status < 300) {
|
|
55992
|
+
return response.json();
|
|
55993
|
+
|
|
55994
|
+
} else {
|
|
55995
|
+
throw response;
|
|
55996
|
+
}
|
|
55997
|
+
});
|
|
55998
|
+
};
|
|
55999
|
+
},
|
|
55877
56000
|
/**
|
|
55878
56001
|
* Retrieve pbx audios
|
|
55879
56002
|
* @summary Get pbx audios
|
|
@@ -57274,6 +57397,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
57274
57397
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any) {
|
|
57275
57398
|
return ConversationApiFp(configuration).getPbxAudio(conversationPbxAudioUuid, options)(fetch, basePath);
|
|
57276
57399
|
},
|
|
57400
|
+
/**
|
|
57401
|
+
* Retrieve a pbx audio usage
|
|
57402
|
+
* @summary Get pbx audio usage
|
|
57403
|
+
* @param {string} conversationPbxAudioUuid
|
|
57404
|
+
* @param {*} [options] Override http request option.
|
|
57405
|
+
* @throws {RequiredError}
|
|
57406
|
+
*/
|
|
57407
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any) {
|
|
57408
|
+
return ConversationApiFp(configuration).getPbxAudioUsage(conversationPbxAudioUuid, options)(fetch, basePath);
|
|
57409
|
+
},
|
|
57277
57410
|
/**
|
|
57278
57411
|
* Retrieve pbx audios
|
|
57279
57412
|
* @summary Get pbx audios
|
|
@@ -58146,6 +58279,16 @@ export interface ConversationApiInterface {
|
|
|
58146
58279
|
*/
|
|
58147
58280
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioResponse>;
|
|
58148
58281
|
|
|
58282
|
+
/**
|
|
58283
|
+
* Retrieve a pbx audio usage
|
|
58284
|
+
* @summary Get pbx audio usage
|
|
58285
|
+
* @param {string} conversationPbxAudioUuid
|
|
58286
|
+
* @param {*} [options] Override http request option.
|
|
58287
|
+
* @throws {RequiredError}
|
|
58288
|
+
* @memberof ConversationApiInterface
|
|
58289
|
+
*/
|
|
58290
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioUsageResponse>;
|
|
58291
|
+
|
|
58149
58292
|
/**
|
|
58150
58293
|
* Retrieve pbx audios
|
|
58151
58294
|
* @summary Get pbx audios
|
|
@@ -59094,6 +59237,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
59094
59237
|
return ConversationApiFp(this.configuration).getPbxAudio(conversationPbxAudioUuid, options)(this.fetch, this.basePath);
|
|
59095
59238
|
}
|
|
59096
59239
|
|
|
59240
|
+
/**
|
|
59241
|
+
* Retrieve a pbx audio usage
|
|
59242
|
+
* @summary Get pbx audio usage
|
|
59243
|
+
* @param {string} conversationPbxAudioUuid
|
|
59244
|
+
* @param {*} [options] Override http request option.
|
|
59245
|
+
* @throws {RequiredError}
|
|
59246
|
+
* @memberof ConversationApi
|
|
59247
|
+
*/
|
|
59248
|
+
public getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any) {
|
|
59249
|
+
return ConversationApiFp(this.configuration).getPbxAudioUsage(conversationPbxAudioUuid, options)(this.fetch, this.basePath);
|
|
59250
|
+
}
|
|
59251
|
+
|
|
59097
59252
|
/**
|
|
59098
59253
|
* Retrieve pbx audios
|
|
59099
59254
|
* @summary Get pbx audios
|
package/dist/api.d.ts
CHANGED
|
@@ -8688,6 +8688,55 @@ export interface ConversationPbxAudioUploadUrlResponse {
|
|
|
8688
8688
|
*/
|
|
8689
8689
|
warning?: Warning;
|
|
8690
8690
|
}
|
|
8691
|
+
/**
|
|
8692
|
+
*
|
|
8693
|
+
* @export
|
|
8694
|
+
* @interface ConversationPbxAudioUsageResponse
|
|
8695
|
+
*/
|
|
8696
|
+
export interface ConversationPbxAudioUsageResponse {
|
|
8697
|
+
/**
|
|
8698
|
+
*
|
|
8699
|
+
* @type {ModelError}
|
|
8700
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8701
|
+
*/
|
|
8702
|
+
error?: ModelError;
|
|
8703
|
+
/**
|
|
8704
|
+
*
|
|
8705
|
+
* @type {Array<ConversationPbxMenu>}
|
|
8706
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8707
|
+
*/
|
|
8708
|
+
menus?: Array<ConversationPbxMenu>;
|
|
8709
|
+
/**
|
|
8710
|
+
*
|
|
8711
|
+
* @type {ResponseMetadata}
|
|
8712
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8713
|
+
*/
|
|
8714
|
+
metadata?: ResponseMetadata;
|
|
8715
|
+
/**
|
|
8716
|
+
*
|
|
8717
|
+
* @type {Array<ConversationPbxQueue>}
|
|
8718
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8719
|
+
*/
|
|
8720
|
+
queues?: Array<ConversationPbxQueue>;
|
|
8721
|
+
/**
|
|
8722
|
+
* Indicates if API call was successful
|
|
8723
|
+
* @type {boolean}
|
|
8724
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8725
|
+
*/
|
|
8726
|
+
success?: boolean;
|
|
8727
|
+
/**
|
|
8728
|
+
*
|
|
8729
|
+
* @type {Array<ConversationPbxVoicemailMailbox>}
|
|
8730
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8731
|
+
*/
|
|
8732
|
+
voicemail_mailboxes?: Array<ConversationPbxVoicemailMailbox>;
|
|
8733
|
+
/**
|
|
8734
|
+
*
|
|
8735
|
+
* @type {Warning}
|
|
8736
|
+
* @memberof ConversationPbxAudioUsageResponse
|
|
8737
|
+
*/
|
|
8738
|
+
warning?: Warning;
|
|
8739
|
+
}
|
|
8691
8740
|
/**
|
|
8692
8741
|
*
|
|
8693
8742
|
* @export
|
|
@@ -46323,6 +46372,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
46323
46372
|
* @throws {RequiredError}
|
|
46324
46373
|
*/
|
|
46325
46374
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any): FetchArgs;
|
|
46375
|
+
/**
|
|
46376
|
+
* Retrieve a pbx audio usage
|
|
46377
|
+
* @summary Get pbx audio usage
|
|
46378
|
+
* @param {string} conversationPbxAudioUuid
|
|
46379
|
+
* @param {*} [options] Override http request option.
|
|
46380
|
+
* @throws {RequiredError}
|
|
46381
|
+
*/
|
|
46382
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any): FetchArgs;
|
|
46326
46383
|
/**
|
|
46327
46384
|
* Retrieve pbx audios
|
|
46328
46385
|
* @summary Get pbx audios
|
|
@@ -47020,6 +47077,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
47020
47077
|
* @throws {RequiredError}
|
|
47021
47078
|
*/
|
|
47022
47079
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxAudioResponse>;
|
|
47080
|
+
/**
|
|
47081
|
+
* Retrieve a pbx audio usage
|
|
47082
|
+
* @summary Get pbx audio usage
|
|
47083
|
+
* @param {string} conversationPbxAudioUuid
|
|
47084
|
+
* @param {*} [options] Override http request option.
|
|
47085
|
+
* @throws {RequiredError}
|
|
47086
|
+
*/
|
|
47087
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxAudioUsageResponse>;
|
|
47023
47088
|
/**
|
|
47024
47089
|
* Retrieve pbx audios
|
|
47025
47090
|
* @summary Get pbx audios
|
|
@@ -47717,6 +47782,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
47717
47782
|
* @throws {RequiredError}
|
|
47718
47783
|
*/
|
|
47719
47784
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioResponse>;
|
|
47785
|
+
/**
|
|
47786
|
+
* Retrieve a pbx audio usage
|
|
47787
|
+
* @summary Get pbx audio usage
|
|
47788
|
+
* @param {string} conversationPbxAudioUuid
|
|
47789
|
+
* @param {*} [options] Override http request option.
|
|
47790
|
+
* @throws {RequiredError}
|
|
47791
|
+
*/
|
|
47792
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioUsageResponse>;
|
|
47720
47793
|
/**
|
|
47721
47794
|
* Retrieve pbx audios
|
|
47722
47795
|
* @summary Get pbx audios
|
|
@@ -48453,6 +48526,15 @@ export interface ConversationApiInterface {
|
|
|
48453
48526
|
* @memberof ConversationApiInterface
|
|
48454
48527
|
*/
|
|
48455
48528
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioResponse>;
|
|
48529
|
+
/**
|
|
48530
|
+
* Retrieve a pbx audio usage
|
|
48531
|
+
* @summary Get pbx audio usage
|
|
48532
|
+
* @param {string} conversationPbxAudioUuid
|
|
48533
|
+
* @param {*} [options] Override http request option.
|
|
48534
|
+
* @throws {RequiredError}
|
|
48535
|
+
* @memberof ConversationApiInterface
|
|
48536
|
+
*/
|
|
48537
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioUsageResponse>;
|
|
48456
48538
|
/**
|
|
48457
48539
|
* Retrieve pbx audios
|
|
48458
48540
|
* @summary Get pbx audios
|
|
@@ -49238,6 +49320,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
49238
49320
|
* @memberof ConversationApi
|
|
49239
49321
|
*/
|
|
49240
49322
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioResponse>;
|
|
49323
|
+
/**
|
|
49324
|
+
* Retrieve a pbx audio usage
|
|
49325
|
+
* @summary Get pbx audio usage
|
|
49326
|
+
* @param {string} conversationPbxAudioUuid
|
|
49327
|
+
* @param {*} [options] Override http request option.
|
|
49328
|
+
* @throws {RequiredError}
|
|
49329
|
+
* @memberof ConversationApi
|
|
49330
|
+
*/
|
|
49331
|
+
getPbxAudioUsage(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioUsageResponse>;
|
|
49241
49332
|
/**
|
|
49242
49333
|
* Retrieve pbx audios
|
|
49243
49334
|
* @summary Get pbx audios
|
package/dist/api.js
CHANGED
|
@@ -8535,6 +8535,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
8535
8535
|
options: localVarRequestOptions,
|
|
8536
8536
|
};
|
|
8537
8537
|
},
|
|
8538
|
+
/**
|
|
8539
|
+
* Retrieve a pbx audio usage
|
|
8540
|
+
* @summary Get pbx audio usage
|
|
8541
|
+
* @param {string} conversationPbxAudioUuid
|
|
8542
|
+
* @param {*} [options] Override http request option.
|
|
8543
|
+
* @throws {RequiredError}
|
|
8544
|
+
*/
|
|
8545
|
+
getPbxAudioUsage: function (conversationPbxAudioUuid, options) {
|
|
8546
|
+
if (options === void 0) { options = {}; }
|
|
8547
|
+
// verify required parameter 'conversationPbxAudioUuid' is not null or undefined
|
|
8548
|
+
if (conversationPbxAudioUuid === null || conversationPbxAudioUuid === undefined) {
|
|
8549
|
+
throw new RequiredError('conversationPbxAudioUuid', 'Required parameter conversationPbxAudioUuid was null or undefined when calling getPbxAudioUsage.');
|
|
8550
|
+
}
|
|
8551
|
+
var localVarPath = "/conversation/pbx/audio/{conversationPbxAudioUuid}/usage"
|
|
8552
|
+
.replace("{".concat("conversationPbxAudioUuid", "}"), encodeURIComponent(String(conversationPbxAudioUuid)));
|
|
8553
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
8554
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
8555
|
+
var localVarHeaderParameter = {};
|
|
8556
|
+
var localVarQueryParameter = {};
|
|
8557
|
+
if (configuration && configuration.apiVersion) {
|
|
8558
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
8559
|
+
}
|
|
8560
|
+
// authentication ultraCartOauth required
|
|
8561
|
+
// oauth required
|
|
8562
|
+
if (configuration && configuration.accessToken) {
|
|
8563
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
8564
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
8565
|
+
: configuration.accessToken;
|
|
8566
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
8567
|
+
}
|
|
8568
|
+
// authentication ultraCartSimpleApiKey required
|
|
8569
|
+
if (configuration && configuration.apiKey) {
|
|
8570
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
8571
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
8572
|
+
: configuration.apiKey;
|
|
8573
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
8574
|
+
}
|
|
8575
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
8576
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
8577
|
+
delete localVarUrlObj.search;
|
|
8578
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
8579
|
+
return {
|
|
8580
|
+
url: url.format(localVarUrlObj),
|
|
8581
|
+
options: localVarRequestOptions,
|
|
8582
|
+
};
|
|
8583
|
+
},
|
|
8538
8584
|
/**
|
|
8539
8585
|
* Retrieve pbx audios
|
|
8540
8586
|
* @summary Get pbx audios
|
|
@@ -11681,6 +11727,28 @@ var ConversationApiFp = function (configuration) {
|
|
|
11681
11727
|
});
|
|
11682
11728
|
};
|
|
11683
11729
|
},
|
|
11730
|
+
/**
|
|
11731
|
+
* Retrieve a pbx audio usage
|
|
11732
|
+
* @summary Get pbx audio usage
|
|
11733
|
+
* @param {string} conversationPbxAudioUuid
|
|
11734
|
+
* @param {*} [options] Override http request option.
|
|
11735
|
+
* @throws {RequiredError}
|
|
11736
|
+
*/
|
|
11737
|
+
getPbxAudioUsage: function (conversationPbxAudioUuid, options) {
|
|
11738
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getPbxAudioUsage(conversationPbxAudioUuid, options);
|
|
11739
|
+
return function (fetch, basePath) {
|
|
11740
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
11741
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
11742
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
11743
|
+
if (response.status >= 200 && response.status < 300) {
|
|
11744
|
+
return response.json();
|
|
11745
|
+
}
|
|
11746
|
+
else {
|
|
11747
|
+
throw response;
|
|
11748
|
+
}
|
|
11749
|
+
});
|
|
11750
|
+
};
|
|
11751
|
+
},
|
|
11684
11752
|
/**
|
|
11685
11753
|
* Retrieve pbx audios
|
|
11686
11754
|
* @summary Get pbx audios
|
|
@@ -13129,6 +13197,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
13129
13197
|
getPbxAudio: function (conversationPbxAudioUuid, options) {
|
|
13130
13198
|
return (0, exports.ConversationApiFp)(configuration).getPbxAudio(conversationPbxAudioUuid, options)(fetch, basePath);
|
|
13131
13199
|
},
|
|
13200
|
+
/**
|
|
13201
|
+
* Retrieve a pbx audio usage
|
|
13202
|
+
* @summary Get pbx audio usage
|
|
13203
|
+
* @param {string} conversationPbxAudioUuid
|
|
13204
|
+
* @param {*} [options] Override http request option.
|
|
13205
|
+
* @throws {RequiredError}
|
|
13206
|
+
*/
|
|
13207
|
+
getPbxAudioUsage: function (conversationPbxAudioUuid, options) {
|
|
13208
|
+
return (0, exports.ConversationApiFp)(configuration).getPbxAudioUsage(conversationPbxAudioUuid, options)(fetch, basePath);
|
|
13209
|
+
},
|
|
13132
13210
|
/**
|
|
13133
13211
|
* Retrieve pbx audios
|
|
13134
13212
|
* @summary Get pbx audios
|
|
@@ -14044,6 +14122,17 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
14044
14122
|
ConversationApi.prototype.getPbxAudio = function (conversationPbxAudioUuid, options) {
|
|
14045
14123
|
return (0, exports.ConversationApiFp)(this.configuration).getPbxAudio(conversationPbxAudioUuid, options)(this.fetch, this.basePath);
|
|
14046
14124
|
};
|
|
14125
|
+
/**
|
|
14126
|
+
* Retrieve a pbx audio usage
|
|
14127
|
+
* @summary Get pbx audio usage
|
|
14128
|
+
* @param {string} conversationPbxAudioUuid
|
|
14129
|
+
* @param {*} [options] Override http request option.
|
|
14130
|
+
* @throws {RequiredError}
|
|
14131
|
+
* @memberof ConversationApi
|
|
14132
|
+
*/
|
|
14133
|
+
ConversationApi.prototype.getPbxAudioUsage = function (conversationPbxAudioUuid, options) {
|
|
14134
|
+
return (0, exports.ConversationApiFp)(this.configuration).getPbxAudioUsage(conversationPbxAudioUuid, options)(this.fetch, this.basePath);
|
|
14135
|
+
};
|
|
14047
14136
|
/**
|
|
14048
14137
|
* Retrieve pbx audios
|
|
14049
14138
|
* @summary Get pbx audios
|