ultracart_rest_api_v2_typescript 3.10.57 → 3.10.58
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 +222 -0
- package/dist/api.d.ts +131 -0
- package/dist/api.js +125 -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.58
|
|
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.58 --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.58 | 10/26/2022 | esp - methods for sms testing |
|
|
57
58
|
| 3.10.57 | 10/17/2022 | conversations - add last_interactive_message_dts |
|
|
58
59
|
| 3.10.56 | 10/07/2022 | bug fix for digital items response |
|
|
59
60
|
| 3.10.55 | 10/05/2022 | storefront rest file cdn icon urls |
|
package/api.ts
CHANGED
|
@@ -13309,6 +13309,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
13309
13309
|
* @memberof EmailCommseqSequenceTestRequest
|
|
13310
13310
|
*/
|
|
13311
13311
|
postal_code?: string;
|
|
13312
|
+
/**
|
|
13313
|
+
*
|
|
13314
|
+
* @type {string}
|
|
13315
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13316
|
+
*/
|
|
13317
|
+
send_to_cellphone_e164?: string;
|
|
13312
13318
|
/**
|
|
13313
13319
|
*
|
|
13314
13320
|
* @type {string}
|
|
@@ -13361,6 +13367,76 @@ export interface EmailCommseqSequenceTestResponse {
|
|
|
13361
13367
|
warning?: Warning;
|
|
13362
13368
|
}
|
|
13363
13369
|
|
|
13370
|
+
/**
|
|
13371
|
+
*
|
|
13372
|
+
* @export
|
|
13373
|
+
* @interface EmailCommseqSmsSendTestRequest
|
|
13374
|
+
*/
|
|
13375
|
+
export interface EmailCommseqSmsSendTestRequest {
|
|
13376
|
+
/**
|
|
13377
|
+
*
|
|
13378
|
+
* @type {string}
|
|
13379
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
13380
|
+
*/
|
|
13381
|
+
esp_commseq_step_uuid?: string;
|
|
13382
|
+
/**
|
|
13383
|
+
*
|
|
13384
|
+
* @type {string}
|
|
13385
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
13386
|
+
*/
|
|
13387
|
+
esp_commseq_uuid?: string;
|
|
13388
|
+
/**
|
|
13389
|
+
*
|
|
13390
|
+
* @type {string}
|
|
13391
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
13392
|
+
*/
|
|
13393
|
+
send_to_cellphone_e164?: string;
|
|
13394
|
+
}
|
|
13395
|
+
|
|
13396
|
+
/**
|
|
13397
|
+
*
|
|
13398
|
+
* @export
|
|
13399
|
+
* @interface EmailCommseqSmsSendTestResponse
|
|
13400
|
+
*/
|
|
13401
|
+
export interface EmailCommseqSmsSendTestResponse {
|
|
13402
|
+
/**
|
|
13403
|
+
*
|
|
13404
|
+
* @type {string}
|
|
13405
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13406
|
+
*/
|
|
13407
|
+
body?: string;
|
|
13408
|
+
/**
|
|
13409
|
+
*
|
|
13410
|
+
* @type {ModelError}
|
|
13411
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13412
|
+
*/
|
|
13413
|
+
error?: ModelError;
|
|
13414
|
+
/**
|
|
13415
|
+
*
|
|
13416
|
+
* @type {Array<string>}
|
|
13417
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13418
|
+
*/
|
|
13419
|
+
media_urls?: Array<string>;
|
|
13420
|
+
/**
|
|
13421
|
+
*
|
|
13422
|
+
* @type {ResponseMetadata}
|
|
13423
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13424
|
+
*/
|
|
13425
|
+
metadata?: ResponseMetadata;
|
|
13426
|
+
/**
|
|
13427
|
+
* Indicates if API call was successful
|
|
13428
|
+
* @type {boolean}
|
|
13429
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13430
|
+
*/
|
|
13431
|
+
success?: boolean;
|
|
13432
|
+
/**
|
|
13433
|
+
*
|
|
13434
|
+
* @type {Warning}
|
|
13435
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13436
|
+
*/
|
|
13437
|
+
warning?: Warning;
|
|
13438
|
+
}
|
|
13439
|
+
|
|
13364
13440
|
/**
|
|
13365
13441
|
*
|
|
13366
13442
|
* @export
|
|
@@ -64145,6 +64221,87 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
64145
64221
|
options: localVarRequestOptions,
|
|
64146
64222
|
};
|
|
64147
64223
|
},
|
|
64224
|
+
/**
|
|
64225
|
+
*
|
|
64226
|
+
* @summary Send SMS test
|
|
64227
|
+
* @param {number} storefront_oid
|
|
64228
|
+
* @param {string} commseq_uuid
|
|
64229
|
+
* @param {string} commseq_step_uuid
|
|
64230
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
64231
|
+
* @param {*} [options] Override http request option.
|
|
64232
|
+
* @throws {RequiredError}
|
|
64233
|
+
*/
|
|
64234
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options: any = {}): FetchArgs {
|
|
64235
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
64236
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
64237
|
+
throw new RequiredError('storefront_oid','Required parameter storefront_oid was null or undefined when calling sendSmsTest.');
|
|
64238
|
+
}
|
|
64239
|
+
// verify required parameter 'commseq_uuid' is not null or undefined
|
|
64240
|
+
if (commseq_uuid === null || commseq_uuid === undefined) {
|
|
64241
|
+
throw new RequiredError('commseq_uuid','Required parameter commseq_uuid was null or undefined when calling sendSmsTest.');
|
|
64242
|
+
}
|
|
64243
|
+
// verify required parameter 'commseq_step_uuid' is not null or undefined
|
|
64244
|
+
if (commseq_step_uuid === null || commseq_step_uuid === undefined) {
|
|
64245
|
+
throw new RequiredError('commseq_step_uuid','Required parameter commseq_step_uuid was null or undefined when calling sendSmsTest.');
|
|
64246
|
+
}
|
|
64247
|
+
// verify required parameter 'email_commseq_sms_test_request' is not null or undefined
|
|
64248
|
+
if (email_commseq_sms_test_request === null || email_commseq_sms_test_request === undefined) {
|
|
64249
|
+
throw new RequiredError('email_commseq_sms_test_request','Required parameter email_commseq_sms_test_request was null or undefined when calling sendSmsTest.');
|
|
64250
|
+
}
|
|
64251
|
+
const localVarPath = `/storefront/{storefront_oid}/email/sms/{commseq_uuid}/{commseq_step_uuid}/test`
|
|
64252
|
+
.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(storefront_oid)))
|
|
64253
|
+
.replace(`{${"commseq_uuid"}}`, encodeURIComponent(String(commseq_uuid)))
|
|
64254
|
+
.replace(`{${"commseq_step_uuid"}}`, encodeURIComponent(String(commseq_step_uuid)));
|
|
64255
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
64256
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
64257
|
+
const localVarHeaderParameter = {} as any;
|
|
64258
|
+
const localVarQueryParameter = {} as any;
|
|
64259
|
+
|
|
64260
|
+
if(configuration && configuration.apiVersion) {
|
|
64261
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
64262
|
+
}
|
|
64263
|
+
|
|
64264
|
+
|
|
64265
|
+
|
|
64266
|
+
// authentication ultraCartBrowserApiKey required
|
|
64267
|
+
if (configuration && configuration.apiKey) {
|
|
64268
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
64269
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
64270
|
+
: configuration.apiKey;
|
|
64271
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
64272
|
+
}
|
|
64273
|
+
|
|
64274
|
+
// authentication ultraCartOauth required
|
|
64275
|
+
// oauth required
|
|
64276
|
+
if (configuration && configuration.accessToken) {
|
|
64277
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
64278
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_write"])
|
|
64279
|
+
: configuration.accessToken;
|
|
64280
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
64281
|
+
}
|
|
64282
|
+
|
|
64283
|
+
// authentication ultraCartSimpleApiKey required
|
|
64284
|
+
if (configuration && configuration.apiKey) {
|
|
64285
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
64286
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
64287
|
+
: configuration.apiKey;
|
|
64288
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
64289
|
+
}
|
|
64290
|
+
|
|
64291
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
64292
|
+
|
|
64293
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
64294
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
64295
|
+
delete localVarUrlObj.search;
|
|
64296
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
64297
|
+
const needsSerialization = (<any>"EmailCommseqSmsSendTestRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
64298
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(email_commseq_sms_test_request || {}) : (email_commseq_sms_test_request || "");
|
|
64299
|
+
|
|
64300
|
+
return {
|
|
64301
|
+
url: url.format(localVarUrlObj),
|
|
64302
|
+
options: localVarRequestOptions,
|
|
64303
|
+
};
|
|
64304
|
+
},
|
|
64148
64305
|
/**
|
|
64149
64306
|
*
|
|
64150
64307
|
* @summary Send webhook test
|
|
@@ -69400,6 +69557,30 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
69400
69557
|
});
|
|
69401
69558
|
};
|
|
69402
69559
|
},
|
|
69560
|
+
/**
|
|
69561
|
+
*
|
|
69562
|
+
* @summary Send SMS test
|
|
69563
|
+
* @param {number} storefront_oid
|
|
69564
|
+
* @param {string} commseq_uuid
|
|
69565
|
+
* @param {string} commseq_step_uuid
|
|
69566
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
69567
|
+
* @param {*} [options] Override http request option.
|
|
69568
|
+
* @throws {RequiredError}
|
|
69569
|
+
*/
|
|
69570
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqSmsSendTestResponse> {
|
|
69571
|
+
const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).sendSmsTest(storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options);
|
|
69572
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
69573
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
69574
|
+
|
|
69575
|
+
if (response.status >= 200 && response.status < 300) {
|
|
69576
|
+
return response.json();
|
|
69577
|
+
|
|
69578
|
+
} else {
|
|
69579
|
+
throw response;
|
|
69580
|
+
}
|
|
69581
|
+
});
|
|
69582
|
+
};
|
|
69583
|
+
},
|
|
69403
69584
|
/**
|
|
69404
69585
|
*
|
|
69405
69586
|
* @summary Send webhook test
|
|
@@ -71644,6 +71825,19 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
71644
71825
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any) {
|
|
71645
71826
|
return StorefrontApiFp(configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(fetch, basePath);
|
|
71646
71827
|
},
|
|
71828
|
+
/**
|
|
71829
|
+
*
|
|
71830
|
+
* @summary Send SMS test
|
|
71831
|
+
* @param {number} storefront_oid
|
|
71832
|
+
* @param {string} commseq_uuid
|
|
71833
|
+
* @param {string} commseq_step_uuid
|
|
71834
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
71835
|
+
* @param {*} [options] Override http request option.
|
|
71836
|
+
* @throws {RequiredError}
|
|
71837
|
+
*/
|
|
71838
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any) {
|
|
71839
|
+
return StorefrontApiFp(configuration).sendSmsTest(storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options)(fetch, basePath);
|
|
71840
|
+
},
|
|
71647
71841
|
/**
|
|
71648
71842
|
*
|
|
71649
71843
|
* @summary Send webhook test
|
|
@@ -73558,6 +73752,19 @@ export interface StorefrontApiInterface {
|
|
|
73558
73752
|
*/
|
|
73559
73753
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
73560
73754
|
|
|
73755
|
+
/**
|
|
73756
|
+
*
|
|
73757
|
+
* @summary Send SMS test
|
|
73758
|
+
* @param {number} storefront_oid
|
|
73759
|
+
* @param {string} commseq_uuid
|
|
73760
|
+
* @param {string} commseq_step_uuid
|
|
73761
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
73762
|
+
* @param {*} [options] Override http request option.
|
|
73763
|
+
* @throws {RequiredError}
|
|
73764
|
+
* @memberof StorefrontApiInterface
|
|
73765
|
+
*/
|
|
73766
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any): Promise<EmailCommseqSmsSendTestResponse>;
|
|
73767
|
+
|
|
73561
73768
|
/**
|
|
73562
73769
|
*
|
|
73563
73770
|
* @summary Send webhook test
|
|
@@ -75754,6 +75961,21 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
75754
75961
|
return StorefrontApiFp(this.configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(this.fetch, this.basePath);
|
|
75755
75962
|
}
|
|
75756
75963
|
|
|
75964
|
+
/**
|
|
75965
|
+
*
|
|
75966
|
+
* @summary Send SMS test
|
|
75967
|
+
* @param {number} storefront_oid
|
|
75968
|
+
* @param {string} commseq_uuid
|
|
75969
|
+
* @param {string} commseq_step_uuid
|
|
75970
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
75971
|
+
* @param {*} [options] Override http request option.
|
|
75972
|
+
* @throws {RequiredError}
|
|
75973
|
+
* @memberof StorefrontApi
|
|
75974
|
+
*/
|
|
75975
|
+
public sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any) {
|
|
75976
|
+
return StorefrontApiFp(this.configuration).sendSmsTest(storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options)(this.fetch, this.basePath);
|
|
75977
|
+
}
|
|
75978
|
+
|
|
75757
75979
|
/**
|
|
75758
75980
|
*
|
|
75759
75981
|
* @summary Send webhook test
|
package/dist/api.d.ts
CHANGED
|
@@ -13006,6 +13006,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
13006
13006
|
* @memberof EmailCommseqSequenceTestRequest
|
|
13007
13007
|
*/
|
|
13008
13008
|
postal_code?: string;
|
|
13009
|
+
/**
|
|
13010
|
+
*
|
|
13011
|
+
* @type {string}
|
|
13012
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13013
|
+
*/
|
|
13014
|
+
send_to_cellphone_e164?: string;
|
|
13009
13015
|
/**
|
|
13010
13016
|
*
|
|
13011
13017
|
* @type {string}
|
|
@@ -13056,6 +13062,74 @@ export interface EmailCommseqSequenceTestResponse {
|
|
|
13056
13062
|
*/
|
|
13057
13063
|
warning?: Warning;
|
|
13058
13064
|
}
|
|
13065
|
+
/**
|
|
13066
|
+
*
|
|
13067
|
+
* @export
|
|
13068
|
+
* @interface EmailCommseqSmsSendTestRequest
|
|
13069
|
+
*/
|
|
13070
|
+
export interface EmailCommseqSmsSendTestRequest {
|
|
13071
|
+
/**
|
|
13072
|
+
*
|
|
13073
|
+
* @type {string}
|
|
13074
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
13075
|
+
*/
|
|
13076
|
+
esp_commseq_step_uuid?: string;
|
|
13077
|
+
/**
|
|
13078
|
+
*
|
|
13079
|
+
* @type {string}
|
|
13080
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
13081
|
+
*/
|
|
13082
|
+
esp_commseq_uuid?: string;
|
|
13083
|
+
/**
|
|
13084
|
+
*
|
|
13085
|
+
* @type {string}
|
|
13086
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
13087
|
+
*/
|
|
13088
|
+
send_to_cellphone_e164?: string;
|
|
13089
|
+
}
|
|
13090
|
+
/**
|
|
13091
|
+
*
|
|
13092
|
+
* @export
|
|
13093
|
+
* @interface EmailCommseqSmsSendTestResponse
|
|
13094
|
+
*/
|
|
13095
|
+
export interface EmailCommseqSmsSendTestResponse {
|
|
13096
|
+
/**
|
|
13097
|
+
*
|
|
13098
|
+
* @type {string}
|
|
13099
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13100
|
+
*/
|
|
13101
|
+
body?: string;
|
|
13102
|
+
/**
|
|
13103
|
+
*
|
|
13104
|
+
* @type {ModelError}
|
|
13105
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13106
|
+
*/
|
|
13107
|
+
error?: ModelError;
|
|
13108
|
+
/**
|
|
13109
|
+
*
|
|
13110
|
+
* @type {Array<string>}
|
|
13111
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13112
|
+
*/
|
|
13113
|
+
media_urls?: Array<string>;
|
|
13114
|
+
/**
|
|
13115
|
+
*
|
|
13116
|
+
* @type {ResponseMetadata}
|
|
13117
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13118
|
+
*/
|
|
13119
|
+
metadata?: ResponseMetadata;
|
|
13120
|
+
/**
|
|
13121
|
+
* Indicates if API call was successful
|
|
13122
|
+
* @type {boolean}
|
|
13123
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13124
|
+
*/
|
|
13125
|
+
success?: boolean;
|
|
13126
|
+
/**
|
|
13127
|
+
*
|
|
13128
|
+
* @type {Warning}
|
|
13129
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
13130
|
+
*/
|
|
13131
|
+
warning?: Warning;
|
|
13132
|
+
}
|
|
13059
13133
|
/**
|
|
13060
13134
|
*
|
|
13061
13135
|
* @export
|
|
@@ -44216,6 +44290,17 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
44216
44290
|
* @throws {RequiredError}
|
|
44217
44291
|
*/
|
|
44218
44292
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any): FetchArgs;
|
|
44293
|
+
/**
|
|
44294
|
+
*
|
|
44295
|
+
* @summary Send SMS test
|
|
44296
|
+
* @param {number} storefront_oid
|
|
44297
|
+
* @param {string} commseq_uuid
|
|
44298
|
+
* @param {string} commseq_step_uuid
|
|
44299
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
44300
|
+
* @param {*} [options] Override http request option.
|
|
44301
|
+
* @throws {RequiredError}
|
|
44302
|
+
*/
|
|
44303
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any): FetchArgs;
|
|
44219
44304
|
/**
|
|
44220
44305
|
*
|
|
44221
44306
|
* @summary Send webhook test
|
|
@@ -45785,6 +45870,17 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
45785
45870
|
* @throws {RequiredError}
|
|
45786
45871
|
*/
|
|
45787
45872
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqPostcardSendTestResponse>;
|
|
45873
|
+
/**
|
|
45874
|
+
*
|
|
45875
|
+
* @summary Send SMS test
|
|
45876
|
+
* @param {number} storefront_oid
|
|
45877
|
+
* @param {string} commseq_uuid
|
|
45878
|
+
* @param {string} commseq_step_uuid
|
|
45879
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
45880
|
+
* @param {*} [options] Override http request option.
|
|
45881
|
+
* @throws {RequiredError}
|
|
45882
|
+
*/
|
|
45883
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqSmsSendTestResponse>;
|
|
45788
45884
|
/**
|
|
45789
45885
|
*
|
|
45790
45886
|
* @summary Send webhook test
|
|
@@ -47354,6 +47450,17 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
47354
47450
|
* @throws {RequiredError}
|
|
47355
47451
|
*/
|
|
47356
47452
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
47453
|
+
/**
|
|
47454
|
+
*
|
|
47455
|
+
* @summary Send SMS test
|
|
47456
|
+
* @param {number} storefront_oid
|
|
47457
|
+
* @param {string} commseq_uuid
|
|
47458
|
+
* @param {string} commseq_step_uuid
|
|
47459
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
47460
|
+
* @param {*} [options] Override http request option.
|
|
47461
|
+
* @throws {RequiredError}
|
|
47462
|
+
*/
|
|
47463
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any): Promise<EmailCommseqSmsSendTestResponse>;
|
|
47357
47464
|
/**
|
|
47358
47465
|
*
|
|
47359
47466
|
* @summary Send webhook test
|
|
@@ -49065,6 +49172,18 @@ export interface StorefrontApiInterface {
|
|
|
49065
49172
|
* @memberof StorefrontApiInterface
|
|
49066
49173
|
*/
|
|
49067
49174
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
49175
|
+
/**
|
|
49176
|
+
*
|
|
49177
|
+
* @summary Send SMS test
|
|
49178
|
+
* @param {number} storefront_oid
|
|
49179
|
+
* @param {string} commseq_uuid
|
|
49180
|
+
* @param {string} commseq_step_uuid
|
|
49181
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
49182
|
+
* @param {*} [options] Override http request option.
|
|
49183
|
+
* @throws {RequiredError}
|
|
49184
|
+
* @memberof StorefrontApiInterface
|
|
49185
|
+
*/
|
|
49186
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any): Promise<EmailCommseqSmsSendTestResponse>;
|
|
49068
49187
|
/**
|
|
49069
49188
|
*
|
|
49070
49189
|
* @summary Send webhook test
|
|
@@ -50807,6 +50926,18 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
50807
50926
|
* @memberof StorefrontApi
|
|
50808
50927
|
*/
|
|
50809
50928
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
50929
|
+
/**
|
|
50930
|
+
*
|
|
50931
|
+
* @summary Send SMS test
|
|
50932
|
+
* @param {number} storefront_oid
|
|
50933
|
+
* @param {string} commseq_uuid
|
|
50934
|
+
* @param {string} commseq_step_uuid
|
|
50935
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
50936
|
+
* @param {*} [options] Override http request option.
|
|
50937
|
+
* @throws {RequiredError}
|
|
50938
|
+
* @memberof StorefrontApi
|
|
50939
|
+
*/
|
|
50940
|
+
sendSmsTest(storefront_oid: number, commseq_uuid: string, commseq_step_uuid: string, email_commseq_sms_test_request: EmailCommseqSmsSendTestRequest, options?: any): Promise<EmailCommseqSmsSendTestResponse>;
|
|
50810
50941
|
/**
|
|
50811
50942
|
*
|
|
50812
50943
|
* @summary Send webhook test
|
package/dist/api.js
CHANGED
|
@@ -25578,6 +25578,79 @@ var StorefrontApiFetchParamCreator = function (configuration) {
|
|
|
25578
25578
|
options: localVarRequestOptions,
|
|
25579
25579
|
};
|
|
25580
25580
|
},
|
|
25581
|
+
/**
|
|
25582
|
+
*
|
|
25583
|
+
* @summary Send SMS test
|
|
25584
|
+
* @param {number} storefront_oid
|
|
25585
|
+
* @param {string} commseq_uuid
|
|
25586
|
+
* @param {string} commseq_step_uuid
|
|
25587
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
25588
|
+
* @param {*} [options] Override http request option.
|
|
25589
|
+
* @throws {RequiredError}
|
|
25590
|
+
*/
|
|
25591
|
+
sendSmsTest: function (storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options) {
|
|
25592
|
+
if (options === void 0) { options = {}; }
|
|
25593
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
25594
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
25595
|
+
throw new RequiredError('storefront_oid', 'Required parameter storefront_oid was null or undefined when calling sendSmsTest.');
|
|
25596
|
+
}
|
|
25597
|
+
// verify required parameter 'commseq_uuid' is not null or undefined
|
|
25598
|
+
if (commseq_uuid === null || commseq_uuid === undefined) {
|
|
25599
|
+
throw new RequiredError('commseq_uuid', 'Required parameter commseq_uuid was null or undefined when calling sendSmsTest.');
|
|
25600
|
+
}
|
|
25601
|
+
// verify required parameter 'commseq_step_uuid' is not null or undefined
|
|
25602
|
+
if (commseq_step_uuid === null || commseq_step_uuid === undefined) {
|
|
25603
|
+
throw new RequiredError('commseq_step_uuid', 'Required parameter commseq_step_uuid was null or undefined when calling sendSmsTest.');
|
|
25604
|
+
}
|
|
25605
|
+
// verify required parameter 'email_commseq_sms_test_request' is not null or undefined
|
|
25606
|
+
if (email_commseq_sms_test_request === null || email_commseq_sms_test_request === undefined) {
|
|
25607
|
+
throw new RequiredError('email_commseq_sms_test_request', 'Required parameter email_commseq_sms_test_request was null or undefined when calling sendSmsTest.');
|
|
25608
|
+
}
|
|
25609
|
+
var localVarPath = "/storefront/{storefront_oid}/email/sms/{commseq_uuid}/{commseq_step_uuid}/test"
|
|
25610
|
+
.replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(storefront_oid)))
|
|
25611
|
+
.replace("{".concat("commseq_uuid", "}"), encodeURIComponent(String(commseq_uuid)))
|
|
25612
|
+
.replace("{".concat("commseq_step_uuid", "}"), encodeURIComponent(String(commseq_step_uuid)));
|
|
25613
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
25614
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
25615
|
+
var localVarHeaderParameter = {};
|
|
25616
|
+
var localVarQueryParameter = {};
|
|
25617
|
+
if (configuration && configuration.apiVersion) {
|
|
25618
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
25619
|
+
}
|
|
25620
|
+
// authentication ultraCartBrowserApiKey required
|
|
25621
|
+
if (configuration && configuration.apiKey) {
|
|
25622
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
25623
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
25624
|
+
: configuration.apiKey;
|
|
25625
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
25626
|
+
}
|
|
25627
|
+
// authentication ultraCartOauth required
|
|
25628
|
+
// oauth required
|
|
25629
|
+
if (configuration && configuration.accessToken) {
|
|
25630
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
25631
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_write"])
|
|
25632
|
+
: configuration.accessToken;
|
|
25633
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
25634
|
+
}
|
|
25635
|
+
// authentication ultraCartSimpleApiKey required
|
|
25636
|
+
if (configuration && configuration.apiKey) {
|
|
25637
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
25638
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
25639
|
+
: configuration.apiKey;
|
|
25640
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
25641
|
+
}
|
|
25642
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25643
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
25644
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
25645
|
+
delete localVarUrlObj.search;
|
|
25646
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
25647
|
+
var needsSerialization = ("EmailCommseqSmsSendTestRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
25648
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(email_commseq_sms_test_request || {}) : (email_commseq_sms_test_request || "");
|
|
25649
|
+
return {
|
|
25650
|
+
url: url.format(localVarUrlObj),
|
|
25651
|
+
options: localVarRequestOptions,
|
|
25652
|
+
};
|
|
25653
|
+
},
|
|
25581
25654
|
/**
|
|
25582
25655
|
*
|
|
25583
25656
|
* @summary Send webhook test
|
|
@@ -30739,6 +30812,31 @@ var StorefrontApiFp = function (configuration) {
|
|
|
30739
30812
|
});
|
|
30740
30813
|
};
|
|
30741
30814
|
},
|
|
30815
|
+
/**
|
|
30816
|
+
*
|
|
30817
|
+
* @summary Send SMS test
|
|
30818
|
+
* @param {number} storefront_oid
|
|
30819
|
+
* @param {string} commseq_uuid
|
|
30820
|
+
* @param {string} commseq_step_uuid
|
|
30821
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
30822
|
+
* @param {*} [options] Override http request option.
|
|
30823
|
+
* @throws {RequiredError}
|
|
30824
|
+
*/
|
|
30825
|
+
sendSmsTest: function (storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options) {
|
|
30826
|
+
var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).sendSmsTest(storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options);
|
|
30827
|
+
return function (fetch, basePath) {
|
|
30828
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
30829
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
30830
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
30831
|
+
if (response.status >= 200 && response.status < 300) {
|
|
30832
|
+
return response.json();
|
|
30833
|
+
}
|
|
30834
|
+
else {
|
|
30835
|
+
throw response;
|
|
30836
|
+
}
|
|
30837
|
+
});
|
|
30838
|
+
};
|
|
30839
|
+
},
|
|
30742
30840
|
/**
|
|
30743
30841
|
*
|
|
30744
30842
|
* @summary Send webhook test
|
|
@@ -33013,6 +33111,19 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
|
|
|
33013
33111
|
sendPostcardTest: function (storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options) {
|
|
33014
33112
|
return (0, exports.StorefrontApiFp)(configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(fetch, basePath);
|
|
33015
33113
|
},
|
|
33114
|
+
/**
|
|
33115
|
+
*
|
|
33116
|
+
* @summary Send SMS test
|
|
33117
|
+
* @param {number} storefront_oid
|
|
33118
|
+
* @param {string} commseq_uuid
|
|
33119
|
+
* @param {string} commseq_step_uuid
|
|
33120
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
33121
|
+
* @param {*} [options] Override http request option.
|
|
33122
|
+
* @throws {RequiredError}
|
|
33123
|
+
*/
|
|
33124
|
+
sendSmsTest: function (storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options) {
|
|
33125
|
+
return (0, exports.StorefrontApiFp)(configuration).sendSmsTest(storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options)(fetch, basePath);
|
|
33126
|
+
},
|
|
33016
33127
|
/**
|
|
33017
33128
|
*
|
|
33018
33129
|
* @summary Send webhook test
|
|
@@ -35073,6 +35184,20 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
35073
35184
|
StorefrontApi.prototype.sendPostcardTest = function (storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options) {
|
|
35074
35185
|
return (0, exports.StorefrontApiFp)(this.configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(this.fetch, this.basePath);
|
|
35075
35186
|
};
|
|
35187
|
+
/**
|
|
35188
|
+
*
|
|
35189
|
+
* @summary Send SMS test
|
|
35190
|
+
* @param {number} storefront_oid
|
|
35191
|
+
* @param {string} commseq_uuid
|
|
35192
|
+
* @param {string} commseq_step_uuid
|
|
35193
|
+
* @param {EmailCommseqSmsSendTestRequest} email_commseq_sms_test_request Email commseq sms test request
|
|
35194
|
+
* @param {*} [options] Override http request option.
|
|
35195
|
+
* @throws {RequiredError}
|
|
35196
|
+
* @memberof StorefrontApi
|
|
35197
|
+
*/
|
|
35198
|
+
StorefrontApi.prototype.sendSmsTest = function (storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options) {
|
|
35199
|
+
return (0, exports.StorefrontApiFp)(this.configuration).sendSmsTest(storefront_oid, commseq_uuid, commseq_step_uuid, email_commseq_sms_test_request, options)(this.fetch, this.basePath);
|
|
35200
|
+
};
|
|
35076
35201
|
/**
|
|
35077
35202
|
*
|
|
35078
35203
|
* @summary Send webhook test
|