ultracart_rest_api_v2_typescript 3.10.43 → 3.10.44

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.43
1
+ ## ultracart_rest_api_v2_typescript@3.10.44
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.43 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.44 --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.44 | 09/07/2022 | sf comms - using aws event ruler for bigquery segmentation validation |
57
58
  | 3.10.43 | 09/02/2022 | customer editor added loyal ledger descriptions |
58
59
  | 3.10.42 | 08/30/2022 | storefront comm fields for sms configuration |
59
60
  | 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
package/api.ts CHANGED
@@ -29291,6 +29291,40 @@ export interface ResultSet {
29291
29291
  total_records?: number;
29292
29292
  }
29293
29293
 
29294
+ /**
29295
+ *
29296
+ * @export
29297
+ * @interface RulerValidationRequest
29298
+ */
29299
+ export interface RulerValidationRequest {
29300
+ /**
29301
+ *
29302
+ * @type {string}
29303
+ * @memberof RulerValidationRequest
29304
+ */
29305
+ ruler?: string;
29306
+ }
29307
+
29308
+ /**
29309
+ *
29310
+ * @export
29311
+ * @interface RulerValidationResponse
29312
+ */
29313
+ export interface RulerValidationResponse {
29314
+ /**
29315
+ *
29316
+ * @type {string}
29317
+ * @memberof RulerValidationResponse
29318
+ */
29319
+ error_message?: string;
29320
+ /**
29321
+ *
29322
+ * @type {boolean}
29323
+ * @memberof RulerValidationResponse
29324
+ */
29325
+ valid?: boolean;
29326
+ }
29327
+
29294
29328
  /**
29295
29329
  *
29296
29330
  * @export
@@ -63846,6 +63880,69 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
63846
63880
  const needsSerialization = (<any>"Twilio" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
63847
63881
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(twilio || {}) : (twilio || "");
63848
63882
 
63883
+ return {
63884
+ url: url.format(localVarUrlObj),
63885
+ options: localVarRequestOptions,
63886
+ };
63887
+ },
63888
+ /**
63889
+ *
63890
+ * @summary Validate AWS Event Ruler
63891
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
63892
+ * @param {*} [options] Override http request option.
63893
+ * @throws {RequiredError}
63894
+ */
63895
+ validateRuler(ruler_validate_request: RulerValidationRequest, options: any = {}): FetchArgs {
63896
+ // verify required parameter 'ruler_validate_request' is not null or undefined
63897
+ if (ruler_validate_request === null || ruler_validate_request === undefined) {
63898
+ throw new RequiredError('ruler_validate_request','Required parameter ruler_validate_request was null or undefined when calling validateRuler.');
63899
+ }
63900
+ const localVarPath = `/storefront/ruler/validate`;
63901
+ const localVarUrlObj = url.parse(localVarPath, true);
63902
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
63903
+ const localVarHeaderParameter = {} as any;
63904
+ const localVarQueryParameter = {} as any;
63905
+
63906
+ if(configuration && configuration.apiVersion) {
63907
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
63908
+ }
63909
+
63910
+
63911
+
63912
+ // authentication ultraCartBrowserApiKey required
63913
+ if (configuration && configuration.apiKey) {
63914
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
63915
+ ? configuration.apiKey("x-ultracart-browser-key")
63916
+ : configuration.apiKey;
63917
+ localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
63918
+ }
63919
+
63920
+ // authentication ultraCartOauth required
63921
+ // oauth required
63922
+ if (configuration && configuration.accessToken) {
63923
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
63924
+ ? configuration.accessToken("ultraCartOauth", ["storefront_write"])
63925
+ : configuration.accessToken;
63926
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
63927
+ }
63928
+
63929
+ // authentication ultraCartSimpleApiKey required
63930
+ if (configuration && configuration.apiKey) {
63931
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
63932
+ ? configuration.apiKey("x-ultracart-simple-key")
63933
+ : configuration.apiKey;
63934
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
63935
+ }
63936
+
63937
+ localVarHeaderParameter['Content-Type'] = 'application/json';
63938
+
63939
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
63940
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
63941
+ delete localVarUrlObj.search;
63942
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
63943
+ const needsSerialization = (<any>"RulerValidationRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
63944
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(ruler_validate_request || {}) : (ruler_validate_request || "");
63945
+
63849
63946
  return {
63850
63947
  url: url.format(localVarUrlObj),
63851
63948
  options: localVarRequestOptions,
@@ -67489,6 +67586,27 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
67489
67586
  });
67490
67587
  };
67491
67588
  },
67589
+ /**
67590
+ *
67591
+ * @summary Validate AWS Event Ruler
67592
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
67593
+ * @param {*} [options] Override http request option.
67594
+ * @throws {RequiredError}
67595
+ */
67596
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RulerValidationResponse> {
67597
+ const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).validateRuler(ruler_validate_request, options);
67598
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
67599
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
67600
+
67601
+ if (response.status >= 200 && response.status < 300) {
67602
+ return response.json();
67603
+
67604
+ } else {
67605
+ throw response;
67606
+ }
67607
+ });
67608
+ };
67609
+ },
67492
67610
  }
67493
67611
  };
67494
67612
 
@@ -69323,6 +69441,16 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
69323
69441
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any) {
69324
69442
  return StorefrontApiFp(configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(fetch, basePath);
69325
69443
  },
69444
+ /**
69445
+ *
69446
+ * @summary Validate AWS Event Ruler
69447
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
69448
+ * @param {*} [options] Override http request option.
69449
+ * @throws {RequiredError}
69450
+ */
69451
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any) {
69452
+ return StorefrontApiFp(configuration).validateRuler(ruler_validate_request, options)(fetch, basePath);
69453
+ },
69326
69454
  };
69327
69455
  };
69328
69456
 
@@ -71157,6 +71285,16 @@ export interface StorefrontApiInterface {
71157
71285
  */
71158
71286
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
71159
71287
 
71288
+ /**
71289
+ *
71290
+ * @summary Validate AWS Event Ruler
71291
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
71292
+ * @param {*} [options] Override http request option.
71293
+ * @throws {RequiredError}
71294
+ * @memberof StorefrontApiInterface
71295
+ */
71296
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
71297
+
71160
71298
  }
71161
71299
 
71162
71300
  /**
@@ -73319,6 +73457,18 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
73319
73457
  return StorefrontApiFp(this.configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(this.fetch, this.basePath);
73320
73458
  }
73321
73459
 
73460
+ /**
73461
+ *
73462
+ * @summary Validate AWS Event Ruler
73463
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
73464
+ * @param {*} [options] Override http request option.
73465
+ * @throws {RequiredError}
73466
+ * @memberof StorefrontApi
73467
+ */
73468
+ public validateRuler(ruler_validate_request: RulerValidationRequest, options?: any) {
73469
+ return StorefrontApiFp(this.configuration).validateRuler(ruler_validate_request, options)(this.fetch, this.basePath);
73470
+ }
73471
+
73322
73472
  }
73323
73473
 
73324
73474
  /**
package/dist/api.d.ts CHANGED
@@ -28677,6 +28677,38 @@ export interface ResultSet {
28677
28677
  */
28678
28678
  total_records?: number;
28679
28679
  }
28680
+ /**
28681
+ *
28682
+ * @export
28683
+ * @interface RulerValidationRequest
28684
+ */
28685
+ export interface RulerValidationRequest {
28686
+ /**
28687
+ *
28688
+ * @type {string}
28689
+ * @memberof RulerValidationRequest
28690
+ */
28691
+ ruler?: string;
28692
+ }
28693
+ /**
28694
+ *
28695
+ * @export
28696
+ * @interface RulerValidationResponse
28697
+ */
28698
+ export interface RulerValidationResponse {
28699
+ /**
28700
+ *
28701
+ * @type {string}
28702
+ * @memberof RulerValidationResponse
28703
+ */
28704
+ error_message?: string;
28705
+ /**
28706
+ *
28707
+ * @type {boolean}
28708
+ * @memberof RulerValidationResponse
28709
+ */
28710
+ valid?: boolean;
28711
+ }
28680
28712
  /**
28681
28713
  *
28682
28714
  * @export
@@ -43127,6 +43159,14 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
43127
43159
  * @throws {RequiredError}
43128
43160
  */
43129
43161
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): FetchArgs;
43162
+ /**
43163
+ *
43164
+ * @summary Validate AWS Event Ruler
43165
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
43166
+ * @param {*} [options] Override http request option.
43167
+ * @throws {RequiredError}
43168
+ */
43169
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): FetchArgs;
43130
43170
  };
43131
43171
  /**
43132
43172
  * StorefrontApi - functional programming interface
@@ -44630,6 +44670,14 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
44630
44670
  * @throws {RequiredError}
44631
44671
  */
44632
44672
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<TwilioResponse>;
44673
+ /**
44674
+ *
44675
+ * @summary Validate AWS Event Ruler
44676
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
44677
+ * @param {*} [options] Override http request option.
44678
+ * @throws {RequiredError}
44679
+ */
44680
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RulerValidationResponse>;
44633
44681
  };
44634
44682
  /**
44635
44683
  * StorefrontApi - factory interface
@@ -46133,6 +46181,14 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
46133
46181
  * @throws {RequiredError}
46134
46182
  */
46135
46183
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
46184
+ /**
46185
+ *
46186
+ * @summary Validate AWS Event Ruler
46187
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
46188
+ * @param {*} [options] Override http request option.
46189
+ * @throws {RequiredError}
46190
+ */
46191
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
46136
46192
  };
46137
46193
  /**
46138
46194
  * StorefrontApi - interface
@@ -47801,6 +47857,15 @@ export interface StorefrontApiInterface {
47801
47857
  * @memberof StorefrontApiInterface
47802
47858
  */
47803
47859
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
47860
+ /**
47861
+ *
47862
+ * @summary Validate AWS Event Ruler
47863
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
47864
+ * @param {*} [options] Override http request option.
47865
+ * @throws {RequiredError}
47866
+ * @memberof StorefrontApiInterface
47867
+ */
47868
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
47804
47869
  }
47805
47870
  /**
47806
47871
  * StorefrontApi - object-oriented interface
@@ -49470,6 +49535,15 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
49470
49535
  * @memberof StorefrontApi
49471
49536
  */
49472
49537
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
49538
+ /**
49539
+ *
49540
+ * @summary Validate AWS Event Ruler
49541
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
49542
+ * @param {*} [options] Override http request option.
49543
+ * @throws {RequiredError}
49544
+ * @memberof StorefrontApi
49545
+ */
49546
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
49473
49547
  }
49474
49548
  /**
49475
49549
  * TaxApi - fetch parameter creator
package/dist/api.js CHANGED
@@ -26156,6 +26156,61 @@ var StorefrontApiFetchParamCreator = function (configuration) {
26156
26156
  options: localVarRequestOptions,
26157
26157
  };
26158
26158
  },
26159
+ /**
26160
+ *
26161
+ * @summary Validate AWS Event Ruler
26162
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
26163
+ * @param {*} [options] Override http request option.
26164
+ * @throws {RequiredError}
26165
+ */
26166
+ validateRuler: function (ruler_validate_request, options) {
26167
+ if (options === void 0) { options = {}; }
26168
+ // verify required parameter 'ruler_validate_request' is not null or undefined
26169
+ if (ruler_validate_request === null || ruler_validate_request === undefined) {
26170
+ throw new RequiredError('ruler_validate_request', 'Required parameter ruler_validate_request was null or undefined when calling validateRuler.');
26171
+ }
26172
+ var localVarPath = "/storefront/ruler/validate";
26173
+ var localVarUrlObj = url.parse(localVarPath, true);
26174
+ var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
26175
+ var localVarHeaderParameter = {};
26176
+ var localVarQueryParameter = {};
26177
+ if (configuration && configuration.apiVersion) {
26178
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
26179
+ }
26180
+ // authentication ultraCartBrowserApiKey required
26181
+ if (configuration && configuration.apiKey) {
26182
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
26183
+ ? configuration.apiKey("x-ultracart-browser-key")
26184
+ : configuration.apiKey;
26185
+ localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
26186
+ }
26187
+ // authentication ultraCartOauth required
26188
+ // oauth required
26189
+ if (configuration && configuration.accessToken) {
26190
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
26191
+ ? configuration.accessToken("ultraCartOauth", ["storefront_write"])
26192
+ : configuration.accessToken;
26193
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
26194
+ }
26195
+ // authentication ultraCartSimpleApiKey required
26196
+ if (configuration && configuration.apiKey) {
26197
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
26198
+ ? configuration.apiKey("x-ultracart-simple-key")
26199
+ : configuration.apiKey;
26200
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
26201
+ }
26202
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26203
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
26204
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
26205
+ delete localVarUrlObj.search;
26206
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
26207
+ var needsSerialization = ("RulerValidationRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
26208
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(ruler_validate_request || {}) : (ruler_validate_request || "");
26209
+ return {
26210
+ url: url.format(localVarUrlObj),
26211
+ options: localVarRequestOptions,
26212
+ };
26213
+ },
26159
26214
  };
26160
26215
  };
26161
26216
  exports.StorefrontApiFetchParamCreator = StorefrontApiFetchParamCreator;
@@ -29958,6 +30013,28 @@ var StorefrontApiFp = function (configuration) {
29958
30013
  });
29959
30014
  };
29960
30015
  },
30016
+ /**
30017
+ *
30018
+ * @summary Validate AWS Event Ruler
30019
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
30020
+ * @param {*} [options] Override http request option.
30021
+ * @throws {RequiredError}
30022
+ */
30023
+ validateRuler: function (ruler_validate_request, options) {
30024
+ var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).validateRuler(ruler_validate_request, options);
30025
+ return function (fetch, basePath) {
30026
+ if (fetch === void 0) { fetch = portableFetch; }
30027
+ if (basePath === void 0) { basePath = BASE_PATH; }
30028
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
30029
+ if (response.status >= 200 && response.status < 300) {
30030
+ return response.json();
30031
+ }
30032
+ else {
30033
+ throw response;
30034
+ }
30035
+ });
30036
+ };
30037
+ },
29961
30038
  };
29962
30039
  };
29963
30040
  exports.StorefrontApiFp = StorefrontApiFp;
@@ -31792,6 +31869,16 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
31792
31869
  updateTwilioAccount: function (esp_twilio_uuid, twilio, options) {
31793
31870
  return (0, exports.StorefrontApiFp)(configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(fetch, basePath);
31794
31871
  },
31872
+ /**
31873
+ *
31874
+ * @summary Validate AWS Event Ruler
31875
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
31876
+ * @param {*} [options] Override http request option.
31877
+ * @throws {RequiredError}
31878
+ */
31879
+ validateRuler: function (ruler_validate_request, options) {
31880
+ return (0, exports.StorefrontApiFp)(configuration).validateRuler(ruler_validate_request, options)(fetch, basePath);
31881
+ },
31795
31882
  };
31796
31883
  };
31797
31884
  exports.StorefrontApiFactory = StorefrontApiFactory;
@@ -33795,6 +33882,17 @@ var StorefrontApi = /** @class */ (function (_super) {
33795
33882
  StorefrontApi.prototype.updateTwilioAccount = function (esp_twilio_uuid, twilio, options) {
33796
33883
  return (0, exports.StorefrontApiFp)(this.configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(this.fetch, this.basePath);
33797
33884
  };
33885
+ /**
33886
+ *
33887
+ * @summary Validate AWS Event Ruler
33888
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
33889
+ * @param {*} [options] Override http request option.
33890
+ * @throws {RequiredError}
33891
+ * @memberof StorefrontApi
33892
+ */
33893
+ StorefrontApi.prototype.validateRuler = function (ruler_validate_request, options) {
33894
+ return (0, exports.StorefrontApiFp)(this.configuration).validateRuler(ruler_validate_request, options)(this.fetch, this.basePath);
33895
+ };
33798
33896
  return StorefrontApi;
33799
33897
  }(BaseAPI));
33800
33898
  exports.StorefrontApi = StorefrontApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.43",
3
+ "version": "3.10.44",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [