ultracart_rest_api_v2_typescript 3.11.17 → 3.11.18
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 +3 -2
- package/api.ts +151 -6
- package/dist/api.d.ts +79 -6
- package/dist/api.js +96 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.11.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.11.18
|
|
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.11.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.11.18 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.11.18 | 08/04/2025 | more internal development on loyalty step for storefront flows |
|
|
57
58
|
| 3.11.17 | 08/04/2025 | small changes to internal flow app to support loyalty tier moves |
|
|
58
59
|
| 3.11.16 | 07/28/2025 | updated doc samples |
|
|
59
60
|
| 3.11.15 | 07/28/2025 | new order methods for blocking and unblocking refunds |
|
package/api.ts
CHANGED
|
@@ -20245,6 +20245,44 @@ export interface EmailEditorTokenResponse {
|
|
|
20245
20245
|
warning?: Warning;
|
|
20246
20246
|
}
|
|
20247
20247
|
|
|
20248
|
+
/**
|
|
20249
|
+
*
|
|
20250
|
+
* @export
|
|
20251
|
+
* @interface EmailEditorValuesResponse
|
|
20252
|
+
*/
|
|
20253
|
+
export interface EmailEditorValuesResponse {
|
|
20254
|
+
/**
|
|
20255
|
+
*
|
|
20256
|
+
* @type {ModelError}
|
|
20257
|
+
* @memberof EmailEditorValuesResponse
|
|
20258
|
+
*/
|
|
20259
|
+
error?: ModelError;
|
|
20260
|
+
/**
|
|
20261
|
+
*
|
|
20262
|
+
* @type {Array<string>}
|
|
20263
|
+
* @memberof EmailEditorValuesResponse
|
|
20264
|
+
*/
|
|
20265
|
+
loyalty_tiers?: Array<string>;
|
|
20266
|
+
/**
|
|
20267
|
+
*
|
|
20268
|
+
* @type {ResponseMetadata}
|
|
20269
|
+
* @memberof EmailEditorValuesResponse
|
|
20270
|
+
*/
|
|
20271
|
+
metadata?: ResponseMetadata;
|
|
20272
|
+
/**
|
|
20273
|
+
* Indicates if API call was successful
|
|
20274
|
+
* @type {boolean}
|
|
20275
|
+
* @memberof EmailEditorValuesResponse
|
|
20276
|
+
*/
|
|
20277
|
+
success?: boolean;
|
|
20278
|
+
/**
|
|
20279
|
+
*
|
|
20280
|
+
* @type {Warning}
|
|
20281
|
+
* @memberof EmailEditorValuesResponse
|
|
20282
|
+
*/
|
|
20283
|
+
warning?: Warning;
|
|
20284
|
+
}
|
|
20285
|
+
|
|
20248
20286
|
/**
|
|
20249
20287
|
*
|
|
20250
20288
|
* @export
|
|
@@ -24257,12 +24295,6 @@ export interface EmailWebhookEditorValuesResponse {
|
|
|
24257
24295
|
* @memberof EmailWebhookEditorValuesResponse
|
|
24258
24296
|
*/
|
|
24259
24297
|
error?: ModelError;
|
|
24260
|
-
/**
|
|
24261
|
-
*
|
|
24262
|
-
* @type {Array<string>}
|
|
24263
|
-
* @memberof EmailWebhookEditorValuesResponse
|
|
24264
|
-
*/
|
|
24265
|
-
loyalty_tiers?: Array<string>;
|
|
24266
24298
|
/**
|
|
24267
24299
|
*
|
|
24268
24300
|
* @type {ResponseMetadata}
|
|
@@ -82582,6 +82614,66 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
82582
82614
|
|
|
82583
82615
|
|
|
82584
82616
|
|
|
82617
|
+
// authentication ultraCartBrowserApiKey required
|
|
82618
|
+
if (configuration && configuration.apiKey) {
|
|
82619
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
82620
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
82621
|
+
: configuration.apiKey;
|
|
82622
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
82623
|
+
}
|
|
82624
|
+
|
|
82625
|
+
// authentication ultraCartOauth required
|
|
82626
|
+
// oauth required
|
|
82627
|
+
if (configuration && configuration.accessToken) {
|
|
82628
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
82629
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_read"])
|
|
82630
|
+
: configuration.accessToken;
|
|
82631
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
82632
|
+
}
|
|
82633
|
+
|
|
82634
|
+
// authentication ultraCartSimpleApiKey required
|
|
82635
|
+
if (configuration && configuration.apiKey) {
|
|
82636
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
82637
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
82638
|
+
: configuration.apiKey;
|
|
82639
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
82640
|
+
}
|
|
82641
|
+
|
|
82642
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
82643
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
82644
|
+
delete localVarUrlObj.search;
|
|
82645
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
82646
|
+
|
|
82647
|
+
return {
|
|
82648
|
+
url: url.format(localVarUrlObj),
|
|
82649
|
+
options: localVarRequestOptions,
|
|
82650
|
+
};
|
|
82651
|
+
},
|
|
82652
|
+
/**
|
|
82653
|
+
*
|
|
82654
|
+
* @summary Get email merchant specific editor values
|
|
82655
|
+
* @param {number} storefront_oid
|
|
82656
|
+
* @param {*} [options] Override http request option.
|
|
82657
|
+
* @throws {RequiredError}
|
|
82658
|
+
*/
|
|
82659
|
+
getEmailCommseqEditorValues(storefront_oid: number, options: any = {}): FetchArgs {
|
|
82660
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
82661
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
82662
|
+
throw new RequiredError('storefront_oid','Required parameter storefront_oid was null or undefined when calling getEmailCommseqEditorValues.');
|
|
82663
|
+
}
|
|
82664
|
+
const localVarPath = `/storefront/{storefront_oid}/email/commseqs/editorValues`
|
|
82665
|
+
.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(storefront_oid)));
|
|
82666
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
82667
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
82668
|
+
const localVarHeaderParameter = {} as any;
|
|
82669
|
+
const localVarQueryParameter = {} as any;
|
|
82670
|
+
|
|
82671
|
+
if(configuration && configuration.apiVersion) {
|
|
82672
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
82673
|
+
}
|
|
82674
|
+
|
|
82675
|
+
|
|
82676
|
+
|
|
82585
82677
|
// authentication ultraCartBrowserApiKey required
|
|
82586
82678
|
if (configuration && configuration.apiKey) {
|
|
82587
82679
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -92845,6 +92937,27 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
92845
92937
|
});
|
|
92846
92938
|
};
|
|
92847
92939
|
},
|
|
92940
|
+
/**
|
|
92941
|
+
*
|
|
92942
|
+
* @summary Get email merchant specific editor values
|
|
92943
|
+
* @param {number} storefront_oid
|
|
92944
|
+
* @param {*} [options] Override http request option.
|
|
92945
|
+
* @throws {RequiredError}
|
|
92946
|
+
*/
|
|
92947
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailEditorValuesResponse> {
|
|
92948
|
+
const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).getEmailCommseqEditorValues(storefront_oid, options);
|
|
92949
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
92950
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
92951
|
+
|
|
92952
|
+
if (response.status >= 200 && response.status < 300) {
|
|
92953
|
+
return response.json();
|
|
92954
|
+
|
|
92955
|
+
} else {
|
|
92956
|
+
throw response;
|
|
92957
|
+
}
|
|
92958
|
+
});
|
|
92959
|
+
};
|
|
92960
|
+
},
|
|
92848
92961
|
/**
|
|
92849
92962
|
*
|
|
92850
92963
|
* @summary Get email communication sequence emails stats
|
|
@@ -96360,6 +96473,16 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
96360
96473
|
getEmailCommseq(storefront_oid: number, commseq_uuid: string, options?: any) {
|
|
96361
96474
|
return StorefrontApiFp(configuration).getEmailCommseq(storefront_oid, commseq_uuid, options)(fetch, basePath);
|
|
96362
96475
|
},
|
|
96476
|
+
/**
|
|
96477
|
+
*
|
|
96478
|
+
* @summary Get email merchant specific editor values
|
|
96479
|
+
* @param {number} storefront_oid
|
|
96480
|
+
* @param {*} [options] Override http request option.
|
|
96481
|
+
* @throws {RequiredError}
|
|
96482
|
+
*/
|
|
96483
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any) {
|
|
96484
|
+
return StorefrontApiFp(configuration).getEmailCommseqEditorValues(storefront_oid, options)(fetch, basePath);
|
|
96485
|
+
},
|
|
96363
96486
|
/**
|
|
96364
96487
|
*
|
|
96365
96488
|
* @summary Get email communication sequence emails stats
|
|
@@ -98357,6 +98480,16 @@ export interface StorefrontApiInterface {
|
|
|
98357
98480
|
*/
|
|
98358
98481
|
getEmailCommseq(storefront_oid: number, commseq_uuid: string, options?: any): Promise<EmailCommseqResponse>;
|
|
98359
98482
|
|
|
98483
|
+
/**
|
|
98484
|
+
*
|
|
98485
|
+
* @summary Get email merchant specific editor values
|
|
98486
|
+
* @param {number} storefront_oid
|
|
98487
|
+
* @param {*} [options] Override http request option.
|
|
98488
|
+
* @throws {RequiredError}
|
|
98489
|
+
* @memberof StorefrontApiInterface
|
|
98490
|
+
*/
|
|
98491
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any): Promise<EmailEditorValuesResponse>;
|
|
98492
|
+
|
|
98360
98493
|
/**
|
|
98361
98494
|
*
|
|
98362
98495
|
* @summary Get email communication sequence emails stats
|
|
@@ -100434,6 +100567,18 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
100434
100567
|
return StorefrontApiFp(this.configuration).getEmailCommseq(storefront_oid, commseq_uuid, options)(this.fetch, this.basePath);
|
|
100435
100568
|
}
|
|
100436
100569
|
|
|
100570
|
+
/**
|
|
100571
|
+
*
|
|
100572
|
+
* @summary Get email merchant specific editor values
|
|
100573
|
+
* @param {number} storefront_oid
|
|
100574
|
+
* @param {*} [options] Override http request option.
|
|
100575
|
+
* @throws {RequiredError}
|
|
100576
|
+
* @memberof StorefrontApi
|
|
100577
|
+
*/
|
|
100578
|
+
public getEmailCommseqEditorValues(storefront_oid: number, options?: any) {
|
|
100579
|
+
return StorefrontApiFp(this.configuration).getEmailCommseqEditorValues(storefront_oid, options)(this.fetch, this.basePath);
|
|
100580
|
+
}
|
|
100581
|
+
|
|
100437
100582
|
/**
|
|
100438
100583
|
*
|
|
100439
100584
|
* @summary Get email communication sequence emails stats
|
package/dist/api.d.ts
CHANGED
|
@@ -19785,6 +19785,43 @@ export interface EmailEditorTokenResponse {
|
|
|
19785
19785
|
*/
|
|
19786
19786
|
warning?: Warning;
|
|
19787
19787
|
}
|
|
19788
|
+
/**
|
|
19789
|
+
*
|
|
19790
|
+
* @export
|
|
19791
|
+
* @interface EmailEditorValuesResponse
|
|
19792
|
+
*/
|
|
19793
|
+
export interface EmailEditorValuesResponse {
|
|
19794
|
+
/**
|
|
19795
|
+
*
|
|
19796
|
+
* @type {ModelError}
|
|
19797
|
+
* @memberof EmailEditorValuesResponse
|
|
19798
|
+
*/
|
|
19799
|
+
error?: ModelError;
|
|
19800
|
+
/**
|
|
19801
|
+
*
|
|
19802
|
+
* @type {Array<string>}
|
|
19803
|
+
* @memberof EmailEditorValuesResponse
|
|
19804
|
+
*/
|
|
19805
|
+
loyalty_tiers?: Array<string>;
|
|
19806
|
+
/**
|
|
19807
|
+
*
|
|
19808
|
+
* @type {ResponseMetadata}
|
|
19809
|
+
* @memberof EmailEditorValuesResponse
|
|
19810
|
+
*/
|
|
19811
|
+
metadata?: ResponseMetadata;
|
|
19812
|
+
/**
|
|
19813
|
+
* Indicates if API call was successful
|
|
19814
|
+
* @type {boolean}
|
|
19815
|
+
* @memberof EmailEditorValuesResponse
|
|
19816
|
+
*/
|
|
19817
|
+
success?: boolean;
|
|
19818
|
+
/**
|
|
19819
|
+
*
|
|
19820
|
+
* @type {Warning}
|
|
19821
|
+
* @memberof EmailEditorValuesResponse
|
|
19822
|
+
*/
|
|
19823
|
+
warning?: Warning;
|
|
19824
|
+
}
|
|
19788
19825
|
/**
|
|
19789
19826
|
*
|
|
19790
19827
|
* @export
|
|
@@ -23718,12 +23755,6 @@ export interface EmailWebhookEditorValuesResponse {
|
|
|
23718
23755
|
* @memberof EmailWebhookEditorValuesResponse
|
|
23719
23756
|
*/
|
|
23720
23757
|
error?: ModelError;
|
|
23721
|
-
/**
|
|
23722
|
-
*
|
|
23723
|
-
* @type {Array<string>}
|
|
23724
|
-
* @memberof EmailWebhookEditorValuesResponse
|
|
23725
|
-
*/
|
|
23726
|
-
loyalty_tiers?: Array<string>;
|
|
23727
23758
|
/**
|
|
23728
23759
|
*
|
|
23729
23760
|
* @type {ResponseMetadata}
|
|
@@ -59630,6 +59661,14 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
59630
59661
|
* @throws {RequiredError}
|
|
59631
59662
|
*/
|
|
59632
59663
|
getEmailCommseq(storefront_oid: number, commseq_uuid: string, options?: any): FetchArgs;
|
|
59664
|
+
/**
|
|
59665
|
+
*
|
|
59666
|
+
* @summary Get email merchant specific editor values
|
|
59667
|
+
* @param {number} storefront_oid
|
|
59668
|
+
* @param {*} [options] Override http request option.
|
|
59669
|
+
* @throws {RequiredError}
|
|
59670
|
+
*/
|
|
59671
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any): FetchArgs;
|
|
59633
59672
|
/**
|
|
59634
59673
|
*
|
|
59635
59674
|
* @summary Get email communication sequence emails stats
|
|
@@ -61268,6 +61307,14 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
61268
61307
|
* @throws {RequiredError}
|
|
61269
61308
|
*/
|
|
61270
61309
|
getEmailCommseq(storefront_oid: number, commseq_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqResponse>;
|
|
61310
|
+
/**
|
|
61311
|
+
*
|
|
61312
|
+
* @summary Get email merchant specific editor values
|
|
61313
|
+
* @param {number} storefront_oid
|
|
61314
|
+
* @param {*} [options] Override http request option.
|
|
61315
|
+
* @throws {RequiredError}
|
|
61316
|
+
*/
|
|
61317
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailEditorValuesResponse>;
|
|
61271
61318
|
/**
|
|
61272
61319
|
*
|
|
61273
61320
|
* @summary Get email communication sequence emails stats
|
|
@@ -62906,6 +62953,14 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
62906
62953
|
* @throws {RequiredError}
|
|
62907
62954
|
*/
|
|
62908
62955
|
getEmailCommseq(storefront_oid: number, commseq_uuid: string, options?: any): Promise<EmailCommseqResponse>;
|
|
62956
|
+
/**
|
|
62957
|
+
*
|
|
62958
|
+
* @summary Get email merchant specific editor values
|
|
62959
|
+
* @param {number} storefront_oid
|
|
62960
|
+
* @param {*} [options] Override http request option.
|
|
62961
|
+
* @throws {RequiredError}
|
|
62962
|
+
*/
|
|
62963
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any): Promise<EmailEditorValuesResponse>;
|
|
62909
62964
|
/**
|
|
62910
62965
|
*
|
|
62911
62966
|
* @summary Get email communication sequence emails stats
|
|
@@ -64585,6 +64640,15 @@ export interface StorefrontApiInterface {
|
|
|
64585
64640
|
* @memberof StorefrontApiInterface
|
|
64586
64641
|
*/
|
|
64587
64642
|
getEmailCommseq(storefront_oid: number, commseq_uuid: string, options?: any): Promise<EmailCommseqResponse>;
|
|
64643
|
+
/**
|
|
64644
|
+
*
|
|
64645
|
+
* @summary Get email merchant specific editor values
|
|
64646
|
+
* @param {number} storefront_oid
|
|
64647
|
+
* @param {*} [options] Override http request option.
|
|
64648
|
+
* @throws {RequiredError}
|
|
64649
|
+
* @memberof StorefrontApiInterface
|
|
64650
|
+
*/
|
|
64651
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any): Promise<EmailEditorValuesResponse>;
|
|
64588
64652
|
/**
|
|
64589
64653
|
*
|
|
64590
64654
|
* @summary Get email communication sequence emails stats
|
|
@@ -66403,6 +66467,15 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
66403
66467
|
* @memberof StorefrontApi
|
|
66404
66468
|
*/
|
|
66405
66469
|
getEmailCommseq(storefront_oid: number, commseq_uuid: string, options?: any): Promise<EmailCommseqResponse>;
|
|
66470
|
+
/**
|
|
66471
|
+
*
|
|
66472
|
+
* @summary Get email merchant specific editor values
|
|
66473
|
+
* @param {number} storefront_oid
|
|
66474
|
+
* @param {*} [options] Override http request option.
|
|
66475
|
+
* @throws {RequiredError}
|
|
66476
|
+
* @memberof StorefrontApi
|
|
66477
|
+
*/
|
|
66478
|
+
getEmailCommseqEditorValues(storefront_oid: number, options?: any): Promise<EmailEditorValuesResponse>;
|
|
66406
66479
|
/**
|
|
66407
66480
|
*
|
|
66408
66481
|
* @summary Get email communication sequence emails stats
|
package/dist/api.js
CHANGED
|
@@ -32580,6 +32580,59 @@ var StorefrontApiFetchParamCreator = function (configuration) {
|
|
|
32580
32580
|
options: localVarRequestOptions,
|
|
32581
32581
|
};
|
|
32582
32582
|
},
|
|
32583
|
+
/**
|
|
32584
|
+
*
|
|
32585
|
+
* @summary Get email merchant specific editor values
|
|
32586
|
+
* @param {number} storefront_oid
|
|
32587
|
+
* @param {*} [options] Override http request option.
|
|
32588
|
+
* @throws {RequiredError}
|
|
32589
|
+
*/
|
|
32590
|
+
getEmailCommseqEditorValues: function (storefront_oid, options) {
|
|
32591
|
+
if (options === void 0) { options = {}; }
|
|
32592
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
32593
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
32594
|
+
throw new RequiredError('storefront_oid', 'Required parameter storefront_oid was null or undefined when calling getEmailCommseqEditorValues.');
|
|
32595
|
+
}
|
|
32596
|
+
var localVarPath = "/storefront/{storefront_oid}/email/commseqs/editorValues"
|
|
32597
|
+
.replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(storefront_oid)));
|
|
32598
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
32599
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
32600
|
+
var localVarHeaderParameter = {};
|
|
32601
|
+
var localVarQueryParameter = {};
|
|
32602
|
+
if (configuration && configuration.apiVersion) {
|
|
32603
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
32604
|
+
}
|
|
32605
|
+
// authentication ultraCartBrowserApiKey required
|
|
32606
|
+
if (configuration && configuration.apiKey) {
|
|
32607
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
32608
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
32609
|
+
: configuration.apiKey;
|
|
32610
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
32611
|
+
}
|
|
32612
|
+
// authentication ultraCartOauth required
|
|
32613
|
+
// oauth required
|
|
32614
|
+
if (configuration && configuration.accessToken) {
|
|
32615
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
32616
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_read"])
|
|
32617
|
+
: configuration.accessToken;
|
|
32618
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
32619
|
+
}
|
|
32620
|
+
// authentication ultraCartSimpleApiKey required
|
|
32621
|
+
if (configuration && configuration.apiKey) {
|
|
32622
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
32623
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
32624
|
+
: configuration.apiKey;
|
|
32625
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
32626
|
+
}
|
|
32627
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
32628
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
32629
|
+
delete localVarUrlObj.search;
|
|
32630
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
32631
|
+
return {
|
|
32632
|
+
url: url.format(localVarUrlObj),
|
|
32633
|
+
options: localVarRequestOptions,
|
|
32634
|
+
};
|
|
32635
|
+
},
|
|
32583
32636
|
/**
|
|
32584
32637
|
*
|
|
32585
32638
|
* @summary Get email communication sequence emails stats
|
|
@@ -41785,6 +41838,28 @@ var StorefrontApiFp = function (configuration) {
|
|
|
41785
41838
|
});
|
|
41786
41839
|
};
|
|
41787
41840
|
},
|
|
41841
|
+
/**
|
|
41842
|
+
*
|
|
41843
|
+
* @summary Get email merchant specific editor values
|
|
41844
|
+
* @param {number} storefront_oid
|
|
41845
|
+
* @param {*} [options] Override http request option.
|
|
41846
|
+
* @throws {RequiredError}
|
|
41847
|
+
*/
|
|
41848
|
+
getEmailCommseqEditorValues: function (storefront_oid, options) {
|
|
41849
|
+
var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).getEmailCommseqEditorValues(storefront_oid, options);
|
|
41850
|
+
return function (fetch, basePath) {
|
|
41851
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
41852
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
41853
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
41854
|
+
if (response.status >= 200 && response.status < 300) {
|
|
41855
|
+
return response.json();
|
|
41856
|
+
}
|
|
41857
|
+
else {
|
|
41858
|
+
throw response;
|
|
41859
|
+
}
|
|
41860
|
+
});
|
|
41861
|
+
};
|
|
41862
|
+
},
|
|
41788
41863
|
/**
|
|
41789
41864
|
*
|
|
41790
41865
|
* @summary Get email communication sequence emails stats
|
|
@@ -45438,6 +45513,16 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
|
|
|
45438
45513
|
getEmailCommseq: function (storefront_oid, commseq_uuid, options) {
|
|
45439
45514
|
return (0, exports.StorefrontApiFp)(configuration).getEmailCommseq(storefront_oid, commseq_uuid, options)(fetch, basePath);
|
|
45440
45515
|
},
|
|
45516
|
+
/**
|
|
45517
|
+
*
|
|
45518
|
+
* @summary Get email merchant specific editor values
|
|
45519
|
+
* @param {number} storefront_oid
|
|
45520
|
+
* @param {*} [options] Override http request option.
|
|
45521
|
+
* @throws {RequiredError}
|
|
45522
|
+
*/
|
|
45523
|
+
getEmailCommseqEditorValues: function (storefront_oid, options) {
|
|
45524
|
+
return (0, exports.StorefrontApiFp)(configuration).getEmailCommseqEditorValues(storefront_oid, options)(fetch, basePath);
|
|
45525
|
+
},
|
|
45441
45526
|
/**
|
|
45442
45527
|
*
|
|
45443
45528
|
* @summary Get email communication sequence emails stats
|
|
@@ -47480,6 +47565,17 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
47480
47565
|
StorefrontApi.prototype.getEmailCommseq = function (storefront_oid, commseq_uuid, options) {
|
|
47481
47566
|
return (0, exports.StorefrontApiFp)(this.configuration).getEmailCommseq(storefront_oid, commseq_uuid, options)(this.fetch, this.basePath);
|
|
47482
47567
|
};
|
|
47568
|
+
/**
|
|
47569
|
+
*
|
|
47570
|
+
* @summary Get email merchant specific editor values
|
|
47571
|
+
* @param {number} storefront_oid
|
|
47572
|
+
* @param {*} [options] Override http request option.
|
|
47573
|
+
* @throws {RequiredError}
|
|
47574
|
+
* @memberof StorefrontApi
|
|
47575
|
+
*/
|
|
47576
|
+
StorefrontApi.prototype.getEmailCommseqEditorValues = function (storefront_oid, options) {
|
|
47577
|
+
return (0, exports.StorefrontApiFp)(this.configuration).getEmailCommseqEditorValues(storefront_oid, options)(this.fetch, this.basePath);
|
|
47578
|
+
};
|
|
47483
47579
|
/**
|
|
47484
47580
|
*
|
|
47485
47581
|
* @summary Get email communication sequence emails stats
|