ultracart_rest_api_v2_typescript 3.10.29 → 3.10.32

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@3.10.29
1
+ ## ultracart_rest_api_v2_typescript@3.10.32
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.29 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.32 --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.32 | 08/03/2022 | more conversation events |
58
+ | 3.10.31 | 08/02/2022 | storefront communication sequence test method |
59
+ | 3.10.30 | 08/01/2022 | conversation event refinement |
57
60
  | 3.10.29 | 07/29/2022 | conversation development |
58
61
  | 3.10.28 | 07/28/2022 | conversation bug fixes |
59
62
  | 3.10.27 | 07/28/2022 | conversation message upload keys property |
package/api.ts CHANGED
@@ -6399,6 +6399,97 @@ 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
+
6467
+ /**
6468
+ *
6469
+ * @export
6470
+ * @interface ConversationEventTyping
6471
+ */
6472
+ export interface ConversationEventTyping {
6473
+ /**
6474
+ *
6475
+ * @type {string}
6476
+ * @memberof ConversationEventTyping
6477
+ */
6478
+ author_conversation_participant_arn?: string;
6479
+ /**
6480
+ *
6481
+ * @type {string}
6482
+ * @memberof ConversationEventTyping
6483
+ */
6484
+ author_conversation_participant_name?: string;
6485
+ /**
6486
+ *
6487
+ * @type {string}
6488
+ * @memberof ConversationEventTyping
6489
+ */
6490
+ value?: string;
6491
+ }
6492
+
6402
6493
  /**
6403
6494
  *
6404
6495
  * @export
@@ -6447,6 +6538,12 @@ export interface ConversationMessage {
6447
6538
  * @memberof ConversationMessage
6448
6539
  */
6449
6540
  transport_statuses?: Array<ConversationMessageTransportStatus>;
6541
+ /**
6542
+ * Message type
6543
+ * @type {string}
6544
+ * @memberof ConversationMessage
6545
+ */
6546
+ type?: ConversationMessage.TypeEnum;
6450
6547
  /**
6451
6548
  *
6452
6549
  * @type {Array<string>}
@@ -6455,6 +6552,21 @@ export interface ConversationMessage {
6455
6552
  upload_keys?: Array<string>;
6456
6553
  }
6457
6554
 
6555
+ /**
6556
+ * @export
6557
+ * @namespace ConversationMessage
6558
+ */
6559
+ export namespace ConversationMessage {
6560
+ /**
6561
+ * @export
6562
+ * @enum {string}
6563
+ */
6564
+ export enum TypeEnum {
6565
+ Message = <any> 'message',
6566
+ Notice = <any> 'notice'
6567
+ }
6568
+ }
6569
+
6458
6570
  /**
6459
6571
  *
6460
6572
  * @export
@@ -7035,12 +7147,24 @@ export interface ConversationWebsocketMessage {
7035
7147
  * @memberof ConversationWebsocketMessage
7036
7148
  */
7037
7149
  event_queue_status_update?: ConversationWebchatQueueStatus;
7150
+ /**
7151
+ *
7152
+ * @type {ConversationEventRRWeb}
7153
+ * @memberof ConversationWebsocketMessage
7154
+ */
7155
+ event_rrweb?: ConversationEventRRWeb;
7038
7156
  /**
7039
7157
  * Type of event
7040
7158
  * @type {string}
7041
7159
  * @memberof ConversationWebsocketMessage
7042
7160
  */
7043
7161
  event_type?: ConversationWebsocketMessage.EventTypeEnum;
7162
+ /**
7163
+ *
7164
+ * @type {ConversationEventTyping}
7165
+ * @memberof ConversationWebsocketMessage
7166
+ */
7167
+ event_typing?: ConversationEventTyping;
7044
7168
  /**
7045
7169
  *
7046
7170
  * @type {ConversationMessage}
@@ -7077,7 +7201,8 @@ export namespace ConversationWebsocketMessage {
7077
7201
  NewConversation = <any> 'new conversation',
7078
7202
  NewMessage = <any> 'new message',
7079
7203
  UpdatedMessage = <any> 'updated message',
7080
- QueueStatusUpdate = <any> 'queue status update'
7204
+ QueueStatusUpdate = <any> 'queue status update',
7205
+ Rrweb = <any> 'rrweb'
7081
7206
  }
7082
7207
  /**
7083
7208
  * @export
@@ -7086,7 +7211,8 @@ export namespace ConversationWebsocketMessage {
7086
7211
  export enum TypeEnum {
7087
7212
  Message = <any> 'message',
7088
7213
  Event = <any> 'event',
7089
- Ping = <any> 'ping'
7214
+ Ping = <any> 'ping',
7215
+ CheckQueuePosition = <any> 'check queue position'
7090
7216
  }
7091
7217
  }
7092
7218
 
@@ -12763,6 +12889,94 @@ export interface EmailCommseqResponse {
12763
12889
  warning?: Warning;
12764
12890
  }
12765
12891
 
12892
+ /**
12893
+ *
12894
+ * @export
12895
+ * @interface EmailCommseqSequenceTestRequest
12896
+ */
12897
+ export interface EmailCommseqSequenceTestRequest {
12898
+ /**
12899
+ *
12900
+ * @type {string}
12901
+ * @memberof EmailCommseqSequenceTestRequest
12902
+ */
12903
+ cart_id?: string;
12904
+ /**
12905
+ *
12906
+ * @type {Array<string>}
12907
+ * @memberof EmailCommseqSequenceTestRequest
12908
+ */
12909
+ cart_item_ids?: Array<string>;
12910
+ /**
12911
+ *
12912
+ * @type {string}
12913
+ * @memberof EmailCommseqSequenceTestRequest
12914
+ */
12915
+ esp_commseq_uuid?: string;
12916
+ /**
12917
+ *
12918
+ * @type {string}
12919
+ * @memberof EmailCommseqSequenceTestRequest
12920
+ */
12921
+ name?: string;
12922
+ /**
12923
+ *
12924
+ * @type {string}
12925
+ * @memberof EmailCommseqSequenceTestRequest
12926
+ */
12927
+ order_id?: string;
12928
+ /**
12929
+ *
12930
+ * @type {boolean}
12931
+ * @memberof EmailCommseqSequenceTestRequest
12932
+ */
12933
+ please_review?: boolean;
12934
+ /**
12935
+ *
12936
+ * @type {string}
12937
+ * @memberof EmailCommseqSequenceTestRequest
12938
+ */
12939
+ send_to_email?: string;
12940
+ /**
12941
+ *
12942
+ * @type {boolean}
12943
+ * @memberof EmailCommseqSequenceTestRequest
12944
+ */
12945
+ send_to_logged_in_user?: boolean;
12946
+ }
12947
+
12948
+ /**
12949
+ *
12950
+ * @export
12951
+ * @interface EmailCommseqSequenceTestResponse
12952
+ */
12953
+ export interface EmailCommseqSequenceTestResponse {
12954
+ /**
12955
+ *
12956
+ * @type {ModelError}
12957
+ * @memberof EmailCommseqSequenceTestResponse
12958
+ */
12959
+ error?: ModelError;
12960
+ /**
12961
+ *
12962
+ * @type {ResponseMetadata}
12963
+ * @memberof EmailCommseqSequenceTestResponse
12964
+ */
12965
+ metadata?: ResponseMetadata;
12966
+ /**
12967
+ * Indicates if API call was successful
12968
+ * @type {boolean}
12969
+ * @memberof EmailCommseqSequenceTestResponse
12970
+ */
12971
+ success?: boolean;
12972
+ /**
12973
+ *
12974
+ * @type {Warning}
12975
+ * @memberof EmailCommseqSequenceTestResponse
12976
+ */
12977
+ warning?: Warning;
12978
+ }
12979
+
12766
12980
  /**
12767
12981
  *
12768
12982
  * @export
@@ -60797,6 +61011,81 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
60797
61011
  options: localVarRequestOptions,
60798
61012
  };
60799
61013
  },
61014
+ /**
61015
+ *
61016
+ * @summary Sequence test
61017
+ * @param {number} storefront_oid
61018
+ * @param {string} commseq_uuid
61019
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
61020
+ * @param {*} [options] Override http request option.
61021
+ * @throws {RequiredError}
61022
+ */
61023
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options: any = {}): FetchArgs {
61024
+ // verify required parameter 'storefront_oid' is not null or undefined
61025
+ if (storefront_oid === null || storefront_oid === undefined) {
61026
+ throw new RequiredError('storefront_oid','Required parameter storefront_oid was null or undefined when calling sequenceTest.');
61027
+ }
61028
+ // verify required parameter 'commseq_uuid' is not null or undefined
61029
+ if (commseq_uuid === null || commseq_uuid === undefined) {
61030
+ throw new RequiredError('commseq_uuid','Required parameter commseq_uuid was null or undefined when calling sequenceTest.');
61031
+ }
61032
+ // verify required parameter 'email_commseq_sequence_test_request' is not null or undefined
61033
+ if (email_commseq_sequence_test_request === null || email_commseq_sequence_test_request === undefined) {
61034
+ throw new RequiredError('email_commseq_sequence_test_request','Required parameter email_commseq_sequence_test_request was null or undefined when calling sequenceTest.');
61035
+ }
61036
+ const localVarPath = `/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test`
61037
+ .replace(`{${"storefront_oid"}}`, encodeURIComponent(String(storefront_oid)))
61038
+ .replace(`{${"commseq_uuid"}}`, encodeURIComponent(String(commseq_uuid)));
61039
+ const localVarUrlObj = url.parse(localVarPath, true);
61040
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
61041
+ const localVarHeaderParameter = {} as any;
61042
+ const localVarQueryParameter = {} as any;
61043
+
61044
+ if(configuration && configuration.apiVersion) {
61045
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
61046
+ }
61047
+
61048
+
61049
+
61050
+ // authentication ultraCartBrowserApiKey required
61051
+ if (configuration && configuration.apiKey) {
61052
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
61053
+ ? configuration.apiKey("x-ultracart-browser-key")
61054
+ : configuration.apiKey;
61055
+ localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
61056
+ }
61057
+
61058
+ // authentication ultraCartOauth required
61059
+ // oauth required
61060
+ if (configuration && configuration.accessToken) {
61061
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
61062
+ ? configuration.accessToken("ultraCartOauth", ["storefront_write"])
61063
+ : configuration.accessToken;
61064
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
61065
+ }
61066
+
61067
+ // authentication ultraCartSimpleApiKey required
61068
+ if (configuration && configuration.apiKey) {
61069
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
61070
+ ? configuration.apiKey("x-ultracart-simple-key")
61071
+ : configuration.apiKey;
61072
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
61073
+ }
61074
+
61075
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61076
+
61077
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
61078
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
61079
+ delete localVarUrlObj.search;
61080
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
61081
+ const needsSerialization = (<any>"EmailCommseqSequenceTestRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
61082
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(email_commseq_sequence_test_request || {}) : (email_commseq_sequence_test_request || "");
61083
+
61084
+ return {
61085
+ url: url.format(localVarUrlObj),
61086
+ options: localVarRequestOptions,
61087
+ };
61088
+ },
60800
61089
  /**
60801
61090
  *
60802
61091
  * @summary Start email campaign
@@ -65664,6 +65953,29 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
65664
65953
  });
65665
65954
  };
65666
65955
  },
65956
+ /**
65957
+ *
65958
+ * @summary Sequence test
65959
+ * @param {number} storefront_oid
65960
+ * @param {string} commseq_uuid
65961
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
65962
+ * @param {*} [options] Override http request option.
65963
+ * @throws {RequiredError}
65964
+ */
65965
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqSequenceTestResponse> {
65966
+ const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options);
65967
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
65968
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
65969
+
65970
+ if (response.status >= 200 && response.status < 300) {
65971
+ return response.json();
65972
+
65973
+ } else {
65974
+ throw response;
65975
+ }
65976
+ });
65977
+ };
65978
+ },
65667
65979
  /**
65668
65980
  *
65669
65981
  * @summary Start email campaign
@@ -67763,6 +68075,18 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
67763
68075
  sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any) {
67764
68076
  return StorefrontApiFp(configuration).sendWebhookTest(storefront_oid, email_commseq_webhook_test_request, options)(fetch, basePath);
67765
68077
  },
68078
+ /**
68079
+ *
68080
+ * @summary Sequence test
68081
+ * @param {number} storefront_oid
68082
+ * @param {string} commseq_uuid
68083
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
68084
+ * @param {*} [options] Override http request option.
68085
+ * @throws {RequiredError}
68086
+ */
68087
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any) {
68088
+ return StorefrontApiFp(configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options)(fetch, basePath);
68089
+ },
67766
68090
  /**
67767
68091
  *
67768
68092
  * @summary Start email campaign
@@ -69576,6 +69900,18 @@ export interface StorefrontApiInterface {
69576
69900
  */
69577
69901
  sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
69578
69902
 
69903
+ /**
69904
+ *
69905
+ * @summary Sequence test
69906
+ * @param {number} storefront_oid
69907
+ * @param {string} commseq_uuid
69908
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
69909
+ * @param {*} [options] Override http request option.
69910
+ * @throws {RequiredError}
69911
+ * @memberof StorefrontApiInterface
69912
+ */
69913
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
69914
+
69579
69915
  /**
69580
69916
  *
69581
69917
  * @summary Start email campaign
@@ -71661,6 +71997,20 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
71661
71997
  return StorefrontApiFp(this.configuration).sendWebhookTest(storefront_oid, email_commseq_webhook_test_request, options)(this.fetch, this.basePath);
71662
71998
  }
71663
71999
 
72000
+ /**
72001
+ *
72002
+ * @summary Sequence test
72003
+ * @param {number} storefront_oid
72004
+ * @param {string} commseq_uuid
72005
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
72006
+ * @param {*} [options] Override http request option.
72007
+ * @throws {RequiredError}
72008
+ * @memberof StorefrontApi
72009
+ */
72010
+ public sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any) {
72011
+ return StorefrontApiFp(this.configuration).sequenceTest(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, options)(this.fetch, this.basePath);
72012
+ }
72013
+
71664
72014
  /**
71665
72015
  *
71666
72016
  * @summary Start email campaign
package/dist/api.d.ts CHANGED
@@ -6248,6 +6248,94 @@ 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
+ }
6314
+ /**
6315
+ *
6316
+ * @export
6317
+ * @interface ConversationEventTyping
6318
+ */
6319
+ export interface ConversationEventTyping {
6320
+ /**
6321
+ *
6322
+ * @type {string}
6323
+ * @memberof ConversationEventTyping
6324
+ */
6325
+ author_conversation_participant_arn?: string;
6326
+ /**
6327
+ *
6328
+ * @type {string}
6329
+ * @memberof ConversationEventTyping
6330
+ */
6331
+ author_conversation_participant_name?: string;
6332
+ /**
6333
+ *
6334
+ * @type {string}
6335
+ * @memberof ConversationEventTyping
6336
+ */
6337
+ value?: string;
6338
+ }
6251
6339
  /**
6252
6340
  *
6253
6341
  * @export
@@ -6296,6 +6384,12 @@ export interface ConversationMessage {
6296
6384
  * @memberof ConversationMessage
6297
6385
  */
6298
6386
  transport_statuses?: Array<ConversationMessageTransportStatus>;
6387
+ /**
6388
+ * Message type
6389
+ * @type {string}
6390
+ * @memberof ConversationMessage
6391
+ */
6392
+ type?: ConversationMessage.TypeEnum;
6299
6393
  /**
6300
6394
  *
6301
6395
  * @type {Array<string>}
@@ -6303,6 +6397,20 @@ export interface ConversationMessage {
6303
6397
  */
6304
6398
  upload_keys?: Array<string>;
6305
6399
  }
6400
+ /**
6401
+ * @export
6402
+ * @namespace ConversationMessage
6403
+ */
6404
+ export declare namespace ConversationMessage {
6405
+ /**
6406
+ * @export
6407
+ * @enum {string}
6408
+ */
6409
+ enum TypeEnum {
6410
+ Message,
6411
+ Notice
6412
+ }
6413
+ }
6306
6414
  /**
6307
6415
  *
6308
6416
  * @export
@@ -6869,12 +6977,24 @@ export interface ConversationWebsocketMessage {
6869
6977
  * @memberof ConversationWebsocketMessage
6870
6978
  */
6871
6979
  event_queue_status_update?: ConversationWebchatQueueStatus;
6980
+ /**
6981
+ *
6982
+ * @type {ConversationEventRRWeb}
6983
+ * @memberof ConversationWebsocketMessage
6984
+ */
6985
+ event_rrweb?: ConversationEventRRWeb;
6872
6986
  /**
6873
6987
  * Type of event
6874
6988
  * @type {string}
6875
6989
  * @memberof ConversationWebsocketMessage
6876
6990
  */
6877
6991
  event_type?: ConversationWebsocketMessage.EventTypeEnum;
6992
+ /**
6993
+ *
6994
+ * @type {ConversationEventTyping}
6995
+ * @memberof ConversationWebsocketMessage
6996
+ */
6997
+ event_typing?: ConversationEventTyping;
6878
6998
  /**
6879
6999
  *
6880
7000
  * @type {ConversationMessage}
@@ -6910,7 +7030,8 @@ export declare namespace ConversationWebsocketMessage {
6910
7030
  NewConversation,
6911
7031
  NewMessage,
6912
7032
  UpdatedMessage,
6913
- QueueStatusUpdate
7033
+ QueueStatusUpdate,
7034
+ Rrweb
6914
7035
  }
6915
7036
  /**
6916
7037
  * @export
@@ -6919,7 +7040,8 @@ export declare namespace ConversationWebsocketMessage {
6919
7040
  enum TypeEnum {
6920
7041
  Message,
6921
7042
  Event,
6922
- Ping
7043
+ Ping,
7044
+ CheckQueuePosition
6923
7045
  }
6924
7046
  }
6925
7047
  /**
@@ -12471,6 +12593,92 @@ export interface EmailCommseqResponse {
12471
12593
  */
12472
12594
  warning?: Warning;
12473
12595
  }
12596
+ /**
12597
+ *
12598
+ * @export
12599
+ * @interface EmailCommseqSequenceTestRequest
12600
+ */
12601
+ export interface EmailCommseqSequenceTestRequest {
12602
+ /**
12603
+ *
12604
+ * @type {string}
12605
+ * @memberof EmailCommseqSequenceTestRequest
12606
+ */
12607
+ cart_id?: string;
12608
+ /**
12609
+ *
12610
+ * @type {Array<string>}
12611
+ * @memberof EmailCommseqSequenceTestRequest
12612
+ */
12613
+ cart_item_ids?: Array<string>;
12614
+ /**
12615
+ *
12616
+ * @type {string}
12617
+ * @memberof EmailCommseqSequenceTestRequest
12618
+ */
12619
+ esp_commseq_uuid?: string;
12620
+ /**
12621
+ *
12622
+ * @type {string}
12623
+ * @memberof EmailCommseqSequenceTestRequest
12624
+ */
12625
+ name?: string;
12626
+ /**
12627
+ *
12628
+ * @type {string}
12629
+ * @memberof EmailCommseqSequenceTestRequest
12630
+ */
12631
+ order_id?: string;
12632
+ /**
12633
+ *
12634
+ * @type {boolean}
12635
+ * @memberof EmailCommseqSequenceTestRequest
12636
+ */
12637
+ please_review?: boolean;
12638
+ /**
12639
+ *
12640
+ * @type {string}
12641
+ * @memberof EmailCommseqSequenceTestRequest
12642
+ */
12643
+ send_to_email?: string;
12644
+ /**
12645
+ *
12646
+ * @type {boolean}
12647
+ * @memberof EmailCommseqSequenceTestRequest
12648
+ */
12649
+ send_to_logged_in_user?: boolean;
12650
+ }
12651
+ /**
12652
+ *
12653
+ * @export
12654
+ * @interface EmailCommseqSequenceTestResponse
12655
+ */
12656
+ export interface EmailCommseqSequenceTestResponse {
12657
+ /**
12658
+ *
12659
+ * @type {ModelError}
12660
+ * @memberof EmailCommseqSequenceTestResponse
12661
+ */
12662
+ error?: ModelError;
12663
+ /**
12664
+ *
12665
+ * @type {ResponseMetadata}
12666
+ * @memberof EmailCommseqSequenceTestResponse
12667
+ */
12668
+ metadata?: ResponseMetadata;
12669
+ /**
12670
+ * Indicates if API call was successful
12671
+ * @type {boolean}
12672
+ * @memberof EmailCommseqSequenceTestResponse
12673
+ */
12674
+ success?: boolean;
12675
+ /**
12676
+ *
12677
+ * @type {Warning}
12678
+ * @memberof EmailCommseqSequenceTestResponse
12679
+ */
12680
+ warning?: Warning;
12681
+ }
12474
12682
  /**
12475
12683
  *
12476
12684
  * @export
@@ -41886,6 +42094,16 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
41886
42094
  * @throws {RequiredError}
41887
42095
  */
41888
42096
  sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): FetchArgs;
42097
+ /**
42098
+ *
42099
+ * @summary Sequence test
42100
+ * @param {number} storefront_oid
42101
+ * @param {string} commseq_uuid
42102
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
42103
+ * @param {*} [options] Override http request option.
42104
+ * @throws {RequiredError}
42105
+ */
42106
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): FetchArgs;
41889
42107
  /**
41890
42108
  *
41891
42109
  * @summary Start email campaign
@@ -43372,6 +43590,16 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
43372
43590
  * @throws {RequiredError}
43373
43591
  */
43374
43592
  sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqWebhookSendTestResponse>;
43593
+ /**
43594
+ *
43595
+ * @summary Sequence test
43596
+ * @param {number} storefront_oid
43597
+ * @param {string} commseq_uuid
43598
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
43599
+ * @param {*} [options] Override http request option.
43600
+ * @throws {RequiredError}
43601
+ */
43602
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailCommseqSequenceTestResponse>;
43375
43603
  /**
43376
43604
  *
43377
43605
  * @summary Start email campaign
@@ -44858,6 +45086,16 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
44858
45086
  * @throws {RequiredError}
44859
45087
  */
44860
45088
  sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
45089
+ /**
45090
+ *
45091
+ * @summary Sequence test
45092
+ * @param {number} storefront_oid
45093
+ * @param {string} commseq_uuid
45094
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
45095
+ * @param {*} [options] Override http request option.
45096
+ * @throws {RequiredError}
45097
+ */
45098
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
44861
45099
  /**
44862
45100
  *
44863
45101
  * @summary Start email campaign
@@ -46481,6 +46719,17 @@ export interface StorefrontApiInterface {
46481
46719
  * @memberof StorefrontApiInterface
46482
46720
  */
46483
46721
  sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
46722
+ /**
46723
+ *
46724
+ * @summary Sequence test
46725
+ * @param {number} storefront_oid
46726
+ * @param {string} commseq_uuid
46727
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
46728
+ * @param {*} [options] Override http request option.
46729
+ * @throws {RequiredError}
46730
+ * @memberof StorefrontApiInterface
46731
+ */
46732
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
46484
46733
  /**
46485
46734
  *
46486
46735
  * @summary Start email campaign
@@ -48131,6 +48380,17 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
48131
48380
  * @memberof StorefrontApi
48132
48381
  */
48133
48382
  sendWebhookTest(storefront_oid: number, email_commseq_webhook_test_request: EmailCommseqWebhookSendTestRequest, options?: any): Promise<EmailCommseqWebhookSendTestResponse>;
48383
+ /**
48384
+ *
48385
+ * @summary Sequence test
48386
+ * @param {number} storefront_oid
48387
+ * @param {string} commseq_uuid
48388
+ * @param {EmailCommseqSequenceTestRequest} email_commseq_sequence_test_request Commseq test request
48389
+ * @param {*} [options] Override http request option.
48390
+ * @throws {RequiredError}
48391
+ * @memberof StorefrontApi
48392
+ */
48393
+ sequenceTest(storefront_oid: number, commseq_uuid: string, email_commseq_sequence_test_request: EmailCommseqSequenceTestRequest, options?: any): Promise<EmailCommseqSequenceTestResponse>;
48134
48394
  /**
48135
48395
  *
48136
48396
  * @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.AffiliateApi = exports.AffiliateApiFactory = 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.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.OrderApiFp = exports.OrderApiFetchParamCreator = 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 = 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 = 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.29",
3
+ "version": "3.10.32",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [