@cakemail-org/ui-components-v2 2.1.42 → 2.1.43
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
|
@@ -10341,6 +10341,15 @@ function getList(_a) {
|
|
|
10341
10341
|
}
|
|
10342
10342
|
});
|
|
10343
10343
|
}
|
|
10344
|
+
function deleteList(_a) {
|
|
10345
|
+
var id = _a.id;
|
|
10346
|
+
return callApi({
|
|
10347
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id),
|
|
10348
|
+
fetchOptions: {
|
|
10349
|
+
method: exports.EMethods.delete
|
|
10350
|
+
}
|
|
10351
|
+
});
|
|
10352
|
+
}
|
|
10344
10353
|
function getListReport(_a) {
|
|
10345
10354
|
var id = _a.id;
|
|
10346
10355
|
return callApi({
|
|
@@ -17524,6 +17533,13 @@ var ListModel = /** @class */ (function () {
|
|
|
17524
17533
|
ListModel.prototype.acceptPolicy = function () {
|
|
17525
17534
|
return acceptListPolicy({ id: this.id });
|
|
17526
17535
|
};
|
|
17536
|
+
ListModel.prototype.delete = function () {
|
|
17537
|
+
var _this = this;
|
|
17538
|
+
return deleteList({ id: this.id }).then(function (data) {
|
|
17539
|
+
trackEvent(exports.EEvents.LIST_DELETED, { id: _this.id });
|
|
17540
|
+
return data;
|
|
17541
|
+
});
|
|
17542
|
+
};
|
|
17527
17543
|
ListModel.prototype.getAttributes = function (options) {
|
|
17528
17544
|
return listListAttributes(__assign({ id: this.id }, options));
|
|
17529
17545
|
};
|
|
@@ -18359,6 +18375,7 @@ exports.deepMergeObject = deepMergeObject;
|
|
|
18359
18375
|
exports.deleteCampaign = deleteCampaign;
|
|
18360
18376
|
exports.deleteCampaignsReportsExport = deleteCampaignsReportsExport;
|
|
18361
18377
|
exports.deleteForm = deleteForm;
|
|
18378
|
+
exports.deleteList = deleteList;
|
|
18362
18379
|
exports.deletePartialInformation = deletePartialInformation;
|
|
18363
18380
|
exports.deleteStorageItem = deleteStorageItem;
|
|
18364
18381
|
exports.deleteSuppressedEmail = deleteSuppressedEmail;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EApiLanguages, TGenericListParams, TGenericListReturn } from "../../types";
|
|
1
|
+
import { EApiLanguages, TDeleteApiResource, TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
2
|
import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
3
3
|
export declare class ListModel {
|
|
4
4
|
readonly id: number;
|
|
@@ -19,6 +19,7 @@ export declare class ListModel {
|
|
|
19
19
|
object: string;
|
|
20
20
|
policy_accepted: boolean;
|
|
21
21
|
}>;
|
|
22
|
+
delete(): Promise<TDeleteApiResource>;
|
|
22
23
|
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
23
24
|
getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
|
|
24
25
|
}
|
|
@@ -3,6 +3,9 @@ export declare function listList({ ...options }: TGenericListParams): Promise<an
|
|
|
3
3
|
export declare function getList({ id }: {
|
|
4
4
|
id: number;
|
|
5
5
|
}): Promise<any>;
|
|
6
|
+
export declare function deleteList({ id }: {
|
|
7
|
+
id: number;
|
|
8
|
+
}): Promise<any>;
|
|
6
9
|
export declare function getListReport({ id }: {
|
|
7
10
|
id: number;
|
|
8
11
|
}): Promise<any>;
|
package/dist/esm/index.js
CHANGED
|
@@ -10321,6 +10321,15 @@ function getList(_a) {
|
|
|
10321
10321
|
}
|
|
10322
10322
|
});
|
|
10323
10323
|
}
|
|
10324
|
+
function deleteList(_a) {
|
|
10325
|
+
var id = _a.id;
|
|
10326
|
+
return callApi({
|
|
10327
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id),
|
|
10328
|
+
fetchOptions: {
|
|
10329
|
+
method: EMethods.delete
|
|
10330
|
+
}
|
|
10331
|
+
});
|
|
10332
|
+
}
|
|
10324
10333
|
function getListReport(_a) {
|
|
10325
10334
|
var id = _a.id;
|
|
10326
10335
|
return callApi({
|
|
@@ -17504,6 +17513,13 @@ var ListModel = /** @class */ (function () {
|
|
|
17504
17513
|
ListModel.prototype.acceptPolicy = function () {
|
|
17505
17514
|
return acceptListPolicy({ id: this.id });
|
|
17506
17515
|
};
|
|
17516
|
+
ListModel.prototype.delete = function () {
|
|
17517
|
+
var _this = this;
|
|
17518
|
+
return deleteList({ id: this.id }).then(function (data) {
|
|
17519
|
+
trackEvent(EEvents.LIST_DELETED, { id: _this.id });
|
|
17520
|
+
return data;
|
|
17521
|
+
});
|
|
17522
|
+
};
|
|
17507
17523
|
ListModel.prototype.getAttributes = function (options) {
|
|
17508
17524
|
return listListAttributes(__assign({ id: this.id }, options));
|
|
17509
17525
|
};
|
|
@@ -18206,4 +18222,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
18206
18222
|
return UsersFactory;
|
|
18207
18223
|
}());
|
|
18208
18224
|
|
|
18209
|
-
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, 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, 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 };
|
|
18225
|
+
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, 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 { EApiLanguages, TGenericListParams, TGenericListReturn } from "../../types";
|
|
1
|
+
import { EApiLanguages, TDeleteApiResource, TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
2
|
import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
3
3
|
export declare class ListModel {
|
|
4
4
|
readonly id: number;
|
|
@@ -19,6 +19,7 @@ export declare class ListModel {
|
|
|
19
19
|
object: string;
|
|
20
20
|
policy_accepted: boolean;
|
|
21
21
|
}>;
|
|
22
|
+
delete(): Promise<TDeleteApiResource>;
|
|
22
23
|
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
23
24
|
getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
|
|
24
25
|
}
|
|
@@ -3,6 +3,9 @@ export declare function listList({ ...options }: TGenericListParams): Promise<an
|
|
|
3
3
|
export declare function getList({ id }: {
|
|
4
4
|
id: number;
|
|
5
5
|
}): Promise<any>;
|
|
6
|
+
export declare function deleteList({ id }: {
|
|
7
|
+
id: number;
|
|
8
|
+
}): Promise<any>;
|
|
6
9
|
export declare function getListReport({ id }: {
|
|
7
10
|
id: number;
|
|
8
11
|
}): Promise<any>;
|