@cakemail-org/ui-components-v2 2.2.28 → 2.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +42 -0
- package/dist/cjs/models/sender/index.d.ts +4 -1
- package/dist/cjs/models/sender/types.d.ts +5 -0
- package/dist/cjs/services/senders/index.d.ts +6 -0
- package/dist/esm/index.js +41 -1
- package/dist/esm/models/sender/index.d.ts +4 -1
- package/dist/esm/models/sender/types.d.ts +5 -0
- package/dist/esm/services/senders/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -11266,6 +11266,24 @@ function getSender(_a) {
|
|
|
11266
11266
|
}
|
|
11267
11267
|
});
|
|
11268
11268
|
}
|
|
11269
|
+
function resendEmail(_a) {
|
|
11270
|
+
var id = _a.id;
|
|
11271
|
+
return callApi({
|
|
11272
|
+
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/senders/".concat(id, "/resend-confirmation-email"),
|
|
11273
|
+
fetchOptions: {
|
|
11274
|
+
method: exports.EMethods.post
|
|
11275
|
+
}
|
|
11276
|
+
});
|
|
11277
|
+
}
|
|
11278
|
+
function deleteSender(_a) {
|
|
11279
|
+
var id = _a.id;
|
|
11280
|
+
return callApi({
|
|
11281
|
+
url: uiKitConfig.GATEWAY_PROXY + "brands/default/senders/".concat(id),
|
|
11282
|
+
fetchOptions: {
|
|
11283
|
+
method: exports.EMethods.delete
|
|
11284
|
+
}
|
|
11285
|
+
});
|
|
11286
|
+
}
|
|
11269
11287
|
|
|
11270
11288
|
function addSuppressedEmail(_a) {
|
|
11271
11289
|
var email = _a.email;
|
|
@@ -18903,6 +18921,28 @@ var SenderModel = /** @class */ (function () {
|
|
|
18903
18921
|
SenderModel.prototype.set = function (property, value) {
|
|
18904
18922
|
modelSet(this, property, value);
|
|
18905
18923
|
};
|
|
18924
|
+
SenderModel.prototype.resendVerificationEmail = function () {
|
|
18925
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18926
|
+
var _this = this;
|
|
18927
|
+
return __generator(this, function (_a) {
|
|
18928
|
+
return [2 /*return*/, resendEmail({ id: this.id }).then(function (data) {
|
|
18929
|
+
trackEvent(exports.EEvents.SENDER_CONFIRMATION_SENT, { id: _this.id });
|
|
18930
|
+
return data.data;
|
|
18931
|
+
})];
|
|
18932
|
+
});
|
|
18933
|
+
});
|
|
18934
|
+
};
|
|
18935
|
+
SenderModel.prototype.delete = function () {
|
|
18936
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18937
|
+
var _this = this;
|
|
18938
|
+
return __generator(this, function (_a) {
|
|
18939
|
+
return [2 /*return*/, deleteSender({ id: this.id }).then(function (data) {
|
|
18940
|
+
trackEvent(exports.EEvents.SENDER_DELETED, { id: _this.id });
|
|
18941
|
+
return data;
|
|
18942
|
+
})];
|
|
18943
|
+
});
|
|
18944
|
+
});
|
|
18945
|
+
};
|
|
18906
18946
|
return SenderModel;
|
|
18907
18947
|
}());
|
|
18908
18948
|
|
|
@@ -19817,6 +19857,7 @@ exports.deleteList = deleteList;
|
|
|
19817
19857
|
exports.deletePage = deletePage;
|
|
19818
19858
|
exports.deletePartialInformation = deletePartialInformation;
|
|
19819
19859
|
exports.deletePopup = deletePopup;
|
|
19860
|
+
exports.deleteSender = deleteSender;
|
|
19820
19861
|
exports.deleteStorageItem = deleteStorageItem;
|
|
19821
19862
|
exports.deleteSuppressedEmail = deleteSuppressedEmail;
|
|
19822
19863
|
exports.deleteTaskService = deleteTaskService;
|
|
@@ -19957,6 +19998,7 @@ exports.renderPopup = renderPopup;
|
|
|
19957
19998
|
exports.renderPublicHtmlForm = renderPublicHtmlForm;
|
|
19958
19999
|
exports.renderTemplate = renderTemplate;
|
|
19959
20000
|
exports.requestSupportService = requestSupportService;
|
|
20001
|
+
exports.resendEmail = resendEmail;
|
|
19960
20002
|
exports.resendVerificationEmail = resendVerificationEmail;
|
|
19961
20003
|
exports.resumeCampaign = resumeCampaign;
|
|
19962
20004
|
exports.saveList = saveList;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { TSenderModel } from "./types";
|
|
1
|
+
import { TSenderModel, TSenderVerificationEmailResponse } from "./types";
|
|
2
|
+
import { TDeleteApiResource } from "../../types";
|
|
2
3
|
export declare class SenderModel {
|
|
3
4
|
readonly id: number;
|
|
4
5
|
name: string;
|
|
@@ -10,5 +11,7 @@ export declare class SenderModel {
|
|
|
10
11
|
constructor({ id, name, email, confirmed, confirmed_on, language, last_confirmation_sent_on }: TSenderModel);
|
|
11
12
|
toJson(): any;
|
|
12
13
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
14
|
+
resendVerificationEmail(): Promise<TSenderVerificationEmailResponse>;
|
|
15
|
+
delete(): Promise<TDeleteApiResource>;
|
|
13
16
|
}
|
|
14
17
|
export * from "./types";
|
|
@@ -6,4 +6,10 @@ export declare function listSenders({ useImpersonationTree, ...options }: TGener
|
|
|
6
6
|
export declare function getSender({ id }: {
|
|
7
7
|
id: TNumStr;
|
|
8
8
|
}): Promise<any>;
|
|
9
|
+
export declare function resendEmail({ id }: {
|
|
10
|
+
id: TNumStr;
|
|
11
|
+
}): Promise<any>;
|
|
12
|
+
export declare function deleteSender({ id }: {
|
|
13
|
+
id: number;
|
|
14
|
+
}): Promise<any>;
|
|
9
15
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -11246,6 +11246,24 @@ function getSender(_a) {
|
|
|
11246
11246
|
}
|
|
11247
11247
|
});
|
|
11248
11248
|
}
|
|
11249
|
+
function resendEmail(_a) {
|
|
11250
|
+
var id = _a.id;
|
|
11251
|
+
return callApi({
|
|
11252
|
+
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/senders/".concat(id, "/resend-confirmation-email"),
|
|
11253
|
+
fetchOptions: {
|
|
11254
|
+
method: EMethods.post
|
|
11255
|
+
}
|
|
11256
|
+
});
|
|
11257
|
+
}
|
|
11258
|
+
function deleteSender(_a) {
|
|
11259
|
+
var id = _a.id;
|
|
11260
|
+
return callApi({
|
|
11261
|
+
url: uiKitConfig.GATEWAY_PROXY + "brands/default/senders/".concat(id),
|
|
11262
|
+
fetchOptions: {
|
|
11263
|
+
method: EMethods.delete
|
|
11264
|
+
}
|
|
11265
|
+
});
|
|
11266
|
+
}
|
|
11249
11267
|
|
|
11250
11268
|
function addSuppressedEmail(_a) {
|
|
11251
11269
|
var email = _a.email;
|
|
@@ -18883,6 +18901,28 @@ var SenderModel = /** @class */ (function () {
|
|
|
18883
18901
|
SenderModel.prototype.set = function (property, value) {
|
|
18884
18902
|
modelSet(this, property, value);
|
|
18885
18903
|
};
|
|
18904
|
+
SenderModel.prototype.resendVerificationEmail = function () {
|
|
18905
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18906
|
+
var _this = this;
|
|
18907
|
+
return __generator(this, function (_a) {
|
|
18908
|
+
return [2 /*return*/, resendEmail({ id: this.id }).then(function (data) {
|
|
18909
|
+
trackEvent(EEvents.SENDER_CONFIRMATION_SENT, { id: _this.id });
|
|
18910
|
+
return data.data;
|
|
18911
|
+
})];
|
|
18912
|
+
});
|
|
18913
|
+
});
|
|
18914
|
+
};
|
|
18915
|
+
SenderModel.prototype.delete = function () {
|
|
18916
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18917
|
+
var _this = this;
|
|
18918
|
+
return __generator(this, function (_a) {
|
|
18919
|
+
return [2 /*return*/, deleteSender({ id: this.id }).then(function (data) {
|
|
18920
|
+
trackEvent(EEvents.SENDER_DELETED, { id: _this.id });
|
|
18921
|
+
return data;
|
|
18922
|
+
})];
|
|
18923
|
+
});
|
|
18924
|
+
});
|
|
18925
|
+
};
|
|
18886
18926
|
return SenderModel;
|
|
18887
18927
|
}());
|
|
18888
18928
|
|
|
@@ -19643,4 +19683,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
19643
19683
|
return UsersFactory;
|
|
19644
19684
|
}());
|
|
19645
19685
|
|
|
19646
|
-
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationModel, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailStatuses, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPageBranding, EPartialInfoPool, EPopupBranding, EPopupBrowserType, EPopupCloseButtonPosition, EPopupDeviceType, EPopupDisplayFrequency, EPopupPosition, EPopupTriggerType, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListPageModel, ListPopupModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, Overlay, OverlayHandler, OverlayHeading, PageModel, PagesFactory, PhoneTextField, PopupModel, PopupsFactory, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, 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, connectToZendeskSupportService, copyToClipboard, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createContactsExport, createForm, createPage, createPopup, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteAccount, deleteAnyAutomation, deleteAutomation, deleteCampaign, deleteCampaignsReportsExport, deleteContact, deleteForm, deleteList, deletePage, deletePartialInformation, deletePopup, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteUser, deleteWorkflow, descendingComparator, disableForm, disablePage, disablePopup, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enablePage, enablePopup, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getAllAutomationStats, getAutomation, getAutomationEmailContent, getAutomationExecutionsCount, getAutomationStats, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getContactsExport, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPage, getPopup, getPropertyValue, getSender, getStartOfDate, getStorage, getSuppressedEmailExport, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listAutomations, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listPages, listPopups, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, listWorkflows, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, publishPage, publishPopup, reScheduleCampaign, removeEmptyProperties, removeInterestsFromContactsOfList, removeQueryParams, removeTrailingChar, renderCampaign, renderEmail, renderForm, renderPage, renderPopup, renderPublicHtmlForm, renderTemplate, requestSupportService, resendVerificationEmail, resumeCampaign, saveList, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendAccount, suspendCampaign, tagContact, tagsContactsOfList, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unSuspendAccount, unshareTemplate, unsubscribeContact, untagContact, untagContactsOfList, updateAccount, updateAndClearUrlParams, updateAnyAutomation, updateAutomation, updateCampaign, updatePage, updatePopup, updateSystemEmails, updateTemplate, updateUser, updateWorkflow, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
|
|
19686
|
+
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationModel, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailStatuses, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPageBranding, EPartialInfoPool, EPopupBranding, EPopupBrowserType, EPopupCloseButtonPosition, EPopupDeviceType, EPopupDisplayFrequency, EPopupPosition, EPopupTriggerType, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListPageModel, ListPopupModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, Overlay, OverlayHandler, OverlayHeading, PageModel, PagesFactory, PhoneTextField, PopupModel, PopupsFactory, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, 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, connectToZendeskSupportService, copyToClipboard, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createContactsExport, createForm, createPage, createPopup, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteAccount, deleteAnyAutomation, deleteAutomation, deleteCampaign, deleteCampaignsReportsExport, deleteContact, deleteForm, deleteList, deletePage, deletePartialInformation, deletePopup, deleteSender, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteUser, deleteWorkflow, descendingComparator, disableForm, disablePage, disablePopup, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enablePage, enablePopup, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getAllAutomationStats, getAutomation, getAutomationEmailContent, getAutomationExecutionsCount, getAutomationStats, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getContactsExport, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPage, getPopup, getPropertyValue, getSender, getStartOfDate, getStorage, getSuppressedEmailExport, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listAutomations, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listPages, listPopups, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, listWorkflows, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, publishPage, publishPopup, reScheduleCampaign, removeEmptyProperties, removeInterestsFromContactsOfList, removeQueryParams, removeTrailingChar, renderCampaign, renderEmail, renderForm, renderPage, renderPopup, renderPublicHtmlForm, renderTemplate, requestSupportService, resendEmail, resendVerificationEmail, resumeCampaign, saveList, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendAccount, suspendCampaign, tagContact, tagsContactsOfList, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unSuspendAccount, unshareTemplate, unsubscribeContact, untagContact, untagContactsOfList, updateAccount, updateAndClearUrlParams, updateAnyAutomation, updateAutomation, updateCampaign, updatePage, updatePopup, updateSystemEmails, updateTemplate, updateUser, updateWorkflow, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { TSenderModel } from "./types";
|
|
1
|
+
import { TSenderModel, TSenderVerificationEmailResponse } from "./types";
|
|
2
|
+
import { TDeleteApiResource } from "../../types";
|
|
2
3
|
export declare class SenderModel {
|
|
3
4
|
readonly id: number;
|
|
4
5
|
name: string;
|
|
@@ -10,5 +11,7 @@ export declare class SenderModel {
|
|
|
10
11
|
constructor({ id, name, email, confirmed, confirmed_on, language, last_confirmation_sent_on }: TSenderModel);
|
|
11
12
|
toJson(): any;
|
|
12
13
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
14
|
+
resendVerificationEmail(): Promise<TSenderVerificationEmailResponse>;
|
|
15
|
+
delete(): Promise<TDeleteApiResource>;
|
|
13
16
|
}
|
|
14
17
|
export * from "./types";
|
|
@@ -6,4 +6,10 @@ export declare function listSenders({ useImpersonationTree, ...options }: TGener
|
|
|
6
6
|
export declare function getSender({ id }: {
|
|
7
7
|
id: TNumStr;
|
|
8
8
|
}): Promise<any>;
|
|
9
|
+
export declare function resendEmail({ id }: {
|
|
10
|
+
id: TNumStr;
|
|
11
|
+
}): Promise<any>;
|
|
12
|
+
export declare function deleteSender({ id }: {
|
|
13
|
+
id: number;
|
|
14
|
+
}): Promise<any>;
|
|
9
15
|
export * from "./types";
|