ultracart_rest_api_v2_typescript 3.10.175 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@3.10.175
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.175 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.177 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,8 @@ 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 |
57
59
  | 3.10.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
58
60
  | 3.10.174 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
59
61
  | 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}
@@ -41809,6 +41815,44 @@ export interface WorkflowUser {
41809
41815
  user_id?: number;
41810
41816
  }
41811
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
+
41812
41856
  /**
41813
41857
  *
41814
41858
  * @export
@@ -94013,6 +94057,52 @@ export const WorkflowApiFetchParamCreator = function (configuration?: Configurat
94013
94057
  options: localVarRequestOptions,
94014
94058
  };
94015
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
+ },
94016
94106
  /**
94017
94107
  * Retrieve a workflow task
94018
94108
  * @summary Retrieve a workflow task
@@ -94414,6 +94504,26 @@ export const WorkflowApiFp = function(configuration?: Configuration) {
94414
94504
  });
94415
94505
  };
94416
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
+ },
94417
94527
  /**
94418
94528
  * Retrieve a workflow task
94419
94529
  * @summary Retrieve a workflow task
@@ -94576,6 +94686,15 @@ export const WorkflowApiFactory = function (configuration?: Configuration, fetch
94576
94686
  getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any) {
94577
94687
  return WorkflowApiFp(configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(fetch, basePath);
94578
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
+ },
94579
94698
  /**
94580
94699
  * Retrieve a workflow task
94581
94700
  * @summary Retrieve a workflow task
@@ -94672,6 +94791,15 @@ export interface WorkflowApiInterface {
94672
94791
  */
94673
94792
  getWorkflowAssignmentUsers(_limit?: number, _offset?: number, options?: any): Promise<WorkflowUsersResponse>;
94674
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
+
94675
94803
  /**
94676
94804
  * Retrieve a workflow task
94677
94805
  * @summary Retrieve a workflow task
@@ -94772,6 +94900,17 @@ export class WorkflowApi extends BaseAPI implements WorkflowApiInterface {
94772
94900
  return WorkflowApiFp(this.configuration).getWorkflowAssignmentUsers(_limit, _offset, options)(this.fetch, this.basePath);
94773
94901
  }
94774
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
+
94775
94914
  /**
94776
94915
  * Retrieve a workflow task
94777
94916
  * @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}
@@ -40922,6 +40928,43 @@ export interface WorkflowUser {
40922
40928
  */
40923
40929
  user_id?: number;
40924
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
+ }
40925
40968
  /**
40926
40969
  *
40927
40970
  * @export
@@ -61919,6 +61962,13 @@ export declare const WorkflowApiFetchParamCreator: (configuration?: Configuratio
61919
61962
  * @throws {RequiredError}
61920
61963
  */
61921
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;
61922
61972
  /**
61923
61973
  * Retrieve a workflow task
61924
61974
  * @summary Retrieve a workflow task
@@ -61996,6 +62046,13 @@ export declare const WorkflowApiFp: (configuration?: Configuration) => {
61996
62046
  * @throws {RequiredError}
61997
62047
  */
61998
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>;
61999
62056
  /**
62000
62057
  * Retrieve a workflow task
62001
62058
  * @summary Retrieve a workflow task
@@ -62073,6 +62130,13 @@ export declare const WorkflowApiFactory: (configuration?: Configuration, fetch?:
62073
62130
  * @throws {RequiredError}
62074
62131
  */
62075
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>;
62076
62140
  /**
62077
62141
  * Retrieve a workflow task
62078
62142
  * @summary Retrieve a workflow task
@@ -62153,6 +62217,14 @@ export interface WorkflowApiInterface {
62153
62217
  * @memberof WorkflowApiInterface
62154
62218
  */
62155
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>;
62156
62228
  /**
62157
62229
  * Retrieve a workflow task
62158
62230
  * @summary Retrieve a workflow task
@@ -62240,6 +62312,14 @@ export declare class WorkflowApi extends BaseAPI implements WorkflowApiInterface
62240
62312
  * @memberof WorkflowApi
62241
62313
  */
62242
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>;
62243
62323
  /**
62244
62324
  * Retrieve a workflow task
62245
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.175",
3
+ "version": "3.10.177",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [