ultracart_rest_api_v2_typescript 3.10.56 → 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 +4 -2
- package/api.ts +251 -8
- package/dist/api.d.ts +153 -5
- package/dist/api.js +139 -7
- 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,8 @@ 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 |
|
|
58
|
+
| 3.10.57 | 10/17/2022 | conversations - add last_interactive_message_dts |
|
|
57
59
|
| 3.10.56 | 10/07/2022 | bug fix for digital items response |
|
|
58
60
|
| 3.10.55 | 10/05/2022 | storefront rest file cdn icon urls |
|
|
59
61
|
| 3.10.54 | 10/04/2022 | bug fix for new storefront file mgr |
|
package/api.ts
CHANGED
|
@@ -6313,6 +6313,12 @@ export interface Conversation {
|
|
|
6313
6313
|
* @memberof Conversation
|
|
6314
6314
|
*/
|
|
6315
6315
|
last_conversation_participant_name?: string;
|
|
6316
|
+
/**
|
|
6317
|
+
* Last interactive message date/time
|
|
6318
|
+
* @type {string}
|
|
6319
|
+
* @memberof Conversation
|
|
6320
|
+
*/
|
|
6321
|
+
last_interactive_message_dts?: string;
|
|
6316
6322
|
/**
|
|
6317
6323
|
* Last message date/time
|
|
6318
6324
|
* @type {string}
|
|
@@ -7020,6 +7026,12 @@ export interface ConversationSummary {
|
|
|
7020
7026
|
* @memberof ConversationSummary
|
|
7021
7027
|
*/
|
|
7022
7028
|
last_conversation_participant_name?: string;
|
|
7029
|
+
/**
|
|
7030
|
+
* Last interactive message date/time
|
|
7031
|
+
* @type {string}
|
|
7032
|
+
* @memberof ConversationSummary
|
|
7033
|
+
*/
|
|
7034
|
+
last_interactive_message_dts?: string;
|
|
7023
7035
|
/**
|
|
7024
7036
|
* Last message date/time
|
|
7025
7037
|
* @type {string}
|
|
@@ -13297,6 +13309,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
13297
13309
|
* @memberof EmailCommseqSequenceTestRequest
|
|
13298
13310
|
*/
|
|
13299
13311
|
postal_code?: string;
|
|
13312
|
+
/**
|
|
13313
|
+
*
|
|
13314
|
+
* @type {string}
|
|
13315
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13316
|
+
*/
|
|
13317
|
+
send_to_cellphone_e164?: string;
|
|
13300
13318
|
/**
|
|
13301
13319
|
*
|
|
13302
13320
|
* @type {string}
|
|
@@ -13349,6 +13367,76 @@ export interface EmailCommseqSequenceTestResponse {
|
|
|
13349
13367
|
warning?: Warning;
|
|
13350
13368
|
}
|
|
13351
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
|
+
|
|
13352
13440
|
/**
|
|
13353
13441
|
*
|
|
13354
13442
|
* @export
|
|
@@ -40990,12 +41078,13 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
40990
41078
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
40991
41079
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
40992
41080
|
* @param {string} [medium]
|
|
41081
|
+
* @param {string} [before]
|
|
40993
41082
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
40994
41083
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
40995
41084
|
* @param {*} [options] Override http request option.
|
|
40996
41085
|
* @throws {RequiredError}
|
|
40997
41086
|
*/
|
|
40998
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options: any = {}): FetchArgs {
|
|
41087
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options: any = {}): FetchArgs {
|
|
40999
41088
|
const localVarPath = `/conversation/conversations`;
|
|
41000
41089
|
const localVarUrlObj = url.parse(localVarPath, true);
|
|
41001
41090
|
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
@@ -41029,6 +41118,10 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
41029
41118
|
localVarQueryParameter['medium'] = medium;
|
|
41030
41119
|
}
|
|
41031
41120
|
|
|
41121
|
+
if (before !== undefined) {
|
|
41122
|
+
localVarQueryParameter['before'] = before;
|
|
41123
|
+
}
|
|
41124
|
+
|
|
41032
41125
|
if (_limit !== undefined) {
|
|
41033
41126
|
localVarQueryParameter['_limit'] = _limit;
|
|
41034
41127
|
}
|
|
@@ -41406,13 +41499,14 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
41406
41499
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
41407
41500
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
41408
41501
|
* @param {string} [medium]
|
|
41502
|
+
* @param {string} [before]
|
|
41409
41503
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
41410
41504
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
41411
41505
|
* @param {*} [options] Override http request option.
|
|
41412
41506
|
* @throws {RequiredError}
|
|
41413
41507
|
*/
|
|
41414
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationsResponse> {
|
|
41415
|
-
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversations(medium, _limit, _offset, options);
|
|
41508
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationsResponse> {
|
|
41509
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversations(medium, before, _limit, _offset, options);
|
|
41416
41510
|
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
41417
41511
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
41418
41512
|
|
|
@@ -41583,13 +41677,14 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
41583
41677
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
41584
41678
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
41585
41679
|
* @param {string} [medium]
|
|
41680
|
+
* @param {string} [before]
|
|
41586
41681
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
41587
41682
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
41588
41683
|
* @param {*} [options] Override http request option.
|
|
41589
41684
|
* @throws {RequiredError}
|
|
41590
41685
|
*/
|
|
41591
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any) {
|
|
41592
|
-
return ConversationApiFp(configuration).getConversations(medium, _limit, _offset, options)(fetch, basePath);
|
|
41686
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any) {
|
|
41687
|
+
return ConversationApiFp(configuration).getConversations(medium, before, _limit, _offset, options)(fetch, basePath);
|
|
41593
41688
|
},
|
|
41594
41689
|
/**
|
|
41595
41690
|
* Join a conversation
|
|
@@ -41705,13 +41800,14 @@ export interface ConversationApiInterface {
|
|
|
41705
41800
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
41706
41801
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
41707
41802
|
* @param {string} [medium]
|
|
41803
|
+
* @param {string} [before]
|
|
41708
41804
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
41709
41805
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
41710
41806
|
* @param {*} [options] Override http request option.
|
|
41711
41807
|
* @throws {RequiredError}
|
|
41712
41808
|
* @memberof ConversationApiInterface
|
|
41713
41809
|
*/
|
|
41714
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
41810
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
41715
41811
|
|
|
41716
41812
|
/**
|
|
41717
41813
|
* Join a conversation
|
|
@@ -41839,14 +41935,15 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
41839
41935
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
41840
41936
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
41841
41937
|
* @param {string} [medium]
|
|
41938
|
+
* @param {string} [before]
|
|
41842
41939
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
41843
41940
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
41844
41941
|
* @param {*} [options] Override http request option.
|
|
41845
41942
|
* @throws {RequiredError}
|
|
41846
41943
|
* @memberof ConversationApi
|
|
41847
41944
|
*/
|
|
41848
|
-
public getConversations(medium?: string, _limit?: number, _offset?: number, options?: any) {
|
|
41849
|
-
return ConversationApiFp(this.configuration).getConversations(medium, _limit, _offset, options)(this.fetch, this.basePath);
|
|
41945
|
+
public getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any) {
|
|
41946
|
+
return ConversationApiFp(this.configuration).getConversations(medium, before, _limit, _offset, options)(this.fetch, this.basePath);
|
|
41850
41947
|
}
|
|
41851
41948
|
|
|
41852
41949
|
/**
|
|
@@ -64124,6 +64221,87 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
64124
64221
|
options: localVarRequestOptions,
|
|
64125
64222
|
};
|
|
64126
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
|
+
},
|
|
64127
64305
|
/**
|
|
64128
64306
|
*
|
|
64129
64307
|
* @summary Send webhook test
|
|
@@ -69379,6 +69557,30 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
69379
69557
|
});
|
|
69380
69558
|
};
|
|
69381
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
|
+
},
|
|
69382
69584
|
/**
|
|
69383
69585
|
*
|
|
69384
69586
|
* @summary Send webhook test
|
|
@@ -71623,6 +71825,19 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
71623
71825
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any) {
|
|
71624
71826
|
return StorefrontApiFp(configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(fetch, basePath);
|
|
71625
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
|
+
},
|
|
71626
71841
|
/**
|
|
71627
71842
|
*
|
|
71628
71843
|
* @summary Send webhook test
|
|
@@ -73537,6 +73752,19 @@ export interface StorefrontApiInterface {
|
|
|
73537
73752
|
*/
|
|
73538
73753
|
sendPostcardTest(storefront_oid: number, commseq_postcard_uuid: string, email_commseq_postcard_test_request: EmailCommseqPostcardSendTestRequest, options?: any): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
73539
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
|
+
|
|
73540
73768
|
/**
|
|
73541
73769
|
*
|
|
73542
73770
|
* @summary Send webhook test
|
|
@@ -75733,6 +75961,21 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
75733
75961
|
return StorefrontApiFp(this.configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(this.fetch, this.basePath);
|
|
75734
75962
|
}
|
|
75735
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
|
+
|
|
75736
75979
|
/**
|
|
75737
75980
|
*
|
|
75738
75981
|
* @summary Send webhook test
|
package/dist/api.d.ts
CHANGED
|
@@ -6166,6 +6166,12 @@ export interface Conversation {
|
|
|
6166
6166
|
* @memberof Conversation
|
|
6167
6167
|
*/
|
|
6168
6168
|
last_conversation_participant_name?: string;
|
|
6169
|
+
/**
|
|
6170
|
+
* Last interactive message date/time
|
|
6171
|
+
* @type {string}
|
|
6172
|
+
* @memberof Conversation
|
|
6173
|
+
*/
|
|
6174
|
+
last_interactive_message_dts?: string;
|
|
6169
6175
|
/**
|
|
6170
6176
|
* Last message date/time
|
|
6171
6177
|
* @type {string}
|
|
@@ -6853,6 +6859,12 @@ export interface ConversationSummary {
|
|
|
6853
6859
|
* @memberof ConversationSummary
|
|
6854
6860
|
*/
|
|
6855
6861
|
last_conversation_participant_name?: string;
|
|
6862
|
+
/**
|
|
6863
|
+
* Last interactive message date/time
|
|
6864
|
+
* @type {string}
|
|
6865
|
+
* @memberof ConversationSummary
|
|
6866
|
+
*/
|
|
6867
|
+
last_interactive_message_dts?: string;
|
|
6856
6868
|
/**
|
|
6857
6869
|
* Last message date/time
|
|
6858
6870
|
* @type {string}
|
|
@@ -12994,6 +13006,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
12994
13006
|
* @memberof EmailCommseqSequenceTestRequest
|
|
12995
13007
|
*/
|
|
12996
13008
|
postal_code?: string;
|
|
13009
|
+
/**
|
|
13010
|
+
*
|
|
13011
|
+
* @type {string}
|
|
13012
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13013
|
+
*/
|
|
13014
|
+
send_to_cellphone_e164?: string;
|
|
12997
13015
|
/**
|
|
12998
13016
|
*
|
|
12999
13017
|
* @type {string}
|
|
@@ -13044,6 +13062,74 @@ export interface EmailCommseqSequenceTestResponse {
|
|
|
13044
13062
|
*/
|
|
13045
13063
|
warning?: Warning;
|
|
13046
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
|
+
}
|
|
13047
13133
|
/**
|
|
13048
13134
|
*
|
|
13049
13135
|
* @export
|
|
@@ -36993,12 +37079,13 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
36993
37079
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
36994
37080
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
36995
37081
|
* @param {string} [medium]
|
|
37082
|
+
* @param {string} [before]
|
|
36996
37083
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
36997
37084
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
36998
37085
|
* @param {*} [options] Override http request option.
|
|
36999
37086
|
* @throws {RequiredError}
|
|
37000
37087
|
*/
|
|
37001
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any): FetchArgs;
|
|
37088
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any): FetchArgs;
|
|
37002
37089
|
/**
|
|
37003
37090
|
* Join a conversation
|
|
37004
37091
|
* @summary Join a conversation
|
|
@@ -37090,12 +37177,13 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
37090
37177
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
37091
37178
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
37092
37179
|
* @param {string} [medium]
|
|
37180
|
+
* @param {string} [before]
|
|
37093
37181
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
37094
37182
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
37095
37183
|
* @param {*} [options] Override http request option.
|
|
37096
37184
|
* @throws {RequiredError}
|
|
37097
37185
|
*/
|
|
37098
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationsResponse>;
|
|
37186
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationsResponse>;
|
|
37099
37187
|
/**
|
|
37100
37188
|
* Join a conversation
|
|
37101
37189
|
* @summary Join a conversation
|
|
@@ -37187,12 +37275,13 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
37187
37275
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
37188
37276
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
37189
37277
|
* @param {string} [medium]
|
|
37278
|
+
* @param {string} [before]
|
|
37190
37279
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
37191
37280
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
37192
37281
|
* @param {*} [options] Override http request option.
|
|
37193
37282
|
* @throws {RequiredError}
|
|
37194
37283
|
*/
|
|
37195
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
37284
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
37196
37285
|
/**
|
|
37197
37286
|
* Join a conversation
|
|
37198
37287
|
* @summary Join a conversation
|
|
@@ -37291,13 +37380,14 @@ export interface ConversationApiInterface {
|
|
|
37291
37380
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
37292
37381
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
37293
37382
|
* @param {string} [medium]
|
|
37383
|
+
* @param {string} [before]
|
|
37294
37384
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
37295
37385
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
37296
37386
|
* @param {*} [options] Override http request option.
|
|
37297
37387
|
* @throws {RequiredError}
|
|
37298
37388
|
* @memberof ConversationApiInterface
|
|
37299
37389
|
*/
|
|
37300
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
37390
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
37301
37391
|
/**
|
|
37302
37392
|
* Join a conversation
|
|
37303
37393
|
* @summary Join a conversation
|
|
@@ -37401,13 +37491,14 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
37401
37491
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
37402
37492
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
37403
37493
|
* @param {string} [medium]
|
|
37494
|
+
* @param {string} [before]
|
|
37404
37495
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
37405
37496
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
37406
37497
|
* @param {*} [options] Override http request option.
|
|
37407
37498
|
* @throws {RequiredError}
|
|
37408
37499
|
* @memberof ConversationApi
|
|
37409
37500
|
*/
|
|
37410
|
-
getConversations(medium?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
37501
|
+
getConversations(medium?: string, before?: string, _limit?: number, _offset?: number, options?: any): Promise<ConversationsResponse>;
|
|
37411
37502
|
/**
|
|
37412
37503
|
* Join a conversation
|
|
37413
37504
|
* @summary Join a conversation
|
|
@@ -44199,6 +44290,17 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
44199
44290
|
* @throws {RequiredError}
|
|
44200
44291
|
*/
|
|
44201
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;
|
|
44202
44304
|
/**
|
|
44203
44305
|
*
|
|
44204
44306
|
* @summary Send webhook test
|
|
@@ -45768,6 +45870,17 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
45768
45870
|
* @throws {RequiredError}
|
|
45769
45871
|
*/
|
|
45770
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>;
|
|
45771
45884
|
/**
|
|
45772
45885
|
*
|
|
45773
45886
|
* @summary Send webhook test
|
|
@@ -47337,6 +47450,17 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
47337
47450
|
* @throws {RequiredError}
|
|
47338
47451
|
*/
|
|
47339
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>;
|
|
47340
47464
|
/**
|
|
47341
47465
|
*
|
|
47342
47466
|
* @summary Send webhook test
|
|
@@ -49048,6 +49172,18 @@ export interface StorefrontApiInterface {
|
|
|
49048
49172
|
* @memberof StorefrontApiInterface
|
|
49049
49173
|
*/
|
|
49050
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>;
|
|
49051
49187
|
/**
|
|
49052
49188
|
*
|
|
49053
49189
|
* @summary Send webhook test
|
|
@@ -50790,6 +50926,18 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
50790
50926
|
* @memberof StorefrontApi
|
|
50791
50927
|
*/
|
|
50792
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>;
|
|
50793
50941
|
/**
|
|
50794
50942
|
*
|
|
50795
50943
|
* @summary Send webhook test
|
package/dist/api.js
CHANGED
|
@@ -5714,12 +5714,13 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
5714
5714
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
5715
5715
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
5716
5716
|
* @param {string} [medium]
|
|
5717
|
+
* @param {string} [before]
|
|
5717
5718
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
5718
5719
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
5719
5720
|
* @param {*} [options] Override http request option.
|
|
5720
5721
|
* @throws {RequiredError}
|
|
5721
5722
|
*/
|
|
5722
|
-
getConversations: function (medium, _limit, _offset, options) {
|
|
5723
|
+
getConversations: function (medium, before, _limit, _offset, options) {
|
|
5723
5724
|
if (options === void 0) { options = {}; }
|
|
5724
5725
|
var localVarPath = "/conversation/conversations";
|
|
5725
5726
|
var localVarUrlObj = url.parse(localVarPath, true);
|
|
@@ -5747,6 +5748,9 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
5747
5748
|
if (medium !== undefined) {
|
|
5748
5749
|
localVarQueryParameter['medium'] = medium;
|
|
5749
5750
|
}
|
|
5751
|
+
if (before !== undefined) {
|
|
5752
|
+
localVarQueryParameter['before'] = before;
|
|
5753
|
+
}
|
|
5750
5754
|
if (_limit !== undefined) {
|
|
5751
5755
|
localVarQueryParameter['_limit'] = _limit;
|
|
5752
5756
|
}
|
|
@@ -6101,13 +6105,14 @@ var ConversationApiFp = function (configuration) {
|
|
|
6101
6105
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
6102
6106
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
6103
6107
|
* @param {string} [medium]
|
|
6108
|
+
* @param {string} [before]
|
|
6104
6109
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
6105
6110
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
6106
6111
|
* @param {*} [options] Override http request option.
|
|
6107
6112
|
* @throws {RequiredError}
|
|
6108
6113
|
*/
|
|
6109
|
-
getConversations: function (medium, _limit, _offset, options) {
|
|
6110
|
-
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getConversations(medium, _limit, _offset, options);
|
|
6114
|
+
getConversations: function (medium, before, _limit, _offset, options) {
|
|
6115
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getConversations(medium, before, _limit, _offset, options);
|
|
6111
6116
|
return function (fetch, basePath) {
|
|
6112
6117
|
if (fetch === void 0) { fetch = portableFetch; }
|
|
6113
6118
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
@@ -6283,13 +6288,14 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
6283
6288
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
6284
6289
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
6285
6290
|
* @param {string} [medium]
|
|
6291
|
+
* @param {string} [before]
|
|
6286
6292
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
6287
6293
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
6288
6294
|
* @param {*} [options] Override http request option.
|
|
6289
6295
|
* @throws {RequiredError}
|
|
6290
6296
|
*/
|
|
6291
|
-
getConversations: function (medium, _limit, _offset, options) {
|
|
6292
|
-
return (0, exports.ConversationApiFp)(configuration).getConversations(medium, _limit, _offset, options)(fetch, basePath);
|
|
6297
|
+
getConversations: function (medium, before, _limit, _offset, options) {
|
|
6298
|
+
return (0, exports.ConversationApiFp)(configuration).getConversations(medium, before, _limit, _offset, options)(fetch, basePath);
|
|
6293
6299
|
},
|
|
6294
6300
|
/**
|
|
6295
6301
|
* Join a conversation
|
|
@@ -6416,14 +6422,15 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
6416
6422
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
6417
6423
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
6418
6424
|
* @param {string} [medium]
|
|
6425
|
+
* @param {string} [before]
|
|
6419
6426
|
* @param {number} [_limit] The maximum number of records to return on this one API call. (Max 200)
|
|
6420
6427
|
* @param {number} [_offset] Pagination of the record set. Offset is a zero based index.
|
|
6421
6428
|
* @param {*} [options] Override http request option.
|
|
6422
6429
|
* @throws {RequiredError}
|
|
6423
6430
|
* @memberof ConversationApi
|
|
6424
6431
|
*/
|
|
6425
|
-
ConversationApi.prototype.getConversations = function (medium, _limit, _offset, options) {
|
|
6426
|
-
return (0, exports.ConversationApiFp)(this.configuration).getConversations(medium, _limit, _offset, options)(this.fetch, this.basePath);
|
|
6432
|
+
ConversationApi.prototype.getConversations = function (medium, before, _limit, _offset, options) {
|
|
6433
|
+
return (0, exports.ConversationApiFp)(this.configuration).getConversations(medium, before, _limit, _offset, options)(this.fetch, this.basePath);
|
|
6427
6434
|
};
|
|
6428
6435
|
/**
|
|
6429
6436
|
* Join a conversation
|
|
@@ -25571,6 +25578,79 @@ var StorefrontApiFetchParamCreator = function (configuration) {
|
|
|
25571
25578
|
options: localVarRequestOptions,
|
|
25572
25579
|
};
|
|
25573
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
|
+
},
|
|
25574
25654
|
/**
|
|
25575
25655
|
*
|
|
25576
25656
|
* @summary Send webhook test
|
|
@@ -30732,6 +30812,31 @@ var StorefrontApiFp = function (configuration) {
|
|
|
30732
30812
|
});
|
|
30733
30813
|
};
|
|
30734
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
|
+
},
|
|
30735
30840
|
/**
|
|
30736
30841
|
*
|
|
30737
30842
|
* @summary Send webhook test
|
|
@@ -33006,6 +33111,19 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
|
|
|
33006
33111
|
sendPostcardTest: function (storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options) {
|
|
33007
33112
|
return (0, exports.StorefrontApiFp)(configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(fetch, basePath);
|
|
33008
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
|
+
},
|
|
33009
33127
|
/**
|
|
33010
33128
|
*
|
|
33011
33129
|
* @summary Send webhook test
|
|
@@ -35066,6 +35184,20 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
35066
35184
|
StorefrontApi.prototype.sendPostcardTest = function (storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options) {
|
|
35067
35185
|
return (0, exports.StorefrontApiFp)(this.configuration).sendPostcardTest(storefront_oid, commseq_postcard_uuid, email_commseq_postcard_test_request, options)(this.fetch, this.basePath);
|
|
35068
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
|
+
};
|
|
35069
35201
|
/**
|
|
35070
35202
|
*
|
|
35071
35203
|
* @summary Send webhook test
|