ultracart_rest_api_v2_typescript 3.10.185 → 3.10.186
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 +171 -0
- package/dist/api.d.ts +111 -0
- package/dist/api.js +80 -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.186
|
|
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.186 --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.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
|
|
57
58
|
| 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
|
|
58
59
|
| 3.10.184 | 02/27/2024 | esp - sms statistic layer |
|
|
59
60
|
| 3.10.183 | 02/20/2024 | Add tag support to CouponAmountOffItems, CouponBuyOneGetOneLimit, CouponDiscountItemWithItemPurchase, CouponFreeItemWithItemPurchase, CouponPercentOffItemsWithItemsPurchase |
|
package/api.ts
CHANGED
|
@@ -9323,6 +9323,18 @@ export interface ConversationPbxQueue {
|
|
|
9323
9323
|
* @memberof ConversationPbxQueue
|
|
9324
9324
|
*/
|
|
9325
9325
|
voicemail?: boolean;
|
|
9326
|
+
/**
|
|
9327
|
+
* Wait time in seconds before critical
|
|
9328
|
+
* @type {number}
|
|
9329
|
+
* @memberof ConversationPbxQueue
|
|
9330
|
+
*/
|
|
9331
|
+
wait_critical_seconds?: number;
|
|
9332
|
+
/**
|
|
9333
|
+
* Wait time in seconds before warning
|
|
9334
|
+
* @type {number}
|
|
9335
|
+
* @memberof ConversationPbxQueue
|
|
9336
|
+
*/
|
|
9337
|
+
wait_warning_seconds?: number;
|
|
9326
9338
|
}
|
|
9327
9339
|
|
|
9328
9340
|
/**
|
|
@@ -42989,6 +43001,70 @@ export namespace Weight {
|
|
|
42989
43001
|
}
|
|
42990
43002
|
}
|
|
42991
43003
|
|
|
43004
|
+
/**
|
|
43005
|
+
*
|
|
43006
|
+
* @export
|
|
43007
|
+
* @interface WorkflowAgentAuth
|
|
43008
|
+
*/
|
|
43009
|
+
export interface WorkflowAgentAuth {
|
|
43010
|
+
/**
|
|
43011
|
+
*
|
|
43012
|
+
* @type {string}
|
|
43013
|
+
* @memberof WorkflowAgentAuth
|
|
43014
|
+
*/
|
|
43015
|
+
jwt?: string;
|
|
43016
|
+
/**
|
|
43017
|
+
*
|
|
43018
|
+
* @type {string}
|
|
43019
|
+
* @memberof WorkflowAgentAuth
|
|
43020
|
+
*/
|
|
43021
|
+
merchant_id?: string;
|
|
43022
|
+
/**
|
|
43023
|
+
*
|
|
43024
|
+
* @type {string}
|
|
43025
|
+
* @memberof WorkflowAgentAuth
|
|
43026
|
+
*/
|
|
43027
|
+
websocket_url?: string;
|
|
43028
|
+
}
|
|
43029
|
+
|
|
43030
|
+
/**
|
|
43031
|
+
*
|
|
43032
|
+
* @export
|
|
43033
|
+
* @interface WorkflowAgentAuthResponse
|
|
43034
|
+
*/
|
|
43035
|
+
export interface WorkflowAgentAuthResponse {
|
|
43036
|
+
/**
|
|
43037
|
+
*
|
|
43038
|
+
* @type {WorkflowAgentAuth}
|
|
43039
|
+
* @memberof WorkflowAgentAuthResponse
|
|
43040
|
+
*/
|
|
43041
|
+
agent_auth?: WorkflowAgentAuth;
|
|
43042
|
+
/**
|
|
43043
|
+
*
|
|
43044
|
+
* @type {ModelError}
|
|
43045
|
+
* @memberof WorkflowAgentAuthResponse
|
|
43046
|
+
*/
|
|
43047
|
+
error?: ModelError;
|
|
43048
|
+
/**
|
|
43049
|
+
*
|
|
43050
|
+
* @type {ResponseMetadata}
|
|
43051
|
+
* @memberof WorkflowAgentAuthResponse
|
|
43052
|
+
*/
|
|
43053
|
+
metadata?: ResponseMetadata;
|
|
43054
|
+
/**
|
|
43055
|
+
* Indicates if API call was successful
|
|
43056
|
+
* @type {boolean}
|
|
43057
|
+
* @memberof WorkflowAgentAuthResponse
|
|
43058
|
+
*/
|
|
43059
|
+
success?: boolean;
|
|
43060
|
+
/**
|
|
43061
|
+
*
|
|
43062
|
+
* @type {Warning}
|
|
43063
|
+
* @memberof WorkflowAgentAuthResponse
|
|
43064
|
+
*/
|
|
43065
|
+
warning?: Warning;
|
|
43066
|
+
}
|
|
43067
|
+
|
|
42992
43068
|
/**
|
|
42993
43069
|
*
|
|
42994
43070
|
* @export
|
|
@@ -100595,6 +100671,52 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
100595
100671
|
*/
|
|
100596
100672
|
export const WorkflowApiFetchParamCreator = function (configuration?: Configuration) {
|
|
100597
100673
|
return {
|
|
100674
|
+
/**
|
|
100675
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
100676
|
+
* @summary Get agent websocket authorization
|
|
100677
|
+
* @param {*} [options] Override http request option.
|
|
100678
|
+
* @throws {RequiredError}
|
|
100679
|
+
*/
|
|
100680
|
+
getWorkflowAgentWebsocketAuthorization(options: any = {}): FetchArgs {
|
|
100681
|
+
const localVarPath = `/workflow/agent/auth`;
|
|
100682
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
100683
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
100684
|
+
const localVarHeaderParameter = {} as any;
|
|
100685
|
+
const localVarQueryParameter = {} as any;
|
|
100686
|
+
|
|
100687
|
+
if(configuration && configuration.apiVersion) {
|
|
100688
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
100689
|
+
}
|
|
100690
|
+
|
|
100691
|
+
|
|
100692
|
+
|
|
100693
|
+
// authentication ultraCartOauth required
|
|
100694
|
+
// oauth required
|
|
100695
|
+
if (configuration && configuration.accessToken) {
|
|
100696
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
100697
|
+
? configuration.accessToken("ultraCartOauth", ["workflow_write"])
|
|
100698
|
+
: configuration.accessToken;
|
|
100699
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
100700
|
+
}
|
|
100701
|
+
|
|
100702
|
+
// authentication ultraCartSimpleApiKey required
|
|
100703
|
+
if (configuration && configuration.apiKey) {
|
|
100704
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
100705
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
100706
|
+
: configuration.apiKey;
|
|
100707
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
100708
|
+
}
|
|
100709
|
+
|
|
100710
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
100711
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
100712
|
+
delete localVarUrlObj.search;
|
|
100713
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
100714
|
+
|
|
100715
|
+
return {
|
|
100716
|
+
url: url.format(localVarUrlObj),
|
|
100717
|
+
options: localVarRequestOptions,
|
|
100718
|
+
};
|
|
100719
|
+
},
|
|
100598
100720
|
/**
|
|
100599
100721
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
100600
100722
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -101156,6 +101278,26 @@ export const WorkflowApiFetchParamCreator = function (configuration?: Configurat
|
|
|
101156
101278
|
*/
|
|
101157
101279
|
export const WorkflowApiFp = function(configuration?: Configuration) {
|
|
101158
101280
|
return {
|
|
101281
|
+
/**
|
|
101282
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
101283
|
+
* @summary Get agent websocket authorization
|
|
101284
|
+
* @param {*} [options] Override http request option.
|
|
101285
|
+
* @throws {RequiredError}
|
|
101286
|
+
*/
|
|
101287
|
+
getWorkflowAgentWebsocketAuthorization(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowAgentAuthResponse> {
|
|
101288
|
+
const localVarFetchArgs = WorkflowApiFetchParamCreator(configuration).getWorkflowAgentWebsocketAuthorization(options);
|
|
101289
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
101290
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
101291
|
+
|
|
101292
|
+
if (response.status >= 200 && response.status < 300) {
|
|
101293
|
+
return response.json();
|
|
101294
|
+
|
|
101295
|
+
} else {
|
|
101296
|
+
throw response;
|
|
101297
|
+
}
|
|
101298
|
+
});
|
|
101299
|
+
};
|
|
101300
|
+
},
|
|
101159
101301
|
/**
|
|
101160
101302
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
101161
101303
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -101380,6 +101522,15 @@ export const WorkflowApiFp = function(configuration?: Configuration) {
|
|
|
101380
101522
|
*/
|
|
101381
101523
|
export const WorkflowApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
|
|
101382
101524
|
return {
|
|
101525
|
+
/**
|
|
101526
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
101527
|
+
* @summary Get agent websocket authorization
|
|
101528
|
+
* @param {*} [options] Override http request option.
|
|
101529
|
+
* @throws {RequiredError}
|
|
101530
|
+
*/
|
|
101531
|
+
getWorkflowAgentWebsocketAuthorization(options?: any) {
|
|
101532
|
+
return WorkflowApiFp(configuration).getWorkflowAgentWebsocketAuthorization(options)(fetch, basePath);
|
|
101533
|
+
},
|
|
101383
101534
|
/**
|
|
101384
101535
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
101385
101536
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -101494,6 +101645,15 @@ export const WorkflowApiFactory = function (configuration?: Configuration, fetch
|
|
|
101494
101645
|
* @interface WorkflowApi
|
|
101495
101646
|
*/
|
|
101496
101647
|
export interface WorkflowApiInterface {
|
|
101648
|
+
/**
|
|
101649
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
101650
|
+
* @summary Get agent websocket authorization
|
|
101651
|
+
* @param {*} [options] Override http request option.
|
|
101652
|
+
* @throws {RequiredError}
|
|
101653
|
+
* @memberof WorkflowApiInterface
|
|
101654
|
+
*/
|
|
101655
|
+
getWorkflowAgentWebsocketAuthorization(options?: any): Promise<WorkflowAgentAuthResponse>;
|
|
101656
|
+
|
|
101497
101657
|
/**
|
|
101498
101658
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
101499
101659
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -101608,6 +101768,17 @@ export interface WorkflowApiInterface {
|
|
|
101608
101768
|
* @extends {BaseAPI}
|
|
101609
101769
|
*/
|
|
101610
101770
|
export class WorkflowApi extends BaseAPI implements WorkflowApiInterface {
|
|
101771
|
+
/**
|
|
101772
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
101773
|
+
* @summary Get agent websocket authorization
|
|
101774
|
+
* @param {*} [options] Override http request option.
|
|
101775
|
+
* @throws {RequiredError}
|
|
101776
|
+
* @memberof WorkflowApi
|
|
101777
|
+
*/
|
|
101778
|
+
public getWorkflowAgentWebsocketAuthorization(options?: any) {
|
|
101779
|
+
return WorkflowApiFp(this.configuration).getWorkflowAgentWebsocketAuthorization(options)(this.fetch, this.basePath);
|
|
101780
|
+
}
|
|
101781
|
+
|
|
101611
101782
|
/**
|
|
101612
101783
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
101613
101784
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
package/dist/api.d.ts
CHANGED
|
@@ -9102,6 +9102,18 @@ export interface ConversationPbxQueue {
|
|
|
9102
9102
|
* @memberof ConversationPbxQueue
|
|
9103
9103
|
*/
|
|
9104
9104
|
voicemail?: boolean;
|
|
9105
|
+
/**
|
|
9106
|
+
* Wait time in seconds before critical
|
|
9107
|
+
* @type {number}
|
|
9108
|
+
* @memberof ConversationPbxQueue
|
|
9109
|
+
*/
|
|
9110
|
+
wait_critical_seconds?: number;
|
|
9111
|
+
/**
|
|
9112
|
+
* Wait time in seconds before warning
|
|
9113
|
+
* @type {number}
|
|
9114
|
+
* @memberof ConversationPbxQueue
|
|
9115
|
+
*/
|
|
9116
|
+
wait_warning_seconds?: number;
|
|
9105
9117
|
}
|
|
9106
9118
|
/**
|
|
9107
9119
|
*
|
|
@@ -42080,6 +42092,68 @@ export declare namespace Weight {
|
|
|
42080
42092
|
OZ
|
|
42081
42093
|
}
|
|
42082
42094
|
}
|
|
42095
|
+
/**
|
|
42096
|
+
*
|
|
42097
|
+
* @export
|
|
42098
|
+
* @interface WorkflowAgentAuth
|
|
42099
|
+
*/
|
|
42100
|
+
export interface WorkflowAgentAuth {
|
|
42101
|
+
/**
|
|
42102
|
+
*
|
|
42103
|
+
* @type {string}
|
|
42104
|
+
* @memberof WorkflowAgentAuth
|
|
42105
|
+
*/
|
|
42106
|
+
jwt?: string;
|
|
42107
|
+
/**
|
|
42108
|
+
*
|
|
42109
|
+
* @type {string}
|
|
42110
|
+
* @memberof WorkflowAgentAuth
|
|
42111
|
+
*/
|
|
42112
|
+
merchant_id?: string;
|
|
42113
|
+
/**
|
|
42114
|
+
*
|
|
42115
|
+
* @type {string}
|
|
42116
|
+
* @memberof WorkflowAgentAuth
|
|
42117
|
+
*/
|
|
42118
|
+
websocket_url?: string;
|
|
42119
|
+
}
|
|
42120
|
+
/**
|
|
42121
|
+
*
|
|
42122
|
+
* @export
|
|
42123
|
+
* @interface WorkflowAgentAuthResponse
|
|
42124
|
+
*/
|
|
42125
|
+
export interface WorkflowAgentAuthResponse {
|
|
42126
|
+
/**
|
|
42127
|
+
*
|
|
42128
|
+
* @type {WorkflowAgentAuth}
|
|
42129
|
+
* @memberof WorkflowAgentAuthResponse
|
|
42130
|
+
*/
|
|
42131
|
+
agent_auth?: WorkflowAgentAuth;
|
|
42132
|
+
/**
|
|
42133
|
+
*
|
|
42134
|
+
* @type {ModelError}
|
|
42135
|
+
* @memberof WorkflowAgentAuthResponse
|
|
42136
|
+
*/
|
|
42137
|
+
error?: ModelError;
|
|
42138
|
+
/**
|
|
42139
|
+
*
|
|
42140
|
+
* @type {ResponseMetadata}
|
|
42141
|
+
* @memberof WorkflowAgentAuthResponse
|
|
42142
|
+
*/
|
|
42143
|
+
metadata?: ResponseMetadata;
|
|
42144
|
+
/**
|
|
42145
|
+
* Indicates if API call was successful
|
|
42146
|
+
* @type {boolean}
|
|
42147
|
+
* @memberof WorkflowAgentAuthResponse
|
|
42148
|
+
*/
|
|
42149
|
+
success?: boolean;
|
|
42150
|
+
/**
|
|
42151
|
+
*
|
|
42152
|
+
* @type {Warning}
|
|
42153
|
+
* @memberof WorkflowAgentAuthResponse
|
|
42154
|
+
*/
|
|
42155
|
+
warning?: Warning;
|
|
42156
|
+
}
|
|
42083
42157
|
/**
|
|
42084
42158
|
*
|
|
42085
42159
|
* @export
|
|
@@ -65691,6 +65765,13 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
65691
65765
|
* @export
|
|
65692
65766
|
*/
|
|
65693
65767
|
export declare const WorkflowApiFetchParamCreator: (configuration?: Configuration) => {
|
|
65768
|
+
/**
|
|
65769
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
65770
|
+
* @summary Get agent websocket authorization
|
|
65771
|
+
* @param {*} [options] Override http request option.
|
|
65772
|
+
* @throws {RequiredError}
|
|
65773
|
+
*/
|
|
65774
|
+
getWorkflowAgentWebsocketAuthorization(options?: any): FetchArgs;
|
|
65694
65775
|
/**
|
|
65695
65776
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
65696
65777
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -65782,6 +65863,13 @@ export declare const WorkflowApiFetchParamCreator: (configuration?: Configuratio
|
|
|
65782
65863
|
* @export
|
|
65783
65864
|
*/
|
|
65784
65865
|
export declare const WorkflowApiFp: (configuration?: Configuration) => {
|
|
65866
|
+
/**
|
|
65867
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
65868
|
+
* @summary Get agent websocket authorization
|
|
65869
|
+
* @param {*} [options] Override http request option.
|
|
65870
|
+
* @throws {RequiredError}
|
|
65871
|
+
*/
|
|
65872
|
+
getWorkflowAgentWebsocketAuthorization(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowAgentAuthResponse>;
|
|
65785
65873
|
/**
|
|
65786
65874
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
65787
65875
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -65873,6 +65961,13 @@ export declare const WorkflowApiFp: (configuration?: Configuration) => {
|
|
|
65873
65961
|
* @export
|
|
65874
65962
|
*/
|
|
65875
65963
|
export declare const WorkflowApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
|
|
65964
|
+
/**
|
|
65965
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
65966
|
+
* @summary Get agent websocket authorization
|
|
65967
|
+
* @param {*} [options] Override http request option.
|
|
65968
|
+
* @throws {RequiredError}
|
|
65969
|
+
*/
|
|
65970
|
+
getWorkflowAgentWebsocketAuthorization(options?: any): Promise<WorkflowAgentAuthResponse>;
|
|
65876
65971
|
/**
|
|
65877
65972
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
65878
65973
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -65965,6 +66060,14 @@ export declare const WorkflowApiFactory: (configuration?: Configuration, fetch?:
|
|
|
65965
66060
|
* @interface WorkflowApi
|
|
65966
66061
|
*/
|
|
65967
66062
|
export interface WorkflowApiInterface {
|
|
66063
|
+
/**
|
|
66064
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
66065
|
+
* @summary Get agent websocket authorization
|
|
66066
|
+
* @param {*} [options] Override http request option.
|
|
66067
|
+
* @throws {RequiredError}
|
|
66068
|
+
* @memberof WorkflowApiInterface
|
|
66069
|
+
*/
|
|
66070
|
+
getWorkflowAgentWebsocketAuthorization(options?: any): Promise<WorkflowAgentAuthResponse>;
|
|
65968
66071
|
/**
|
|
65969
66072
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
65970
66073
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -66068,6 +66171,14 @@ export interface WorkflowApiInterface {
|
|
|
66068
66171
|
* @extends {BaseAPI}
|
|
66069
66172
|
*/
|
|
66070
66173
|
export declare class WorkflowApi extends BaseAPI implements WorkflowApiInterface {
|
|
66174
|
+
/**
|
|
66175
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
66176
|
+
* @summary Get agent websocket authorization
|
|
66177
|
+
* @param {*} [options] Override http request option.
|
|
66178
|
+
* @throws {RequiredError}
|
|
66179
|
+
* @memberof WorkflowApi
|
|
66180
|
+
*/
|
|
66181
|
+
getWorkflowAgentWebsocketAuthorization(options?: any): Promise<WorkflowAgentAuthResponse>;
|
|
66071
66182
|
/**
|
|
66072
66183
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
66073
66184
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
package/dist/api.js
CHANGED
|
@@ -49687,6 +49687,46 @@ exports.WebhookApi = WebhookApi;
|
|
|
49687
49687
|
*/
|
|
49688
49688
|
var WorkflowApiFetchParamCreator = function (configuration) {
|
|
49689
49689
|
return {
|
|
49690
|
+
/**
|
|
49691
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
49692
|
+
* @summary Get agent websocket authorization
|
|
49693
|
+
* @param {*} [options] Override http request option.
|
|
49694
|
+
* @throws {RequiredError}
|
|
49695
|
+
*/
|
|
49696
|
+
getWorkflowAgentWebsocketAuthorization: function (options) {
|
|
49697
|
+
if (options === void 0) { options = {}; }
|
|
49698
|
+
var localVarPath = "/workflow/agent/auth";
|
|
49699
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
49700
|
+
var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
49701
|
+
var localVarHeaderParameter = {};
|
|
49702
|
+
var localVarQueryParameter = {};
|
|
49703
|
+
if (configuration && configuration.apiVersion) {
|
|
49704
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
49705
|
+
}
|
|
49706
|
+
// authentication ultraCartOauth required
|
|
49707
|
+
// oauth required
|
|
49708
|
+
if (configuration && configuration.accessToken) {
|
|
49709
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
49710
|
+
? configuration.accessToken("ultraCartOauth", ["workflow_write"])
|
|
49711
|
+
: configuration.accessToken;
|
|
49712
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
49713
|
+
}
|
|
49714
|
+
// authentication ultraCartSimpleApiKey required
|
|
49715
|
+
if (configuration && configuration.apiKey) {
|
|
49716
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
49717
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
49718
|
+
: configuration.apiKey;
|
|
49719
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
49720
|
+
}
|
|
49721
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
49722
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
49723
|
+
delete localVarUrlObj.search;
|
|
49724
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
49725
|
+
return {
|
|
49726
|
+
url: url.format(localVarUrlObj),
|
|
49727
|
+
options: localVarRequestOptions,
|
|
49728
|
+
};
|
|
49729
|
+
},
|
|
49690
49730
|
/**
|
|
49691
49731
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
49692
49732
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -50178,6 +50218,27 @@ exports.WorkflowApiFetchParamCreator = WorkflowApiFetchParamCreator;
|
|
|
50178
50218
|
*/
|
|
50179
50219
|
var WorkflowApiFp = function (configuration) {
|
|
50180
50220
|
return {
|
|
50221
|
+
/**
|
|
50222
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
50223
|
+
* @summary Get agent websocket authorization
|
|
50224
|
+
* @param {*} [options] Override http request option.
|
|
50225
|
+
* @throws {RequiredError}
|
|
50226
|
+
*/
|
|
50227
|
+
getWorkflowAgentWebsocketAuthorization: function (options) {
|
|
50228
|
+
var localVarFetchArgs = (0, exports.WorkflowApiFetchParamCreator)(configuration).getWorkflowAgentWebsocketAuthorization(options);
|
|
50229
|
+
return function (fetch, basePath) {
|
|
50230
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
50231
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
50232
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
50233
|
+
if (response.status >= 200 && response.status < 300) {
|
|
50234
|
+
return response.json();
|
|
50235
|
+
}
|
|
50236
|
+
else {
|
|
50237
|
+
throw response;
|
|
50238
|
+
}
|
|
50239
|
+
});
|
|
50240
|
+
};
|
|
50241
|
+
},
|
|
50181
50242
|
/**
|
|
50182
50243
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
50183
50244
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -50412,6 +50473,15 @@ exports.WorkflowApiFp = WorkflowApiFp;
|
|
|
50412
50473
|
*/
|
|
50413
50474
|
var WorkflowApiFactory = function (configuration, fetch, basePath) {
|
|
50414
50475
|
return {
|
|
50476
|
+
/**
|
|
50477
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
50478
|
+
* @summary Get agent websocket authorization
|
|
50479
|
+
* @param {*} [options] Override http request option.
|
|
50480
|
+
* @throws {RequiredError}
|
|
50481
|
+
*/
|
|
50482
|
+
getWorkflowAgentWebsocketAuthorization: function (options) {
|
|
50483
|
+
return (0, exports.WorkflowApiFp)(configuration).getWorkflowAgentWebsocketAuthorization(options)(fetch, basePath);
|
|
50484
|
+
},
|
|
50415
50485
|
/**
|
|
50416
50486
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
50417
50487
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|
|
@@ -50531,6 +50601,16 @@ var WorkflowApi = /** @class */ (function (_super) {
|
|
|
50531
50601
|
function WorkflowApi() {
|
|
50532
50602
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
50533
50603
|
}
|
|
50604
|
+
/**
|
|
50605
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
50606
|
+
* @summary Get agent websocket authorization
|
|
50607
|
+
* @param {*} [options] Override http request option.
|
|
50608
|
+
* @throws {RequiredError}
|
|
50609
|
+
* @memberof WorkflowApi
|
|
50610
|
+
*/
|
|
50611
|
+
WorkflowApi.prototype.getWorkflowAgentWebsocketAuthorization = function (options) {
|
|
50612
|
+
return (0, exports.WorkflowApiFp)(this.configuration).getWorkflowAgentWebsocketAuthorization(options)(this.fetch, this.basePath);
|
|
50613
|
+
};
|
|
50534
50614
|
/**
|
|
50535
50615
|
* Retrieve a list of groups that workflow tasks can be assigned to
|
|
50536
50616
|
* @summary Retrieve a list of groups that workflow tasks can be assigned to
|