ultracart_rest_api_v2_typescript 3.10.41 → 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 +5 -2
- package/api.ts +192 -0
- package/dist/api.d.ts +116 -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.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.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.44 --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.44 | 09/07/2022 | sf comms - using aws event ruler for bigquery segmentation validation |
|
|
58
|
+
| 3.10.43 | 09/02/2022 | customer editor added loyal ledger descriptions |
|
|
59
|
+
| 3.10.42 | 08/30/2022 | storefront comm fields for sms configuration |
|
|
57
60
|
| 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
|
|
58
61
|
| 3.10.40 | 08/22/2022 | exposing individual reviews within item.review object |
|
|
59
62
|
| 3.10.39 | 08/19/2022 | order api - added cell phone fields for sms |
|
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}
|
|
@@ -12123,6 +12129,18 @@ export interface EmailCampaign {
|
|
|
12123
12129
|
* @memberof EmailCampaign
|
|
12124
12130
|
*/
|
|
12125
12131
|
screenshot_large_full_url?: string;
|
|
12132
|
+
/**
|
|
12133
|
+
* Twilio Account UUID. Null for none
|
|
12134
|
+
* @type {string}
|
|
12135
|
+
* @memberof EmailCampaign
|
|
12136
|
+
*/
|
|
12137
|
+
sms_esp_twilio_uuid?: string;
|
|
12138
|
+
/**
|
|
12139
|
+
* Twilio SMS Phone Number. Null for none
|
|
12140
|
+
* @type {string}
|
|
12141
|
+
* @memberof EmailCampaign
|
|
12142
|
+
*/
|
|
12143
|
+
sms_phone_number?: string;
|
|
12126
12144
|
/**
|
|
12127
12145
|
* Status of the campaign of draft, archived, and sent
|
|
12128
12146
|
* @type {string}
|
|
@@ -14352,6 +14370,18 @@ export interface EmailFlow {
|
|
|
14352
14370
|
* @memberof EmailFlow
|
|
14353
14371
|
*/
|
|
14354
14372
|
screenshot_large_full_url?: string;
|
|
14373
|
+
/**
|
|
14374
|
+
* Twilio Account UUID. Null for none
|
|
14375
|
+
* @type {string}
|
|
14376
|
+
* @memberof EmailFlow
|
|
14377
|
+
*/
|
|
14378
|
+
sms_esp_twilio_uuid?: string;
|
|
14379
|
+
/**
|
|
14380
|
+
* Twilio SMS Phone Number. Null for none
|
|
14381
|
+
* @type {string}
|
|
14382
|
+
* @memberof EmailFlow
|
|
14383
|
+
*/
|
|
14384
|
+
sms_phone_number?: string;
|
|
14355
14385
|
/**
|
|
14356
14386
|
* Status of the campaign of draft, archived, active, and inactive
|
|
14357
14387
|
* @type {string}
|
|
@@ -16488,6 +16518,18 @@ export interface EmailSettings {
|
|
|
16488
16518
|
* @memberof EmailSettings
|
|
16489
16519
|
*/
|
|
16490
16520
|
postcard_from_state?: string;
|
|
16521
|
+
/**
|
|
16522
|
+
*
|
|
16523
|
+
* @type {string}
|
|
16524
|
+
* @memberof EmailSettings
|
|
16525
|
+
*/
|
|
16526
|
+
sms_esp_twilio_uuid?: string;
|
|
16527
|
+
/**
|
|
16528
|
+
*
|
|
16529
|
+
* @type {string}
|
|
16530
|
+
* @memberof EmailSettings
|
|
16531
|
+
*/
|
|
16532
|
+
sms_phone_number?: string;
|
|
16491
16533
|
/**
|
|
16492
16534
|
*
|
|
16493
16535
|
* @type {string}
|
|
@@ -29249,6 +29291,40 @@ export interface ResultSet {
|
|
|
29249
29291
|
total_records?: number;
|
|
29250
29292
|
}
|
|
29251
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
|
+
|
|
29252
29328
|
/**
|
|
29253
29329
|
*
|
|
29254
29330
|
* @export
|
|
@@ -63804,6 +63880,69 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
63804
63880
|
const needsSerialization = (<any>"Twilio" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
63805
63881
|
localVarRequestOptions.body = needsSerialization ? JSON.stringify(twilio || {}) : (twilio || "");
|
|
63806
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
|
+
|
|
63807
63946
|
return {
|
|
63808
63947
|
url: url.format(localVarUrlObj),
|
|
63809
63948
|
options: localVarRequestOptions,
|
|
@@ -67447,6 +67586,27 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
67447
67586
|
});
|
|
67448
67587
|
};
|
|
67449
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
|
+
},
|
|
67450
67610
|
}
|
|
67451
67611
|
};
|
|
67452
67612
|
|
|
@@ -69281,6 +69441,16 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
69281
69441
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any) {
|
|
69282
69442
|
return StorefrontApiFp(configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(fetch, basePath);
|
|
69283
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
|
+
},
|
|
69284
69454
|
};
|
|
69285
69455
|
};
|
|
69286
69456
|
|
|
@@ -71115,6 +71285,16 @@ export interface StorefrontApiInterface {
|
|
|
71115
71285
|
*/
|
|
71116
71286
|
updateTwilioAccount(esp_twilio_uuid: string, twilio: Twilio, options?: any): Promise<TwilioResponse>;
|
|
71117
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
|
+
|
|
71118
71298
|
}
|
|
71119
71299
|
|
|
71120
71300
|
/**
|
|
@@ -73277,6 +73457,18 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
73277
73457
|
return StorefrontApiFp(this.configuration).updateTwilioAccount(esp_twilio_uuid, twilio, options)(this.fetch, this.basePath);
|
|
73278
73458
|
}
|
|
73279
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
|
+
|
|
73280
73472
|
}
|
|
73281
73473
|
|
|
73282
73474
|
/**
|
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}
|
|
@@ -11843,6 +11849,18 @@ export interface EmailCampaign {
|
|
|
11843
11849
|
* @memberof EmailCampaign
|
|
11844
11850
|
*/
|
|
11845
11851
|
screenshot_large_full_url?: string;
|
|
11852
|
+
/**
|
|
11853
|
+
* Twilio Account UUID. Null for none
|
|
11854
|
+
* @type {string}
|
|
11855
|
+
* @memberof EmailCampaign
|
|
11856
|
+
*/
|
|
11857
|
+
sms_esp_twilio_uuid?: string;
|
|
11858
|
+
/**
|
|
11859
|
+
* Twilio SMS Phone Number. Null for none
|
|
11860
|
+
* @type {string}
|
|
11861
|
+
* @memberof EmailCampaign
|
|
11862
|
+
*/
|
|
11863
|
+
sms_phone_number?: string;
|
|
11846
11864
|
/**
|
|
11847
11865
|
* Status of the campaign of draft, archived, and sent
|
|
11848
11866
|
* @type {string}
|
|
@@ -14031,6 +14049,18 @@ export interface EmailFlow {
|
|
|
14031
14049
|
* @memberof EmailFlow
|
|
14032
14050
|
*/
|
|
14033
14051
|
screenshot_large_full_url?: string;
|
|
14052
|
+
/**
|
|
14053
|
+
* Twilio Account UUID. Null for none
|
|
14054
|
+
* @type {string}
|
|
14055
|
+
* @memberof EmailFlow
|
|
14056
|
+
*/
|
|
14057
|
+
sms_esp_twilio_uuid?: string;
|
|
14058
|
+
/**
|
|
14059
|
+
* Twilio SMS Phone Number. Null for none
|
|
14060
|
+
* @type {string}
|
|
14061
|
+
* @memberof EmailFlow
|
|
14062
|
+
*/
|
|
14063
|
+
sms_phone_number?: string;
|
|
14034
14064
|
/**
|
|
14035
14065
|
* Status of the campaign of draft, archived, active, and inactive
|
|
14036
14066
|
* @type {string}
|
|
@@ -16120,6 +16150,18 @@ export interface EmailSettings {
|
|
|
16120
16150
|
* @memberof EmailSettings
|
|
16121
16151
|
*/
|
|
16122
16152
|
postcard_from_state?: string;
|
|
16153
|
+
/**
|
|
16154
|
+
*
|
|
16155
|
+
* @type {string}
|
|
16156
|
+
* @memberof EmailSettings
|
|
16157
|
+
*/
|
|
16158
|
+
sms_esp_twilio_uuid?: string;
|
|
16159
|
+
/**
|
|
16160
|
+
*
|
|
16161
|
+
* @type {string}
|
|
16162
|
+
* @memberof EmailSettings
|
|
16163
|
+
*/
|
|
16164
|
+
sms_phone_number?: string;
|
|
16123
16165
|
/**
|
|
16124
16166
|
*
|
|
16125
16167
|
* @type {string}
|
|
@@ -28635,6 +28677,38 @@ export interface ResultSet {
|
|
|
28635
28677
|
*/
|
|
28636
28678
|
total_records?: number;
|
|
28637
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
|
+
}
|
|
28638
28712
|
/**
|
|
28639
28713
|
*
|
|
28640
28714
|
* @export
|
|
@@ -43085,6 +43159,14 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
43085
43159
|
* @throws {RequiredError}
|
|
43086
43160
|
*/
|
|
43087
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;
|
|
43088
43170
|
};
|
|
43089
43171
|
/**
|
|
43090
43172
|
* StorefrontApi - functional programming interface
|
|
@@ -44588,6 +44670,14 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
44588
44670
|
* @throws {RequiredError}
|
|
44589
44671
|
*/
|
|
44590
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>;
|
|
44591
44681
|
};
|
|
44592
44682
|
/**
|
|
44593
44683
|
* StorefrontApi - factory interface
|
|
@@ -46091,6 +46181,14 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
46091
46181
|
* @throws {RequiredError}
|
|
46092
46182
|
*/
|
|
46093
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>;
|
|
46094
46192
|
};
|
|
46095
46193
|
/**
|
|
46096
46194
|
* StorefrontApi - interface
|
|
@@ -47759,6 +47857,15 @@ export interface StorefrontApiInterface {
|
|
|
47759
47857
|
* @memberof StorefrontApiInterface
|
|
47760
47858
|
*/
|
|
47761
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>;
|
|
47762
47869
|
}
|
|
47763
47870
|
/**
|
|
47764
47871
|
* StorefrontApi - object-oriented interface
|
|
@@ -49428,6 +49535,15 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
49428
49535
|
* @memberof StorefrontApi
|
|
49429
49536
|
*/
|
|
49430
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>;
|
|
49431
49547
|
}
|
|
49432
49548
|
/**
|
|
49433
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;
|