ultracart_rest_api_v2_typescript 3.10.175 → 3.10.178
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 +153 -1
- package/dist/api.d.ts +94 -1
- package/dist/api.js +81 -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.178
|
|
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.178 --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.178 | 01/03/2024 | workflow - add task_context field to task obj |
|
|
58
|
+
| 3.10.177 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
|
|
59
|
+
| 3.10.176 | 12/12/2023 | webhook - added event ruler property |
|
|
57
60
|
| 3.10.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
|
|
58
61
|
| 3.10.174 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
|
|
59
62
|
| 3.10.173 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
|
package/api.ts
CHANGED
|
@@ -40768,6 +40768,12 @@ export interface WebhookEventSubscription {
|
|
|
40768
40768
|
* @memberof WebhookEventSubscription
|
|
40769
40769
|
*/
|
|
40770
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;
|
|
40771
40777
|
/**
|
|
40772
40778
|
* The expand string for the notification object. See the individual resource _expand documentation for valid values.
|
|
40773
40779
|
* @type {string}
|
|
@@ -41471,6 +41477,12 @@ export interface WorkflowTask {
|
|
|
41471
41477
|
* @memberof WorkflowTask
|
|
41472
41478
|
*/
|
|
41473
41479
|
status?: WorkflowTask.StatusEnum;
|
|
41480
|
+
/**
|
|
41481
|
+
* User friendly string of the task context
|
|
41482
|
+
* @type {string}
|
|
41483
|
+
* @memberof WorkflowTask
|
|
41484
|
+
*/
|
|
41485
|
+
task_context?: string;
|
|
41474
41486
|
/**
|
|
41475
41487
|
* Task Details
|
|
41476
41488
|
* @type {string}
|
|
@@ -41504,7 +41516,8 @@ export namespace WorkflowTask {
|
|
|
41504
41516
|
Order = <any> 'order',
|
|
41505
41517
|
AutoOrder = <any> 'auto order',
|
|
41506
41518
|
Item = <any> 'item',
|
|
41507
|
-
CustomerProfile = <any> 'customer profile'
|
|
41519
|
+
CustomerProfile = <any> 'customer profile',
|
|
41520
|
+
Storefront = <any> 'storefront'
|
|
41508
41521
|
}
|
|
41509
41522
|
/**
|
|
41510
41523
|
* @export
|
|
@@ -41769,6 +41782,12 @@ export interface WorkflowTasksResponse {
|
|
|
41769
41782
|
* @memberof WorkflowTasksResponse
|
|
41770
41783
|
*/
|
|
41771
41784
|
success?: boolean;
|
|
41785
|
+
/**
|
|
41786
|
+
* User friendly string of the task context if querying for a specific object type/id
|
|
41787
|
+
* @type {string}
|
|
41788
|
+
* @memberof WorkflowTasksResponse
|
|
41789
|
+
*/
|
|
41790
|
+
task_context?: string;
|
|
41772
41791
|
/**
|
|
41773
41792
|
* tasks
|
|
41774
41793
|
* @type {Array<WorkflowTask>}
|
|
@@ -41809,6 +41828,44 @@ export interface WorkflowUser {
|
|
|
41809
41828
|
user_id?: number;
|
|
41810
41829
|
}
|
|
41811
41830
|
|
|
41831
|
+
/**
|
|
41832
|
+
*
|
|
41833
|
+
* @export
|
|
41834
|
+
* @interface WorkflowUserResponse
|
|
41835
|
+
*/
|
|
41836
|
+
export interface WorkflowUserResponse {
|
|
41837
|
+
/**
|
|
41838
|
+
*
|
|
41839
|
+
* @type {ModelError}
|
|
41840
|
+
* @memberof WorkflowUserResponse
|
|
41841
|
+
*/
|
|
41842
|
+
error?: ModelError;
|
|
41843
|
+
/**
|
|
41844
|
+
*
|
|
41845
|
+
* @type {ResponseMetadata}
|
|
41846
|
+
* @memberof WorkflowUserResponse
|
|
41847
|
+
*/
|
|
41848
|
+
metadata?: ResponseMetadata;
|
|
41849
|
+
/**
|
|
41850
|
+
* Indicates if API call was successful
|
|
41851
|
+
* @type {boolean}
|
|
41852
|
+
* @memberof WorkflowUserResponse
|
|
41853
|
+
*/
|
|
41854
|
+
success?: boolean;
|
|
41855
|
+
/**
|
|
41856
|
+
*
|
|
41857
|
+
* @type {WorkflowUser}
|
|
41858
|
+
* @memberof WorkflowUserResponse
|
|
41859
|
+
*/
|
|
41860
|
+
user?: WorkflowUser;
|
|
41861
|
+
/**
|
|
41862
|
+
*
|
|
41863
|
+
* @type {Warning}
|
|
41864
|
+
* @memberof WorkflowUserResponse
|
|
41865
|
+
*/
|
|
41866
|
+
warning?: Warning;
|
|
41867
|
+
}
|
|
41868
|
+
|
|
41812
41869
|
/**
|
|
41813
41870
|
*
|
|
41814
41871
|
* @export
|
|
@@ -94013,6 +94070,52 @@ export const WorkflowApiFetchParamCreator = function (configuration?: Configurat
|
|
|
94013
94070
|
options: localVarRequestOptions,
|
|
94014
94071
|
};
|
|
94015
94072
|
},
|
|
94073
|
+
/**
|
|
94074
|
+
* Retrieve a user object for myself
|
|
94075
|
+
* @summary Retrieve a user object for myself
|
|
94076
|
+
* @param {*} [options] Override http request option.
|
|
94077
|
+
* @throws {RequiredError}
|
|
94078
|
+
*/
|
|
94079
|
+
getWorkflowMe(options: any = {}): FetchArgs {
|
|
94080
|
+
const localVarPath = `/workflow/me`;
|
|
94081
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
94082
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
94083
|
+
const localVarHeaderParameter = {} as any;
|
|
94084
|
+
const localVarQueryParameter = {} as any;
|
|
94085
|
+
|
|
94086
|
+
if(configuration && configuration.apiVersion) {
|
|
94087
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
94088
|
+
}
|
|
94089
|
+
|
|
94090
|
+
|
|
94091
|
+
|
|
94092
|
+
// authentication ultraCartOauth required
|
|
94093
|
+
// oauth required
|
|
94094
|
+
if (configuration && configuration.accessToken) {
|
|
94095
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
94096
|
+
? configuration.accessToken("ultraCartOauth", ["workflow_read"])
|
|
94097
|
+
: configuration.accessToken;
|
|
94098
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
94099
|
+
}
|
|
94100
|
+
|
|
94101
|
+
// authentication ultraCartSimpleApiKey required
|
|
94102
|
+
if (configuration && configuration.apiKey) {
|
|
94103
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
94104
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
94105
|
+
: configuration.apiKey;
|
|
94106
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
94107
|
+
}
|
|
94108
|
+
|
|
94109
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
94110
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
94111
|
+
delete localVarUrlObj.search;
|
|
94112
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
94113
|
+
|
|
94114
|
+
return {
|
|
94115
|
+
url: url.format(localVarUrlObj),
|
|
94116
|
+
options: localVarRequestOptions,
|
|
94117
|
+
};
|
|
94118
|
+
},
|
|
94016
94119
|
/**
|
|
94017
94120
|
* Retrieve a workflow task
|
|
94018
94121
|
* @summary Retrieve a workflow task
|
|
@@ -94414,6 +94517,26 @@ export const WorkflowApiFp = function(configuration?: Configuration) {
|
|
|
94414
94517
|
});
|
|
94415
94518
|
};
|
|
94416
94519
|
},
|
|
94520
|
+
/**
|
|
94521
|
+
* Retrieve a user object for myself
|
|
94522
|
+
* @summary Retrieve a user object for myself
|
|
94523
|
+
* @param {*} [options] Override http request option.
|
|
94524
|
+
* @throws {RequiredError}
|
|
94525
|
+
*/
|
|
94526
|
+
getWorkflowMe(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowUserResponse> {
|
|
94527
|
+
const localVarFetchArgs = WorkflowApiFetchParamCreator(configuration).getWorkflowMe(options);
|
|
94528
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
94529
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
94530
|
+
|
|
94531
|
+
if (response.status >= 200 && response.status < 300) {
|
|
94532
|
+
return response.json();
|
|
94533
|
+
|
|
94534
|
+
} else {
|
|
94535
|
+
throw response;
|
|
94536
|
+
}
|
|
94537
|
+
});
|
|
94538
|
+
};
|
|
94539
|
+
},
|
|
94417
94540
|
/**
|
|
94418
94541
|
* Retrieve a workflow task
|
|
94419
94542
|
* @summary Retrieve a workflow task
|
|
@@ -94576,6 +94699,15 @@ export const WorkflowApiFactory = function (configuration?: Configuration, fetch
|
|
|
94576
94699
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any) {
|
|
94577
94700
|
return WorkflowApiFp(configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(fetch, basePath);
|
|
94578
94701
|
},
|
|
94702
|
+
/**
|
|
94703
|
+
* Retrieve a user object for myself
|
|
94704
|
+
* @summary Retrieve a user object for myself
|
|
94705
|
+
* @param {*} [options] Override http request option.
|
|
94706
|
+
* @throws {RequiredError}
|
|
94707
|
+
*/
|
|
94708
|
+
getWorkflowMe(options?: any) {
|
|
94709
|
+
return WorkflowApiFp(configuration).getWorkflowMe(options)(fetch, basePath);
|
|
94710
|
+
},
|
|
94579
94711
|
/**
|
|
94580
94712
|
* Retrieve a workflow task
|
|
94581
94713
|
* @summary Retrieve a workflow task
|
|
@@ -94672,6 +94804,15 @@ export interface WorkflowApiInterface {
|
|
|
94672
94804
|
*/
|
|
94673
94805
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
94674
94806
|
|
|
94807
|
+
/**
|
|
94808
|
+
* Retrieve a user object for myself
|
|
94809
|
+
* @summary Retrieve a user object for myself
|
|
94810
|
+
* @param {*} [options] Override http request option.
|
|
94811
|
+
* @throws {RequiredError}
|
|
94812
|
+
* @memberof WorkflowApiInterface
|
|
94813
|
+
*/
|
|
94814
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
94815
|
+
|
|
94675
94816
|
/**
|
|
94676
94817
|
* Retrieve a workflow task
|
|
94677
94818
|
* @summary Retrieve a workflow task
|
|
@@ -94772,6 +94913,17 @@ export class WorkflowApi extends BaseAPI implements WorkflowApiInterface {
|
|
|
94772
94913
|
return WorkflowApiFp(this.configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(this.fetch, this.basePath);
|
|
94773
94914
|
}
|
|
94774
94915
|
|
|
94916
|
+
/**
|
|
94917
|
+
* Retrieve a user object for myself
|
|
94918
|
+
* @summary Retrieve a user object for myself
|
|
94919
|
+
* @param {*} [options] Override http request option.
|
|
94920
|
+
* @throws {RequiredError}
|
|
94921
|
+
* @memberof WorkflowApi
|
|
94922
|
+
*/
|
|
94923
|
+
public getWorkflowMe(options?: any) {
|
|
94924
|
+
return WorkflowApiFp(this.configuration).getWorkflowMe(options)(this.fetch, this.basePath);
|
|
94925
|
+
}
|
|
94926
|
+
|
|
94775
94927
|
/**
|
|
94776
94928
|
* Retrieve a workflow task
|
|
94777
94929
|
* @summary Retrieve a workflow task
|
package/dist/api.d.ts
CHANGED
|
@@ -39906,6 +39906,12 @@ export interface WebhookEventSubscription {
|
|
|
39906
39906
|
* @memberof WebhookEventSubscription
|
|
39907
39907
|
*/
|
|
39908
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;
|
|
39909
39915
|
/**
|
|
39910
39916
|
* The expand string for the notification object. See the individual resource _expand documentation for valid values.
|
|
39911
39917
|
* @type {string}
|
|
@@ -40592,6 +40598,12 @@ export interface WorkflowTask {
|
|
|
40592
40598
|
* @memberof WorkflowTask
|
|
40593
40599
|
*/
|
|
40594
40600
|
status?: WorkflowTask.StatusEnum;
|
|
40601
|
+
/**
|
|
40602
|
+
* User friendly string of the task context
|
|
40603
|
+
* @type {string}
|
|
40604
|
+
* @memberof WorkflowTask
|
|
40605
|
+
*/
|
|
40606
|
+
task_context?: string;
|
|
40595
40607
|
/**
|
|
40596
40608
|
* Task Details
|
|
40597
40609
|
* @type {string}
|
|
@@ -40624,7 +40636,8 @@ export declare namespace WorkflowTask {
|
|
|
40624
40636
|
Order,
|
|
40625
40637
|
AutoOrder,
|
|
40626
40638
|
Item,
|
|
40627
|
-
CustomerProfile
|
|
40639
|
+
CustomerProfile,
|
|
40640
|
+
Storefront
|
|
40628
40641
|
}
|
|
40629
40642
|
/**
|
|
40630
40643
|
* @export
|
|
@@ -40884,6 +40897,12 @@ export interface WorkflowTasksResponse {
|
|
|
40884
40897
|
* @memberof WorkflowTasksResponse
|
|
40885
40898
|
*/
|
|
40886
40899
|
success?: boolean;
|
|
40900
|
+
/**
|
|
40901
|
+
* User friendly string of the task context if querying for a specific object type/id
|
|
40902
|
+
* @type {string}
|
|
40903
|
+
* @memberof WorkflowTasksResponse
|
|
40904
|
+
*/
|
|
40905
|
+
task_context?: string;
|
|
40887
40906
|
/**
|
|
40888
40907
|
* tasks
|
|
40889
40908
|
* @type {Array<WorkflowTask>}
|
|
@@ -40922,6 +40941,43 @@ export interface WorkflowUser {
|
|
|
40922
40941
|
*/
|
|
40923
40942
|
user_id?: number;
|
|
40924
40943
|
}
|
|
40944
|
+
/**
|
|
40945
|
+
*
|
|
40946
|
+
* @export
|
|
40947
|
+
* @interface WorkflowUserResponse
|
|
40948
|
+
*/
|
|
40949
|
+
export interface WorkflowUserResponse {
|
|
40950
|
+
/**
|
|
40951
|
+
*
|
|
40952
|
+
* @type {ModelError}
|
|
40953
|
+
* @memberof WorkflowUserResponse
|
|
40954
|
+
*/
|
|
40955
|
+
error?: ModelError;
|
|
40956
|
+
/**
|
|
40957
|
+
*
|
|
40958
|
+
* @type {ResponseMetadata}
|
|
40959
|
+
* @memberof WorkflowUserResponse
|
|
40960
|
+
*/
|
|
40961
|
+
metadata?: ResponseMetadata;
|
|
40962
|
+
/**
|
|
40963
|
+
* Indicates if API call was successful
|
|
40964
|
+
* @type {boolean}
|
|
40965
|
+
* @memberof WorkflowUserResponse
|
|
40966
|
+
*/
|
|
40967
|
+
success?: boolean;
|
|
40968
|
+
/**
|
|
40969
|
+
*
|
|
40970
|
+
* @type {WorkflowUser}
|
|
40971
|
+
* @memberof WorkflowUserResponse
|
|
40972
|
+
*/
|
|
40973
|
+
user?: WorkflowUser;
|
|
40974
|
+
/**
|
|
40975
|
+
*
|
|
40976
|
+
* @type {Warning}
|
|
40977
|
+
* @memberof WorkflowUserResponse
|
|
40978
|
+
*/
|
|
40979
|
+
warning?: Warning;
|
|
40980
|
+
}
|
|
40925
40981
|
/**
|
|
40926
40982
|
*
|
|
40927
40983
|
* @export
|
|
@@ -61919,6 +61975,13 @@ export declare const WorkflowApiFetchParamCreator: (configuration?: Configuratio
|
|
|
61919
61975
|
* @throws {RequiredError}
|
|
61920
61976
|
*/
|
|
61921
61977
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): FetchArgs;
|
|
61978
|
+
/**
|
|
61979
|
+
* Retrieve a user object for myself
|
|
61980
|
+
* @summary Retrieve a user object for myself
|
|
61981
|
+
* @param {*} [options] Override http request option.
|
|
61982
|
+
* @throws {RequiredError}
|
|
61983
|
+
*/
|
|
61984
|
+
getWorkflowMe(options?: any): FetchArgs;
|
|
61922
61985
|
/**
|
|
61923
61986
|
* Retrieve a workflow task
|
|
61924
61987
|
* @summary Retrieve a workflow task
|
|
@@ -61996,6 +62059,13 @@ export declare const WorkflowApiFp: (configuration?: Configuration) => {
|
|
|
61996
62059
|
* @throws {RequiredError}
|
|
61997
62060
|
*/
|
|
61998
62061
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowUsersResponse>;
|
|
62062
|
+
/**
|
|
62063
|
+
* Retrieve a user object for myself
|
|
62064
|
+
* @summary Retrieve a user object for myself
|
|
62065
|
+
* @param {*} [options] Override http request option.
|
|
62066
|
+
* @throws {RequiredError}
|
|
62067
|
+
*/
|
|
62068
|
+
getWorkflowMe(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<WorkflowUserResponse>;
|
|
61999
62069
|
/**
|
|
62000
62070
|
* Retrieve a workflow task
|
|
62001
62071
|
* @summary Retrieve a workflow task
|
|
@@ -62073,6 +62143,13 @@ export declare const WorkflowApiFactory: (configuration?: Configuration, fetch?:
|
|
|
62073
62143
|
* @throws {RequiredError}
|
|
62074
62144
|
*/
|
|
62075
62145
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
62146
|
+
/**
|
|
62147
|
+
* Retrieve a user object for myself
|
|
62148
|
+
* @summary Retrieve a user object for myself
|
|
62149
|
+
* @param {*} [options] Override http request option.
|
|
62150
|
+
* @throws {RequiredError}
|
|
62151
|
+
*/
|
|
62152
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
62076
62153
|
/**
|
|
62077
62154
|
* Retrieve a workflow task
|
|
62078
62155
|
* @summary Retrieve a workflow task
|
|
@@ -62153,6 +62230,14 @@ export interface WorkflowApiInterface {
|
|
|
62153
62230
|
* @memberof WorkflowApiInterface
|
|
62154
62231
|
*/
|
|
62155
62232
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
62233
|
+
/**
|
|
62234
|
+
* Retrieve a user object for myself
|
|
62235
|
+
* @summary Retrieve a user object for myself
|
|
62236
|
+
* @param {*} [options] Override http request option.
|
|
62237
|
+
* @throws {RequiredError}
|
|
62238
|
+
* @memberof WorkflowApiInterface
|
|
62239
|
+
*/
|
|
62240
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
62156
62241
|
/**
|
|
62157
62242
|
* Retrieve a workflow task
|
|
62158
62243
|
* @summary Retrieve a workflow task
|
|
@@ -62240,6 +62325,14 @@ export declare class WorkflowApi extends BaseAPI implements WorkflowApiInterface
|
|
|
62240
62325
|
* @memberof WorkflowApi
|
|
62241
62326
|
*/
|
|
62242
62327
|
getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
|
|
62328
|
+
/**
|
|
62329
|
+
* Retrieve a user object for myself
|
|
62330
|
+
* @summary Retrieve a user object for myself
|
|
62331
|
+
* @param {*} [options] Override http request option.
|
|
62332
|
+
* @throws {RequiredError}
|
|
62333
|
+
* @memberof WorkflowApi
|
|
62334
|
+
*/
|
|
62335
|
+
getWorkflowMe(options?: any): Promise<WorkflowUserResponse>;
|
|
62243
62336
|
/**
|
|
62244
62337
|
* Retrieve a workflow task
|
|
62245
62338
|
* @summary Retrieve a workflow task
|
package/dist/api.js
CHANGED
|
@@ -1592,6 +1592,7 @@ var WorkflowTask;
|
|
|
1592
1592
|
ObjectTypeEnum[ObjectTypeEnum["AutoOrder"] = 'auto order'] = "AutoOrder";
|
|
1593
1593
|
ObjectTypeEnum[ObjectTypeEnum["Item"] = 'item'] = "Item";
|
|
1594
1594
|
ObjectTypeEnum[ObjectTypeEnum["CustomerProfile"] = 'customer profile'] = "CustomerProfile";
|
|
1595
|
+
ObjectTypeEnum[ObjectTypeEnum["Storefront"] = 'storefront'] = "Storefront";
|
|
1595
1596
|
})(ObjectTypeEnum = WorkflowTask.ObjectTypeEnum || (WorkflowTask.ObjectTypeEnum = {}));
|
|
1596
1597
|
/**
|
|
1597
1598
|
* @export
|
|
@@ -45773,6 +45774,46 @@ var WorkflowApiFetchParamCreator = function (configuration) {
|
|
|
45773
45774
|
options: localVarRequestOptions,
|
|
45774
45775
|
};
|
|
45775
45776
|
},
|
|
45777
|
+
/**
|
|
45778
|
+
* Retrieve a user object for myself
|
|
45779
|
+
* @summary Retrieve a user object for myself
|
|
45780
|
+
* @param {*} [options] Override http request option.
|
|
45781
|
+
* @throws {RequiredError}
|
|
45782
|
+
*/
|
|
45783
|
+
getWorkflowMe: function (options) {
|
|
45784
|
+
if (options === void 0) { options = {}; }
|
|
45785
|
+
var localVarPath = "/workflow/me";
|
|
45786
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
45787
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
45788
|
+
var localVarHeaderParameter = {};
|
|
45789
|
+
var localVarQueryParameter = {};
|
|
45790
|
+
if (configuration && configuration.apiVersion) {
|
|
45791
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
45792
|
+
}
|
|
45793
|
+
// authentication ultraCartOauth required
|
|
45794
|
+
// oauth required
|
|
45795
|
+
if (configuration && configuration.accessToken) {
|
|
45796
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
45797
|
+
? configuration.accessToken("ultraCartOauth", ["workflow_read"])
|
|
45798
|
+
: configuration.accessToken;
|
|
45799
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
45800
|
+
}
|
|
45801
|
+
// authentication ultraCartSimpleApiKey required
|
|
45802
|
+
if (configuration && configuration.apiKey) {
|
|
45803
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
45804
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
45805
|
+
: configuration.apiKey;
|
|
45806
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
45807
|
+
}
|
|
45808
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
45809
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
45810
|
+
delete localVarUrlObj.search;
|
|
45811
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
45812
|
+
return {
|
|
45813
|
+
url: url.format(localVarUrlObj),
|
|
45814
|
+
options: localVarRequestOptions,
|
|
45815
|
+
};
|
|
45816
|
+
},
|
|
45776
45817
|
/**
|
|
45777
45818
|
* Retrieve a workflow task
|
|
45778
45819
|
* @summary Retrieve a workflow task
|
|
@@ -46134,6 +46175,27 @@ var WorkflowApiFp = function (configuration) {
|
|
|
46134
46175
|
});
|
|
46135
46176
|
};
|
|
46136
46177
|
},
|
|
46178
|
+
/**
|
|
46179
|
+
* Retrieve a user object for myself
|
|
46180
|
+
* @summary Retrieve a user object for myself
|
|
46181
|
+
* @param {*} [options] Override http request option.
|
|
46182
|
+
* @throws {RequiredError}
|
|
46183
|
+
*/
|
|
46184
|
+
getWorkflowMe: function (options) {
|
|
46185
|
+
var localVarFetchArgs = (0, exports.WorkflowApiFetchParamCreator)(configuration).getWorkflowMe(options);
|
|
46186
|
+
return function (fetch, basePath) {
|
|
46187
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
46188
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
46189
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
46190
|
+
if (response.status >= 200 && response.status < 300) {
|
|
46191
|
+
return response.json();
|
|
46192
|
+
}
|
|
46193
|
+
else {
|
|
46194
|
+
throw response;
|
|
46195
|
+
}
|
|
46196
|
+
});
|
|
46197
|
+
};
|
|
46198
|
+
},
|
|
46137
46199
|
/**
|
|
46138
46200
|
* Retrieve a workflow task
|
|
46139
46201
|
* @summary Retrieve a workflow task
|
|
@@ -46302,6 +46364,15 @@ var WorkflowApiFactory = function (configuration, fetch, basePath) {
|
|
|
46302
46364
|
getWorkflowAssignmentUsers: function (_limit, _offset, options) {
|
|
46303
46365
|
return (0, exports.WorkflowApiFp)(configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(fetch, basePath);
|
|
46304
46366
|
},
|
|
46367
|
+
/**
|
|
46368
|
+
* Retrieve a user object for myself
|
|
46369
|
+
* @summary Retrieve a user object for myself
|
|
46370
|
+
* @param {*} [options] Override http request option.
|
|
46371
|
+
* @throws {RequiredError}
|
|
46372
|
+
*/
|
|
46373
|
+
getWorkflowMe: function (options) {
|
|
46374
|
+
return (0, exports.WorkflowApiFp)(configuration).getWorkflowMe(options)(fetch, basePath);
|
|
46375
|
+
},
|
|
46305
46376
|
/**
|
|
46306
46377
|
* Retrieve a workflow task
|
|
46307
46378
|
* @summary Retrieve a workflow task
|
|
@@ -46405,6 +46476,16 @@ var WorkflowApi = /** @class */ (function (_super) {
|
|
|
46405
46476
|
WorkflowApi.prototype.getWorkflowAssignmentUsers = function (_limit, _offset, options) {
|
|
46406
46477
|
return (0, exports.WorkflowApiFp)(this.configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(this.fetch, this.basePath);
|
|
46407
46478
|
};
|
|
46479
|
+
/**
|
|
46480
|
+
* Retrieve a user object for myself
|
|
46481
|
+
* @summary Retrieve a user object for myself
|
|
46482
|
+
* @param {*} [options] Override http request option.
|
|
46483
|
+
* @throws {RequiredError}
|
|
46484
|
+
* @memberof WorkflowApi
|
|
46485
|
+
*/
|
|
46486
|
+
WorkflowApi.prototype.getWorkflowMe = function (options) {
|
|
46487
|
+
return (0, exports.WorkflowApiFp)(this.configuration).getWorkflowMe(options)(this.fetch, this.basePath);
|
|
46488
|
+
};
|
|
46408
46489
|
/**
|
|
46409
46490
|
* Retrieve a workflow task
|
|
46410
46491
|
* @summary Retrieve a workflow task
|