ultracart_rest_api_v2_typescript 3.10.174 → 3.10.177
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 +5 -2
- package/api.ts +151 -0
- package/dist/api.d.ts +92 -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.177
|
|
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.177 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.177 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
|
|
58
|
+
| 3.10.176 | 12/12/2023 | webhook - added event ruler property |
|
|
59
|
+
| 3.10.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
|
|
57
60
|
| 3.10.174 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
|
|
58
61
|
| 3.10.173 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
|
|
59
62
|
| 3.10.172 | 11/13/2023 | coupon - editor values for item tags |
|
package/api.ts
CHANGED
|
@@ -11766,6 +11766,12 @@ export interface CouponTierQuantityPercent {
|
|
|
11766
11766
|
* @interface CouponTieredAmountOffItems
|
|
11767
11767
|
*/
|
|
11768
11768
|
export interface CouponTieredAmountOffItems {
|
|
11769
|
+
/**
|
|
11770
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
11771
|
+
* @type {Array<string>}
|
|
11772
|
+
* @memberof CouponTieredAmountOffItems
|
|
11773
|
+
*/
|
|
11774
|
+
item_tags?: Array<string>;
|
|
11769
11775
|
/**
|
|
11770
11776
|
* The items being discounted by this coupon.
|
|
11771
11777
|
* @type {Array<string>}
|
|
@@ -11812,6 +11818,12 @@ export interface CouponTieredAmountOffSubtotal {
|
|
|
11812
11818
|
* @interface CouponTieredPercentOffItems
|
|
11813
11819
|
*/
|
|
11814
11820
|
export interface CouponTieredPercentOffItems {
|
|
11821
|
+
/**
|
|
11822
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
11823
|
+
* @type {Array<string>}
|
|
11824
|
+
* @memberof CouponTieredPercentOffItems
|
|
11825
|
+
*/
|
|
11826
|
+
item_tags?: Array<string>;
|
|
11815
11827
|
/**
|
|
11816
11828
|
* A list of items of which at least one must be purchased for coupon to be valid.
|
|
11817
11829
|
* @type {Array<string>}
|
|
@@ -40756,6 +40768,12 @@ export interface WebhookEventSubscription {
|
|
|
40756
40768
|
* @memberof WebhookEventSubscription
|
|
40757
40769
|
*/
|
|
40758
40770
|
event_name?: string;
|
|
40771
|
+
/**
|
|
40772
|
+
* Optional - Event ruler expression to filter events to. Only events that match this Ruler expression will be transmitted to the webhook.
|
|
40773
|
+
* @type {string}
|
|
40774
|
+
* @memberof WebhookEventSubscription
|
|
40775
|
+
*/
|
|
40776
|
+
event_ruler?: string;
|
|
40759
40777
|
/**
|
|
40760
40778
|
* The expand string for the notification object. See the individual resource _expand documentation for valid values.
|
|
40761
40779
|
* @type {string}
|
|
@@ -41797,6 +41815,44 @@ export interface WorkflowUser {
|
|
|
41797
41815
|
user_id?: number;
|
|
41798
41816
|
}
|
|
41799
41817
|
|
|
41818
|
+
/**
|
|
41819
|
+
*
|
|
41820
|
+
* @export
|
|
41821
|
+
* @interface WorkflowUserResponse
|
|
41822
|
+
*/
|
|
41823
|
+
export interface WorkflowUserResponse {
|
|
41824
|
+
/**
|
|
41825
|
+
*
|
|
41826
|
+
* @type {ModelError}
|
|
41827
|
+
* @memberof WorkflowUserResponse
|
|
41828
|
+
*/
|
|
41829
|
+
error?: ModelError;
|
|
41830
|
+
/**
|
|
41831
|
+
*
|
|
41832
|
+
* @type {ResponseMetadata}
|
|
41833
|
+
* @memberof WorkflowUserResponse
|
|
41834
|
+
*/
|
|
41835
|
+
metadata?: ResponseMetadata;
|
|
41836
|
+
/**
|
|
41837
|
+
* Indicates if API call was successful
|
|
41838
|
+
* @type {boolean}
|
|
41839
|
+
* @memberof WorkflowUserResponse
|
|
41840
|
+
*/
|
|
41841
|
+
success?: boolean;
|
|
41842
|
+
/**
|
|
41843
|
+
*
|
|
41844
|
+
* @type {WorkflowUser}
|
|
41845
|
+
* @memberof WorkflowUserResponse
|
|
41846
|
+
*/
|
|
41847
|
+
user?: WorkflowUser;
|
|
41848
|
+
/**
|
|
41849
|
+
*
|
|
41850
|
+
* @type {Warning}
|
|
41851
|
+
* @memberof WorkflowUserResponse
|
|
41852
|
+
*/
|
|
41853
|
+
warning?: Warning;
|
|
41854
|
+
}
|
|
41855
|
+
|
|
41800
41856
|
/**
|
|
41801
41857
|
*
|
|
41802
41858
|
* @export
|
|
@@ -94001,6 +94057,52 @@ export const WorkflowApiFetchParamCreator = function (configuration?: Configurat
|
|
|
94001
94057
|
options: localVarRequestOptions,
|
|
94002
94058
|
};
|
|
94003
94059
|
},
|
|
94060
|
+
/**
|
|
94061
|
+
* Retrieve a user object for myself
|
|
94062
|
+
* @summary Retrieve a user object for myself
|
|
94063
|
+
* @param {*} [options] Override http request option.
|
|
94064
|
+
* @throws {RequiredError}
|
|
94065
|
+
*/
|
|
94066
|
+
getWorkflowMe(options: any = {}): FetchArgs {
|
|
94067
|
+
const localVarPath = `/workflow/me`;
|
|
94068
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
94069
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
94070
|
+
const localVarHeaderParameter = {} as any;
|
|
94071
|
+
const localVarQueryParameter = {} as any;
|
|
94072
|
+
|
|
94073
|
+
if(configuration && configuration.apiVersion) {
|
|
94074
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
94075
|
+
}
|
|
94076
|
+
|
|
94077
|
+
|
|
94078
|
+
|
|
94079
|
+
// authentication ultraCartOauth required
|
|
94080
|
+
// oauth required
|
|
94081
|
+
if (configuration && configuration.accessToken) {
|
|
94082
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
94083
|
+
? configuration.accessToken("ultraCartOauth", ["workflow_read"])
|
|
94084
|
+
: configuration.accessToken;
|
|
94085
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
94086
|
+
}
|
|
94087
|
+
|
|
94088
|
+
// authentication ultraCartSimpleApiKey required
|
|
94089
|
+
if (configuration && configuration.apiKey) {
|
|
94090
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
94091
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
94092
|
+
: configuration.apiKey;
|
|
94093
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
94094
|
+
}
|
|
94095
|
+
|
|
94096
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
94097
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
94098
|
+
delete localVarUrlObj.search;
|
|
94099
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
94100
|
+
|
|
94101
|
+
return {
|
|
94102
|
+
url: url.format(localVarUrlObj),
|
|
94103
|
+
options: localVarRequestOptions,
|
|
94104
|
+
};
|
|
94105
|
+
},
|
|
94004
94106
|
/**
|
|
94005
94107
|
* Retrieve a workflow task
|
|
94006
94108
|
* @summary Retrieve a workflow task
|
|
@@ -94402,6 +94504,26 @@ export const WorkflowApiFp = function(configuration?: Configuration) {
|
|
|
94402
94504
|
});
|
|
94403
94505
|
};
|
|
94404
94506
|
},
|
|
94507
|
+
/**
|
|
94508
|
+
* Retrieve a user object for myself
|
|
94509
|
+
* @summary Retrieve a user object for myself
|
|
94510
|
+
* @param {*} [options] Override http request option.
|
|
94511
|
+
* @throws {RequiredError}
|
|
94512
|
+
*/
|
|
94513
|
+
getWorkflowMe(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowUserResponse> {
|
|
94514
|
+
const localVarFetchArgs = WorkflowApiFetchParamCreator(configuration).getWorkflowMe(options);
|
|
94515
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
94516
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
94517
|
+
|
|
94518
|
+
if (response.status >= 200 && response.status < 300) {
|
|
94519
|
+
return response.json();
|
|
94520
|
+
|
|
94521
|
+
} else {
|
|
94522
|
+
throw response;
|
|
94523
|
+
}
|
|
94524
|
+
});
|
|
94525
|
+
};
|
|
94526
|
+
},
|
|
94405
94527
|
/**
|
|
94406
94528
|
* Retrieve a workflow task
|
|
94407
94529
|
* @summary Retrieve a workflow task
|
|
@@ -94564,6 +94686,15 @@ export const WorkflowApiFactory = function (configuration?: Configuration, fetch
|
|
|
94564
94686
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any) {
|
|
94565
94687
|
return WorkflowApiFp(configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(fetch, basePath);
|
|
94566
94688
|
},
|
|
94689
|
+
/**
|
|
94690
|
+
* Retrieve a user object for myself
|
|
94691
|
+
* @summary Retrieve a user object for myself
|
|
94692
|
+
* @param {*} [options] Override http request option.
|
|
94693
|
+
* @throws {RequiredError}
|
|
94694
|
+
*/
|
|
94695
|
+
getWorkflowMe(options?: any) {
|
|
94696
|
+
return WorkflowApiFp(configuration).getWorkflowMe(options)(fetch, basePath);
|
|
94697
|
+
},
|
|
94567
94698
|
/**
|
|
94568
94699
|
* Retrieve a workflow task
|
|
94569
94700
|
* @summary Retrieve a workflow task
|
|
@@ -94660,6 +94791,15 @@ export interface WorkflowApiInterface {
|
|
|
94660
94791
|
*/
|
|
94661
94792
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
94662
94793
|
|
|
94794
|
+
/**
|
|
94795
|
+
* Retrieve a user object for myself
|
|
94796
|
+
* @summary Retrieve a user object for myself
|
|
94797
|
+
* @param {*} [options] Override http request option.
|
|
94798
|
+
* @throws {RequiredError}
|
|
94799
|
+
* @memberof WorkflowApiInterface
|
|
94800
|
+
*/
|
|
94801
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
94802
|
+
|
|
94663
94803
|
/**
|
|
94664
94804
|
* Retrieve a workflow task
|
|
94665
94805
|
* @summary Retrieve a workflow task
|
|
@@ -94760,6 +94900,17 @@ export class WorkflowApi extends BaseAPI implements WorkflowApiInterface {
|
|
|
94760
94900
|
return WorkflowApiFp(this.configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(this.fetch, this.basePath);
|
|
94761
94901
|
}
|
|
94762
94902
|
|
|
94903
|
+
/**
|
|
94904
|
+
* Retrieve a user object for myself
|
|
94905
|
+
* @summary Retrieve a user object for myself
|
|
94906
|
+
* @param {*} [options] Override http request option.
|
|
94907
|
+
* @throws {RequiredError}
|
|
94908
|
+
* @memberof WorkflowApi
|
|
94909
|
+
*/
|
|
94910
|
+
public getWorkflowMe(options?: any) {
|
|
94911
|
+
return WorkflowApiFp(this.configuration).getWorkflowMe(options)(this.fetch, this.basePath);
|
|
94912
|
+
}
|
|
94913
|
+
|
|
94763
94914
|
/**
|
|
94764
94915
|
* Retrieve a workflow task
|
|
94765
94916
|
* @summary Retrieve a workflow task
|
package/dist/api.d.ts
CHANGED
|
@@ -11474,6 +11474,12 @@ export interface CouponTierQuantityPercent {
|
|
|
11474
11474
|
* @interface CouponTieredAmountOffItems
|
|
11475
11475
|
*/
|
|
11476
11476
|
export interface CouponTieredAmountOffItems {
|
|
11477
|
+
/**
|
|
11478
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
11479
|
+
* @type {Array<string>}
|
|
11480
|
+
* @memberof CouponTieredAmountOffItems
|
|
11481
|
+
*/
|
|
11482
|
+
item_tags?: Array<string>;
|
|
11477
11483
|
/**
|
|
11478
11484
|
* The items being discounted by this coupon.
|
|
11479
11485
|
* @type {Array<string>}
|
|
@@ -11518,6 +11524,12 @@ export interface CouponTieredAmountOffSubtotal {
|
|
|
11518
11524
|
* @interface CouponTieredPercentOffItems
|
|
11519
11525
|
*/
|
|
11520
11526
|
export interface CouponTieredPercentOffItems {
|
|
11527
|
+
/**
|
|
11528
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
11529
|
+
* @type {Array<string>}
|
|
11530
|
+
* @memberof CouponTieredPercentOffItems
|
|
11531
|
+
*/
|
|
11532
|
+
item_tags?: Array<string>;
|
|
11521
11533
|
/**
|
|
11522
11534
|
* A list of items of which at least one must be purchased for coupon to be valid.
|
|
11523
11535
|
* @type {Array<string>}
|
|
@@ -39894,6 +39906,12 @@ export interface WebhookEventSubscription {
|
|
|
39894
39906
|
* @memberof WebhookEventSubscription
|
|
39895
39907
|
*/
|
|
39896
39908
|
event_name?: string;
|
|
39909
|
+
/**
|
|
39910
|
+
* Optional - Event ruler expression to filter events to. Only events that match this Ruler expression will be transmitted to the webhook.
|
|
39911
|
+
* @type {string}
|
|
39912
|
+
* @memberof WebhookEventSubscription
|
|
39913
|
+
*/
|
|
39914
|
+
event_ruler?: string;
|
|
39897
39915
|
/**
|
|
39898
39916
|
* The expand string for the notification object. See the individual resource _expand documentation for valid values.
|
|
39899
39917
|
* @type {string}
|
|
@@ -40910,6 +40928,43 @@ export interface WorkflowUser {
|
|
|
40910
40928
|
*/
|
|
40911
40929
|
user_id?: number;
|
|
40912
40930
|
}
|
|
40931
|
+
/**
|
|
40932
|
+
*
|
|
40933
|
+
* @export
|
|
40934
|
+
* @interface WorkflowUserResponse
|
|
40935
|
+
*/
|
|
40936
|
+
export interface WorkflowUserResponse {
|
|
40937
|
+
/**
|
|
40938
|
+
*
|
|
40939
|
+
* @type {ModelError}
|
|
40940
|
+
* @memberof WorkflowUserResponse
|
|
40941
|
+
*/
|
|
40942
|
+
error?: ModelError;
|
|
40943
|
+
/**
|
|
40944
|
+
*
|
|
40945
|
+
* @type {ResponseMetadata}
|
|
40946
|
+
* @memberof WorkflowUserResponse
|
|
40947
|
+
*/
|
|
40948
|
+
metadata?: ResponseMetadata;
|
|
40949
|
+
/**
|
|
40950
|
+
* Indicates if API call was successful
|
|
40951
|
+
* @type {boolean}
|
|
40952
|
+
* @memberof WorkflowUserResponse
|
|
40953
|
+
*/
|
|
40954
|
+
success?: boolean;
|
|
40955
|
+
/**
|
|
40956
|
+
*
|
|
40957
|
+
* @type {WorkflowUser}
|
|
40958
|
+
* @memberof WorkflowUserResponse
|
|
40959
|
+
*/
|
|
40960
|
+
user?: WorkflowUser;
|
|
40961
|
+
/**
|
|
40962
|
+
*
|
|
40963
|
+
* @type {Warning}
|
|
40964
|
+
* @memberof WorkflowUserResponse
|
|
40965
|
+
*/
|
|
40966
|
+
warning?: Warning;
|
|
40967
|
+
}
|
|
40913
40968
|
/**
|
|
40914
40969
|
*
|
|
40915
40970
|
* @export
|
|
@@ -61907,6 +61962,13 @@ export declare const WorkflowApiFetchParamCreator: (configuration?: Configuratio
|
|
|
61907
61962
|
* @throws {RequiredError}
|
|
61908
61963
|
*/
|
|
61909
61964
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): FetchArgs;
|
|
61965
|
+
/**
|
|
61966
|
+
* Retrieve a user object for myself
|
|
61967
|
+
* @summary Retrieve a user object for myself
|
|
61968
|
+
* @param {*} [options] Override http request option.
|
|
61969
|
+
* @throws {RequiredError}
|
|
61970
|
+
*/
|
|
61971
|
+
getWorkflowMe(options?: any): FetchArgs;
|
|
61910
61972
|
/**
|
|
61911
61973
|
* Retrieve a workflow task
|
|
61912
61974
|
* @summary Retrieve a workflow task
|
|
@@ -61984,6 +62046,13 @@ export declare const WorkflowApiFp: (configuration?: Configuration) => {
|
|
|
61984
62046
|
* @throws {RequiredError}
|
|
61985
62047
|
*/
|
|
61986
62048
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowUsersResponse>;
|
|
62049
|
+
/**
|
|
62050
|
+
* Retrieve a user object for myself
|
|
62051
|
+
* @summary Retrieve a user object for myself
|
|
62052
|
+
* @param {*} [options] Override http request option.
|
|
62053
|
+
* @throws {RequiredError}
|
|
62054
|
+
*/
|
|
62055
|
+
getWorkflowMe(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowUserResponse>;
|
|
61987
62056
|
/**
|
|
61988
62057
|
* Retrieve a workflow task
|
|
61989
62058
|
* @summary Retrieve a workflow task
|
|
@@ -62061,6 +62130,13 @@ export declare const WorkflowApiFactory: (configuration?: Configuration, fetch?:
|
|
|
62061
62130
|
* @throws {RequiredError}
|
|
62062
62131
|
*/
|
|
62063
62132
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
62133
|
+
/**
|
|
62134
|
+
* Retrieve a user object for myself
|
|
62135
|
+
* @summary Retrieve a user object for myself
|
|
62136
|
+
* @param {*} [options] Override http request option.
|
|
62137
|
+
* @throws {RequiredError}
|
|
62138
|
+
*/
|
|
62139
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
62064
62140
|
/**
|
|
62065
62141
|
* Retrieve a workflow task
|
|
62066
62142
|
* @summary Retrieve a workflow task
|
|
@@ -62141,6 +62217,14 @@ export interface WorkflowApiInterface {
|
|
|
62141
62217
|
* @memberof WorkflowApiInterface
|
|
62142
62218
|
*/
|
|
62143
62219
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
62220
|
+
/**
|
|
62221
|
+
* Retrieve a user object for myself
|
|
62222
|
+
* @summary Retrieve a user object for myself
|
|
62223
|
+
* @param {*} [options] Override http request option.
|
|
62224
|
+
* @throws {RequiredError}
|
|
62225
|
+
* @memberof WorkflowApiInterface
|
|
62226
|
+
*/
|
|
62227
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
62144
62228
|
/**
|
|
62145
62229
|
* Retrieve a workflow task
|
|
62146
62230
|
* @summary Retrieve a workflow task
|
|
@@ -62228,6 +62312,14 @@ export declare class WorkflowApi extends BaseAPI implements WorkflowApiInterface
|
|
|
62228
62312
|
* @memberof WorkflowApi
|
|
62229
62313
|
*/
|
|
62230
62314
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
62315
|
+
/**
|
|
62316
|
+
* Retrieve a user object for myself
|
|
62317
|
+
* @summary Retrieve a user object for myself
|
|
62318
|
+
* @param {*} [options] Override http request option.
|
|
62319
|
+
* @throws {RequiredError}
|
|
62320
|
+
* @memberof WorkflowApi
|
|
62321
|
+
*/
|
|
62322
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
62231
62323
|
/**
|
|
62232
62324
|
* Retrieve a workflow task
|
|
62233
62325
|
* @summary Retrieve a workflow task
|
package/dist/api.js
CHANGED
|
@@ -45773,6 +45773,46 @@ var WorkflowApiFetchParamCreator = function (configuration) {
|
|
|
45773
45773
|
options: localVarRequestOptions,
|
|
45774
45774
|
};
|
|
45775
45775
|
},
|
|
45776
|
+
/**
|
|
45777
|
+
* Retrieve a user object for myself
|
|
45778
|
+
* @summary Retrieve a user object for myself
|
|
45779
|
+
* @param {*} [options] Override http request option.
|
|
45780
|
+
* @throws {RequiredError}
|
|
45781
|
+
*/
|
|
45782
|
+
getWorkflowMe: function (options) {
|
|
45783
|
+
if (options === void 0) { options = {}; }
|
|
45784
|
+
var localVarPath = "/workflow/me";
|
|
45785
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
45786
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
45787
|
+
var localVarHeaderParameter = {};
|
|
45788
|
+
var localVarQueryParameter = {};
|
|
45789
|
+
if (configuration && configuration.apiVersion) {
|
|
45790
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
45791
|
+
}
|
|
45792
|
+
// authentication ultraCartOauth required
|
|
45793
|
+
// oauth required
|
|
45794
|
+
if (configuration && configuration.accessToken) {
|
|
45795
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
45796
|
+
? configuration.accessToken("ultraCartOauth", ["workflow_read"])
|
|
45797
|
+
: configuration.accessToken;
|
|
45798
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
45799
|
+
}
|
|
45800
|
+
// authentication ultraCartSimpleApiKey required
|
|
45801
|
+
if (configuration && configuration.apiKey) {
|
|
45802
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
45803
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
45804
|
+
: configuration.apiKey;
|
|
45805
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
45806
|
+
}
|
|
45807
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
45808
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
45809
|
+
delete localVarUrlObj.search;
|
|
45810
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
45811
|
+
return {
|
|
45812
|
+
url: url.format(localVarUrlObj),
|
|
45813
|
+
options: localVarRequestOptions,
|
|
45814
|
+
};
|
|
45815
|
+
},
|
|
45776
45816
|
/**
|
|
45777
45817
|
* Retrieve a workflow task
|
|
45778
45818
|
* @summary Retrieve a workflow task
|
|
@@ -46134,6 +46174,27 @@ var WorkflowApiFp = function (configuration) {
|
|
|
46134
46174
|
});
|
|
46135
46175
|
};
|
|
46136
46176
|
},
|
|
46177
|
+
/**
|
|
46178
|
+
* Retrieve a user object for myself
|
|
46179
|
+
* @summary Retrieve a user object for myself
|
|
46180
|
+
* @param {*} [options] Override http request option.
|
|
46181
|
+
* @throws {RequiredError}
|
|
46182
|
+
*/
|
|
46183
|
+
getWorkflowMe: function (options) {
|
|
46184
|
+
var localVarFetchArgs = (0, exports.WorkflowApiFetchParamCreator)(configuration).getWorkflowMe(options);
|
|
46185
|
+
return function (fetch, basePath) {
|
|
46186
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
46187
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
46188
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
46189
|
+
if (response.status >= 200 && response.status < 300) {
|
|
46190
|
+
return response.json();
|
|
46191
|
+
}
|
|
46192
|
+
else {
|
|
46193
|
+
throw response;
|
|
46194
|
+
}
|
|
46195
|
+
});
|
|
46196
|
+
};
|
|
46197
|
+
},
|
|
46137
46198
|
/**
|
|
46138
46199
|
* Retrieve a workflow task
|
|
46139
46200
|
* @summary Retrieve a workflow task
|
|
@@ -46302,6 +46363,15 @@ var WorkflowApiFactory = function (configuration, fetch, basePath) {
|
|
|
46302
46363
|
getWorkflowAssignmentUsers: function (_limit, _offset, options) {
|
|
46303
46364
|
return (0, exports.WorkflowApiFp)(configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(fetch, basePath);
|
|
46304
46365
|
},
|
|
46366
|
+
/**
|
|
46367
|
+
* Retrieve a user object for myself
|
|
46368
|
+
* @summary Retrieve a user object for myself
|
|
46369
|
+
* @param {*} [options] Override http request option.
|
|
46370
|
+
* @throws {RequiredError}
|
|
46371
|
+
*/
|
|
46372
|
+
getWorkflowMe: function (options) {
|
|
46373
|
+
return (0, exports.WorkflowApiFp)(configuration).getWorkflowMe(options)(fetch, basePath);
|
|
46374
|
+
},
|
|
46305
46375
|
/**
|
|
46306
46376
|
* Retrieve a workflow task
|
|
46307
46377
|
* @summary Retrieve a workflow task
|
|
@@ -46405,6 +46475,16 @@ var WorkflowApi = /** @class */ (function (_super) {
|
|
|
46405
46475
|
WorkflowApi.prototype.getWorkflowAssignmentUsers = function (_limit, _offset, options) {
|
|
46406
46476
|
return (0, exports.WorkflowApiFp)(this.configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(this.fetch, this.basePath);
|
|
46407
46477
|
};
|
|
46478
|
+
/**
|
|
46479
|
+
* Retrieve a user object for myself
|
|
46480
|
+
* @summary Retrieve a user object for myself
|
|
46481
|
+
* @param {*} [options] Override http request option.
|
|
46482
|
+
* @throws {RequiredError}
|
|
46483
|
+
* @memberof WorkflowApi
|
|
46484
|
+
*/
|
|
46485
|
+
WorkflowApi.prototype.getWorkflowMe = function (options) {
|
|
46486
|
+
return (0, exports.WorkflowApiFp)(this.configuration).getWorkflowMe(options)(this.fetch, this.basePath);
|
|
46487
|
+
};
|
|
46408
46488
|
/**
|
|
46409
46489
|
* Retrieve a workflow task
|
|
46410
46490
|
* @summary Retrieve a workflow task
|