ultracart_rest_api_v2_typescript 3.10.42 → 3.10.45
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 +162 -0
- package/dist/api.d.ts +86 -0
- package/dist/api.js +98 -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.45
|
|
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.45 --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.45 | 09/12/2022 | storefront comm - send back reviews.io configured flag on getEmailSettings |
|
|
58
|
+
| 3.10.44 | 09/07/2022 | sf comms - using aws event ruler for bigquery segmentation validation |
|
|
59
|
+
| 3.10.43 | 09/02/2022 | customer editor added loyal ledger descriptions |
|
|
57
60
|
| 3.10.42 | 08/30/2022 | storefront comm fields for sms configuration |
|
|
58
61
|
| 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
|
|
59
62
|
| 3.10.40 | 08/22/2022 | exposing individual reviews within item.review object |
|
package/api.ts
CHANGED
|
@@ -10442,6 +10442,12 @@ export interface CustomerEditorValues {
|
|
|
10442
10442
|
* @memberof CustomerEditorValues
|
|
10443
10443
|
*/
|
|
10444
10444
|
countries?: Array<Country>;
|
|
10445
|
+
/**
|
|
10446
|
+
* loyalty_ledger_descriptions
|
|
10447
|
+
* @type {Array<string>}
|
|
10448
|
+
* @memberof CustomerEditorValues
|
|
10449
|
+
*/
|
|
10450
|
+
loyalty_ledger_descriptions?: Array<string>;
|
|
10445
10451
|
/**
|
|
10446
10452
|
* loyalty_program_type
|
|
10447
10453
|
* @type {string}
|
|
@@ -16512,6 +16518,12 @@ export interface EmailSettings {
|
|
|
16512
16518
|
* @memberof EmailSettings
|
|
16513
16519
|
*/
|
|
16514
16520
|
postcard_from_state?: string;
|
|
16521
|
+
/**
|
|
16522
|
+
* True if the Reviews.io integration is configured
|
|
16523
|
+
* @type {boolean}
|
|
16524
|
+
* @memberof EmailSettings
|
|
16525
|
+
*/
|
|
16526
|
+
reviews_io_configured?: boolean;
|
|
16515
16527
|
/**
|
|
16516
16528
|
*
|
|
16517
16529
|
* @type {string}
|
|
@@ -29285,6 +29297,40 @@ export interface ResultSet {
|
|
|
29285
29297
|
total_records?: number;
|
|
29286
29298
|
}
|
|
29287
29299
|
|
|
29300
|
+
/**
|
|
29301
|
+
*
|
|
29302
|
+
* @export
|
|
29303
|
+
* @interface RulerValidationRequest
|
|
29304
|
+
*/
|
|
29305
|
+
export interface RulerValidationRequest {
|
|
29306
|
+
/**
|
|
29307
|
+
*
|
|
29308
|
+
* @type {string}
|
|
29309
|
+
* @memberof RulerValidationRequest
|
|
29310
|
+
*/
|
|
29311
|
+
ruler?: string;
|
|
29312
|
+
}
|
|
29313
|
+
|
|
29314
|
+
/**
|
|
29315
|
+
*
|
|
29316
|
+
* @export
|
|
29317
|
+
* @interface RulerValidationResponse
|
|
29318
|
+
*/
|
|
29319
|
+
export interface RulerValidationResponse {
|
|
29320
|
+
/**
|
|
29321
|
+
*
|
|
29322
|
+
* @type {string}
|
|
29323
|
+
* @memberof RulerValidationResponse
|
|
29324
|
+
*/
|
|
29325
|
+
error_message?: string;
|
|
29326
|
+
/**
|
|
29327
|
+
*
|
|
29328
|
+
* @type {boolean}
|
|
29329
|
+
* @memberof RulerValidationResponse
|
|
29330
|
+
*/
|
|
29331
|
+
valid?: boolean;
|
|
29332
|
+
}
|
|
29333
|
+
|
|
29288
29334
|
/**
|
|
29289
29335
|
*
|
|
29290
29336
|
* @export
|
|
@@ -63840,6 +63886,69 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
63840
63886
|
const needsSerialization = (<any>"Twilio" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
63841
63887
|
localVarRequestOptions.body = needsSerialization ? JSON.stringify(twilio || {}) : (twilio || "");
|
|
63842
63888
|
|
|
63889
|
+
return {
|
|
63890
|
+
url: url.format(localVarUrlObj),
|
|
63891
|
+
options: localVarRequestOptions,
|
|
63892
|
+
};
|
|
63893
|
+
},
|
|
63894
|
+
/**
|
|
63895
|
+
*
|
|
63896
|
+
* @summary Validate AWS Event Ruler
|
|
63897
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
63898
|
+
* @param {*} [options] Override http request option.
|
|
63899
|
+
* @throws {RequiredError}
|
|
63900
|
+
*/
|
|
63901
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options: any = {}): FetchArgs {
|
|
63902
|
+
// verify required parameter 'ruler_validate_request' is not null or undefined
|
|
63903
|
+
if (ruler_validate_request === null || ruler_validate_request === undefined) {
|
|
63904
|
+
throw new RequiredError('ruler_validate_request','Required parameter ruler_validate_request was null or undefined when calling validateRuler.');
|
|
63905
|
+
}
|
|
63906
|
+
const localVarPath = `/storefront/ruler/validate`;
|
|
63907
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
63908
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
63909
|
+
const localVarHeaderParameter = {} as any;
|
|
63910
|
+
const localVarQueryParameter = {} as any;
|
|
63911
|
+
|
|
63912
|
+
if(configuration && configuration.apiVersion) {
|
|
63913
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
63914
|
+
}
|
|
63915
|
+
|
|
63916
|
+
|
|
63917
|
+
|
|
63918
|
+
// authentication ultraCartBrowserApiKey required
|
|
63919
|
+
if (configuration && configuration.apiKey) {
|
|
63920
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
63921
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
63922
|
+
: configuration.apiKey;
|
|
63923
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
63924
|
+
}
|
|
63925
|
+
|
|
63926
|
+
// authentication ultraCartOauth required
|
|
63927
|
+
// oauth required
|
|
63928
|
+
if (configuration && configuration.accessToken) {
|
|
63929
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
63930
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_write"])
|
|
63931
|
+
: configuration.accessToken;
|
|
63932
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
63933
|
+
}
|
|
63934
|
+
|
|
63935
|
+
// authentication ultraCartSimpleApiKey required
|
|
63936
|
+
if (configuration && configuration.apiKey) {
|
|
63937
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
63938
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
63939
|
+
: configuration.apiKey;
|
|
63940
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
63941
|
+
}
|
|
63942
|
+
|
|
63943
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
63944
|
+
|
|
63945
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
63946
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
63947
|
+
delete localVarUrlObj.search;
|
|
63948
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
63949
|
+
const needsSerialization = (<any>"RulerValidationRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
63950
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(ruler_validate_request || {}) : (ruler_validate_request || "");
|
|
63951
|
+
|
|
63843
63952
|
return {
|
|
63844
63953
|
url: url.format(localVarUrlObj),
|
|
63845
63954
|
options: localVarRequestOptions,
|
|
@@ -67483,6 +67592,27 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
67483
67592
|
});
|
|
67484
67593
|
};
|
|
67485
67594
|
},
|
|
67595
|
+
/**
|
|
67596
|
+
*
|
|
67597
|
+
* @summary Validate AWS Event Ruler
|
|
67598
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
67599
|
+
* @param {*} [options] Override http request option.
|
|
67600
|
+
* @throws {RequiredError}
|
|
67601
|
+
*/
|
|
67602
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RulerValidationResponse> {
|
|
67603
|
+
const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).validateRuler(ruler_validate_request, options);
|
|
67604
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
67605
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
67606
|
+
|
|
67607
|
+
if (response.status >= 200 && response.status < 300) {
|
|
67608
|
+
return response.json();
|
|
67609
|
+
|
|
67610
|
+
} else {
|
|
67611
|
+
throw response;
|
|
67612
|
+
}
|
|
67613
|
+
});
|
|
67614
|
+
};
|
|
67615
|
+
},
|
|
67486
67616
|
}
|
|
67487
67617
|
};
|
|
67488
67618
|
|
|
@@ -69317,6 +69447,16 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
69317
69447
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any) {
|
|
69318
69448
|
return StorefrontApiFp(configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(fetch, basePath);
|
|
69319
69449
|
},
|
|
69450
|
+
/**
|
|
69451
|
+
*
|
|
69452
|
+
* @summary Validate AWS Event Ruler
|
|
69453
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
69454
|
+
* @param {*} [options] Override http request option.
|
|
69455
|
+
* @throws {RequiredError}
|
|
69456
|
+
*/
|
|
69457
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any) {
|
|
69458
|
+
return StorefrontApiFp(configuration).validateRuler(ruler_validate_request, options)(fetch, basePath);
|
|
69459
|
+
},
|
|
69320
69460
|
};
|
|
69321
69461
|
};
|
|
69322
69462
|
|
|
@@ -71151,6 +71291,16 @@ export interface StorefrontApiInterface {
|
|
|
71151
71291
|
*/
|
|
71152
71292
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
|
|
71153
71293
|
|
|
71294
|
+
/**
|
|
71295
|
+
*
|
|
71296
|
+
* @summary Validate AWS Event Ruler
|
|
71297
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
71298
|
+
* @param {*} [options] Override http request option.
|
|
71299
|
+
* @throws {RequiredError}
|
|
71300
|
+
* @memberof StorefrontApiInterface
|
|
71301
|
+
*/
|
|
71302
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
|
|
71303
|
+
|
|
71154
71304
|
}
|
|
71155
71305
|
|
|
71156
71306
|
/**
|
|
@@ -73313,6 +73463,18 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
73313
73463
|
return StorefrontApiFp(this.configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(this.fetch, this.basePath);
|
|
73314
73464
|
}
|
|
73315
73465
|
|
|
73466
|
+
/**
|
|
73467
|
+
*
|
|
73468
|
+
* @summary Validate AWS Event Ruler
|
|
73469
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
73470
|
+
* @param {*} [options] Override http request option.
|
|
73471
|
+
* @throws {RequiredError}
|
|
73472
|
+
* @memberof StorefrontApi
|
|
73473
|
+
*/
|
|
73474
|
+
public validateRuler(ruler_validate_request: RulerValidationRequest, options?: any) {
|
|
73475
|
+
return StorefrontApiFp(this.configuration).validateRuler(ruler_validate_request, options)(this.fetch, this.basePath);
|
|
73476
|
+
}
|
|
73477
|
+
|
|
73316
73478
|
}
|
|
73317
73479
|
|
|
73318
73480
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -10192,6 +10192,12 @@ export interface CustomerEditorValues {
|
|
|
10192
10192
|
* @memberof CustomerEditorValues
|
|
10193
10193
|
*/
|
|
10194
10194
|
countries?: Array<Country>;
|
|
10195
|
+
/**
|
|
10196
|
+
* loyalty_ledger_descriptions
|
|
10197
|
+
* @type {Array<string>}
|
|
10198
|
+
* @memberof CustomerEditorValues
|
|
10199
|
+
*/
|
|
10200
|
+
loyalty_ledger_descriptions?: Array<string>;
|
|
10195
10201
|
/**
|
|
10196
10202
|
* loyalty_program_type
|
|
10197
10203
|
* @type {string}
|
|
@@ -16144,6 +16150,12 @@ export interface EmailSettings {
|
|
|
16144
16150
|
* @memberof EmailSettings
|
|
16145
16151
|
*/
|
|
16146
16152
|
postcard_from_state?: string;
|
|
16153
|
+
/**
|
|
16154
|
+
* True if the Reviews.io integration is configured
|
|
16155
|
+
* @type {boolean}
|
|
16156
|
+
* @memberof EmailSettings
|
|
16157
|
+
*/
|
|
16158
|
+
reviews_io_configured?: boolean;
|
|
16147
16159
|
/**
|
|
16148
16160
|
*
|
|
16149
16161
|
* @type {string}
|
|
@@ -28671,6 +28683,38 @@ export interface ResultSet {
|
|
|
28671
28683
|
*/
|
|
28672
28684
|
total_records?: number;
|
|
28673
28685
|
}
|
|
28686
|
+
/**
|
|
28687
|
+
*
|
|
28688
|
+
* @export
|
|
28689
|
+
* @interface RulerValidationRequest
|
|
28690
|
+
*/
|
|
28691
|
+
export interface RulerValidationRequest {
|
|
28692
|
+
/**
|
|
28693
|
+
*
|
|
28694
|
+
* @type {string}
|
|
28695
|
+
* @memberof RulerValidationRequest
|
|
28696
|
+
*/
|
|
28697
|
+
ruler?: string;
|
|
28698
|
+
}
|
|
28699
|
+
/**
|
|
28700
|
+
*
|
|
28701
|
+
* @export
|
|
28702
|
+
* @interface RulerValidationResponse
|
|
28703
|
+
*/
|
|
28704
|
+
export interface RulerValidationResponse {
|
|
28705
|
+
/**
|
|
28706
|
+
*
|
|
28707
|
+
* @type {string}
|
|
28708
|
+
* @memberof RulerValidationResponse
|
|
28709
|
+
*/
|
|
28710
|
+
error_message?: string;
|
|
28711
|
+
/**
|
|
28712
|
+
*
|
|
28713
|
+
* @type {boolean}
|
|
28714
|
+
* @memberof RulerValidationResponse
|
|
28715
|
+
*/
|
|
28716
|
+
valid?: boolean;
|
|
28717
|
+
}
|
|
28674
28718
|
/**
|
|
28675
28719
|
*
|
|
28676
28720
|
* @export
|
|
@@ -43121,6 +43165,14 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
43121
43165
|
* @throws {RequiredError}
|
|
43122
43166
|
*/
|
|
43123
43167
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): FetchArgs;
|
|
43168
|
+
/**
|
|
43169
|
+
*
|
|
43170
|
+
* @summary Validate AWS Event Ruler
|
|
43171
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
43172
|
+
* @param {*} [options] Override http request option.
|
|
43173
|
+
* @throws {RequiredError}
|
|
43174
|
+
*/
|
|
43175
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): FetchArgs;
|
|
43124
43176
|
};
|
|
43125
43177
|
/**
|
|
43126
43178
|
* StorefrontApi - functional programming interface
|
|
@@ -44624,6 +44676,14 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
44624
44676
|
* @throws {RequiredError}
|
|
44625
44677
|
*/
|
|
44626
44678
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<TwilioResponse>;
|
|
44679
|
+
/**
|
|
44680
|
+
*
|
|
44681
|
+
* @summary Validate AWS Event Ruler
|
|
44682
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
44683
|
+
* @param {*} [options] Override http request option.
|
|
44684
|
+
* @throws {RequiredError}
|
|
44685
|
+
*/
|
|
44686
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<RulerValidationResponse>;
|
|
44627
44687
|
};
|
|
44628
44688
|
/**
|
|
44629
44689
|
* StorefrontApi - factory interface
|
|
@@ -46127,6 +46187,14 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
46127
46187
|
* @throws {RequiredError}
|
|
46128
46188
|
*/
|
|
46129
46189
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
|
|
46190
|
+
/**
|
|
46191
|
+
*
|
|
46192
|
+
* @summary Validate AWS Event Ruler
|
|
46193
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
46194
|
+
* @param {*} [options] Override http request option.
|
|
46195
|
+
* @throws {RequiredError}
|
|
46196
|
+
*/
|
|
46197
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
|
|
46130
46198
|
};
|
|
46131
46199
|
/**
|
|
46132
46200
|
* StorefrontApi - interface
|
|
@@ -47795,6 +47863,15 @@ export interface StorefrontApiInterface {
|
|
|
47795
47863
|
* @memberof StorefrontApiInterface
|
|
47796
47864
|
*/
|
|
47797
47865
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
|
|
47866
|
+
/**
|
|
47867
|
+
*
|
|
47868
|
+
* @summary Validate AWS Event Ruler
|
|
47869
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
47870
|
+
* @param {*} [options] Override http request option.
|
|
47871
|
+
* @throws {RequiredError}
|
|
47872
|
+
* @memberof StorefrontApiInterface
|
|
47873
|
+
*/
|
|
47874
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
|
|
47798
47875
|
}
|
|
47799
47876
|
/**
|
|
47800
47877
|
* StorefrontApi - object-oriented interface
|
|
@@ -49464,6 +49541,15 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
49464
49541
|
* @memberof StorefrontApi
|
|
49465
49542
|
*/
|
|
49466
49543
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
|
|
49544
|
+
/**
|
|
49545
|
+
*
|
|
49546
|
+
* @summary Validate AWS Event Ruler
|
|
49547
|
+
* @param {RulerValidationRequest} ruler_validate_request Ruler Validate Request
|
|
49548
|
+
* @param {*} [options] Override http request option.
|
|
49549
|
+
* @throws {RequiredError}
|
|
49550
|
+
* @memberof StorefrontApi
|
|
49551
|
+
*/
|
|
49552
|
+
validateRuler(ruler_validate_request: RulerValidationRequest, options?: any): Promise<RulerValidationResponse>;
|
|
49467
49553
|
}
|
|
49468
49554
|
/**
|
|
49469
49555
|
* 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;
|