ultracart_rest_api_v2_typescript 3.10.192 → 3.10.193
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 +368 -2
- package/dist/api.d.ts +161 -2
- package/dist/api.js +296 -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.193
|
|
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.193 --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.193 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
|
|
57
58
|
| 3.10.192 | 04/01/2024 | added merchant_id as read-only top level property of AutoOrder object |
|
|
58
59
|
| 3.10.191 | 03/26/2024 | WorkflowTask - added assigned_to_user_or_group field |
|
|
59
60
|
| 3.10.190 | 03/25/2024 | workflowtask - add global_task_number and object_task_number |
|
package/api.ts
CHANGED
|
@@ -1620,6 +1620,12 @@ export interface AutoOrderItem {
|
|
|
1620
1620
|
* @memberof AutoOrderItem
|
|
1621
1621
|
*/
|
|
1622
1622
|
auto_order_item_oid?: number;
|
|
1623
|
+
/**
|
|
1624
|
+
* Calculated Date/time that this item is scheduled to rebill. Will be null if no more shipments are going to occur on this item
|
|
1625
|
+
* @type {string}
|
|
1626
|
+
* @memberof AutoOrderItem
|
|
1627
|
+
*/
|
|
1628
|
+
calculated_next_shipment_dts?: string;
|
|
1623
1629
|
/**
|
|
1624
1630
|
* Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
|
|
1625
1631
|
* @type {string}
|
|
@@ -43633,7 +43639,7 @@ export interface WorkflowTask {
|
|
|
43633
43639
|
*/
|
|
43634
43640
|
expiration_dts?: string;
|
|
43635
43641
|
/**
|
|
43636
|
-
* Global task
|
|
43642
|
+
* Global task number
|
|
43637
43643
|
* @type {number}
|
|
43638
43644
|
* @memberof WorkflowTask
|
|
43639
43645
|
*/
|
|
@@ -43675,7 +43681,7 @@ export interface WorkflowTask {
|
|
|
43675
43681
|
*/
|
|
43676
43682
|
object_id?: string;
|
|
43677
43683
|
/**
|
|
43678
|
-
* Object specific task
|
|
43684
|
+
* Object specific task number
|
|
43679
43685
|
* @type {number}
|
|
43680
43686
|
* @memberof WorkflowTask
|
|
43681
43687
|
*/
|
|
@@ -43959,6 +43965,12 @@ export interface WorkflowTaskTagsResponse {
|
|
|
43959
43965
|
* @interface WorkflowTasksRequest
|
|
43960
43966
|
*/
|
|
43961
43967
|
export interface WorkflowTasksRequest {
|
|
43968
|
+
/**
|
|
43969
|
+
* Assigned to group
|
|
43970
|
+
* @type {string}
|
|
43971
|
+
* @memberof WorkflowTasksRequest
|
|
43972
|
+
*/
|
|
43973
|
+
assigned_to_group?: string;
|
|
43962
43974
|
/**
|
|
43963
43975
|
* Assigned to group ID
|
|
43964
43976
|
* @type {number}
|
|
@@ -43971,6 +43983,12 @@ export interface WorkflowTasksRequest {
|
|
|
43971
43983
|
* @memberof WorkflowTasksRequest
|
|
43972
43984
|
*/
|
|
43973
43985
|
assigned_to_me?: boolean;
|
|
43986
|
+
/**
|
|
43987
|
+
* Assigned to user
|
|
43988
|
+
* @type {string}
|
|
43989
|
+
* @memberof WorkflowTasksRequest
|
|
43990
|
+
*/
|
|
43991
|
+
assigned_to_user?: string;
|
|
43974
43992
|
/**
|
|
43975
43993
|
* Assigned to user ID
|
|
43976
43994
|
* @type {number}
|
|
@@ -50635,6 +50653,64 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
50635
50653
|
|
|
50636
50654
|
|
|
50637
50655
|
|
|
50656
|
+
// authentication ultraCartOauth required
|
|
50657
|
+
// oauth required
|
|
50658
|
+
if (configuration && configuration.accessToken) {
|
|
50659
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
50660
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
50661
|
+
: configuration.accessToken;
|
|
50662
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
50663
|
+
}
|
|
50664
|
+
|
|
50665
|
+
// authentication ultraCartSimpleApiKey required
|
|
50666
|
+
if (configuration && configuration.apiKey) {
|
|
50667
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
50668
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
50669
|
+
: configuration.apiKey;
|
|
50670
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
50671
|
+
}
|
|
50672
|
+
|
|
50673
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
50674
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
50675
|
+
delete localVarUrlObj.search;
|
|
50676
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
50677
|
+
|
|
50678
|
+
return {
|
|
50679
|
+
url: url.format(localVarUrlObj),
|
|
50680
|
+
options: localVarRequestOptions,
|
|
50681
|
+
};
|
|
50682
|
+
},
|
|
50683
|
+
/**
|
|
50684
|
+
* Delete pbx queue Voicemail
|
|
50685
|
+
* @summary Delete Queue Voicemail
|
|
50686
|
+
* @param {string} queue_uuid
|
|
50687
|
+
* @param {string} recording_sid
|
|
50688
|
+
* @param {*} [options] Override http request option.
|
|
50689
|
+
* @throws {RequiredError}
|
|
50690
|
+
*/
|
|
50691
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options: any = {}): FetchArgs {
|
|
50692
|
+
// verify required parameter 'queue_uuid' is not null or undefined
|
|
50693
|
+
if (queue_uuid === null || queue_uuid === undefined) {
|
|
50694
|
+
throw new RequiredError('queue_uuid','Required parameter queue_uuid was null or undefined when calling deletePbxQueueVoicemail.');
|
|
50695
|
+
}
|
|
50696
|
+
// verify required parameter 'recording_sid' is not null or undefined
|
|
50697
|
+
if (recording_sid === null || recording_sid === undefined) {
|
|
50698
|
+
throw new RequiredError('recording_sid','Required parameter recording_sid was null or undefined when calling deletePbxQueueVoicemail.');
|
|
50699
|
+
}
|
|
50700
|
+
const localVarPath = `/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}`
|
|
50701
|
+
.replace(`{${"queue_uuid"}}`, encodeURIComponent(String(queue_uuid)))
|
|
50702
|
+
.replace(`{${"recording_sid"}}`, encodeURIComponent(String(recording_sid)));
|
|
50703
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
50704
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
|
|
50705
|
+
const localVarHeaderParameter = {} as any;
|
|
50706
|
+
const localVarQueryParameter = {} as any;
|
|
50707
|
+
|
|
50708
|
+
if(configuration && configuration.apiVersion) {
|
|
50709
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
50710
|
+
}
|
|
50711
|
+
|
|
50712
|
+
|
|
50713
|
+
|
|
50638
50714
|
// authentication ultraCartOauth required
|
|
50639
50715
|
// oauth required
|
|
50640
50716
|
if (configuration && configuration.accessToken) {
|
|
@@ -53568,6 +53644,64 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
53568
53644
|
|
|
53569
53645
|
|
|
53570
53646
|
|
|
53647
|
+
// authentication ultraCartOauth required
|
|
53648
|
+
// oauth required
|
|
53649
|
+
if (configuration && configuration.accessToken) {
|
|
53650
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
53651
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
53652
|
+
: configuration.accessToken;
|
|
53653
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
53654
|
+
}
|
|
53655
|
+
|
|
53656
|
+
// authentication ultraCartSimpleApiKey required
|
|
53657
|
+
if (configuration && configuration.apiKey) {
|
|
53658
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
53659
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
53660
|
+
: configuration.apiKey;
|
|
53661
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
53662
|
+
}
|
|
53663
|
+
|
|
53664
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
53665
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
53666
|
+
delete localVarUrlObj.search;
|
|
53667
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
53668
|
+
|
|
53669
|
+
return {
|
|
53670
|
+
url: url.format(localVarUrlObj),
|
|
53671
|
+
options: localVarRequestOptions,
|
|
53672
|
+
};
|
|
53673
|
+
},
|
|
53674
|
+
/**
|
|
53675
|
+
* Listened pbx queue Voicemail
|
|
53676
|
+
* @summary Listened Queue Voicemail
|
|
53677
|
+
* @param {string} queue_uuid
|
|
53678
|
+
* @param {string} recording_sid
|
|
53679
|
+
* @param {*} [options] Override http request option.
|
|
53680
|
+
* @throws {RequiredError}
|
|
53681
|
+
*/
|
|
53682
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options: any = {}): FetchArgs {
|
|
53683
|
+
// verify required parameter 'queue_uuid' is not null or undefined
|
|
53684
|
+
if (queue_uuid === null || queue_uuid === undefined) {
|
|
53685
|
+
throw new RequiredError('queue_uuid','Required parameter queue_uuid was null or undefined when calling listenedPbxQueueVoicemail.');
|
|
53686
|
+
}
|
|
53687
|
+
// verify required parameter 'recording_sid' is not null or undefined
|
|
53688
|
+
if (recording_sid === null || recording_sid === undefined) {
|
|
53689
|
+
throw new RequiredError('recording_sid','Required parameter recording_sid was null or undefined when calling listenedPbxQueueVoicemail.');
|
|
53690
|
+
}
|
|
53691
|
+
const localVarPath = `/conversation/pbx/{queue_uuid}/voicemails/voicemails/{recording_sid}/listened`
|
|
53692
|
+
.replace(`{${"queue_uuid"}}`, encodeURIComponent(String(queue_uuid)))
|
|
53693
|
+
.replace(`{${"recording_sid"}}`, encodeURIComponent(String(recording_sid)));
|
|
53694
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
53695
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
53696
|
+
const localVarHeaderParameter = {} as any;
|
|
53697
|
+
const localVarQueryParameter = {} as any;
|
|
53698
|
+
|
|
53699
|
+
if(configuration && configuration.apiVersion) {
|
|
53700
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
53701
|
+
}
|
|
53702
|
+
|
|
53703
|
+
|
|
53704
|
+
|
|
53571
53705
|
// authentication ultraCartOauth required
|
|
53572
53706
|
// oauth required
|
|
53573
53707
|
if (configuration && configuration.accessToken) {
|
|
@@ -54846,6 +54980,28 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
54846
54980
|
});
|
|
54847
54981
|
};
|
|
54848
54982
|
},
|
|
54983
|
+
/**
|
|
54984
|
+
* Delete pbx queue Voicemail
|
|
54985
|
+
* @summary Delete Queue Voicemail
|
|
54986
|
+
* @param {string} queue_uuid
|
|
54987
|
+
* @param {string} recording_sid
|
|
54988
|
+
* @param {*} [options] Override http request option.
|
|
54989
|
+
* @throws {RequiredError}
|
|
54990
|
+
*/
|
|
54991
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
|
|
54992
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options);
|
|
54993
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
54994
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
54995
|
+
|
|
54996
|
+
if (response.status >= 200 && response.status < 300) {
|
|
54997
|
+
return response;
|
|
54998
|
+
|
|
54999
|
+
} else {
|
|
55000
|
+
throw response;
|
|
55001
|
+
}
|
|
55002
|
+
});
|
|
55003
|
+
};
|
|
55004
|
+
},
|
|
54849
55005
|
/**
|
|
54850
55006
|
* Delete a pbx timeBased
|
|
54851
55007
|
* @summary Delete pbx timeBased
|
|
@@ -56032,6 +56188,28 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
56032
56188
|
});
|
|
56033
56189
|
};
|
|
56034
56190
|
},
|
|
56191
|
+
/**
|
|
56192
|
+
* Listened pbx queue Voicemail
|
|
56193
|
+
* @summary Listened Queue Voicemail
|
|
56194
|
+
* @param {string} queue_uuid
|
|
56195
|
+
* @param {string} recording_sid
|
|
56196
|
+
* @param {*} [options] Override http request option.
|
|
56197
|
+
* @throws {RequiredError}
|
|
56198
|
+
*/
|
|
56199
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
|
|
56200
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options);
|
|
56201
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
56202
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
56203
|
+
|
|
56204
|
+
if (response.status >= 200 && response.status < 300) {
|
|
56205
|
+
return response;
|
|
56206
|
+
|
|
56207
|
+
} else {
|
|
56208
|
+
throw response;
|
|
56209
|
+
}
|
|
56210
|
+
});
|
|
56211
|
+
};
|
|
56212
|
+
},
|
|
56035
56213
|
/**
|
|
56036
56214
|
* Mark a conversation as read
|
|
56037
56215
|
* @summary Mark a conversation as read
|
|
@@ -56521,6 +56699,17 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
56521
56699
|
deletePbxQueue(conversationPbxQueueUuid: string, options?: any) {
|
|
56522
56700
|
return ConversationApiFp(configuration).deletePbxQueue(conversationPbxQueueUuid, options)(fetch, basePath);
|
|
56523
56701
|
},
|
|
56702
|
+
/**
|
|
56703
|
+
* Delete pbx queue Voicemail
|
|
56704
|
+
* @summary Delete Queue Voicemail
|
|
56705
|
+
* @param {string} queue_uuid
|
|
56706
|
+
* @param {string} recording_sid
|
|
56707
|
+
* @param {*} [options] Override http request option.
|
|
56708
|
+
* @throws {RequiredError}
|
|
56709
|
+
*/
|
|
56710
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
|
|
56711
|
+
return ConversationApiFp(configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options)(fetch, basePath);
|
|
56712
|
+
},
|
|
56524
56713
|
/**
|
|
56525
56714
|
* Delete a pbx timeBased
|
|
56526
56715
|
* @summary Delete pbx timeBased
|
|
@@ -57080,6 +57269,17 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
57080
57269
|
listenedPbxAgentVoicemail(recording_sid: string, options?: any) {
|
|
57081
57270
|
return ConversationApiFp(configuration).listenedPbxAgentVoicemail(recording_sid, options)(fetch, basePath);
|
|
57082
57271
|
},
|
|
57272
|
+
/**
|
|
57273
|
+
* Listened pbx queue Voicemail
|
|
57274
|
+
* @summary Listened Queue Voicemail
|
|
57275
|
+
* @param {string} queue_uuid
|
|
57276
|
+
* @param {string} recording_sid
|
|
57277
|
+
* @param {*} [options] Override http request option.
|
|
57278
|
+
* @throws {RequiredError}
|
|
57279
|
+
*/
|
|
57280
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
|
|
57281
|
+
return ConversationApiFp(configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options)(fetch, basePath);
|
|
57282
|
+
},
|
|
57083
57283
|
/**
|
|
57084
57284
|
* Mark a conversation as read
|
|
57085
57285
|
* @summary Mark a conversation as read
|
|
@@ -57371,6 +57571,17 @@ export interface ConversationApiInterface {
|
|
|
57371
57571
|
*/
|
|
57372
57572
|
deletePbxQueue(conversationPbxQueueUuid: string, options?: any): Promise<ConversationPbxQueueResponse>;
|
|
57373
57573
|
|
|
57574
|
+
/**
|
|
57575
|
+
* Delete pbx queue Voicemail
|
|
57576
|
+
* @summary Delete Queue Voicemail
|
|
57577
|
+
* @param {string} queue_uuid
|
|
57578
|
+
* @param {string} recording_sid
|
|
57579
|
+
* @param {*} [options] Override http request option.
|
|
57580
|
+
* @throws {RequiredError}
|
|
57581
|
+
* @memberof ConversationApiInterface
|
|
57582
|
+
*/
|
|
57583
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<{}>;
|
|
57584
|
+
|
|
57374
57585
|
/**
|
|
57375
57586
|
* Delete a pbx timeBased
|
|
57376
57587
|
* @summary Delete pbx timeBased
|
|
@@ -57930,6 +58141,17 @@ export interface ConversationApiInterface {
|
|
|
57930
58141
|
*/
|
|
57931
58142
|
listenedPbxAgentVoicemail(recording_sid: string, options?: any): Promise<{}>;
|
|
57932
58143
|
|
|
58144
|
+
/**
|
|
58145
|
+
* Listened pbx queue Voicemail
|
|
58146
|
+
* @summary Listened Queue Voicemail
|
|
58147
|
+
* @param {string} queue_uuid
|
|
58148
|
+
* @param {string} recording_sid
|
|
58149
|
+
* @param {*} [options] Override http request option.
|
|
58150
|
+
* @throws {RequiredError}
|
|
58151
|
+
* @memberof ConversationApiInterface
|
|
58152
|
+
*/
|
|
58153
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<{}>;
|
|
58154
|
+
|
|
57933
58155
|
/**
|
|
57934
58156
|
* Mark a conversation as read
|
|
57935
58157
|
* @summary Mark a conversation as read
|
|
@@ -58239,6 +58461,19 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
58239
58461
|
return ConversationApiFp(this.configuration).deletePbxQueue(conversationPbxQueueUuid, options)(this.fetch, this.basePath);
|
|
58240
58462
|
}
|
|
58241
58463
|
|
|
58464
|
+
/**
|
|
58465
|
+
* Delete pbx queue Voicemail
|
|
58466
|
+
* @summary Delete Queue Voicemail
|
|
58467
|
+
* @param {string} queue_uuid
|
|
58468
|
+
* @param {string} recording_sid
|
|
58469
|
+
* @param {*} [options] Override http request option.
|
|
58470
|
+
* @throws {RequiredError}
|
|
58471
|
+
* @memberof ConversationApi
|
|
58472
|
+
*/
|
|
58473
|
+
public deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
|
|
58474
|
+
return ConversationApiFp(this.configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options)(this.fetch, this.basePath);
|
|
58475
|
+
}
|
|
58476
|
+
|
|
58242
58477
|
/**
|
|
58243
58478
|
* Delete a pbx timeBased
|
|
58244
58479
|
* @summary Delete pbx timeBased
|
|
@@ -58912,6 +59147,19 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
58912
59147
|
return ConversationApiFp(this.configuration).listenedPbxAgentVoicemail(recording_sid, options)(this.fetch, this.basePath);
|
|
58913
59148
|
}
|
|
58914
59149
|
|
|
59150
|
+
/**
|
|
59151
|
+
* Listened pbx queue Voicemail
|
|
59152
|
+
* @summary Listened Queue Voicemail
|
|
59153
|
+
* @param {string} queue_uuid
|
|
59154
|
+
* @param {string} recording_sid
|
|
59155
|
+
* @param {*} [options] Override http request option.
|
|
59156
|
+
* @throws {RequiredError}
|
|
59157
|
+
* @memberof ConversationApi
|
|
59158
|
+
*/
|
|
59159
|
+
public listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
|
|
59160
|
+
return ConversationApiFp(this.configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options)(this.fetch, this.basePath);
|
|
59161
|
+
}
|
|
59162
|
+
|
|
58915
59163
|
/**
|
|
58916
59164
|
* Mark a conversation as read
|
|
58917
59165
|
* @summary Mark a conversation as read
|
|
@@ -68939,6 +69187,67 @@ export const ItemApiFetchParamCreator = function (configuration?: Configuration)
|
|
|
68939
69187
|
options: localVarRequestOptions,
|
|
68940
69188
|
};
|
|
68941
69189
|
},
|
|
69190
|
+
/**
|
|
69191
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
69192
|
+
* @summary Upsert an item content attribute
|
|
69193
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
69194
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
69195
|
+
* @param {*} [options] Override http request option.
|
|
69196
|
+
* @throws {RequiredError}
|
|
69197
|
+
*/
|
|
69198
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options: any = {}): FetchArgs {
|
|
69199
|
+
// verify required parameter 'item_attribute' is not null or undefined
|
|
69200
|
+
if (item_attribute === null || item_attribute === undefined) {
|
|
69201
|
+
throw new RequiredError('item_attribute','Required parameter item_attribute was null or undefined when calling insertUpdateItemContentAttribute.');
|
|
69202
|
+
}
|
|
69203
|
+
// verify required parameter 'merchant_item_oid' is not null or undefined
|
|
69204
|
+
if (merchant_item_oid === null || merchant_item_oid === undefined) {
|
|
69205
|
+
throw new RequiredError('merchant_item_oid','Required parameter merchant_item_oid was null or undefined when calling insertUpdateItemContentAttribute.');
|
|
69206
|
+
}
|
|
69207
|
+
const localVarPath = `/item/items/{merchant_item_oid}/content/attributes`
|
|
69208
|
+
.replace(`{${"merchant_item_oid"}}`, encodeURIComponent(String(merchant_item_oid)));
|
|
69209
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
69210
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
69211
|
+
const localVarHeaderParameter = {} as any;
|
|
69212
|
+
const localVarQueryParameter = {} as any;
|
|
69213
|
+
|
|
69214
|
+
if(configuration && configuration.apiVersion) {
|
|
69215
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
69216
|
+
}
|
|
69217
|
+
|
|
69218
|
+
|
|
69219
|
+
|
|
69220
|
+
// authentication ultraCartOauth required
|
|
69221
|
+
// oauth required
|
|
69222
|
+
if (configuration && configuration.accessToken) {
|
|
69223
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
69224
|
+
? configuration.accessToken("ultraCartOauth", ["item_write"])
|
|
69225
|
+
: configuration.accessToken;
|
|
69226
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
69227
|
+
}
|
|
69228
|
+
|
|
69229
|
+
// authentication ultraCartSimpleApiKey required
|
|
69230
|
+
if (configuration && configuration.apiKey) {
|
|
69231
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
69232
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
69233
|
+
: configuration.apiKey;
|
|
69234
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
69235
|
+
}
|
|
69236
|
+
|
|
69237
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
69238
|
+
|
|
69239
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
69240
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
69241
|
+
delete localVarUrlObj.search;
|
|
69242
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
69243
|
+
const needsSerialization = (<any>"ItemContentAttribute" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
69244
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(item_attribute || {}) : (item_attribute || "");
|
|
69245
|
+
|
|
69246
|
+
return {
|
|
69247
|
+
url: url.format(localVarUrlObj),
|
|
69248
|
+
options: localVarRequestOptions,
|
|
69249
|
+
};
|
|
69250
|
+
},
|
|
68942
69251
|
/**
|
|
68943
69252
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
68944
69253
|
* @summary Updates a file within the digital library
|
|
@@ -69638,6 +69947,28 @@ export const ItemApiFp = function(configuration?: Configuration) {
|
|
|
69638
69947
|
});
|
|
69639
69948
|
};
|
|
69640
69949
|
},
|
|
69950
|
+
/**
|
|
69951
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
69952
|
+
* @summary Upsert an item content attribute
|
|
69953
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
69954
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
69955
|
+
* @param {*} [options] Override http request option.
|
|
69956
|
+
* @throws {RequiredError}
|
|
69957
|
+
*/
|
|
69958
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
|
|
69959
|
+
const localVarFetchArgs = ItemApiFetchParamCreator(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options);
|
|
69960
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
69961
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
69962
|
+
|
|
69963
|
+
if (response.status >= 200 && response.status < 300) {
|
|
69964
|
+
return response;
|
|
69965
|
+
|
|
69966
|
+
} else {
|
|
69967
|
+
throw response;
|
|
69968
|
+
}
|
|
69969
|
+
});
|
|
69970
|
+
};
|
|
69971
|
+
},
|
|
69641
69972
|
/**
|
|
69642
69973
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
69643
69974
|
* @summary Updates a file within the digital library
|
|
@@ -69947,6 +70278,17 @@ export const ItemApiFactory = function (configuration?: Configuration, fetch?: F
|
|
|
69947
70278
|
insertReview(review: ItemReview, merchant_item_oid: number, options?: any) {
|
|
69948
70279
|
return ItemApiFp(configuration).insertReview(review, merchant_item_oid, options)(fetch, basePath);
|
|
69949
70280
|
},
|
|
70281
|
+
/**
|
|
70282
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
70283
|
+
* @summary Upsert an item content attribute
|
|
70284
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
70285
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
70286
|
+
* @param {*} [options] Override http request option.
|
|
70287
|
+
* @throws {RequiredError}
|
|
70288
|
+
*/
|
|
70289
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any) {
|
|
70290
|
+
return ItemApiFp(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(fetch, basePath);
|
|
70291
|
+
},
|
|
69950
70292
|
/**
|
|
69951
70293
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
69952
70294
|
* @summary Updates a file within the digital library
|
|
@@ -70201,6 +70543,17 @@ export interface ItemApiInterface {
|
|
|
70201
70543
|
*/
|
|
70202
70544
|
insertReview(review: ItemReview, merchant_item_oid: number, options?: any): Promise<ItemReviewResponse>;
|
|
70203
70545
|
|
|
70546
|
+
/**
|
|
70547
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
70548
|
+
* @summary Upsert an item content attribute
|
|
70549
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
70550
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
70551
|
+
* @param {*} [options] Override http request option.
|
|
70552
|
+
* @throws {RequiredError}
|
|
70553
|
+
* @memberof ItemApiInterface
|
|
70554
|
+
*/
|
|
70555
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<{}>;
|
|
70556
|
+
|
|
70204
70557
|
/**
|
|
70205
70558
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
70206
70559
|
* @summary Updates a file within the digital library
|
|
@@ -70487,6 +70840,19 @@ export class ItemApi extends BaseAPI implements ItemApiInterface {
|
|
|
70487
70840
|
return ItemApiFp(this.configuration).insertReview(review, merchant_item_oid, options)(this.fetch, this.basePath);
|
|
70488
70841
|
}
|
|
70489
70842
|
|
|
70843
|
+
/**
|
|
70844
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
70845
|
+
* @summary Upsert an item content attribute
|
|
70846
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
70847
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
70848
|
+
* @param {*} [options] Override http request option.
|
|
70849
|
+
* @throws {RequiredError}
|
|
70850
|
+
* @memberof ItemApi
|
|
70851
|
+
*/
|
|
70852
|
+
public insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any) {
|
|
70853
|
+
return ItemApiFp(this.configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(this.fetch, this.basePath);
|
|
70854
|
+
}
|
|
70855
|
+
|
|
70490
70856
|
/**
|
|
70491
70857
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
70492
70858
|
* @summary Updates a file within the digital library
|
package/dist/api.d.ts
CHANGED
|
@@ -1574,6 +1574,12 @@ export interface AutoOrderItem {
|
|
|
1574
1574
|
* @memberof AutoOrderItem
|
|
1575
1575
|
*/
|
|
1576
1576
|
auto_order_item_oid?: number;
|
|
1577
|
+
/**
|
|
1578
|
+
* Calculated Date/time that this item is scheduled to rebill. Will be null if no more shipments are going to occur on this item
|
|
1579
|
+
* @type {string}
|
|
1580
|
+
* @memberof AutoOrderItem
|
|
1581
|
+
*/
|
|
1582
|
+
calculated_next_shipment_dts?: string;
|
|
1577
1583
|
/**
|
|
1578
1584
|
* Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
|
|
1579
1585
|
* @type {string}
|
|
@@ -42709,7 +42715,7 @@ export interface WorkflowTask {
|
|
|
42709
42715
|
*/
|
|
42710
42716
|
expiration_dts?: string;
|
|
42711
42717
|
/**
|
|
42712
|
-
* Global task
|
|
42718
|
+
* Global task number
|
|
42713
42719
|
* @type {number}
|
|
42714
42720
|
* @memberof WorkflowTask
|
|
42715
42721
|
*/
|
|
@@ -42751,7 +42757,7 @@ export interface WorkflowTask {
|
|
|
42751
42757
|
*/
|
|
42752
42758
|
object_id?: string;
|
|
42753
42759
|
/**
|
|
42754
|
-
* Object specific task
|
|
42760
|
+
* Object specific task number
|
|
42755
42761
|
* @type {number}
|
|
42756
42762
|
* @memberof WorkflowTask
|
|
42757
42763
|
*/
|
|
@@ -43029,6 +43035,12 @@ export interface WorkflowTaskTagsResponse {
|
|
|
43029
43035
|
* @interface WorkflowTasksRequest
|
|
43030
43036
|
*/
|
|
43031
43037
|
export interface WorkflowTasksRequest {
|
|
43038
|
+
/**
|
|
43039
|
+
* Assigned to group
|
|
43040
|
+
* @type {string}
|
|
43041
|
+
* @memberof WorkflowTasksRequest
|
|
43042
|
+
*/
|
|
43043
|
+
assigned_to_group?: string;
|
|
43032
43044
|
/**
|
|
43033
43045
|
* Assigned to group ID
|
|
43034
43046
|
* @type {number}
|
|
@@ -43041,6 +43053,12 @@ export interface WorkflowTasksRequest {
|
|
|
43041
43053
|
* @memberof WorkflowTasksRequest
|
|
43042
43054
|
*/
|
|
43043
43055
|
assigned_to_me?: boolean;
|
|
43056
|
+
/**
|
|
43057
|
+
* Assigned to user
|
|
43058
|
+
* @type {string}
|
|
43059
|
+
* @memberof WorkflowTasksRequest
|
|
43060
|
+
*/
|
|
43061
|
+
assigned_to_user?: string;
|
|
43044
43062
|
/**
|
|
43045
43063
|
* Assigned to user ID
|
|
43046
43064
|
* @type {number}
|
|
@@ -45866,6 +45884,15 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
45866
45884
|
* @throws {RequiredError}
|
|
45867
45885
|
*/
|
|
45868
45886
|
deletePbxQueue(conversationPbxQueueUuid: string, options?: any): FetchArgs;
|
|
45887
|
+
/**
|
|
45888
|
+
* Delete pbx queue Voicemail
|
|
45889
|
+
* @summary Delete Queue Voicemail
|
|
45890
|
+
* @param {string} queue_uuid
|
|
45891
|
+
* @param {string} recording_sid
|
|
45892
|
+
* @param {*} [options] Override http request option.
|
|
45893
|
+
* @throws {RequiredError}
|
|
45894
|
+
*/
|
|
45895
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): FetchArgs;
|
|
45869
45896
|
/**
|
|
45870
45897
|
* Delete a pbx timeBased
|
|
45871
45898
|
* @summary Delete pbx timeBased
|
|
@@ -46311,6 +46338,15 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
46311
46338
|
* @throws {RequiredError}
|
|
46312
46339
|
*/
|
|
46313
46340
|
listenedPbxAgentVoicemail(recording_sid: string, options?: any): FetchArgs;
|
|
46341
|
+
/**
|
|
46342
|
+
* Listened pbx queue Voicemail
|
|
46343
|
+
* @summary Listened Queue Voicemail
|
|
46344
|
+
* @param {string} queue_uuid
|
|
46345
|
+
* @param {string} recording_sid
|
|
46346
|
+
* @param {*} [options] Override http request option.
|
|
46347
|
+
* @throws {RequiredError}
|
|
46348
|
+
*/
|
|
46349
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): FetchArgs;
|
|
46314
46350
|
/**
|
|
46315
46351
|
* Mark a conversation as read
|
|
46316
46352
|
* @summary Mark a conversation as read
|
|
@@ -46545,6 +46581,15 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
46545
46581
|
* @throws {RequiredError}
|
|
46546
46582
|
*/
|
|
46547
46583
|
deletePbxQueue(conversationPbxQueueUuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxQueueResponse>;
|
|
46584
|
+
/**
|
|
46585
|
+
* Delete pbx queue Voicemail
|
|
46586
|
+
* @summary Delete Queue Voicemail
|
|
46587
|
+
* @param {string} queue_uuid
|
|
46588
|
+
* @param {string} recording_sid
|
|
46589
|
+
* @param {*} [options] Override http request option.
|
|
46590
|
+
* @throws {RequiredError}
|
|
46591
|
+
*/
|
|
46592
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
46548
46593
|
/**
|
|
46549
46594
|
* Delete a pbx timeBased
|
|
46550
46595
|
* @summary Delete pbx timeBased
|
|
@@ -46990,6 +47035,15 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
46990
47035
|
* @throws {RequiredError}
|
|
46991
47036
|
*/
|
|
46992
47037
|
listenedPbxAgentVoicemail(recording_sid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
47038
|
+
/**
|
|
47039
|
+
* Listened pbx queue Voicemail
|
|
47040
|
+
* @summary Listened Queue Voicemail
|
|
47041
|
+
* @param {string} queue_uuid
|
|
47042
|
+
* @param {string} recording_sid
|
|
47043
|
+
* @param {*} [options] Override http request option.
|
|
47044
|
+
* @throws {RequiredError}
|
|
47045
|
+
*/
|
|
47046
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
46993
47047
|
/**
|
|
46994
47048
|
* Mark a conversation as read
|
|
46995
47049
|
* @summary Mark a conversation as read
|
|
@@ -47224,6 +47278,15 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
47224
47278
|
* @throws {RequiredError}
|
|
47225
47279
|
*/
|
|
47226
47280
|
deletePbxQueue(conversationPbxQueueUuid: string, options?: any): Promise<ConversationPbxQueueResponse>;
|
|
47281
|
+
/**
|
|
47282
|
+
* Delete pbx queue Voicemail
|
|
47283
|
+
* @summary Delete Queue Voicemail
|
|
47284
|
+
* @param {string} queue_uuid
|
|
47285
|
+
* @param {string} recording_sid
|
|
47286
|
+
* @param {*} [options] Override http request option.
|
|
47287
|
+
* @throws {RequiredError}
|
|
47288
|
+
*/
|
|
47289
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<Response>;
|
|
47227
47290
|
/**
|
|
47228
47291
|
* Delete a pbx timeBased
|
|
47229
47292
|
* @summary Delete pbx timeBased
|
|
@@ -47669,6 +47732,15 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
47669
47732
|
* @throws {RequiredError}
|
|
47670
47733
|
*/
|
|
47671
47734
|
listenedPbxAgentVoicemail(recording_sid: string, options?: any): Promise<Response>;
|
|
47735
|
+
/**
|
|
47736
|
+
* Listened pbx queue Voicemail
|
|
47737
|
+
* @summary Listened Queue Voicemail
|
|
47738
|
+
* @param {string} queue_uuid
|
|
47739
|
+
* @param {string} recording_sid
|
|
47740
|
+
* @param {*} [options] Override http request option.
|
|
47741
|
+
* @throws {RequiredError}
|
|
47742
|
+
*/
|
|
47743
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<Response>;
|
|
47672
47744
|
/**
|
|
47673
47745
|
* Mark a conversation as read
|
|
47674
47746
|
* @summary Mark a conversation as read
|
|
@@ -47913,6 +47985,16 @@ export interface ConversationApiInterface {
|
|
|
47913
47985
|
* @memberof ConversationApiInterface
|
|
47914
47986
|
*/
|
|
47915
47987
|
deletePbxQueue(conversationPbxQueueUuid: string, options?: any): Promise<ConversationPbxQueueResponse>;
|
|
47988
|
+
/**
|
|
47989
|
+
* Delete pbx queue Voicemail
|
|
47990
|
+
* @summary Delete Queue Voicemail
|
|
47991
|
+
* @param {string} queue_uuid
|
|
47992
|
+
* @param {string} recording_sid
|
|
47993
|
+
* @param {*} [options] Override http request option.
|
|
47994
|
+
* @throws {RequiredError}
|
|
47995
|
+
* @memberof ConversationApiInterface
|
|
47996
|
+
*/
|
|
47997
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<{}>;
|
|
47916
47998
|
/**
|
|
47917
47999
|
* Delete a pbx timeBased
|
|
47918
48000
|
* @summary Delete pbx timeBased
|
|
@@ -48415,6 +48497,16 @@ export interface ConversationApiInterface {
|
|
|
48415
48497
|
* @memberof ConversationApiInterface
|
|
48416
48498
|
*/
|
|
48417
48499
|
listenedPbxAgentVoicemail(recording_sid: string, options?: any): Promise<{}>;
|
|
48500
|
+
/**
|
|
48501
|
+
* Listened pbx queue Voicemail
|
|
48502
|
+
* @summary Listened Queue Voicemail
|
|
48503
|
+
* @param {string} queue_uuid
|
|
48504
|
+
* @param {string} recording_sid
|
|
48505
|
+
* @param {*} [options] Override http request option.
|
|
48506
|
+
* @throws {RequiredError}
|
|
48507
|
+
* @memberof ConversationApiInterface
|
|
48508
|
+
*/
|
|
48509
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<{}>;
|
|
48418
48510
|
/**
|
|
48419
48511
|
* Mark a conversation as read
|
|
48420
48512
|
* @summary Mark a conversation as read
|
|
@@ -48678,6 +48770,16 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
48678
48770
|
* @memberof ConversationApi
|
|
48679
48771
|
*/
|
|
48680
48772
|
deletePbxQueue(conversationPbxQueueUuid: string, options?: any): Promise<ConversationPbxQueueResponse>;
|
|
48773
|
+
/**
|
|
48774
|
+
* Delete pbx queue Voicemail
|
|
48775
|
+
* @summary Delete Queue Voicemail
|
|
48776
|
+
* @param {string} queue_uuid
|
|
48777
|
+
* @param {string} recording_sid
|
|
48778
|
+
* @param {*} [options] Override http request option.
|
|
48779
|
+
* @throws {RequiredError}
|
|
48780
|
+
* @memberof ConversationApi
|
|
48781
|
+
*/
|
|
48782
|
+
deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<Response>;
|
|
48681
48783
|
/**
|
|
48682
48784
|
* Delete a pbx timeBased
|
|
48683
48785
|
* @summary Delete pbx timeBased
|
|
@@ -49180,6 +49282,16 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
49180
49282
|
* @memberof ConversationApi
|
|
49181
49283
|
*/
|
|
49182
49284
|
listenedPbxAgentVoicemail(recording_sid: string, options?: any): Promise<Response>;
|
|
49285
|
+
/**
|
|
49286
|
+
* Listened pbx queue Voicemail
|
|
49287
|
+
* @summary Listened Queue Voicemail
|
|
49288
|
+
* @param {string} queue_uuid
|
|
49289
|
+
* @param {string} recording_sid
|
|
49290
|
+
* @param {*} [options] Override http request option.
|
|
49291
|
+
* @throws {RequiredError}
|
|
49292
|
+
* @memberof ConversationApi
|
|
49293
|
+
*/
|
|
49294
|
+
listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<Response>;
|
|
49183
49295
|
/**
|
|
49184
49296
|
* Mark a conversation as read
|
|
49185
49297
|
* @summary Mark a conversation as read
|
|
@@ -53216,6 +53328,15 @@ export declare const ItemApiFetchParamCreator: (configuration?: Configuration) =
|
|
|
53216
53328
|
* @throws {RequiredError}
|
|
53217
53329
|
*/
|
|
53218
53330
|
insertReview(review: ItemReview, merchant_item_oid: number, options?: any): FetchArgs;
|
|
53331
|
+
/**
|
|
53332
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
53333
|
+
* @summary Upsert an item content attribute
|
|
53334
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
53335
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
53336
|
+
* @param {*} [options] Override http request option.
|
|
53337
|
+
* @throws {RequiredError}
|
|
53338
|
+
*/
|
|
53339
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): FetchArgs;
|
|
53219
53340
|
/**
|
|
53220
53341
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
53221
53342
|
* @summary Updates a file within the digital library
|
|
@@ -53425,6 +53546,15 @@ export declare const ItemApiFp: (configuration?: Configuration) => {
|
|
|
53425
53546
|
* @throws {RequiredError}
|
|
53426
53547
|
*/
|
|
53427
53548
|
insertReview(review: ItemReview, merchant_item_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemReviewResponse>;
|
|
53549
|
+
/**
|
|
53550
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
53551
|
+
* @summary Upsert an item content attribute
|
|
53552
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
53553
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
53554
|
+
* @param {*} [options] Override http request option.
|
|
53555
|
+
* @throws {RequiredError}
|
|
53556
|
+
*/
|
|
53557
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
53428
53558
|
/**
|
|
53429
53559
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
53430
53560
|
* @summary Updates a file within the digital library
|
|
@@ -53634,6 +53764,15 @@ export declare const ItemApiFactory: (configuration?: Configuration, fetch?: Fet
|
|
|
53634
53764
|
* @throws {RequiredError}
|
|
53635
53765
|
*/
|
|
53636
53766
|
insertReview(review: ItemReview, merchant_item_oid: number, options?: any): Promise<ItemReviewResponse>;
|
|
53767
|
+
/**
|
|
53768
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
53769
|
+
* @summary Upsert an item content attribute
|
|
53770
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
53771
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
53772
|
+
* @param {*} [options] Override http request option.
|
|
53773
|
+
* @throws {RequiredError}
|
|
53774
|
+
*/
|
|
53775
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<Response>;
|
|
53637
53776
|
/**
|
|
53638
53777
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
53639
53778
|
* @summary Updates a file within the digital library
|
|
@@ -53860,6 +53999,16 @@ export interface ItemApiInterface {
|
|
|
53860
53999
|
* @memberof ItemApiInterface
|
|
53861
54000
|
*/
|
|
53862
54001
|
insertReview(review: ItemReview, merchant_item_oid: number, options?: any): Promise<ItemReviewResponse>;
|
|
54002
|
+
/**
|
|
54003
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
54004
|
+
* @summary Upsert an item content attribute
|
|
54005
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
54006
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
54007
|
+
* @param {*} [options] Override http request option.
|
|
54008
|
+
* @throws {RequiredError}
|
|
54009
|
+
* @memberof ItemApiInterface
|
|
54010
|
+
*/
|
|
54011
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<{}>;
|
|
53863
54012
|
/**
|
|
53864
54013
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
53865
54014
|
* @summary Updates a file within the digital library
|
|
@@ -54092,6 +54241,16 @@ export declare class ItemApi extends BaseAPI implements ItemApiInterface {
|
|
|
54092
54241
|
* @memberof ItemApi
|
|
54093
54242
|
*/
|
|
54094
54243
|
insertReview(review: ItemReview, merchant_item_oid: number, options?: any): Promise<ItemReviewResponse>;
|
|
54244
|
+
/**
|
|
54245
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
54246
|
+
* @summary Upsert an item content attribute
|
|
54247
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
54248
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
54249
|
+
* @param {*} [options] Override http request option.
|
|
54250
|
+
* @throws {RequiredError}
|
|
54251
|
+
* @memberof ItemApi
|
|
54252
|
+
*/
|
|
54253
|
+
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<Response>;
|
|
54095
54254
|
/**
|
|
54096
54255
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
54097
54256
|
* @summary Updates a file within the digital library
|
package/dist/api.js
CHANGED
|
@@ -7129,6 +7129,58 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
7129
7129
|
options: localVarRequestOptions,
|
|
7130
7130
|
};
|
|
7131
7131
|
},
|
|
7132
|
+
/**
|
|
7133
|
+
* Delete pbx queue Voicemail
|
|
7134
|
+
* @summary Delete Queue Voicemail
|
|
7135
|
+
* @param {string} queue_uuid
|
|
7136
|
+
* @param {string} recording_sid
|
|
7137
|
+
* @param {*} [options] Override http request option.
|
|
7138
|
+
* @throws {RequiredError}
|
|
7139
|
+
*/
|
|
7140
|
+
deletePbxQueueVoicemail: function (queue_uuid, recording_sid, options) {
|
|
7141
|
+
if (options === void 0) { options = {}; }
|
|
7142
|
+
// verify required parameter 'queue_uuid' is not null or undefined
|
|
7143
|
+
if (queue_uuid === null || queue_uuid === undefined) {
|
|
7144
|
+
throw new RequiredError('queue_uuid', 'Required parameter queue_uuid was null or undefined when calling deletePbxQueueVoicemail.');
|
|
7145
|
+
}
|
|
7146
|
+
// verify required parameter 'recording_sid' is not null or undefined
|
|
7147
|
+
if (recording_sid === null || recording_sid === undefined) {
|
|
7148
|
+
throw new RequiredError('recording_sid', 'Required parameter recording_sid was null or undefined when calling deletePbxQueueVoicemail.');
|
|
7149
|
+
}
|
|
7150
|
+
var localVarPath = "/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}"
|
|
7151
|
+
.replace("{".concat("queue_uuid", "}"), encodeURIComponent(String(queue_uuid)))
|
|
7152
|
+
.replace("{".concat("recording_sid", "}"), encodeURIComponent(String(recording_sid)));
|
|
7153
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
7154
|
+
var localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
|
|
7155
|
+
var localVarHeaderParameter = {};
|
|
7156
|
+
var localVarQueryParameter = {};
|
|
7157
|
+
if (configuration && configuration.apiVersion) {
|
|
7158
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
7159
|
+
}
|
|
7160
|
+
// authentication ultraCartOauth required
|
|
7161
|
+
// oauth required
|
|
7162
|
+
if (configuration && configuration.accessToken) {
|
|
7163
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
7164
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
7165
|
+
: configuration.accessToken;
|
|
7166
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
7167
|
+
}
|
|
7168
|
+
// authentication ultraCartSimpleApiKey required
|
|
7169
|
+
if (configuration && configuration.apiKey) {
|
|
7170
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
7171
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
7172
|
+
: configuration.apiKey;
|
|
7173
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
7174
|
+
}
|
|
7175
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
7176
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
7177
|
+
delete localVarUrlObj.search;
|
|
7178
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
7179
|
+
return {
|
|
7180
|
+
url: url.format(localVarUrlObj),
|
|
7181
|
+
options: localVarRequestOptions,
|
|
7182
|
+
};
|
|
7183
|
+
},
|
|
7132
7184
|
/**
|
|
7133
7185
|
* Delete a pbx timeBased
|
|
7134
7186
|
* @summary Delete pbx timeBased
|
|
@@ -9699,6 +9751,58 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
9699
9751
|
options: localVarRequestOptions,
|
|
9700
9752
|
};
|
|
9701
9753
|
},
|
|
9754
|
+
/**
|
|
9755
|
+
* Listened pbx queue Voicemail
|
|
9756
|
+
* @summary Listened Queue Voicemail
|
|
9757
|
+
* @param {string} queue_uuid
|
|
9758
|
+
* @param {string} recording_sid
|
|
9759
|
+
* @param {*} [options] Override http request option.
|
|
9760
|
+
* @throws {RequiredError}
|
|
9761
|
+
*/
|
|
9762
|
+
listenedPbxQueueVoicemail: function (queue_uuid, recording_sid, options) {
|
|
9763
|
+
if (options === void 0) { options = {}; }
|
|
9764
|
+
// verify required parameter 'queue_uuid' is not null or undefined
|
|
9765
|
+
if (queue_uuid === null || queue_uuid === undefined) {
|
|
9766
|
+
throw new RequiredError('queue_uuid', 'Required parameter queue_uuid was null or undefined when calling listenedPbxQueueVoicemail.');
|
|
9767
|
+
}
|
|
9768
|
+
// verify required parameter 'recording_sid' is not null or undefined
|
|
9769
|
+
if (recording_sid === null || recording_sid === undefined) {
|
|
9770
|
+
throw new RequiredError('recording_sid', 'Required parameter recording_sid was null or undefined when calling listenedPbxQueueVoicemail.');
|
|
9771
|
+
}
|
|
9772
|
+
var localVarPath = "/conversation/pbx/{queue_uuid}/voicemails/voicemails/{recording_sid}/listened"
|
|
9773
|
+
.replace("{".concat("queue_uuid", "}"), encodeURIComponent(String(queue_uuid)))
|
|
9774
|
+
.replace("{".concat("recording_sid", "}"), encodeURIComponent(String(recording_sid)));
|
|
9775
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
9776
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
9777
|
+
var localVarHeaderParameter = {};
|
|
9778
|
+
var localVarQueryParameter = {};
|
|
9779
|
+
if (configuration && configuration.apiVersion) {
|
|
9780
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
9781
|
+
}
|
|
9782
|
+
// authentication ultraCartOauth required
|
|
9783
|
+
// oauth required
|
|
9784
|
+
if (configuration && configuration.accessToken) {
|
|
9785
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
9786
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
9787
|
+
: configuration.accessToken;
|
|
9788
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
9789
|
+
}
|
|
9790
|
+
// authentication ultraCartSimpleApiKey required
|
|
9791
|
+
if (configuration && configuration.apiKey) {
|
|
9792
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
9793
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
9794
|
+
: configuration.apiKey;
|
|
9795
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
9796
|
+
}
|
|
9797
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
9798
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
9799
|
+
delete localVarUrlObj.search;
|
|
9800
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
9801
|
+
return {
|
|
9802
|
+
url: url.format(localVarUrlObj),
|
|
9803
|
+
options: localVarRequestOptions,
|
|
9804
|
+
};
|
|
9805
|
+
},
|
|
9702
9806
|
/**
|
|
9703
9807
|
* Mark a conversation as read
|
|
9704
9808
|
* @summary Mark a conversation as read
|
|
@@ -10836,6 +10940,29 @@ var ConversationApiFp = function (configuration) {
|
|
|
10836
10940
|
});
|
|
10837
10941
|
};
|
|
10838
10942
|
},
|
|
10943
|
+
/**
|
|
10944
|
+
* Delete pbx queue Voicemail
|
|
10945
|
+
* @summary Delete Queue Voicemail
|
|
10946
|
+
* @param {string} queue_uuid
|
|
10947
|
+
* @param {string} recording_sid
|
|
10948
|
+
* @param {*} [options] Override http request option.
|
|
10949
|
+
* @throws {RequiredError}
|
|
10950
|
+
*/
|
|
10951
|
+
deletePbxQueueVoicemail: function (queue_uuid, recording_sid, options) {
|
|
10952
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options);
|
|
10953
|
+
return function (fetch, basePath) {
|
|
10954
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
10955
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
10956
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
10957
|
+
if (response.status >= 200 && response.status < 300) {
|
|
10958
|
+
return response;
|
|
10959
|
+
}
|
|
10960
|
+
else {
|
|
10961
|
+
throw response;
|
|
10962
|
+
}
|
|
10963
|
+
});
|
|
10964
|
+
};
|
|
10965
|
+
},
|
|
10839
10966
|
/**
|
|
10840
10967
|
* Delete a pbx timeBased
|
|
10841
10968
|
* @summary Delete pbx timeBased
|
|
@@ -12079,6 +12206,29 @@ var ConversationApiFp = function (configuration) {
|
|
|
12079
12206
|
});
|
|
12080
12207
|
};
|
|
12081
12208
|
},
|
|
12209
|
+
/**
|
|
12210
|
+
* Listened pbx queue Voicemail
|
|
12211
|
+
* @summary Listened Queue Voicemail
|
|
12212
|
+
* @param {string} queue_uuid
|
|
12213
|
+
* @param {string} recording_sid
|
|
12214
|
+
* @param {*} [options] Override http request option.
|
|
12215
|
+
* @throws {RequiredError}
|
|
12216
|
+
*/
|
|
12217
|
+
listenedPbxQueueVoicemail: function (queue_uuid, recording_sid, options) {
|
|
12218
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options);
|
|
12219
|
+
return function (fetch, basePath) {
|
|
12220
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
12221
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
12222
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
12223
|
+
if (response.status >= 200 && response.status < 300) {
|
|
12224
|
+
return response;
|
|
12225
|
+
}
|
|
12226
|
+
else {
|
|
12227
|
+
throw response;
|
|
12228
|
+
}
|
|
12229
|
+
});
|
|
12230
|
+
};
|
|
12231
|
+
},
|
|
12082
12232
|
/**
|
|
12083
12233
|
* Mark a conversation as read
|
|
12084
12234
|
* @summary Mark a conversation as read
|
|
@@ -12586,6 +12736,17 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
12586
12736
|
deletePbxQueue: function (conversationPbxQueueUuid, options) {
|
|
12587
12737
|
return (0, exports.ConversationApiFp)(configuration).deletePbxQueue(conversationPbxQueueUuid, options)(fetch, basePath);
|
|
12588
12738
|
},
|
|
12739
|
+
/**
|
|
12740
|
+
* Delete pbx queue Voicemail
|
|
12741
|
+
* @summary Delete Queue Voicemail
|
|
12742
|
+
* @param {string} queue_uuid
|
|
12743
|
+
* @param {string} recording_sid
|
|
12744
|
+
* @param {*} [options] Override http request option.
|
|
12745
|
+
* @throws {RequiredError}
|
|
12746
|
+
*/
|
|
12747
|
+
deletePbxQueueVoicemail: function (queue_uuid, recording_sid, options) {
|
|
12748
|
+
return (0, exports.ConversationApiFp)(configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options)(fetch, basePath);
|
|
12749
|
+
},
|
|
12589
12750
|
/**
|
|
12590
12751
|
* Delete a pbx timeBased
|
|
12591
12752
|
* @summary Delete pbx timeBased
|
|
@@ -13145,6 +13306,17 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
13145
13306
|
listenedPbxAgentVoicemail: function (recording_sid, options) {
|
|
13146
13307
|
return (0, exports.ConversationApiFp)(configuration).listenedPbxAgentVoicemail(recording_sid, options)(fetch, basePath);
|
|
13147
13308
|
},
|
|
13309
|
+
/**
|
|
13310
|
+
* Listened pbx queue Voicemail
|
|
13311
|
+
* @summary Listened Queue Voicemail
|
|
13312
|
+
* @param {string} queue_uuid
|
|
13313
|
+
* @param {string} recording_sid
|
|
13314
|
+
* @param {*} [options] Override http request option.
|
|
13315
|
+
* @throws {RequiredError}
|
|
13316
|
+
*/
|
|
13317
|
+
listenedPbxQueueVoicemail: function (queue_uuid, recording_sid, options) {
|
|
13318
|
+
return (0, exports.ConversationApiFp)(configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options)(fetch, basePath);
|
|
13319
|
+
},
|
|
13148
13320
|
/**
|
|
13149
13321
|
* Mark a conversation as read
|
|
13150
13322
|
* @summary Mark a conversation as read
|
|
@@ -13450,6 +13622,18 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
13450
13622
|
ConversationApi.prototype.deletePbxQueue = function (conversationPbxQueueUuid, options) {
|
|
13451
13623
|
return (0, exports.ConversationApiFp)(this.configuration).deletePbxQueue(conversationPbxQueueUuid, options)(this.fetch, this.basePath);
|
|
13452
13624
|
};
|
|
13625
|
+
/**
|
|
13626
|
+
* Delete pbx queue Voicemail
|
|
13627
|
+
* @summary Delete Queue Voicemail
|
|
13628
|
+
* @param {string} queue_uuid
|
|
13629
|
+
* @param {string} recording_sid
|
|
13630
|
+
* @param {*} [options] Override http request option.
|
|
13631
|
+
* @throws {RequiredError}
|
|
13632
|
+
* @memberof ConversationApi
|
|
13633
|
+
*/
|
|
13634
|
+
ConversationApi.prototype.deletePbxQueueVoicemail = function (queue_uuid, recording_sid, options) {
|
|
13635
|
+
return (0, exports.ConversationApiFp)(this.configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options)(this.fetch, this.basePath);
|
|
13636
|
+
};
|
|
13453
13637
|
/**
|
|
13454
13638
|
* Delete a pbx timeBased
|
|
13455
13639
|
* @summary Delete pbx timeBased
|
|
@@ -14066,6 +14250,18 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
14066
14250
|
ConversationApi.prototype.listenedPbxAgentVoicemail = function (recording_sid, options) {
|
|
14067
14251
|
return (0, exports.ConversationApiFp)(this.configuration).listenedPbxAgentVoicemail(recording_sid, options)(this.fetch, this.basePath);
|
|
14068
14252
|
};
|
|
14253
|
+
/**
|
|
14254
|
+
* Listened pbx queue Voicemail
|
|
14255
|
+
* @summary Listened Queue Voicemail
|
|
14256
|
+
* @param {string} queue_uuid
|
|
14257
|
+
* @param {string} recording_sid
|
|
14258
|
+
* @param {*} [options] Override http request option.
|
|
14259
|
+
* @throws {RequiredError}
|
|
14260
|
+
* @memberof ConversationApi
|
|
14261
|
+
*/
|
|
14262
|
+
ConversationApi.prototype.listenedPbxQueueVoicemail = function (queue_uuid, recording_sid, options) {
|
|
14263
|
+
return (0, exports.ConversationApiFp)(this.configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options)(this.fetch, this.basePath);
|
|
14264
|
+
};
|
|
14069
14265
|
/**
|
|
14070
14266
|
* Mark a conversation as read
|
|
14071
14267
|
* @summary Mark a conversation as read
|
|
@@ -22568,6 +22764,60 @@ var ItemApiFetchParamCreator = function (configuration) {
|
|
|
22568
22764
|
options: localVarRequestOptions,
|
|
22569
22765
|
};
|
|
22570
22766
|
},
|
|
22767
|
+
/**
|
|
22768
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
22769
|
+
* @summary Upsert an item content attribute
|
|
22770
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
22771
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
22772
|
+
* @param {*} [options] Override http request option.
|
|
22773
|
+
* @throws {RequiredError}
|
|
22774
|
+
*/
|
|
22775
|
+
insertUpdateItemContentAttribute: function (item_attribute, merchant_item_oid, options) {
|
|
22776
|
+
if (options === void 0) { options = {}; }
|
|
22777
|
+
// verify required parameter 'item_attribute' is not null or undefined
|
|
22778
|
+
if (item_attribute === null || item_attribute === undefined) {
|
|
22779
|
+
throw new RequiredError('item_attribute', 'Required parameter item_attribute was null or undefined when calling insertUpdateItemContentAttribute.');
|
|
22780
|
+
}
|
|
22781
|
+
// verify required parameter 'merchant_item_oid' is not null or undefined
|
|
22782
|
+
if (merchant_item_oid === null || merchant_item_oid === undefined) {
|
|
22783
|
+
throw new RequiredError('merchant_item_oid', 'Required parameter merchant_item_oid was null or undefined when calling insertUpdateItemContentAttribute.');
|
|
22784
|
+
}
|
|
22785
|
+
var localVarPath = "/item/items/{merchant_item_oid}/content/attributes"
|
|
22786
|
+
.replace("{".concat("merchant_item_oid", "}"), encodeURIComponent(String(merchant_item_oid)));
|
|
22787
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
22788
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
22789
|
+
var localVarHeaderParameter = {};
|
|
22790
|
+
var localVarQueryParameter = {};
|
|
22791
|
+
if (configuration && configuration.apiVersion) {
|
|
22792
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
22793
|
+
}
|
|
22794
|
+
// authentication ultraCartOauth required
|
|
22795
|
+
// oauth required
|
|
22796
|
+
if (configuration && configuration.accessToken) {
|
|
22797
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
22798
|
+
? configuration.accessToken("ultraCartOauth", ["item_write"])
|
|
22799
|
+
: configuration.accessToken;
|
|
22800
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
22801
|
+
}
|
|
22802
|
+
// authentication ultraCartSimpleApiKey required
|
|
22803
|
+
if (configuration && configuration.apiKey) {
|
|
22804
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
22805
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
22806
|
+
: configuration.apiKey;
|
|
22807
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
22808
|
+
}
|
|
22809
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
22810
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
22811
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
22812
|
+
delete localVarUrlObj.search;
|
|
22813
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
22814
|
+
var needsSerialization = ("ItemContentAttribute" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
22815
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(item_attribute || {}) : (item_attribute || "");
|
|
22816
|
+
return {
|
|
22817
|
+
url: url.format(localVarUrlObj),
|
|
22818
|
+
options: localVarRequestOptions,
|
|
22819
|
+
};
|
|
22820
|
+
},
|
|
22571
22821
|
/**
|
|
22572
22822
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
22573
22823
|
* @summary Updates a file within the digital library
|
|
@@ -23242,6 +23492,29 @@ var ItemApiFp = function (configuration) {
|
|
|
23242
23492
|
});
|
|
23243
23493
|
};
|
|
23244
23494
|
},
|
|
23495
|
+
/**
|
|
23496
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
23497
|
+
* @summary Upsert an item content attribute
|
|
23498
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
23499
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
23500
|
+
* @param {*} [options] Override http request option.
|
|
23501
|
+
* @throws {RequiredError}
|
|
23502
|
+
*/
|
|
23503
|
+
insertUpdateItemContentAttribute: function (item_attribute, merchant_item_oid, options) {
|
|
23504
|
+
var localVarFetchArgs = (0, exports.ItemApiFetchParamCreator)(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options);
|
|
23505
|
+
return function (fetch, basePath) {
|
|
23506
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
23507
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
23508
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
23509
|
+
if (response.status >= 200 && response.status < 300) {
|
|
23510
|
+
return response;
|
|
23511
|
+
}
|
|
23512
|
+
else {
|
|
23513
|
+
throw response;
|
|
23514
|
+
}
|
|
23515
|
+
});
|
|
23516
|
+
};
|
|
23517
|
+
},
|
|
23245
23518
|
/**
|
|
23246
23519
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
23247
23520
|
* @summary Updates a file within the digital library
|
|
@@ -23556,6 +23829,17 @@ var ItemApiFactory = function (configuration, fetch, basePath) {
|
|
|
23556
23829
|
insertReview: function (review, merchant_item_oid, options) {
|
|
23557
23830
|
return (0, exports.ItemApiFp)(configuration).insertReview(review, merchant_item_oid, options)(fetch, basePath);
|
|
23558
23831
|
},
|
|
23832
|
+
/**
|
|
23833
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
23834
|
+
* @summary Upsert an item content attribute
|
|
23835
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
23836
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
23837
|
+
* @param {*} [options] Override http request option.
|
|
23838
|
+
* @throws {RequiredError}
|
|
23839
|
+
*/
|
|
23840
|
+
insertUpdateItemContentAttribute: function (item_attribute, merchant_item_oid, options) {
|
|
23841
|
+
return (0, exports.ItemApiFp)(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(fetch, basePath);
|
|
23842
|
+
},
|
|
23559
23843
|
/**
|
|
23560
23844
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
23561
23845
|
* @summary Updates a file within the digital library
|
|
@@ -23831,6 +24115,18 @@ var ItemApi = /** @class */ (function (_super) {
|
|
|
23831
24115
|
ItemApi.prototype.insertReview = function (review, merchant_item_oid, options) {
|
|
23832
24116
|
return (0, exports.ItemApiFp)(this.configuration).insertReview(review, merchant_item_oid, options)(this.fetch, this.basePath);
|
|
23833
24117
|
};
|
|
24118
|
+
/**
|
|
24119
|
+
* Update an item content attribute, creating it new if it does not yet exist.
|
|
24120
|
+
* @summary Upsert an item content attribute
|
|
24121
|
+
* @param {ItemContentAttribute} item_attribute Item content attribute to upsert
|
|
24122
|
+
* @param {number} merchant_item_oid The item oid to modify.
|
|
24123
|
+
* @param {*} [options] Override http request option.
|
|
24124
|
+
* @throws {RequiredError}
|
|
24125
|
+
* @memberof ItemApi
|
|
24126
|
+
*/
|
|
24127
|
+
ItemApi.prototype.insertUpdateItemContentAttribute = function (item_attribute, merchant_item_oid, options) {
|
|
24128
|
+
return (0, exports.ItemApiFp)(this.configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(this.fetch, this.basePath);
|
|
24129
|
+
};
|
|
23834
24130
|
/**
|
|
23835
24131
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
23836
24132
|
* @summary Updates a file within the digital library
|