@cakemail-org/ui-components-v2 2.2.112 → 2.2.114
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/components/dataTable/types.d.ts +2 -0
- package/dist/cjs/factories/index.d.ts +1 -0
- package/dist/cjs/factories/topDomains/index.d.ts +11 -0
- package/dist/cjs/index.js +195 -10
- 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/components/dataTable/types.d.ts +2 -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 +189 -11
- 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
|
@@ -71,6 +71,8 @@ type TDataTableRowDataComplex = {
|
|
|
71
71
|
export interface TDataTableRowData extends TDObject, TDataTableRowDataComplex {
|
|
72
72
|
collapsedContent?: any;
|
|
73
73
|
initCollapsedOpen?: boolean;
|
|
74
|
+
/** When set, controls expand/collapse (e.g. parent "Email config" / "Page config" actions). */
|
|
75
|
+
collapsedOpen?: boolean;
|
|
74
76
|
isSelected?: boolean;
|
|
75
77
|
}
|
|
76
78
|
export type TDataTableColumnsData = {
|
|
@@ -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";
|
|
@@ -8906,6 +8909,11 @@ function DataTablePaginationNoCount(_a) {
|
|
|
8906
8909
|
function DataTableRow(_a) {
|
|
8907
8910
|
var row = _a.row, columnsData = _a.columnsData, handleRowClick = _a.handleRowClick, handleRowSelect = _a.handleRowSelect, isItemSelected = _a.isItemSelected, index = _a.index, rowIdMap = _a.rowIdMap, showRowSelection = _a.showRowSelection, stickyFirstCol = _a.stickyFirstCol, stickyLastCol = _a.stickyLastCol, showCollapsibleContent = _a.showCollapsibleContent, colCount = _a.colCount;
|
|
8908
8911
|
var _b = React.useState((row === null || row === void 0 ? void 0 : row.initCollapsedOpen) || false), open = _b[0], setOpen = _b[1];
|
|
8912
|
+
React.useEffect(function () {
|
|
8913
|
+
if ((row === null || row === void 0 ? void 0 : row.collapsedOpen) !== undefined) {
|
|
8914
|
+
setOpen(row.collapsedOpen);
|
|
8915
|
+
}
|
|
8916
|
+
}, [row === null || row === void 0 ? void 0 : row.collapsedOpen]);
|
|
8909
8917
|
function handleOpen(event) {
|
|
8910
8918
|
event.stopPropagation();
|
|
8911
8919
|
setOpen(!open);
|
|
@@ -9618,7 +9626,7 @@ function FilterBar(_a) {
|
|
|
9618
9626
|
//set onClick
|
|
9619
9627
|
dropMenuOptions = dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.map(function (i) {
|
|
9620
9628
|
var _a;
|
|
9621
|
-
return __assign(__assign({}, i), { disabled: (_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
|
|
9629
|
+
return __assign(__assign({}, i), { disabled: i.disabled || ((_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab)), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
|
|
9622
9630
|
});
|
|
9623
9631
|
if (dropMenuOptions && (dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.length) > 0) {
|
|
9624
9632
|
var foundTitle = (_e = (_d = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.options) === null || _d === void 0 ? void 0 : _d[selectedTab || ""]) === null || _e === void 0 ? void 0 : _e.title;
|
|
@@ -9674,7 +9682,7 @@ function FilterBar(_a) {
|
|
|
9674
9682
|
" ",
|
|
9675
9683
|
React.createElement(Icon, { name: "Search10" }),
|
|
9676
9684
|
" ",
|
|
9677
|
-
term.value) : term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
|
|
9685
|
+
term.text || term.value) : term.text || term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
|
|
9678
9686
|
}).reverse()),
|
|
9679
9687
|
cFilterTerms.length > 0 &&
|
|
9680
9688
|
React.createElement(material.Stack, { direction: "row", className: "actionContainer", alignItems: "center", justifyContent: "center", gap: 3 },
|
|
@@ -11129,13 +11137,13 @@ function untagContact(_a) {
|
|
|
11129
11137
|
});
|
|
11130
11138
|
}
|
|
11131
11139
|
|
|
11132
|
-
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11140
|
+
var baseUrl$1 = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11133
11141
|
function listCustomDomains(_a) {
|
|
11134
11142
|
return __awaiter(this, void 0, void 0, function () {
|
|
11135
11143
|
var options = __rest(_a, []);
|
|
11136
11144
|
return __generator(this, function (_b) {
|
|
11137
11145
|
return [2 /*return*/, callApi({
|
|
11138
|
-
url: baseUrl(),
|
|
11146
|
+
url: baseUrl$1(),
|
|
11139
11147
|
query: camelCase(options),
|
|
11140
11148
|
fetchOptions: {
|
|
11141
11149
|
method: exports.EMethods.get,
|
|
@@ -11149,7 +11157,7 @@ function createCustomDomain(_a) {
|
|
|
11149
11157
|
var domain = _b.domain;
|
|
11150
11158
|
return __generator(this, function (_c) {
|
|
11151
11159
|
return [2 /*return*/, callApi({
|
|
11152
|
-
url: baseUrl(),
|
|
11160
|
+
url: baseUrl$1(),
|
|
11153
11161
|
fetchOptions: {
|
|
11154
11162
|
method: exports.EMethods.post,
|
|
11155
11163
|
body: { domain: domain },
|
|
@@ -11163,7 +11171,7 @@ function getCustomDomain(_a) {
|
|
|
11163
11171
|
var id = _b.id;
|
|
11164
11172
|
return __generator(this, function (_c) {
|
|
11165
11173
|
return [2 /*return*/, callApi({
|
|
11166
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11174
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11167
11175
|
fetchOptions: {
|
|
11168
11176
|
method: exports.EMethods.get,
|
|
11169
11177
|
},
|
|
@@ -11176,7 +11184,7 @@ function deleteCustomDomain(_a) {
|
|
|
11176
11184
|
var id = _b.id;
|
|
11177
11185
|
return __generator(this, function (_c) {
|
|
11178
11186
|
return [2 /*return*/, callApi({
|
|
11179
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11187
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11180
11188
|
fetchOptions: {
|
|
11181
11189
|
method: exports.EMethods.delete,
|
|
11182
11190
|
},
|
|
@@ -11189,7 +11197,76 @@ function verifyCustomDomain(_a) {
|
|
|
11189
11197
|
var id = _b.id;
|
|
11190
11198
|
return __generator(this, function (_c) {
|
|
11191
11199
|
return [2 /*return*/, callApi({
|
|
11192
|
-
url: "".concat(baseUrl(), "/").concat(id, "/verify"),
|
|
11200
|
+
url: "".concat(baseUrl$1(), "/").concat(id, "/verify"),
|
|
11201
|
+
fetchOptions: {
|
|
11202
|
+
method: exports.EMethods.post,
|
|
11203
|
+
},
|
|
11204
|
+
})];
|
|
11205
|
+
});
|
|
11206
|
+
});
|
|
11207
|
+
}
|
|
11208
|
+
|
|
11209
|
+
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/topDomains"; };
|
|
11210
|
+
function listTopDomains(_a) {
|
|
11211
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11212
|
+
var options = __rest(_a, []);
|
|
11213
|
+
return __generator(this, function (_b) {
|
|
11214
|
+
return [2 /*return*/, callApi({
|
|
11215
|
+
url: baseUrl(),
|
|
11216
|
+
query: camelCase(options),
|
|
11217
|
+
fetchOptions: {
|
|
11218
|
+
method: exports.EMethods.get,
|
|
11219
|
+
},
|
|
11220
|
+
})];
|
|
11221
|
+
});
|
|
11222
|
+
});
|
|
11223
|
+
}
|
|
11224
|
+
function createTopDomain(_a) {
|
|
11225
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11226
|
+
var domain = _b.domain;
|
|
11227
|
+
return __generator(this, function (_c) {
|
|
11228
|
+
return [2 /*return*/, callApi({
|
|
11229
|
+
url: baseUrl(),
|
|
11230
|
+
fetchOptions: {
|
|
11231
|
+
method: exports.EMethods.post,
|
|
11232
|
+
body: { domain: domain },
|
|
11233
|
+
},
|
|
11234
|
+
})];
|
|
11235
|
+
});
|
|
11236
|
+
});
|
|
11237
|
+
}
|
|
11238
|
+
function getTopDomain(_a) {
|
|
11239
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11240
|
+
var id = _b.id;
|
|
11241
|
+
return __generator(this, function (_c) {
|
|
11242
|
+
return [2 /*return*/, callApi({
|
|
11243
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11244
|
+
fetchOptions: {
|
|
11245
|
+
method: exports.EMethods.get,
|
|
11246
|
+
},
|
|
11247
|
+
})];
|
|
11248
|
+
});
|
|
11249
|
+
});
|
|
11250
|
+
}
|
|
11251
|
+
function deleteTopDomain(_a) {
|
|
11252
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11253
|
+
var id = _b.id;
|
|
11254
|
+
return __generator(this, function (_c) {
|
|
11255
|
+
return [2 /*return*/, callApi({
|
|
11256
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11257
|
+
fetchOptions: {
|
|
11258
|
+
method: exports.EMethods.delete,
|
|
11259
|
+
},
|
|
11260
|
+
})];
|
|
11261
|
+
});
|
|
11262
|
+
});
|
|
11263
|
+
}
|
|
11264
|
+
function validateTopDomain(_a) {
|
|
11265
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11266
|
+
var id = _b.id;
|
|
11267
|
+
return __generator(this, function (_c) {
|
|
11268
|
+
return [2 /*return*/, callApi({
|
|
11269
|
+
url: "".concat(baseUrl(), "/").concat(id, "/validate"),
|
|
11193
11270
|
fetchOptions: {
|
|
11194
11271
|
method: exports.EMethods.post,
|
|
11195
11272
|
},
|
|
@@ -12476,6 +12553,73 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12476
12553
|
return CustomDomainModel;
|
|
12477
12554
|
}());
|
|
12478
12555
|
|
|
12556
|
+
exports.ETopDomainStatus = void 0;
|
|
12557
|
+
(function (ETopDomainStatus) {
|
|
12558
|
+
ETopDomainStatus["pending"] = "pending";
|
|
12559
|
+
ETopDomainStatus["verified"] = "verified";
|
|
12560
|
+
ETopDomainStatus["failed"] = "failed";
|
|
12561
|
+
})(exports.ETopDomainStatus || (exports.ETopDomainStatus = {}));
|
|
12562
|
+
|
|
12563
|
+
var TopDomainModel = /** @class */ (function () {
|
|
12564
|
+
function TopDomainModel(params) {
|
|
12565
|
+
var _a;
|
|
12566
|
+
this.id = params.id;
|
|
12567
|
+
this.account_id = params.account_id;
|
|
12568
|
+
this.domain = params.domain;
|
|
12569
|
+
this.status = (_a = params.status) !== null && _a !== void 0 ? _a : exports.ETopDomainStatus.pending;
|
|
12570
|
+
this.verified_on = params.verified_on;
|
|
12571
|
+
this.created_on = params.created_on;
|
|
12572
|
+
this.verification_instructions = params.verification_instructions;
|
|
12573
|
+
}
|
|
12574
|
+
Object.defineProperty(TopDomainModel.prototype, "isVerified", {
|
|
12575
|
+
get: function () {
|
|
12576
|
+
return this.status === exports.ETopDomainStatus.verified;
|
|
12577
|
+
},
|
|
12578
|
+
enumerable: false,
|
|
12579
|
+
configurable: true
|
|
12580
|
+
});
|
|
12581
|
+
TopDomainModel.prototype.toJson = function () {
|
|
12582
|
+
return modelToJson(this);
|
|
12583
|
+
};
|
|
12584
|
+
TopDomainModel.prototype.set = function (property, value) {
|
|
12585
|
+
modelSet(this, property, value);
|
|
12586
|
+
};
|
|
12587
|
+
TopDomainModel.prototype.validate = function () {
|
|
12588
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12589
|
+
var _this = this;
|
|
12590
|
+
return __generator(this, function (_a) {
|
|
12591
|
+
return [2 /*return*/, validateTopDomain({ id: this.id }).then(function (res) {
|
|
12592
|
+
trackEvent(exports.EEvents.TOP_DOMAIN_VALIDATED, {
|
|
12593
|
+
id: _this.id,
|
|
12594
|
+
domain: _this.domain,
|
|
12595
|
+
verification: res.data.verification,
|
|
12596
|
+
});
|
|
12597
|
+
return {
|
|
12598
|
+
topDomain: new TopDomainModel(res.data),
|
|
12599
|
+
verification: res.data.verification,
|
|
12600
|
+
};
|
|
12601
|
+
})];
|
|
12602
|
+
});
|
|
12603
|
+
});
|
|
12604
|
+
};
|
|
12605
|
+
TopDomainModel.prototype.delete = function () {
|
|
12606
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12607
|
+
var _this = this;
|
|
12608
|
+
return __generator(this, function (_a) {
|
|
12609
|
+
return [2 /*return*/, deleteTopDomain({ id: this.id })
|
|
12610
|
+
.then(function (res) {
|
|
12611
|
+
trackEvent(exports.EEvents.TOP_DOMAIN_DELETED, {
|
|
12612
|
+
id: _this.id,
|
|
12613
|
+
domain: _this.domain,
|
|
12614
|
+
});
|
|
12615
|
+
return res;
|
|
12616
|
+
})];
|
|
12617
|
+
});
|
|
12618
|
+
});
|
|
12619
|
+
};
|
|
12620
|
+
return TopDomainModel;
|
|
12621
|
+
}());
|
|
12622
|
+
|
|
12479
12623
|
exports.EEmailAttachementTypes = void 0;
|
|
12480
12624
|
(function (EEmailAttachementTypes) {
|
|
12481
12625
|
EEmailAttachementTypes["csv"] = "csv";
|
|
@@ -13571,12 +13715,11 @@ function GenericWrapper(_a) {
|
|
|
13571
13715
|
uiKitConfig.GATEWAY_PROXY = proxyUrl;
|
|
13572
13716
|
}
|
|
13573
13717
|
React.useEffect(function () {
|
|
13574
|
-
var _a, _b
|
|
13718
|
+
var _a, _b;
|
|
13575
13719
|
if ((account === null || account === void 0 ? void 0 : account.id) && !userBrand) {
|
|
13576
13720
|
//@ts-ignore
|
|
13577
13721
|
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
13722
|
if (LocizeInitializer) {
|
|
13579
|
-
(_c = LocizeInitializer.mergeTranslationResources) === null || _c === void 0 ? void 0 : _c.call(LocizeInitializer);
|
|
13580
13723
|
LocizeInitializer.changeLanguage(locale);
|
|
13581
13724
|
}
|
|
13582
13725
|
moment$1.locale(locale);
|
|
@@ -20096,6 +20239,41 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
20096
20239
|
return CustomDomainsFactory;
|
|
20097
20240
|
}());
|
|
20098
20241
|
|
|
20242
|
+
var TopDomainsFactory = /** @class */ (function () {
|
|
20243
|
+
function TopDomainsFactory() {
|
|
20244
|
+
}
|
|
20245
|
+
TopDomainsFactory.list = function (_a) {
|
|
20246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20247
|
+
var params = __rest(_a, []);
|
|
20248
|
+
return __generator(this, function (_b) {
|
|
20249
|
+
return [2 /*return*/, listTopDomains(params).then(function (data) { return (__assign(__assign({}, data), { data: data.data.map(function (row) { return new TopDomainModel(row); }) })); })];
|
|
20250
|
+
});
|
|
20251
|
+
});
|
|
20252
|
+
};
|
|
20253
|
+
TopDomainsFactory.get = function (_a) {
|
|
20254
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20255
|
+
var id = _b.id;
|
|
20256
|
+
return __generator(this, function (_c) {
|
|
20257
|
+
return [2 /*return*/, getTopDomain({ id: id }).then(function (data) {
|
|
20258
|
+
return new TopDomainModel(data.data);
|
|
20259
|
+
})];
|
|
20260
|
+
});
|
|
20261
|
+
});
|
|
20262
|
+
};
|
|
20263
|
+
TopDomainsFactory.create = function (_a) {
|
|
20264
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20265
|
+
var domain = _b.domain;
|
|
20266
|
+
return __generator(this, function (_c) {
|
|
20267
|
+
return [2 /*return*/, createTopDomain({ domain: domain }).then(function (data) {
|
|
20268
|
+
trackEvent(exports.EEvents.TOP_DOMAIN_CREATED, __assign({}, data.data));
|
|
20269
|
+
return new TopDomainModel(data.data);
|
|
20270
|
+
})];
|
|
20271
|
+
});
|
|
20272
|
+
});
|
|
20273
|
+
};
|
|
20274
|
+
return TopDomainsFactory;
|
|
20275
|
+
}());
|
|
20276
|
+
|
|
20099
20277
|
exports.EEmailLogType = void 0;
|
|
20100
20278
|
(function (EEmailLogType) {
|
|
20101
20279
|
EEmailLogType["submitted"] = "submitted";
|
|
@@ -20988,6 +21166,8 @@ exports.TextField = TextField;
|
|
|
20988
21166
|
exports.TimePicker = TimePicker;
|
|
20989
21167
|
exports.TimeSelector = TimeSelector;
|
|
20990
21168
|
exports.Toggle = Toggle;
|
|
21169
|
+
exports.TopDomainModel = TopDomainModel;
|
|
21170
|
+
exports.TopDomainsFactory = TopDomainsFactory;
|
|
20991
21171
|
exports.TopMenu = TopMenu;
|
|
20992
21172
|
exports.Typography = Typography;
|
|
20993
21173
|
exports.UserModel = UserModel;
|
|
@@ -21025,6 +21205,7 @@ exports.createPopup = createPopup;
|
|
|
21025
21205
|
exports.createSender = createSender;
|
|
21026
21206
|
exports.createSuppressedEmailExport = createSuppressedEmailExport;
|
|
21027
21207
|
exports.createTemplate = createTemplate;
|
|
21208
|
+
exports.createTopDomain = createTopDomain;
|
|
21028
21209
|
exports.deepMergeObject = deepMergeObject;
|
|
21029
21210
|
exports.deleteAccount = deleteAccount;
|
|
21030
21211
|
exports.deleteAnyAutomation = deleteAnyAutomation;
|
|
@@ -21043,6 +21224,7 @@ exports.deleteStorageItem = deleteStorageItem;
|
|
|
21043
21224
|
exports.deleteSuppressedEmail = deleteSuppressedEmail;
|
|
21044
21225
|
exports.deleteTaskService = deleteTaskService;
|
|
21045
21226
|
exports.deleteTemplate = deleteTemplate;
|
|
21227
|
+
exports.deleteTopDomain = deleteTopDomain;
|
|
21046
21228
|
exports.deleteUser = deleteUser;
|
|
21047
21229
|
exports.deleteWorkflow = deleteWorkflow;
|
|
21048
21230
|
exports.descendingComparator = descendingComparator;
|
|
@@ -21128,6 +21310,7 @@ exports.getSuppressedEmailExport = getSuppressedEmailExport;
|
|
|
21128
21310
|
exports.getTColor = getTColor;
|
|
21129
21311
|
exports.getTaskService = getTaskService;
|
|
21130
21312
|
exports.getTemplate = getTemplate;
|
|
21313
|
+
exports.getTopDomain = getTopDomain;
|
|
21131
21314
|
exports.getUnixTime = getUnixTime;
|
|
21132
21315
|
exports.getUrlQueryParam = getUrlQueryParam;
|
|
21133
21316
|
exports.getUser = getUser;
|
|
@@ -21166,6 +21349,7 @@ exports.listSuppressedEmails = listSuppressedEmails;
|
|
|
21166
21349
|
exports.listSystemEmails = listSystemEmails;
|
|
21167
21350
|
exports.listTasksService = listTasksService;
|
|
21168
21351
|
exports.listTemplates = listTemplates;
|
|
21352
|
+
exports.listTopDomains = listTopDomains;
|
|
21169
21353
|
exports.listUsers = listUsers;
|
|
21170
21354
|
exports.listWorkflows = listWorkflows;
|
|
21171
21355
|
exports.logOutService = logOutService;
|
|
@@ -21239,6 +21423,7 @@ exports.updateWorkflow = updateWorkflow;
|
|
|
21239
21423
|
exports.validateColor = validateColor;
|
|
21240
21424
|
exports.validateEmail = validateEmail;
|
|
21241
21425
|
exports.validateGenericInput = validateGenericInput;
|
|
21426
|
+
exports.validateTopDomain = validateTopDomain;
|
|
21242
21427
|
exports.validateUrl = validateUrl;
|
|
21243
21428
|
exports.verifyCustomDomain = verifyCustomDomain;
|
|
21244
21429
|
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",
|
|
@@ -71,6 +71,8 @@ type TDataTableRowDataComplex = {
|
|
|
71
71
|
export interface TDataTableRowData extends TDObject, TDataTableRowDataComplex {
|
|
72
72
|
collapsedContent?: any;
|
|
73
73
|
initCollapsedOpen?: boolean;
|
|
74
|
+
/** When set, controls expand/collapse (e.g. parent "Email config" / "Page config" actions). */
|
|
75
|
+
collapsedOpen?: boolean;
|
|
74
76
|
isSelected?: boolean;
|
|
75
77
|
}
|
|
76
78
|
export type TDataTableColumnsData = {
|
|
@@ -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";
|
|
@@ -8886,6 +8889,11 @@ function DataTablePaginationNoCount(_a) {
|
|
|
8886
8889
|
function DataTableRow(_a) {
|
|
8887
8890
|
var row = _a.row, columnsData = _a.columnsData, handleRowClick = _a.handleRowClick, handleRowSelect = _a.handleRowSelect, isItemSelected = _a.isItemSelected, index = _a.index, rowIdMap = _a.rowIdMap, showRowSelection = _a.showRowSelection, stickyFirstCol = _a.stickyFirstCol, stickyLastCol = _a.stickyLastCol, showCollapsibleContent = _a.showCollapsibleContent, colCount = _a.colCount;
|
|
8888
8891
|
var _b = React__default.useState((row === null || row === void 0 ? void 0 : row.initCollapsedOpen) || false), open = _b[0], setOpen = _b[1];
|
|
8892
|
+
React__default.useEffect(function () {
|
|
8893
|
+
if ((row === null || row === void 0 ? void 0 : row.collapsedOpen) !== undefined) {
|
|
8894
|
+
setOpen(row.collapsedOpen);
|
|
8895
|
+
}
|
|
8896
|
+
}, [row === null || row === void 0 ? void 0 : row.collapsedOpen]);
|
|
8889
8897
|
function handleOpen(event) {
|
|
8890
8898
|
event.stopPropagation();
|
|
8891
8899
|
setOpen(!open);
|
|
@@ -9598,7 +9606,7 @@ function FilterBar(_a) {
|
|
|
9598
9606
|
//set onClick
|
|
9599
9607
|
dropMenuOptions = dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.map(function (i) {
|
|
9600
9608
|
var _a;
|
|
9601
|
-
return __assign(__assign({}, i), { disabled: (_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
|
|
9609
|
+
return __assign(__assign({}, i), { disabled: i.disabled || ((_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab)), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
|
|
9602
9610
|
});
|
|
9603
9611
|
if (dropMenuOptions && (dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.length) > 0) {
|
|
9604
9612
|
var foundTitle = (_e = (_d = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.options) === null || _d === void 0 ? void 0 : _d[selectedTab || ""]) === null || _e === void 0 ? void 0 : _e.title;
|
|
@@ -9654,7 +9662,7 @@ function FilterBar(_a) {
|
|
|
9654
9662
|
" ",
|
|
9655
9663
|
React__default.createElement(Icon, { name: "Search10" }),
|
|
9656
9664
|
" ",
|
|
9657
|
-
term.value) : term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React__default.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
|
|
9665
|
+
term.text || term.value) : term.text || term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React__default.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
|
|
9658
9666
|
}).reverse()),
|
|
9659
9667
|
cFilterTerms.length > 0 &&
|
|
9660
9668
|
React__default.createElement(Stack$1, { direction: "row", className: "actionContainer", alignItems: "center", justifyContent: "center", gap: 3 },
|
|
@@ -11109,13 +11117,13 @@ function untagContact(_a) {
|
|
|
11109
11117
|
});
|
|
11110
11118
|
}
|
|
11111
11119
|
|
|
11112
|
-
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11120
|
+
var baseUrl$1 = function () { return uiKitConfig.GATEWAY_PROXY + "/customDomains"; };
|
|
11113
11121
|
function listCustomDomains(_a) {
|
|
11114
11122
|
return __awaiter(this, void 0, void 0, function () {
|
|
11115
11123
|
var options = __rest(_a, []);
|
|
11116
11124
|
return __generator(this, function (_b) {
|
|
11117
11125
|
return [2 /*return*/, callApi({
|
|
11118
|
-
url: baseUrl(),
|
|
11126
|
+
url: baseUrl$1(),
|
|
11119
11127
|
query: camelCase(options),
|
|
11120
11128
|
fetchOptions: {
|
|
11121
11129
|
method: EMethods.get,
|
|
@@ -11129,7 +11137,7 @@ function createCustomDomain(_a) {
|
|
|
11129
11137
|
var domain = _b.domain;
|
|
11130
11138
|
return __generator(this, function (_c) {
|
|
11131
11139
|
return [2 /*return*/, callApi({
|
|
11132
|
-
url: baseUrl(),
|
|
11140
|
+
url: baseUrl$1(),
|
|
11133
11141
|
fetchOptions: {
|
|
11134
11142
|
method: EMethods.post,
|
|
11135
11143
|
body: { domain: domain },
|
|
@@ -11143,7 +11151,7 @@ function getCustomDomain(_a) {
|
|
|
11143
11151
|
var id = _b.id;
|
|
11144
11152
|
return __generator(this, function (_c) {
|
|
11145
11153
|
return [2 /*return*/, callApi({
|
|
11146
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11154
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11147
11155
|
fetchOptions: {
|
|
11148
11156
|
method: EMethods.get,
|
|
11149
11157
|
},
|
|
@@ -11156,7 +11164,7 @@ function deleteCustomDomain(_a) {
|
|
|
11156
11164
|
var id = _b.id;
|
|
11157
11165
|
return __generator(this, function (_c) {
|
|
11158
11166
|
return [2 /*return*/, callApi({
|
|
11159
|
-
url: "".concat(baseUrl(), "/").concat(id),
|
|
11167
|
+
url: "".concat(baseUrl$1(), "/").concat(id),
|
|
11160
11168
|
fetchOptions: {
|
|
11161
11169
|
method: EMethods.delete,
|
|
11162
11170
|
},
|
|
@@ -11169,7 +11177,76 @@ function verifyCustomDomain(_a) {
|
|
|
11169
11177
|
var id = _b.id;
|
|
11170
11178
|
return __generator(this, function (_c) {
|
|
11171
11179
|
return [2 /*return*/, callApi({
|
|
11172
|
-
url: "".concat(baseUrl(), "/").concat(id, "/verify"),
|
|
11180
|
+
url: "".concat(baseUrl$1(), "/").concat(id, "/verify"),
|
|
11181
|
+
fetchOptions: {
|
|
11182
|
+
method: EMethods.post,
|
|
11183
|
+
},
|
|
11184
|
+
})];
|
|
11185
|
+
});
|
|
11186
|
+
});
|
|
11187
|
+
}
|
|
11188
|
+
|
|
11189
|
+
var baseUrl = function () { return uiKitConfig.GATEWAY_PROXY + "/topDomains"; };
|
|
11190
|
+
function listTopDomains(_a) {
|
|
11191
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11192
|
+
var options = __rest(_a, []);
|
|
11193
|
+
return __generator(this, function (_b) {
|
|
11194
|
+
return [2 /*return*/, callApi({
|
|
11195
|
+
url: baseUrl(),
|
|
11196
|
+
query: camelCase(options),
|
|
11197
|
+
fetchOptions: {
|
|
11198
|
+
method: EMethods.get,
|
|
11199
|
+
},
|
|
11200
|
+
})];
|
|
11201
|
+
});
|
|
11202
|
+
});
|
|
11203
|
+
}
|
|
11204
|
+
function createTopDomain(_a) {
|
|
11205
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11206
|
+
var domain = _b.domain;
|
|
11207
|
+
return __generator(this, function (_c) {
|
|
11208
|
+
return [2 /*return*/, callApi({
|
|
11209
|
+
url: baseUrl(),
|
|
11210
|
+
fetchOptions: {
|
|
11211
|
+
method: EMethods.post,
|
|
11212
|
+
body: { domain: domain },
|
|
11213
|
+
},
|
|
11214
|
+
})];
|
|
11215
|
+
});
|
|
11216
|
+
});
|
|
11217
|
+
}
|
|
11218
|
+
function getTopDomain(_a) {
|
|
11219
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11220
|
+
var id = _b.id;
|
|
11221
|
+
return __generator(this, function (_c) {
|
|
11222
|
+
return [2 /*return*/, callApi({
|
|
11223
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11224
|
+
fetchOptions: {
|
|
11225
|
+
method: EMethods.get,
|
|
11226
|
+
},
|
|
11227
|
+
})];
|
|
11228
|
+
});
|
|
11229
|
+
});
|
|
11230
|
+
}
|
|
11231
|
+
function deleteTopDomain(_a) {
|
|
11232
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11233
|
+
var id = _b.id;
|
|
11234
|
+
return __generator(this, function (_c) {
|
|
11235
|
+
return [2 /*return*/, callApi({
|
|
11236
|
+
url: "".concat(baseUrl(), "/").concat(id),
|
|
11237
|
+
fetchOptions: {
|
|
11238
|
+
method: EMethods.delete,
|
|
11239
|
+
},
|
|
11240
|
+
})];
|
|
11241
|
+
});
|
|
11242
|
+
});
|
|
11243
|
+
}
|
|
11244
|
+
function validateTopDomain(_a) {
|
|
11245
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
11246
|
+
var id = _b.id;
|
|
11247
|
+
return __generator(this, function (_c) {
|
|
11248
|
+
return [2 /*return*/, callApi({
|
|
11249
|
+
url: "".concat(baseUrl(), "/").concat(id, "/validate"),
|
|
11173
11250
|
fetchOptions: {
|
|
11174
11251
|
method: EMethods.post,
|
|
11175
11252
|
},
|
|
@@ -12456,6 +12533,73 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12456
12533
|
return CustomDomainModel;
|
|
12457
12534
|
}());
|
|
12458
12535
|
|
|
12536
|
+
var ETopDomainStatus;
|
|
12537
|
+
(function (ETopDomainStatus) {
|
|
12538
|
+
ETopDomainStatus["pending"] = "pending";
|
|
12539
|
+
ETopDomainStatus["verified"] = "verified";
|
|
12540
|
+
ETopDomainStatus["failed"] = "failed";
|
|
12541
|
+
})(ETopDomainStatus || (ETopDomainStatus = {}));
|
|
12542
|
+
|
|
12543
|
+
var TopDomainModel = /** @class */ (function () {
|
|
12544
|
+
function TopDomainModel(params) {
|
|
12545
|
+
var _a;
|
|
12546
|
+
this.id = params.id;
|
|
12547
|
+
this.account_id = params.account_id;
|
|
12548
|
+
this.domain = params.domain;
|
|
12549
|
+
this.status = (_a = params.status) !== null && _a !== void 0 ? _a : ETopDomainStatus.pending;
|
|
12550
|
+
this.verified_on = params.verified_on;
|
|
12551
|
+
this.created_on = params.created_on;
|
|
12552
|
+
this.verification_instructions = params.verification_instructions;
|
|
12553
|
+
}
|
|
12554
|
+
Object.defineProperty(TopDomainModel.prototype, "isVerified", {
|
|
12555
|
+
get: function () {
|
|
12556
|
+
return this.status === ETopDomainStatus.verified;
|
|
12557
|
+
},
|
|
12558
|
+
enumerable: false,
|
|
12559
|
+
configurable: true
|
|
12560
|
+
});
|
|
12561
|
+
TopDomainModel.prototype.toJson = function () {
|
|
12562
|
+
return modelToJson(this);
|
|
12563
|
+
};
|
|
12564
|
+
TopDomainModel.prototype.set = function (property, value) {
|
|
12565
|
+
modelSet(this, property, value);
|
|
12566
|
+
};
|
|
12567
|
+
TopDomainModel.prototype.validate = function () {
|
|
12568
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12569
|
+
var _this = this;
|
|
12570
|
+
return __generator(this, function (_a) {
|
|
12571
|
+
return [2 /*return*/, validateTopDomain({ id: this.id }).then(function (res) {
|
|
12572
|
+
trackEvent(EEvents.TOP_DOMAIN_VALIDATED, {
|
|
12573
|
+
id: _this.id,
|
|
12574
|
+
domain: _this.domain,
|
|
12575
|
+
verification: res.data.verification,
|
|
12576
|
+
});
|
|
12577
|
+
return {
|
|
12578
|
+
topDomain: new TopDomainModel(res.data),
|
|
12579
|
+
verification: res.data.verification,
|
|
12580
|
+
};
|
|
12581
|
+
})];
|
|
12582
|
+
});
|
|
12583
|
+
});
|
|
12584
|
+
};
|
|
12585
|
+
TopDomainModel.prototype.delete = function () {
|
|
12586
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12587
|
+
var _this = this;
|
|
12588
|
+
return __generator(this, function (_a) {
|
|
12589
|
+
return [2 /*return*/, deleteTopDomain({ id: this.id })
|
|
12590
|
+
.then(function (res) {
|
|
12591
|
+
trackEvent(EEvents.TOP_DOMAIN_DELETED, {
|
|
12592
|
+
id: _this.id,
|
|
12593
|
+
domain: _this.domain,
|
|
12594
|
+
});
|
|
12595
|
+
return res;
|
|
12596
|
+
})];
|
|
12597
|
+
});
|
|
12598
|
+
});
|
|
12599
|
+
};
|
|
12600
|
+
return TopDomainModel;
|
|
12601
|
+
}());
|
|
12602
|
+
|
|
12459
12603
|
var EEmailAttachementTypes;
|
|
12460
12604
|
(function (EEmailAttachementTypes) {
|
|
12461
12605
|
EEmailAttachementTypes["csv"] = "csv";
|
|
@@ -13551,12 +13695,11 @@ function GenericWrapper(_a) {
|
|
|
13551
13695
|
uiKitConfig.GATEWAY_PROXY = proxyUrl;
|
|
13552
13696
|
}
|
|
13553
13697
|
useEffect(function () {
|
|
13554
|
-
var _a, _b
|
|
13698
|
+
var _a, _b;
|
|
13555
13699
|
if ((account === null || account === void 0 ? void 0 : account.id) && !userBrand) {
|
|
13556
13700
|
//@ts-ignore
|
|
13557
13701
|
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
13702
|
if (LocizeInitializer) {
|
|
13559
|
-
(_c = LocizeInitializer.mergeTranslationResources) === null || _c === void 0 ? void 0 : _c.call(LocizeInitializer);
|
|
13560
13703
|
LocizeInitializer.changeLanguage(locale);
|
|
13561
13704
|
}
|
|
13562
13705
|
moment$1.locale(locale);
|
|
@@ -20076,6 +20219,41 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
20076
20219
|
return CustomDomainsFactory;
|
|
20077
20220
|
}());
|
|
20078
20221
|
|
|
20222
|
+
var TopDomainsFactory = /** @class */ (function () {
|
|
20223
|
+
function TopDomainsFactory() {
|
|
20224
|
+
}
|
|
20225
|
+
TopDomainsFactory.list = function (_a) {
|
|
20226
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20227
|
+
var params = __rest(_a, []);
|
|
20228
|
+
return __generator(this, function (_b) {
|
|
20229
|
+
return [2 /*return*/, listTopDomains(params).then(function (data) { return (__assign(__assign({}, data), { data: data.data.map(function (row) { return new TopDomainModel(row); }) })); })];
|
|
20230
|
+
});
|
|
20231
|
+
});
|
|
20232
|
+
};
|
|
20233
|
+
TopDomainsFactory.get = function (_a) {
|
|
20234
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20235
|
+
var id = _b.id;
|
|
20236
|
+
return __generator(this, function (_c) {
|
|
20237
|
+
return [2 /*return*/, getTopDomain({ id: id }).then(function (data) {
|
|
20238
|
+
return new TopDomainModel(data.data);
|
|
20239
|
+
})];
|
|
20240
|
+
});
|
|
20241
|
+
});
|
|
20242
|
+
};
|
|
20243
|
+
TopDomainsFactory.create = function (_a) {
|
|
20244
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
20245
|
+
var domain = _b.domain;
|
|
20246
|
+
return __generator(this, function (_c) {
|
|
20247
|
+
return [2 /*return*/, createTopDomain({ domain: domain }).then(function (data) {
|
|
20248
|
+
trackEvent(EEvents.TOP_DOMAIN_CREATED, __assign({}, data.data));
|
|
20249
|
+
return new TopDomainModel(data.data);
|
|
20250
|
+
})];
|
|
20251
|
+
});
|
|
20252
|
+
});
|
|
20253
|
+
};
|
|
20254
|
+
return TopDomainsFactory;
|
|
20255
|
+
}());
|
|
20256
|
+
|
|
20079
20257
|
var EEmailLogType;
|
|
20080
20258
|
(function (EEmailLogType) {
|
|
20081
20259
|
EEmailLogType["submitted"] = "submitted";
|
|
@@ -20855,4 +21033,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
20855
21033
|
return UsersFactory;
|
|
20856
21034
|
}());
|
|
20857
21035
|
|
|
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 };
|
|
21036
|
+
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",
|