ultracart_rest_api_v2_typescript 4.0.74-RC → 4.0.76-RC
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/.openapi-generator/FILES +2 -0
- package/README.md +4 -2
- package/dist/apis/StorefrontApi.d.ts +31 -1
- package/dist/apis/StorefrontApi.js +71 -0
- package/dist/models/ConversationParticipant.d.ts +6 -0
- package/dist/models/ConversationParticipant.js +2 -0
- package/dist/models/EmailCommseqSequenceTestRequest.d.ts +6 -0
- package/dist/models/EmailCommseqSequenceTestRequest.js +2 -0
- package/dist/models/EmailCommseqSmsSendTestRequest.d.ts +39 -0
- package/dist/models/EmailCommseqSmsSendTestRequest.js +46 -0
- package/dist/models/EmailCommseqSmsSendTestResponse.d.ts +60 -0
- package/dist/models/EmailCommseqSmsSendTestResponse.js +55 -0
- package/dist/models/EmailStepStat.d.ts +55 -1
- package/dist/models/EmailStepStat.js +18 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/StorefrontApi.ts +89 -0
- package/src/models/ConversationParticipant.ts +8 -0
- package/src/models/EmailCommseqSequenceTestRequest.ts +8 -0
- package/src/models/EmailCommseqSmsSendTestRequest.ts +72 -0
- package/src/models/EmailCommseqSmsSendTestResponse.ts +115 -0
- package/src/models/EmailStepStat.ts +73 -1
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -290,6 +290,8 @@ src/models/EmailCommseqPostcardsResponse.ts
|
|
|
290
290
|
src/models/EmailCommseqResponse.ts
|
|
291
291
|
src/models/EmailCommseqSequenceTestRequest.ts
|
|
292
292
|
src/models/EmailCommseqSequenceTestResponse.ts
|
|
293
|
+
src/models/EmailCommseqSmsSendTestRequest.ts
|
|
294
|
+
src/models/EmailCommseqSmsSendTestResponse.ts
|
|
293
295
|
src/models/EmailCommseqStat.ts
|
|
294
296
|
src/models/EmailCommseqStatResponse.ts
|
|
295
297
|
src/models/EmailCommseqStep.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.76-RC
|
|
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@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.76-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.76-RC | 10/31/2022 | communications - addl statistics on EmailStepStat object |
|
|
58
|
+
| 4.0.75-RC | 10/26/2022 | esp - methods for sms testing |
|
|
57
59
|
| 4.0.74-RC | 10/17/2022 | conversations - add last_interactive_message_dts |
|
|
58
60
|
| 4.0.73-RC | 10/07/2022 | bug fix for digital items response |
|
|
59
61
|
| 4.0.72-RC | 10/05/2022 | storefront rest file cdn icon urls |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AddLibraryItemRequest, ApplyLibraryItemRequest, ApplyLibraryItemResponse, BaseResponse, CountriesResponse, EmailBaseTemplateListResponse, EmailCampaign, EmailCampaignFolder, EmailCampaignFolderResponse, EmailCampaignFoldersResponse, EmailCampaignResponse, EmailCampaignsResponse, EmailClicksResponse, EmailCommseq, EmailCommseqEmail, EmailCommseqEmailResponse, EmailCommseqEmailSendTestRequest, EmailCommseqEmailSendTestResponse, EmailCommseqEmailsRequest, EmailCommseqEmailsResponse, EmailCommseqPostcard, EmailCommseqPostcardResponse, EmailCommseqPostcardSendTestRequest, EmailCommseqPostcardSendTestResponse, EmailCommseqPostcardsRequest, EmailCommseqPostcardsResponse, EmailCommseqResponse, EmailCommseqSequenceTestRequest, EmailCommseqSequenceTestResponse, EmailCommseqStatResponse, EmailCommseqStepLogsResponse, EmailCommseqWebhookSendTestRequest, EmailCommseqWebhookSendTestResponse, EmailCommseqsResponse, EmailCustomer, EmailCustomerEditorUrlResponse, EmailCustomersResponse, EmailDashboardActivityResponse, EmailDashboardStatsResponse, EmailDomain, EmailEditorTokenResponse, EmailFlow, EmailFlowBackPopulateRequest, EmailFlowBackPopulateResponse, EmailFlowFolder, EmailFlowFolderResponse, EmailFlowFoldersResponse, EmailFlowResponse, EmailFlowsResponse, EmailGlobalSettings, EmailGlobalSettingsResponse, EmailGlobalUnsubscribeRequest, EmailGlobalUnsubscribeResponse, EmailHistogramPropertyNamesResponse, EmailHistogramPropertyValuesResponse, EmailList, EmailListArchiveResponse, EmailListCustomersResponse, EmailListResponse, EmailListSegmentFolder, EmailListSegmentFolderResponse, EmailListSegmentFoldersResponse, EmailListSubscribeResponse, EmailListsResponse, EmailOrdersResponse, EmailPerformanceResponse, EmailPlan, EmailPlanResponse, EmailPostcardTrackingResponse, EmailSegment, EmailSegmentArchiveResponse, EmailSegmentCustomersResponse, EmailSegmentDownloadPrepareResponse, EmailSegmentResponse, EmailSegmentsResponse, EmailSendingDomainResponse, EmailSendingDomainsResponse, EmailSettings, EmailSettingsResponse, EmailStatPostcardSummaryRequest, EmailStatPostcardSummaryResponse, EmailStatSummaryRequest, EmailStatSummaryResponse, EmailStepStatRequest, EmailStepStatResponse, EmailStepWaitingRequest, EmailStepWaitingResponse, EmailTemplate, EmailTemplatesResponse, EmailThirdPartyListImportRequest, EmailThirdPartyProvidersResponse, EmailWebhookEditorValuesResponse, Experiment, ExperimentResponse, ExperimentsResponse, FileManagerPageResponse, FileManagerUploadRequest, FileManagerUploadUrlResponse, GeocodeRequest, GeocodeResponse, LibraryFilterValuesResponse, LibraryItem, LibraryItemQuery, LibraryItemResponse, LibraryItemsResponse, LookupRequest, LookupResponse, PricingTiersResponse, PublishLibraryItemRequest, RulerValidationRequest, RulerValidationResponse, ScreenRecordingHeatmapIndexRequest, ScreenRecordingHeatmapIndexResponse, ScreenRecordingHeatmapRequest, ScreenRecordingHeatmapReset, ScreenRecordingHeatmapResponse, ScreenRecordingMerchantNotesRequest, ScreenRecordingPageViewDataResponse, ScreenRecordingQueryRequest, ScreenRecordingQueryResponse, ScreenRecordingResponse, ScreenRecordingSegment, ScreenRecordingSegmentResponse, ScreenRecordingSegmentsResponse, ScreenRecordingSettings, ScreenRecordingSettingsResponse, ScreenRecordingTagsRequest, ScreenRecordingTagsResponse, ScreenshotsResponse, StoreFrontsResponse, ThumbnailParametersRequest, ThumbnailParametersResponse, TransactionEmail, TransactionEmailListResponse, TransactionEmailResponse, Twilio, TwilioResponse, TwiliosResponse } from '../models';
|
|
13
|
+
import { AddLibraryItemRequest, ApplyLibraryItemRequest, ApplyLibraryItemResponse, BaseResponse, CountriesResponse, EmailBaseTemplateListResponse, EmailCampaign, EmailCampaignFolder, EmailCampaignFolderResponse, EmailCampaignFoldersResponse, EmailCampaignResponse, EmailCampaignsResponse, EmailClicksResponse, EmailCommseq, EmailCommseqEmail, EmailCommseqEmailResponse, EmailCommseqEmailSendTestRequest, EmailCommseqEmailSendTestResponse, EmailCommseqEmailsRequest, EmailCommseqEmailsResponse, EmailCommseqPostcard, EmailCommseqPostcardResponse, EmailCommseqPostcardSendTestRequest, EmailCommseqPostcardSendTestResponse, EmailCommseqPostcardsRequest, EmailCommseqPostcardsResponse, EmailCommseqResponse, EmailCommseqSequenceTestRequest, EmailCommseqSequenceTestResponse, EmailCommseqSmsSendTestRequest, EmailCommseqSmsSendTestResponse, EmailCommseqStatResponse, EmailCommseqStepLogsResponse, EmailCommseqWebhookSendTestRequest, EmailCommseqWebhookSendTestResponse, EmailCommseqsResponse, EmailCustomer, EmailCustomerEditorUrlResponse, EmailCustomersResponse, EmailDashboardActivityResponse, EmailDashboardStatsResponse, EmailDomain, EmailEditorTokenResponse, EmailFlow, EmailFlowBackPopulateRequest, EmailFlowBackPopulateResponse, EmailFlowFolder, EmailFlowFolderResponse, EmailFlowFoldersResponse, EmailFlowResponse, EmailFlowsResponse, EmailGlobalSettings, EmailGlobalSettingsResponse, EmailGlobalUnsubscribeRequest, EmailGlobalUnsubscribeResponse, EmailHistogramPropertyNamesResponse, EmailHistogramPropertyValuesResponse, EmailList, EmailListArchiveResponse, EmailListCustomersResponse, EmailListResponse, EmailListSegmentFolder, EmailListSegmentFolderResponse, EmailListSegmentFoldersResponse, EmailListSubscribeResponse, EmailListsResponse, EmailOrdersResponse, EmailPerformanceResponse, EmailPlan, EmailPlanResponse, EmailPostcardTrackingResponse, EmailSegment, EmailSegmentArchiveResponse, EmailSegmentCustomersResponse, EmailSegmentDownloadPrepareResponse, EmailSegmentResponse, EmailSegmentsResponse, EmailSendingDomainResponse, EmailSendingDomainsResponse, EmailSettings, EmailSettingsResponse, EmailStatPostcardSummaryRequest, EmailStatPostcardSummaryResponse, EmailStatSummaryRequest, EmailStatSummaryResponse, EmailStepStatRequest, EmailStepStatResponse, EmailStepWaitingRequest, EmailStepWaitingResponse, EmailTemplate, EmailTemplatesResponse, EmailThirdPartyListImportRequest, EmailThirdPartyProvidersResponse, EmailWebhookEditorValuesResponse, Experiment, ExperimentResponse, ExperimentsResponse, FileManagerPageResponse, FileManagerUploadRequest, FileManagerUploadUrlResponse, GeocodeRequest, GeocodeResponse, LibraryFilterValuesResponse, LibraryItem, LibraryItemQuery, LibraryItemResponse, LibraryItemsResponse, LookupRequest, LookupResponse, PricingTiersResponse, PublishLibraryItemRequest, RulerValidationRequest, RulerValidationResponse, ScreenRecordingHeatmapIndexRequest, ScreenRecordingHeatmapIndexResponse, ScreenRecordingHeatmapRequest, ScreenRecordingHeatmapReset, ScreenRecordingHeatmapResponse, ScreenRecordingMerchantNotesRequest, ScreenRecordingPageViewDataResponse, ScreenRecordingQueryRequest, ScreenRecordingQueryResponse, ScreenRecordingResponse, ScreenRecordingSegment, ScreenRecordingSegmentResponse, ScreenRecordingSegmentsResponse, ScreenRecordingSettings, ScreenRecordingSettingsResponse, ScreenRecordingTagsRequest, ScreenRecordingTagsResponse, ScreenshotsResponse, StoreFrontsResponse, ThumbnailParametersRequest, ThumbnailParametersResponse, TransactionEmail, TransactionEmailListResponse, TransactionEmailResponse, Twilio, TwilioResponse, TwiliosResponse } from '../models';
|
|
14
14
|
export interface AddToLibraryRequest {
|
|
15
15
|
addLibraryRequest: AddLibraryItemRequest;
|
|
16
16
|
}
|
|
@@ -573,6 +573,12 @@ export interface SendPostcardTestRequest {
|
|
|
573
573
|
commseqPostcardUuid: string;
|
|
574
574
|
emailCommseqPostcardTestRequest: EmailCommseqPostcardSendTestRequest;
|
|
575
575
|
}
|
|
576
|
+
export interface SendSmsTestRequest {
|
|
577
|
+
storefrontOid: number;
|
|
578
|
+
commseqUuid: string;
|
|
579
|
+
commseqStepUuid: string;
|
|
580
|
+
emailCommseqSmsTestRequest: EmailCommseqSmsSendTestRequest;
|
|
581
|
+
}
|
|
576
582
|
export interface SendWebhookTestRequest {
|
|
577
583
|
storefrontOid: number;
|
|
578
584
|
emailCommseqWebhookTestRequest: EmailCommseqWebhookSendTestRequest;
|
|
@@ -2718,6 +2724,22 @@ export interface StorefrontApiInterface {
|
|
|
2718
2724
|
* Send postcard test
|
|
2719
2725
|
*/
|
|
2720
2726
|
sendPostcardTest(requestParameters: SendPostcardTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
2727
|
+
/**
|
|
2728
|
+
*
|
|
2729
|
+
* @summary Send SMS test
|
|
2730
|
+
* @param {number} storefrontOid
|
|
2731
|
+
* @param {string} commseqUuid
|
|
2732
|
+
* @param {string} commseqStepUuid
|
|
2733
|
+
* @param {EmailCommseqSmsSendTestRequest} emailCommseqSmsTestRequest Email commseq sms test request
|
|
2734
|
+
* @param {*} [options] Override http request option.
|
|
2735
|
+
* @throws {RequiredError}
|
|
2736
|
+
* @memberof StorefrontApiInterface
|
|
2737
|
+
*/
|
|
2738
|
+
sendSmsTestRaw(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailCommseqSmsSendTestResponse>>;
|
|
2739
|
+
/**
|
|
2740
|
+
* Send SMS test
|
|
2741
|
+
*/
|
|
2742
|
+
sendSmsTest(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailCommseqSmsSendTestResponse>;
|
|
2721
2743
|
/**
|
|
2722
2744
|
*
|
|
2723
2745
|
* @summary Send webhook test
|
|
@@ -4331,6 +4353,14 @@ export declare class StorefrontApi extends runtime.BaseAPI implements Storefront
|
|
|
4331
4353
|
* Send postcard test
|
|
4332
4354
|
*/
|
|
4333
4355
|
sendPostcardTest(requestParameters: SendPostcardTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
4356
|
+
/**
|
|
4357
|
+
* Send SMS test
|
|
4358
|
+
*/
|
|
4359
|
+
sendSmsTestRaw(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailCommseqSmsSendTestResponse>>;
|
|
4360
|
+
/**
|
|
4361
|
+
* Send SMS test
|
|
4362
|
+
*/
|
|
4363
|
+
sendSmsTest(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailCommseqSmsSendTestResponse>;
|
|
4334
4364
|
/**
|
|
4335
4365
|
* Send webhook test
|
|
4336
4366
|
*/
|
|
@@ -9042,6 +9042,77 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
9042
9042
|
});
|
|
9043
9043
|
});
|
|
9044
9044
|
};
|
|
9045
|
+
/**
|
|
9046
|
+
* Send SMS test
|
|
9047
|
+
*/
|
|
9048
|
+
StorefrontApi.prototype.sendSmsTestRaw = function (requestParameters, initOverrides) {
|
|
9049
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9050
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
9051
|
+
return __generator(this, function (_c) {
|
|
9052
|
+
switch (_c.label) {
|
|
9053
|
+
case 0:
|
|
9054
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
9055
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling sendSmsTest.');
|
|
9056
|
+
}
|
|
9057
|
+
if (requestParameters.commseqUuid === null || requestParameters.commseqUuid === undefined) {
|
|
9058
|
+
throw new runtime.RequiredError('commseqUuid', 'Required parameter requestParameters.commseqUuid was null or undefined when calling sendSmsTest.');
|
|
9059
|
+
}
|
|
9060
|
+
if (requestParameters.commseqStepUuid === null || requestParameters.commseqStepUuid === undefined) {
|
|
9061
|
+
throw new runtime.RequiredError('commseqStepUuid', 'Required parameter requestParameters.commseqStepUuid was null or undefined when calling sendSmsTest.');
|
|
9062
|
+
}
|
|
9063
|
+
if (requestParameters.emailCommseqSmsTestRequest === null || requestParameters.emailCommseqSmsTestRequest === undefined) {
|
|
9064
|
+
throw new runtime.RequiredError('emailCommseqSmsTestRequest', 'Required parameter requestParameters.emailCommseqSmsTestRequest was null or undefined when calling sendSmsTest.');
|
|
9065
|
+
}
|
|
9066
|
+
queryParameters = {};
|
|
9067
|
+
headerParameters = {};
|
|
9068
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9069
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9070
|
+
headerParameters["x-ultracart-browser-key"] = this.configuration.apiKey("x-ultracart-browser-key"); // ultraCartBrowserApiKey authentication
|
|
9071
|
+
}
|
|
9072
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
9073
|
+
// oauth required
|
|
9074
|
+
_a = headerParameters;
|
|
9075
|
+
_b = "Authorization";
|
|
9076
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["storefront_write"])];
|
|
9077
|
+
case 1:
|
|
9078
|
+
// oauth required
|
|
9079
|
+
_a[_b] = _c.sent();
|
|
9080
|
+
_c.label = 2;
|
|
9081
|
+
case 2:
|
|
9082
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9083
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
9084
|
+
}
|
|
9085
|
+
return [4 /*yield*/, this.request({
|
|
9086
|
+
path: "/storefront/{storefront_oid}/email/sms/{commseq_uuid}/{commseq_step_uuid}/test".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))).replace("{".concat("commseq_uuid", "}"), encodeURIComponent(String(requestParameters.commseqUuid))).replace("{".concat("commseq_step_uuid", "}"), encodeURIComponent(String(requestParameters.commseqStepUuid))),
|
|
9087
|
+
method: 'POST',
|
|
9088
|
+
headers: headerParameters,
|
|
9089
|
+
query: queryParameters,
|
|
9090
|
+
body: (0, models_1.EmailCommseqSmsSendTestRequestToJSON)(requestParameters.emailCommseqSmsTestRequest),
|
|
9091
|
+
}, initOverrides)];
|
|
9092
|
+
case 3:
|
|
9093
|
+
response = _c.sent();
|
|
9094
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.EmailCommseqSmsSendTestResponseFromJSON)(jsonValue); })];
|
|
9095
|
+
}
|
|
9096
|
+
});
|
|
9097
|
+
});
|
|
9098
|
+
};
|
|
9099
|
+
/**
|
|
9100
|
+
* Send SMS test
|
|
9101
|
+
*/
|
|
9102
|
+
StorefrontApi.prototype.sendSmsTest = function (requestParameters, initOverrides) {
|
|
9103
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9104
|
+
var response;
|
|
9105
|
+
return __generator(this, function (_a) {
|
|
9106
|
+
switch (_a.label) {
|
|
9107
|
+
case 0: return [4 /*yield*/, this.sendSmsTestRaw(requestParameters, initOverrides)];
|
|
9108
|
+
case 1:
|
|
9109
|
+
response = _a.sent();
|
|
9110
|
+
return [4 /*yield*/, response.value()];
|
|
9111
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
9112
|
+
}
|
|
9113
|
+
});
|
|
9114
|
+
});
|
|
9115
|
+
};
|
|
9045
9116
|
/**
|
|
9046
9117
|
* Send webhook test
|
|
9047
9118
|
*/
|
|
@@ -32,6 +32,7 @@ function ConversationParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'left_dts': !(0, runtime_1.exists)(json, 'left_dts') ? undefined : json['left_dts'],
|
|
33
33
|
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
34
34
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
35
|
+
'timezone': !(0, runtime_1.exists)(json, 'timezone') ? undefined : json['timezone'],
|
|
35
36
|
'unread_messages': !(0, runtime_1.exists)(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
@@ -52,6 +53,7 @@ function ConversationParticipantToJSON(value) {
|
|
|
52
53
|
'left_dts': value.left_dts,
|
|
53
54
|
'profile_image_url': value.profile_image_url,
|
|
54
55
|
'status': value.status,
|
|
56
|
+
'timezone': value.timezone,
|
|
55
57
|
'unread_messages': value.unread_messages,
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -81,6 +81,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
81
81
|
* @memberof EmailCommseqSequenceTestRequest
|
|
82
82
|
*/
|
|
83
83
|
postal_code?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
88
|
+
*/
|
|
89
|
+
send_to_cellphone_e164?: string;
|
|
84
90
|
/**
|
|
85
91
|
*
|
|
86
92
|
* @type {string}
|
|
@@ -35,6 +35,7 @@ function EmailCommseqSequenceTestRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
35
|
'order_id': !(0, runtime_1.exists)(json, 'order_id') ? undefined : json['order_id'],
|
|
36
36
|
'please_review': !(0, runtime_1.exists)(json, 'please_review') ? undefined : json['please_review'],
|
|
37
37
|
'postal_code': !(0, runtime_1.exists)(json, 'postal_code') ? undefined : json['postal_code'],
|
|
38
|
+
'send_to_cellphone_e164': !(0, runtime_1.exists)(json, 'send_to_cellphone_e164') ? undefined : json['send_to_cellphone_e164'],
|
|
38
39
|
'send_to_email': !(0, runtime_1.exists)(json, 'send_to_email') ? undefined : json['send_to_email'],
|
|
39
40
|
'send_to_logged_in_user': !(0, runtime_1.exists)(json, 'send_to_logged_in_user') ? undefined : json['send_to_logged_in_user'],
|
|
40
41
|
'state': !(0, runtime_1.exists)(json, 'state') ? undefined : json['state'],
|
|
@@ -60,6 +61,7 @@ function EmailCommseqSequenceTestRequestToJSON(value) {
|
|
|
60
61
|
'order_id': value.order_id,
|
|
61
62
|
'please_review': value.please_review,
|
|
62
63
|
'postal_code': value.postal_code,
|
|
64
|
+
'send_to_cellphone_e164': value.send_to_cellphone_e164,
|
|
63
65
|
'send_to_email': value.send_to_email,
|
|
64
66
|
'send_to_logged_in_user': value.send_to_logged_in_user,
|
|
65
67
|
'state': value.state,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailCommseqSmsSendTestRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailCommseqSmsSendTestRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
22
|
+
*/
|
|
23
|
+
esp_commseq_step_uuid?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
28
|
+
*/
|
|
29
|
+
esp_commseq_uuid?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
34
|
+
*/
|
|
35
|
+
send_to_cellphone_e164?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function EmailCommseqSmsSendTestRequestFromJSON(json: any): EmailCommseqSmsSendTestRequest;
|
|
38
|
+
export declare function EmailCommseqSmsSendTestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailCommseqSmsSendTestRequest;
|
|
39
|
+
export declare function EmailCommseqSmsSendTestRequestToJSON(value?: EmailCommseqSmsSendTestRequest | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EmailCommseqSmsSendTestRequestToJSON = exports.EmailCommseqSmsSendTestRequestFromJSONTyped = exports.EmailCommseqSmsSendTestRequestFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function EmailCommseqSmsSendTestRequestFromJSON(json) {
|
|
19
|
+
return EmailCommseqSmsSendTestRequestFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.EmailCommseqSmsSendTestRequestFromJSON = EmailCommseqSmsSendTestRequestFromJSON;
|
|
22
|
+
function EmailCommseqSmsSendTestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'esp_commseq_step_uuid': !(0, runtime_1.exists)(json, 'esp_commseq_step_uuid') ? undefined : json['esp_commseq_step_uuid'],
|
|
28
|
+
'esp_commseq_uuid': !(0, runtime_1.exists)(json, 'esp_commseq_uuid') ? undefined : json['esp_commseq_uuid'],
|
|
29
|
+
'send_to_cellphone_e164': !(0, runtime_1.exists)(json, 'send_to_cellphone_e164') ? undefined : json['send_to_cellphone_e164'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.EmailCommseqSmsSendTestRequestFromJSONTyped = EmailCommseqSmsSendTestRequestFromJSONTyped;
|
|
33
|
+
function EmailCommseqSmsSendTestRequestToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'esp_commseq_step_uuid': value.esp_commseq_step_uuid,
|
|
42
|
+
'esp_commseq_uuid': value.esp_commseq_uuid,
|
|
43
|
+
'send_to_cellphone_e164': value.send_to_cellphone_e164,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.EmailCommseqSmsSendTestRequestToJSON = EmailCommseqSmsSendTestRequestToJSON;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ModelError } from './ModelError';
|
|
13
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
14
|
+
import { Warning } from './Warning';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface EmailCommseqSmsSendTestResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface EmailCommseqSmsSendTestResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
25
|
+
*/
|
|
26
|
+
body?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ModelError}
|
|
30
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
31
|
+
*/
|
|
32
|
+
error?: ModelError;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<string>}
|
|
36
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
37
|
+
*/
|
|
38
|
+
media_urls?: Array<string>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ResponseMetadata}
|
|
42
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
43
|
+
*/
|
|
44
|
+
metadata?: ResponseMetadata;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates if API call was successful
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
49
|
+
*/
|
|
50
|
+
success?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Warning}
|
|
54
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
55
|
+
*/
|
|
56
|
+
warning?: Warning;
|
|
57
|
+
}
|
|
58
|
+
export declare function EmailCommseqSmsSendTestResponseFromJSON(json: any): EmailCommseqSmsSendTestResponse;
|
|
59
|
+
export declare function EmailCommseqSmsSendTestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailCommseqSmsSendTestResponse;
|
|
60
|
+
export declare function EmailCommseqSmsSendTestResponseToJSON(value?: EmailCommseqSmsSendTestResponse | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EmailCommseqSmsSendTestResponseToJSON = exports.EmailCommseqSmsSendTestResponseFromJSONTyped = exports.EmailCommseqSmsSendTestResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ModelError_1 = require("./ModelError");
|
|
19
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
20
|
+
var Warning_1 = require("./Warning");
|
|
21
|
+
function EmailCommseqSmsSendTestResponseFromJSON(json) {
|
|
22
|
+
return EmailCommseqSmsSendTestResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
exports.EmailCommseqSmsSendTestResponseFromJSON = EmailCommseqSmsSendTestResponseFromJSON;
|
|
25
|
+
function EmailCommseqSmsSendTestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'body': !(0, runtime_1.exists)(json, 'body') ? undefined : json['body'],
|
|
31
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
32
|
+
'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
|
|
33
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
34
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
35
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.EmailCommseqSmsSendTestResponseFromJSONTyped = EmailCommseqSmsSendTestResponseFromJSONTyped;
|
|
39
|
+
function EmailCommseqSmsSendTestResponseToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'body': value.body,
|
|
48
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
49
|
+
'media_urls': value.media_urls,
|
|
50
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
51
|
+
'success': value.success,
|
|
52
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.EmailCommseqSmsSendTestResponseToJSON = EmailCommseqSmsSendTestResponseToJSON;
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface EmailStepStat {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* click count formatted (left side)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailStepStat
|
|
22
|
+
*/
|
|
23
|
+
left_click_count_formatted?: string;
|
|
24
|
+
/**
|
|
25
|
+
* click count (left side)
|
|
20
26
|
* @type {number}
|
|
21
27
|
* @memberof EmailStepStat
|
|
22
28
|
*/
|
|
@@ -39,6 +45,18 @@ export interface EmailStepStat {
|
|
|
39
45
|
* @memberof EmailStepStat
|
|
40
46
|
*/
|
|
41
47
|
left_customer_count_formatted?: string;
|
|
48
|
+
/**
|
|
49
|
+
* delivered count (left side)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof EmailStepStat
|
|
52
|
+
*/
|
|
53
|
+
left_delivered_count?: number;
|
|
54
|
+
/**
|
|
55
|
+
* delivered count formatted (left side)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EmailStepStat
|
|
58
|
+
*/
|
|
59
|
+
left_delivered_count_formatted?: string;
|
|
42
60
|
/**
|
|
43
61
|
* order count (left/default side)
|
|
44
62
|
* @type {number}
|
|
@@ -75,6 +93,42 @@ export interface EmailStepStat {
|
|
|
75
93
|
* @memberof EmailStepStat
|
|
76
94
|
*/
|
|
77
95
|
left_revenue_formatted?: string;
|
|
96
|
+
/**
|
|
97
|
+
* send count (left side)
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof EmailStepStat
|
|
100
|
+
*/
|
|
101
|
+
left_send_count?: number;
|
|
102
|
+
/**
|
|
103
|
+
* send count formatted (left side)
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof EmailStepStat
|
|
106
|
+
*/
|
|
107
|
+
left_send_count_formatted?: string;
|
|
108
|
+
/**
|
|
109
|
+
* conversion count (left side)
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof EmailStepStat
|
|
112
|
+
*/
|
|
113
|
+
left_skipped_count?: number;
|
|
114
|
+
/**
|
|
115
|
+
* skipped count formatted (left side)
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof EmailStepStat
|
|
118
|
+
*/
|
|
119
|
+
left_skipped_count_formatted?: string;
|
|
120
|
+
/**
|
|
121
|
+
* unsubscribe count (left side)
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof EmailStepStat
|
|
124
|
+
*/
|
|
125
|
+
left_unsubscribe_count?: number;
|
|
126
|
+
/**
|
|
127
|
+
* unsubscribe count formatted (left side)
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof EmailStepStat
|
|
130
|
+
*/
|
|
131
|
+
left_unsubscribe_count_formatted?: string;
|
|
78
132
|
/**
|
|
79
133
|
* conversion count (right side)
|
|
80
134
|
* @type {number}
|
|
@@ -24,16 +24,25 @@ function EmailStepStatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'left_click_count_formatted': !(0, runtime_1.exists)(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
27
28
|
'left_conversion_count': !(0, runtime_1.exists)(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
28
29
|
'left_conversion_count_formatted': !(0, runtime_1.exists)(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
29
30
|
'left_customer_count': !(0, runtime_1.exists)(json, 'left_customer_count') ? undefined : json['left_customer_count'],
|
|
30
31
|
'left_customer_count_formatted': !(0, runtime_1.exists)(json, 'left_customer_count_formatted') ? undefined : json['left_customer_count_formatted'],
|
|
32
|
+
'left_delivered_count': !(0, runtime_1.exists)(json, 'left_delivered_count') ? undefined : json['left_delivered_count'],
|
|
33
|
+
'left_delivered_count_formatted': !(0, runtime_1.exists)(json, 'left_delivered_count_formatted') ? undefined : json['left_delivered_count_formatted'],
|
|
31
34
|
'left_order_count': !(0, runtime_1.exists)(json, 'left_order_count') ? undefined : json['left_order_count'],
|
|
32
35
|
'left_order_count_formatted': !(0, runtime_1.exists)(json, 'left_order_count_formatted') ? undefined : json['left_order_count_formatted'],
|
|
33
36
|
'left_profit': !(0, runtime_1.exists)(json, 'left_profit') ? undefined : json['left_profit'],
|
|
34
37
|
'left_profit_formatted': !(0, runtime_1.exists)(json, 'left_profit_formatted') ? undefined : json['left_profit_formatted'],
|
|
35
38
|
'left_revenue': !(0, runtime_1.exists)(json, 'left_revenue') ? undefined : json['left_revenue'],
|
|
36
39
|
'left_revenue_formatted': !(0, runtime_1.exists)(json, 'left_revenue_formatted') ? undefined : json['left_revenue_formatted'],
|
|
40
|
+
'left_send_count': !(0, runtime_1.exists)(json, 'left_send_count') ? undefined : json['left_send_count'],
|
|
41
|
+
'left_send_count_formatted': !(0, runtime_1.exists)(json, 'left_send_count_formatted') ? undefined : json['left_send_count_formatted'],
|
|
42
|
+
'left_skipped_count': !(0, runtime_1.exists)(json, 'left_skipped_count') ? undefined : json['left_skipped_count'],
|
|
43
|
+
'left_skipped_count_formatted': !(0, runtime_1.exists)(json, 'left_skipped_count_formatted') ? undefined : json['left_skipped_count_formatted'],
|
|
44
|
+
'left_unsubscribe_count': !(0, runtime_1.exists)(json, 'left_unsubscribe_count') ? undefined : json['left_unsubscribe_count'],
|
|
45
|
+
'left_unsubscribe_count_formatted': !(0, runtime_1.exists)(json, 'left_unsubscribe_count_formatted') ? undefined : json['left_unsubscribe_count_formatted'],
|
|
37
46
|
'right_conversion_count': !(0, runtime_1.exists)(json, 'right_conversion_count') ? undefined : json['right_conversion_count'],
|
|
38
47
|
'right_conversion_count_formatted': !(0, runtime_1.exists)(json, 'right_conversion_count_formatted') ? undefined : json['right_conversion_count_formatted'],
|
|
39
48
|
'right_customer_count': !(0, runtime_1.exists)(json, 'right_customer_count') ? undefined : json['right_customer_count'],
|
|
@@ -55,16 +64,25 @@ function EmailStepStatToJSON(value) {
|
|
|
55
64
|
return null;
|
|
56
65
|
}
|
|
57
66
|
return {
|
|
67
|
+
'left_click_count_formatted': value.left_click_count_formatted,
|
|
58
68
|
'left_conversion_count': value.left_conversion_count,
|
|
59
69
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
|
60
70
|
'left_customer_count': value.left_customer_count,
|
|
61
71
|
'left_customer_count_formatted': value.left_customer_count_formatted,
|
|
72
|
+
'left_delivered_count': value.left_delivered_count,
|
|
73
|
+
'left_delivered_count_formatted': value.left_delivered_count_formatted,
|
|
62
74
|
'left_order_count': value.left_order_count,
|
|
63
75
|
'left_order_count_formatted': value.left_order_count_formatted,
|
|
64
76
|
'left_profit': value.left_profit,
|
|
65
77
|
'left_profit_formatted': value.left_profit_formatted,
|
|
66
78
|
'left_revenue': value.left_revenue,
|
|
67
79
|
'left_revenue_formatted': value.left_revenue_formatted,
|
|
80
|
+
'left_send_count': value.left_send_count,
|
|
81
|
+
'left_send_count_formatted': value.left_send_count_formatted,
|
|
82
|
+
'left_skipped_count': value.left_skipped_count,
|
|
83
|
+
'left_skipped_count_formatted': value.left_skipped_count_formatted,
|
|
84
|
+
'left_unsubscribe_count': value.left_unsubscribe_count,
|
|
85
|
+
'left_unsubscribe_count_formatted': value.left_unsubscribe_count_formatted,
|
|
68
86
|
'right_conversion_count': value.right_conversion_count,
|
|
69
87
|
'right_conversion_count_formatted': value.right_conversion_count_formatted,
|
|
70
88
|
'right_customer_count': value.right_customer_count,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -265,6 +265,8 @@ export * from './EmailCommseqPostcardsResponse';
|
|
|
265
265
|
export * from './EmailCommseqResponse';
|
|
266
266
|
export * from './EmailCommseqSequenceTestRequest';
|
|
267
267
|
export * from './EmailCommseqSequenceTestResponse';
|
|
268
|
+
export * from './EmailCommseqSmsSendTestRequest';
|
|
269
|
+
export * from './EmailCommseqSmsSendTestResponse';
|
|
268
270
|
export * from './EmailCommseqStat';
|
|
269
271
|
export * from './EmailCommseqStatResponse';
|
|
270
272
|
export * from './EmailCommseqStep';
|
package/dist/models/index.js
CHANGED
|
@@ -283,6 +283,8 @@ __exportStar(require("./EmailCommseqPostcardsResponse"), exports);
|
|
|
283
283
|
__exportStar(require("./EmailCommseqResponse"), exports);
|
|
284
284
|
__exportStar(require("./EmailCommseqSequenceTestRequest"), exports);
|
|
285
285
|
__exportStar(require("./EmailCommseqSequenceTestResponse"), exports);
|
|
286
|
+
__exportStar(require("./EmailCommseqSmsSendTestRequest"), exports);
|
|
287
|
+
__exportStar(require("./EmailCommseqSmsSendTestResponse"), exports);
|
|
286
288
|
__exportStar(require("./EmailCommseqStat"), exports);
|
|
287
289
|
__exportStar(require("./EmailCommseqStatResponse"), exports);
|
|
288
290
|
__exportStar(require("./EmailCommseqStep"), exports);
|
package/package.json
CHANGED
|
@@ -102,6 +102,12 @@ import {
|
|
|
102
102
|
EmailCommseqSequenceTestResponse,
|
|
103
103
|
EmailCommseqSequenceTestResponseFromJSON,
|
|
104
104
|
EmailCommseqSequenceTestResponseToJSON,
|
|
105
|
+
EmailCommseqSmsSendTestRequest,
|
|
106
|
+
EmailCommseqSmsSendTestRequestFromJSON,
|
|
107
|
+
EmailCommseqSmsSendTestRequestToJSON,
|
|
108
|
+
EmailCommseqSmsSendTestResponse,
|
|
109
|
+
EmailCommseqSmsSendTestResponseFromJSON,
|
|
110
|
+
EmailCommseqSmsSendTestResponseToJSON,
|
|
105
111
|
EmailCommseqStatResponse,
|
|
106
112
|
EmailCommseqStatResponseFromJSON,
|
|
107
113
|
EmailCommseqStatResponseToJSON,
|
|
@@ -1132,6 +1138,13 @@ export interface SendPostcardTestRequest {
|
|
|
1132
1138
|
emailCommseqPostcardTestRequest: EmailCommseqPostcardSendTestRequest;
|
|
1133
1139
|
}
|
|
1134
1140
|
|
|
1141
|
+
export interface SendSmsTestRequest {
|
|
1142
|
+
storefrontOid: number;
|
|
1143
|
+
commseqUuid: string;
|
|
1144
|
+
commseqStepUuid: string;
|
|
1145
|
+
emailCommseqSmsTestRequest: EmailCommseqSmsSendTestRequest;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1135
1148
|
export interface SendWebhookTestRequest {
|
|
1136
1149
|
storefrontOid: number;
|
|
1137
1150
|
emailCommseqWebhookTestRequest: EmailCommseqWebhookSendTestRequest;
|
|
@@ -3589,6 +3602,24 @@ export interface StorefrontApiInterface {
|
|
|
3589
3602
|
*/
|
|
3590
3603
|
sendPostcardTest(requestParameters: SendPostcardTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailCommseqPostcardSendTestResponse>;
|
|
3591
3604
|
|
|
3605
|
+
/**
|
|
3606
|
+
*
|
|
3607
|
+
* @summary Send SMS test
|
|
3608
|
+
* @param {number} storefrontOid
|
|
3609
|
+
* @param {string} commseqUuid
|
|
3610
|
+
* @param {string} commseqStepUuid
|
|
3611
|
+
* @param {EmailCommseqSmsSendTestRequest} emailCommseqSmsTestRequest Email commseq sms test request
|
|
3612
|
+
* @param {*} [options] Override http request option.
|
|
3613
|
+
* @throws {RequiredError}
|
|
3614
|
+
* @memberof StorefrontApiInterface
|
|
3615
|
+
*/
|
|
3616
|
+
sendSmsTestRaw(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailCommseqSmsSendTestResponse>>;
|
|
3617
|
+
|
|
3618
|
+
/**
|
|
3619
|
+
* Send SMS test
|
|
3620
|
+
*/
|
|
3621
|
+
sendSmsTest(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailCommseqSmsSendTestResponse>;
|
|
3622
|
+
|
|
3592
3623
|
/**
|
|
3593
3624
|
*
|
|
3594
3625
|
* @summary Send webhook test
|
|
@@ -10847,6 +10878,64 @@ export class StorefrontApi extends runtime.BaseAPI implements StorefrontApiInter
|
|
|
10847
10878
|
return await response.value();
|
|
10848
10879
|
}
|
|
10849
10880
|
|
|
10881
|
+
/**
|
|
10882
|
+
* Send SMS test
|
|
10883
|
+
*/
|
|
10884
|
+
async sendSmsTestRaw(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailCommseqSmsSendTestResponse>> {
|
|
10885
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
10886
|
+
throw new runtime.RequiredError('storefrontOid','Required parameter requestParameters.storefrontOid was null or undefined when calling sendSmsTest.');
|
|
10887
|
+
}
|
|
10888
|
+
|
|
10889
|
+
if (requestParameters.commseqUuid === null || requestParameters.commseqUuid === undefined) {
|
|
10890
|
+
throw new runtime.RequiredError('commseqUuid','Required parameter requestParameters.commseqUuid was null or undefined when calling sendSmsTest.');
|
|
10891
|
+
}
|
|
10892
|
+
|
|
10893
|
+
if (requestParameters.commseqStepUuid === null || requestParameters.commseqStepUuid === undefined) {
|
|
10894
|
+
throw new runtime.RequiredError('commseqStepUuid','Required parameter requestParameters.commseqStepUuid was null or undefined when calling sendSmsTest.');
|
|
10895
|
+
}
|
|
10896
|
+
|
|
10897
|
+
if (requestParameters.emailCommseqSmsTestRequest === null || requestParameters.emailCommseqSmsTestRequest === undefined) {
|
|
10898
|
+
throw new runtime.RequiredError('emailCommseqSmsTestRequest','Required parameter requestParameters.emailCommseqSmsTestRequest was null or undefined when calling sendSmsTest.');
|
|
10899
|
+
}
|
|
10900
|
+
|
|
10901
|
+
const queryParameters: any = {};
|
|
10902
|
+
|
|
10903
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
10904
|
+
|
|
10905
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10906
|
+
|
|
10907
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
10908
|
+
headerParameters["x-ultracart-browser-key"] = this.configuration.apiKey("x-ultracart-browser-key"); // ultraCartBrowserApiKey authentication
|
|
10909
|
+
}
|
|
10910
|
+
|
|
10911
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10912
|
+
// oauth required
|
|
10913
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["storefront_write"]);
|
|
10914
|
+
}
|
|
10915
|
+
|
|
10916
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
10917
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
10918
|
+
}
|
|
10919
|
+
|
|
10920
|
+
const response = await this.request({
|
|
10921
|
+
path: `/storefront/{storefront_oid}/email/sms/{commseq_uuid}/{commseq_step_uuid}/test`.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(requestParameters.storefrontOid))).replace(`{${"commseq_uuid"}}`, encodeURIComponent(String(requestParameters.commseqUuid))).replace(`{${"commseq_step_uuid"}}`, encodeURIComponent(String(requestParameters.commseqStepUuid))),
|
|
10922
|
+
method: 'POST',
|
|
10923
|
+
headers: headerParameters,
|
|
10924
|
+
query: queryParameters,
|
|
10925
|
+
body: EmailCommseqSmsSendTestRequestToJSON(requestParameters.emailCommseqSmsTestRequest),
|
|
10926
|
+
}, initOverrides);
|
|
10927
|
+
|
|
10928
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailCommseqSmsSendTestResponseFromJSON(jsonValue));
|
|
10929
|
+
}
|
|
10930
|
+
|
|
10931
|
+
/**
|
|
10932
|
+
* Send SMS test
|
|
10933
|
+
*/
|
|
10934
|
+
async sendSmsTest(requestParameters: SendSmsTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailCommseqSmsSendTestResponse> {
|
|
10935
|
+
const response = await this.sendSmsTestRaw(requestParameters, initOverrides);
|
|
10936
|
+
return await response.value();
|
|
10937
|
+
}
|
|
10938
|
+
|
|
10850
10939
|
/**
|
|
10851
10940
|
* Send webhook test
|
|
10852
10941
|
*/
|
|
@@ -67,6 +67,12 @@ export interface ConversationParticipant {
|
|
|
67
67
|
* @memberof ConversationParticipant
|
|
68
68
|
*/
|
|
69
69
|
status?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ConversationParticipant
|
|
74
|
+
*/
|
|
75
|
+
timezone?: string;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {number}
|
|
@@ -93,6 +99,7 @@ export function ConversationParticipantFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
99
|
'left_dts': !exists(json, 'left_dts') ? undefined : json['left_dts'],
|
|
94
100
|
'profile_image_url': !exists(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
95
101
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
102
|
+
'timezone': !exists(json, 'timezone') ? undefined : json['timezone'],
|
|
96
103
|
'unread_messages': !exists(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
97
104
|
};
|
|
98
105
|
}
|
|
@@ -114,6 +121,7 @@ export function ConversationParticipantToJSON(value?: ConversationParticipant |
|
|
|
114
121
|
'left_dts': value.left_dts,
|
|
115
122
|
'profile_image_url': value.profile_image_url,
|
|
116
123
|
'status': value.status,
|
|
124
|
+
'timezone': value.timezone,
|
|
117
125
|
'unread_messages': value.unread_messages,
|
|
118
126
|
};
|
|
119
127
|
}
|
|
@@ -85,6 +85,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
85
85
|
* @memberof EmailCommseqSequenceTestRequest
|
|
86
86
|
*/
|
|
87
87
|
postal_code?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
92
|
+
*/
|
|
93
|
+
send_to_cellphone_e164?: string;
|
|
88
94
|
/**
|
|
89
95
|
*
|
|
90
96
|
* @type {string}
|
|
@@ -126,6 +132,7 @@ export function EmailCommseqSequenceTestRequestFromJSONTyped(json: any, ignoreDi
|
|
|
126
132
|
'order_id': !exists(json, 'order_id') ? undefined : json['order_id'],
|
|
127
133
|
'please_review': !exists(json, 'please_review') ? undefined : json['please_review'],
|
|
128
134
|
'postal_code': !exists(json, 'postal_code') ? undefined : json['postal_code'],
|
|
135
|
+
'send_to_cellphone_e164': !exists(json, 'send_to_cellphone_e164') ? undefined : json['send_to_cellphone_e164'],
|
|
129
136
|
'send_to_email': !exists(json, 'send_to_email') ? undefined : json['send_to_email'],
|
|
130
137
|
'send_to_logged_in_user': !exists(json, 'send_to_logged_in_user') ? undefined : json['send_to_logged_in_user'],
|
|
131
138
|
'state': !exists(json, 'state') ? undefined : json['state'],
|
|
@@ -152,6 +159,7 @@ export function EmailCommseqSequenceTestRequestToJSON(value?: EmailCommseqSequen
|
|
|
152
159
|
'order_id': value.order_id,
|
|
153
160
|
'please_review': value.please_review,
|
|
154
161
|
'postal_code': value.postal_code,
|
|
162
|
+
'send_to_cellphone_e164': value.send_to_cellphone_e164,
|
|
155
163
|
'send_to_email': value.send_to_email,
|
|
156
164
|
'send_to_logged_in_user': value.send_to_logged_in_user,
|
|
157
165
|
'state': value.state,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EmailCommseqSmsSendTestRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface EmailCommseqSmsSendTestRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
26
|
+
*/
|
|
27
|
+
esp_commseq_step_uuid?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
32
|
+
*/
|
|
33
|
+
esp_commseq_uuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof EmailCommseqSmsSendTestRequest
|
|
38
|
+
*/
|
|
39
|
+
send_to_cellphone_e164?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function EmailCommseqSmsSendTestRequestFromJSON(json: any): EmailCommseqSmsSendTestRequest {
|
|
43
|
+
return EmailCommseqSmsSendTestRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function EmailCommseqSmsSendTestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailCommseqSmsSendTestRequest {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
'esp_commseq_step_uuid': !exists(json, 'esp_commseq_step_uuid') ? undefined : json['esp_commseq_step_uuid'],
|
|
53
|
+
'esp_commseq_uuid': !exists(json, 'esp_commseq_uuid') ? undefined : json['esp_commseq_uuid'],
|
|
54
|
+
'send_to_cellphone_e164': !exists(json, 'send_to_cellphone_e164') ? undefined : json['send_to_cellphone_e164'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function EmailCommseqSmsSendTestRequestToJSON(value?: EmailCommseqSmsSendTestRequest | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'esp_commseq_step_uuid': value.esp_commseq_step_uuid,
|
|
68
|
+
'esp_commseq_uuid': value.esp_commseq_uuid,
|
|
69
|
+
'send_to_cellphone_e164': value.send_to_cellphone_e164,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ModelError,
|
|
18
|
+
ModelErrorFromJSON,
|
|
19
|
+
ModelErrorFromJSONTyped,
|
|
20
|
+
ModelErrorToJSON,
|
|
21
|
+
} from './ModelError';
|
|
22
|
+
import {
|
|
23
|
+
ResponseMetadata,
|
|
24
|
+
ResponseMetadataFromJSON,
|
|
25
|
+
ResponseMetadataFromJSONTyped,
|
|
26
|
+
ResponseMetadataToJSON,
|
|
27
|
+
} from './ResponseMetadata';
|
|
28
|
+
import {
|
|
29
|
+
Warning,
|
|
30
|
+
WarningFromJSON,
|
|
31
|
+
WarningFromJSONTyped,
|
|
32
|
+
WarningToJSON,
|
|
33
|
+
} from './Warning';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface EmailCommseqSmsSendTestResponse
|
|
39
|
+
*/
|
|
40
|
+
export interface EmailCommseqSmsSendTestResponse {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
45
|
+
*/
|
|
46
|
+
body?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ModelError}
|
|
50
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
51
|
+
*/
|
|
52
|
+
error?: ModelError;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
57
|
+
*/
|
|
58
|
+
media_urls?: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ResponseMetadata}
|
|
62
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
63
|
+
*/
|
|
64
|
+
metadata?: ResponseMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates if API call was successful
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
69
|
+
*/
|
|
70
|
+
success?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Warning}
|
|
74
|
+
* @memberof EmailCommseqSmsSendTestResponse
|
|
75
|
+
*/
|
|
76
|
+
warning?: Warning;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function EmailCommseqSmsSendTestResponseFromJSON(json: any): EmailCommseqSmsSendTestResponse {
|
|
80
|
+
return EmailCommseqSmsSendTestResponseFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function EmailCommseqSmsSendTestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailCommseqSmsSendTestResponse {
|
|
84
|
+
if ((json === undefined) || (json === null)) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'body': !exists(json, 'body') ? undefined : json['body'],
|
|
90
|
+
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
91
|
+
'media_urls': !exists(json, 'media_urls') ? undefined : json['media_urls'],
|
|
92
|
+
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
93
|
+
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
94
|
+
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function EmailCommseqSmsSendTestResponseToJSON(value?: EmailCommseqSmsSendTestResponse | null): any {
|
|
99
|
+
if (value === undefined) {
|
|
100
|
+
return undefined;
|
|
101
|
+
}
|
|
102
|
+
if (value === null) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'body': value.body,
|
|
108
|
+
'error': ModelErrorToJSON(value.error),
|
|
109
|
+
'media_urls': value.media_urls,
|
|
110
|
+
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
111
|
+
'success': value.success,
|
|
112
|
+
'warning': WarningToJSON(value.warning),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -20,7 +20,13 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface EmailStepStat {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* click count formatted (left side)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EmailStepStat
|
|
26
|
+
*/
|
|
27
|
+
left_click_count_formatted?: string;
|
|
28
|
+
/**
|
|
29
|
+
* click count (left side)
|
|
24
30
|
* @type {number}
|
|
25
31
|
* @memberof EmailStepStat
|
|
26
32
|
*/
|
|
@@ -43,6 +49,18 @@ export interface EmailStepStat {
|
|
|
43
49
|
* @memberof EmailStepStat
|
|
44
50
|
*/
|
|
45
51
|
left_customer_count_formatted?: string;
|
|
52
|
+
/**
|
|
53
|
+
* delivered count (left side)
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof EmailStepStat
|
|
56
|
+
*/
|
|
57
|
+
left_delivered_count?: number;
|
|
58
|
+
/**
|
|
59
|
+
* delivered count formatted (left side)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof EmailStepStat
|
|
62
|
+
*/
|
|
63
|
+
left_delivered_count_formatted?: string;
|
|
46
64
|
/**
|
|
47
65
|
* order count (left/default side)
|
|
48
66
|
* @type {number}
|
|
@@ -79,6 +97,42 @@ export interface EmailStepStat {
|
|
|
79
97
|
* @memberof EmailStepStat
|
|
80
98
|
*/
|
|
81
99
|
left_revenue_formatted?: string;
|
|
100
|
+
/**
|
|
101
|
+
* send count (left side)
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof EmailStepStat
|
|
104
|
+
*/
|
|
105
|
+
left_send_count?: number;
|
|
106
|
+
/**
|
|
107
|
+
* send count formatted (left side)
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof EmailStepStat
|
|
110
|
+
*/
|
|
111
|
+
left_send_count_formatted?: string;
|
|
112
|
+
/**
|
|
113
|
+
* conversion count (left side)
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof EmailStepStat
|
|
116
|
+
*/
|
|
117
|
+
left_skipped_count?: number;
|
|
118
|
+
/**
|
|
119
|
+
* skipped count formatted (left side)
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof EmailStepStat
|
|
122
|
+
*/
|
|
123
|
+
left_skipped_count_formatted?: string;
|
|
124
|
+
/**
|
|
125
|
+
* unsubscribe count (left side)
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof EmailStepStat
|
|
128
|
+
*/
|
|
129
|
+
left_unsubscribe_count?: number;
|
|
130
|
+
/**
|
|
131
|
+
* unsubscribe count formatted (left side)
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof EmailStepStat
|
|
134
|
+
*/
|
|
135
|
+
left_unsubscribe_count_formatted?: string;
|
|
82
136
|
/**
|
|
83
137
|
* conversion count (right side)
|
|
84
138
|
* @type {number}
|
|
@@ -151,16 +205,25 @@ export function EmailStepStatFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
151
205
|
}
|
|
152
206
|
return {
|
|
153
207
|
|
|
208
|
+
'left_click_count_formatted': !exists(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
154
209
|
'left_conversion_count': !exists(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
155
210
|
'left_conversion_count_formatted': !exists(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
156
211
|
'left_customer_count': !exists(json, 'left_customer_count') ? undefined : json['left_customer_count'],
|
|
157
212
|
'left_customer_count_formatted': !exists(json, 'left_customer_count_formatted') ? undefined : json['left_customer_count_formatted'],
|
|
213
|
+
'left_delivered_count': !exists(json, 'left_delivered_count') ? undefined : json['left_delivered_count'],
|
|
214
|
+
'left_delivered_count_formatted': !exists(json, 'left_delivered_count_formatted') ? undefined : json['left_delivered_count_formatted'],
|
|
158
215
|
'left_order_count': !exists(json, 'left_order_count') ? undefined : json['left_order_count'],
|
|
159
216
|
'left_order_count_formatted': !exists(json, 'left_order_count_formatted') ? undefined : json['left_order_count_formatted'],
|
|
160
217
|
'left_profit': !exists(json, 'left_profit') ? undefined : json['left_profit'],
|
|
161
218
|
'left_profit_formatted': !exists(json, 'left_profit_formatted') ? undefined : json['left_profit_formatted'],
|
|
162
219
|
'left_revenue': !exists(json, 'left_revenue') ? undefined : json['left_revenue'],
|
|
163
220
|
'left_revenue_formatted': !exists(json, 'left_revenue_formatted') ? undefined : json['left_revenue_formatted'],
|
|
221
|
+
'left_send_count': !exists(json, 'left_send_count') ? undefined : json['left_send_count'],
|
|
222
|
+
'left_send_count_formatted': !exists(json, 'left_send_count_formatted') ? undefined : json['left_send_count_formatted'],
|
|
223
|
+
'left_skipped_count': !exists(json, 'left_skipped_count') ? undefined : json['left_skipped_count'],
|
|
224
|
+
'left_skipped_count_formatted': !exists(json, 'left_skipped_count_formatted') ? undefined : json['left_skipped_count_formatted'],
|
|
225
|
+
'left_unsubscribe_count': !exists(json, 'left_unsubscribe_count') ? undefined : json['left_unsubscribe_count'],
|
|
226
|
+
'left_unsubscribe_count_formatted': !exists(json, 'left_unsubscribe_count_formatted') ? undefined : json['left_unsubscribe_count_formatted'],
|
|
164
227
|
'right_conversion_count': !exists(json, 'right_conversion_count') ? undefined : json['right_conversion_count'],
|
|
165
228
|
'right_conversion_count_formatted': !exists(json, 'right_conversion_count_formatted') ? undefined : json['right_conversion_count_formatted'],
|
|
166
229
|
'right_customer_count': !exists(json, 'right_customer_count') ? undefined : json['right_customer_count'],
|
|
@@ -183,16 +246,25 @@ export function EmailStepStatToJSON(value?: EmailStepStat | null): any {
|
|
|
183
246
|
}
|
|
184
247
|
return {
|
|
185
248
|
|
|
249
|
+
'left_click_count_formatted': value.left_click_count_formatted,
|
|
186
250
|
'left_conversion_count': value.left_conversion_count,
|
|
187
251
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
|
188
252
|
'left_customer_count': value.left_customer_count,
|
|
189
253
|
'left_customer_count_formatted': value.left_customer_count_formatted,
|
|
254
|
+
'left_delivered_count': value.left_delivered_count,
|
|
255
|
+
'left_delivered_count_formatted': value.left_delivered_count_formatted,
|
|
190
256
|
'left_order_count': value.left_order_count,
|
|
191
257
|
'left_order_count_formatted': value.left_order_count_formatted,
|
|
192
258
|
'left_profit': value.left_profit,
|
|
193
259
|
'left_profit_formatted': value.left_profit_formatted,
|
|
194
260
|
'left_revenue': value.left_revenue,
|
|
195
261
|
'left_revenue_formatted': value.left_revenue_formatted,
|
|
262
|
+
'left_send_count': value.left_send_count,
|
|
263
|
+
'left_send_count_formatted': value.left_send_count_formatted,
|
|
264
|
+
'left_skipped_count': value.left_skipped_count,
|
|
265
|
+
'left_skipped_count_formatted': value.left_skipped_count_formatted,
|
|
266
|
+
'left_unsubscribe_count': value.left_unsubscribe_count,
|
|
267
|
+
'left_unsubscribe_count_formatted': value.left_unsubscribe_count_formatted,
|
|
196
268
|
'right_conversion_count': value.right_conversion_count,
|
|
197
269
|
'right_conversion_count_formatted': value.right_conversion_count_formatted,
|
|
198
270
|
'right_customer_count': value.right_customer_count,
|
package/src/models/index.ts
CHANGED
|
@@ -267,6 +267,8 @@ export * from './EmailCommseqPostcardsResponse';
|
|
|
267
267
|
export * from './EmailCommseqResponse';
|
|
268
268
|
export * from './EmailCommseqSequenceTestRequest';
|
|
269
269
|
export * from './EmailCommseqSequenceTestResponse';
|
|
270
|
+
export * from './EmailCommseqSmsSendTestRequest';
|
|
271
|
+
export * from './EmailCommseqSmsSendTestResponse';
|
|
270
272
|
export * from './EmailCommseqStat';
|
|
271
273
|
export * from './EmailCommseqStatResponse';
|
|
272
274
|
export * from './EmailCommseqStep';
|