ultracart_rest_api_v2_typescript 3.10.28 → 3.10.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/api.ts +360 -4
- package/dist/api.d.ts +270 -4
- package/dist/api.js +153 -3
- 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.31
|
|
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.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.31 | 08/02/2022 | storefront communication sequence test method |
|
|
58
|
+
| 3.10.30 | 08/01/2022 | conversation event refinement |
|
|
59
|
+
| 3.10.29 | 07/29/2022 | conversation development |
|
|
57
60
|
| 3.10.28 | 07/28/2022 | conversation bug fixes |
|
|
58
61
|
| 3.10.27 | 07/28/2022 | conversation message upload keys property |
|
|
59
62
|
| 3.10.26 | 07/26/2022 | conversations - queue statistics |
|
package/api.ts
CHANGED
|
@@ -6329,10 +6329,10 @@ export interface ConversationAgentAuth {
|
|
|
6329
6329
|
merchant_id?: string;
|
|
6330
6330
|
/**
|
|
6331
6331
|
*
|
|
6332
|
-
* @type {Array<
|
|
6332
|
+
* @type {Array<ConversationTwilioAccount>}
|
|
6333
6333
|
* @memberof ConversationAgentAuth
|
|
6334
6334
|
*/
|
|
6335
|
-
|
|
6335
|
+
twilio_accounts?: Array<ConversationTwilioAccount>;
|
|
6336
6336
|
/**
|
|
6337
6337
|
*
|
|
6338
6338
|
* @type {string}
|
|
@@ -6399,6 +6399,71 @@ export interface ConversationEventQueuePosition {
|
|
|
6399
6399
|
position?: number;
|
|
6400
6400
|
}
|
|
6401
6401
|
|
|
6402
|
+
/**
|
|
6403
|
+
*
|
|
6404
|
+
* @export
|
|
6405
|
+
* @interface ConversationEventRRWeb
|
|
6406
|
+
*/
|
|
6407
|
+
export interface ConversationEventRRWeb {
|
|
6408
|
+
/**
|
|
6409
|
+
*
|
|
6410
|
+
* @type {string}
|
|
6411
|
+
* @memberof ConversationEventRRWeb
|
|
6412
|
+
*/
|
|
6413
|
+
data?: string;
|
|
6414
|
+
/**
|
|
6415
|
+
*
|
|
6416
|
+
* @type {number}
|
|
6417
|
+
* @memberof ConversationEventRRWeb
|
|
6418
|
+
*/
|
|
6419
|
+
data_part?: number;
|
|
6420
|
+
/**
|
|
6421
|
+
*
|
|
6422
|
+
* @type {string}
|
|
6423
|
+
* @memberof ConversationEventRRWeb
|
|
6424
|
+
*/
|
|
6425
|
+
data_sha256?: string;
|
|
6426
|
+
/**
|
|
6427
|
+
*
|
|
6428
|
+
* @type {number}
|
|
6429
|
+
* @memberof ConversationEventRRWeb
|
|
6430
|
+
*/
|
|
6431
|
+
data_total_parts?: number;
|
|
6432
|
+
/**
|
|
6433
|
+
*
|
|
6434
|
+
* @type {string}
|
|
6435
|
+
* @memberof ConversationEventRRWeb
|
|
6436
|
+
*/
|
|
6437
|
+
data_total_sha256?: string;
|
|
6438
|
+
/**
|
|
6439
|
+
*
|
|
6440
|
+
* @type {number}
|
|
6441
|
+
* @memberof ConversationEventRRWeb
|
|
6442
|
+
*/
|
|
6443
|
+
event_index?: number;
|
|
6444
|
+
/**
|
|
6445
|
+
* Type of event
|
|
6446
|
+
* @type {string}
|
|
6447
|
+
* @memberof ConversationEventRRWeb
|
|
6448
|
+
*/
|
|
6449
|
+
type?: ConversationEventRRWeb.TypeEnum;
|
|
6450
|
+
}
|
|
6451
|
+
|
|
6452
|
+
/**
|
|
6453
|
+
* @export
|
|
6454
|
+
* @namespace ConversationEventRRWeb
|
|
6455
|
+
*/
|
|
6456
|
+
export namespace ConversationEventRRWeb {
|
|
6457
|
+
/**
|
|
6458
|
+
* @export
|
|
6459
|
+
* @enum {string}
|
|
6460
|
+
*/
|
|
6461
|
+
export enum TypeEnum {
|
|
6462
|
+
Init = <any> 'init',
|
|
6463
|
+
Events = <any> 'events'
|
|
6464
|
+
}
|
|
6465
|
+
}
|
|
6466
|
+
|
|
6402
6467
|
/**
|
|
6403
6468
|
*
|
|
6404
6469
|
* @export
|
|
@@ -6423,6 +6488,12 @@ export interface ConversationMessage {
|
|
|
6423
6488
|
* @memberof ConversationMessage
|
|
6424
6489
|
*/
|
|
6425
6490
|
body?: string;
|
|
6491
|
+
/**
|
|
6492
|
+
*
|
|
6493
|
+
* @type {string}
|
|
6494
|
+
* @memberof ConversationMessage
|
|
6495
|
+
*/
|
|
6496
|
+
client_message_id?: string;
|
|
6426
6497
|
/**
|
|
6427
6498
|
*
|
|
6428
6499
|
* @type {Array<string>}
|
|
@@ -6441,6 +6512,12 @@ export interface ConversationMessage {
|
|
|
6441
6512
|
* @memberof ConversationMessage
|
|
6442
6513
|
*/
|
|
6443
6514
|
transport_statuses?: Array<ConversationMessageTransportStatus>;
|
|
6515
|
+
/**
|
|
6516
|
+
* Message type
|
|
6517
|
+
* @type {string}
|
|
6518
|
+
* @memberof ConversationMessage
|
|
6519
|
+
*/
|
|
6520
|
+
type?: ConversationMessage.TypeEnum;
|
|
6444
6521
|
/**
|
|
6445
6522
|
*
|
|
6446
6523
|
* @type {Array<string>}
|
|
@@ -6449,6 +6526,21 @@ export interface ConversationMessage {
|
|
|
6449
6526
|
upload_keys?: Array<string>;
|
|
6450
6527
|
}
|
|
6451
6528
|
|
|
6529
|
+
/**
|
|
6530
|
+
* @export
|
|
6531
|
+
* @namespace ConversationMessage
|
|
6532
|
+
*/
|
|
6533
|
+
export namespace ConversationMessage {
|
|
6534
|
+
/**
|
|
6535
|
+
* @export
|
|
6536
|
+
* @enum {string}
|
|
6537
|
+
*/
|
|
6538
|
+
export enum TypeEnum {
|
|
6539
|
+
Message = <any> 'message',
|
|
6540
|
+
Notice = <any> 'notice'
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6452
6544
|
/**
|
|
6453
6545
|
*
|
|
6454
6546
|
* @export
|
|
@@ -6715,12 +6807,44 @@ export interface ConversationSummary {
|
|
|
6715
6807
|
* @memberof ConversationSummary
|
|
6716
6808
|
*/
|
|
6717
6809
|
message_count?: number;
|
|
6810
|
+
/**
|
|
6811
|
+
* Start of the conversation date/time
|
|
6812
|
+
* @type {string}
|
|
6813
|
+
* @memberof ConversationSummary
|
|
6814
|
+
*/
|
|
6815
|
+
start_dts?: string;
|
|
6718
6816
|
/**
|
|
6719
6817
|
*
|
|
6720
6818
|
* @type {boolean}
|
|
6721
6819
|
* @memberof ConversationSummary
|
|
6722
6820
|
*/
|
|
6723
6821
|
unread_messages?: boolean;
|
|
6822
|
+
/**
|
|
6823
|
+
*
|
|
6824
|
+
* @type {boolean}
|
|
6825
|
+
* @memberof ConversationSummary
|
|
6826
|
+
*/
|
|
6827
|
+
visible?: boolean;
|
|
6828
|
+
}
|
|
6829
|
+
|
|
6830
|
+
/**
|
|
6831
|
+
*
|
|
6832
|
+
* @export
|
|
6833
|
+
* @interface ConversationTwilioAccount
|
|
6834
|
+
*/
|
|
6835
|
+
export interface ConversationTwilioAccount {
|
|
6836
|
+
/**
|
|
6837
|
+
*
|
|
6838
|
+
* @type {string}
|
|
6839
|
+
* @memberof ConversationTwilioAccount
|
|
6840
|
+
*/
|
|
6841
|
+
merchant_id?: string;
|
|
6842
|
+
/**
|
|
6843
|
+
*
|
|
6844
|
+
* @type {Array<string>}
|
|
6845
|
+
* @memberof ConversationTwilioAccount
|
|
6846
|
+
*/
|
|
6847
|
+
twilio_phone_numbers?: Array<string>;
|
|
6724
6848
|
}
|
|
6725
6849
|
|
|
6726
6850
|
/**
|
|
@@ -6997,6 +7121,12 @@ export interface ConversationWebsocketMessage {
|
|
|
6997
7121
|
* @memberof ConversationWebsocketMessage
|
|
6998
7122
|
*/
|
|
6999
7123
|
event_queue_status_update?: ConversationWebchatQueueStatus;
|
|
7124
|
+
/**
|
|
7125
|
+
*
|
|
7126
|
+
* @type {ConversationEventRRWeb}
|
|
7127
|
+
* @memberof ConversationWebsocketMessage
|
|
7128
|
+
*/
|
|
7129
|
+
event_rrweb?: ConversationEventRRWeb;
|
|
7000
7130
|
/**
|
|
7001
7131
|
* Type of event
|
|
7002
7132
|
* @type {string}
|
|
@@ -7039,7 +7169,8 @@ export namespace ConversationWebsocketMessage {
|
|
|
7039
7169
|
NewConversation = <any> 'new conversation',
|
|
7040
7170
|
NewMessage = <any> 'new message',
|
|
7041
7171
|
UpdatedMessage = <any> 'updated message',
|
|
7042
|
-
QueueStatusUpdate = <any> 'queue status update'
|
|
7172
|
+
QueueStatusUpdate = <any> 'queue status update',
|
|
7173
|
+
Rrweb = <any> 'rrweb'
|
|
7043
7174
|
}
|
|
7044
7175
|
/**
|
|
7045
7176
|
* @export
|
|
@@ -7048,7 +7179,8 @@ export namespace ConversationWebsocketMessage {
|
|
|
7048
7179
|
export enum TypeEnum {
|
|
7049
7180
|
Message = <any> 'message',
|
|
7050
7181
|
Event = <any> 'event',
|
|
7051
|
-
Ping = <any> 'ping'
|
|
7182
|
+
Ping = <any> 'ping',
|
|
7183
|
+
CheckQueuePosition = <any> 'check queue position'
|
|
7052
7184
|
}
|
|
7053
7185
|
}
|
|
7054
7186
|
|
|
@@ -12725,6 +12857,94 @@ export interface EmailCommseqResponse {
|
|
|
12725
12857
|
warning?: Warning;
|
|
12726
12858
|
}
|
|
12727
12859
|
|
|
12860
|
+
/**
|
|
12861
|
+
*
|
|
12862
|
+
* @export
|
|
12863
|
+
* @interface EmailCommseqSequenceTestRequest
|
|
12864
|
+
*/
|
|
12865
|
+
export interface EmailCommseqSequenceTestRequest {
|
|
12866
|
+
/**
|
|
12867
|
+
*
|
|
12868
|
+
* @type {string}
|
|
12869
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12870
|
+
*/
|
|
12871
|
+
cart_id?: string;
|
|
12872
|
+
/**
|
|
12873
|
+
*
|
|
12874
|
+
* @type {Array<string>}
|
|
12875
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12876
|
+
*/
|
|
12877
|
+
cart_item_ids?: Array<string>;
|
|
12878
|
+
/**
|
|
12879
|
+
*
|
|
12880
|
+
* @type {string}
|
|
12881
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12882
|
+
*/
|
|
12883
|
+
esp_commseq_uuid?: string;
|
|
12884
|
+
/**
|
|
12885
|
+
*
|
|
12886
|
+
* @type {string}
|
|
12887
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12888
|
+
*/
|
|
12889
|
+
name?: string;
|
|
12890
|
+
/**
|
|
12891
|
+
*
|
|
12892
|
+
* @type {string}
|
|
12893
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12894
|
+
*/
|
|
12895
|
+
order_id?: string;
|
|
12896
|
+
/**
|
|
12897
|
+
*
|
|
12898
|
+
* @type {boolean}
|
|
12899
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12900
|
+
*/
|
|
12901
|
+
please_review?: boolean;
|
|
12902
|
+
/**
|
|
12903
|
+
*
|
|
12904
|
+
* @type {string}
|
|
12905
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12906
|
+
*/
|
|
12907
|
+
send_to_email?: string;
|
|
12908
|
+
/**
|
|
12909
|
+
*
|
|
12910
|
+
* @type {boolean}
|
|
12911
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12912
|
+
*/
|
|
12913
|
+
send_to_logged_in_user?: boolean;
|
|
12914
|
+
}
|
|
12915
|
+
|
|
12916
|
+
/**
|
|
12917
|
+
*
|
|
12918
|
+
* @export
|
|
12919
|
+
* @interface EmailCommseqSequenceTestResponse
|
|
12920
|
+
*/
|
|
12921
|
+
export interface EmailCommseqSequenceTestResponse {
|
|
12922
|
+
/**
|
|
12923
|
+
*
|
|
12924
|
+
* @type {ModelError}
|
|
12925
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12926
|
+
*/
|
|
12927
|
+
error?: ModelError;
|
|
12928
|
+
/**
|
|
12929
|
+
*
|
|
12930
|
+
* @type {ResponseMetadata}
|
|
12931
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12932
|
+
*/
|
|
12933
|
+
metadata?: ResponseMetadata;
|
|
12934
|
+
/**
|
|
12935
|
+
* Indicates if API call was successful
|
|
12936
|
+
* @type {boolean}
|
|
12937
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12938
|
+
*/
|
|
12939
|
+
success?: boolean;
|
|
12940
|
+
/**
|
|
12941
|
+
*
|
|
12942
|
+
* @type {Warning}
|
|
12943
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12944
|
+
*/
|
|
12945
|
+
warning?: Warning;
|
|
12946
|
+
}
|
|
12947
|
+
|
|
12728
12948
|
/**
|
|
12729
12949
|
*
|
|
12730
12950
|
* @export
|
|
@@ -60759,6 +60979,81 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
60759
60979
|
options: localVarRequestOptions,
|
|
60760
60980
|
};
|
|
60761
60981
|
},
|
|
60982
|
+
/**
|
|
60983
|
+
*
|
|
60984
|
+
* @summary Sequence test
|
|
60985
|
+
* @param {number} storefront_oid
|
|
60986
|
+
* @param {string} commseq_uuid
|
|
60987
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
60988
|
+
* @param {*} [options] Override http request option.
|
|
60989
|
+
* @throws {RequiredError}
|
|
60990
|
+
*/
|
|
60991
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options: any = {}): FetchArgs {
|
|
60992
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
60993
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
60994
|
+
throw new RequiredError('storefront_oid','Required parameter storefront_oid was null or undefined when calling sequenceTest.');
|
|
60995
|
+
}
|
|
60996
|
+
// verify required parameter 'commseq_uuid' is not null or undefined
|
|
60997
|
+
if (commseq_uuid === null || commseq_uuid === undefined) {
|
|
60998
|
+
throw new RequiredError('commseq_uuid','Required parameter commseq_uuid was null or undefined when calling sequenceTest.');
|
|
60999
|
+
}
|
|
61000
|
+
// verify required parameter 'email_commseq_sequence_test_request' is not null or undefined
|
|
61001
|
+
if (email_commseq_sequence_test_request === null || email_commseq_sequence_test_request === undefined) {
|
|
61002
|
+
throw new RequiredError('email_commseq_sequence_test_request','Required parameter email_commseq_sequence_test_request was null or undefined when calling sequenceTest.');
|
|
61003
|
+
}
|
|
61004
|
+
const localVarPath = `/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test`
|
|
61005
|
+
.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(storefront_oid)))
|
|
61006
|
+
.replace(`{${"commseq_uuid"}}`, encodeURIComponent(String(commseq_uuid)));
|
|
61007
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
61008
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
61009
|
+
const localVarHeaderParameter = {} as any;
|
|
61010
|
+
const localVarQueryParameter = {} as any;
|
|
61011
|
+
|
|
61012
|
+
if(configuration && configuration.apiVersion) {
|
|
61013
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
61014
|
+
}
|
|
61015
|
+
|
|
61016
|
+
|
|
61017
|
+
|
|
61018
|
+
// authentication ultraCartBrowserApiKey required
|
|
61019
|
+
if (configuration && configuration.apiKey) {
|
|
61020
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
61021
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
61022
|
+
: configuration.apiKey;
|
|
61023
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
61024
|
+
}
|
|
61025
|
+
|
|
61026
|
+
// authentication ultraCartOauth required
|
|
61027
|
+
// oauth required
|
|
61028
|
+
if (configuration && configuration.accessToken) {
|
|
61029
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
61030
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_write"])
|
|
61031
|
+
: configuration.accessToken;
|
|
61032
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
61033
|
+
}
|
|
61034
|
+
|
|
61035
|
+
// authentication ultraCartSimpleApiKey required
|
|
61036
|
+
if (configuration && configuration.apiKey) {
|
|
61037
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
61038
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
61039
|
+
: configuration.apiKey;
|
|
61040
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
61041
|
+
}
|
|
61042
|
+
|
|
61043
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61044
|
+
|
|
61045
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
61046
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
61047
|
+
delete localVarUrlObj.search;
|
|
61048
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
61049
|
+
const needsSerialization = (<any>"EmailCommseqSequenceTestRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
61050
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(email_commseq_sequence_test_request || {}) : (email_commseq_sequence_test_request || "");
|
|
61051
|
+
|
|
61052
|
+
return {
|
|
61053
|
+
url: url.format(localVarUrlObj),
|
|
61054
|
+
options: localVarRequestOptions,
|
|
61055
|
+
};
|
|
61056
|
+
},
|
|
60762
61057
|
/**
|
|
60763
61058
|
*
|
|
60764
61059
|
* @summary Start email campaign
|
|
@@ -65626,6 +65921,29 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
65626
65921
|
});
|
|
65627
65922
|
};
|
|
65628
65923
|
},
|
|
65924
|
+
/**
|
|
65925
|
+
*
|
|
65926
|
+
* @summary Sequence test
|
|
65927
|
+
* @param {number} storefront_oid
|
|
65928
|
+
* @param {string} commseq_uuid
|
|
65929
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
65930
|
+
* @param {*} [options] Override http request option.
|
|
65931
|
+
* @throws {RequiredError}
|
|
65932
|
+
*/
|
|
65933
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqSequenceTestResponse> {
|
|
65934
|
+
const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options);
|
|
65935
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
65936
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
65937
|
+
|
|
65938
|
+
if (response.status >= 200 && response.status < 300) {
|
|
65939
|
+
return response.json();
|
|
65940
|
+
|
|
65941
|
+
} else {
|
|
65942
|
+
throw response;
|
|
65943
|
+
}
|
|
65944
|
+
});
|
|
65945
|
+
};
|
|
65946
|
+
},
|
|
65629
65947
|
/**
|
|
65630
65948
|
*
|
|
65631
65949
|
* @summary Start email campaign
|
|
@@ -67725,6 +68043,18 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
67725
68043
|
sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any) {
|
|
67726
68044
|
return StorefrontApiFp(configuration).sendWebhookTest(storefront_oid, email_commseq_webhook_test_request, options)(fetch, basePath);
|
|
67727
68045
|
},
|
|
68046
|
+
/**
|
|
68047
|
+
*
|
|
68048
|
+
* @summary Sequence test
|
|
68049
|
+
* @param {number} storefront_oid
|
|
68050
|
+
* @param {string} commseq_uuid
|
|
68051
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
68052
|
+
* @param {*} [options] Override http request option.
|
|
68053
|
+
* @throws {RequiredError}
|
|
68054
|
+
*/
|
|
68055
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any) {
|
|
68056
|
+
return StorefrontApiFp(configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options)(fetch, basePath);
|
|
68057
|
+
},
|
|
67728
68058
|
/**
|
|
67729
68059
|
*
|
|
67730
68060
|
* @summary Start email campaign
|
|
@@ -69538,6 +69868,18 @@ export interface StorefrontApiInterface {
|
|
|
69538
69868
|
*/
|
|
69539
69869
|
sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
|
|
69540
69870
|
|
|
69871
|
+
/**
|
|
69872
|
+
*
|
|
69873
|
+
* @summary Sequence test
|
|
69874
|
+
* @param {number} storefront_oid
|
|
69875
|
+
* @param {string} commseq_uuid
|
|
69876
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
69877
|
+
* @param {*} [options] Override http request option.
|
|
69878
|
+
* @throws {RequiredError}
|
|
69879
|
+
* @memberof StorefrontApiInterface
|
|
69880
|
+
*/
|
|
69881
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
|
|
69882
|
+
|
|
69541
69883
|
/**
|
|
69542
69884
|
*
|
|
69543
69885
|
* @summary Start email campaign
|
|
@@ -71623,6 +71965,20 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
71623
71965
|
return StorefrontApiFp(this.configuration).sendWebhookTest(storefront_oid, email_commseq_webhook_test_request, options)(this.fetch, this.basePath);
|
|
71624
71966
|
}
|
|
71625
71967
|
|
|
71968
|
+
/**
|
|
71969
|
+
*
|
|
71970
|
+
* @summary Sequence test
|
|
71971
|
+
* @param {number} storefront_oid
|
|
71972
|
+
* @param {string} commseq_uuid
|
|
71973
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
71974
|
+
* @param {*} [options] Override http request option.
|
|
71975
|
+
* @throws {RequiredError}
|
|
71976
|
+
* @memberof StorefrontApi
|
|
71977
|
+
*/
|
|
71978
|
+
public sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any) {
|
|
71979
|
+
return StorefrontApiFp(this.configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options)(this.fetch, this.basePath);
|
|
71980
|
+
}
|
|
71981
|
+
|
|
71626
71982
|
/**
|
|
71627
71983
|
*
|
|
71628
71984
|
* @summary Start email campaign
|
package/dist/api.d.ts
CHANGED
|
@@ -6181,10 +6181,10 @@ export interface ConversationAgentAuth {
|
|
|
6181
6181
|
merchant_id?: string;
|
|
6182
6182
|
/**
|
|
6183
6183
|
*
|
|
6184
|
-
* @type {Array<
|
|
6184
|
+
* @type {Array<ConversationTwilioAccount>}
|
|
6185
6185
|
* @memberof ConversationAgentAuth
|
|
6186
6186
|
*/
|
|
6187
|
-
|
|
6187
|
+
twilio_accounts?: Array<ConversationTwilioAccount>;
|
|
6188
6188
|
/**
|
|
6189
6189
|
*
|
|
6190
6190
|
* @type {string}
|
|
@@ -6248,6 +6248,69 @@ export interface ConversationEventQueuePosition {
|
|
|
6248
6248
|
*/
|
|
6249
6249
|
position?: number;
|
|
6250
6250
|
}
|
|
6251
|
+
/**
|
|
6252
|
+
*
|
|
6253
|
+
* @export
|
|
6254
|
+
* @interface ConversationEventRRWeb
|
|
6255
|
+
*/
|
|
6256
|
+
export interface ConversationEventRRWeb {
|
|
6257
|
+
/**
|
|
6258
|
+
*
|
|
6259
|
+
* @type {string}
|
|
6260
|
+
* @memberof ConversationEventRRWeb
|
|
6261
|
+
*/
|
|
6262
|
+
data?: string;
|
|
6263
|
+
/**
|
|
6264
|
+
*
|
|
6265
|
+
* @type {number}
|
|
6266
|
+
* @memberof ConversationEventRRWeb
|
|
6267
|
+
*/
|
|
6268
|
+
data_part?: number;
|
|
6269
|
+
/**
|
|
6270
|
+
*
|
|
6271
|
+
* @type {string}
|
|
6272
|
+
* @memberof ConversationEventRRWeb
|
|
6273
|
+
*/
|
|
6274
|
+
data_sha256?: string;
|
|
6275
|
+
/**
|
|
6276
|
+
*
|
|
6277
|
+
* @type {number}
|
|
6278
|
+
* @memberof ConversationEventRRWeb
|
|
6279
|
+
*/
|
|
6280
|
+
data_total_parts?: number;
|
|
6281
|
+
/**
|
|
6282
|
+
*
|
|
6283
|
+
* @type {string}
|
|
6284
|
+
* @memberof ConversationEventRRWeb
|
|
6285
|
+
*/
|
|
6286
|
+
data_total_sha256?: string;
|
|
6287
|
+
/**
|
|
6288
|
+
*
|
|
6289
|
+
* @type {number}
|
|
6290
|
+
* @memberof ConversationEventRRWeb
|
|
6291
|
+
*/
|
|
6292
|
+
event_index?: number;
|
|
6293
|
+
/**
|
|
6294
|
+
* Type of event
|
|
6295
|
+
* @type {string}
|
|
6296
|
+
* @memberof ConversationEventRRWeb
|
|
6297
|
+
*/
|
|
6298
|
+
type?: ConversationEventRRWeb.TypeEnum;
|
|
6299
|
+
}
|
|
6300
|
+
/**
|
|
6301
|
+
* @export
|
|
6302
|
+
* @namespace ConversationEventRRWeb
|
|
6303
|
+
*/
|
|
6304
|
+
export declare namespace ConversationEventRRWeb {
|
|
6305
|
+
/**
|
|
6306
|
+
* @export
|
|
6307
|
+
* @enum {string}
|
|
6308
|
+
*/
|
|
6309
|
+
enum TypeEnum {
|
|
6310
|
+
Init,
|
|
6311
|
+
Events
|
|
6312
|
+
}
|
|
6313
|
+
}
|
|
6251
6314
|
/**
|
|
6252
6315
|
*
|
|
6253
6316
|
* @export
|
|
@@ -6272,6 +6335,12 @@ export interface ConversationMessage {
|
|
|
6272
6335
|
* @memberof ConversationMessage
|
|
6273
6336
|
*/
|
|
6274
6337
|
body?: string;
|
|
6338
|
+
/**
|
|
6339
|
+
*
|
|
6340
|
+
* @type {string}
|
|
6341
|
+
* @memberof ConversationMessage
|
|
6342
|
+
*/
|
|
6343
|
+
client_message_id?: string;
|
|
6275
6344
|
/**
|
|
6276
6345
|
*
|
|
6277
6346
|
* @type {Array<string>}
|
|
@@ -6290,6 +6359,12 @@ export interface ConversationMessage {
|
|
|
6290
6359
|
* @memberof ConversationMessage
|
|
6291
6360
|
*/
|
|
6292
6361
|
transport_statuses?: Array<ConversationMessageTransportStatus>;
|
|
6362
|
+
/**
|
|
6363
|
+
* Message type
|
|
6364
|
+
* @type {string}
|
|
6365
|
+
* @memberof ConversationMessage
|
|
6366
|
+
*/
|
|
6367
|
+
type?: ConversationMessage.TypeEnum;
|
|
6293
6368
|
/**
|
|
6294
6369
|
*
|
|
6295
6370
|
* @type {Array<string>}
|
|
@@ -6297,6 +6372,20 @@ export interface ConversationMessage {
|
|
|
6297
6372
|
*/
|
|
6298
6373
|
upload_keys?: Array<string>;
|
|
6299
6374
|
}
|
|
6375
|
+
/**
|
|
6376
|
+
* @export
|
|
6377
|
+
* @namespace ConversationMessage
|
|
6378
|
+
*/
|
|
6379
|
+
export declare namespace ConversationMessage {
|
|
6380
|
+
/**
|
|
6381
|
+
* @export
|
|
6382
|
+
* @enum {string}
|
|
6383
|
+
*/
|
|
6384
|
+
enum TypeEnum {
|
|
6385
|
+
Message,
|
|
6386
|
+
Notice
|
|
6387
|
+
}
|
|
6388
|
+
}
|
|
6300
6389
|
/**
|
|
6301
6390
|
*
|
|
6302
6391
|
* @export
|
|
@@ -6556,12 +6645,43 @@ export interface ConversationSummary {
|
|
|
6556
6645
|
* @memberof ConversationSummary
|
|
6557
6646
|
*/
|
|
6558
6647
|
message_count?: number;
|
|
6648
|
+
/**
|
|
6649
|
+
* Start of the conversation date/time
|
|
6650
|
+
* @type {string}
|
|
6651
|
+
* @memberof ConversationSummary
|
|
6652
|
+
*/
|
|
6653
|
+
start_dts?: string;
|
|
6559
6654
|
/**
|
|
6560
6655
|
*
|
|
6561
6656
|
* @type {boolean}
|
|
6562
6657
|
* @memberof ConversationSummary
|
|
6563
6658
|
*/
|
|
6564
6659
|
unread_messages?: boolean;
|
|
6660
|
+
/**
|
|
6661
|
+
*
|
|
6662
|
+
* @type {boolean}
|
|
6663
|
+
* @memberof ConversationSummary
|
|
6664
|
+
*/
|
|
6665
|
+
visible?: boolean;
|
|
6666
|
+
}
|
|
6667
|
+
/**
|
|
6668
|
+
*
|
|
6669
|
+
* @export
|
|
6670
|
+
* @interface ConversationTwilioAccount
|
|
6671
|
+
*/
|
|
6672
|
+
export interface ConversationTwilioAccount {
|
|
6673
|
+
/**
|
|
6674
|
+
*
|
|
6675
|
+
* @type {string}
|
|
6676
|
+
* @memberof ConversationTwilioAccount
|
|
6677
|
+
*/
|
|
6678
|
+
merchant_id?: string;
|
|
6679
|
+
/**
|
|
6680
|
+
*
|
|
6681
|
+
* @type {Array<string>}
|
|
6682
|
+
* @memberof ConversationTwilioAccount
|
|
6683
|
+
*/
|
|
6684
|
+
twilio_phone_numbers?: Array<string>;
|
|
6565
6685
|
}
|
|
6566
6686
|
/**
|
|
6567
6687
|
*
|
|
@@ -6832,6 +6952,12 @@ export interface ConversationWebsocketMessage {
|
|
|
6832
6952
|
* @memberof ConversationWebsocketMessage
|
|
6833
6953
|
*/
|
|
6834
6954
|
event_queue_status_update?: ConversationWebchatQueueStatus;
|
|
6955
|
+
/**
|
|
6956
|
+
*
|
|
6957
|
+
* @type {ConversationEventRRWeb}
|
|
6958
|
+
* @memberof ConversationWebsocketMessage
|
|
6959
|
+
*/
|
|
6960
|
+
event_rrweb?: ConversationEventRRWeb;
|
|
6835
6961
|
/**
|
|
6836
6962
|
* Type of event
|
|
6837
6963
|
* @type {string}
|
|
@@ -6873,7 +6999,8 @@ export declare namespace ConversationWebsocketMessage {
|
|
|
6873
6999
|
NewConversation,
|
|
6874
7000
|
NewMessage,
|
|
6875
7001
|
UpdatedMessage,
|
|
6876
|
-
QueueStatusUpdate
|
|
7002
|
+
QueueStatusUpdate,
|
|
7003
|
+
Rrweb
|
|
6877
7004
|
}
|
|
6878
7005
|
/**
|
|
6879
7006
|
* @export
|
|
@@ -6882,7 +7009,8 @@ export declare namespace ConversationWebsocketMessage {
|
|
|
6882
7009
|
enum TypeEnum {
|
|
6883
7010
|
Message,
|
|
6884
7011
|
Event,
|
|
6885
|
-
Ping
|
|
7012
|
+
Ping,
|
|
7013
|
+
CheckQueuePosition
|
|
6886
7014
|
}
|
|
6887
7015
|
}
|
|
6888
7016
|
/**
|
|
@@ -12434,6 +12562,92 @@ export interface EmailCommseqResponse {
|
|
|
12434
12562
|
*/
|
|
12435
12563
|
warning?: Warning;
|
|
12436
12564
|
}
|
|
12565
|
+
/**
|
|
12566
|
+
*
|
|
12567
|
+
* @export
|
|
12568
|
+
* @interface EmailCommseqSequenceTestRequest
|
|
12569
|
+
*/
|
|
12570
|
+
export interface EmailCommseqSequenceTestRequest {
|
|
12571
|
+
/**
|
|
12572
|
+
*
|
|
12573
|
+
* @type {string}
|
|
12574
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12575
|
+
*/
|
|
12576
|
+
cart_id?: string;
|
|
12577
|
+
/**
|
|
12578
|
+
*
|
|
12579
|
+
* @type {Array<string>}
|
|
12580
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12581
|
+
*/
|
|
12582
|
+
cart_item_ids?: Array<string>;
|
|
12583
|
+
/**
|
|
12584
|
+
*
|
|
12585
|
+
* @type {string}
|
|
12586
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12587
|
+
*/
|
|
12588
|
+
esp_commseq_uuid?: string;
|
|
12589
|
+
/**
|
|
12590
|
+
*
|
|
12591
|
+
* @type {string}
|
|
12592
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12593
|
+
*/
|
|
12594
|
+
name?: string;
|
|
12595
|
+
/**
|
|
12596
|
+
*
|
|
12597
|
+
* @type {string}
|
|
12598
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12599
|
+
*/
|
|
12600
|
+
order_id?: string;
|
|
12601
|
+
/**
|
|
12602
|
+
*
|
|
12603
|
+
* @type {boolean}
|
|
12604
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12605
|
+
*/
|
|
12606
|
+
please_review?: boolean;
|
|
12607
|
+
/**
|
|
12608
|
+
*
|
|
12609
|
+
* @type {string}
|
|
12610
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12611
|
+
*/
|
|
12612
|
+
send_to_email?: string;
|
|
12613
|
+
/**
|
|
12614
|
+
*
|
|
12615
|
+
* @type {boolean}
|
|
12616
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12617
|
+
*/
|
|
12618
|
+
send_to_logged_in_user?: boolean;
|
|
12619
|
+
}
|
|
12620
|
+
/**
|
|
12621
|
+
*
|
|
12622
|
+
* @export
|
|
12623
|
+
* @interface EmailCommseqSequenceTestResponse
|
|
12624
|
+
*/
|
|
12625
|
+
export interface EmailCommseqSequenceTestResponse {
|
|
12626
|
+
/**
|
|
12627
|
+
*
|
|
12628
|
+
* @type {ModelError}
|
|
12629
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12630
|
+
*/
|
|
12631
|
+
error?: ModelError;
|
|
12632
|
+
/**
|
|
12633
|
+
*
|
|
12634
|
+
* @type {ResponseMetadata}
|
|
12635
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12636
|
+
*/
|
|
12637
|
+
metadata?: ResponseMetadata;
|
|
12638
|
+
/**
|
|
12639
|
+
* Indicates if API call was successful
|
|
12640
|
+
* @type {boolean}
|
|
12641
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12642
|
+
*/
|
|
12643
|
+
success?: boolean;
|
|
12644
|
+
/**
|
|
12645
|
+
*
|
|
12646
|
+
* @type {Warning}
|
|
12647
|
+
* @memberof EmailCommseqSequenceTestResponse
|
|
12648
|
+
*/
|
|
12649
|
+
warning?: Warning;
|
|
12650
|
+
}
|
|
12437
12651
|
/**
|
|
12438
12652
|
*
|
|
12439
12653
|
* @export
|
|
@@ -41849,6 +42063,16 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
41849
42063
|
* @throws {RequiredError}
|
|
41850
42064
|
*/
|
|
41851
42065
|
sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): FetchArgs;
|
|
42066
|
+
/**
|
|
42067
|
+
*
|
|
42068
|
+
* @summary Sequence test
|
|
42069
|
+
* @param {number} storefront_oid
|
|
42070
|
+
* @param {string} commseq_uuid
|
|
42071
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
42072
|
+
* @param {*} [options] Override http request option.
|
|
42073
|
+
* @throws {RequiredError}
|
|
42074
|
+
*/
|
|
42075
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): FetchArgs;
|
|
41852
42076
|
/**
|
|
41853
42077
|
*
|
|
41854
42078
|
* @summary Start email campaign
|
|
@@ -43335,6 +43559,16 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
43335
43559
|
* @throws {RequiredError}
|
|
43336
43560
|
*/
|
|
43337
43561
|
sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqWebhookSendTestResponse>;
|
|
43562
|
+
/**
|
|
43563
|
+
*
|
|
43564
|
+
* @summary Sequence test
|
|
43565
|
+
* @param {number} storefront_oid
|
|
43566
|
+
* @param {string} commseq_uuid
|
|
43567
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
43568
|
+
* @param {*} [options] Override http request option.
|
|
43569
|
+
* @throws {RequiredError}
|
|
43570
|
+
*/
|
|
43571
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqSequenceTestResponse>;
|
|
43338
43572
|
/**
|
|
43339
43573
|
*
|
|
43340
43574
|
* @summary Start email campaign
|
|
@@ -44821,6 +45055,16 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
44821
45055
|
* @throws {RequiredError}
|
|
44822
45056
|
*/
|
|
44823
45057
|
sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
|
|
45058
|
+
/**
|
|
45059
|
+
*
|
|
45060
|
+
* @summary Sequence test
|
|
45061
|
+
* @param {number} storefront_oid
|
|
45062
|
+
* @param {string} commseq_uuid
|
|
45063
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
45064
|
+
* @param {*} [options] Override http request option.
|
|
45065
|
+
* @throws {RequiredError}
|
|
45066
|
+
*/
|
|
45067
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
|
|
44824
45068
|
/**
|
|
44825
45069
|
*
|
|
44826
45070
|
* @summary Start email campaign
|
|
@@ -46444,6 +46688,17 @@ export interface StorefrontApiInterface {
|
|
|
46444
46688
|
* @memberof StorefrontApiInterface
|
|
46445
46689
|
*/
|
|
46446
46690
|
sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
|
|
46691
|
+
/**
|
|
46692
|
+
*
|
|
46693
|
+
* @summary Sequence test
|
|
46694
|
+
* @param {number} storefront_oid
|
|
46695
|
+
* @param {string} commseq_uuid
|
|
46696
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
46697
|
+
* @param {*} [options] Override http request option.
|
|
46698
|
+
* @throws {RequiredError}
|
|
46699
|
+
* @memberof StorefrontApiInterface
|
|
46700
|
+
*/
|
|
46701
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
|
|
46447
46702
|
/**
|
|
46448
46703
|
*
|
|
46449
46704
|
* @summary Start email campaign
|
|
@@ -48094,6 +48349,17 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
48094
48349
|
* @memberof StorefrontApi
|
|
48095
48350
|
*/
|
|
48096
48351
|
sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
|
|
48352
|
+
/**
|
|
48353
|
+
*
|
|
48354
|
+
* @summary Sequence test
|
|
48355
|
+
* @param {number} storefront_oid
|
|
48356
|
+
* @param {string} commseq_uuid
|
|
48357
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
48358
|
+
* @param {*} [options] Override http request option.
|
|
48359
|
+
* @throws {RequiredError}
|
|
48360
|
+
* @memberof StorefrontApi
|
|
48361
|
+
*/
|
|
48362
|
+
sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
|
|
48097
48363
|
/**
|
|
48098
48364
|
*
|
|
48099
48365
|
* @summary Start email campaign
|
package/dist/api.js
CHANGED
|
@@ -28,9 +28,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
28
28
|
};
|
|
29
29
|
})();
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = void 0;
|
|
31
|
+
exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.ConversationWebsocketMessage = exports.ConversationMessage = exports.ConversationEventRRWeb = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
32
|
+
exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = void 0;
|
|
33
|
+
exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = void 0;
|
|
34
34
|
var url = require("url");
|
|
35
35
|
var portableFetch = require("portable-fetch");
|
|
36
36
|
var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
|
|
@@ -359,6 +359,38 @@ var CheckoutHandoffRequest;
|
|
|
359
359
|
OperationEnum[OperationEnum["Sezzle"] = 'sezzle'] = "Sezzle";
|
|
360
360
|
})(OperationEnum = CheckoutHandoffRequest.OperationEnum || (CheckoutHandoffRequest.OperationEnum = {}));
|
|
361
361
|
})(CheckoutHandoffRequest = exports.CheckoutHandoffRequest || (exports.CheckoutHandoffRequest = {}));
|
|
362
|
+
/**
|
|
363
|
+
* @export
|
|
364
|
+
* @namespace ConversationEventRRWeb
|
|
365
|
+
*/
|
|
366
|
+
var ConversationEventRRWeb;
|
|
367
|
+
(function (ConversationEventRRWeb) {
|
|
368
|
+
/**
|
|
369
|
+
* @export
|
|
370
|
+
* @enum {string}
|
|
371
|
+
*/
|
|
372
|
+
var TypeEnum;
|
|
373
|
+
(function (TypeEnum) {
|
|
374
|
+
TypeEnum[TypeEnum["Init"] = 'init'] = "Init";
|
|
375
|
+
TypeEnum[TypeEnum["Events"] = 'events'] = "Events";
|
|
376
|
+
})(TypeEnum = ConversationEventRRWeb.TypeEnum || (ConversationEventRRWeb.TypeEnum = {}));
|
|
377
|
+
})(ConversationEventRRWeb = exports.ConversationEventRRWeb || (exports.ConversationEventRRWeb = {}));
|
|
378
|
+
/**
|
|
379
|
+
* @export
|
|
380
|
+
* @namespace ConversationMessage
|
|
381
|
+
*/
|
|
382
|
+
var ConversationMessage;
|
|
383
|
+
(function (ConversationMessage) {
|
|
384
|
+
/**
|
|
385
|
+
* @export
|
|
386
|
+
* @enum {string}
|
|
387
|
+
*/
|
|
388
|
+
var TypeEnum;
|
|
389
|
+
(function (TypeEnum) {
|
|
390
|
+
TypeEnum[TypeEnum["Message"] = 'message'] = "Message";
|
|
391
|
+
TypeEnum[TypeEnum["Notice"] = 'notice'] = "Notice";
|
|
392
|
+
})(TypeEnum = ConversationMessage.TypeEnum || (ConversationMessage.TypeEnum = {}));
|
|
393
|
+
})(ConversationMessage = exports.ConversationMessage || (exports.ConversationMessage = {}));
|
|
362
394
|
/**
|
|
363
395
|
* @export
|
|
364
396
|
* @namespace ConversationWebsocketMessage
|
|
@@ -378,6 +410,7 @@ var ConversationWebsocketMessage;
|
|
|
378
410
|
EventTypeEnum[EventTypeEnum["NewMessage"] = 'new message'] = "NewMessage";
|
|
379
411
|
EventTypeEnum[EventTypeEnum["UpdatedMessage"] = 'updated message'] = "UpdatedMessage";
|
|
380
412
|
EventTypeEnum[EventTypeEnum["QueueStatusUpdate"] = 'queue status update'] = "QueueStatusUpdate";
|
|
413
|
+
EventTypeEnum[EventTypeEnum["Rrweb"] = 'rrweb'] = "Rrweb";
|
|
381
414
|
})(EventTypeEnum = ConversationWebsocketMessage.EventTypeEnum || (ConversationWebsocketMessage.EventTypeEnum = {}));
|
|
382
415
|
/**
|
|
383
416
|
* @export
|
|
@@ -388,6 +421,7 @@ var ConversationWebsocketMessage;
|
|
|
388
421
|
TypeEnum[TypeEnum["Message"] = 'message'] = "Message";
|
|
389
422
|
TypeEnum[TypeEnum["Event"] = 'event'] = "Event";
|
|
390
423
|
TypeEnum[TypeEnum["Ping"] = 'ping'] = "Ping";
|
|
424
|
+
TypeEnum[TypeEnum["CheckQueuePosition"] = 'check queue position'] = "CheckQueuePosition";
|
|
391
425
|
})(TypeEnum = ConversationWebsocketMessage.TypeEnum || (ConversationWebsocketMessage.TypeEnum = {}));
|
|
392
426
|
})(ConversationWebsocketMessage = exports.ConversationWebsocketMessage || (exports.ConversationWebsocketMessage = {}));
|
|
393
427
|
/**
|
|
@@ -24163,6 +24197,73 @@ var StorefrontApiFetchParamCreator = function (configuration) {
|
|
|
24163
24197
|
options: localVarRequestOptions,
|
|
24164
24198
|
};
|
|
24165
24199
|
},
|
|
24200
|
+
/**
|
|
24201
|
+
*
|
|
24202
|
+
* @summary Sequence test
|
|
24203
|
+
* @param {number} storefront_oid
|
|
24204
|
+
* @param {string} commseq_uuid
|
|
24205
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
24206
|
+
* @param {*} [options] Override http request option.
|
|
24207
|
+
* @throws {RequiredError}
|
|
24208
|
+
*/
|
|
24209
|
+
sequenceTest: function (storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options) {
|
|
24210
|
+
if (options === void 0) { options = {}; }
|
|
24211
|
+
// verify required parameter 'storefront_oid' is not null or undefined
|
|
24212
|
+
if (storefront_oid === null || storefront_oid === undefined) {
|
|
24213
|
+
throw new RequiredError('storefront_oid', 'Required parameter storefront_oid was null or undefined when calling sequenceTest.');
|
|
24214
|
+
}
|
|
24215
|
+
// verify required parameter 'commseq_uuid' is not null or undefined
|
|
24216
|
+
if (commseq_uuid === null || commseq_uuid === undefined) {
|
|
24217
|
+
throw new RequiredError('commseq_uuid', 'Required parameter commseq_uuid was null or undefined when calling sequenceTest.');
|
|
24218
|
+
}
|
|
24219
|
+
// verify required parameter 'email_commseq_sequence_test_request' is not null or undefined
|
|
24220
|
+
if (email_commseq_sequence_test_request === null || email_commseq_sequence_test_request === undefined) {
|
|
24221
|
+
throw new RequiredError('email_commseq_sequence_test_request', 'Required parameter email_commseq_sequence_test_request was null or undefined when calling sequenceTest.');
|
|
24222
|
+
}
|
|
24223
|
+
var localVarPath = "/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test"
|
|
24224
|
+
.replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(storefront_oid)))
|
|
24225
|
+
.replace("{".concat("commseq_uuid", "}"), encodeURIComponent(String(commseq_uuid)));
|
|
24226
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
24227
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
24228
|
+
var localVarHeaderParameter = {};
|
|
24229
|
+
var localVarQueryParameter = {};
|
|
24230
|
+
if (configuration && configuration.apiVersion) {
|
|
24231
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
24232
|
+
}
|
|
24233
|
+
// authentication ultraCartBrowserApiKey required
|
|
24234
|
+
if (configuration && configuration.apiKey) {
|
|
24235
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24236
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
24237
|
+
: configuration.apiKey;
|
|
24238
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
24239
|
+
}
|
|
24240
|
+
// authentication ultraCartOauth required
|
|
24241
|
+
// oauth required
|
|
24242
|
+
if (configuration && configuration.accessToken) {
|
|
24243
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
24244
|
+
? configuration.accessToken("ultraCartOauth", ["storefront_write"])
|
|
24245
|
+
: configuration.accessToken;
|
|
24246
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
24247
|
+
}
|
|
24248
|
+
// authentication ultraCartSimpleApiKey required
|
|
24249
|
+
if (configuration && configuration.apiKey) {
|
|
24250
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24251
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
24252
|
+
: configuration.apiKey;
|
|
24253
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
24254
|
+
}
|
|
24255
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24256
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
24257
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24258
|
+
delete localVarUrlObj.search;
|
|
24259
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
24260
|
+
var needsSerialization = ("EmailCommseqSequenceTestRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
24261
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(email_commseq_sequence_test_request || {}) : (email_commseq_sequence_test_request || "");
|
|
24262
|
+
return {
|
|
24263
|
+
url: url.format(localVarUrlObj),
|
|
24264
|
+
options: localVarRequestOptions,
|
|
24265
|
+
};
|
|
24266
|
+
},
|
|
24166
24267
|
/**
|
|
24167
24268
|
*
|
|
24168
24269
|
* @summary Start email campaign
|
|
@@ -28963,6 +29064,30 @@ var StorefrontApiFp = function (configuration) {
|
|
|
28963
29064
|
});
|
|
28964
29065
|
};
|
|
28965
29066
|
},
|
|
29067
|
+
/**
|
|
29068
|
+
*
|
|
29069
|
+
* @summary Sequence test
|
|
29070
|
+
* @param {number} storefront_oid
|
|
29071
|
+
* @param {string} commseq_uuid
|
|
29072
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
29073
|
+
* @param {*} [options] Override http request option.
|
|
29074
|
+
* @throws {RequiredError}
|
|
29075
|
+
*/
|
|
29076
|
+
sequenceTest: function (storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options) {
|
|
29077
|
+
var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options);
|
|
29078
|
+
return function (fetch, basePath) {
|
|
29079
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
29080
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
29081
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
29082
|
+
if (response.status >= 200 && response.status < 300) {
|
|
29083
|
+
return response.json();
|
|
29084
|
+
}
|
|
29085
|
+
else {
|
|
29086
|
+
throw response;
|
|
29087
|
+
}
|
|
29088
|
+
});
|
|
29089
|
+
};
|
|
29090
|
+
},
|
|
28966
29091
|
/**
|
|
28967
29092
|
*
|
|
28968
29093
|
* @summary Start email campaign
|
|
@@ -31088,6 +31213,18 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
|
|
|
31088
31213
|
sendWebhookTest: function (storefront_oid, email_commseq_webhook_test_request, options) {
|
|
31089
31214
|
return (0, exports.StorefrontApiFp)(configuration).sendWebhookTest(storefront_oid, email_commseq_webhook_test_request, options)(fetch, basePath);
|
|
31090
31215
|
},
|
|
31216
|
+
/**
|
|
31217
|
+
*
|
|
31218
|
+
* @summary Sequence test
|
|
31219
|
+
* @param {number} storefront_oid
|
|
31220
|
+
* @param {string} commseq_uuid
|
|
31221
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
31222
|
+
* @param {*} [options] Override http request option.
|
|
31223
|
+
* @throws {RequiredError}
|
|
31224
|
+
*/
|
|
31225
|
+
sequenceTest: function (storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options) {
|
|
31226
|
+
return (0, exports.StorefrontApiFp)(configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options)(fetch, basePath);
|
|
31227
|
+
},
|
|
31091
31228
|
/**
|
|
31092
31229
|
*
|
|
31093
31230
|
* @summary Start email campaign
|
|
@@ -33042,6 +33179,19 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
33042
33179
|
StorefrontApi.prototype.sendWebhookTest = function (storefront_oid, email_commseq_webhook_test_request, options) {
|
|
33043
33180
|
return (0, exports.StorefrontApiFp)(this.configuration).sendWebhookTest(storefront_oid, email_commseq_webhook_test_request, options)(this.fetch, this.basePath);
|
|
33044
33181
|
};
|
|
33182
|
+
/**
|
|
33183
|
+
*
|
|
33184
|
+
* @summary Sequence test
|
|
33185
|
+
* @param {number} storefront_oid
|
|
33186
|
+
* @param {string} commseq_uuid
|
|
33187
|
+
* @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
|
|
33188
|
+
* @param {*} [options] Override http request option.
|
|
33189
|
+
* @throws {RequiredError}
|
|
33190
|
+
* @memberof StorefrontApi
|
|
33191
|
+
*/
|
|
33192
|
+
StorefrontApi.prototype.sequenceTest = function (storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options) {
|
|
33193
|
+
return (0, exports.StorefrontApiFp)(this.configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options)(this.fetch, this.basePath);
|
|
33194
|
+
};
|
|
33045
33195
|
/**
|
|
33046
33196
|
*
|
|
33047
33197
|
* @summary Start email campaign
|