@cakemail-org/ui-components-v2 2.2.111 → 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 +190 -9
- 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 +184 -10
- 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";
|
|
@@ -7714,7 +7717,7 @@ var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfiel
|
|
|
7714
7717
|
styleInject(css_248z$v);
|
|
7715
7718
|
|
|
7716
7719
|
var TextField = React.forwardRef(function (_a, ref) {
|
|
7717
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled
|
|
7720
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled, useBareBoneInput = _a.useBareBoneInput, onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, onKeyDown = _a.onKeyDown, size = _a.size, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName", "onKeyDown", "size"]);
|
|
7718
7721
|
var cLabel = label;
|
|
7719
7722
|
var timeoutRef = React.useRef(undefined);
|
|
7720
7723
|
function onChangeHandler(e) {
|
|
@@ -7763,7 +7766,7 @@ var TextField = React.forwardRef(function (_a, ref) {
|
|
|
7763
7766
|
inputProps = __assign({ maxLength: 256 }, inputProps);
|
|
7764
7767
|
return React.createElement(Box, { className: "textfield-component-v2 ".concat(className, " ").concat(disabled ? "disabled" : "", " ").concat(size) },
|
|
7765
7768
|
iconName && React.createElement(Icon, { name: iconName }),
|
|
7766
|
-
React.createElement(MUITextField, __assign({}, props, { inputProps: inputProps, onChange: onChangeHandler, label: cLabel, disabled: disabled, onKeyDown: handleKeyDown, multiline: multiline, inputRef: ref, size: size })));
|
|
7769
|
+
React.createElement(MUITextField, __assign({}, props, { inputProps: inputProps, onChange: useBareBoneInput ? onChange : onChangeHandler, label: cLabel, disabled: disabled, onKeyDown: handleKeyDown, multiline: multiline, inputRef: ref, size: size })));
|
|
7767
7770
|
});
|
|
7768
7771
|
|
|
7769
7772
|
var css_248z$u = ".assetmanager-component-v2 {\n box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);\n background: var(--background-color-1, var(--white, #FFFFFF));\n min-width: 25rem;\n width: 100%;\n}\n.assetmanager-component-v2 .loadingContainer-component-v2 {\n padding: 3rem;\n}\n.assetmanager-component-v2 .container {\n padding: 0.75rem;\n}\n.assetmanager-component-v2 .container > div.textInputContainer {\n display: flex;\n border: solid 1px var(--wild-sand, #dddddd);\n border-radius: 6px;\n justify-content: flex-start;\n align-items: center;\n}\n.assetmanager-component-v2 .container > div.textInputContainer > div .MuiSvgIcon-root {\n display: block;\n cursor: pointer;\n}\n.assetmanager-component-v2 .container > div.textInputContainer > div:first-child {\n padding: 0 0.75rem 0 0.75rem;\n height: 100%;\n}\n.assetmanager-component-v2 .container > div.textInputContainer > div:last-child:not(.textfield-component-v2) {\n padding: 0 0.875rem;\n height: 100%;\n}\n.assetmanager-component-v2 .container > div.textInputContainer .textfield-component-v2 {\n width: 100%;\n}\n.assetmanager-component-v2 .container > div.textInputContainer .textfield-component-v2 fieldset {\n outline: none !important;\n border: none !important;\n}\n.assetmanager-component-v2 .container > div.textInputContainer .textfield-component-v2 input {\n padding: 0.5rem 0 !important;\n}\n.assetmanager-component-v2 .container .optionsListingContainer {\n padding: 0 1.25rem 0.5rem 1.25rem;\n margin: 1.25rem 0 0.5rem 0;\n max-height: 20rem;\n overflow-y: auto;\n}\n.assetmanager-component-v2 .container .optionsListingContainer button {\n text-transform: capitalize;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar {\n display: block;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-track:horizontal {\n position: absolute;\n bottom: -20px;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-track:vertical {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 8px !important;\n border-top-right-radius: 8px !important;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-track {\n height: 2.5rem;\n width: 2.5rem;\n padding: 2rem;\n background-clip: content-box;\n border-bottom-left-radius: 8px;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-thumb {\n background: var(--body-font-color-2, var(--silver, #9B9B9B));\n border-radius: 24px;\n border-top: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n border-bottom: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n border-right: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n border-left: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n}\n.assetmanager-component-v2 .container .optionsListingContainer > div:first-child:not(.listItem) {\n padding-bottom: 0.75rem;\n text-transform: uppercase;\n font-weight: 700;\n color: var(--body-font-color, var(--dark-matter, #2B2B2B));\n}\n.assetmanager-component-v2 .container .optionsListingContainer > p.h8 {\n margin-bottom: 1rem;\n color: var(--body-font-color, var(--dark-matter, #2B2B2B));\n}\n.assetmanager-component-v2 .container .optionsListingContainer p.h8 {\n flex: 1;\n font-family: proxima-nova, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif;\n text-transform: uppercase;\n font-weight: 700;\n line-height: 1rem;\n font-size: 0.75rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem {\n display: flex;\n justify-content: space-between;\n align-items: center;\n min-height: 2rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem p.h8 {\n color: var(--body-font-color-2, var(--silver, #9B9B9B));\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem > .MuiSvgIcon-root {\n margin-right: 1rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem.selected p.h8 {\n color: var(--secondary-brand-color, var(--teal, #0ABDAE));\n padding-right: 1rem;\n max-width: 100%;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem.selected .MuiSvgIcon-root span svg path {\n fill: var(--secondary-brand-color, var(--teal, #0ABDAE));\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem .buttonContainer {\n margin-left: 1rem;\n visibility: hidden;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem .buttonContainer button:nth-child(2) {\n margin-left: 0.5rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem:hover .buttonContainer {\n visibility: visible;\n}\n.assetmanager-component-v2 > button:last-child {\n width: 100%;\n text-transform: uppercase;\n font-family: proxima-nova, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif;\n height: 3rem;\n border-top: 1px solid var(--wild-sand, #dddddd) !important;\n outline: none;\n border-radius: 0;\n font-weight: 700;\n}";
|
|
@@ -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";
|
|
@@ -19699,7 +19838,7 @@ var PhoneTextField = function (_a) {
|
|
|
19699
19838
|
React.useEffect(function () {
|
|
19700
19839
|
setCountry(defaultCountry);
|
|
19701
19840
|
}, [defaultCountry]);
|
|
19702
|
-
return (React.createElement(TextField, __assign({ value: inputValue, onChange: handlePhoneValueChange, type: "tel", inputRef: inputRef, className: "phoneTextField-component-v2 ".concat(className),
|
|
19841
|
+
return (React.createElement(TextField, __assign({ useBareBoneInput: true, value: inputValue, onChange: handlePhoneValueChange, type: "tel", inputRef: inputRef, className: "phoneTextField-component-v2 ".concat(className),
|
|
19703
19842
|
//@ts-ignore
|
|
19704
19843
|
InputProps: {
|
|
19705
19844
|
startAdornment: (React.createElement(material.InputAdornment, { position: "start", sx: { marginRight: 0 } },
|
|
@@ -20095,6 +20234,41 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
20095
20234
|
return CustomDomainsFactory;
|
|
20096
20235
|
}());
|
|
20097
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
|
+
|
|
20098
20272
|
exports.EEmailLogType = void 0;
|
|
20099
20273
|
(function (EEmailLogType) {
|
|
20100
20274
|
EEmailLogType["submitted"] = "submitted";
|
|
@@ -20987,6 +21161,8 @@ exports.TextField = TextField;
|
|
|
20987
21161
|
exports.TimePicker = TimePicker;
|
|
20988
21162
|
exports.TimeSelector = TimeSelector;
|
|
20989
21163
|
exports.Toggle = Toggle;
|
|
21164
|
+
exports.TopDomainModel = TopDomainModel;
|
|
21165
|
+
exports.TopDomainsFactory = TopDomainsFactory;
|
|
20990
21166
|
exports.TopMenu = TopMenu;
|
|
20991
21167
|
exports.Typography = Typography;
|
|
20992
21168
|
exports.UserModel = UserModel;
|
|
@@ -21024,6 +21200,7 @@ exports.createPopup = createPopup;
|
|
|
21024
21200
|
exports.createSender = createSender;
|
|
21025
21201
|
exports.createSuppressedEmailExport = createSuppressedEmailExport;
|
|
21026
21202
|
exports.createTemplate = createTemplate;
|
|
21203
|
+
exports.createTopDomain = createTopDomain;
|
|
21027
21204
|
exports.deepMergeObject = deepMergeObject;
|
|
21028
21205
|
exports.deleteAccount = deleteAccount;
|
|
21029
21206
|
exports.deleteAnyAutomation = deleteAnyAutomation;
|
|
@@ -21042,6 +21219,7 @@ exports.deleteStorageItem = deleteStorageItem;
|
|
|
21042
21219
|
exports.deleteSuppressedEmail = deleteSuppressedEmail;
|
|
21043
21220
|
exports.deleteTaskService = deleteTaskService;
|
|
21044
21221
|
exports.deleteTemplate = deleteTemplate;
|
|
21222
|
+
exports.deleteTopDomain = deleteTopDomain;
|
|
21045
21223
|
exports.deleteUser = deleteUser;
|
|
21046
21224
|
exports.deleteWorkflow = deleteWorkflow;
|
|
21047
21225
|
exports.descendingComparator = descendingComparator;
|
|
@@ -21127,6 +21305,7 @@ exports.getSuppressedEmailExport = getSuppressedEmailExport;
|
|
|
21127
21305
|
exports.getTColor = getTColor;
|
|
21128
21306
|
exports.getTaskService = getTaskService;
|
|
21129
21307
|
exports.getTemplate = getTemplate;
|
|
21308
|
+
exports.getTopDomain = getTopDomain;
|
|
21130
21309
|
exports.getUnixTime = getUnixTime;
|
|
21131
21310
|
exports.getUrlQueryParam = getUrlQueryParam;
|
|
21132
21311
|
exports.getUser = getUser;
|
|
@@ -21165,6 +21344,7 @@ exports.listSuppressedEmails = listSuppressedEmails;
|
|
|
21165
21344
|
exports.listSystemEmails = listSystemEmails;
|
|
21166
21345
|
exports.listTasksService = listTasksService;
|
|
21167
21346
|
exports.listTemplates = listTemplates;
|
|
21347
|
+
exports.listTopDomains = listTopDomains;
|
|
21168
21348
|
exports.listUsers = listUsers;
|
|
21169
21349
|
exports.listWorkflows = listWorkflows;
|
|
21170
21350
|
exports.logOutService = logOutService;
|
|
@@ -21238,6 +21418,7 @@ exports.updateWorkflow = updateWorkflow;
|
|
|
21238
21418
|
exports.validateColor = validateColor;
|
|
21239
21419
|
exports.validateEmail = validateEmail;
|
|
21240
21420
|
exports.validateGenericInput = validateGenericInput;
|
|
21421
|
+
exports.validateTopDomain = validateTopDomain;
|
|
21241
21422
|
exports.validateUrl = validateUrl;
|
|
21242
21423
|
exports.verifyCustomDomain = verifyCustomDomain;
|
|
21243
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";
|
|
@@ -7694,7 +7697,7 @@ var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfiel
|
|
|
7694
7697
|
styleInject(css_248z$v);
|
|
7695
7698
|
|
|
7696
7699
|
var TextField = forwardRef(function (_a, ref) {
|
|
7697
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled
|
|
7700
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled, useBareBoneInput = _a.useBareBoneInput, onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, onKeyDown = _a.onKeyDown, size = _a.size, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName", "onKeyDown", "size"]);
|
|
7698
7701
|
var cLabel = label;
|
|
7699
7702
|
var timeoutRef = useRef(undefined);
|
|
7700
7703
|
function onChangeHandler(e) {
|
|
@@ -7743,7 +7746,7 @@ var TextField = forwardRef(function (_a, ref) {
|
|
|
7743
7746
|
inputProps = __assign({ maxLength: 256 }, inputProps);
|
|
7744
7747
|
return React__default.createElement(Box$1, { className: "textfield-component-v2 ".concat(className, " ").concat(disabled ? "disabled" : "", " ").concat(size) },
|
|
7745
7748
|
iconName && React__default.createElement(Icon, { name: iconName }),
|
|
7746
|
-
React__default.createElement(MUITextField, __assign({}, props, { inputProps: inputProps, onChange: onChangeHandler, label: cLabel, disabled: disabled, onKeyDown: handleKeyDown, multiline: multiline, inputRef: ref, size: size })));
|
|
7749
|
+
React__default.createElement(MUITextField, __assign({}, props, { inputProps: inputProps, onChange: useBareBoneInput ? onChange : onChangeHandler, label: cLabel, disabled: disabled, onKeyDown: handleKeyDown, multiline: multiline, inputRef: ref, size: size })));
|
|
7747
7750
|
});
|
|
7748
7751
|
|
|
7749
7752
|
var css_248z$u = ".assetmanager-component-v2 {\n box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);\n background: var(--background-color-1, var(--white, #FFFFFF));\n min-width: 25rem;\n width: 100%;\n}\n.assetmanager-component-v2 .loadingContainer-component-v2 {\n padding: 3rem;\n}\n.assetmanager-component-v2 .container {\n padding: 0.75rem;\n}\n.assetmanager-component-v2 .container > div.textInputContainer {\n display: flex;\n border: solid 1px var(--wild-sand, #dddddd);\n border-radius: 6px;\n justify-content: flex-start;\n align-items: center;\n}\n.assetmanager-component-v2 .container > div.textInputContainer > div .MuiSvgIcon-root {\n display: block;\n cursor: pointer;\n}\n.assetmanager-component-v2 .container > div.textInputContainer > div:first-child {\n padding: 0 0.75rem 0 0.75rem;\n height: 100%;\n}\n.assetmanager-component-v2 .container > div.textInputContainer > div:last-child:not(.textfield-component-v2) {\n padding: 0 0.875rem;\n height: 100%;\n}\n.assetmanager-component-v2 .container > div.textInputContainer .textfield-component-v2 {\n width: 100%;\n}\n.assetmanager-component-v2 .container > div.textInputContainer .textfield-component-v2 fieldset {\n outline: none !important;\n border: none !important;\n}\n.assetmanager-component-v2 .container > div.textInputContainer .textfield-component-v2 input {\n padding: 0.5rem 0 !important;\n}\n.assetmanager-component-v2 .container .optionsListingContainer {\n padding: 0 1.25rem 0.5rem 1.25rem;\n margin: 1.25rem 0 0.5rem 0;\n max-height: 20rem;\n overflow-y: auto;\n}\n.assetmanager-component-v2 .container .optionsListingContainer button {\n text-transform: capitalize;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar {\n display: block;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-track:horizontal {\n position: absolute;\n bottom: -20px;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-track:vertical {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 8px !important;\n border-top-right-radius: 8px !important;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-track {\n height: 2.5rem;\n width: 2.5rem;\n padding: 2rem;\n background-clip: content-box;\n border-bottom-left-radius: 8px;\n}\n.assetmanager-component-v2 .container .optionsListingContainer::-webkit-scrollbar-thumb {\n background: var(--body-font-color-2, var(--silver, #9B9B9B));\n border-radius: 24px;\n border-top: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n border-bottom: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n border-right: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n border-left: 5px solid var(--background-color-1, var(--white, #FFFFFF));\n}\n.assetmanager-component-v2 .container .optionsListingContainer > div:first-child:not(.listItem) {\n padding-bottom: 0.75rem;\n text-transform: uppercase;\n font-weight: 700;\n color: var(--body-font-color, var(--dark-matter, #2B2B2B));\n}\n.assetmanager-component-v2 .container .optionsListingContainer > p.h8 {\n margin-bottom: 1rem;\n color: var(--body-font-color, var(--dark-matter, #2B2B2B));\n}\n.assetmanager-component-v2 .container .optionsListingContainer p.h8 {\n flex: 1;\n font-family: proxima-nova, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif;\n text-transform: uppercase;\n font-weight: 700;\n line-height: 1rem;\n font-size: 0.75rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem {\n display: flex;\n justify-content: space-between;\n align-items: center;\n min-height: 2rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem p.h8 {\n color: var(--body-font-color-2, var(--silver, #9B9B9B));\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem > .MuiSvgIcon-root {\n margin-right: 1rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem.selected p.h8 {\n color: var(--secondary-brand-color, var(--teal, #0ABDAE));\n padding-right: 1rem;\n max-width: 100%;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem.selected .MuiSvgIcon-root span svg path {\n fill: var(--secondary-brand-color, var(--teal, #0ABDAE));\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem .buttonContainer {\n margin-left: 1rem;\n visibility: hidden;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem .buttonContainer button:nth-child(2) {\n margin-left: 0.5rem;\n}\n.assetmanager-component-v2 .container .optionsListingContainer .listItem:hover .buttonContainer {\n visibility: visible;\n}\n.assetmanager-component-v2 > button:last-child {\n width: 100%;\n text-transform: uppercase;\n font-family: proxima-nova, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif;\n height: 3rem;\n border-top: 1px solid var(--wild-sand, #dddddd) !important;\n outline: none;\n border-radius: 0;\n font-weight: 700;\n}";
|
|
@@ -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";
|
|
@@ -19679,7 +19818,7 @@ var PhoneTextField = function (_a) {
|
|
|
19679
19818
|
useEffect(function () {
|
|
19680
19819
|
setCountry(defaultCountry);
|
|
19681
19820
|
}, [defaultCountry]);
|
|
19682
|
-
return (React__default.createElement(TextField, __assign({ value: inputValue, onChange: handlePhoneValueChange, type: "tel", inputRef: inputRef, className: "phoneTextField-component-v2 ".concat(className),
|
|
19821
|
+
return (React__default.createElement(TextField, __assign({ useBareBoneInput: true, value: inputValue, onChange: handlePhoneValueChange, type: "tel", inputRef: inputRef, className: "phoneTextField-component-v2 ".concat(className),
|
|
19683
19822
|
//@ts-ignore
|
|
19684
19823
|
InputProps: {
|
|
19685
19824
|
startAdornment: (React__default.createElement(InputAdornment, { position: "start", sx: { marginRight: 0 } },
|
|
@@ -20075,6 +20214,41 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
20075
20214
|
return CustomDomainsFactory;
|
|
20076
20215
|
}());
|
|
20077
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
|
+
|
|
20078
20252
|
var EEmailLogType;
|
|
20079
20253
|
(function (EEmailLogType) {
|
|
20080
20254
|
EEmailLogType["submitted"] = "submitted";
|
|
@@ -20854,4 +21028,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
20854
21028
|
return UsersFactory;
|
|
20855
21029
|
}());
|
|
20856
21030
|
|
|
20857
|
-
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",
|