@cakemail-org/ui-components-v2 2.1.49 → 2.1.50

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 CHANGED
@@ -9713,6 +9713,109 @@ var AccountModel = /** @class */ (function () {
9713
9713
  return AccountModel;
9714
9714
  }());
9715
9715
 
9716
+ function listUsers(_a) {
9717
+ var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
9718
+ return callApi({
9719
+ url: uiKitConfig.GATEWAY_PROXY + "/users",
9720
+ query: camelCase(options),
9721
+ fetchOptions: {
9722
+ method: exports.EMethods.get
9723
+ },
9724
+ useImpersonationTree: useImpersonationTree
9725
+ });
9726
+ }
9727
+ function getUser(_a) {
9728
+ var id = _a.id;
9729
+ return callApi({
9730
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9731
+ fetchOptions: {
9732
+ method: exports.EMethods.get
9733
+ }
9734
+ });
9735
+ }
9736
+ function updateUser(_a) {
9737
+ var id = _a.id, data = _a.data;
9738
+ return callApi({
9739
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9740
+ fetchOptions: {
9741
+ method: exports.EMethods.patch,
9742
+ body: data
9743
+ }
9744
+ });
9745
+ }
9746
+ function deleteUser(_a) {
9747
+ var id = _a.id;
9748
+ return callApi({
9749
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9750
+ fetchOptions: {
9751
+ method: exports.EMethods.delete
9752
+ }
9753
+ });
9754
+ }
9755
+ function resendVerificationEmail(_a) {
9756
+ var id = _a.id;
9757
+ return callApi({
9758
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id + "/resend-verification-email",
9759
+ fetchOptions: {
9760
+ method: exports.EMethods.post
9761
+ }
9762
+ });
9763
+ }
9764
+
9765
+ var UserModel = /** @class */ (function () {
9766
+ function UserModel(_a) {
9767
+ var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
9768
+ this.id = id || 0;
9769
+ this.email = email || "";
9770
+ this.status = status || "";
9771
+ this.created_on = created_on || 0;
9772
+ this.last_activity_on = last_activity_on || 0;
9773
+ this.expires_on = expires_on || 0;
9774
+ this.first_name = first_name || "";
9775
+ this.last_name = last_name || "";
9776
+ this.title = title || "";
9777
+ this.language = language || "en_US";
9778
+ this.timezone = timezone || "";
9779
+ this.office_phone = office_phone || "";
9780
+ this.mobile_phone = mobile_phone || "";
9781
+ }
9782
+ UserModel.prototype.toJson = function () {
9783
+ return modelToJson(this);
9784
+ };
9785
+ UserModel.prototype.set = function (property, value) {
9786
+ modelSet(this, property, value);
9787
+ };
9788
+ UserModel.prototype.update = function (user) {
9789
+ return __awaiter(this, void 0, void 0, function () {
9790
+ return __generator(this, function (_a) {
9791
+ return [2 /*return*/, updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
9792
+ trackEvent(exports.EEvents.USER_UPDATED);
9793
+ return new UserModel(data.data);
9794
+ })];
9795
+ });
9796
+ });
9797
+ };
9798
+ UserModel.prototype.delete = function () {
9799
+ return __awaiter(this, void 0, void 0, function () {
9800
+ return __generator(this, function (_a) {
9801
+ return [2 /*return*/, deleteUser({ id: this.id }).then(function (data) {
9802
+ return data.data;
9803
+ })];
9804
+ });
9805
+ });
9806
+ };
9807
+ UserModel.prototype.resendVerificationEmail = function () {
9808
+ return __awaiter(this, void 0, void 0, function () {
9809
+ return __generator(this, function (_a) {
9810
+ return [2 /*return*/, resendVerificationEmail({ id: this.id }).then(function (data) {
9811
+ return data.data;
9812
+ })];
9813
+ });
9814
+ });
9815
+ };
9816
+ return UserModel;
9817
+ }());
9818
+
9716
9819
  function amILoggedInService() {
9717
9820
  return callApi({
9718
9821
  url: uiKitConfig.GATEWAY_PROXY + "/amiloggedin",
@@ -10643,69 +10746,6 @@ function unshareTemplate(_a) {
10643
10746
  });
10644
10747
  }
10645
10748
 
10646
- function listUsers(_a) {
10647
- var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
10648
- return callApi({
10649
- url: uiKitConfig.GATEWAY_PROXY + "/users",
10650
- query: camelCase(options),
10651
- fetchOptions: {
10652
- method: exports.EMethods.get
10653
- },
10654
- useImpersonationTree: useImpersonationTree
10655
- });
10656
- }
10657
- function getUser(_a) {
10658
- var id = _a.id;
10659
- return callApi({
10660
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10661
- fetchOptions: {
10662
- method: exports.EMethods.get
10663
- }
10664
- });
10665
- }
10666
- function updateUser(_a) {
10667
- var id = _a.id, data = _a.data;
10668
- return callApi({
10669
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10670
- fetchOptions: {
10671
- method: exports.EMethods.patch,
10672
- body: data
10673
- }
10674
- });
10675
- }
10676
-
10677
- var UserModel = /** @class */ (function () {
10678
- function UserModel(_a) {
10679
- var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
10680
- this.id = id || 0;
10681
- this.email = email || "";
10682
- this.status = status || "";
10683
- this.created_on = created_on || 0;
10684
- this.last_activity_on = last_activity_on || 0;
10685
- this.expires_on = expires_on || 0;
10686
- this.first_name = first_name || "";
10687
- this.last_name = last_name || "";
10688
- this.title = title || "";
10689
- this.language = language || "en_US";
10690
- this.timezone = timezone || "";
10691
- this.office_phone = office_phone || "";
10692
- this.mobile_phone = mobile_phone || "";
10693
- }
10694
- UserModel.prototype.toJson = function () {
10695
- return modelToJson(this);
10696
- };
10697
- UserModel.prototype.set = function (property, value) {
10698
- modelSet(this, property, value);
10699
- };
10700
- UserModel.prototype.update = function (user) {
10701
- return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
10702
- trackEvent(exports.EEvents.USER_UPDATED);
10703
- return new UserModel(data.data);
10704
- });
10705
- };
10706
- return UserModel;
10707
- }());
10708
-
10709
10749
  var GenericWrapperContext = React.createContext({
10710
10750
  partnerBrand: {},
10711
10751
  userBrand: undefined,
@@ -18428,6 +18468,7 @@ exports.deleteStorageItem = deleteStorageItem;
18428
18468
  exports.deleteSuppressedEmail = deleteSuppressedEmail;
18429
18469
  exports.deleteTaskService = deleteTaskService;
18430
18470
  exports.deleteTemplate = deleteTemplate;
18471
+ exports.deleteUser = deleteUser;
18431
18472
  exports.descendingComparator = descendingComparator;
18432
18473
  exports.disableForm = disableForm;
18433
18474
  exports.downloadCampaignLogExport = downloadCampaignLogExport;
@@ -18540,6 +18581,7 @@ exports.renderForm = renderForm;
18540
18581
  exports.renderPublicHtmlForm = renderPublicHtmlForm;
18541
18582
  exports.renderTemplate = renderTemplate;
18542
18583
  exports.requestSupportService = requestSupportService;
18584
+ exports.resendVerificationEmail = resendVerificationEmail;
18543
18585
  exports.resumeCampaign = resumeCampaign;
18544
18586
  exports.saveList = saveList;
18545
18587
  exports.scheduleCampaign = scheduleCampaign;
@@ -1,4 +1,4 @@
1
- import { TUserModel, TUserModelUpdate } from "./types";
1
+ import { TDeleteUserResponse, TResendVerificationEmailResponse, TUserModel, TUserModelUpdate } from "./types";
2
2
  export declare class UserModel {
3
3
  readonly id: number;
4
4
  readonly email: string;
@@ -17,5 +17,7 @@ export declare class UserModel {
17
17
  toJson(): any;
18
18
  set<T extends keyof this>(property: T, value: this[T]): void;
19
19
  update(user?: Partial<TUserModelUpdate>): Promise<UserModel>;
20
+ delete(): Promise<TDeleteUserResponse>;
21
+ resendVerificationEmail(): Promise<TResendVerificationEmailResponse>;
20
22
  }
21
23
  export * from "./types";
@@ -20,3 +20,12 @@ export type TUserModelUpdate = TUserModel & {
20
20
  password_strength_requirement: "VERY_WEAK" | "WEAK" | "MODERATE" | "STRONG" | "VERY_STRONG";
21
21
  };
22
22
  };
23
+ export type TDeleteUserResponse = {
24
+ id: string;
25
+ object: string;
26
+ deleted: boolean;
27
+ };
28
+ export type TResendVerificationEmailResponse = {
29
+ object: string;
30
+ confirmation_resent: boolean;
31
+ };
@@ -8,4 +8,10 @@ export declare function updateUser({ id, data }: {
8
8
  id: number;
9
9
  data: TUserModelUpdate;
10
10
  }): Promise<any>;
11
+ export declare function deleteUser({ id }: {
12
+ id: number;
13
+ }): Promise<any>;
14
+ export declare function resendVerificationEmail({ id }: {
15
+ id: number;
16
+ }): Promise<any>;
11
17
  export * from "./types";
package/dist/esm/index.js CHANGED
@@ -9693,6 +9693,109 @@ var AccountModel = /** @class */ (function () {
9693
9693
  return AccountModel;
9694
9694
  }());
9695
9695
 
9696
+ function listUsers(_a) {
9697
+ var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
9698
+ return callApi({
9699
+ url: uiKitConfig.GATEWAY_PROXY + "/users",
9700
+ query: camelCase(options),
9701
+ fetchOptions: {
9702
+ method: EMethods.get
9703
+ },
9704
+ useImpersonationTree: useImpersonationTree
9705
+ });
9706
+ }
9707
+ function getUser(_a) {
9708
+ var id = _a.id;
9709
+ return callApi({
9710
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9711
+ fetchOptions: {
9712
+ method: EMethods.get
9713
+ }
9714
+ });
9715
+ }
9716
+ function updateUser(_a) {
9717
+ var id = _a.id, data = _a.data;
9718
+ return callApi({
9719
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9720
+ fetchOptions: {
9721
+ method: EMethods.patch,
9722
+ body: data
9723
+ }
9724
+ });
9725
+ }
9726
+ function deleteUser(_a) {
9727
+ var id = _a.id;
9728
+ return callApi({
9729
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9730
+ fetchOptions: {
9731
+ method: EMethods.delete
9732
+ }
9733
+ });
9734
+ }
9735
+ function resendVerificationEmail(_a) {
9736
+ var id = _a.id;
9737
+ return callApi({
9738
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id + "/resend-verification-email",
9739
+ fetchOptions: {
9740
+ method: EMethods.post
9741
+ }
9742
+ });
9743
+ }
9744
+
9745
+ var UserModel = /** @class */ (function () {
9746
+ function UserModel(_a) {
9747
+ var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
9748
+ this.id = id || 0;
9749
+ this.email = email || "";
9750
+ this.status = status || "";
9751
+ this.created_on = created_on || 0;
9752
+ this.last_activity_on = last_activity_on || 0;
9753
+ this.expires_on = expires_on || 0;
9754
+ this.first_name = first_name || "";
9755
+ this.last_name = last_name || "";
9756
+ this.title = title || "";
9757
+ this.language = language || "en_US";
9758
+ this.timezone = timezone || "";
9759
+ this.office_phone = office_phone || "";
9760
+ this.mobile_phone = mobile_phone || "";
9761
+ }
9762
+ UserModel.prototype.toJson = function () {
9763
+ return modelToJson(this);
9764
+ };
9765
+ UserModel.prototype.set = function (property, value) {
9766
+ modelSet(this, property, value);
9767
+ };
9768
+ UserModel.prototype.update = function (user) {
9769
+ return __awaiter(this, void 0, void 0, function () {
9770
+ return __generator(this, function (_a) {
9771
+ return [2 /*return*/, updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
9772
+ trackEvent(EEvents.USER_UPDATED);
9773
+ return new UserModel(data.data);
9774
+ })];
9775
+ });
9776
+ });
9777
+ };
9778
+ UserModel.prototype.delete = function () {
9779
+ return __awaiter(this, void 0, void 0, function () {
9780
+ return __generator(this, function (_a) {
9781
+ return [2 /*return*/, deleteUser({ id: this.id }).then(function (data) {
9782
+ return data.data;
9783
+ })];
9784
+ });
9785
+ });
9786
+ };
9787
+ UserModel.prototype.resendVerificationEmail = function () {
9788
+ return __awaiter(this, void 0, void 0, function () {
9789
+ return __generator(this, function (_a) {
9790
+ return [2 /*return*/, resendVerificationEmail({ id: this.id }).then(function (data) {
9791
+ return data.data;
9792
+ })];
9793
+ });
9794
+ });
9795
+ };
9796
+ return UserModel;
9797
+ }());
9798
+
9696
9799
  function amILoggedInService() {
9697
9800
  return callApi({
9698
9801
  url: uiKitConfig.GATEWAY_PROXY + "/amiloggedin",
@@ -10623,69 +10726,6 @@ function unshareTemplate(_a) {
10623
10726
  });
10624
10727
  }
10625
10728
 
10626
- function listUsers(_a) {
10627
- var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
10628
- return callApi({
10629
- url: uiKitConfig.GATEWAY_PROXY + "/users",
10630
- query: camelCase(options),
10631
- fetchOptions: {
10632
- method: EMethods.get
10633
- },
10634
- useImpersonationTree: useImpersonationTree
10635
- });
10636
- }
10637
- function getUser(_a) {
10638
- var id = _a.id;
10639
- return callApi({
10640
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10641
- fetchOptions: {
10642
- method: EMethods.get
10643
- }
10644
- });
10645
- }
10646
- function updateUser(_a) {
10647
- var id = _a.id, data = _a.data;
10648
- return callApi({
10649
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10650
- fetchOptions: {
10651
- method: EMethods.patch,
10652
- body: data
10653
- }
10654
- });
10655
- }
10656
-
10657
- var UserModel = /** @class */ (function () {
10658
- function UserModel(_a) {
10659
- var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
10660
- this.id = id || 0;
10661
- this.email = email || "";
10662
- this.status = status || "";
10663
- this.created_on = created_on || 0;
10664
- this.last_activity_on = last_activity_on || 0;
10665
- this.expires_on = expires_on || 0;
10666
- this.first_name = first_name || "";
10667
- this.last_name = last_name || "";
10668
- this.title = title || "";
10669
- this.language = language || "en_US";
10670
- this.timezone = timezone || "";
10671
- this.office_phone = office_phone || "";
10672
- this.mobile_phone = mobile_phone || "";
10673
- }
10674
- UserModel.prototype.toJson = function () {
10675
- return modelToJson(this);
10676
- };
10677
- UserModel.prototype.set = function (property, value) {
10678
- modelSet(this, property, value);
10679
- };
10680
- UserModel.prototype.update = function (user) {
10681
- return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
10682
- trackEvent(EEvents.USER_UPDATED);
10683
- return new UserModel(data.data);
10684
- });
10685
- };
10686
- return UserModel;
10687
- }());
10688
-
10689
10729
  var GenericWrapperContext = createContext({
10690
10730
  partnerBrand: {},
10691
10731
  userBrand: undefined,
@@ -18269,4 +18309,4 @@ var UsersFactory = /** @class */ (function () {
18269
18309
  return UsersFactory;
18270
18310
  }());
18271
18311
 
18272
- export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, 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, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, 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, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deleteList, deletePartialInformation, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, 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, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resumeCampaign, saveList, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
18312
+ export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, 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, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, 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, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deleteList, deletePartialInformation, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteUser, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, 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, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resendVerificationEmail, resumeCampaign, saveList, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
@@ -1,4 +1,4 @@
1
- import { TUserModel, TUserModelUpdate } from "./types";
1
+ import { TDeleteUserResponse, TResendVerificationEmailResponse, TUserModel, TUserModelUpdate } from "./types";
2
2
  export declare class UserModel {
3
3
  readonly id: number;
4
4
  readonly email: string;
@@ -17,5 +17,7 @@ export declare class UserModel {
17
17
  toJson(): any;
18
18
  set<T extends keyof this>(property: T, value: this[T]): void;
19
19
  update(user?: Partial<TUserModelUpdate>): Promise<UserModel>;
20
+ delete(): Promise<TDeleteUserResponse>;
21
+ resendVerificationEmail(): Promise<TResendVerificationEmailResponse>;
20
22
  }
21
23
  export * from "./types";
@@ -20,3 +20,12 @@ export type TUserModelUpdate = TUserModel & {
20
20
  password_strength_requirement: "VERY_WEAK" | "WEAK" | "MODERATE" | "STRONG" | "VERY_STRONG";
21
21
  };
22
22
  };
23
+ export type TDeleteUserResponse = {
24
+ id: string;
25
+ object: string;
26
+ deleted: boolean;
27
+ };
28
+ export type TResendVerificationEmailResponse = {
29
+ object: string;
30
+ confirmation_resent: boolean;
31
+ };
@@ -8,4 +8,10 @@ export declare function updateUser({ id, data }: {
8
8
  id: number;
9
9
  data: TUserModelUpdate;
10
10
  }): Promise<any>;
11
+ export declare function deleteUser({ id }: {
12
+ id: number;
13
+ }): Promise<any>;
14
+ export declare function resendVerificationEmail({ id }: {
15
+ id: number;
16
+ }): Promise<any>;
11
17
  export * from "./types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.1.49",
3
+ "version": "2.1.50",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",