ultracart_rest_api_v2_typescript 3.10.195 → 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 +4 -2
- package/api.ts +169 -1
- package/dist/api.d.ts +105 -1
- package/dist/api.js +90 -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,8 @@ 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 |
|
|
58
|
+
| 3.10.196 | 05/02/2024 | autoorder - fields to record merge association and tstamp |
|
|
57
59
|
| 3.10.195 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
|
|
58
60
|
| 3.10.194 | 04/24/2024 | esp - add fields for external generation on email |
|
|
59
61
|
| 3.10.193 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
|
package/api.ts
CHANGED
|
@@ -1448,6 +1448,18 @@ export interface AutoOrder {
|
|
|
1448
1448
|
* @memberof AutoOrder
|
|
1449
1449
|
*/
|
|
1450
1450
|
merchant_id?: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* The date/time the auto order was merged into another auto order
|
|
1453
|
+
* @type {string}
|
|
1454
|
+
* @memberof AutoOrder
|
|
1455
|
+
*/
|
|
1456
|
+
merged_dts?: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* The auto order that this auto order was merged into
|
|
1459
|
+
* @type {number}
|
|
1460
|
+
* @memberof AutoOrder
|
|
1461
|
+
*/
|
|
1462
|
+
merged_into_auto_order_oid?: number;
|
|
1451
1463
|
/**
|
|
1452
1464
|
* The next time that the auto order will be attempted for processing
|
|
1453
1465
|
* @type {string}
|
|
@@ -1504,7 +1516,8 @@ export namespace AutoOrder {
|
|
|
1504
1516
|
export enum StatusEnum {
|
|
1505
1517
|
Active = <any> 'active',
|
|
1506
1518
|
Canceled = <any> 'canceled',
|
|
1507
|
-
Disabled = <any> 'disabled'
|
|
1519
|
+
Disabled = <any> 'disabled',
|
|
1520
|
+
Merged = <any> 'merged'
|
|
1508
1521
|
}
|
|
1509
1522
|
}
|
|
1510
1523
|
|
|
@@ -8889,6 +8902,56 @@ export interface ConversationPbxAudioUploadUrlResponse {
|
|
|
8889
8902
|
warning?: Warning;
|
|
8890
8903
|
}
|
|
8891
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
|
+
|
|
8892
8955
|
/**
|
|
8893
8956
|
*
|
|
8894
8957
|
* @export
|
|
@@ -52411,6 +52474,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
52411
52474
|
|
|
52412
52475
|
|
|
52413
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
|
+
|
|
52414
52529
|
// authentication ultraCartOauth required
|
|
52415
52530
|
// oauth required
|
|
52416
52531
|
if (configuration && configuration.accessToken) {
|
|
@@ -55861,6 +55976,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
55861
55976
|
});
|
|
55862
55977
|
};
|
|
55863
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
|
+
},
|
|
55864
56000
|
/**
|
|
55865
56001
|
* Retrieve pbx audios
|
|
55866
56002
|
* @summary Get pbx audios
|
|
@@ -57261,6 +57397,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
57261
57397
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any) {
|
|
57262
57398
|
return ConversationApiFp(configuration).getPbxAudio(conversationPbxAudioUuid, options)(fetch, basePath);
|
|
57263
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
|
+
},
|
|
57264
57410
|
/**
|
|
57265
57411
|
* Retrieve pbx audios
|
|
57266
57412
|
* @summary Get pbx audios
|
|
@@ -58133,6 +58279,16 @@ export interface ConversationApiInterface {
|
|
|
58133
58279
|
*/
|
|
58134
58280
|
getPbxAudio(conversationPbxAudioUuid: string, options?: any): Promise<ConversationPbxAudioResponse>;
|
|
58135
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
|
+
|
|
58136
58292
|
/**
|
|
58137
58293
|
* Retrieve pbx audios
|
|
58138
58294
|
* @summary Get pbx audios
|
|
@@ -59081,6 +59237,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
59081
59237
|
return ConversationApiFp(this.configuration).getPbxAudio(conversationPbxAudioUuid, options)(this.fetch, this.basePath);
|
|
59082
59238
|
}
|
|
59083
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
|
+
|
|
59084
59252
|
/**
|
|
59085
59253
|
* Retrieve pbx audios
|
|
59086
59254
|
* @summary Get pbx audios
|
package/dist/api.d.ts
CHANGED
|
@@ -1406,6 +1406,18 @@ export interface AutoOrder {
|
|
|
1406
1406
|
* @memberof AutoOrder
|
|
1407
1407
|
*/
|
|
1408
1408
|
merchant_id?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* The date/time the auto order was merged into another auto order
|
|
1411
|
+
* @type {string}
|
|
1412
|
+
* @memberof AutoOrder
|
|
1413
|
+
*/
|
|
1414
|
+
merged_dts?: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* The auto order that this auto order was merged into
|
|
1417
|
+
* @type {number}
|
|
1418
|
+
* @memberof AutoOrder
|
|
1419
|
+
*/
|
|
1420
|
+
merged_into_auto_order_oid?: number;
|
|
1409
1421
|
/**
|
|
1410
1422
|
* The next time that the auto order will be attempted for processing
|
|
1411
1423
|
* @type {string}
|
|
@@ -1461,7 +1473,8 @@ export declare namespace AutoOrder {
|
|
|
1461
1473
|
enum StatusEnum {
|
|
1462
1474
|
Active,
|
|
1463
1475
|
Canceled,
|
|
1464
|
-
Disabled
|
|
1476
|
+
Disabled,
|
|
1477
|
+
Merged
|
|
1465
1478
|
}
|
|
1466
1479
|
}
|
|
1467
1480
|
/**
|
|
@@ -8675,6 +8688,55 @@ export interface ConversationPbxAudioUploadUrlResponse {
|
|
|
8675
8688
|
*/
|
|
8676
8689
|
warning?: Warning;
|
|
8677
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
|
+
}
|
|
8678
8740
|
/**
|
|
8679
8741
|
*
|
|
8680
8742
|
* @export
|
|
@@ -46310,6 +46372,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
46310
46372
|
* @throws {RequiredError}
|
|
46311
46373
|
*/
|
|
46312
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;
|
|
46313
46383
|
/**
|
|
46314
46384
|
* Retrieve pbx audios
|
|
46315
46385
|
* @summary Get pbx audios
|
|
@@ -47007,6 +47077,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
47007
47077
|
* @throws {RequiredError}
|
|
47008
47078
|
*/
|
|
47009
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>;
|
|
47010
47088
|
/**
|
|
47011
47089
|
* Retrieve pbx audios
|
|
47012
47090
|
* @summary Get pbx audios
|
|
@@ -47704,6 +47782,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
47704
47782
|
* @throws {RequiredError}
|
|
47705
47783
|
*/
|
|
47706
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>;
|
|
47707
47793
|
/**
|
|
47708
47794
|
* Retrieve pbx audios
|
|
47709
47795
|
* @summary Get pbx audios
|
|
@@ -48440,6 +48526,15 @@ export interface ConversationApiInterface {
|
|
|
48440
48526
|
* @memberof ConversationApiInterface
|
|
48441
48527
|
*/
|
|
48442
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>;
|
|
48443
48538
|
/**
|
|
48444
48539
|
* Retrieve pbx audios
|
|
48445
48540
|
* @summary Get pbx audios
|
|
@@ -49225,6 +49320,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
49225
49320
|
* @memberof ConversationApi
|
|
49226
49321
|
*/
|
|
49227
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>;
|
|
49228
49332
|
/**
|
|
49229
49333
|
* Retrieve pbx audios
|
|
49230
49334
|
* @summary Get pbx audios
|
package/dist/api.js
CHANGED
|
@@ -154,6 +154,7 @@ var AutoOrder;
|
|
|
154
154
|
StatusEnum[StatusEnum["Active"] = 'active'] = "Active";
|
|
155
155
|
StatusEnum[StatusEnum["Canceled"] = 'canceled'] = "Canceled";
|
|
156
156
|
StatusEnum[StatusEnum["Disabled"] = 'disabled'] = "Disabled";
|
|
157
|
+
StatusEnum[StatusEnum["Merged"] = 'merged'] = "Merged";
|
|
157
158
|
})(StatusEnum = AutoOrder.StatusEnum || (AutoOrder.StatusEnum = {}));
|
|
158
159
|
})(AutoOrder = exports.AutoOrder || (exports.AutoOrder = {}));
|
|
159
160
|
/**
|
|
@@ -8534,6 +8535,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
8534
8535
|
options: localVarRequestOptions,
|
|
8535
8536
|
};
|
|
8536
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
|
+
},
|
|
8537
8584
|
/**
|
|
8538
8585
|
* Retrieve pbx audios
|
|
8539
8586
|
* @summary Get pbx audios
|
|
@@ -11680,6 +11727,28 @@ var ConversationApiFp = function (configuration) {
|
|
|
11680
11727
|
});
|
|
11681
11728
|
};
|
|
11682
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
|
+
},
|
|
11683
11752
|
/**
|
|
11684
11753
|
* Retrieve pbx audios
|
|
11685
11754
|
* @summary Get pbx audios
|
|
@@ -13128,6 +13197,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
13128
13197
|
getPbxAudio: function (conversationPbxAudioUuid, options) {
|
|
13129
13198
|
return (0, exports.ConversationApiFp)(configuration).getPbxAudio(conversationPbxAudioUuid, options)(fetch, basePath);
|
|
13130
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
|
+
},
|
|
13131
13210
|
/**
|
|
13132
13211
|
* Retrieve pbx audios
|
|
13133
13212
|
* @summary Get pbx audios
|
|
@@ -14043,6 +14122,17 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
14043
14122
|
ConversationApi.prototype.getPbxAudio = function (conversationPbxAudioUuid, options) {
|
|
14044
14123
|
return (0, exports.ConversationApiFp)(this.configuration).getPbxAudio(conversationPbxAudioUuid, options)(this.fetch, this.basePath);
|
|
14045
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
|
+
};
|
|
14046
14136
|
/**
|
|
14047
14137
|
* Retrieve pbx audios
|
|
14048
14138
|
* @summary Get pbx audios
|