@cakemail-org/ui-components-v2 2.1.43 → 2.1.45

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
@@ -10350,6 +10350,16 @@ function deleteList(_a) {
10350
10350
  }
10351
10351
  });
10352
10352
  }
10353
+ function saveList(_a) {
10354
+ var id = _a.id, list = _a.list;
10355
+ return callApi({
10356
+ url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id),
10357
+ fetchOptions: {
10358
+ method: exports.EMethods.patch,
10359
+ body: list
10360
+ },
10361
+ });
10362
+ }
10353
10363
  function getListReport(_a) {
10354
10364
  var id = _a.id;
10355
10365
  return callApi({
@@ -17531,20 +17541,47 @@ var ListModel = /** @class */ (function () {
17531
17541
  modelSet(this, property, value);
17532
17542
  };
17533
17543
  ListModel.prototype.acceptPolicy = function () {
17534
- return acceptListPolicy({ id: this.id });
17544
+ return __awaiter(this, void 0, void 0, function () {
17545
+ return __generator(this, function (_a) {
17546
+ return [2 /*return*/, acceptListPolicy({ id: this.id })];
17547
+ });
17548
+ });
17549
+ };
17550
+ ListModel.prototype.save = function (list) {
17551
+ return __awaiter(this, void 0, void 0, function () {
17552
+ var _this = this;
17553
+ return __generator(this, function (_a) {
17554
+ return [2 /*return*/, saveList({ id: this.id, list: list }).then(function (data) {
17555
+ trackEvent(exports.EEvents.LIST_UPDATED, { id: _this.id });
17556
+ return data;
17557
+ })];
17558
+ });
17559
+ });
17535
17560
  };
17536
17561
  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;
17562
+ return __awaiter(this, void 0, void 0, function () {
17563
+ var _this = this;
17564
+ return __generator(this, function (_a) {
17565
+ return [2 /*return*/, deleteList({ id: this.id }).then(function (data) {
17566
+ trackEvent(exports.EEvents.LIST_DELETED, { id: _this.id });
17567
+ return data;
17568
+ })];
17569
+ });
17541
17570
  });
17542
17571
  };
17543
17572
  ListModel.prototype.getAttributes = function (options) {
17544
- return listListAttributes(__assign({ id: this.id }, options));
17573
+ return __awaiter(this, void 0, void 0, function () {
17574
+ return __generator(this, function (_a) {
17575
+ return [2 /*return*/, listListAttributes(__assign({ id: this.id }, options))];
17576
+ });
17577
+ });
17545
17578
  };
17546
17579
  ListModel.prototype.getInterests = function (options) {
17547
- return listListInterests(__assign({ id: this.id }, options));
17580
+ return __awaiter(this, void 0, void 0, function () {
17581
+ return __generator(this, function (_a) {
17582
+ return [2 /*return*/, listListInterests(__assign({ id: this.id }, options))];
17583
+ });
17584
+ });
17548
17585
  };
17549
17586
  return ListModel;
17550
17587
  }());
@@ -18494,6 +18531,7 @@ exports.renderPublicHtmlForm = renderPublicHtmlForm;
18494
18531
  exports.renderTemplate = renderTemplate;
18495
18532
  exports.requestSupportService = requestSupportService;
18496
18533
  exports.resumeCampaign = resumeCampaign;
18534
+ exports.saveList = saveList;
18497
18535
  exports.scheduleCampaign = scheduleCampaign;
18498
18536
  exports.searchCustomerProfiles = searchCustomerProfiles;
18499
18537
  exports.sendCampaignTest = sendCampaignTest;
@@ -19,6 +19,7 @@ export declare class ListModel {
19
19
  object: string;
20
20
  policy_accepted: boolean;
21
21
  }>;
22
+ save(list: Partial<TListModel>): Promise<TListModel>;
22
23
  delete(): Promise<TDeleteApiResource>;
23
24
  getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
24
25
  getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
@@ -1,3 +1,4 @@
1
+ import { TListModel } from "../../models/list";
1
2
  import { TGenericListLogsParams, TGenericListParams } from "../../types";
2
3
  export declare function listList({ ...options }: TGenericListParams): Promise<any>;
3
4
  export declare function getList({ id }: {
@@ -6,6 +7,10 @@ export declare function getList({ id }: {
6
7
  export declare function deleteList({ id }: {
7
8
  id: number;
8
9
  }): Promise<any>;
10
+ export declare function saveList({ id, list }: {
11
+ id: number;
12
+ list: Partial<TListModel>;
13
+ }): Promise<any>;
9
14
  export declare function getListReport({ id }: {
10
15
  id: number;
11
16
  }): Promise<any>;
package/dist/esm/index.js CHANGED
@@ -10330,6 +10330,16 @@ function deleteList(_a) {
10330
10330
  }
10331
10331
  });
10332
10332
  }
10333
+ function saveList(_a) {
10334
+ var id = _a.id, list = _a.list;
10335
+ return callApi({
10336
+ url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id),
10337
+ fetchOptions: {
10338
+ method: EMethods.patch,
10339
+ body: list
10340
+ },
10341
+ });
10342
+ }
10333
10343
  function getListReport(_a) {
10334
10344
  var id = _a.id;
10335
10345
  return callApi({
@@ -17511,20 +17521,47 @@ var ListModel = /** @class */ (function () {
17511
17521
  modelSet(this, property, value);
17512
17522
  };
17513
17523
  ListModel.prototype.acceptPolicy = function () {
17514
- return acceptListPolicy({ id: this.id });
17524
+ return __awaiter(this, void 0, void 0, function () {
17525
+ return __generator(this, function (_a) {
17526
+ return [2 /*return*/, acceptListPolicy({ id: this.id })];
17527
+ });
17528
+ });
17529
+ };
17530
+ ListModel.prototype.save = function (list) {
17531
+ return __awaiter(this, void 0, void 0, function () {
17532
+ var _this = this;
17533
+ return __generator(this, function (_a) {
17534
+ return [2 /*return*/, saveList({ id: this.id, list: list }).then(function (data) {
17535
+ trackEvent(EEvents.LIST_UPDATED, { id: _this.id });
17536
+ return data;
17537
+ })];
17538
+ });
17539
+ });
17515
17540
  };
17516
17541
  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;
17542
+ return __awaiter(this, void 0, void 0, function () {
17543
+ var _this = this;
17544
+ return __generator(this, function (_a) {
17545
+ return [2 /*return*/, deleteList({ id: this.id }).then(function (data) {
17546
+ trackEvent(EEvents.LIST_DELETED, { id: _this.id });
17547
+ return data;
17548
+ })];
17549
+ });
17521
17550
  });
17522
17551
  };
17523
17552
  ListModel.prototype.getAttributes = function (options) {
17524
- return listListAttributes(__assign({ id: this.id }, options));
17553
+ return __awaiter(this, void 0, void 0, function () {
17554
+ return __generator(this, function (_a) {
17555
+ return [2 /*return*/, listListAttributes(__assign({ id: this.id }, options))];
17556
+ });
17557
+ });
17525
17558
  };
17526
17559
  ListModel.prototype.getInterests = function (options) {
17527
- return listListInterests(__assign({ id: this.id }, options));
17560
+ return __awaiter(this, void 0, void 0, function () {
17561
+ return __generator(this, function (_a) {
17562
+ return [2 /*return*/, listListInterests(__assign({ id: this.id }, options))];
17563
+ });
17564
+ });
17528
17565
  };
17529
17566
  return ListModel;
17530
17567
  }());
@@ -18222,4 +18259,4 @@ var UsersFactory = /** @class */ (function () {
18222
18259
  return UsersFactory;
18223
18260
  }());
18224
18261
 
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 };
18262
+ 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 };
@@ -19,6 +19,7 @@ export declare class ListModel {
19
19
  object: string;
20
20
  policy_accepted: boolean;
21
21
  }>;
22
+ save(list: Partial<TListModel>): Promise<TListModel>;
22
23
  delete(): Promise<TDeleteApiResource>;
23
24
  getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
24
25
  getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
@@ -1,3 +1,4 @@
1
+ import { TListModel } from "../../models/list";
1
2
  import { TGenericListLogsParams, TGenericListParams } from "../../types";
2
3
  export declare function listList({ ...options }: TGenericListParams): Promise<any>;
3
4
  export declare function getList({ id }: {
@@ -6,6 +7,10 @@ export declare function getList({ id }: {
6
7
  export declare function deleteList({ id }: {
7
8
  id: number;
8
9
  }): Promise<any>;
10
+ export declare function saveList({ id, list }: {
11
+ id: number;
12
+ list: Partial<TListModel>;
13
+ }): Promise<any>;
9
14
  export declare function getListReport({ id }: {
10
15
  id: number;
11
16
  }): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.1.43",
3
+ "version": "2.1.45",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",