@cakemail-org/ui-components-v2 2.1.41 → 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/factories/lists/index.d.ts +3 -3
- package/dist/cjs/index.js +30 -5
- package/dist/cjs/models/list/index.d.ts +2 -1
- package/dist/cjs/services/lists/index.d.ts +3 -0
- package/dist/esm/factories/lists/index.d.ts +3 -3
- package/dist/esm/index.js +30 -6
- package/dist/esm/models/list/index.d.ts +2 -1
- package/dist/esm/services/lists/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TTaskDownload } from "../../models";
|
|
2
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
3
|
-
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
|
+
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
4
|
export declare class ListsFactory {
|
|
5
5
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<ListModel>>;
|
|
6
6
|
static get({ id }: {
|
|
@@ -15,10 +15,10 @@ export declare class ListsFactory {
|
|
|
15
15
|
static downloadContactsExport({ listId, exportId }: {
|
|
16
16
|
listId: number;
|
|
17
17
|
exportId: string;
|
|
18
|
-
}): Promise<TTaskDownload
|
|
18
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
19
19
|
static downloadListLogExport({ listId, exportId }: {
|
|
20
20
|
listId: number;
|
|
21
21
|
exportId: string;
|
|
22
|
-
}): Promise<TTaskDownload
|
|
22
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
23
23
|
}
|
|
24
24
|
export * from "./types";
|
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({
|
|
@@ -17137,8 +17146,10 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17137
17146
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17138
17147
|
var exportId = _b.exportId;
|
|
17139
17148
|
return __generator(this, function (_c) {
|
|
17140
|
-
|
|
17141
|
-
|
|
17149
|
+
return [2 /*return*/, downloadCampaignsReportsExport({ exportId: exportId }).then(function (data) {
|
|
17150
|
+
trackEvent(exports.EEvents.CAMPAIGNS_REPORTS_EXPORT_DOWNLOAD);
|
|
17151
|
+
return data;
|
|
17152
|
+
})];
|
|
17142
17153
|
});
|
|
17143
17154
|
});
|
|
17144
17155
|
};
|
|
@@ -17146,7 +17157,13 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17146
17157
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17147
17158
|
var exportId = _b.exportId, campaignId = _b.campaignId;
|
|
17148
17159
|
return __generator(this, function (_c) {
|
|
17149
|
-
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId })
|
|
17160
|
+
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId }).then(function (data) {
|
|
17161
|
+
trackEvent(exports.EEvents.CAMPAIGN_LOG_DOWNLOAD, {
|
|
17162
|
+
campaign_id: campaignId,
|
|
17163
|
+
export_id: exportId
|
|
17164
|
+
});
|
|
17165
|
+
return data;
|
|
17166
|
+
})];
|
|
17150
17167
|
});
|
|
17151
17168
|
});
|
|
17152
17169
|
};
|
|
@@ -17516,6 +17533,13 @@ var ListModel = /** @class */ (function () {
|
|
|
17516
17533
|
ListModel.prototype.acceptPolicy = function () {
|
|
17517
17534
|
return acceptListPolicy({ id: this.id });
|
|
17518
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
|
+
};
|
|
17519
17543
|
ListModel.prototype.getAttributes = function (options) {
|
|
17520
17544
|
return listListAttributes(__assign({ id: this.id }, options));
|
|
17521
17545
|
};
|
|
@@ -17828,7 +17852,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17828
17852
|
list_id: listId,
|
|
17829
17853
|
export_id: exportId
|
|
17830
17854
|
});
|
|
17831
|
-
return data
|
|
17855
|
+
return data;
|
|
17832
17856
|
})];
|
|
17833
17857
|
});
|
|
17834
17858
|
});
|
|
@@ -17842,7 +17866,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17842
17866
|
list_id: listId,
|
|
17843
17867
|
export_id: exportId
|
|
17844
17868
|
});
|
|
17845
|
-
return data
|
|
17869
|
+
return data;
|
|
17846
17870
|
})];
|
|
17847
17871
|
});
|
|
17848
17872
|
});
|
|
@@ -18351,6 +18375,7 @@ exports.deepMergeObject = deepMergeObject;
|
|
|
18351
18375
|
exports.deleteCampaign = deleteCampaign;
|
|
18352
18376
|
exports.deleteCampaignsReportsExport = deleteCampaignsReportsExport;
|
|
18353
18377
|
exports.deleteForm = deleteForm;
|
|
18378
|
+
exports.deleteList = deleteList;
|
|
18354
18379
|
exports.deletePartialInformation = deletePartialInformation;
|
|
18355
18380
|
exports.deleteStorageItem = deleteStorageItem;
|
|
18356
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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TTaskDownload } from "../../models";
|
|
2
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
3
|
-
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
|
+
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
4
|
export declare class ListsFactory {
|
|
5
5
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<ListModel>>;
|
|
6
6
|
static get({ id }: {
|
|
@@ -15,10 +15,10 @@ export declare class ListsFactory {
|
|
|
15
15
|
static downloadContactsExport({ listId, exportId }: {
|
|
16
16
|
listId: number;
|
|
17
17
|
exportId: string;
|
|
18
|
-
}): Promise<TTaskDownload
|
|
18
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
19
19
|
static downloadListLogExport({ listId, exportId }: {
|
|
20
20
|
listId: number;
|
|
21
21
|
exportId: string;
|
|
22
|
-
}): Promise<TTaskDownload
|
|
22
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
23
23
|
}
|
|
24
24
|
export * from "./types";
|
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({
|
|
@@ -17117,8 +17126,10 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17117
17126
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17118
17127
|
var exportId = _b.exportId;
|
|
17119
17128
|
return __generator(this, function (_c) {
|
|
17120
|
-
|
|
17121
|
-
|
|
17129
|
+
return [2 /*return*/, downloadCampaignsReportsExport({ exportId: exportId }).then(function (data) {
|
|
17130
|
+
trackEvent(EEvents.CAMPAIGNS_REPORTS_EXPORT_DOWNLOAD);
|
|
17131
|
+
return data;
|
|
17132
|
+
})];
|
|
17122
17133
|
});
|
|
17123
17134
|
});
|
|
17124
17135
|
};
|
|
@@ -17126,7 +17137,13 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17126
17137
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17127
17138
|
var exportId = _b.exportId, campaignId = _b.campaignId;
|
|
17128
17139
|
return __generator(this, function (_c) {
|
|
17129
|
-
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId })
|
|
17140
|
+
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId }).then(function (data) {
|
|
17141
|
+
trackEvent(EEvents.CAMPAIGN_LOG_DOWNLOAD, {
|
|
17142
|
+
campaign_id: campaignId,
|
|
17143
|
+
export_id: exportId
|
|
17144
|
+
});
|
|
17145
|
+
return data;
|
|
17146
|
+
})];
|
|
17130
17147
|
});
|
|
17131
17148
|
});
|
|
17132
17149
|
};
|
|
@@ -17496,6 +17513,13 @@ var ListModel = /** @class */ (function () {
|
|
|
17496
17513
|
ListModel.prototype.acceptPolicy = function () {
|
|
17497
17514
|
return acceptListPolicy({ id: this.id });
|
|
17498
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
|
+
};
|
|
17499
17523
|
ListModel.prototype.getAttributes = function (options) {
|
|
17500
17524
|
return listListAttributes(__assign({ id: this.id }, options));
|
|
17501
17525
|
};
|
|
@@ -17808,7 +17832,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17808
17832
|
list_id: listId,
|
|
17809
17833
|
export_id: exportId
|
|
17810
17834
|
});
|
|
17811
|
-
return data
|
|
17835
|
+
return data;
|
|
17812
17836
|
})];
|
|
17813
17837
|
});
|
|
17814
17838
|
});
|
|
@@ -17822,7 +17846,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17822
17846
|
list_id: listId,
|
|
17823
17847
|
export_id: exportId
|
|
17824
17848
|
});
|
|
17825
|
-
return data
|
|
17849
|
+
return data;
|
|
17826
17850
|
})];
|
|
17827
17851
|
});
|
|
17828
17852
|
});
|
|
@@ -18198,4 +18222,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
18198
18222
|
return UsersFactory;
|
|
18199
18223
|
}());
|
|
18200
18224
|
|
|
18201
|
-
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>;
|