@cakemail-org/ui-components-v2 2.2.28 → 2.2.30

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.
@@ -1,4 +1,4 @@
1
- import { TTaskDownload } from "../../models";
1
+ import { TTask, TTaskDownload } from "../../models";
2
2
  import { ListModel, TListLog, TListReport } from "../../models/list";
3
3
  import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
4
4
  export declare class ListsFactory {
@@ -20,5 +20,12 @@ export declare class ListsFactory {
20
20
  listId: number;
21
21
  exportId: string;
22
22
  }): Promise<TGenericReturn<TTaskDownload>>;
23
+ static exportContacts({ description, json, segmentId, filter, listId }: {
24
+ description?: string;
25
+ json?: boolean;
26
+ segmentId?: number;
27
+ filter?: string;
28
+ listId: number;
29
+ }): Promise<TGenericReturn<TTask>>;
23
30
  }
24
31
  export * from "./types";
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
 
@@ -19208,6 +19248,18 @@ var ListsFactory = /** @class */ (function () {
19208
19248
  });
19209
19249
  });
19210
19250
  };
19251
+ ListsFactory.exportContacts = function (_a) {
19252
+ return __awaiter(this, arguments, void 0, function (_b) {
19253
+ var description = _b.description, json = _b.json, segmentId = _b.segmentId, filter = _b.filter, listId = _b.listId;
19254
+ return __generator(this, function (_c) {
19255
+ return [2 /*return*/, createContactsExport({ listId: listId, description: description, json: json, segmentId: segmentId, filter: filter })
19256
+ .then(function (data) {
19257
+ trackEvent(exports.EEvents.CONTACT_EXPORT, { listId: listId });
19258
+ return data;
19259
+ })];
19260
+ });
19261
+ });
19262
+ };
19211
19263
  return ListsFactory;
19212
19264
  }());
19213
19265
 
@@ -19817,6 +19869,7 @@ exports.deleteList = deleteList;
19817
19869
  exports.deletePage = deletePage;
19818
19870
  exports.deletePartialInformation = deletePartialInformation;
19819
19871
  exports.deletePopup = deletePopup;
19872
+ exports.deleteSender = deleteSender;
19820
19873
  exports.deleteStorageItem = deleteStorageItem;
19821
19874
  exports.deleteSuppressedEmail = deleteSuppressedEmail;
19822
19875
  exports.deleteTaskService = deleteTaskService;
@@ -19957,6 +20010,7 @@ exports.renderPopup = renderPopup;
19957
20010
  exports.renderPublicHtmlForm = renderPublicHtmlForm;
19958
20011
  exports.renderTemplate = renderTemplate;
19959
20012
  exports.requestSupportService = requestSupportService;
20013
+ exports.resendEmail = resendEmail;
19960
20014
  exports.resendVerificationEmail = resendVerificationEmail;
19961
20015
  exports.resumeCampaign = resumeCampaign;
19962
20016
  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";
@@ -7,3 +7,8 @@ export type TSenderModel = {
7
7
  language: string;
8
8
  last_confirmation_sent_on: number;
9
9
  };
10
+ export type TSenderVerificationEmailResponse = {
11
+ readonly id: number;
12
+ resent: boolean;
13
+ object: string;
14
+ };
@@ -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";
@@ -1,4 +1,4 @@
1
- import { TTaskDownload } from "../../models";
1
+ import { TTask, TTaskDownload } from "../../models";
2
2
  import { ListModel, TListLog, TListReport } from "../../models/list";
3
3
  import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
4
4
  export declare class ListsFactory {
@@ -20,5 +20,12 @@ export declare class ListsFactory {
20
20
  listId: number;
21
21
  exportId: string;
22
22
  }): Promise<TGenericReturn<TTaskDownload>>;
23
+ static exportContacts({ description, json, segmentId, filter, listId }: {
24
+ description?: string;
25
+ json?: boolean;
26
+ segmentId?: number;
27
+ filter?: string;
28
+ listId: number;
29
+ }): Promise<TGenericReturn<TTask>>;
23
30
  }
24
31
  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
 
@@ -19188,6 +19228,18 @@ var ListsFactory = /** @class */ (function () {
19188
19228
  });
19189
19229
  });
19190
19230
  };
19231
+ ListsFactory.exportContacts = function (_a) {
19232
+ return __awaiter(this, arguments, void 0, function (_b) {
19233
+ var description = _b.description, json = _b.json, segmentId = _b.segmentId, filter = _b.filter, listId = _b.listId;
19234
+ return __generator(this, function (_c) {
19235
+ return [2 /*return*/, createContactsExport({ listId: listId, description: description, json: json, segmentId: segmentId, filter: filter })
19236
+ .then(function (data) {
19237
+ trackEvent(EEvents.CONTACT_EXPORT, { listId: listId });
19238
+ return data;
19239
+ })];
19240
+ });
19241
+ });
19242
+ };
19191
19243
  return ListsFactory;
19192
19244
  }());
19193
19245
 
@@ -19643,4 +19695,4 @@ var UsersFactory = /** @class */ (function () {
19643
19695
  return UsersFactory;
19644
19696
  }());
19645
19697
 
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 };
19698
+ 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";
@@ -7,3 +7,8 @@ export type TSenderModel = {
7
7
  language: string;
8
8
  last_confirmation_sent_on: number;
9
9
  };
10
+ export type TSenderVerificationEmailResponse = {
11
+ readonly id: number;
12
+ resent: boolean;
13
+ object: string;
14
+ };
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.28",
3
+ "version": "2.2.30",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",