@cakemail-org/ui-components-v2 2.2.91 → 2.2.93

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.
@@ -0,0 +1,13 @@
1
+ import { CustomDomainModel } from "../../models/customDomains";
2
+ import { TGenericListParams, TGenericListReturn } from "../../types";
3
+ export declare class CustomDomainsFactory {
4
+ static list({ ...params }: TGenericListParams & {
5
+ verificationStatus?: string;
6
+ }): Promise<TGenericListReturn<CustomDomainModel>>;
7
+ static get({ id }: {
8
+ id: string;
9
+ }): Promise<CustomDomainModel>;
10
+ static create({ domain }: {
11
+ domain: string;
12
+ }): Promise<CustomDomainModel>;
13
+ }
@@ -4,6 +4,7 @@ export * from "./billing";
4
4
  export * from "./brands";
5
5
  export * from "./campaigns";
6
6
  export * from "./contacts";
7
+ export * from "./customDomains";
7
8
  export * from "./emailAPI";
8
9
  export * from "./forms";
9
10
  export * from "./lists";
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 = []; }
@@ -11032,6 +11035,75 @@ function untagContact(_a) {
11032
11035
  });
11033
11036
  }
11034
11037
 
11038
+ var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
11039
+ function listCustomDomains(_a) {
11040
+ return __awaiter(this, void 0, void 0, function () {
11041
+ var options = __rest(_a, []);
11042
+ return __generator(this, function (_b) {
11043
+ return [2 /*return*/, callApi({
11044
+ url: baseUrl(),
11045
+ query: camelCase(options),
11046
+ fetchOptions: {
11047
+ method: exports.EMethods.get,
11048
+ },
11049
+ })];
11050
+ });
11051
+ });
11052
+ }
11053
+ function createCustomDomain(_a) {
11054
+ return __awaiter(this, arguments, void 0, function (_b) {
11055
+ var domain = _b.domain;
11056
+ return __generator(this, function (_c) {
11057
+ return [2 /*return*/, callApi({
11058
+ url: baseUrl(),
11059
+ fetchOptions: {
11060
+ method: exports.EMethods.post,
11061
+ body: { domain: domain },
11062
+ },
11063
+ })];
11064
+ });
11065
+ });
11066
+ }
11067
+ function getCustomDomain(_a) {
11068
+ return __awaiter(this, arguments, void 0, function (_b) {
11069
+ var id = _b.id;
11070
+ return __generator(this, function (_c) {
11071
+ return [2 /*return*/, callApi({
11072
+ url: "".concat(baseUrl(), "/").concat(id),
11073
+ fetchOptions: {
11074
+ method: exports.EMethods.get,
11075
+ },
11076
+ })];
11077
+ });
11078
+ });
11079
+ }
11080
+ function deleteCustomDomain(_a) {
11081
+ return __awaiter(this, arguments, void 0, function (_b) {
11082
+ var id = _b.id;
11083
+ return __generator(this, function (_c) {
11084
+ return [2 /*return*/, callApi({
11085
+ url: "".concat(baseUrl(), "/").concat(id),
11086
+ fetchOptions: {
11087
+ method: exports.EMethods.delete,
11088
+ },
11089
+ })];
11090
+ });
11091
+ });
11092
+ }
11093
+ function verifyCustomDomain(_a) {
11094
+ return __awaiter(this, arguments, void 0, function (_b) {
11095
+ var id = _b.id;
11096
+ return __generator(this, function (_c) {
11097
+ return [2 /*return*/, callApi({
11098
+ url: "".concat(baseUrl(), "/").concat(id, "/verify"),
11099
+ fetchOptions: {
11100
+ method: exports.EMethods.post,
11101
+ },
11102
+ })];
11103
+ });
11104
+ });
11105
+ }
11106
+
11035
11107
  exports.EEmailLogTypeParam = void 0;
11036
11108
  (function (EEmailLogTypeParam) {
11037
11109
  EEmailLogTypeParam["all"] = "all";
@@ -12049,6 +12121,66 @@ var ContactModel = /** @class */ (function () {
12049
12121
  return ContactModel;
12050
12122
  }());
12051
12123
 
12124
+ exports.ECustomDomainVerificationStatus = void 0;
12125
+ (function (ECustomDomainVerificationStatus) {
12126
+ ECustomDomainVerificationStatus["pending"] = "pending";
12127
+ ECustomDomainVerificationStatus["verified"] = "verified";
12128
+ ECustomDomainVerificationStatus["failed"] = "failed";
12129
+ })(exports.ECustomDomainVerificationStatus || (exports.ECustomDomainVerificationStatus = {}));
12130
+
12131
+ var CustomDomainModel = /** @class */ (function () {
12132
+ function CustomDomainModel(params) {
12133
+ this.id = params.id;
12134
+ this.account_id = params.account_id;
12135
+ this.domain = params.domain;
12136
+ this.verification_status = params.verification_status;
12137
+ this.verified_on = params.verified_on;
12138
+ this.created_on = params.created_on;
12139
+ this.updated_on = params.updated_on;
12140
+ this.dns_instructions = params.dns_instructions;
12141
+ }
12142
+ Object.defineProperty(CustomDomainModel.prototype, "isVerified", {
12143
+ get: function () {
12144
+ return this.verification_status === exports.ECustomDomainVerificationStatus.verified;
12145
+ },
12146
+ enumerable: false,
12147
+ configurable: true
12148
+ });
12149
+ CustomDomainModel.prototype.toJson = function () {
12150
+ return modelToJson(this);
12151
+ };
12152
+ CustomDomainModel.prototype.set = function (property, value) {
12153
+ modelSet(this, property, value);
12154
+ };
12155
+ CustomDomainModel.prototype.verify = function () {
12156
+ return __awaiter(this, void 0, void 0, function () {
12157
+ var _this = this;
12158
+ return __generator(this, function (_a) {
12159
+ return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
12160
+ trackEvent(exports.EEvents.CUSTOM_DOMAIN_VERIFIED, { id: _this.id, domain: _this.domain, verification: res.data.verification });
12161
+ return {
12162
+ domain: new CustomDomainModel(res.data),
12163
+ verification: res.data.verification,
12164
+ };
12165
+ })];
12166
+ });
12167
+ });
12168
+ };
12169
+ CustomDomainModel.prototype.delete = function () {
12170
+ return __awaiter(this, void 0, void 0, function () {
12171
+ var _this = this;
12172
+ return __generator(this, function (_a) {
12173
+ return [2 /*return*/, deleteCustomDomain({ id: this.id })
12174
+ .then(function (res) {
12175
+ trackEvent(exports.EEvents.CUSTOM_DOMAIN_DELETED, { id: _this.id, domain: _this.domain });
12176
+ return res;
12177
+ })];
12178
+ });
12179
+ });
12180
+ };
12181
+ return CustomDomainModel;
12182
+ }());
12183
+
12052
12184
  exports.EEmailAttachementTypes = void 0;
12053
12185
  (function (EEmailAttachementTypes) {
12054
12186
  EEmailAttachementTypes["csv"] = "csv";
@@ -12479,6 +12611,7 @@ exports.EPageBranding = void 0;
12479
12611
 
12480
12612
  var ListPageModel = /** @class */ (function () {
12481
12613
  function ListPageModel(params) {
12614
+ var _a, _b;
12482
12615
  this.id = params.id;
12483
12616
  this.name = params.name;
12484
12617
  this.list_id = params.list_id;
@@ -12498,6 +12631,8 @@ var ListPageModel = /** @class */ (function () {
12498
12631
  this.form_id = params.form_id;
12499
12632
  this.thumbnail_url = params.thumbnail_url;
12500
12633
  this.published_url = params.published_url;
12634
+ this.custom_domain_id = (_a = params.custom_domain_id) !== null && _a !== void 0 ? _a : null;
12635
+ this.custom_domain = (_b = params.custom_domain) !== null && _b !== void 0 ? _b : null;
12501
12636
  }
12502
12637
  ListPageModel.prototype.toJson = function () {
12503
12638
  return modelToJson(this);
@@ -12523,7 +12658,6 @@ var ListPageModel = /** @class */ (function () {
12523
12658
  return __generator(this, function (_a) {
12524
12659
  dataToUpdate = page || this.toJson();
12525
12660
  return [2 /*return*/, updatePage({ id: this.id, page: dataToUpdate }).then(function (data) {
12526
- debugger;
12527
12661
  trackEvent(exports.EEvents.PAGE_UPDATED, {
12528
12662
  id: _this.id,
12529
12663
  name: dataToUpdate === null || dataToUpdate === void 0 ? void 0 : dataToUpdate.name,
@@ -19239,6 +19373,41 @@ var ContactsFactory = /** @class */ (function () {
19239
19373
  return ContactsFactory;
19240
19374
  }());
19241
19375
 
19376
+ var CustomDomainsFactory = /** @class */ (function () {
19377
+ function CustomDomainsFactory() {
19378
+ }
19379
+ CustomDomainsFactory.list = function (_a) {
19380
+ return __awaiter(this, void 0, void 0, function () {
19381
+ var params = __rest(_a, []);
19382
+ return __generator(this, function (_b) {
19383
+ return [2 /*return*/, listCustomDomains(params).then(function (data) { return (__assign(__assign({}, data), { data: data.data.map(function (row) { return new CustomDomainModel(row); }) })); })];
19384
+ });
19385
+ });
19386
+ };
19387
+ CustomDomainsFactory.get = function (_a) {
19388
+ return __awaiter(this, arguments, void 0, function (_b) {
19389
+ var id = _b.id;
19390
+ return __generator(this, function (_c) {
19391
+ return [2 /*return*/, getCustomDomain({ id: id }).then(function (data) {
19392
+ return new CustomDomainModel(data.data);
19393
+ })];
19394
+ });
19395
+ });
19396
+ };
19397
+ CustomDomainsFactory.create = function (_a) {
19398
+ return __awaiter(this, arguments, void 0, function (_b) {
19399
+ var domain = _b.domain;
19400
+ return __generator(this, function (_c) {
19401
+ return [2 /*return*/, createCustomDomain({ domain: domain }).then(function (data) {
19402
+ trackEvent(exports.EEvents.CUSTOM_DOMAIN_CREATED, __assign({}, data.data));
19403
+ return new CustomDomainModel(data.data);
19404
+ })];
19405
+ });
19406
+ });
19407
+ };
19408
+ return CustomDomainsFactory;
19409
+ }());
19410
+
19242
19411
  exports.EEmailLogType = void 0;
19243
19412
  (function (EEmailLogType) {
19244
19413
  EEmailLogType["submitted"] = "submitted";
@@ -19911,6 +20080,8 @@ exports.ContactModel = ContactModel;
19911
20080
  exports.ContactsFactory = ContactsFactory;
19912
20081
  exports.ContentSectionContainer = ContentSectionContainer;
19913
20082
  exports.CountryDropdown = CountryDropdown;
20083
+ exports.CustomDomainModel = CustomDomainModel;
20084
+ exports.CustomDomainsFactory = CustomDomainsFactory;
19914
20085
  exports.CustomerModel = CustomerModel;
19915
20086
  exports.DataTable = DataTable;
19916
20087
  exports.DataTableHead = DataTableHead;
@@ -20020,6 +20191,7 @@ exports.createCampaign = createCampaign;
20020
20191
  exports.createCampaignLogsExports = createCampaignLogsExports;
20021
20192
  exports.createCampaignsReportsExport = createCampaignsReportsExport;
20022
20193
  exports.createContactsExport = createContactsExport;
20194
+ exports.createCustomDomain = createCustomDomain;
20023
20195
  exports.createForm = createForm;
20024
20196
  exports.createPage = createPage;
20025
20197
  exports.createPopup = createPopup;
@@ -20032,6 +20204,7 @@ exports.deleteAutomation = deleteAutomation;
20032
20204
  exports.deleteCampaign = deleteCampaign;
20033
20205
  exports.deleteCampaignsReportsExport = deleteCampaignsReportsExport;
20034
20206
  exports.deleteContact = deleteContact;
20207
+ exports.deleteCustomDomain = deleteCustomDomain;
20035
20208
  exports.deleteForm = deleteForm;
20036
20209
  exports.deleteList = deleteList;
20037
20210
  exports.deletePage = deletePage;
@@ -20093,6 +20266,7 @@ exports.getCampaignRevisions = getCampaignRevisions;
20093
20266
  exports.getCampaignsReportsExport = getCampaignsReportsExport;
20094
20267
  exports.getComparator = getComparator;
20095
20268
  exports.getContactsExport = getContactsExport;
20269
+ exports.getCustomDomain = getCustomDomain;
20096
20270
  exports.getCustomerProfile = getCustomerProfile;
20097
20271
  exports.getDate = getDate;
20098
20272
  exports.getDomainFromEmail = getDomainFromEmail;
@@ -20140,6 +20314,7 @@ exports.listAutomations = listAutomations;
20140
20314
  exports.listCampaigns = listCampaigns;
20141
20315
  exports.listCampaignsReportsExports = listCampaignsReportsExports;
20142
20316
  exports.listContacts = listContacts;
20317
+ exports.listCustomDomains = listCustomDomains;
20143
20318
  exports.listDkimService = listDkimService;
20144
20319
  exports.listEmailLogs = listEmailLogs;
20145
20320
  exports.listForms = listForms;
@@ -20224,6 +20399,7 @@ exports.validateColor = validateColor;
20224
20399
  exports.validateEmail = validateEmail;
20225
20400
  exports.validateGenericInput = validateGenericInput;
20226
20401
  exports.validateUrl = validateUrl;
20402
+ exports.verifyCustomDomain = verifyCustomDomain;
20227
20403
  exports.wait = wait;
20228
20404
  exports.whiteLabelBrand = whiteLabelBrand;
20229
20405
  exports.whoAmi = whoAmi;
@@ -0,0 +1,22 @@
1
+ import { TDeleteApiResource } from "../../types";
2
+ import { ECustomDomainVerificationStatus, TCustomDomainModel, TCustomDomainVerificationPayload } from "./types";
3
+ export declare class CustomDomainModel {
4
+ id: string;
5
+ account_id: number;
6
+ domain: string;
7
+ verification_status: ECustomDomainVerificationStatus;
8
+ verified_on: number | null;
9
+ created_on: number;
10
+ updated_on: number;
11
+ dns_instructions: TCustomDomainModel["dns_instructions"];
12
+ constructor(params: TCustomDomainModel);
13
+ get isVerified(): boolean;
14
+ toJson(): TCustomDomainModel;
15
+ set<T extends keyof this>(property: T, value: this[T]): void;
16
+ verify(): Promise<{
17
+ domain: CustomDomainModel;
18
+ verification: TCustomDomainVerificationPayload;
19
+ }>;
20
+ delete(): Promise<TDeleteApiResource>;
21
+ }
22
+ export * from "./types";
@@ -0,0 +1,34 @@
1
+ export declare enum ECustomDomainVerificationStatus {
2
+ pending = "pending",
3
+ verified = "verified",
4
+ failed = "failed"
5
+ }
6
+ export type TCustomDomainDnsCname = {
7
+ hostname: string;
8
+ point_to: string;
9
+ help: string;
10
+ };
11
+ export type TCustomDomainDnsInstructions = {
12
+ cname: TCustomDomainDnsCname;
13
+ extra_dns?: Array<{
14
+ hostname: string;
15
+ help: string;
16
+ }>;
17
+ };
18
+ export type TCustomDomainModel = {
19
+ id: string;
20
+ account_id: number;
21
+ domain: string;
22
+ verification_status: ECustomDomainVerificationStatus;
23
+ verified_on: number | null;
24
+ created_on: number;
25
+ updated_on: number;
26
+ dns_instructions: TCustomDomainDnsInstructions;
27
+ };
28
+ export type TCustomDomainVerificationPayload = {
29
+ success: boolean;
30
+ message: string;
31
+ };
32
+ export type TCustomDomainVerifyResult = TCustomDomainModel & {
33
+ verification: TCustomDomainVerificationPayload;
34
+ };
@@ -2,6 +2,7 @@ export * from "./account";
2
2
  export * from "./automation";
3
3
  export * from "./campaign";
4
4
  export * from "./contact";
5
+ export * from "./customDomains";
5
6
  export * from "./customer";
6
7
  export * from "./emailAPI";
7
8
  export * from "./form";
@@ -20,6 +20,8 @@ export declare class ListPageModel {
20
20
  form_id: string | null;
21
21
  thumbnail_url: string;
22
22
  published_url: string | null;
23
+ custom_domain_id: string | null;
24
+ custom_domain: string | null;
23
25
  constructor(params: TPageModel);
24
26
  toJson(): any;
25
27
  set<T extends keyof this>(property: T, value: this[T]): void;
@@ -19,6 +19,8 @@ export type TPageModel = {
19
19
  form_id: string | null;
20
20
  thumbnail_url: string;
21
21
  published_url: string | null;
22
+ custom_domain_id?: string | null;
23
+ custom_domain?: string | null;
22
24
  };
23
25
  export type TPageUser = {
24
26
  id: string;
@@ -0,0 +1,18 @@
1
+ import { TCustomDomainModel, TCustomDomainVerifyResult } from "../../models/customDomains/types";
2
+ import { TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
3
+ import { TCreateApiResource, TDeleteApiResource, TUpdateApiResource } from "../../types/generic";
4
+ export declare function listCustomDomains({ ...options }: TGenericListParams & {
5
+ verificationStatus?: string;
6
+ }): Promise<TGenericListReturn<TCustomDomainModel>>;
7
+ export declare function createCustomDomain({ domain, }: {
8
+ domain: string;
9
+ }): Promise<TCreateApiResource<TCustomDomainModel>>;
10
+ export declare function getCustomDomain({ id }: {
11
+ id: string;
12
+ }): Promise<TGenericReturn<TCustomDomainModel>>;
13
+ export declare function deleteCustomDomain({ id }: {
14
+ id: string;
15
+ }): Promise<TDeleteApiResource>;
16
+ export declare function verifyCustomDomain({ id, }: {
17
+ id: string;
18
+ }): Promise<TUpdateApiResource<TCustomDomainVerifyResult>>;
@@ -5,6 +5,7 @@ export * from "./billing";
5
5
  export * from "./brands";
6
6
  export * from "./campaigns";
7
7
  export * from "./contacts";
8
+ export * from "./customDomains";
8
9
  export * from "./domains";
9
10
  export * from "./emailAPI";
10
11
  export * from "./forms";
@@ -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;
@@ -0,0 +1,13 @@
1
+ import { CustomDomainModel } from "../../models/customDomains";
2
+ import { TGenericListParams, TGenericListReturn } from "../../types";
3
+ export declare class CustomDomainsFactory {
4
+ static list({ ...params }: TGenericListParams & {
5
+ verificationStatus?: string;
6
+ }): Promise<TGenericListReturn<CustomDomainModel>>;
7
+ static get({ id }: {
8
+ id: string;
9
+ }): Promise<CustomDomainModel>;
10
+ static create({ domain }: {
11
+ domain: string;
12
+ }): Promise<CustomDomainModel>;
13
+ }
@@ -4,6 +4,7 @@ export * from "./billing";
4
4
  export * from "./brands";
5
5
  export * from "./campaigns";
6
6
  export * from "./contacts";
7
+ export * from "./customDomains";
7
8
  export * from "./emailAPI";
8
9
  export * from "./forms";
9
10
  export * from "./lists";
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 = []; }
@@ -11012,6 +11015,75 @@ function untagContact(_a) {
11012
11015
  });
11013
11016
  }
11014
11017
 
11018
+ var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
11019
+ function listCustomDomains(_a) {
11020
+ return __awaiter(this, void 0, void 0, function () {
11021
+ var options = __rest(_a, []);
11022
+ return __generator(this, function (_b) {
11023
+ return [2 /*return*/, callApi({
11024
+ url: baseUrl(),
11025
+ query: camelCase(options),
11026
+ fetchOptions: {
11027
+ method: EMethods.get,
11028
+ },
11029
+ })];
11030
+ });
11031
+ });
11032
+ }
11033
+ function createCustomDomain(_a) {
11034
+ return __awaiter(this, arguments, void 0, function (_b) {
11035
+ var domain = _b.domain;
11036
+ return __generator(this, function (_c) {
11037
+ return [2 /*return*/, callApi({
11038
+ url: baseUrl(),
11039
+ fetchOptions: {
11040
+ method: EMethods.post,
11041
+ body: { domain: domain },
11042
+ },
11043
+ })];
11044
+ });
11045
+ });
11046
+ }
11047
+ function getCustomDomain(_a) {
11048
+ return __awaiter(this, arguments, void 0, function (_b) {
11049
+ var id = _b.id;
11050
+ return __generator(this, function (_c) {
11051
+ return [2 /*return*/, callApi({
11052
+ url: "".concat(baseUrl(), "/").concat(id),
11053
+ fetchOptions: {
11054
+ method: EMethods.get,
11055
+ },
11056
+ })];
11057
+ });
11058
+ });
11059
+ }
11060
+ function deleteCustomDomain(_a) {
11061
+ return __awaiter(this, arguments, void 0, function (_b) {
11062
+ var id = _b.id;
11063
+ return __generator(this, function (_c) {
11064
+ return [2 /*return*/, callApi({
11065
+ url: "".concat(baseUrl(), "/").concat(id),
11066
+ fetchOptions: {
11067
+ method: EMethods.delete,
11068
+ },
11069
+ })];
11070
+ });
11071
+ });
11072
+ }
11073
+ function verifyCustomDomain(_a) {
11074
+ return __awaiter(this, arguments, void 0, function (_b) {
11075
+ var id = _b.id;
11076
+ return __generator(this, function (_c) {
11077
+ return [2 /*return*/, callApi({
11078
+ url: "".concat(baseUrl(), "/").concat(id, "/verify"),
11079
+ fetchOptions: {
11080
+ method: EMethods.post,
11081
+ },
11082
+ })];
11083
+ });
11084
+ });
11085
+ }
11086
+
11015
11087
  var EEmailLogTypeParam;
11016
11088
  (function (EEmailLogTypeParam) {
11017
11089
  EEmailLogTypeParam["all"] = "all";
@@ -12029,6 +12101,66 @@ var ContactModel = /** @class */ (function () {
12029
12101
  return ContactModel;
12030
12102
  }());
12031
12103
 
12104
+ var ECustomDomainVerificationStatus;
12105
+ (function (ECustomDomainVerificationStatus) {
12106
+ ECustomDomainVerificationStatus["pending"] = "pending";
12107
+ ECustomDomainVerificationStatus["verified"] = "verified";
12108
+ ECustomDomainVerificationStatus["failed"] = "failed";
12109
+ })(ECustomDomainVerificationStatus || (ECustomDomainVerificationStatus = {}));
12110
+
12111
+ var CustomDomainModel = /** @class */ (function () {
12112
+ function CustomDomainModel(params) {
12113
+ this.id = params.id;
12114
+ this.account_id = params.account_id;
12115
+ this.domain = params.domain;
12116
+ this.verification_status = params.verification_status;
12117
+ this.verified_on = params.verified_on;
12118
+ this.created_on = params.created_on;
12119
+ this.updated_on = params.updated_on;
12120
+ this.dns_instructions = params.dns_instructions;
12121
+ }
12122
+ Object.defineProperty(CustomDomainModel.prototype, "isVerified", {
12123
+ get: function () {
12124
+ return this.verification_status === ECustomDomainVerificationStatus.verified;
12125
+ },
12126
+ enumerable: false,
12127
+ configurable: true
12128
+ });
12129
+ CustomDomainModel.prototype.toJson = function () {
12130
+ return modelToJson(this);
12131
+ };
12132
+ CustomDomainModel.prototype.set = function (property, value) {
12133
+ modelSet(this, property, value);
12134
+ };
12135
+ CustomDomainModel.prototype.verify = function () {
12136
+ return __awaiter(this, void 0, void 0, function () {
12137
+ var _this = this;
12138
+ return __generator(this, function (_a) {
12139
+ return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
12140
+ trackEvent(EEvents.CUSTOM_DOMAIN_VERIFIED, { id: _this.id, domain: _this.domain, verification: res.data.verification });
12141
+ return {
12142
+ domain: new CustomDomainModel(res.data),
12143
+ verification: res.data.verification,
12144
+ };
12145
+ })];
12146
+ });
12147
+ });
12148
+ };
12149
+ CustomDomainModel.prototype.delete = function () {
12150
+ return __awaiter(this, void 0, void 0, function () {
12151
+ var _this = this;
12152
+ return __generator(this, function (_a) {
12153
+ return [2 /*return*/, deleteCustomDomain({ id: this.id })
12154
+ .then(function (res) {
12155
+ trackEvent(EEvents.CUSTOM_DOMAIN_DELETED, { id: _this.id, domain: _this.domain });
12156
+ return res;
12157
+ })];
12158
+ });
12159
+ });
12160
+ };
12161
+ return CustomDomainModel;
12162
+ }());
12163
+
12032
12164
  var EEmailAttachementTypes;
12033
12165
  (function (EEmailAttachementTypes) {
12034
12166
  EEmailAttachementTypes["csv"] = "csv";
@@ -12459,6 +12591,7 @@ var EPageBranding;
12459
12591
 
12460
12592
  var ListPageModel = /** @class */ (function () {
12461
12593
  function ListPageModel(params) {
12594
+ var _a, _b;
12462
12595
  this.id = params.id;
12463
12596
  this.name = params.name;
12464
12597
  this.list_id = params.list_id;
@@ -12478,6 +12611,8 @@ var ListPageModel = /** @class */ (function () {
12478
12611
  this.form_id = params.form_id;
12479
12612
  this.thumbnail_url = params.thumbnail_url;
12480
12613
  this.published_url = params.published_url;
12614
+ this.custom_domain_id = (_a = params.custom_domain_id) !== null && _a !== void 0 ? _a : null;
12615
+ this.custom_domain = (_b = params.custom_domain) !== null && _b !== void 0 ? _b : null;
12481
12616
  }
12482
12617
  ListPageModel.prototype.toJson = function () {
12483
12618
  return modelToJson(this);
@@ -12503,7 +12638,6 @@ var ListPageModel = /** @class */ (function () {
12503
12638
  return __generator(this, function (_a) {
12504
12639
  dataToUpdate = page || this.toJson();
12505
12640
  return [2 /*return*/, updatePage({ id: this.id, page: dataToUpdate }).then(function (data) {
12506
- debugger;
12507
12641
  trackEvent(EEvents.PAGE_UPDATED, {
12508
12642
  id: _this.id,
12509
12643
  name: dataToUpdate === null || dataToUpdate === void 0 ? void 0 : dataToUpdate.name,
@@ -19219,6 +19353,41 @@ var ContactsFactory = /** @class */ (function () {
19219
19353
  return ContactsFactory;
19220
19354
  }());
19221
19355
 
19356
+ var CustomDomainsFactory = /** @class */ (function () {
19357
+ function CustomDomainsFactory() {
19358
+ }
19359
+ CustomDomainsFactory.list = function (_a) {
19360
+ return __awaiter(this, void 0, void 0, function () {
19361
+ var params = __rest(_a, []);
19362
+ return __generator(this, function (_b) {
19363
+ return [2 /*return*/, listCustomDomains(params).then(function (data) { return (__assign(__assign({}, data), { data: data.data.map(function (row) { return new CustomDomainModel(row); }) })); })];
19364
+ });
19365
+ });
19366
+ };
19367
+ CustomDomainsFactory.get = function (_a) {
19368
+ return __awaiter(this, arguments, void 0, function (_b) {
19369
+ var id = _b.id;
19370
+ return __generator(this, function (_c) {
19371
+ return [2 /*return*/, getCustomDomain({ id: id }).then(function (data) {
19372
+ return new CustomDomainModel(data.data);
19373
+ })];
19374
+ });
19375
+ });
19376
+ };
19377
+ CustomDomainsFactory.create = function (_a) {
19378
+ return __awaiter(this, arguments, void 0, function (_b) {
19379
+ var domain = _b.domain;
19380
+ return __generator(this, function (_c) {
19381
+ return [2 /*return*/, createCustomDomain({ domain: domain }).then(function (data) {
19382
+ trackEvent(EEvents.CUSTOM_DOMAIN_CREATED, __assign({}, data.data));
19383
+ return new CustomDomainModel(data.data);
19384
+ })];
19385
+ });
19386
+ });
19387
+ };
19388
+ return CustomDomainsFactory;
19389
+ }());
19390
+
19222
19391
  var EEmailLogType;
19223
19392
  (function (EEmailLogType) {
19224
19393
  EEmailLogType["submitted"] = "submitted";
@@ -19865,4 +20034,4 @@ var UsersFactory = /** @class */ (function () {
19865
20034
  return UsersFactory;
19866
20035
  }());
19867
20036
 
19868
- 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, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, 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, createForm, createPage, createPopup, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteAccount, deleteAnyAutomation, deleteAutomation, deleteCampaign, deleteCampaignsReportsExport, deleteContact, 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, 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, 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, wait, whiteLabelBrand, whoAmi };
20037
+ 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 };
@@ -0,0 +1,22 @@
1
+ import { TDeleteApiResource } from "../../types";
2
+ import { ECustomDomainVerificationStatus, TCustomDomainModel, TCustomDomainVerificationPayload } from "./types";
3
+ export declare class CustomDomainModel {
4
+ id: string;
5
+ account_id: number;
6
+ domain: string;
7
+ verification_status: ECustomDomainVerificationStatus;
8
+ verified_on: number | null;
9
+ created_on: number;
10
+ updated_on: number;
11
+ dns_instructions: TCustomDomainModel["dns_instructions"];
12
+ constructor(params: TCustomDomainModel);
13
+ get isVerified(): boolean;
14
+ toJson(): TCustomDomainModel;
15
+ set<T extends keyof this>(property: T, value: this[T]): void;
16
+ verify(): Promise<{
17
+ domain: CustomDomainModel;
18
+ verification: TCustomDomainVerificationPayload;
19
+ }>;
20
+ delete(): Promise<TDeleteApiResource>;
21
+ }
22
+ export * from "./types";
@@ -0,0 +1,34 @@
1
+ export declare enum ECustomDomainVerificationStatus {
2
+ pending = "pending",
3
+ verified = "verified",
4
+ failed = "failed"
5
+ }
6
+ export type TCustomDomainDnsCname = {
7
+ hostname: string;
8
+ point_to: string;
9
+ help: string;
10
+ };
11
+ export type TCustomDomainDnsInstructions = {
12
+ cname: TCustomDomainDnsCname;
13
+ extra_dns?: Array<{
14
+ hostname: string;
15
+ help: string;
16
+ }>;
17
+ };
18
+ export type TCustomDomainModel = {
19
+ id: string;
20
+ account_id: number;
21
+ domain: string;
22
+ verification_status: ECustomDomainVerificationStatus;
23
+ verified_on: number | null;
24
+ created_on: number;
25
+ updated_on: number;
26
+ dns_instructions: TCustomDomainDnsInstructions;
27
+ };
28
+ export type TCustomDomainVerificationPayload = {
29
+ success: boolean;
30
+ message: string;
31
+ };
32
+ export type TCustomDomainVerifyResult = TCustomDomainModel & {
33
+ verification: TCustomDomainVerificationPayload;
34
+ };
@@ -2,6 +2,7 @@ export * from "./account";
2
2
  export * from "./automation";
3
3
  export * from "./campaign";
4
4
  export * from "./contact";
5
+ export * from "./customDomains";
5
6
  export * from "./customer";
6
7
  export * from "./emailAPI";
7
8
  export * from "./form";
@@ -20,6 +20,8 @@ export declare class ListPageModel {
20
20
  form_id: string | null;
21
21
  thumbnail_url: string;
22
22
  published_url: string | null;
23
+ custom_domain_id: string | null;
24
+ custom_domain: string | null;
23
25
  constructor(params: TPageModel);
24
26
  toJson(): any;
25
27
  set<T extends keyof this>(property: T, value: this[T]): void;
@@ -19,6 +19,8 @@ export type TPageModel = {
19
19
  form_id: string | null;
20
20
  thumbnail_url: string;
21
21
  published_url: string | null;
22
+ custom_domain_id?: string | null;
23
+ custom_domain?: string | null;
22
24
  };
23
25
  export type TPageUser = {
24
26
  id: string;
@@ -0,0 +1,18 @@
1
+ import { TCustomDomainModel, TCustomDomainVerifyResult } from "../../models/customDomains/types";
2
+ import { TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
3
+ import { TCreateApiResource, TDeleteApiResource, TUpdateApiResource } from "../../types/generic";
4
+ export declare function listCustomDomains({ ...options }: TGenericListParams & {
5
+ verificationStatus?: string;
6
+ }): Promise<TGenericListReturn<TCustomDomainModel>>;
7
+ export declare function createCustomDomain({ domain, }: {
8
+ domain: string;
9
+ }): Promise<TCreateApiResource<TCustomDomainModel>>;
10
+ export declare function getCustomDomain({ id }: {
11
+ id: string;
12
+ }): Promise<TGenericReturn<TCustomDomainModel>>;
13
+ export declare function deleteCustomDomain({ id }: {
14
+ id: string;
15
+ }): Promise<TDeleteApiResource>;
16
+ export declare function verifyCustomDomain({ id, }: {
17
+ id: string;
18
+ }): Promise<TUpdateApiResource<TCustomDomainVerifyResult>>;
@@ -5,6 +5,7 @@ export * from "./billing";
5
5
  export * from "./brands";
6
6
  export * from "./campaigns";
7
7
  export * from "./contacts";
8
+ export * from "./customDomains";
8
9
  export * from "./domains";
9
10
  export * from "./emailAPI";
10
11
  export * from "./forms";
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.91",
3
+ "version": "2.2.93",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",