@cakemail-org/ui-components-v2 2.2.92 → 2.2.94
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/dist/cjs/index.js +79 -5
- package/dist/cjs/services/domains/index.d.ts +17 -1
- package/dist/cjs/services/domains/types.d.ts +15 -0
- package/dist/cjs/utils/posthog.d.ts +4 -1
- package/dist/esm/index.js +76 -6
- package/dist/esm/services/domains/index.d.ts +17 -1
- package/dist/esm/services/domains/types.d.ts +15 -0
- package/dist/esm/utils/posthog.d.ts +4 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -3892,6 +3892,9 @@ exports.EEvents = void 0;
|
|
|
3892
3892
|
EEvents["PAGE_ENABLED"] = "Page.Enabled";
|
|
3893
3893
|
EEvents["PAGE_DISABLED"] = "Page.Disabled";
|
|
3894
3894
|
EEvents["PAGE_PUBLISHED"] = "Page.Published";
|
|
3895
|
+
EEvents["CUSTOM_DOMAIN_CREATED"] = "CustomDomain.Created";
|
|
3896
|
+
EEvents["CUSTOM_DOMAIN_VERIFIED"] = "CustomDomain.Verified";
|
|
3897
|
+
EEvents["CUSTOM_DOMAIN_DELETED"] = "CustomDomain.Deleted";
|
|
3895
3898
|
})(exports.EEvents || (exports.EEvents = {}));
|
|
3896
3899
|
function eventCondition(type, disabledEvents) {
|
|
3897
3900
|
if (disabledEvents === void 0) { disabledEvents = []; }
|
|
@@ -9900,6 +9903,63 @@ function listDkimService(_a) {
|
|
|
9900
9903
|
useImpersonationTree: useImpersonationTree
|
|
9901
9904
|
});
|
|
9902
9905
|
}
|
|
9906
|
+
function unwrapData(res) {
|
|
9907
|
+
if (res && typeof res === "object" && "data" in res && res.data !== undefined) {
|
|
9908
|
+
return res.data;
|
|
9909
|
+
}
|
|
9910
|
+
return res;
|
|
9911
|
+
}
|
|
9912
|
+
/** True if the hostname uses a public mailbox provider (Gmail, Yahoo, etc.). */
|
|
9913
|
+
function isPublicEmailProviderService(_a) {
|
|
9914
|
+
var domain = _a.domain;
|
|
9915
|
+
return callApi({
|
|
9916
|
+
url: "".concat(uiKitConfig.GATEWAY_PROXY, "/domains/publicEmailProviders/").concat(encodeURIComponent(domain)),
|
|
9917
|
+
fetchOptions: {
|
|
9918
|
+
method: exports.EMethods.get
|
|
9919
|
+
}
|
|
9920
|
+
}).then(function (res) {
|
|
9921
|
+
var inner = unwrapData(res);
|
|
9922
|
+
if (typeof inner === "boolean") {
|
|
9923
|
+
return inner;
|
|
9924
|
+
}
|
|
9925
|
+
if (inner && typeof inner === "object" && "isPublic" in inner) {
|
|
9926
|
+
return Boolean(inner.isPublic);
|
|
9927
|
+
}
|
|
9928
|
+
return Boolean(inner);
|
|
9929
|
+
});
|
|
9930
|
+
}
|
|
9931
|
+
function verifyTrackingCnamesService(payload) {
|
|
9932
|
+
return callApi({
|
|
9933
|
+
url: uiKitConfig.GATEWAY_PROXY + "/domains/verifyTrackingCnames",
|
|
9934
|
+
fetchOptions: {
|
|
9935
|
+
method: exports.EMethods.post,
|
|
9936
|
+
body: {
|
|
9937
|
+
tracking: payload.tracking,
|
|
9938
|
+
bounce: payload.bounce
|
|
9939
|
+
}
|
|
9940
|
+
}
|
|
9941
|
+
}).then(function (res) { return unwrapData(res); });
|
|
9942
|
+
}
|
|
9943
|
+
function domainHasValidCertificateService(payload) {
|
|
9944
|
+
return callApi({
|
|
9945
|
+
url: uiKitConfig.GATEWAY_PROXY + "/domains/testScheme",
|
|
9946
|
+
fetchOptions: {
|
|
9947
|
+
method: exports.EMethods.post,
|
|
9948
|
+
body: {
|
|
9949
|
+
url: payload.domain
|
|
9950
|
+
}
|
|
9951
|
+
}
|
|
9952
|
+
}).then(function (res) { return unwrapData(res); });
|
|
9953
|
+
}
|
|
9954
|
+
function patchAccountDomainsService(payload) {
|
|
9955
|
+
return callApi({
|
|
9956
|
+
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/domains/default",
|
|
9957
|
+
fetchOptions: {
|
|
9958
|
+
method: exports.EMethods.patch,
|
|
9959
|
+
body: payload
|
|
9960
|
+
}
|
|
9961
|
+
});
|
|
9962
|
+
}
|
|
9903
9963
|
|
|
9904
9964
|
var AccountModel = /** @class */ (function () {
|
|
9905
9965
|
function AccountModel(params) {
|
|
@@ -12151,18 +12211,27 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12151
12211
|
};
|
|
12152
12212
|
CustomDomainModel.prototype.verify = function () {
|
|
12153
12213
|
return __awaiter(this, void 0, void 0, function () {
|
|
12214
|
+
var _this = this;
|
|
12154
12215
|
return __generator(this, function (_a) {
|
|
12155
|
-
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12156
|
-
domain:
|
|
12157
|
-
|
|
12158
|
-
|
|
12216
|
+
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12217
|
+
trackEvent(exports.EEvents.CUSTOM_DOMAIN_VERIFIED, { id: _this.id, domain: _this.domain, verification: res.data.verification });
|
|
12218
|
+
return {
|
|
12219
|
+
domain: new CustomDomainModel(res.data),
|
|
12220
|
+
verification: res.data.verification,
|
|
12221
|
+
};
|
|
12222
|
+
})];
|
|
12159
12223
|
});
|
|
12160
12224
|
});
|
|
12161
12225
|
};
|
|
12162
12226
|
CustomDomainModel.prototype.delete = function () {
|
|
12163
12227
|
return __awaiter(this, void 0, void 0, function () {
|
|
12228
|
+
var _this = this;
|
|
12164
12229
|
return __generator(this, function (_a) {
|
|
12165
|
-
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12230
|
+
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12231
|
+
.then(function (res) {
|
|
12232
|
+
trackEvent(exports.EEvents.CUSTOM_DOMAIN_DELETED, { id: _this.id, domain: _this.domain });
|
|
12233
|
+
return res;
|
|
12234
|
+
})];
|
|
12166
12235
|
});
|
|
12167
12236
|
});
|
|
12168
12237
|
};
|
|
@@ -19387,6 +19456,7 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
19387
19456
|
var domain = _b.domain;
|
|
19388
19457
|
return __generator(this, function (_c) {
|
|
19389
19458
|
return [2 /*return*/, createCustomDomain({ domain: domain }).then(function (data) {
|
|
19459
|
+
trackEvent(exports.EEvents.CUSTOM_DOMAIN_CREATED, __assign({}, data.data));
|
|
19390
19460
|
return new CustomDomainModel(data.data);
|
|
19391
19461
|
})];
|
|
19392
19462
|
});
|
|
@@ -20208,6 +20278,7 @@ exports.descendingComparator = descendingComparator;
|
|
|
20208
20278
|
exports.disableForm = disableForm;
|
|
20209
20279
|
exports.disablePage = disablePage;
|
|
20210
20280
|
exports.disablePopup = disablePopup;
|
|
20281
|
+
exports.domainHasValidCertificateService = domainHasValidCertificateService;
|
|
20211
20282
|
exports.downloadCampaignLogExport = downloadCampaignLogExport;
|
|
20212
20283
|
exports.downloadCampaignsReportsExport = downloadCampaignsReportsExport;
|
|
20213
20284
|
exports.downloadContactsExport = downloadContactsExport;
|
|
@@ -20291,6 +20362,7 @@ exports.initFieldValidation = initFieldValidation;
|
|
|
20291
20362
|
exports.initPostHog = initPostHog;
|
|
20292
20363
|
exports.isColorLight = isColorLight;
|
|
20293
20364
|
exports.isDomainValidService = isDomainValidService;
|
|
20365
|
+
exports.isPublicEmailProviderService = isPublicEmailProviderService;
|
|
20294
20366
|
exports.isSimpleType = isSimpleType;
|
|
20295
20367
|
exports.isValidEmail = isValidEmail;
|
|
20296
20368
|
exports.isValidString = isValidString;
|
|
@@ -20323,6 +20395,7 @@ exports.miliToSecond = miliToSecond;
|
|
|
20323
20395
|
exports.modelSet = modelSet;
|
|
20324
20396
|
exports.modelToJson = modelToJson;
|
|
20325
20397
|
exports.originalBrand = originalBrand;
|
|
20398
|
+
exports.patchAccountDomainsService = patchAccountDomainsService;
|
|
20326
20399
|
exports.patchForm = patchForm;
|
|
20327
20400
|
exports.popImpersonificationTree = popImpersonificationTree;
|
|
20328
20401
|
exports.postMessage = postMessage;
|
|
@@ -20387,6 +20460,7 @@ exports.validateEmail = validateEmail;
|
|
|
20387
20460
|
exports.validateGenericInput = validateGenericInput;
|
|
20388
20461
|
exports.validateUrl = validateUrl;
|
|
20389
20462
|
exports.verifyCustomDomain = verifyCustomDomain;
|
|
20463
|
+
exports.verifyTrackingCnamesService = verifyTrackingCnamesService;
|
|
20390
20464
|
exports.wait = wait;
|
|
20391
20465
|
exports.whiteLabelBrand = whiteLabelBrand;
|
|
20392
20466
|
exports.whoAmi = whoAmi;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TGenericListReturn, TNumStr } from "../../types";
|
|
2
|
-
import { TDkimKey } from "./types";
|
|
2
|
+
import { TDkimKey, TDomainCertificateScheme, TPartnerAccountDomains, TVerifyTrackingCnamesResult } from "./types";
|
|
3
3
|
export declare function getDomainsService({ id }: {
|
|
4
4
|
id?: TNumStr;
|
|
5
5
|
}): Promise<any>;
|
|
@@ -12,4 +12,20 @@ export declare function listDkimService({ id, useImpersonationTree }?: {
|
|
|
12
12
|
id?: TNumStr;
|
|
13
13
|
useImpersonationTree?: boolean;
|
|
14
14
|
}): Promise<TGenericListReturn<TDkimKey>>;
|
|
15
|
+
/** True if the hostname uses a public mailbox provider (Gmail, Yahoo, etc.). */
|
|
16
|
+
export declare function isPublicEmailProviderService({ domain }: {
|
|
17
|
+
domain: string;
|
|
18
|
+
}): Promise<boolean>;
|
|
19
|
+
export declare function verifyTrackingCnamesService(payload: {
|
|
20
|
+
tracking: string;
|
|
21
|
+
bounce: string;
|
|
22
|
+
}): Promise<TVerifyTrackingCnamesResult>;
|
|
23
|
+
export declare function domainHasValidCertificateService(payload: {
|
|
24
|
+
domain: string;
|
|
25
|
+
}): Promise<TDomainCertificateScheme>;
|
|
26
|
+
export declare function patchAccountDomainsService(payload: {
|
|
27
|
+
domains: TPartnerAccountDomains;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
data: TPartnerAccountDomains;
|
|
30
|
+
}>;
|
|
15
31
|
export * from "./types";
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/** Partner / account branding domains (tracking, bounce, DKIM, auth hostnames). */
|
|
2
|
+
export type TPartnerAccountDomains = {
|
|
3
|
+
auth: string;
|
|
4
|
+
bounce: string;
|
|
5
|
+
dkim: string;
|
|
6
|
+
tracking: string;
|
|
7
|
+
};
|
|
8
|
+
export type TVerifyTrackingCnamesResult = {
|
|
9
|
+
tracking: boolean;
|
|
10
|
+
bounce: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** Response from POST /domains/testScheme */
|
|
13
|
+
export type TDomainCertificateScheme = {
|
|
14
|
+
scheme: string;
|
|
15
|
+
};
|
|
1
16
|
export type TDkimKey = {
|
|
2
17
|
account_default: boolean;
|
|
3
18
|
domain: string;
|
|
@@ -161,7 +161,10 @@ export declare enum EEvents {
|
|
|
161
161
|
PAGE_DELETED = "Page.Deleted",
|
|
162
162
|
PAGE_ENABLED = "Page.Enabled",
|
|
163
163
|
PAGE_DISABLED = "Page.Disabled",
|
|
164
|
-
PAGE_PUBLISHED = "Page.Published"
|
|
164
|
+
PAGE_PUBLISHED = "Page.Published",
|
|
165
|
+
CUSTOM_DOMAIN_CREATED = "CustomDomain.Created",
|
|
166
|
+
CUSTOM_DOMAIN_VERIFIED = "CustomDomain.Verified",
|
|
167
|
+
CUSTOM_DOMAIN_DELETED = "CustomDomain.Deleted"
|
|
165
168
|
}
|
|
166
169
|
export declare function eventCondition(type: EEvents | string, disabledEvents?: string[]): boolean;
|
|
167
170
|
export declare function trackEvent(type: EEvents | string, data?: any, dataParser?: (event: EEvents | string, data: any) => any, disabledEvents?: string[]): void;
|
package/dist/esm/index.js
CHANGED
|
@@ -3872,6 +3872,9 @@ var EEvents;
|
|
|
3872
3872
|
EEvents["PAGE_ENABLED"] = "Page.Enabled";
|
|
3873
3873
|
EEvents["PAGE_DISABLED"] = "Page.Disabled";
|
|
3874
3874
|
EEvents["PAGE_PUBLISHED"] = "Page.Published";
|
|
3875
|
+
EEvents["CUSTOM_DOMAIN_CREATED"] = "CustomDomain.Created";
|
|
3876
|
+
EEvents["CUSTOM_DOMAIN_VERIFIED"] = "CustomDomain.Verified";
|
|
3877
|
+
EEvents["CUSTOM_DOMAIN_DELETED"] = "CustomDomain.Deleted";
|
|
3875
3878
|
})(EEvents || (EEvents = {}));
|
|
3876
3879
|
function eventCondition(type, disabledEvents) {
|
|
3877
3880
|
if (disabledEvents === void 0) { disabledEvents = []; }
|
|
@@ -9880,6 +9883,63 @@ function listDkimService(_a) {
|
|
|
9880
9883
|
useImpersonationTree: useImpersonationTree
|
|
9881
9884
|
});
|
|
9882
9885
|
}
|
|
9886
|
+
function unwrapData(res) {
|
|
9887
|
+
if (res && typeof res === "object" && "data" in res && res.data !== undefined) {
|
|
9888
|
+
return res.data;
|
|
9889
|
+
}
|
|
9890
|
+
return res;
|
|
9891
|
+
}
|
|
9892
|
+
/** True if the hostname uses a public mailbox provider (Gmail, Yahoo, etc.). */
|
|
9893
|
+
function isPublicEmailProviderService(_a) {
|
|
9894
|
+
var domain = _a.domain;
|
|
9895
|
+
return callApi({
|
|
9896
|
+
url: "".concat(uiKitConfig.GATEWAY_PROXY, "/domains/publicEmailProviders/").concat(encodeURIComponent(domain)),
|
|
9897
|
+
fetchOptions: {
|
|
9898
|
+
method: EMethods.get
|
|
9899
|
+
}
|
|
9900
|
+
}).then(function (res) {
|
|
9901
|
+
var inner = unwrapData(res);
|
|
9902
|
+
if (typeof inner === "boolean") {
|
|
9903
|
+
return inner;
|
|
9904
|
+
}
|
|
9905
|
+
if (inner && typeof inner === "object" && "isPublic" in inner) {
|
|
9906
|
+
return Boolean(inner.isPublic);
|
|
9907
|
+
}
|
|
9908
|
+
return Boolean(inner);
|
|
9909
|
+
});
|
|
9910
|
+
}
|
|
9911
|
+
function verifyTrackingCnamesService(payload) {
|
|
9912
|
+
return callApi({
|
|
9913
|
+
url: uiKitConfig.GATEWAY_PROXY + "/domains/verifyTrackingCnames",
|
|
9914
|
+
fetchOptions: {
|
|
9915
|
+
method: EMethods.post,
|
|
9916
|
+
body: {
|
|
9917
|
+
tracking: payload.tracking,
|
|
9918
|
+
bounce: payload.bounce
|
|
9919
|
+
}
|
|
9920
|
+
}
|
|
9921
|
+
}).then(function (res) { return unwrapData(res); });
|
|
9922
|
+
}
|
|
9923
|
+
function domainHasValidCertificateService(payload) {
|
|
9924
|
+
return callApi({
|
|
9925
|
+
url: uiKitConfig.GATEWAY_PROXY + "/domains/testScheme",
|
|
9926
|
+
fetchOptions: {
|
|
9927
|
+
method: EMethods.post,
|
|
9928
|
+
body: {
|
|
9929
|
+
url: payload.domain
|
|
9930
|
+
}
|
|
9931
|
+
}
|
|
9932
|
+
}).then(function (res) { return unwrapData(res); });
|
|
9933
|
+
}
|
|
9934
|
+
function patchAccountDomainsService(payload) {
|
|
9935
|
+
return callApi({
|
|
9936
|
+
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/domains/default",
|
|
9937
|
+
fetchOptions: {
|
|
9938
|
+
method: EMethods.patch,
|
|
9939
|
+
body: payload
|
|
9940
|
+
}
|
|
9941
|
+
});
|
|
9942
|
+
}
|
|
9883
9943
|
|
|
9884
9944
|
var AccountModel = /** @class */ (function () {
|
|
9885
9945
|
function AccountModel(params) {
|
|
@@ -12131,18 +12191,27 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12131
12191
|
};
|
|
12132
12192
|
CustomDomainModel.prototype.verify = function () {
|
|
12133
12193
|
return __awaiter(this, void 0, void 0, function () {
|
|
12194
|
+
var _this = this;
|
|
12134
12195
|
return __generator(this, function (_a) {
|
|
12135
|
-
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12136
|
-
domain:
|
|
12137
|
-
|
|
12138
|
-
|
|
12196
|
+
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12197
|
+
trackEvent(EEvents.CUSTOM_DOMAIN_VERIFIED, { id: _this.id, domain: _this.domain, verification: res.data.verification });
|
|
12198
|
+
return {
|
|
12199
|
+
domain: new CustomDomainModel(res.data),
|
|
12200
|
+
verification: res.data.verification,
|
|
12201
|
+
};
|
|
12202
|
+
})];
|
|
12139
12203
|
});
|
|
12140
12204
|
});
|
|
12141
12205
|
};
|
|
12142
12206
|
CustomDomainModel.prototype.delete = function () {
|
|
12143
12207
|
return __awaiter(this, void 0, void 0, function () {
|
|
12208
|
+
var _this = this;
|
|
12144
12209
|
return __generator(this, function (_a) {
|
|
12145
|
-
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12210
|
+
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12211
|
+
.then(function (res) {
|
|
12212
|
+
trackEvent(EEvents.CUSTOM_DOMAIN_DELETED, { id: _this.id, domain: _this.domain });
|
|
12213
|
+
return res;
|
|
12214
|
+
})];
|
|
12146
12215
|
});
|
|
12147
12216
|
});
|
|
12148
12217
|
};
|
|
@@ -19367,6 +19436,7 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
19367
19436
|
var domain = _b.domain;
|
|
19368
19437
|
return __generator(this, function (_c) {
|
|
19369
19438
|
return [2 /*return*/, createCustomDomain({ domain: domain }).then(function (data) {
|
|
19439
|
+
trackEvent(EEvents.CUSTOM_DOMAIN_CREATED, __assign({}, data.data));
|
|
19370
19440
|
return new CustomDomainModel(data.data);
|
|
19371
19441
|
})];
|
|
19372
19442
|
});
|
|
@@ -20021,4 +20091,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
20021
20091
|
return UsersFactory;
|
|
20022
20092
|
}());
|
|
20023
20093
|
|
|
20024
|
-
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationModel, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CountryDropdown, CustomDomainModel, CustomDomainsFactory, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, ECustomDomainVerificationStatus, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailStatuses, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPageBranding, EPartialInfoPool, EPopupBranding, EPopupBrowserType, EPopupCloseButtonPosition, EPopupDeviceType, EPopupDisplayFrequency, EPopupPosition, EPopupTriggerType, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListPageModel, ListPopupModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, Overlay, OverlayHandler, OverlayHeading, PageModel, PagesFactory, PhoneTextField, PopupModel, PopupsFactory, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SuppressedEmailsFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addInterestsToContactsOfList, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, copyToClipboard, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createContactsExport, createCustomDomain, createForm, createPage, createPopup, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteAccount, deleteAnyAutomation, deleteAutomation, deleteCampaign, deleteCampaignsReportsExport, deleteContact, deleteCustomDomain, deleteForm, deleteList, deletePage, deletePartialInformation, deletePopup, deleteSender, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteUser, deleteWorkflow, descendingComparator, disableForm, disablePage, disablePopup, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enablePage, enablePopup, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountMetadata, getAccountReport, getAdjustedBillingCycle, getAllAutomationStats, getAutomation, getAutomationEmailContent, getAutomationExecutionsCount, getAutomationStats, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getContactsExport, getCustomDomain, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPage, getPopup, getPropertyValue, getSender, getStartOfDate, getStorage, getSuppressedEmailExport, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listAutomations, listCampaigns, listCampaignsReportsExports, listContacts, listCustomDomains, listDkimService, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listPages, listPopups, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, listWorkflows, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, publishPage, publishPopup, reScheduleCampaign, removeEmptyProperties, removeInterestsFromContactsOfList, removeQueryParams, removeTrailingChar, renderCampaign, renderEmail, renderForm, renderPage, renderPopup, renderPublicHtmlForm, renderTemplate, requestSupportService, resendEmail, resendVerificationEmail, resumeCampaign, saveList, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendAccount, suspendCampaign, tagContact, tagsContactsOfList, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unSuspendAccount, unshareTemplate, unsubscribeContact, untagContact, untagContactsOfList, updateAccount, updateAndClearUrlParams, updateAnyAutomation, updateAutomation, updateCampaign, updatePage, updatePopup, updateSystemEmails, updateTemplate, updateUser, updateWorkflow, validateColor, validateEmail, validateGenericInput, validateUrl, verifyCustomDomain, wait, whiteLabelBrand, whoAmi };
|
|
20094
|
+
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationModel, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CountryDropdown, CustomDomainModel, CustomDomainsFactory, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, ECustomDomainVerificationStatus, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailStatuses, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPageBranding, EPartialInfoPool, EPopupBranding, EPopupBrowserType, EPopupCloseButtonPosition, EPopupDeviceType, EPopupDisplayFrequency, EPopupPosition, EPopupTriggerType, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListPageModel, ListPopupModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, Overlay, OverlayHandler, OverlayHeading, PageModel, PagesFactory, PhoneTextField, PopupModel, PopupsFactory, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SuppressedEmailsFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addInterestsToContactsOfList, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, copyToClipboard, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createContactsExport, createCustomDomain, createForm, createPage, createPopup, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteAccount, deleteAnyAutomation, deleteAutomation, deleteCampaign, deleteCampaignsReportsExport, deleteContact, deleteCustomDomain, deleteForm, deleteList, deletePage, deletePartialInformation, deletePopup, deleteSender, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteUser, deleteWorkflow, descendingComparator, disableForm, disablePage, disablePopup, domainHasValidCertificateService, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enablePage, enablePopup, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountMetadata, getAccountReport, getAdjustedBillingCycle, getAllAutomationStats, getAutomation, getAutomationEmailContent, getAutomationExecutionsCount, getAutomationStats, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getContactsExport, getCustomDomain, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPage, getPopup, getPropertyValue, getSender, getStartOfDate, getStorage, getSuppressedEmailExport, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isPublicEmailProviderService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listAutomations, listCampaigns, listCampaignsReportsExports, listContacts, listCustomDomains, listDkimService, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listPages, listPopups, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, listWorkflows, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchAccountDomainsService, patchForm, popImpersonificationTree, postMessage, publishForm, publishPage, publishPopup, reScheduleCampaign, removeEmptyProperties, removeInterestsFromContactsOfList, removeQueryParams, removeTrailingChar, renderCampaign, renderEmail, renderForm, renderPage, renderPopup, renderPublicHtmlForm, renderTemplate, requestSupportService, resendEmail, resendVerificationEmail, resumeCampaign, saveList, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendAccount, suspendCampaign, tagContact, tagsContactsOfList, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unSuspendAccount, unshareTemplate, unsubscribeContact, untagContact, untagContactsOfList, updateAccount, updateAndClearUrlParams, updateAnyAutomation, updateAutomation, updateCampaign, updatePage, updatePopup, updateSystemEmails, updateTemplate, updateUser, updateWorkflow, validateColor, validateEmail, validateGenericInput, validateUrl, verifyCustomDomain, verifyTrackingCnamesService, wait, whiteLabelBrand, whoAmi };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TGenericListReturn, TNumStr } from "../../types";
|
|
2
|
-
import { TDkimKey } from "./types";
|
|
2
|
+
import { TDkimKey, TDomainCertificateScheme, TPartnerAccountDomains, TVerifyTrackingCnamesResult } from "./types";
|
|
3
3
|
export declare function getDomainsService({ id }: {
|
|
4
4
|
id?: TNumStr;
|
|
5
5
|
}): Promise<any>;
|
|
@@ -12,4 +12,20 @@ export declare function listDkimService({ id, useImpersonationTree }?: {
|
|
|
12
12
|
id?: TNumStr;
|
|
13
13
|
useImpersonationTree?: boolean;
|
|
14
14
|
}): Promise<TGenericListReturn<TDkimKey>>;
|
|
15
|
+
/** True if the hostname uses a public mailbox provider (Gmail, Yahoo, etc.). */
|
|
16
|
+
export declare function isPublicEmailProviderService({ domain }: {
|
|
17
|
+
domain: string;
|
|
18
|
+
}): Promise<boolean>;
|
|
19
|
+
export declare function verifyTrackingCnamesService(payload: {
|
|
20
|
+
tracking: string;
|
|
21
|
+
bounce: string;
|
|
22
|
+
}): Promise<TVerifyTrackingCnamesResult>;
|
|
23
|
+
export declare function domainHasValidCertificateService(payload: {
|
|
24
|
+
domain: string;
|
|
25
|
+
}): Promise<TDomainCertificateScheme>;
|
|
26
|
+
export declare function patchAccountDomainsService(payload: {
|
|
27
|
+
domains: TPartnerAccountDomains;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
data: TPartnerAccountDomains;
|
|
30
|
+
}>;
|
|
15
31
|
export * from "./types";
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/** Partner / account branding domains (tracking, bounce, DKIM, auth hostnames). */
|
|
2
|
+
export type TPartnerAccountDomains = {
|
|
3
|
+
auth: string;
|
|
4
|
+
bounce: string;
|
|
5
|
+
dkim: string;
|
|
6
|
+
tracking: string;
|
|
7
|
+
};
|
|
8
|
+
export type TVerifyTrackingCnamesResult = {
|
|
9
|
+
tracking: boolean;
|
|
10
|
+
bounce: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** Response from POST /domains/testScheme */
|
|
13
|
+
export type TDomainCertificateScheme = {
|
|
14
|
+
scheme: string;
|
|
15
|
+
};
|
|
1
16
|
export type TDkimKey = {
|
|
2
17
|
account_default: boolean;
|
|
3
18
|
domain: string;
|
|
@@ -161,7 +161,10 @@ export declare enum EEvents {
|
|
|
161
161
|
PAGE_DELETED = "Page.Deleted",
|
|
162
162
|
PAGE_ENABLED = "Page.Enabled",
|
|
163
163
|
PAGE_DISABLED = "Page.Disabled",
|
|
164
|
-
PAGE_PUBLISHED = "Page.Published"
|
|
164
|
+
PAGE_PUBLISHED = "Page.Published",
|
|
165
|
+
CUSTOM_DOMAIN_CREATED = "CustomDomain.Created",
|
|
166
|
+
CUSTOM_DOMAIN_VERIFIED = "CustomDomain.Verified",
|
|
167
|
+
CUSTOM_DOMAIN_DELETED = "CustomDomain.Deleted"
|
|
165
168
|
}
|
|
166
169
|
export declare function eventCondition(type: EEvents | string, disabledEvents?: string[]): boolean;
|
|
167
170
|
export declare function trackEvent(type: EEvents | string, data?: any, dataParser?: (event: EEvents | string, data: any) => any, disabledEvents?: string[]): void;
|