ultracart_rest_api_v2_typescript 3.10.43 → 3.10.46

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.46
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.46 --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.46 | 09/13/2022 | storefront comms - postcard tracking |
58
+ | 3.10.45 | 09/12/2022 | storefront comm - send back reviews.io configured flag on getEmailSettings |
59
+ | 3.10.44 | 09/07/2022 | sf comms - using aws event ruler for bigquery segmentation validation |
57
60
  | 3.10.43 | 09/02/2022 | customer editor added loyal ledger descriptions |
58
61
  | 3.10.42 | 08/30/2022 | storefront comm fields for sms configuration |
59
62
  | 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
package/api.ts CHANGED
@@ -16008,6 +16008,202 @@ export interface EmailPostcardStat {
16008
16008
  view_count_formatted?: string;
16009
16009
  }
16010
16010
 
16011
+ /**
16012
+ *
16013
+ * @export
16014
+ * @interface EmailPostcardTracking
16015
+ */
16016
+ export interface EmailPostcardTracking {
16017
+ /**
16018
+ *
16019
+ * @type {string}
16020
+ * @memberof EmailPostcardTracking
16021
+ */
16022
+ commseq_postcard_uuid?: string;
16023
+ /**
16024
+ *
16025
+ * @type {string}
16026
+ * @memberof EmailPostcardTracking
16027
+ */
16028
+ commseq_step_uuid?: string;
16029
+ /**
16030
+ *
16031
+ * @type {string}
16032
+ * @memberof EmailPostcardTracking
16033
+ */
16034
+ commseq_uuid?: string;
16035
+ /**
16036
+ * Conversion date time.
16037
+ * @type {string}
16038
+ * @memberof EmailPostcardTracking
16039
+ */
16040
+ conversion_dts?: string;
16041
+ /**
16042
+ *
16043
+ * @type {number}
16044
+ * @memberof EmailPostcardTracking
16045
+ */
16046
+ cost?: number;
16047
+ /**
16048
+ *
16049
+ * @type {string}
16050
+ * @memberof EmailPostcardTracking
16051
+ */
16052
+ customer_uuid?: string;
16053
+ /**
16054
+ * Delivered date time.
16055
+ * @type {string}
16056
+ * @memberof EmailPostcardTracking
16057
+ */
16058
+ delivered_dts?: string;
16059
+ /**
16060
+ *
16061
+ * @type {string}
16062
+ * @memberof EmailPostcardTracking
16063
+ */
16064
+ from_address_line1?: string;
16065
+ /**
16066
+ *
16067
+ * @type {string}
16068
+ * @memberof EmailPostcardTracking
16069
+ */
16070
+ from_address_line2?: string;
16071
+ /**
16072
+ *
16073
+ * @type {string}
16074
+ * @memberof EmailPostcardTracking
16075
+ */
16076
+ from_city?: string;
16077
+ /**
16078
+ *
16079
+ * @type {string}
16080
+ * @memberof EmailPostcardTracking
16081
+ */
16082
+ from_name?: string;
16083
+ /**
16084
+ *
16085
+ * @type {string}
16086
+ * @memberof EmailPostcardTracking
16087
+ */
16088
+ from_state?: string;
16089
+ /**
16090
+ *
16091
+ * @type {string}
16092
+ * @memberof EmailPostcardTracking
16093
+ */
16094
+ from_zip?: string;
16095
+ /**
16096
+ * Mailed date time.
16097
+ * @type {string}
16098
+ * @memberof EmailPostcardTracking
16099
+ */
16100
+ mailed_dts?: string;
16101
+ /**
16102
+ *
16103
+ * @type {string}
16104
+ * @memberof EmailPostcardTracking
16105
+ */
16106
+ order_id?: string;
16107
+ /**
16108
+ *
16109
+ * @type {string}
16110
+ * @memberof EmailPostcardTracking
16111
+ */
16112
+ postcard_tracking_uuid?: string;
16113
+ /**
16114
+ *
16115
+ * @type {string}
16116
+ * @memberof EmailPostcardTracking
16117
+ */
16118
+ status?: string;
16119
+ /**
16120
+ * Submit date time.
16121
+ * @type {string}
16122
+ * @memberof EmailPostcardTracking
16123
+ */
16124
+ submit_dts?: string;
16125
+ /**
16126
+ *
16127
+ * @type {string}
16128
+ * @memberof EmailPostcardTracking
16129
+ */
16130
+ to_address_line1?: string;
16131
+ /**
16132
+ *
16133
+ * @type {string}
16134
+ * @memberof EmailPostcardTracking
16135
+ */
16136
+ to_address_line2?: string;
16137
+ /**
16138
+ *
16139
+ * @type {string}
16140
+ * @memberof EmailPostcardTracking
16141
+ */
16142
+ to_city?: string;
16143
+ /**
16144
+ *
16145
+ * @type {string}
16146
+ * @memberof EmailPostcardTracking
16147
+ */
16148
+ to_name?: string;
16149
+ /**
16150
+ *
16151
+ * @type {string}
16152
+ * @memberof EmailPostcardTracking
16153
+ */
16154
+ to_state?: string;
16155
+ /**
16156
+ *
16157
+ * @type {string}
16158
+ * @memberof EmailPostcardTracking
16159
+ */
16160
+ to_zip?: string;
16161
+ /**
16162
+ *
16163
+ * @type {string}
16164
+ * @memberof EmailPostcardTracking
16165
+ */
16166
+ tracking_description?: string;
16167
+ }
16168
+
16169
+ /**
16170
+ *
16171
+ * @export
16172
+ * @interface EmailPostcardTrackingResponse
16173
+ */
16174
+ export interface EmailPostcardTrackingResponse {
16175
+ /**
16176
+ *
16177
+ * @type {ModelError}
16178
+ * @memberof EmailPostcardTrackingResponse
16179
+ */
16180
+ error?: ModelError;
16181
+ /**
16182
+ *
16183
+ * @type {ResponseMetadata}
16184
+ * @memberof EmailPostcardTrackingResponse
16185
+ */
16186
+ metadata?: ResponseMetadata;
16187
+ /**
16188
+ * Indicates if API call was successful
16189
+ * @type {boolean}
16190
+ * @memberof EmailPostcardTrackingResponse
16191
+ */
16192
+ success?: boolean;
16193
+ /**
16194
+ *
16195
+ * @type {EmailPostcardTracking}
16196
+ * @memberof EmailPostcardTrackingResponse
16197
+ */
16198
+ tracking?: EmailPostcardTracking;
16199
+ /**
16200
+ *
16201
+ * @type {Warning}
16202
+ * @memberof EmailPostcardTrackingResponse
16203
+ */
16204
+ warning?: Warning;
16205
+ }
16206
+
16011
16207
  /**
16012
16208
  *
16013
16209
  * @export
@@ -16518,6 +16714,12 @@ export interface EmailSettings {
16518
16714
  * @memberof EmailSettings
16519
16715
  */
16520
16716
  postcard_from_state?: string;
16717
+ /**
16718
+ * True if the Reviews.io integration is configured
16719
+ * @type {boolean}
16720
+ * @memberof EmailSettings
16721
+ */
16722
+ reviews_io_configured?: boolean;
16521
16723
  /**
16522
16724
  *
16523
16725
  * @type {string}
@@ -29291,6 +29493,40 @@ export interface ResultSet {
29291
29493
  total_records?: number;
29292
29494
  }
29293
29495
 
29496
+ /**
29497
+ *
29498
+ * @export
29499
+ * @interface RulerValidationRequest
29500
+ */
29501
+ export interface RulerValidationRequest {
29502
+ /**
29503
+ *
29504
+ * @type {string}
29505
+ * @memberof RulerValidationRequest
29506
+ */
29507
+ ruler?: string;
29508
+ }
29509
+
29510
+ /**
29511
+ *
29512
+ * @export
29513
+ * @interface RulerValidationResponse
29514
+ */
29515
+ export interface RulerValidationResponse {
29516
+ /**
29517
+ *
29518
+ * @type {string}
29519
+ * @memberof RulerValidationResponse
29520
+ */
29521
+ error_message?: string;
29522
+ /**
29523
+ *
29524
+ * @type {boolean}
29525
+ * @memberof RulerValidationResponse
29526
+ */
29527
+ valid?: boolean;
29528
+ }
29529
+
29294
29530
  /**
29295
29531
  *
29296
29532
  * @export
@@ -55491,6 +55727,72 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
55491
55727
  options: localVarRequestOptions,
55492
55728
  };
55493
55729
  },
55730
+ /**
55731
+ *
55732
+ * @summary Get email communication postcard tracking
55733
+ * @param {number} storefront_oid
55734
+ * @param {string} commseq_postcard_uuid
55735
+ * @param {*} [options] Override http request option.
55736
+ * @throws {RequiredError}
55737
+ */
55738
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options: any = {}): FetchArgs {
55739
+ // verify required parameter 'storefront_oid' is not null or undefined
55740
+ if (storefront_oid === null || storefront_oid === undefined) {
55741
+ throw new RequiredError('storefront_oid','Required parameter storefront_oid was null or undefined when calling getEmailCommseqPostcardTracking.');
55742
+ }
55743
+ // verify required parameter 'commseq_postcard_uuid' is not null or undefined
55744
+ if (commseq_postcard_uuid === null || commseq_postcard_uuid === undefined) {
55745
+ throw new RequiredError('commseq_postcard_uuid','Required parameter commseq_postcard_uuid was null or undefined when calling getEmailCommseqPostcardTracking.');
55746
+ }
55747
+ const localVarPath = `/storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/tracking`
55748
+ .replace(`{${"storefront_oid"}}`, encodeURIComponent(String(storefront_oid)))
55749
+ .replace(`{${"commseq_postcard_uuid"}}`, encodeURIComponent(String(commseq_postcard_uuid)));
55750
+ const localVarUrlObj = url.parse(localVarPath, true);
55751
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
55752
+ const localVarHeaderParameter = {} as any;
55753
+ const localVarQueryParameter = {} as any;
55754
+
55755
+ if(configuration && configuration.apiVersion) {
55756
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
55757
+ }
55758
+
55759
+
55760
+
55761
+ // authentication ultraCartBrowserApiKey required
55762
+ if (configuration && configuration.apiKey) {
55763
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
55764
+ ? configuration.apiKey("x-ultracart-browser-key")
55765
+ : configuration.apiKey;
55766
+ localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
55767
+ }
55768
+
55769
+ // authentication ultraCartOauth required
55770
+ // oauth required
55771
+ if (configuration && configuration.accessToken) {
55772
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
55773
+ ? configuration.accessToken("ultraCartOauth", ["storefront_read"])
55774
+ : configuration.accessToken;
55775
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
55776
+ }
55777
+
55778
+ // authentication ultraCartSimpleApiKey required
55779
+ if (configuration && configuration.apiKey) {
55780
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
55781
+ ? configuration.apiKey("x-ultracart-simple-key")
55782
+ : configuration.apiKey;
55783
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
55784
+ }
55785
+
55786
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
55787
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
55788
+ delete localVarUrlObj.search;
55789
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
55790
+
55791
+ return {
55792
+ url: url.format(localVarUrlObj),
55793
+ options: localVarRequestOptions,
55794
+ };
55795
+ },
55494
55796
  /**
55495
55797
  *
55496
55798
  * @summary Get communication sequence stats overall
@@ -63846,6 +64148,69 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
63846
64148
  const needsSerialization = (<any>"Twilio" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
63847
64149
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(twilio || {}) : (twilio || "");
63848
64150
 
64151
+ return {
64152
+ url: url.format(localVarUrlObj),
64153
+ options: localVarRequestOptions,
64154
+ };
64155
+ },
64156
+ /**
64157
+ *
64158
+ * @summary Validate AWS Event Ruler
64159
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
64160
+ * @param {*} [options] Override http request option.
64161
+ * @throws {RequiredError}
64162
+ */
64163
+ validateRuler(ruler_validate_request: RulerValidationRequest, options: any = {}): FetchArgs {
64164
+ // verify required parameter 'ruler_validate_request' is not null or undefined
64165
+ if (ruler_validate_request === null || ruler_validate_request === undefined) {
64166
+ throw new RequiredError('ruler_validate_request','Required parameter ruler_validate_request was null or undefined when calling validateRuler.');
64167
+ }
64168
+ const localVarPath = `/storefront/ruler/validate`;
64169
+ const localVarUrlObj = url.parse(localVarPath, true);
64170
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
64171
+ const localVarHeaderParameter = {} as any;
64172
+ const localVarQueryParameter = {} as any;
64173
+
64174
+ if(configuration && configuration.apiVersion) {
64175
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
64176
+ }
64177
+
64178
+
64179
+
64180
+ // authentication ultraCartBrowserApiKey required
64181
+ if (configuration && configuration.apiKey) {
64182
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
64183
+ ? configuration.apiKey("x-ultracart-browser-key")
64184
+ : configuration.apiKey;
64185
+ localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
64186
+ }
64187
+
64188
+ // authentication ultraCartOauth required
64189
+ // oauth required
64190
+ if (configuration && configuration.accessToken) {
64191
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
64192
+ ? configuration.accessToken("ultraCartOauth", ["storefront_write"])
64193
+ : configuration.accessToken;
64194
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
64195
+ }
64196
+
64197
+ // authentication ultraCartSimpleApiKey required
64198
+ if (configuration && configuration.apiKey) {
64199
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
64200
+ ? configuration.apiKey("x-ultracart-simple-key")
64201
+ : configuration.apiKey;
64202
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
64203
+ }
64204
+
64205
+ localVarHeaderParameter['Content-Type'] = 'application/json';
64206
+
64207
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
64208
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
64209
+ delete localVarUrlObj.search;
64210
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
64211
+ const needsSerialization = (<any>"RulerValidationRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
64212
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(ruler_validate_request || {}) : (ruler_validate_request || "");
64213
+
63849
64214
  return {
63850
64215
  url: url.format(localVarUrlObj),
63851
64216
  options: localVarRequestOptions,
@@ -64732,6 +65097,28 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
64732
65097
  });
64733
65098
  };
64734
65099
  },
65100
+ /**
65101
+ *
65102
+ * @summary Get email communication postcard tracking
65103
+ * @param {number} storefront_oid
65104
+ * @param {string} commseq_postcard_uuid
65105
+ * @param {*} [options] Override http request option.
65106
+ * @throws {RequiredError}
65107
+ */
65108
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailPostcardTrackingResponse> {
65109
+ const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).getEmailCommseqPostcardTracking(storefront_oid, commseq_postcard_uuid, options);
65110
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
65111
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
65112
+
65113
+ if (response.status >= 200 && response.status < 300) {
65114
+ return response.json();
65115
+
65116
+ } else {
65117
+ throw response;
65118
+ }
65119
+ });
65120
+ };
65121
+ },
64735
65122
  /**
64736
65123
  *
64737
65124
  * @summary Get communication sequence stats overall
@@ -67489,6 +67876,27 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
67489
67876
  });
67490
67877
  };
67491
67878
  },
67879
+ /**
67880
+ *
67881
+ * @summary Validate AWS Event Ruler
67882
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
67883
+ * @param {*} [options] Override http request option.
67884
+ * @throws {RequiredError}
67885
+ */
67886
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RulerValidationResponse> {
67887
+ const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).validateRuler(ruler_validate_request, options);
67888
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
67889
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
67890
+
67891
+ if (response.status >= 200 && response.status < 300) {
67892
+ return response.json();
67893
+
67894
+ } else {
67895
+ throw response;
67896
+ }
67897
+ });
67898
+ };
67899
+ },
67492
67900
  }
67493
67901
  };
67494
67902
 
@@ -67930,6 +68338,17 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
67930
68338
  getEmailCommseqPostcardStats(storefront_oid: number, commseq_uuid: string, statsRequest: EmailStatPostcardSummaryRequest, options?: any) {
67931
68339
  return StorefrontApiFp(configuration).getEmailCommseqPostcardStats(storefront_oid, commseq_uuid, statsRequest, options)(fetch, basePath);
67932
68340
  },
68341
+ /**
68342
+ *
68343
+ * @summary Get email communication postcard tracking
68344
+ * @param {number} storefront_oid
68345
+ * @param {string} commseq_postcard_uuid
68346
+ * @param {*} [options] Override http request option.
68347
+ * @throws {RequiredError}
68348
+ */
68349
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any) {
68350
+ return StorefrontApiFp(configuration).getEmailCommseqPostcardTracking(storefront_oid, commseq_postcard_uuid, options)(fetch, basePath);
68351
+ },
67933
68352
  /**
67934
68353
  *
67935
68354
  * @summary Get communication sequence stats overall
@@ -69323,6 +69742,16 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
69323
69742
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any) {
69324
69743
  return StorefrontApiFp(configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(fetch, basePath);
69325
69744
  },
69745
+ /**
69746
+ *
69747
+ * @summary Validate AWS Event Ruler
69748
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
69749
+ * @param {*} [options] Override http request option.
69750
+ * @throws {RequiredError}
69751
+ */
69752
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any) {
69753
+ return StorefrontApiFp(configuration).validateRuler(ruler_validate_request, options)(fetch, basePath);
69754
+ },
69326
69755
  };
69327
69756
  };
69328
69757
 
@@ -69764,6 +70193,17 @@ export interface StorefrontApiInterface {
69764
70193
  */
69765
70194
  getEmailCommseqPostcardStats(storefront_oid: number, commseq_uuid: string, statsRequest: EmailStatPostcardSummaryRequest, options?: any): Promise<EmailStatPostcardSummaryResponse>;
69766
70195
 
70196
+ /**
70197
+ *
70198
+ * @summary Get email communication postcard tracking
70199
+ * @param {number} storefront_oid
70200
+ * @param {string} commseq_postcard_uuid
70201
+ * @param {*} [options] Override http request option.
70202
+ * @throws {RequiredError}
70203
+ * @memberof StorefrontApiInterface
70204
+ */
70205
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any): Promise<EmailPostcardTrackingResponse>;
70206
+
69767
70207
  /**
69768
70208
  *
69769
70209
  * @summary Get communication sequence stats overall
@@ -71157,6 +71597,16 @@ export interface StorefrontApiInterface {
71157
71597
  */
71158
71598
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
71159
71599
 
71600
+ /**
71601
+ *
71602
+ * @summary Validate AWS Event Ruler
71603
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
71604
+ * @param {*} [options] Override http request option.
71605
+ * @throws {RequiredError}
71606
+ * @memberof StorefrontApiInterface
71607
+ */
71608
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
71609
+
71160
71610
  }
71161
71611
 
71162
71612
  /**
@@ -71678,6 +72128,19 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
71678
72128
  return StorefrontApiFp(this.configuration).getEmailCommseqPostcardStats(storefront_oid, commseq_uuid, statsRequest, options)(this.fetch, this.basePath);
71679
72129
  }
71680
72130
 
72131
+ /**
72132
+ *
72133
+ * @summary Get email communication postcard tracking
72134
+ * @param {number} storefront_oid
72135
+ * @param {string} commseq_postcard_uuid
72136
+ * @param {*} [options] Override http request option.
72137
+ * @throws {RequiredError}
72138
+ * @memberof StorefrontApi
72139
+ */
72140
+ public getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any) {
72141
+ return StorefrontApiFp(this.configuration).getEmailCommseqPostcardTracking(storefront_oid, commseq_postcard_uuid, options)(this.fetch, this.basePath);
72142
+ }
72143
+
71681
72144
  /**
71682
72145
  *
71683
72146
  * @summary Get communication sequence stats overall
@@ -73319,6 +73782,18 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
73319
73782
  return StorefrontApiFp(this.configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(this.fetch, this.basePath);
73320
73783
  }
73321
73784
 
73785
+ /**
73786
+ *
73787
+ * @summary Validate AWS Event Ruler
73788
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
73789
+ * @param {*} [options] Override http request option.
73790
+ * @throws {RequiredError}
73791
+ * @memberof StorefrontApi
73792
+ */
73793
+ public validateRuler(ruler_validate_request: RulerValidationRequest, options?: any) {
73794
+ return StorefrontApiFp(this.configuration).validateRuler(ruler_validate_request, options)(this.fetch, this.basePath);
73795
+ }
73796
+
73322
73797
  }
73323
73798
 
73324
73799
  /**
package/dist/api.d.ts CHANGED
@@ -15649,6 +15649,200 @@ export interface EmailPostcardStat {
15649
15649
  */
15650
15650
  view_count_formatted?: string;
15651
15651
  }
15652
+ /**
15653
+ *
15654
+ * @export
15655
+ * @interface EmailPostcardTracking
15656
+ */
15657
+ export interface EmailPostcardTracking {
15658
+ /**
15659
+ *
15660
+ * @type {string}
15661
+ * @memberof EmailPostcardTracking
15662
+ */
15663
+ commseq_postcard_uuid?: string;
15664
+ /**
15665
+ *
15666
+ * @type {string}
15667
+ * @memberof EmailPostcardTracking
15668
+ */
15669
+ commseq_step_uuid?: string;
15670
+ /**
15671
+ *
15672
+ * @type {string}
15673
+ * @memberof EmailPostcardTracking
15674
+ */
15675
+ commseq_uuid?: string;
15676
+ /**
15677
+ * Conversion date time.
15678
+ * @type {string}
15679
+ * @memberof EmailPostcardTracking
15680
+ */
15681
+ conversion_dts?: string;
15682
+ /**
15683
+ *
15684
+ * @type {number}
15685
+ * @memberof EmailPostcardTracking
15686
+ */
15687
+ cost?: number;
15688
+ /**
15689
+ *
15690
+ * @type {string}
15691
+ * @memberof EmailPostcardTracking
15692
+ */
15693
+ customer_uuid?: string;
15694
+ /**
15695
+ * Delivered date time.
15696
+ * @type {string}
15697
+ * @memberof EmailPostcardTracking
15698
+ */
15699
+ delivered_dts?: string;
15700
+ /**
15701
+ *
15702
+ * @type {string}
15703
+ * @memberof EmailPostcardTracking
15704
+ */
15705
+ from_address_line1?: string;
15706
+ /**
15707
+ *
15708
+ * @type {string}
15709
+ * @memberof EmailPostcardTracking
15710
+ */
15711
+ from_address_line2?: string;
15712
+ /**
15713
+ *
15714
+ * @type {string}
15715
+ * @memberof EmailPostcardTracking
15716
+ */
15717
+ from_city?: string;
15718
+ /**
15719
+ *
15720
+ * @type {string}
15721
+ * @memberof EmailPostcardTracking
15722
+ */
15723
+ from_name?: string;
15724
+ /**
15725
+ *
15726
+ * @type {string}
15727
+ * @memberof EmailPostcardTracking
15728
+ */
15729
+ from_state?: string;
15730
+ /**
15731
+ *
15732
+ * @type {string}
15733
+ * @memberof EmailPostcardTracking
15734
+ */
15735
+ from_zip?: string;
15736
+ /**
15737
+ * Mailed date time.
15738
+ * @type {string}
15739
+ * @memberof EmailPostcardTracking
15740
+ */
15741
+ mailed_dts?: string;
15742
+ /**
15743
+ *
15744
+ * @type {string}
15745
+ * @memberof EmailPostcardTracking
15746
+ */
15747
+ order_id?: string;
15748
+ /**
15749
+ *
15750
+ * @type {string}
15751
+ * @memberof EmailPostcardTracking
15752
+ */
15753
+ postcard_tracking_uuid?: string;
15754
+ /**
15755
+ *
15756
+ * @type {string}
15757
+ * @memberof EmailPostcardTracking
15758
+ */
15759
+ status?: string;
15760
+ /**
15761
+ * Submit date time.
15762
+ * @type {string}
15763
+ * @memberof EmailPostcardTracking
15764
+ */
15765
+ submit_dts?: string;
15766
+ /**
15767
+ *
15768
+ * @type {string}
15769
+ * @memberof EmailPostcardTracking
15770
+ */
15771
+ to_address_line1?: string;
15772
+ /**
15773
+ *
15774
+ * @type {string}
15775
+ * @memberof EmailPostcardTracking
15776
+ */
15777
+ to_address_line2?: string;
15778
+ /**
15779
+ *
15780
+ * @type {string}
15781
+ * @memberof EmailPostcardTracking
15782
+ */
15783
+ to_city?: string;
15784
+ /**
15785
+ *
15786
+ * @type {string}
15787
+ * @memberof EmailPostcardTracking
15788
+ */
15789
+ to_name?: string;
15790
+ /**
15791
+ *
15792
+ * @type {string}
15793
+ * @memberof EmailPostcardTracking
15794
+ */
15795
+ to_state?: string;
15796
+ /**
15797
+ *
15798
+ * @type {string}
15799
+ * @memberof EmailPostcardTracking
15800
+ */
15801
+ to_zip?: string;
15802
+ /**
15803
+ *
15804
+ * @type {string}
15805
+ * @memberof EmailPostcardTracking
15806
+ */
15807
+ tracking_description?: string;
15808
+ }
15809
+ /**
15810
+ *
15811
+ * @export
15812
+ * @interface EmailPostcardTrackingResponse
15813
+ */
15814
+ export interface EmailPostcardTrackingResponse {
15815
+ /**
15816
+ *
15817
+ * @type {ModelError}
15818
+ * @memberof EmailPostcardTrackingResponse
15819
+ */
15820
+ error?: ModelError;
15821
+ /**
15822
+ *
15823
+ * @type {ResponseMetadata}
15824
+ * @memberof EmailPostcardTrackingResponse
15825
+ */
15826
+ metadata?: ResponseMetadata;
15827
+ /**
15828
+ * Indicates if API call was successful
15829
+ * @type {boolean}
15830
+ * @memberof EmailPostcardTrackingResponse
15831
+ */
15832
+ success?: boolean;
15833
+ /**
15834
+ *
15835
+ * @type {EmailPostcardTracking}
15836
+ * @memberof EmailPostcardTrackingResponse
15837
+ */
15838
+ tracking?: EmailPostcardTracking;
15839
+ /**
15840
+ *
15841
+ * @type {Warning}
15842
+ * @memberof EmailPostcardTrackingResponse
15843
+ */
15844
+ warning?: Warning;
15845
+ }
15652
15846
  /**
15653
15847
  *
15654
15848
  * @export
@@ -16150,6 +16344,12 @@ export interface EmailSettings {
16150
16344
  * @memberof EmailSettings
16151
16345
  */
16152
16346
  postcard_from_state?: string;
16347
+ /**
16348
+ * True if the Reviews.io integration is configured
16349
+ * @type {boolean}
16350
+ * @memberof EmailSettings
16351
+ */
16352
+ reviews_io_configured?: boolean;
16153
16353
  /**
16154
16354
  *
16155
16355
  * @type {string}
@@ -28677,6 +28877,38 @@ export interface ResultSet {
28677
28877
  */
28678
28878
  total_records?: number;
28679
28879
  }
28880
+ /**
28881
+ *
28882
+ * @export
28883
+ * @interface RulerValidationRequest
28884
+ */
28885
+ export interface RulerValidationRequest {
28886
+ /**
28887
+ *
28888
+ * @type {string}
28889
+ * @memberof RulerValidationRequest
28890
+ */
28891
+ ruler?: string;
28892
+ }
28893
+ /**
28894
+ *
28895
+ * @export
28896
+ * @interface RulerValidationResponse
28897
+ */
28898
+ export interface RulerValidationResponse {
28899
+ /**
28900
+ *
28901
+ * @type {string}
28902
+ * @memberof RulerValidationResponse
28903
+ */
28904
+ error_message?: string;
28905
+ /**
28906
+ *
28907
+ * @type {boolean}
28908
+ * @memberof RulerValidationResponse
28909
+ */
28910
+ valid?: boolean;
28911
+ }
28680
28912
  /**
28681
28913
  *
28682
28914
  * @export
@@ -41982,6 +42214,15 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
41982
42214
  * @throws {RequiredError}
41983
42215
  */
41984
42216
  getEmailCommseqPostcardStats(storefront_oid: number, commseq_uuid: string, statsRequest: EmailStatPostcardSummaryRequest, options?: any): FetchArgs;
42217
+ /**
42218
+ *
42219
+ * @summary Get email communication postcard tracking
42220
+ * @param {number} storefront_oid
42221
+ * @param {string} commseq_postcard_uuid
42222
+ * @param {*} [options] Override http request option.
42223
+ * @throws {RequiredError}
42224
+ */
42225
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any): FetchArgs;
41985
42226
  /**
41986
42227
  *
41987
42228
  * @summary Get communication sequence stats overall
@@ -43127,6 +43368,14 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
43127
43368
  * @throws {RequiredError}
43128
43369
  */
43129
43370
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): FetchArgs;
43371
+ /**
43372
+ *
43373
+ * @summary Validate AWS Event Ruler
43374
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
43375
+ * @param {*} [options] Override http request option.
43376
+ * @throws {RequiredError}
43377
+ */
43378
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): FetchArgs;
43130
43379
  };
43131
43380
  /**
43132
43381
  * StorefrontApi - functional programming interface
@@ -43485,6 +43734,15 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
43485
43734
  * @throws {RequiredError}
43486
43735
  */
43487
43736
  getEmailCommseqPostcardStats(storefront_oid: number, commseq_uuid: string, statsRequest: EmailStatPostcardSummaryRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailStatPostcardSummaryResponse>;
43737
+ /**
43738
+ *
43739
+ * @summary Get email communication postcard tracking
43740
+ * @param {number} storefront_oid
43741
+ * @param {string} commseq_postcard_uuid
43742
+ * @param {*} [options] Override http request option.
43743
+ * @throws {RequiredError}
43744
+ */
43745
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailPostcardTrackingResponse>;
43488
43746
  /**
43489
43747
  *
43490
43748
  * @summary Get communication sequence stats overall
@@ -44630,6 +44888,14 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
44630
44888
  * @throws {RequiredError}
44631
44889
  */
44632
44890
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<TwilioResponse>;
44891
+ /**
44892
+ *
44893
+ * @summary Validate AWS Event Ruler
44894
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
44895
+ * @param {*} [options] Override http request option.
44896
+ * @throws {RequiredError}
44897
+ */
44898
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RulerValidationResponse>;
44633
44899
  };
44634
44900
  /**
44635
44901
  * StorefrontApi - factory interface
@@ -44988,6 +45254,15 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
44988
45254
  * @throws {RequiredError}
44989
45255
  */
44990
45256
  getEmailCommseqPostcardStats(storefront_oid: number, commseq_uuid: string, statsRequest: EmailStatPostcardSummaryRequest, options?: any): Promise<EmailStatPostcardSummaryResponse>;
45257
+ /**
45258
+ *
45259
+ * @summary Get email communication postcard tracking
45260
+ * @param {number} storefront_oid
45261
+ * @param {string} commseq_postcard_uuid
45262
+ * @param {*} [options] Override http request option.
45263
+ * @throws {RequiredError}
45264
+ */
45265
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any): Promise<EmailPostcardTrackingResponse>;
44991
45266
  /**
44992
45267
  *
44993
45268
  * @summary Get communication sequence stats overall
@@ -46133,6 +46408,14 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
46133
46408
  * @throws {RequiredError}
46134
46409
  */
46135
46410
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
46411
+ /**
46412
+ *
46413
+ * @summary Validate AWS Event Ruler
46414
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
46415
+ * @param {*} [options] Override http request option.
46416
+ * @throws {RequiredError}
46417
+ */
46418
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
46136
46419
  };
46137
46420
  /**
46138
46421
  * StorefrontApi - interface
@@ -46532,6 +46815,16 @@ export interface StorefrontApiInterface {
46532
46815
  * @memberof StorefrontApiInterface
46533
46816
  */
46534
46817
  getEmailCommseqPostcardStats(storefront_oid: number, commseq_uuid: string, statsRequest: EmailStatPostcardSummaryRequest, options?: any): Promise<EmailStatPostcardSummaryResponse>;
46818
+ /**
46819
+ *
46820
+ * @summary Get email communication postcard tracking
46821
+ * @param {number} storefront_oid
46822
+ * @param {string} commseq_postcard_uuid
46823
+ * @param {*} [options] Override http request option.
46824
+ * @throws {RequiredError}
46825
+ * @memberof StorefrontApiInterface
46826
+ */
46827
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any): Promise<EmailPostcardTrackingResponse>;
46535
46828
  /**
46536
46829
  *
46537
46830
  * @summary Get communication sequence stats overall
@@ -47801,6 +48094,15 @@ export interface StorefrontApiInterface {
47801
48094
  * @memberof StorefrontApiInterface
47802
48095
  */
47803
48096
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
48097
+ /**
48098
+ *
48099
+ * @summary Validate AWS Event Ruler
48100
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
48101
+ * @param {*} [options] Override http request option.
48102
+ * @throws {RequiredError}
48103
+ * @memberof StorefrontApiInterface
48104
+ */
48105
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
47804
48106
  }
47805
48107
  /**
47806
48108
  * StorefrontApi - object-oriented interface
@@ -48201,6 +48503,16 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
48201
48503
  * @memberof StorefrontApi
48202
48504
  */
48203
48505
  getEmailCommseqPostcardStats(storefront_oid: number, commseq_uuid: string, statsRequest: EmailStatPostcardSummaryRequest, options?: any): Promise<EmailStatPostcardSummaryResponse>;
48506
+ /**
48507
+ *
48508
+ * @summary Get email communication postcard tracking
48509
+ * @param {number} storefront_oid
48510
+ * @param {string} commseq_postcard_uuid
48511
+ * @param {*} [options] Override http request option.
48512
+ * @throws {RequiredError}
48513
+ * @memberof StorefrontApi
48514
+ */
48515
+ getEmailCommseqPostcardTracking(storefront_oid: number, commseq_postcard_uuid: string, options?: any): Promise<EmailPostcardTrackingResponse>;
48204
48516
  /**
48205
48517
  *
48206
48518
  * @summary Get communication sequence stats overall
@@ -49470,6 +49782,15 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
49470
49782
  * @memberof StorefrontApi
49471
49783
  */
49472
49784
  updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
49785
+ /**
49786
+ *
49787
+ * @summary Validate AWS Event Ruler
49788
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
49789
+ * @param {*} [options] Override http request option.
49790
+ * @throws {RequiredError}
49791
+ * @memberof StorefrontApi
49792
+ */
49793
+ validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
49473
49794
  }
49474
49795
  /**
49475
49796
  * TaxApi - fetch parameter creator
package/dist/api.js CHANGED
@@ -18751,6 +18751,65 @@ var StorefrontApiFetchParamCreator = function (configuration) {
18751
18751
  options: localVarRequestOptions,
18752
18752
  };
18753
18753
  },
18754
+ /**
18755
+ *
18756
+ * @summary Get email communication postcard tracking
18757
+ * @param {number} storefront_oid
18758
+ * @param {string} commseq_postcard_uuid
18759
+ * @param {*} [options] Override http request option.
18760
+ * @throws {RequiredError}
18761
+ */
18762
+ getEmailCommseqPostcardTracking: function (storefront_oid, commseq_postcard_uuid, options) {
18763
+ if (options === void 0) { options = {}; }
18764
+ // verify required parameter 'storefront_oid' is not null or undefined
18765
+ if (storefront_oid === null || storefront_oid === undefined) {
18766
+ throw new RequiredError('storefront_oid', 'Required parameter storefront_oid was null or undefined when calling getEmailCommseqPostcardTracking.');
18767
+ }
18768
+ // verify required parameter 'commseq_postcard_uuid' is not null or undefined
18769
+ if (commseq_postcard_uuid === null || commseq_postcard_uuid === undefined) {
18770
+ throw new RequiredError('commseq_postcard_uuid', 'Required parameter commseq_postcard_uuid was null or undefined when calling getEmailCommseqPostcardTracking.');
18771
+ }
18772
+ var localVarPath = "/storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/tracking"
18773
+ .replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(storefront_oid)))
18774
+ .replace("{".concat("commseq_postcard_uuid", "}"), encodeURIComponent(String(commseq_postcard_uuid)));
18775
+ var localVarUrlObj = url.parse(localVarPath, true);
18776
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
18777
+ var localVarHeaderParameter = {};
18778
+ var localVarQueryParameter = {};
18779
+ if (configuration && configuration.apiVersion) {
18780
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
18781
+ }
18782
+ // authentication ultraCartBrowserApiKey required
18783
+ if (configuration && configuration.apiKey) {
18784
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
18785
+ ? configuration.apiKey("x-ultracart-browser-key")
18786
+ : configuration.apiKey;
18787
+ localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
18788
+ }
18789
+ // authentication ultraCartOauth required
18790
+ // oauth required
18791
+ if (configuration && configuration.accessToken) {
18792
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
18793
+ ? configuration.accessToken("ultraCartOauth", ["storefront_read"])
18794
+ : configuration.accessToken;
18795
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
18796
+ }
18797
+ // authentication ultraCartSimpleApiKey required
18798
+ if (configuration && configuration.apiKey) {
18799
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
18800
+ ? configuration.apiKey("x-ultracart-simple-key")
18801
+ : configuration.apiKey;
18802
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
18803
+ }
18804
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
18805
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18806
+ delete localVarUrlObj.search;
18807
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
18808
+ return {
18809
+ url: url.format(localVarUrlObj),
18810
+ options: localVarRequestOptions,
18811
+ };
18812
+ },
18754
18813
  /**
18755
18814
  *
18756
18815
  * @summary Get communication sequence stats overall
@@ -26156,6 +26215,61 @@ var StorefrontApiFetchParamCreator = function (configuration) {
26156
26215
  options: localVarRequestOptions,
26157
26216
  };
26158
26217
  },
26218
+ /**
26219
+ *
26220
+ * @summary Validate AWS Event Ruler
26221
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
26222
+ * @param {*} [options] Override http request option.
26223
+ * @throws {RequiredError}
26224
+ */
26225
+ validateRuler: function (ruler_validate_request, options) {
26226
+ if (options === void 0) { options = {}; }
26227
+ // verify required parameter 'ruler_validate_request' is not null or undefined
26228
+ if (ruler_validate_request === null || ruler_validate_request === undefined) {
26229
+ throw new RequiredError('ruler_validate_request', 'Required parameter ruler_validate_request was null or undefined when calling validateRuler.');
26230
+ }
26231
+ var localVarPath = "/storefront/ruler/validate";
26232
+ var localVarUrlObj = url.parse(localVarPath, true);
26233
+ var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
26234
+ var localVarHeaderParameter = {};
26235
+ var localVarQueryParameter = {};
26236
+ if (configuration && configuration.apiVersion) {
26237
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
26238
+ }
26239
+ // authentication ultraCartBrowserApiKey required
26240
+ if (configuration && configuration.apiKey) {
26241
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
26242
+ ? configuration.apiKey("x-ultracart-browser-key")
26243
+ : configuration.apiKey;
26244
+ localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
26245
+ }
26246
+ // authentication ultraCartOauth required
26247
+ // oauth required
26248
+ if (configuration && configuration.accessToken) {
26249
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
26250
+ ? configuration.accessToken("ultraCartOauth", ["storefront_write"])
26251
+ : configuration.accessToken;
26252
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
26253
+ }
26254
+ // authentication ultraCartSimpleApiKey required
26255
+ if (configuration && configuration.apiKey) {
26256
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
26257
+ ? configuration.apiKey("x-ultracart-simple-key")
26258
+ : configuration.apiKey;
26259
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
26260
+ }
26261
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26262
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
26263
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
26264
+ delete localVarUrlObj.search;
26265
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
26266
+ var needsSerialization = ("RulerValidationRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
26267
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(ruler_validate_request || {}) : (ruler_validate_request || "");
26268
+ return {
26269
+ url: url.format(localVarUrlObj),
26270
+ options: localVarRequestOptions,
26271
+ };
26272
+ },
26159
26273
  };
26160
26274
  };
26161
26275
  exports.StorefrontApiFetchParamCreator = StorefrontApiFetchParamCreator;
@@ -27077,6 +27191,29 @@ var StorefrontApiFp = function (configuration) {
27077
27191
  });
27078
27192
  };
27079
27193
  },
27194
+ /**
27195
+ *
27196
+ * @summary Get email communication postcard tracking
27197
+ * @param {number} storefront_oid
27198
+ * @param {string} commseq_postcard_uuid
27199
+ * @param {*} [options] Override http request option.
27200
+ * @throws {RequiredError}
27201
+ */
27202
+ getEmailCommseqPostcardTracking: function (storefront_oid, commseq_postcard_uuid, options) {
27203
+ var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).getEmailCommseqPostcardTracking(storefront_oid, commseq_postcard_uuid, options);
27204
+ return function (fetch, basePath) {
27205
+ if (fetch === void 0) { fetch = portableFetch; }
27206
+ if (basePath === void 0) { basePath = BASE_PATH; }
27207
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
27208
+ if (response.status >= 200 && response.status < 300) {
27209
+ return response.json();
27210
+ }
27211
+ else {
27212
+ throw response;
27213
+ }
27214
+ });
27215
+ };
27216
+ },
27080
27217
  /**
27081
27218
  *
27082
27219
  * @summary Get communication sequence stats overall
@@ -29958,6 +30095,28 @@ var StorefrontApiFp = function (configuration) {
29958
30095
  });
29959
30096
  };
29960
30097
  },
30098
+ /**
30099
+ *
30100
+ * @summary Validate AWS Event Ruler
30101
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
30102
+ * @param {*} [options] Override http request option.
30103
+ * @throws {RequiredError}
30104
+ */
30105
+ validateRuler: function (ruler_validate_request, options) {
30106
+ var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).validateRuler(ruler_validate_request, options);
30107
+ return function (fetch, basePath) {
30108
+ if (fetch === void 0) { fetch = portableFetch; }
30109
+ if (basePath === void 0) { basePath = BASE_PATH; }
30110
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
30111
+ if (response.status >= 200 && response.status < 300) {
30112
+ return response.json();
30113
+ }
30114
+ else {
30115
+ throw response;
30116
+ }
30117
+ });
30118
+ };
30119
+ },
29961
30120
  };
29962
30121
  };
29963
30122
  exports.StorefrontApiFp = StorefrontApiFp;
@@ -30399,6 +30558,17 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
30399
30558
  getEmailCommseqPostcardStats: function (storefront_oid, commseq_uuid, statsRequest, options) {
30400
30559
  return (0, exports.StorefrontApiFp)(configuration).getEmailCommseqPostcardStats(storefront_oid, commseq_uuid, statsRequest, options)(fetch, basePath);
30401
30560
  },
30561
+ /**
30562
+ *
30563
+ * @summary Get email communication postcard tracking
30564
+ * @param {number} storefront_oid
30565
+ * @param {string} commseq_postcard_uuid
30566
+ * @param {*} [options] Override http request option.
30567
+ * @throws {RequiredError}
30568
+ */
30569
+ getEmailCommseqPostcardTracking: function (storefront_oid, commseq_postcard_uuid, options) {
30570
+ return (0, exports.StorefrontApiFp)(configuration).getEmailCommseqPostcardTracking(storefront_oid, commseq_postcard_uuid, options)(fetch, basePath);
30571
+ },
30402
30572
  /**
30403
30573
  *
30404
30574
  * @summary Get communication sequence stats overall
@@ -31792,6 +31962,16 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
31792
31962
  updateTwilioAccount: function (esp_twilio_uuid, twilio, options) {
31793
31963
  return (0, exports.StorefrontApiFp)(configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(fetch, basePath);
31794
31964
  },
31965
+ /**
31966
+ *
31967
+ * @summary Validate AWS Event Ruler
31968
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
31969
+ * @param {*} [options] Override http request option.
31970
+ * @throws {RequiredError}
31971
+ */
31972
+ validateRuler: function (ruler_validate_request, options) {
31973
+ return (0, exports.StorefrontApiFp)(configuration).validateRuler(ruler_validate_request, options)(fetch, basePath);
31974
+ },
31795
31975
  };
31796
31976
  };
31797
31977
  exports.StorefrontApiFactory = StorefrontApiFactory;
@@ -32278,6 +32458,18 @@ var StorefrontApi = /** @class */ (function (_super) {
32278
32458
  StorefrontApi.prototype.getEmailCommseqPostcardStats = function (storefront_oid, commseq_uuid, statsRequest, options) {
32279
32459
  return (0, exports.StorefrontApiFp)(this.configuration).getEmailCommseqPostcardStats(storefront_oid, commseq_uuid, statsRequest, options)(this.fetch, this.basePath);
32280
32460
  };
32461
+ /**
32462
+ *
32463
+ * @summary Get email communication postcard tracking
32464
+ * @param {number} storefront_oid
32465
+ * @param {string} commseq_postcard_uuid
32466
+ * @param {*} [options] Override http request option.
32467
+ * @throws {RequiredError}
32468
+ * @memberof StorefrontApi
32469
+ */
32470
+ StorefrontApi.prototype.getEmailCommseqPostcardTracking = function (storefront_oid, commseq_postcard_uuid, options) {
32471
+ return (0, exports.StorefrontApiFp)(this.configuration).getEmailCommseqPostcardTracking(storefront_oid, commseq_postcard_uuid, options)(this.fetch, this.basePath);
32472
+ };
32281
32473
  /**
32282
32474
  *
32283
32475
  * @summary Get communication sequence stats overall
@@ -33795,6 +33987,17 @@ var StorefrontApi = /** @class */ (function (_super) {
33795
33987
  StorefrontApi.prototype.updateTwilioAccount = function (esp_twilio_uuid, twilio, options) {
33796
33988
  return (0, exports.StorefrontApiFp)(this.configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(this.fetch, this.basePath);
33797
33989
  };
33990
+ /**
33991
+ *
33992
+ * @summary Validate AWS Event Ruler
33993
+ * @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
33994
+ * @param {*} [options] Override http request option.
33995
+ * @throws {RequiredError}
33996
+ * @memberof StorefrontApi
33997
+ */
33998
+ StorefrontApi.prototype.validateRuler = function (ruler_validate_request, options) {
33999
+ return (0, exports.StorefrontApiFp)(this.configuration).validateRuler(ruler_validate_request, options)(this.fetch, this.basePath);
34000
+ };
33798
34001
  return StorefrontApi;
33799
34002
  }(BaseAPI));
33800
34003
  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.46",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [