ultracart_rest_api_v2_typescript 3.10.186 → 3.10.187
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 +133 -1
- package/dist/api.d.ts +70 -1
- package/dist/api.js +105 -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.187
|
|
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.187 --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.187 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
|
|
57
58
|
| 3.10.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
|
|
58
59
|
| 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
|
|
59
60
|
| 3.10.184 | 02/27/2024 | esp - sms statistic layer |
|
package/api.ts
CHANGED
|
@@ -43329,6 +43329,12 @@ export interface WorkflowTask {
|
|
|
43329
43329
|
* @memberof WorkflowTask
|
|
43330
43330
|
*/
|
|
43331
43331
|
due_dts?: string;
|
|
43332
|
+
/**
|
|
43333
|
+
* Date/time that the workflow task will expire and be closed. This is set by system generated tasks.
|
|
43334
|
+
* @type {string}
|
|
43335
|
+
* @memberof WorkflowTask
|
|
43336
|
+
*/
|
|
43337
|
+
expiration_dts?: string;
|
|
43332
43338
|
/**
|
|
43333
43339
|
* Array of history records for the task
|
|
43334
43340
|
* @type {Array<WorkflowTaskHistory>}
|
|
@@ -43401,6 +43407,12 @@ export interface WorkflowTask {
|
|
|
43401
43407
|
* @memberof WorkflowTask
|
|
43402
43408
|
*/
|
|
43403
43409
|
status?: WorkflowTask.StatusEnum;
|
|
43410
|
+
/**
|
|
43411
|
+
* Constant for the type of system generated task
|
|
43412
|
+
* @type {string}
|
|
43413
|
+
* @memberof WorkflowTask
|
|
43414
|
+
*/
|
|
43415
|
+
system_task_type?: WorkflowTask.SystemTaskTypeEnum;
|
|
43404
43416
|
/**
|
|
43405
43417
|
* Tags
|
|
43406
43418
|
* @type {Array<string>}
|
|
@@ -43467,7 +43479,22 @@ export namespace WorkflowTask {
|
|
|
43467
43479
|
Open = <any> 'open',
|
|
43468
43480
|
Closed = <any> 'closed',
|
|
43469
43481
|
Delayed = <any> 'delayed',
|
|
43470
|
-
AwaitingCustomerFeedback = <any> 'awaiting customer feedback'
|
|
43482
|
+
AwaitingCustomerFeedback = <any> 'awaiting customer feedback',
|
|
43483
|
+
ClosedSystem = <any> 'closed - system',
|
|
43484
|
+
ClosedCustomer = <any> 'closed - customer',
|
|
43485
|
+
ClosedExpiration = <any> 'closed - expiration'
|
|
43486
|
+
}
|
|
43487
|
+
/**
|
|
43488
|
+
* @export
|
|
43489
|
+
* @enum {string}
|
|
43490
|
+
*/
|
|
43491
|
+
export enum SystemTaskTypeEnum {
|
|
43492
|
+
OrderAccountsReceivable = <any> 'order_accounts_receivable',
|
|
43493
|
+
OrderFraudReview = <any> 'order_fraud_review',
|
|
43494
|
+
AutoOrderCardUpdateIssue = <any> 'auto_order_card_update_issue',
|
|
43495
|
+
AutoOrderCanceledPayment = <any> 'auto_order_canceled_payment',
|
|
43496
|
+
ItemLowStock = <any> 'item_low_stock',
|
|
43497
|
+
ItemOutOfStock = <any> 'item_out_of_stock'
|
|
43471
43498
|
}
|
|
43472
43499
|
}
|
|
43473
43500
|
|
|
@@ -52928,6 +52955,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
52928
52955
|
|
|
52929
52956
|
|
|
52930
52957
|
|
|
52958
|
+
// authentication ultraCartOauth required
|
|
52959
|
+
// oauth required
|
|
52960
|
+
if (configuration && configuration.accessToken) {
|
|
52961
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
52962
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
52963
|
+
: configuration.accessToken;
|
|
52964
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
52965
|
+
}
|
|
52966
|
+
|
|
52967
|
+
// authentication ultraCartSimpleApiKey required
|
|
52968
|
+
if (configuration && configuration.apiKey) {
|
|
52969
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
52970
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
52971
|
+
: configuration.apiKey;
|
|
52972
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
52973
|
+
}
|
|
52974
|
+
|
|
52975
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
52976
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
52977
|
+
delete localVarUrlObj.search;
|
|
52978
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
52979
|
+
|
|
52980
|
+
return {
|
|
52981
|
+
url: url.format(localVarUrlObj),
|
|
52982
|
+
options: localVarRequestOptions,
|
|
52983
|
+
};
|
|
52984
|
+
},
|
|
52985
|
+
/**
|
|
52986
|
+
* reset statistics within the queue
|
|
52987
|
+
* @summary reset statistics within the queue
|
|
52988
|
+
* @param {string} queue_uuid
|
|
52989
|
+
* @param {*} [options] Override http request option.
|
|
52990
|
+
* @throws {RequiredError}
|
|
52991
|
+
*/
|
|
52992
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options: any = {}): FetchArgs {
|
|
52993
|
+
// verify required parameter 'queue_uuid' is not null or undefined
|
|
52994
|
+
if (queue_uuid === null || queue_uuid === undefined) {
|
|
52995
|
+
throw new RequiredError('queue_uuid','Required parameter queue_uuid was null or undefined when calling resetConversationPbxQueueStatistics.');
|
|
52996
|
+
}
|
|
52997
|
+
const localVarPath = `/conversation/pbx/queues/{queue_uuid}/reset_statistics`
|
|
52998
|
+
.replace(`{${"queue_uuid"}}`, encodeURIComponent(String(queue_uuid)));
|
|
52999
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
53000
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
53001
|
+
const localVarHeaderParameter = {} as any;
|
|
53002
|
+
const localVarQueryParameter = {} as any;
|
|
53003
|
+
|
|
53004
|
+
if(configuration && configuration.apiVersion) {
|
|
53005
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
53006
|
+
}
|
|
53007
|
+
|
|
53008
|
+
|
|
53009
|
+
|
|
52931
53010
|
// authentication ultraCartOauth required
|
|
52932
53011
|
// oauth required
|
|
52933
53012
|
if (configuration && configuration.accessToken) {
|
|
@@ -55183,6 +55262,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
55183
55262
|
});
|
|
55184
55263
|
};
|
|
55185
55264
|
},
|
|
55265
|
+
/**
|
|
55266
|
+
* reset statistics within the queue
|
|
55267
|
+
* @summary reset statistics within the queue
|
|
55268
|
+
* @param {string} queue_uuid
|
|
55269
|
+
* @param {*} [options] Override http request option.
|
|
55270
|
+
* @throws {RequiredError}
|
|
55271
|
+
*/
|
|
55272
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
|
|
55273
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).resetConversationPbxQueueStatistics(queue_uuid, options);
|
|
55274
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
55275
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
55276
|
+
|
|
55277
|
+
if (response.status >= 200 && response.status < 300) {
|
|
55278
|
+
return response;
|
|
55279
|
+
|
|
55280
|
+
} else {
|
|
55281
|
+
throw response;
|
|
55282
|
+
}
|
|
55283
|
+
});
|
|
55284
|
+
};
|
|
55285
|
+
},
|
|
55186
55286
|
/**
|
|
55187
55287
|
* Search for canned messages by short_code
|
|
55188
55288
|
* @summary Search for canned messages by short_code
|
|
@@ -56139,6 +56239,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
56139
56239
|
markReadConversation(conversation_uuid: string, options?: any) {
|
|
56140
56240
|
return ConversationApiFp(configuration).markReadConversation(conversation_uuid, options)(fetch, basePath);
|
|
56141
56241
|
},
|
|
56242
|
+
/**
|
|
56243
|
+
* reset statistics within the queue
|
|
56244
|
+
* @summary reset statistics within the queue
|
|
56245
|
+
* @param {string} queue_uuid
|
|
56246
|
+
* @param {*} [options] Override http request option.
|
|
56247
|
+
* @throws {RequiredError}
|
|
56248
|
+
*/
|
|
56249
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any) {
|
|
56250
|
+
return ConversationApiFp(configuration).resetConversationPbxQueueStatistics(queue_uuid, options)(fetch, basePath);
|
|
56251
|
+
},
|
|
56142
56252
|
/**
|
|
56143
56253
|
* Search for canned messages by short_code
|
|
56144
56254
|
* @summary Search for canned messages by short_code
|
|
@@ -56919,6 +57029,16 @@ export interface ConversationApiInterface {
|
|
|
56919
57029
|
*/
|
|
56920
57030
|
markReadConversation(conversation_uuid: string, options?: any): Promise<{}>;
|
|
56921
57031
|
|
|
57032
|
+
/**
|
|
57033
|
+
* reset statistics within the queue
|
|
57034
|
+
* @summary reset statistics within the queue
|
|
57035
|
+
* @param {string} queue_uuid
|
|
57036
|
+
* @param {*} [options] Override http request option.
|
|
57037
|
+
* @throws {RequiredError}
|
|
57038
|
+
* @memberof ConversationApiInterface
|
|
57039
|
+
*/
|
|
57040
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any): Promise<{}>;
|
|
57041
|
+
|
|
56922
57042
|
/**
|
|
56923
57043
|
* Search for canned messages by short_code
|
|
56924
57044
|
* @summary Search for canned messages by short_code
|
|
@@ -57821,6 +57941,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
57821
57941
|
return ConversationApiFp(this.configuration).markReadConversation(conversation_uuid, options)(this.fetch, this.basePath);
|
|
57822
57942
|
}
|
|
57823
57943
|
|
|
57944
|
+
/**
|
|
57945
|
+
* reset statistics within the queue
|
|
57946
|
+
* @summary reset statistics within the queue
|
|
57947
|
+
* @param {string} queue_uuid
|
|
57948
|
+
* @param {*} [options] Override http request option.
|
|
57949
|
+
* @throws {RequiredError}
|
|
57950
|
+
* @memberof ConversationApi
|
|
57951
|
+
*/
|
|
57952
|
+
public resetConversationPbxQueueStatistics(queue_uuid: string, options?: any) {
|
|
57953
|
+
return ConversationApiFp(this.configuration).resetConversationPbxQueueStatistics(queue_uuid, options)(this.fetch, this.basePath);
|
|
57954
|
+
}
|
|
57955
|
+
|
|
57824
57956
|
/**
|
|
57825
57957
|
* Search for canned messages by short_code
|
|
57826
57958
|
* @summary Search for canned messages by short_code
|
package/dist/api.d.ts
CHANGED
|
@@ -42412,6 +42412,12 @@ export interface WorkflowTask {
|
|
|
42412
42412
|
* @memberof WorkflowTask
|
|
42413
42413
|
*/
|
|
42414
42414
|
due_dts?: string;
|
|
42415
|
+
/**
|
|
42416
|
+
* Date/time that the workflow task will expire and be closed. This is set by system generated tasks.
|
|
42417
|
+
* @type {string}
|
|
42418
|
+
* @memberof WorkflowTask
|
|
42419
|
+
*/
|
|
42420
|
+
expiration_dts?: string;
|
|
42415
42421
|
/**
|
|
42416
42422
|
* Array of history records for the task
|
|
42417
42423
|
* @type {Array<WorkflowTaskHistory>}
|
|
@@ -42484,6 +42490,12 @@ export interface WorkflowTask {
|
|
|
42484
42490
|
* @memberof WorkflowTask
|
|
42485
42491
|
*/
|
|
42486
42492
|
status?: WorkflowTask.StatusEnum;
|
|
42493
|
+
/**
|
|
42494
|
+
* Constant for the type of system generated task
|
|
42495
|
+
* @type {string}
|
|
42496
|
+
* @memberof WorkflowTask
|
|
42497
|
+
*/
|
|
42498
|
+
system_task_type?: WorkflowTask.SystemTaskTypeEnum;
|
|
42487
42499
|
/**
|
|
42488
42500
|
* Tags
|
|
42489
42501
|
* @type {Array<string>}
|
|
@@ -42549,7 +42561,22 @@ export declare namespace WorkflowTask {
|
|
|
42549
42561
|
Open,
|
|
42550
42562
|
Closed,
|
|
42551
42563
|
Delayed,
|
|
42552
|
-
AwaitingCustomerFeedback
|
|
42564
|
+
AwaitingCustomerFeedback,
|
|
42565
|
+
ClosedSystem,
|
|
42566
|
+
ClosedCustomer,
|
|
42567
|
+
ClosedExpiration
|
|
42568
|
+
}
|
|
42569
|
+
/**
|
|
42570
|
+
* @export
|
|
42571
|
+
* @enum {string}
|
|
42572
|
+
*/
|
|
42573
|
+
enum SystemTaskTypeEnum {
|
|
42574
|
+
OrderAccountsReceivable,
|
|
42575
|
+
OrderFraudReview,
|
|
42576
|
+
AutoOrderCardUpdateIssue,
|
|
42577
|
+
AutoOrderCanceledPayment,
|
|
42578
|
+
ItemLowStock,
|
|
42579
|
+
ItemOutOfStock
|
|
42553
42580
|
}
|
|
42554
42581
|
}
|
|
42555
42582
|
/**
|
|
@@ -45899,6 +45926,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
45899
45926
|
* @throws {RequiredError}
|
|
45900
45927
|
*/
|
|
45901
45928
|
markReadConversation(conversation_uuid: string, options?: any): FetchArgs;
|
|
45929
|
+
/**
|
|
45930
|
+
* reset statistics within the queue
|
|
45931
|
+
* @summary reset statistics within the queue
|
|
45932
|
+
* @param {string} queue_uuid
|
|
45933
|
+
* @param {*} [options] Override http request option.
|
|
45934
|
+
* @throws {RequiredError}
|
|
45935
|
+
*/
|
|
45936
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any): FetchArgs;
|
|
45902
45937
|
/**
|
|
45903
45938
|
* Search for canned messages by short_code
|
|
45904
45939
|
* @summary Search for canned messages by short_code
|
|
@@ -46522,6 +46557,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
46522
46557
|
* @throws {RequiredError}
|
|
46523
46558
|
*/
|
|
46524
46559
|
markReadConversation(conversation_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
46560
|
+
/**
|
|
46561
|
+
* reset statistics within the queue
|
|
46562
|
+
* @summary reset statistics within the queue
|
|
46563
|
+
* @param {string} queue_uuid
|
|
46564
|
+
* @param {*} [options] Override http request option.
|
|
46565
|
+
* @throws {RequiredError}
|
|
46566
|
+
*/
|
|
46567
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
46525
46568
|
/**
|
|
46526
46569
|
* Search for canned messages by short_code
|
|
46527
46570
|
* @summary Search for canned messages by short_code
|
|
@@ -47145,6 +47188,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
47145
47188
|
* @throws {RequiredError}
|
|
47146
47189
|
*/
|
|
47147
47190
|
markReadConversation(conversation_uuid: string, options?: any): Promise<Response>;
|
|
47191
|
+
/**
|
|
47192
|
+
* reset statistics within the queue
|
|
47193
|
+
* @summary reset statistics within the queue
|
|
47194
|
+
* @param {string} queue_uuid
|
|
47195
|
+
* @param {*} [options] Override http request option.
|
|
47196
|
+
* @throws {RequiredError}
|
|
47197
|
+
*/
|
|
47198
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any): Promise<Response>;
|
|
47148
47199
|
/**
|
|
47149
47200
|
* Search for canned messages by short_code
|
|
47150
47201
|
* @summary Search for canned messages by short_code
|
|
@@ -47830,6 +47881,15 @@ export interface ConversationApiInterface {
|
|
|
47830
47881
|
* @memberof ConversationApiInterface
|
|
47831
47882
|
*/
|
|
47832
47883
|
markReadConversation(conversation_uuid: string, options?: any): Promise<{}>;
|
|
47884
|
+
/**
|
|
47885
|
+
* reset statistics within the queue
|
|
47886
|
+
* @summary reset statistics within the queue
|
|
47887
|
+
* @param {string} queue_uuid
|
|
47888
|
+
* @param {*} [options] Override http request option.
|
|
47889
|
+
* @throws {RequiredError}
|
|
47890
|
+
* @memberof ConversationApiInterface
|
|
47891
|
+
*/
|
|
47892
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any): Promise<{}>;
|
|
47833
47893
|
/**
|
|
47834
47894
|
* Search for canned messages by short_code
|
|
47835
47895
|
* @summary Search for canned messages by short_code
|
|
@@ -48532,6 +48592,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
48532
48592
|
* @memberof ConversationApi
|
|
48533
48593
|
*/
|
|
48534
48594
|
markReadConversation(conversation_uuid: string, options?: any): Promise<Response>;
|
|
48595
|
+
/**
|
|
48596
|
+
* reset statistics within the queue
|
|
48597
|
+
* @summary reset statistics within the queue
|
|
48598
|
+
* @param {string} queue_uuid
|
|
48599
|
+
* @param {*} [options] Override http request option.
|
|
48600
|
+
* @throws {RequiredError}
|
|
48601
|
+
* @memberof ConversationApi
|
|
48602
|
+
*/
|
|
48603
|
+
resetConversationPbxQueueStatistics(queue_uuid: string, options?: any): Promise<Response>;
|
|
48535
48604
|
/**
|
|
48536
48605
|
* Search for canned messages by short_code
|
|
48537
48606
|
* @summary Search for canned messages by short_code
|
package/dist/api.js
CHANGED
|
@@ -1615,7 +1615,23 @@ var WorkflowTask;
|
|
|
1615
1615
|
StatusEnum[StatusEnum["Closed"] = 'closed'] = "Closed";
|
|
1616
1616
|
StatusEnum[StatusEnum["Delayed"] = 'delayed'] = "Delayed";
|
|
1617
1617
|
StatusEnum[StatusEnum["AwaitingCustomerFeedback"] = 'awaiting customer feedback'] = "AwaitingCustomerFeedback";
|
|
1618
|
+
StatusEnum[StatusEnum["ClosedSystem"] = 'closed - system'] = "ClosedSystem";
|
|
1619
|
+
StatusEnum[StatusEnum["ClosedCustomer"] = 'closed - customer'] = "ClosedCustomer";
|
|
1620
|
+
StatusEnum[StatusEnum["ClosedExpiration"] = 'closed - expiration'] = "ClosedExpiration";
|
|
1618
1621
|
})(StatusEnum = WorkflowTask.StatusEnum || (WorkflowTask.StatusEnum = {}));
|
|
1622
|
+
/**
|
|
1623
|
+
* @export
|
|
1624
|
+
* @enum {string}
|
|
1625
|
+
*/
|
|
1626
|
+
var SystemTaskTypeEnum;
|
|
1627
|
+
(function (SystemTaskTypeEnum) {
|
|
1628
|
+
SystemTaskTypeEnum[SystemTaskTypeEnum["OrderAccountsReceivable"] = 'order_accounts_receivable'] = "OrderAccountsReceivable";
|
|
1629
|
+
SystemTaskTypeEnum[SystemTaskTypeEnum["OrderFraudReview"] = 'order_fraud_review'] = "OrderFraudReview";
|
|
1630
|
+
SystemTaskTypeEnum[SystemTaskTypeEnum["AutoOrderCardUpdateIssue"] = 'auto_order_card_update_issue'] = "AutoOrderCardUpdateIssue";
|
|
1631
|
+
SystemTaskTypeEnum[SystemTaskTypeEnum["AutoOrderCanceledPayment"] = 'auto_order_canceled_payment'] = "AutoOrderCanceledPayment";
|
|
1632
|
+
SystemTaskTypeEnum[SystemTaskTypeEnum["ItemLowStock"] = 'item_low_stock'] = "ItemLowStock";
|
|
1633
|
+
SystemTaskTypeEnum[SystemTaskTypeEnum["ItemOutOfStock"] = 'item_out_of_stock'] = "ItemOutOfStock";
|
|
1634
|
+
})(SystemTaskTypeEnum = WorkflowTask.SystemTaskTypeEnum || (WorkflowTask.SystemTaskTypeEnum = {}));
|
|
1619
1635
|
})(WorkflowTask = exports.WorkflowTask || (exports.WorkflowTask = {}));
|
|
1620
1636
|
/**
|
|
1621
1637
|
* @export
|
|
@@ -9407,6 +9423,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
9407
9423
|
options: localVarRequestOptions,
|
|
9408
9424
|
};
|
|
9409
9425
|
},
|
|
9426
|
+
/**
|
|
9427
|
+
* reset statistics within the queue
|
|
9428
|
+
* @summary reset statistics within the queue
|
|
9429
|
+
* @param {string} queue_uuid
|
|
9430
|
+
* @param {*} [options] Override http request option.
|
|
9431
|
+
* @throws {RequiredError}
|
|
9432
|
+
*/
|
|
9433
|
+
resetConversationPbxQueueStatistics: function (queue_uuid, options) {
|
|
9434
|
+
if (options === void 0) { options = {}; }
|
|
9435
|
+
// verify required parameter 'queue_uuid' is not null or undefined
|
|
9436
|
+
if (queue_uuid === null || queue_uuid === undefined) {
|
|
9437
|
+
throw new RequiredError('queue_uuid', 'Required parameter queue_uuid was null or undefined when calling resetConversationPbxQueueStatistics.');
|
|
9438
|
+
}
|
|
9439
|
+
var localVarPath = "/conversation/pbx/queues/{queue_uuid}/reset_statistics"
|
|
9440
|
+
.replace("{".concat("queue_uuid", "}"), encodeURIComponent(String(queue_uuid)));
|
|
9441
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
9442
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
9443
|
+
var localVarHeaderParameter = {};
|
|
9444
|
+
var localVarQueryParameter = {};
|
|
9445
|
+
if (configuration && configuration.apiVersion) {
|
|
9446
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
9447
|
+
}
|
|
9448
|
+
// authentication ultraCartOauth required
|
|
9449
|
+
// oauth required
|
|
9450
|
+
if (configuration && configuration.accessToken) {
|
|
9451
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
9452
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_write"])
|
|
9453
|
+
: configuration.accessToken;
|
|
9454
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
9455
|
+
}
|
|
9456
|
+
// authentication ultraCartSimpleApiKey required
|
|
9457
|
+
if (configuration && configuration.apiKey) {
|
|
9458
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
9459
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
9460
|
+
: configuration.apiKey;
|
|
9461
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
9462
|
+
}
|
|
9463
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
9464
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
9465
|
+
delete localVarUrlObj.search;
|
|
9466
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
9467
|
+
return {
|
|
9468
|
+
url: url.format(localVarUrlObj),
|
|
9469
|
+
options: localVarRequestOptions,
|
|
9470
|
+
};
|
|
9471
|
+
},
|
|
9410
9472
|
/**
|
|
9411
9473
|
* Search for canned messages by short_code
|
|
9412
9474
|
* @summary Search for canned messages by short_code
|
|
@@ -11585,6 +11647,28 @@ var ConversationApiFp = function (configuration) {
|
|
|
11585
11647
|
});
|
|
11586
11648
|
};
|
|
11587
11649
|
},
|
|
11650
|
+
/**
|
|
11651
|
+
* reset statistics within the queue
|
|
11652
|
+
* @summary reset statistics within the queue
|
|
11653
|
+
* @param {string} queue_uuid
|
|
11654
|
+
* @param {*} [options] Override http request option.
|
|
11655
|
+
* @throws {RequiredError}
|
|
11656
|
+
*/
|
|
11657
|
+
resetConversationPbxQueueStatistics: function (queue_uuid, options) {
|
|
11658
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).resetConversationPbxQueueStatistics(queue_uuid, options);
|
|
11659
|
+
return function (fetch, basePath) {
|
|
11660
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
11661
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
11662
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
11663
|
+
if (response.status >= 200 && response.status < 300) {
|
|
11664
|
+
return response;
|
|
11665
|
+
}
|
|
11666
|
+
else {
|
|
11667
|
+
throw response;
|
|
11668
|
+
}
|
|
11669
|
+
});
|
|
11670
|
+
};
|
|
11671
|
+
},
|
|
11588
11672
|
/**
|
|
11589
11673
|
* Search for canned messages by short_code
|
|
11590
11674
|
* @summary Search for canned messages by short_code
|
|
@@ -12557,6 +12641,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
12557
12641
|
markReadConversation: function (conversation_uuid, options) {
|
|
12558
12642
|
return (0, exports.ConversationApiFp)(configuration).markReadConversation(conversation_uuid, options)(fetch, basePath);
|
|
12559
12643
|
},
|
|
12644
|
+
/**
|
|
12645
|
+
* reset statistics within the queue
|
|
12646
|
+
* @summary reset statistics within the queue
|
|
12647
|
+
* @param {string} queue_uuid
|
|
12648
|
+
* @param {*} [options] Override http request option.
|
|
12649
|
+
* @throws {RequiredError}
|
|
12650
|
+
*/
|
|
12651
|
+
resetConversationPbxQueueStatistics: function (queue_uuid, options) {
|
|
12652
|
+
return (0, exports.ConversationApiFp)(configuration).resetConversationPbxQueueStatistics(queue_uuid, options)(fetch, basePath);
|
|
12653
|
+
},
|
|
12560
12654
|
/**
|
|
12561
12655
|
* Search for canned messages by short_code
|
|
12562
12656
|
* @summary Search for canned messages by short_code
|
|
@@ -13403,6 +13497,17 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
13403
13497
|
ConversationApi.prototype.markReadConversation = function (conversation_uuid, options) {
|
|
13404
13498
|
return (0, exports.ConversationApiFp)(this.configuration).markReadConversation(conversation_uuid, options)(this.fetch, this.basePath);
|
|
13405
13499
|
};
|
|
13500
|
+
/**
|
|
13501
|
+
* reset statistics within the queue
|
|
13502
|
+
* @summary reset statistics within the queue
|
|
13503
|
+
* @param {string} queue_uuid
|
|
13504
|
+
* @param {*} [options] Override http request option.
|
|
13505
|
+
* @throws {RequiredError}
|
|
13506
|
+
* @memberof ConversationApi
|
|
13507
|
+
*/
|
|
13508
|
+
ConversationApi.prototype.resetConversationPbxQueueStatistics = function (queue_uuid, options) {
|
|
13509
|
+
return (0, exports.ConversationApiFp)(this.configuration).resetConversationPbxQueueStatistics(queue_uuid, options)(this.fetch, this.basePath);
|
|
13510
|
+
};
|
|
13406
13511
|
/**
|
|
13407
13512
|
* Search for canned messages by short_code
|
|
13408
13513
|
* @summary Search for canned messages by short_code
|