ultracart_rest_api_v2_typescript 3.10.212 → 3.10.213
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 +123 -24
- package/dist/api.d.ts +47 -24
- package/dist/api.js +105 -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.213
|
|
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.213 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.213 | 06/24/2024 | conversation object cleanup |
|
|
57
58
|
| 3.10.212 | 06/14/2024 | pbx menu - add say voice property |
|
|
58
59
|
| 3.10.211 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
|
|
59
60
|
| 3.10.210 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
|
package/api.ts
CHANGED
|
@@ -42816,12 +42816,6 @@ export interface Twilio {
|
|
|
42816
42816
|
* @memberof Twilio
|
|
42817
42817
|
*/
|
|
42818
42818
|
api_key_name?: string;
|
|
42819
|
-
/**
|
|
42820
|
-
*
|
|
42821
|
-
* @type {string}
|
|
42822
|
-
* @memberof Twilio
|
|
42823
|
-
*/
|
|
42824
|
-
api_key_secret?: string;
|
|
42825
42819
|
/**
|
|
42826
42820
|
*
|
|
42827
42821
|
* @type {string}
|
|
@@ -42852,24 +42846,6 @@ export interface Twilio {
|
|
|
42852
42846
|
* @memberof Twilio
|
|
42853
42847
|
*/
|
|
42854
42848
|
phone_numbers?: Array<string>;
|
|
42855
|
-
/**
|
|
42856
|
-
*
|
|
42857
|
-
* @type {string}
|
|
42858
|
-
* @memberof Twilio
|
|
42859
|
-
*/
|
|
42860
|
-
private_key_pem?: string;
|
|
42861
|
-
/**
|
|
42862
|
-
*
|
|
42863
|
-
* @type {string}
|
|
42864
|
-
* @memberof Twilio
|
|
42865
|
-
*/
|
|
42866
|
-
public_key_pem?: string;
|
|
42867
|
-
/**
|
|
42868
|
-
*
|
|
42869
|
-
* @type {string}
|
|
42870
|
-
* @memberof Twilio
|
|
42871
|
-
*/
|
|
42872
|
-
public_key_sid?: string;
|
|
42873
42849
|
/**
|
|
42874
42850
|
*
|
|
42875
42851
|
* @type {string}
|
|
@@ -85675,6 +85651,72 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
85675
85651
|
options: localVarRequestOptions,
|
|
85676
85652
|
};
|
|
85677
85653
|
},
|
|
85654
|
+
/**
|
|
85655
|
+
*
|
|
85656
|
+
* @summary Sunset email segment
|
|
85657
|
+
* @param {number} storefront_oid
|
|
85658
|
+
* @param {string} email_segment_uuid
|
|
85659
|
+
* @param {*} [options] Override http request option.
|
|
85660
|
+
* @throws {RequiredError}
|
|
85661
|
+
*/
|
|
85662
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options: any = {}): FetchArgs {
|
|
85663
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
85664
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
85665
|
+
throw new RequiredError('storefront_oid','Required parameter storefront_oid was null or undefined when calling sunsetEmailSegment.');
|
|
85666
|
+
}
|
|
85667
|
+
// verify required parameter 'email_segment_uuid' is not null or undefined
|
|
85668
|
+
if (email_segment_uuid === null || email_segment_uuid === undefined) {
|
|
85669
|
+
throw new RequiredError('email_segment_uuid','Required parameter email_segment_uuid was null or undefined when calling sunsetEmailSegment.');
|
|
85670
|
+
}
|
|
85671
|
+
const localVarPath = `/storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset`
|
|
85672
|
+
.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(storefront_oid)))
|
|
85673
|
+
.replace(`{${"email_segment_uuid"}}`, encodeURIComponent(String(email_segment_uuid)));
|
|
85674
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
85675
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
85676
|
+
const localVarHeaderParameter = {} as any;
|
|
85677
|
+
const localVarQueryParameter = {} as any;
|
|
85678
|
+
|
|
85679
|
+
if(configuration && configuration.apiVersion) {
|
|
85680
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
85681
|
+
}
|
|
85682
|
+
|
|
85683
|
+
|
|
85684
|
+
|
|
85685
|
+
// authentication ultraCartBrowserApiKey required
|
|
85686
|
+
if (configuration && configuration.apiKey) {
|
|
85687
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
85688
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
85689
|
+
: configuration.apiKey;
|
|
85690
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
85691
|
+
}
|
|
85692
|
+
|
|
85693
|
+
// authentication ultraCartOauth required
|
|
85694
|
+
// oauth required
|
|
85695
|
+
if (configuration && configuration.accessToken) {
|
|
85696
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
85697
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_write"])
|
|
85698
|
+
: configuration.accessToken;
|
|
85699
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
85700
|
+
}
|
|
85701
|
+
|
|
85702
|
+
// authentication ultraCartSimpleApiKey required
|
|
85703
|
+
if (configuration && configuration.apiKey) {
|
|
85704
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
85705
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
85706
|
+
: configuration.apiKey;
|
|
85707
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
85708
|
+
}
|
|
85709
|
+
|
|
85710
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
85711
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
85712
|
+
delete localVarUrlObj.search;
|
|
85713
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
85714
|
+
|
|
85715
|
+
return {
|
|
85716
|
+
url: url.format(localVarUrlObj),
|
|
85717
|
+
options: localVarRequestOptions,
|
|
85718
|
+
};
|
|
85719
|
+
},
|
|
85678
85720
|
/**
|
|
85679
85721
|
* Remove favorite flag on screen recording
|
|
85680
85722
|
* @summary Remove favorite flag on screen recording
|
|
@@ -90850,6 +90892,28 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
90850
90892
|
});
|
|
90851
90893
|
};
|
|
90852
90894
|
},
|
|
90895
|
+
/**
|
|
90896
|
+
*
|
|
90897
|
+
* @summary Sunset email segment
|
|
90898
|
+
* @param {number} storefront_oid
|
|
90899
|
+
* @param {string} email_segment_uuid
|
|
90900
|
+
* @param {*} [options] Override http request option.
|
|
90901
|
+
* @throws {RequiredError}
|
|
90902
|
+
*/
|
|
90903
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
|
|
90904
|
+
const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).sunsetEmailSegment(storefront_oid, email_segment_uuid, options);
|
|
90905
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
90906
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
90907
|
+
|
|
90908
|
+
if (response.status >= 200 && response.status < 300) {
|
|
90909
|
+
return response;
|
|
90910
|
+
|
|
90911
|
+
} else {
|
|
90912
|
+
throw response;
|
|
90913
|
+
}
|
|
90914
|
+
});
|
|
90915
|
+
};
|
|
90916
|
+
},
|
|
90853
90917
|
/**
|
|
90854
90918
|
* Remove favorite flag on screen recording
|
|
90855
90919
|
* @summary Remove favorite flag on screen recording
|
|
@@ -93110,6 +93174,17 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
93110
93174
|
subscribeToEmailList(storefront_oid: number, email_list_uuid: string, customers: Array<EmailCustomer>, options?: any) {
|
|
93111
93175
|
return StorefrontApiFp(configuration).subscribeToEmailList(storefront_oid, email_list_uuid, customers, options)(fetch, basePath);
|
|
93112
93176
|
},
|
|
93177
|
+
/**
|
|
93178
|
+
*
|
|
93179
|
+
* @summary Sunset email segment
|
|
93180
|
+
* @param {number} storefront_oid
|
|
93181
|
+
* @param {string} email_segment_uuid
|
|
93182
|
+
* @param {*} [options] Override http request option.
|
|
93183
|
+
* @throws {RequiredError}
|
|
93184
|
+
*/
|
|
93185
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any) {
|
|
93186
|
+
return StorefrontApiFp(configuration).sunsetEmailSegment(storefront_oid, email_segment_uuid, options)(fetch, basePath);
|
|
93187
|
+
},
|
|
93113
93188
|
/**
|
|
93114
93189
|
* Remove favorite flag on screen recording
|
|
93115
93190
|
* @summary Remove favorite flag on screen recording
|
|
@@ -95084,6 +95159,17 @@ export interface StorefrontApiInterface {
|
|
|
95084
95159
|
*/
|
|
95085
95160
|
subscribeToEmailList(storefront_oid: number, email_list_uuid: string, customers: Array<EmailCustomer>, options?: any): Promise<EmailListSubscribeResponse>;
|
|
95086
95161
|
|
|
95162
|
+
/**
|
|
95163
|
+
*
|
|
95164
|
+
* @summary Sunset email segment
|
|
95165
|
+
* @param {number} storefront_oid
|
|
95166
|
+
* @param {string} email_segment_uuid
|
|
95167
|
+
* @param {*} [options] Override http request option.
|
|
95168
|
+
* @throws {RequiredError}
|
|
95169
|
+
* @memberof StorefrontApiInterface
|
|
95170
|
+
*/
|
|
95171
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any): Promise<{}>;
|
|
95172
|
+
|
|
95087
95173
|
/**
|
|
95088
95174
|
* Remove favorite flag on screen recording
|
|
95089
95175
|
* @summary Remove favorite flag on screen recording
|
|
@@ -97358,6 +97444,19 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
97358
97444
|
return StorefrontApiFp(this.configuration).subscribeToEmailList(storefront_oid, email_list_uuid, customers, options)(this.fetch, this.basePath);
|
|
97359
97445
|
}
|
|
97360
97446
|
|
|
97447
|
+
/**
|
|
97448
|
+
*
|
|
97449
|
+
* @summary Sunset email segment
|
|
97450
|
+
* @param {number} storefront_oid
|
|
97451
|
+
* @param {string} email_segment_uuid
|
|
97452
|
+
* @param {*} [options] Override http request option.
|
|
97453
|
+
* @throws {RequiredError}
|
|
97454
|
+
* @memberof StorefrontApi
|
|
97455
|
+
*/
|
|
97456
|
+
public sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any) {
|
|
97457
|
+
return StorefrontApiFp(this.configuration).sunsetEmailSegment(storefront_oid, email_segment_uuid, options)(this.fetch, this.basePath);
|
|
97458
|
+
}
|
|
97459
|
+
|
|
97361
97460
|
/**
|
|
97362
97461
|
* Remove favorite flag on screen recording
|
|
97363
97462
|
* @summary Remove favorite flag on screen recording
|
package/dist/api.d.ts
CHANGED
|
@@ -41915,12 +41915,6 @@ export interface Twilio {
|
|
|
41915
41915
|
* @memberof Twilio
|
|
41916
41916
|
*/
|
|
41917
41917
|
api_key_name?: string;
|
|
41918
|
-
/**
|
|
41919
|
-
*
|
|
41920
|
-
* @type {string}
|
|
41921
|
-
* @memberof Twilio
|
|
41922
|
-
*/
|
|
41923
|
-
api_key_secret?: string;
|
|
41924
41918
|
/**
|
|
41925
41919
|
*
|
|
41926
41920
|
* @type {string}
|
|
@@ -41951,24 +41945,6 @@ export interface Twilio {
|
|
|
41951
41945
|
* @memberof Twilio
|
|
41952
41946
|
*/
|
|
41953
41947
|
phone_numbers?: Array<string>;
|
|
41954
|
-
/**
|
|
41955
|
-
*
|
|
41956
|
-
* @type {string}
|
|
41957
|
-
* @memberof Twilio
|
|
41958
|
-
*/
|
|
41959
|
-
private_key_pem?: string;
|
|
41960
|
-
/**
|
|
41961
|
-
*
|
|
41962
|
-
* @type {string}
|
|
41963
|
-
* @memberof Twilio
|
|
41964
|
-
*/
|
|
41965
|
-
public_key_pem?: string;
|
|
41966
|
-
/**
|
|
41967
|
-
*
|
|
41968
|
-
* @type {string}
|
|
41969
|
-
* @memberof Twilio
|
|
41970
|
-
*/
|
|
41971
|
-
public_key_sid?: string;
|
|
41972
41948
|
/**
|
|
41973
41949
|
*
|
|
41974
41950
|
* @type {string}
|
|
@@ -58089,6 +58065,15 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
58089
58065
|
* @throws {RequiredError}
|
|
58090
58066
|
*/
|
|
58091
58067
|
subscribeToEmailList(storefront_oid: number, email_list_uuid: string, customers: Array<EmailCustomer>, options?: any): FetchArgs;
|
|
58068
|
+
/**
|
|
58069
|
+
*
|
|
58070
|
+
* @summary Sunset email segment
|
|
58071
|
+
* @param {number} storefront_oid
|
|
58072
|
+
* @param {string} email_segment_uuid
|
|
58073
|
+
* @param {*} [options] Override http request option.
|
|
58074
|
+
* @throws {RequiredError}
|
|
58075
|
+
*/
|
|
58076
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any): FetchArgs;
|
|
58092
58077
|
/**
|
|
58093
58078
|
* Remove favorite flag on screen recording
|
|
58094
58079
|
* @summary Remove favorite flag on screen recording
|
|
@@ -59708,6 +59693,15 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
59708
59693
|
* @throws {RequiredError}
|
|
59709
59694
|
*/
|
|
59710
59695
|
subscribeToEmailList(storefront_oid: number, email_list_uuid: string, customers: Array<EmailCustomer>, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailListSubscribeResponse>;
|
|
59696
|
+
/**
|
|
59697
|
+
*
|
|
59698
|
+
* @summary Sunset email segment
|
|
59699
|
+
* @param {number} storefront_oid
|
|
59700
|
+
* @param {string} email_segment_uuid
|
|
59701
|
+
* @param {*} [options] Override http request option.
|
|
59702
|
+
* @throws {RequiredError}
|
|
59703
|
+
*/
|
|
59704
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
59711
59705
|
/**
|
|
59712
59706
|
* Remove favorite flag on screen recording
|
|
59713
59707
|
* @summary Remove favorite flag on screen recording
|
|
@@ -61327,6 +61321,15 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
61327
61321
|
* @throws {RequiredError}
|
|
61328
61322
|
*/
|
|
61329
61323
|
subscribeToEmailList(storefront_oid: number, email_list_uuid: string, customers: Array<EmailCustomer>, options?: any): Promise<EmailListSubscribeResponse>;
|
|
61324
|
+
/**
|
|
61325
|
+
*
|
|
61326
|
+
* @summary Sunset email segment
|
|
61327
|
+
* @param {number} storefront_oid
|
|
61328
|
+
* @param {string} email_segment_uuid
|
|
61329
|
+
* @param {*} [options] Override http request option.
|
|
61330
|
+
* @throws {RequiredError}
|
|
61331
|
+
*/
|
|
61332
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any): Promise<Response>;
|
|
61330
61333
|
/**
|
|
61331
61334
|
* Remove favorite flag on screen recording
|
|
61332
61335
|
* @summary Remove favorite flag on screen recording
|
|
@@ -63097,6 +63100,16 @@ export interface StorefrontApiInterface {
|
|
|
63097
63100
|
* @memberof StorefrontApiInterface
|
|
63098
63101
|
*/
|
|
63099
63102
|
subscribeToEmailList(storefront_oid: number, email_list_uuid: string, customers: Array<EmailCustomer>, options?: any): Promise<EmailListSubscribeResponse>;
|
|
63103
|
+
/**
|
|
63104
|
+
*
|
|
63105
|
+
* @summary Sunset email segment
|
|
63106
|
+
* @param {number} storefront_oid
|
|
63107
|
+
* @param {string} email_segment_uuid
|
|
63108
|
+
* @param {*} [options] Override http request option.
|
|
63109
|
+
* @throws {RequiredError}
|
|
63110
|
+
* @memberof StorefrontApiInterface
|
|
63111
|
+
*/
|
|
63112
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any): Promise<{}>;
|
|
63100
63113
|
/**
|
|
63101
63114
|
* Remove favorite flag on screen recording
|
|
63102
63115
|
* @summary Remove favorite flag on screen recording
|
|
@@ -64894,6 +64907,16 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
64894
64907
|
* @memberof StorefrontApi
|
|
64895
64908
|
*/
|
|
64896
64909
|
subscribeToEmailList(storefront_oid: number, email_list_uuid: string, customers: Array<EmailCustomer>, options?: any): Promise<EmailListSubscribeResponse>;
|
|
64910
|
+
/**
|
|
64911
|
+
*
|
|
64912
|
+
* @summary Sunset email segment
|
|
64913
|
+
* @param {number} storefront_oid
|
|
64914
|
+
* @param {string} email_segment_uuid
|
|
64915
|
+
* @param {*} [options] Override http request option.
|
|
64916
|
+
* @throws {RequiredError}
|
|
64917
|
+
* @memberof StorefrontApi
|
|
64918
|
+
*/
|
|
64919
|
+
sunsetEmailSegment(storefront_oid: number, email_segment_uuid: string, options?: any): Promise<Response>;
|
|
64897
64920
|
/**
|
|
64898
64921
|
* Remove favorite flag on screen recording
|
|
64899
64922
|
* @summary Remove favorite flag on screen recording
|
package/dist/api.js
CHANGED
|
@@ -36591,6 +36591,65 @@ var StorefrontApiFetchParamCreator = function (configuration) {
|
|
|
36591
36591
|
options: localVarRequestOptions,
|
|
36592
36592
|
};
|
|
36593
36593
|
},
|
|
36594
|
+
/**
|
|
36595
|
+
*
|
|
36596
|
+
* @summary Sunset email segment
|
|
36597
|
+
* @param {number} storefront_oid
|
|
36598
|
+
* @param {string} email_segment_uuid
|
|
36599
|
+
* @param {*} [options] Override http request option.
|
|
36600
|
+
* @throws {RequiredError}
|
|
36601
|
+
*/
|
|
36602
|
+
sunsetEmailSegment: function (storefront_oid, email_segment_uuid, options) {
|
|
36603
|
+
if (options === void 0) { options = {}; }
|
|
36604
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
36605
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
36606
|
+
throw new RequiredError('storefront_oid', 'Required parameter storefront_oid was null or undefined when calling sunsetEmailSegment.');
|
|
36607
|
+
}
|
|
36608
|
+
// verify required parameter 'email_segment_uuid' is not null or undefined
|
|
36609
|
+
if (email_segment_uuid === null || email_segment_uuid === undefined) {
|
|
36610
|
+
throw new RequiredError('email_segment_uuid', 'Required parameter email_segment_uuid was null or undefined when calling sunsetEmailSegment.');
|
|
36611
|
+
}
|
|
36612
|
+
var localVarPath = "/storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset"
|
|
36613
|
+
.replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(storefront_oid)))
|
|
36614
|
+
.replace("{".concat("email_segment_uuid", "}"), encodeURIComponent(String(email_segment_uuid)));
|
|
36615
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
36616
|
+
var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
36617
|
+
var localVarHeaderParameter = {};
|
|
36618
|
+
var localVarQueryParameter = {};
|
|
36619
|
+
if (configuration && configuration.apiVersion) {
|
|
36620
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
36621
|
+
}
|
|
36622
|
+
// authentication ultraCartBrowserApiKey required
|
|
36623
|
+
if (configuration && configuration.apiKey) {
|
|
36624
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
36625
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
36626
|
+
: configuration.apiKey;
|
|
36627
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
36628
|
+
}
|
|
36629
|
+
// authentication ultraCartOauth required
|
|
36630
|
+
// oauth required
|
|
36631
|
+
if (configuration && configuration.accessToken) {
|
|
36632
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
36633
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_write"])
|
|
36634
|
+
: configuration.accessToken;
|
|
36635
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
36636
|
+
}
|
|
36637
|
+
// authentication ultraCartSimpleApiKey required
|
|
36638
|
+
if (configuration && configuration.apiKey) {
|
|
36639
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
36640
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
36641
|
+
: configuration.apiKey;
|
|
36642
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
36643
|
+
}
|
|
36644
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
36645
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
36646
|
+
delete localVarUrlObj.search;
|
|
36647
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
36648
|
+
return {
|
|
36649
|
+
url: url.format(localVarUrlObj),
|
|
36650
|
+
options: localVarRequestOptions,
|
|
36651
|
+
};
|
|
36652
|
+
},
|
|
36594
36653
|
/**
|
|
36595
36654
|
* Remove favorite flag on screen recording
|
|
36596
36655
|
* @summary Remove favorite flag on screen recording
|
|
@@ -41712,6 +41771,29 @@ var StorefrontApiFp = function (configuration) {
|
|
|
41712
41771
|
});
|
|
41713
41772
|
};
|
|
41714
41773
|
},
|
|
41774
|
+
/**
|
|
41775
|
+
*
|
|
41776
|
+
* @summary Sunset email segment
|
|
41777
|
+
* @param {number} storefront_oid
|
|
41778
|
+
* @param {string} email_segment_uuid
|
|
41779
|
+
* @param {*} [options] Override http request option.
|
|
41780
|
+
* @throws {RequiredError}
|
|
41781
|
+
*/
|
|
41782
|
+
sunsetEmailSegment: function (storefront_oid, email_segment_uuid, options) {
|
|
41783
|
+
var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).sunsetEmailSegment(storefront_oid, email_segment_uuid, options);
|
|
41784
|
+
return function (fetch, basePath) {
|
|
41785
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
41786
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
41787
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
41788
|
+
if (response.status >= 200 && response.status < 300) {
|
|
41789
|
+
return response;
|
|
41790
|
+
}
|
|
41791
|
+
else {
|
|
41792
|
+
throw response;
|
|
41793
|
+
}
|
|
41794
|
+
});
|
|
41795
|
+
};
|
|
41796
|
+
},
|
|
41715
41797
|
/**
|
|
41716
41798
|
* Remove favorite flag on screen recording
|
|
41717
41799
|
* @summary Remove favorite flag on screen recording
|
|
@@ -43998,6 +44080,17 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
|
|
|
43998
44080
|
subscribeToEmailList: function (storefront_oid, email_list_uuid, customers, options) {
|
|
43999
44081
|
return (0, exports.StorefrontApiFp)(configuration).subscribeToEmailList(storefront_oid, email_list_uuid, customers, options)(fetch, basePath);
|
|
44000
44082
|
},
|
|
44083
|
+
/**
|
|
44084
|
+
*
|
|
44085
|
+
* @summary Sunset email segment
|
|
44086
|
+
* @param {number} storefront_oid
|
|
44087
|
+
* @param {string} email_segment_uuid
|
|
44088
|
+
* @param {*} [options] Override http request option.
|
|
44089
|
+
* @throws {RequiredError}
|
|
44090
|
+
*/
|
|
44091
|
+
sunsetEmailSegment: function (storefront_oid, email_segment_uuid, options) {
|
|
44092
|
+
return (0, exports.StorefrontApiFp)(configuration).sunsetEmailSegment(storefront_oid, email_segment_uuid, options)(fetch, basePath);
|
|
44093
|
+
},
|
|
44001
44094
|
/**
|
|
44002
44095
|
* Remove favorite flag on screen recording
|
|
44003
44096
|
* @summary Remove favorite flag on screen recording
|
|
@@ -46127,6 +46220,18 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
46127
46220
|
StorefrontApi.prototype.subscribeToEmailList = function (storefront_oid, email_list_uuid, customers, options) {
|
|
46128
46221
|
return (0, exports.StorefrontApiFp)(this.configuration).subscribeToEmailList(storefront_oid, email_list_uuid, customers, options)(this.fetch, this.basePath);
|
|
46129
46222
|
};
|
|
46223
|
+
/**
|
|
46224
|
+
*
|
|
46225
|
+
* @summary Sunset email segment
|
|
46226
|
+
* @param {number} storefront_oid
|
|
46227
|
+
* @param {string} email_segment_uuid
|
|
46228
|
+
* @param {*} [options] Override http request option.
|
|
46229
|
+
* @throws {RequiredError}
|
|
46230
|
+
* @memberof StorefrontApi
|
|
46231
|
+
*/
|
|
46232
|
+
StorefrontApi.prototype.sunsetEmailSegment = function (storefront_oid, email_segment_uuid, options) {
|
|
46233
|
+
return (0, exports.StorefrontApiFp)(this.configuration).sunsetEmailSegment(storefront_oid, email_segment_uuid, options)(this.fetch, this.basePath);
|
|
46234
|
+
};
|
|
46130
46235
|
/**
|
|
46131
46236
|
* Remove favorite flag on screen recording
|
|
46132
46237
|
* @summary Remove favorite flag on screen recording
|