@cakemail-org/ui-components-v2 2.2.112 → 2.2.113
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/factories/index.d.ts +1 -0
- package/dist/cjs/factories/topDomains/index.d.ts +11 -0
- package/dist/cjs/index.js +188 -8
- package/dist/cjs/models/index.d.ts +1 -0
- package/dist/cjs/models/topDomains/index.d.ts +21 -0
- package/dist/cjs/models/topDomains/types.d.ts +28 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/services/topDomains/index.d.ts +16 -0
- package/dist/cjs/utils/posthog.d.ts +3 -0
- package/dist/esm/factories/index.d.ts +1 -0
- package/dist/esm/factories/topDomains/index.d.ts +11 -0
- package/dist/esm/index.js +182 -9
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/topDomains/index.d.ts +21 -0
- package/dist/esm/models/topDomains/types.d.ts +28 -0
- package/dist/esm/services/index.d.ts +1 -0
- package/dist/esm/services/topDomains/index.d.ts +16 -0
- package/dist/esm/utils/posthog.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TopDomainModel } from "../../models/topDomains";
|
|
2
|
+
import { TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
|
+
export declare class TopDomainsFactory {
|
|
4
|
+
static list({ ...params }: TGenericListParams): Promise<TGenericListReturn<TopDomainModel>>;
|
|
5
|
+
static get({ id }: {
|
|
6
|
+
id: string;
|
|
7
|
+
}): Promise<TopDomainModel>;
|
|
8
|
+
static create({ domain }: {
|
|
9
|
+
domain: string;
|
|
10
|
+
}): Promise<TopDomainModel>;
|
|
11
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3897,6 +3897,9 @@ exports.EEvents = void 0;
|
|
|
3897
3897
|
EEvents["CUSTOM_DOMAIN_CREATED"] = "CustomDomain.Created";
|
|
3898
3898
|
EEvents["CUSTOM_DOMAIN_VERIFIED"] = "CustomDomain.Verified";
|
|
3899
3899
|
EEvents["CUSTOM_DOMAIN_DELETED"] = "CustomDomain.Deleted";
|
|
3900
|
+
EEvents["TOP_DOMAIN_CREATED"] = "TopDomain.Created";
|
|
3901
|
+
EEvents["TOP_DOMAIN_VALIDATED"] = "TopDomain.Validated";
|
|
3902
|
+
EEvents["TOP_DOMAIN_DELETED"] = "TopDomain.Deleted";
|
|
3900
3903
|
EEvents["PAT_CREATED"] = "PAT.Created";
|
|
3901
3904
|
EEvents["PAT_UPDATED"] = "PAT.Updated";
|
|
3902
3905
|
EEvents["PAT_REVOKED"] = "PAT.Revoked";
|
|
@@ -11129,13 +11132,13 @@ function untagContact(_a) {
|
|
|
11129
11132
|
});
|
|
11130
11133
|
}
|
|
11131
11134
|
|
|
11132
|
-
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11135
|
+
var baseUrl$1 = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11133
11136
|
function listCustomDomains(_a) {
|
|
11134
11137
|
return __awaiter(this, void 0, void 0, function () {
|
|
11135
11138
|
var options = __rest(_a, []);
|
|
11136
11139
|
return __generator(this, function (_b) {
|
|
11137
11140
|
return [2 /*return*/, callApi({
|
|
11138
|
-
url: baseUrl(),
|
|
11141
|
+
url: baseUrl$1(),
|
|
11139
11142
|
query: camelCase(options),
|
|
11140
11143
|
fetchOptions: {
|
|
11141
11144
|
method: exports.EMethods.get,
|
|
@@ -11149,7 +11152,7 @@ function createCustomDomain(_a) {
|
|
|
11149
11152
|
var domain = _b.domain;
|
|
11150
11153
|
return __generator(this, function (_c) {
|
|
11151
11154
|
return [2 /*return*/, callApi({
|
|
11152
|
-
url: baseUrl(),
|
|
11155
|
+
url: baseUrl$1(),
|
|
11153
11156
|
fetchOptions: {
|
|
11154
11157
|
method: exports.EMethods.post,
|
|
11155
11158
|
body: { domain: domain },
|
|
@@ -11163,7 +11166,7 @@ function getCustomDomain(_a) {
|
|
|
11163
11166
|
var id = _b.id;
|
|
11164
11167
|
return __generator(this, function (_c) {
|
|
11165
11168
|
return [2 /*return*/, callApi({
|
|
11166
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11169
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11167
11170
|
fetchOptions: {
|
|
11168
11171
|
method: exports.EMethods.get,
|
|
11169
11172
|
},
|
|
@@ -11176,7 +11179,7 @@ function deleteCustomDomain(_a) {
|
|
|
11176
11179
|
var id = _b.id;
|
|
11177
11180
|
return __generator(this, function (_c) {
|
|
11178
11181
|
return [2 /*return*/, callApi({
|
|
11179
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11182
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11180
11183
|
fetchOptions: {
|
|
11181
11184
|
method: exports.EMethods.delete,
|
|
11182
11185
|
},
|
|
@@ -11189,7 +11192,76 @@ function verifyCustomDomain(_a) {
|
|
|
11189
11192
|
var id = _b.id;
|
|
11190
11193
|
return __generator(this, function (_c) {
|
|
11191
11194
|
return [2 /*return*/, callApi({
|
|
11192
|
-
url: "".concat(baseUrl(), "/").concat(id, "/verify"),
|
|
11195
|
+
url: "".concat(baseUrl$1(), "/").concat(id, "/verify"),
|
|
11196
|
+
fetchOptions: {
|
|
11197
|
+
method: exports.EMethods.post,
|
|
11198
|
+
},
|
|
11199
|
+
})];
|
|
11200
|
+
});
|
|
11201
|
+
});
|
|
11202
|
+
}
|
|
11203
|
+
|
|
11204
|
+
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/topDomains"; };
|
|
11205
|
+
function listTopDomains(_a) {
|
|
11206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11207
|
+
var options = __rest(_a, []);
|
|
11208
|
+
return __generator(this, function (_b) {
|
|
11209
|
+
return [2 /*return*/, callApi({
|
|
11210
|
+
url: baseUrl(),
|
|
11211
|
+
query: camelCase(options),
|
|
11212
|
+
fetchOptions: {
|
|
11213
|
+
method: exports.EMethods.get,
|
|
11214
|
+
},
|
|
11215
|
+
})];
|
|
11216
|
+
});
|
|
11217
|
+
});
|
|
11218
|
+
}
|
|
11219
|
+
function createTopDomain(_a) {
|
|
11220
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11221
|
+
var domain = _b.domain;
|
|
11222
|
+
return __generator(this, function (_c) {
|
|
11223
|
+
return [2 /*return*/, callApi({
|
|
11224
|
+
url: baseUrl(),
|
|
11225
|
+
fetchOptions: {
|
|
11226
|
+
method: exports.EMethods.post,
|
|
11227
|
+
body: { domain: domain },
|
|
11228
|
+
},
|
|
11229
|
+
})];
|
|
11230
|
+
});
|
|
11231
|
+
});
|
|
11232
|
+
}
|
|
11233
|
+
function getTopDomain(_a) {
|
|
11234
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11235
|
+
var id = _b.id;
|
|
11236
|
+
return __generator(this, function (_c) {
|
|
11237
|
+
return [2 /*return*/, callApi({
|
|
11238
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11239
|
+
fetchOptions: {
|
|
11240
|
+
method: exports.EMethods.get,
|
|
11241
|
+
},
|
|
11242
|
+
})];
|
|
11243
|
+
});
|
|
11244
|
+
});
|
|
11245
|
+
}
|
|
11246
|
+
function deleteTopDomain(_a) {
|
|
11247
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11248
|
+
var id = _b.id;
|
|
11249
|
+
return __generator(this, function (_c) {
|
|
11250
|
+
return [2 /*return*/, callApi({
|
|
11251
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11252
|
+
fetchOptions: {
|
|
11253
|
+
method: exports.EMethods.delete,
|
|
11254
|
+
},
|
|
11255
|
+
})];
|
|
11256
|
+
});
|
|
11257
|
+
});
|
|
11258
|
+
}
|
|
11259
|
+
function validateTopDomain(_a) {
|
|
11260
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11261
|
+
var id = _b.id;
|
|
11262
|
+
return __generator(this, function (_c) {
|
|
11263
|
+
return [2 /*return*/, callApi({
|
|
11264
|
+
url: "".concat(baseUrl(), "/").concat(id, "/validate"),
|
|
11193
11265
|
fetchOptions: {
|
|
11194
11266
|
method: exports.EMethods.post,
|
|
11195
11267
|
},
|
|
@@ -12476,6 +12548,73 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12476
12548
|
return CustomDomainModel;
|
|
12477
12549
|
}());
|
|
12478
12550
|
|
|
12551
|
+
exports.ETopDomainStatus = void 0;
|
|
12552
|
+
(function (ETopDomainStatus) {
|
|
12553
|
+
ETopDomainStatus["pending"] = "pending";
|
|
12554
|
+
ETopDomainStatus["verified"] = "verified";
|
|
12555
|
+
ETopDomainStatus["failed"] = "failed";
|
|
12556
|
+
})(exports.ETopDomainStatus || (exports.ETopDomainStatus = {}));
|
|
12557
|
+
|
|
12558
|
+
var TopDomainModel = /** @class */ (function () {
|
|
12559
|
+
function TopDomainModel(params) {
|
|
12560
|
+
var _a;
|
|
12561
|
+
this.id = params.id;
|
|
12562
|
+
this.account_id = params.account_id;
|
|
12563
|
+
this.domain = params.domain;
|
|
12564
|
+
this.status = (_a = params.status) !== null && _a !== void 0 ? _a : exports.ETopDomainStatus.pending;
|
|
12565
|
+
this.verified_on = params.verified_on;
|
|
12566
|
+
this.created_on = params.created_on;
|
|
12567
|
+
this.verification_instructions = params.verification_instructions;
|
|
12568
|
+
}
|
|
12569
|
+
Object.defineProperty(TopDomainModel.prototype, "isVerified", {
|
|
12570
|
+
get: function () {
|
|
12571
|
+
return this.status === exports.ETopDomainStatus.verified;
|
|
12572
|
+
},
|
|
12573
|
+
enumerable: false,
|
|
12574
|
+
configurable: true
|
|
12575
|
+
});
|
|
12576
|
+
TopDomainModel.prototype.toJson = function () {
|
|
12577
|
+
return modelToJson(this);
|
|
12578
|
+
};
|
|
12579
|
+
TopDomainModel.prototype.set = function (property, value) {
|
|
12580
|
+
modelSet(this, property, value);
|
|
12581
|
+
};
|
|
12582
|
+
TopDomainModel.prototype.validate = function () {
|
|
12583
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12584
|
+
var _this = this;
|
|
12585
|
+
return __generator(this, function (_a) {
|
|
12586
|
+
return [2 /*return*/, validateTopDomain({ id: this.id }).then(function (res) {
|
|
12587
|
+
trackEvent(exports.EEvents.TOP_DOMAIN_VALIDATED, {
|
|
12588
|
+
id: _this.id,
|
|
12589
|
+
domain: _this.domain,
|
|
12590
|
+
verification: res.data.verification,
|
|
12591
|
+
});
|
|
12592
|
+
return {
|
|
12593
|
+
topDomain: new TopDomainModel(res.data),
|
|
12594
|
+
verification: res.data.verification,
|
|
12595
|
+
};
|
|
12596
|
+
})];
|
|
12597
|
+
});
|
|
12598
|
+
});
|
|
12599
|
+
};
|
|
12600
|
+
TopDomainModel.prototype.delete = function () {
|
|
12601
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12602
|
+
var _this = this;
|
|
12603
|
+
return __generator(this, function (_a) {
|
|
12604
|
+
return [2 /*return*/, deleteTopDomain({ id: this.id })
|
|
12605
|
+
.then(function (res) {
|
|
12606
|
+
trackEvent(exports.EEvents.TOP_DOMAIN_DELETED, {
|
|
12607
|
+
id: _this.id,
|
|
12608
|
+
domain: _this.domain,
|
|
12609
|
+
});
|
|
12610
|
+
return res;
|
|
12611
|
+
})];
|
|
12612
|
+
});
|
|
12613
|
+
});
|
|
12614
|
+
};
|
|
12615
|
+
return TopDomainModel;
|
|
12616
|
+
}());
|
|
12617
|
+
|
|
12479
12618
|
exports.EEmailAttachementTypes = void 0;
|
|
12480
12619
|
(function (EEmailAttachementTypes) {
|
|
12481
12620
|
EEmailAttachementTypes["csv"] = "csv";
|
|
@@ -13571,12 +13710,11 @@ function GenericWrapper(_a) {
|
|
|
13571
13710
|
uiKitConfig.GATEWAY_PROXY = proxyUrl;
|
|
13572
13711
|
}
|
|
13573
13712
|
React.useEffect(function () {
|
|
13574
|
-
var _a, _b
|
|
13713
|
+
var _a, _b;
|
|
13575
13714
|
if ((account === null || account === void 0 ? void 0 : account.id) && !userBrand) {
|
|
13576
13715
|
//@ts-ignore
|
|
13577
13716
|
var locale = getBestLocalMatch((_a = user === null || user === void 0 ? void 0 : user.language) === null || _a === void 0 ? void 0 : _a.replace("_", "-"), (_b = partnerBrand === null || partnerBrand === void 0 ? void 0 : partnerBrand.client_config) === null || _b === void 0 ? void 0 : _b.languages);
|
|
13578
13717
|
if (LocizeInitializer) {
|
|
13579
|
-
(_c = LocizeInitializer.mergeTranslationResources) === null || _c === void 0 ? void 0 : _c.call(LocizeInitializer);
|
|
13580
13718
|
LocizeInitializer.changeLanguage(locale);
|
|
13581
13719
|
}
|
|
13582
13720
|
moment$1.locale(locale);
|
|
@@ -20096,6 +20234,41 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
20096
20234
|
return CustomDomainsFactory;
|
|
20097
20235
|
}());
|
|
20098
20236
|
|
|
20237
|
+
var TopDomainsFactory = /** @class */ (function () {
|
|
20238
|
+
function TopDomainsFactory() {
|
|
20239
|
+
}
|
|
20240
|
+
TopDomainsFactory.list = function (_a) {
|
|
20241
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20242
|
+
var params = __rest(_a, []);
|
|
20243
|
+
return __generator(this, function (_b) {
|
|
20244
|
+
return [2 /*return*/, listTopDomains(params).then(function (data) { return (__assign(__assign({}, data), { data: data.data.map(function (row) { return new TopDomainModel(row); }) })); })];
|
|
20245
|
+
});
|
|
20246
|
+
});
|
|
20247
|
+
};
|
|
20248
|
+
TopDomainsFactory.get = function (_a) {
|
|
20249
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20250
|
+
var id = _b.id;
|
|
20251
|
+
return __generator(this, function (_c) {
|
|
20252
|
+
return [2 /*return*/, getTopDomain({ id: id }).then(function (data) {
|
|
20253
|
+
return new TopDomainModel(data.data);
|
|
20254
|
+
})];
|
|
20255
|
+
});
|
|
20256
|
+
});
|
|
20257
|
+
};
|
|
20258
|
+
TopDomainsFactory.create = function (_a) {
|
|
20259
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20260
|
+
var domain = _b.domain;
|
|
20261
|
+
return __generator(this, function (_c) {
|
|
20262
|
+
return [2 /*return*/, createTopDomain({ domain: domain }).then(function (data) {
|
|
20263
|
+
trackEvent(exports.EEvents.TOP_DOMAIN_CREATED, __assign({}, data.data));
|
|
20264
|
+
return new TopDomainModel(data.data);
|
|
20265
|
+
})];
|
|
20266
|
+
});
|
|
20267
|
+
});
|
|
20268
|
+
};
|
|
20269
|
+
return TopDomainsFactory;
|
|
20270
|
+
}());
|
|
20271
|
+
|
|
20099
20272
|
exports.EEmailLogType = void 0;
|
|
20100
20273
|
(function (EEmailLogType) {
|
|
20101
20274
|
EEmailLogType["submitted"] = "submitted";
|
|
@@ -20988,6 +21161,8 @@ exports.TextField = TextField;
|
|
|
20988
21161
|
exports.TimePicker = TimePicker;
|
|
20989
21162
|
exports.TimeSelector = TimeSelector;
|
|
20990
21163
|
exports.Toggle = Toggle;
|
|
21164
|
+
exports.TopDomainModel = TopDomainModel;
|
|
21165
|
+
exports.TopDomainsFactory = TopDomainsFactory;
|
|
20991
21166
|
exports.TopMenu = TopMenu;
|
|
20992
21167
|
exports.Typography = Typography;
|
|
20993
21168
|
exports.UserModel = UserModel;
|
|
@@ -21025,6 +21200,7 @@ exports.createPopup = createPopup;
|
|
|
21025
21200
|
exports.createSender = createSender;
|
|
21026
21201
|
exports.createSuppressedEmailExport = createSuppressedEmailExport;
|
|
21027
21202
|
exports.createTemplate = createTemplate;
|
|
21203
|
+
exports.createTopDomain = createTopDomain;
|
|
21028
21204
|
exports.deepMergeObject = deepMergeObject;
|
|
21029
21205
|
exports.deleteAccount = deleteAccount;
|
|
21030
21206
|
exports.deleteAnyAutomation = deleteAnyAutomation;
|
|
@@ -21043,6 +21219,7 @@ exports.deleteStorageItem = deleteStorageItem;
|
|
|
21043
21219
|
exports.deleteSuppressedEmail = deleteSuppressedEmail;
|
|
21044
21220
|
exports.deleteTaskService = deleteTaskService;
|
|
21045
21221
|
exports.deleteTemplate = deleteTemplate;
|
|
21222
|
+
exports.deleteTopDomain = deleteTopDomain;
|
|
21046
21223
|
exports.deleteUser = deleteUser;
|
|
21047
21224
|
exports.deleteWorkflow = deleteWorkflow;
|
|
21048
21225
|
exports.descendingComparator = descendingComparator;
|
|
@@ -21128,6 +21305,7 @@ exports.getSuppressedEmailExport = getSuppressedEmailExport;
|
|
|
21128
21305
|
exports.getTColor = getTColor;
|
|
21129
21306
|
exports.getTaskService = getTaskService;
|
|
21130
21307
|
exports.getTemplate = getTemplate;
|
|
21308
|
+
exports.getTopDomain = getTopDomain;
|
|
21131
21309
|
exports.getUnixTime = getUnixTime;
|
|
21132
21310
|
exports.getUrlQueryParam = getUrlQueryParam;
|
|
21133
21311
|
exports.getUser = getUser;
|
|
@@ -21166,6 +21344,7 @@ exports.listSuppressedEmails = listSuppressedEmails;
|
|
|
21166
21344
|
exports.listSystemEmails = listSystemEmails;
|
|
21167
21345
|
exports.listTasksService = listTasksService;
|
|
21168
21346
|
exports.listTemplates = listTemplates;
|
|
21347
|
+
exports.listTopDomains = listTopDomains;
|
|
21169
21348
|
exports.listUsers = listUsers;
|
|
21170
21349
|
exports.listWorkflows = listWorkflows;
|
|
21171
21350
|
exports.logOutService = logOutService;
|
|
@@ -21239,6 +21418,7 @@ exports.updateWorkflow = updateWorkflow;
|
|
|
21239
21418
|
exports.validateColor = validateColor;
|
|
21240
21419
|
exports.validateEmail = validateEmail;
|
|
21241
21420
|
exports.validateGenericInput = validateGenericInput;
|
|
21421
|
+
exports.validateTopDomain = validateTopDomain;
|
|
21242
21422
|
exports.validateUrl = validateUrl;
|
|
21243
21423
|
exports.verifyCustomDomain = verifyCustomDomain;
|
|
21244
21424
|
exports.verifyTrackingCnamesService = verifyTrackingCnamesService;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TDeleteApiResource } from "../../types";
|
|
2
|
+
import { ETopDomainStatus, TTopDomainModel, TTopDomainVerificationPayload } from "./types";
|
|
3
|
+
export declare class TopDomainModel {
|
|
4
|
+
id: string;
|
|
5
|
+
account_id: number;
|
|
6
|
+
domain: string;
|
|
7
|
+
status: ETopDomainStatus;
|
|
8
|
+
verified_on: number | null;
|
|
9
|
+
created_on: number;
|
|
10
|
+
verification_instructions: TTopDomainModel["verification_instructions"];
|
|
11
|
+
constructor(params: TTopDomainModel);
|
|
12
|
+
get isVerified(): boolean;
|
|
13
|
+
toJson(): TTopDomainModel;
|
|
14
|
+
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
15
|
+
validate(): Promise<{
|
|
16
|
+
topDomain: TopDomainModel;
|
|
17
|
+
verification: TTopDomainVerificationPayload;
|
|
18
|
+
}>;
|
|
19
|
+
delete(): Promise<TDeleteApiResource>;
|
|
20
|
+
}
|
|
21
|
+
export * from "./types";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum ETopDomainStatus {
|
|
2
|
+
pending = "pending",
|
|
3
|
+
verified = "verified",
|
|
4
|
+
failed = "failed"
|
|
5
|
+
}
|
|
6
|
+
export type TTopDomainVerificationInstructions = {
|
|
7
|
+
record_type: "MX";
|
|
8
|
+
host: string;
|
|
9
|
+
priority: number;
|
|
10
|
+
value: string;
|
|
11
|
+
instructions: string;
|
|
12
|
+
};
|
|
13
|
+
export type TTopDomainModel = {
|
|
14
|
+
id: string;
|
|
15
|
+
account_id: number;
|
|
16
|
+
domain: string;
|
|
17
|
+
status: ETopDomainStatus;
|
|
18
|
+
verified_on: number | null;
|
|
19
|
+
created_on: number;
|
|
20
|
+
verification_instructions: TTopDomainVerificationInstructions;
|
|
21
|
+
};
|
|
22
|
+
export type TTopDomainVerificationPayload = {
|
|
23
|
+
success: boolean;
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
export type TTopDomainValidateResult = TTopDomainModel & {
|
|
27
|
+
verification: TTopDomainVerificationPayload;
|
|
28
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TTopDomainModel, TTopDomainValidateResult } from "../../models/topDomains/types";
|
|
2
|
+
import { TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
3
|
+
import { TCreateApiResource, TDeleteApiResource, TUpdateApiResource } from "../../types/generic";
|
|
4
|
+
export declare function listTopDomains({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTopDomainModel>>;
|
|
5
|
+
export declare function createTopDomain({ domain, }: {
|
|
6
|
+
domain: string;
|
|
7
|
+
}): Promise<TCreateApiResource<TTopDomainModel>>;
|
|
8
|
+
export declare function getTopDomain({ id, }: {
|
|
9
|
+
id: string;
|
|
10
|
+
}): Promise<TGenericReturn<TTopDomainModel>>;
|
|
11
|
+
export declare function deleteTopDomain({ id, }: {
|
|
12
|
+
id: string;
|
|
13
|
+
}): Promise<TDeleteApiResource>;
|
|
14
|
+
export declare function validateTopDomain({ id, }: {
|
|
15
|
+
id: string;
|
|
16
|
+
}): Promise<TUpdateApiResource<TTopDomainValidateResult>>;
|
|
@@ -165,6 +165,9 @@ export declare enum EEvents {
|
|
|
165
165
|
CUSTOM_DOMAIN_CREATED = "CustomDomain.Created",
|
|
166
166
|
CUSTOM_DOMAIN_VERIFIED = "CustomDomain.Verified",
|
|
167
167
|
CUSTOM_DOMAIN_DELETED = "CustomDomain.Deleted",
|
|
168
|
+
TOP_DOMAIN_CREATED = "TopDomain.Created",
|
|
169
|
+
TOP_DOMAIN_VALIDATED = "TopDomain.Validated",
|
|
170
|
+
TOP_DOMAIN_DELETED = "TopDomain.Deleted",
|
|
168
171
|
PAT_CREATED = "PAT.Created",
|
|
169
172
|
PAT_UPDATED = "PAT.Updated",
|
|
170
173
|
PAT_REVOKED = "PAT.Revoked",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TopDomainModel } from "../../models/topDomains";
|
|
2
|
+
import { TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
|
+
export declare class TopDomainsFactory {
|
|
4
|
+
static list({ ...params }: TGenericListParams): Promise<TGenericListReturn<TopDomainModel>>;
|
|
5
|
+
static get({ id }: {
|
|
6
|
+
id: string;
|
|
7
|
+
}): Promise<TopDomainModel>;
|
|
8
|
+
static create({ domain }: {
|
|
9
|
+
domain: string;
|
|
10
|
+
}): Promise<TopDomainModel>;
|
|
11
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -3877,6 +3877,9 @@ var EEvents;
|
|
|
3877
3877
|
EEvents["CUSTOM_DOMAIN_CREATED"] = "CustomDomain.Created";
|
|
3878
3878
|
EEvents["CUSTOM_DOMAIN_VERIFIED"] = "CustomDomain.Verified";
|
|
3879
3879
|
EEvents["CUSTOM_DOMAIN_DELETED"] = "CustomDomain.Deleted";
|
|
3880
|
+
EEvents["TOP_DOMAIN_CREATED"] = "TopDomain.Created";
|
|
3881
|
+
EEvents["TOP_DOMAIN_VALIDATED"] = "TopDomain.Validated";
|
|
3882
|
+
EEvents["TOP_DOMAIN_DELETED"] = "TopDomain.Deleted";
|
|
3880
3883
|
EEvents["PAT_CREATED"] = "PAT.Created";
|
|
3881
3884
|
EEvents["PAT_UPDATED"] = "PAT.Updated";
|
|
3882
3885
|
EEvents["PAT_REVOKED"] = "PAT.Revoked";
|
|
@@ -11109,13 +11112,13 @@ function untagContact(_a) {
|
|
|
11109
11112
|
});
|
|
11110
11113
|
}
|
|
11111
11114
|
|
|
11112
|
-
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11115
|
+
var baseUrl$1 = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11113
11116
|
function listCustomDomains(_a) {
|
|
11114
11117
|
return __awaiter(this, void 0, void 0, function () {
|
|
11115
11118
|
var options = __rest(_a, []);
|
|
11116
11119
|
return __generator(this, function (_b) {
|
|
11117
11120
|
return [2 /*return*/, callApi({
|
|
11118
|
-
url: baseUrl(),
|
|
11121
|
+
url: baseUrl$1(),
|
|
11119
11122
|
query: camelCase(options),
|
|
11120
11123
|
fetchOptions: {
|
|
11121
11124
|
method: EMethods.get,
|
|
@@ -11129,7 +11132,7 @@ function createCustomDomain(_a) {
|
|
|
11129
11132
|
var domain = _b.domain;
|
|
11130
11133
|
return __generator(this, function (_c) {
|
|
11131
11134
|
return [2 /*return*/, callApi({
|
|
11132
|
-
url: baseUrl(),
|
|
11135
|
+
url: baseUrl$1(),
|
|
11133
11136
|
fetchOptions: {
|
|
11134
11137
|
method: EMethods.post,
|
|
11135
11138
|
body: { domain: domain },
|
|
@@ -11143,7 +11146,7 @@ function getCustomDomain(_a) {
|
|
|
11143
11146
|
var id = _b.id;
|
|
11144
11147
|
return __generator(this, function (_c) {
|
|
11145
11148
|
return [2 /*return*/, callApi({
|
|
11146
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11149
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11147
11150
|
fetchOptions: {
|
|
11148
11151
|
method: EMethods.get,
|
|
11149
11152
|
},
|
|
@@ -11156,7 +11159,7 @@ function deleteCustomDomain(_a) {
|
|
|
11156
11159
|
var id = _b.id;
|
|
11157
11160
|
return __generator(this, function (_c) {
|
|
11158
11161
|
return [2 /*return*/, callApi({
|
|
11159
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11162
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11160
11163
|
fetchOptions: {
|
|
11161
11164
|
method: EMethods.delete,
|
|
11162
11165
|
},
|
|
@@ -11169,7 +11172,76 @@ function verifyCustomDomain(_a) {
|
|
|
11169
11172
|
var id = _b.id;
|
|
11170
11173
|
return __generator(this, function (_c) {
|
|
11171
11174
|
return [2 /*return*/, callApi({
|
|
11172
|
-
url: "".concat(baseUrl(), "/").concat(id, "/verify"),
|
|
11175
|
+
url: "".concat(baseUrl$1(), "/").concat(id, "/verify"),
|
|
11176
|
+
fetchOptions: {
|
|
11177
|
+
method: EMethods.post,
|
|
11178
|
+
},
|
|
11179
|
+
})];
|
|
11180
|
+
});
|
|
11181
|
+
});
|
|
11182
|
+
}
|
|
11183
|
+
|
|
11184
|
+
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/topDomains"; };
|
|
11185
|
+
function listTopDomains(_a) {
|
|
11186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11187
|
+
var options = __rest(_a, []);
|
|
11188
|
+
return __generator(this, function (_b) {
|
|
11189
|
+
return [2 /*return*/, callApi({
|
|
11190
|
+
url: baseUrl(),
|
|
11191
|
+
query: camelCase(options),
|
|
11192
|
+
fetchOptions: {
|
|
11193
|
+
method: EMethods.get,
|
|
11194
|
+
},
|
|
11195
|
+
})];
|
|
11196
|
+
});
|
|
11197
|
+
});
|
|
11198
|
+
}
|
|
11199
|
+
function createTopDomain(_a) {
|
|
11200
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11201
|
+
var domain = _b.domain;
|
|
11202
|
+
return __generator(this, function (_c) {
|
|
11203
|
+
return [2 /*return*/, callApi({
|
|
11204
|
+
url: baseUrl(),
|
|
11205
|
+
fetchOptions: {
|
|
11206
|
+
method: EMethods.post,
|
|
11207
|
+
body: { domain: domain },
|
|
11208
|
+
},
|
|
11209
|
+
})];
|
|
11210
|
+
});
|
|
11211
|
+
});
|
|
11212
|
+
}
|
|
11213
|
+
function getTopDomain(_a) {
|
|
11214
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11215
|
+
var id = _b.id;
|
|
11216
|
+
return __generator(this, function (_c) {
|
|
11217
|
+
return [2 /*return*/, callApi({
|
|
11218
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11219
|
+
fetchOptions: {
|
|
11220
|
+
method: EMethods.get,
|
|
11221
|
+
},
|
|
11222
|
+
})];
|
|
11223
|
+
});
|
|
11224
|
+
});
|
|
11225
|
+
}
|
|
11226
|
+
function deleteTopDomain(_a) {
|
|
11227
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11228
|
+
var id = _b.id;
|
|
11229
|
+
return __generator(this, function (_c) {
|
|
11230
|
+
return [2 /*return*/, callApi({
|
|
11231
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11232
|
+
fetchOptions: {
|
|
11233
|
+
method: EMethods.delete,
|
|
11234
|
+
},
|
|
11235
|
+
})];
|
|
11236
|
+
});
|
|
11237
|
+
});
|
|
11238
|
+
}
|
|
11239
|
+
function validateTopDomain(_a) {
|
|
11240
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11241
|
+
var id = _b.id;
|
|
11242
|
+
return __generator(this, function (_c) {
|
|
11243
|
+
return [2 /*return*/, callApi({
|
|
11244
|
+
url: "".concat(baseUrl(), "/").concat(id, "/validate"),
|
|
11173
11245
|
fetchOptions: {
|
|
11174
11246
|
method: EMethods.post,
|
|
11175
11247
|
},
|
|
@@ -12456,6 +12528,73 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12456
12528
|
return CustomDomainModel;
|
|
12457
12529
|
}());
|
|
12458
12530
|
|
|
12531
|
+
var ETopDomainStatus;
|
|
12532
|
+
(function (ETopDomainStatus) {
|
|
12533
|
+
ETopDomainStatus["pending"] = "pending";
|
|
12534
|
+
ETopDomainStatus["verified"] = "verified";
|
|
12535
|
+
ETopDomainStatus["failed"] = "failed";
|
|
12536
|
+
})(ETopDomainStatus || (ETopDomainStatus = {}));
|
|
12537
|
+
|
|
12538
|
+
var TopDomainModel = /** @class */ (function () {
|
|
12539
|
+
function TopDomainModel(params) {
|
|
12540
|
+
var _a;
|
|
12541
|
+
this.id = params.id;
|
|
12542
|
+
this.account_id = params.account_id;
|
|
12543
|
+
this.domain = params.domain;
|
|
12544
|
+
this.status = (_a = params.status) !== null && _a !== void 0 ? _a : ETopDomainStatus.pending;
|
|
12545
|
+
this.verified_on = params.verified_on;
|
|
12546
|
+
this.created_on = params.created_on;
|
|
12547
|
+
this.verification_instructions = params.verification_instructions;
|
|
12548
|
+
}
|
|
12549
|
+
Object.defineProperty(TopDomainModel.prototype, "isVerified", {
|
|
12550
|
+
get: function () {
|
|
12551
|
+
return this.status === ETopDomainStatus.verified;
|
|
12552
|
+
},
|
|
12553
|
+
enumerable: false,
|
|
12554
|
+
configurable: true
|
|
12555
|
+
});
|
|
12556
|
+
TopDomainModel.prototype.toJson = function () {
|
|
12557
|
+
return modelToJson(this);
|
|
12558
|
+
};
|
|
12559
|
+
TopDomainModel.prototype.set = function (property, value) {
|
|
12560
|
+
modelSet(this, property, value);
|
|
12561
|
+
};
|
|
12562
|
+
TopDomainModel.prototype.validate = function () {
|
|
12563
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12564
|
+
var _this = this;
|
|
12565
|
+
return __generator(this, function (_a) {
|
|
12566
|
+
return [2 /*return*/, validateTopDomain({ id: this.id }).then(function (res) {
|
|
12567
|
+
trackEvent(EEvents.TOP_DOMAIN_VALIDATED, {
|
|
12568
|
+
id: _this.id,
|
|
12569
|
+
domain: _this.domain,
|
|
12570
|
+
verification: res.data.verification,
|
|
12571
|
+
});
|
|
12572
|
+
return {
|
|
12573
|
+
topDomain: new TopDomainModel(res.data),
|
|
12574
|
+
verification: res.data.verification,
|
|
12575
|
+
};
|
|
12576
|
+
})];
|
|
12577
|
+
});
|
|
12578
|
+
});
|
|
12579
|
+
};
|
|
12580
|
+
TopDomainModel.prototype.delete = function () {
|
|
12581
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12582
|
+
var _this = this;
|
|
12583
|
+
return __generator(this, function (_a) {
|
|
12584
|
+
return [2 /*return*/, deleteTopDomain({ id: this.id })
|
|
12585
|
+
.then(function (res) {
|
|
12586
|
+
trackEvent(EEvents.TOP_DOMAIN_DELETED, {
|
|
12587
|
+
id: _this.id,
|
|
12588
|
+
domain: _this.domain,
|
|
12589
|
+
});
|
|
12590
|
+
return res;
|
|
12591
|
+
})];
|
|
12592
|
+
});
|
|
12593
|
+
});
|
|
12594
|
+
};
|
|
12595
|
+
return TopDomainModel;
|
|
12596
|
+
}());
|
|
12597
|
+
|
|
12459
12598
|
var EEmailAttachementTypes;
|
|
12460
12599
|
(function (EEmailAttachementTypes) {
|
|
12461
12600
|
EEmailAttachementTypes["csv"] = "csv";
|
|
@@ -13551,12 +13690,11 @@ function GenericWrapper(_a) {
|
|
|
13551
13690
|
uiKitConfig.GATEWAY_PROXY = proxyUrl;
|
|
13552
13691
|
}
|
|
13553
13692
|
useEffect(function () {
|
|
13554
|
-
var _a, _b
|
|
13693
|
+
var _a, _b;
|
|
13555
13694
|
if ((account === null || account === void 0 ? void 0 : account.id) && !userBrand) {
|
|
13556
13695
|
//@ts-ignore
|
|
13557
13696
|
var locale = getBestLocalMatch((_a = user === null || user === void 0 ? void 0 : user.language) === null || _a === void 0 ? void 0 : _a.replace("_", "-"), (_b = partnerBrand === null || partnerBrand === void 0 ? void 0 : partnerBrand.client_config) === null || _b === void 0 ? void 0 : _b.languages);
|
|
13558
13697
|
if (LocizeInitializer) {
|
|
13559
|
-
(_c = LocizeInitializer.mergeTranslationResources) === null || _c === void 0 ? void 0 : _c.call(LocizeInitializer);
|
|
13560
13698
|
LocizeInitializer.changeLanguage(locale);
|
|
13561
13699
|
}
|
|
13562
13700
|
moment$1.locale(locale);
|
|
@@ -20076,6 +20214,41 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
20076
20214
|
return CustomDomainsFactory;
|
|
20077
20215
|
}());
|
|
20078
20216
|
|
|
20217
|
+
var TopDomainsFactory = /** @class */ (function () {
|
|
20218
|
+
function TopDomainsFactory() {
|
|
20219
|
+
}
|
|
20220
|
+
TopDomainsFactory.list = function (_a) {
|
|
20221
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20222
|
+
var params = __rest(_a, []);
|
|
20223
|
+
return __generator(this, function (_b) {
|
|
20224
|
+
return [2 /*return*/, listTopDomains(params).then(function (data) { return (__assign(__assign({}, data), { data: data.data.map(function (row) { return new TopDomainModel(row); }) })); })];
|
|
20225
|
+
});
|
|
20226
|
+
});
|
|
20227
|
+
};
|
|
20228
|
+
TopDomainsFactory.get = function (_a) {
|
|
20229
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20230
|
+
var id = _b.id;
|
|
20231
|
+
return __generator(this, function (_c) {
|
|
20232
|
+
return [2 /*return*/, getTopDomain({ id: id }).then(function (data) {
|
|
20233
|
+
return new TopDomainModel(data.data);
|
|
20234
|
+
})];
|
|
20235
|
+
});
|
|
20236
|
+
});
|
|
20237
|
+
};
|
|
20238
|
+
TopDomainsFactory.create = function (_a) {
|
|
20239
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20240
|
+
var domain = _b.domain;
|
|
20241
|
+
return __generator(this, function (_c) {
|
|
20242
|
+
return [2 /*return*/, createTopDomain({ domain: domain }).then(function (data) {
|
|
20243
|
+
trackEvent(EEvents.TOP_DOMAIN_CREATED, __assign({}, data.data));
|
|
20244
|
+
return new TopDomainModel(data.data);
|
|
20245
|
+
})];
|
|
20246
|
+
});
|
|
20247
|
+
});
|
|
20248
|
+
};
|
|
20249
|
+
return TopDomainsFactory;
|
|
20250
|
+
}());
|
|
20251
|
+
|
|
20079
20252
|
var EEmailLogType;
|
|
20080
20253
|
(function (EEmailLogType) {
|
|
20081
20254
|
EEmailLogType["submitted"] = "submitted";
|
|
@@ -20855,4 +21028,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
20855
21028
|
return UsersFactory;
|
|
20856
21029
|
}());
|
|
20857
21030
|
|
|
20858
|
-
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, ECertificateStatus, EDnsStatus, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailStatuses, EEmailSummaryEngagement, EEventBreakdownDimension, EEventSortField, EEventTimeseriesGranularity, EEvents, EIngressRouteStatus, EListAttributeType, EMethods, EOperatorTypes, EPageBranding, EPartialInfoPool, EPopupBranding, EPopupBrowserType, EPopupCloseButtonPosition, EPopupDeviceType, EPopupDisplayFrequency, EPopupPosition, EPopupTriggerType, EStorageType, ETaskType, ETrackedDeviceType, ETrackedEntityType, ETrackedEventType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, EventModel, EventTrackingFactory, 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, PersonalAccessTokenModel, PersonalAccessTokensFactory, PhoneTextField, PopupModel, PopupsFactory, Radio, ResourceEdit, ScopePicker, 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, createPat, createPopup, createSender, 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, getEventBreakdown, getEventFunnel, getEventPropertyKeys, getEventSummary, getEventTimeseries, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPage, getPat, 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, listEvents, listForms, listList, listListAttributes, listListInterests, listPages, listPats, 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, revokePat, 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, updatePat, updatePopup, updateSystemEmails, updateTemplate, updateUser, updateWorkflow, validateColor, validateEmail, validateGenericInput, validateUrl, verifyCustomDomain, verifyTrackingCnamesService, wait, whiteLabelBrand, whoAmi };
|
|
21031
|
+
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, ECertificateStatus, EDnsStatus, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailStatuses, EEmailSummaryEngagement, EEventBreakdownDimension, EEventSortField, EEventTimeseriesGranularity, EEvents, EIngressRouteStatus, EListAttributeType, EMethods, EOperatorTypes, EPageBranding, EPartialInfoPool, EPopupBranding, EPopupBrowserType, EPopupCloseButtonPosition, EPopupDeviceType, EPopupDisplayFrequency, EPopupPosition, EPopupTriggerType, EStorageType, ETaskType, ETopDomainStatus, ETrackedDeviceType, ETrackedEntityType, ETrackedEventType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, EventModel, EventTrackingFactory, 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, PersonalAccessTokenModel, PersonalAccessTokensFactory, PhoneTextField, PopupModel, PopupsFactory, Radio, ResourceEdit, ScopePicker, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SuppressedEmailsFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopDomainModel, TopDomainsFactory, 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, createPat, createPopup, createSender, createSuppressedEmailExport, createTemplate, createTopDomain, deepMergeObject, deleteAccount, deleteAnyAutomation, deleteAutomation, deleteCampaign, deleteCampaignsReportsExport, deleteContact, deleteCustomDomain, deleteForm, deleteList, deletePage, deletePartialInformation, deletePopup, deleteSender, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteTopDomain, 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, getEventBreakdown, getEventFunnel, getEventPropertyKeys, getEventSummary, getEventTimeseries, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPage, getPat, getPopup, getPropertyValue, getSender, getStartOfDate, getStorage, getSuppressedEmailExport, getTColor, getTaskService, getTemplate, getTopDomain, 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, listEvents, listForms, listList, listListAttributes, listListInterests, listPages, listPats, listPopups, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listTopDomains, 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, revokePat, 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, updatePat, updatePopup, updateSystemEmails, updateTemplate, updateUser, updateWorkflow, validateColor, validateEmail, validateGenericInput, validateTopDomain, validateUrl, verifyCustomDomain, verifyTrackingCnamesService, wait, whiteLabelBrand, whoAmi };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TDeleteApiResource } from "../../types";
|
|
2
|
+
import { ETopDomainStatus, TTopDomainModel, TTopDomainVerificationPayload } from "./types";
|
|
3
|
+
export declare class TopDomainModel {
|
|
4
|
+
id: string;
|
|
5
|
+
account_id: number;
|
|
6
|
+
domain: string;
|
|
7
|
+
status: ETopDomainStatus;
|
|
8
|
+
verified_on: number | null;
|
|
9
|
+
created_on: number;
|
|
10
|
+
verification_instructions: TTopDomainModel["verification_instructions"];
|
|
11
|
+
constructor(params: TTopDomainModel);
|
|
12
|
+
get isVerified(): boolean;
|
|
13
|
+
toJson(): TTopDomainModel;
|
|
14
|
+
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
15
|
+
validate(): Promise<{
|
|
16
|
+
topDomain: TopDomainModel;
|
|
17
|
+
verification: TTopDomainVerificationPayload;
|
|
18
|
+
}>;
|
|
19
|
+
delete(): Promise<TDeleteApiResource>;
|
|
20
|
+
}
|
|
21
|
+
export * from "./types";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum ETopDomainStatus {
|
|
2
|
+
pending = "pending",
|
|
3
|
+
verified = "verified",
|
|
4
|
+
failed = "failed"
|
|
5
|
+
}
|
|
6
|
+
export type TTopDomainVerificationInstructions = {
|
|
7
|
+
record_type: "MX";
|
|
8
|
+
host: string;
|
|
9
|
+
priority: number;
|
|
10
|
+
value: string;
|
|
11
|
+
instructions: string;
|
|
12
|
+
};
|
|
13
|
+
export type TTopDomainModel = {
|
|
14
|
+
id: string;
|
|
15
|
+
account_id: number;
|
|
16
|
+
domain: string;
|
|
17
|
+
status: ETopDomainStatus;
|
|
18
|
+
verified_on: number | null;
|
|
19
|
+
created_on: number;
|
|
20
|
+
verification_instructions: TTopDomainVerificationInstructions;
|
|
21
|
+
};
|
|
22
|
+
export type TTopDomainVerificationPayload = {
|
|
23
|
+
success: boolean;
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
export type TTopDomainValidateResult = TTopDomainModel & {
|
|
27
|
+
verification: TTopDomainVerificationPayload;
|
|
28
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TTopDomainModel, TTopDomainValidateResult } from "../../models/topDomains/types";
|
|
2
|
+
import { TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
3
|
+
import { TCreateApiResource, TDeleteApiResource, TUpdateApiResource } from "../../types/generic";
|
|
4
|
+
export declare function listTopDomains({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTopDomainModel>>;
|
|
5
|
+
export declare function createTopDomain({ domain, }: {
|
|
6
|
+
domain: string;
|
|
7
|
+
}): Promise<TCreateApiResource<TTopDomainModel>>;
|
|
8
|
+
export declare function getTopDomain({ id, }: {
|
|
9
|
+
id: string;
|
|
10
|
+
}): Promise<TGenericReturn<TTopDomainModel>>;
|
|
11
|
+
export declare function deleteTopDomain({ id, }: {
|
|
12
|
+
id: string;
|
|
13
|
+
}): Promise<TDeleteApiResource>;
|
|
14
|
+
export declare function validateTopDomain({ id, }: {
|
|
15
|
+
id: string;
|
|
16
|
+
}): Promise<TUpdateApiResource<TTopDomainValidateResult>>;
|
|
@@ -165,6 +165,9 @@ export declare enum EEvents {
|
|
|
165
165
|
CUSTOM_DOMAIN_CREATED = "CustomDomain.Created",
|
|
166
166
|
CUSTOM_DOMAIN_VERIFIED = "CustomDomain.Verified",
|
|
167
167
|
CUSTOM_DOMAIN_DELETED = "CustomDomain.Deleted",
|
|
168
|
+
TOP_DOMAIN_CREATED = "TopDomain.Created",
|
|
169
|
+
TOP_DOMAIN_VALIDATED = "TopDomain.Validated",
|
|
170
|
+
TOP_DOMAIN_DELETED = "TopDomain.Deleted",
|
|
168
171
|
PAT_CREATED = "PAT.Created",
|
|
169
172
|
PAT_UPDATED = "PAT.Updated",
|
|
170
173
|
PAT_REVOKED = "PAT.Revoked",
|