@cakemail-org/ui-components-v2 2.0.82 → 2.0.84

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
@@ -9186,6 +9186,7 @@ var AccountModel = /** @class */ (function () {
9186
9186
  this.organization = params.organization || false;
9187
9187
  this.overrides = params.overrides || {};
9188
9188
  this.stripe_customer_id = params.stripe_customer_id || "";
9189
+ this.metadata = params.metadata || {};
9189
9190
  }
9190
9191
  AccountModel.prototype.toJson = function () {
9191
9192
  return modelToJson(this);
@@ -9864,6 +9865,13 @@ function renderForm(_a) {
9864
9865
  });
9865
9866
  }
9866
9867
 
9868
+ exports.EEditorType = void 0;
9869
+ (function (EEditorType) {
9870
+ EEditorType["emailDesigner"] = "email_designer";
9871
+ EEditorType["formDesigner"] = "form_designer";
9872
+ EEditorType["popUpDesigner"] = "pop_up_designer";
9873
+ })(exports.EEditorType || (exports.EEditorType = {}));
9874
+
9867
9875
  function requestSupportService(_a) {
9868
9876
  var requestOptions = __rest(_a, []);
9869
9877
  return callApi({
@@ -9882,6 +9890,18 @@ function connectToZendeskSupportService() {
9882
9890
  }
9883
9891
  });
9884
9892
  }
9893
+ function getBeeTokenService(_a) {
9894
+ var _b = _a.editorType, editorType = _b === void 0 ? exports.EEditorType.emailDesigner : _b;
9895
+ return callApi({
9896
+ url: uiKitConfig.GATEWAY_PROXY + "/bee/token",
9897
+ fetchOptions: {
9898
+ method: exports.EMethods.post,
9899
+ body: {
9900
+ type: editorType,
9901
+ },
9902
+ }
9903
+ });
9904
+ }
9885
9905
 
9886
9906
  function listList(_a) {
9887
9907
  var options = __rest(_a, []);
@@ -17470,6 +17490,7 @@ exports.formatNumber = formatNumber;
17470
17490
  exports.getAccount = getAccount;
17471
17491
  exports.getAccountReport = getAccountReport;
17472
17492
  exports.getAdjustedBillingCycle = getAdjustedBillingCycle;
17493
+ exports.getBeeTokenService = getBeeTokenService;
17473
17494
  exports.getBestLocalMatch = getBestLocalMatch;
17474
17495
  exports.getBrand = getBrand;
17475
17496
  exports.getBrandService = getBrandService;
@@ -17,6 +17,7 @@ export declare class AccountModel {
17
17
  organization: boolean;
18
18
  overrides: any;
19
19
  stripe_customer_id: string;
20
+ metadata: any;
20
21
  constructor(params: Partial<TAccountModel>);
21
22
  toJson(): any;
22
23
  set<T extends keyof this>(property: T, value: this[T]): void;
@@ -15,6 +15,7 @@ export interface TAccountModel {
15
15
  overrides: any;
16
16
  stripe_customer_id: string;
17
17
  organization: boolean;
18
+ metadata: any;
18
19
  }
19
20
  export interface TCreateAccount {
20
21
  name: string;
@@ -1,3 +1,7 @@
1
- import { TRequestSupportService } from "./types";
1
+ import { EEditorType, TRequestSupportService } from "./types";
2
2
  export declare function requestSupportService({ ...requestOptions }: TRequestSupportService): Promise<any>;
3
3
  export declare function connectToZendeskSupportService(): Promise<any>;
4
+ export declare function getBeeTokenService({ editorType }: {
5
+ editorType: EEditorType;
6
+ }): Promise<any>;
7
+ export * from "./types";
@@ -3,3 +3,8 @@ export type TRequestSupportService = {
3
3
  message: string;
4
4
  subject?: string;
5
5
  };
6
+ export declare enum EEditorType {
7
+ emailDesigner = "email_designer",
8
+ formDesigner = "form_designer",
9
+ popUpDesigner = "pop_up_designer"
10
+ }
package/dist/esm/index.js CHANGED
@@ -9166,6 +9166,7 @@ var AccountModel = /** @class */ (function () {
9166
9166
  this.organization = params.organization || false;
9167
9167
  this.overrides = params.overrides || {};
9168
9168
  this.stripe_customer_id = params.stripe_customer_id || "";
9169
+ this.metadata = params.metadata || {};
9169
9170
  }
9170
9171
  AccountModel.prototype.toJson = function () {
9171
9172
  return modelToJson(this);
@@ -9844,6 +9845,13 @@ function renderForm(_a) {
9844
9845
  });
9845
9846
  }
9846
9847
 
9848
+ var EEditorType;
9849
+ (function (EEditorType) {
9850
+ EEditorType["emailDesigner"] = "email_designer";
9851
+ EEditorType["formDesigner"] = "form_designer";
9852
+ EEditorType["popUpDesigner"] = "pop_up_designer";
9853
+ })(EEditorType || (EEditorType = {}));
9854
+
9847
9855
  function requestSupportService(_a) {
9848
9856
  var requestOptions = __rest(_a, []);
9849
9857
  return callApi({
@@ -9862,6 +9870,18 @@ function connectToZendeskSupportService() {
9862
9870
  }
9863
9871
  });
9864
9872
  }
9873
+ function getBeeTokenService(_a) {
9874
+ var _b = _a.editorType, editorType = _b === void 0 ? EEditorType.emailDesigner : _b;
9875
+ return callApi({
9876
+ url: uiKitConfig.GATEWAY_PROXY + "/bee/token",
9877
+ fetchOptions: {
9878
+ method: EMethods.post,
9879
+ body: {
9880
+ type: editorType,
9881
+ },
9882
+ }
9883
+ });
9884
+ }
9865
9885
 
9866
9886
  function listList(_a) {
9867
9887
  var options = __rest(_a, []);
@@ -17302,4 +17322,4 @@ var UsersFactory = /** @class */ (function () {
17302
17322
  return UsersFactory;
17303
17323
  }());
17304
17324
 
17305
- 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, ECampaignStatuses, EEMailSummaryStatuses, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, SystemEmailsFactory, SystemEmailsModel, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, addPartialInformation, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deletePartialInformation, deleteStorageItem, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, emptyAccountAddress, emptyAccountLimits, enableForm, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, 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, getTColor, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listSenders, listSystemEmails, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, 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 };
17325
+ 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, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, SystemEmailsFactory, SystemEmailsModel, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, addPartialInformation, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deletePartialInformation, deleteStorageItem, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, 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, getTColor, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listSenders, listSystemEmails, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, 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 };
@@ -17,6 +17,7 @@ export declare class AccountModel {
17
17
  organization: boolean;
18
18
  overrides: any;
19
19
  stripe_customer_id: string;
20
+ metadata: any;
20
21
  constructor(params: Partial<TAccountModel>);
21
22
  toJson(): any;
22
23
  set<T extends keyof this>(property: T, value: this[T]): void;
@@ -15,6 +15,7 @@ export interface TAccountModel {
15
15
  overrides: any;
16
16
  stripe_customer_id: string;
17
17
  organization: boolean;
18
+ metadata: any;
18
19
  }
19
20
  export interface TCreateAccount {
20
21
  name: string;
@@ -1,3 +1,7 @@
1
- import { TRequestSupportService } from "./types";
1
+ import { EEditorType, TRequestSupportService } from "./types";
2
2
  export declare function requestSupportService({ ...requestOptions }: TRequestSupportService): Promise<any>;
3
3
  export declare function connectToZendeskSupportService(): Promise<any>;
4
+ export declare function getBeeTokenService({ editorType }: {
5
+ editorType: EEditorType;
6
+ }): Promise<any>;
7
+ export * from "./types";
@@ -3,3 +3,8 @@ export type TRequestSupportService = {
3
3
  message: string;
4
4
  subject?: string;
5
5
  };
6
+ export declare enum EEditorType {
7
+ emailDesigner = "email_designer",
8
+ formDesigner = "form_designer",
9
+ popUpDesigner = "pop_up_designer"
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.0.82",
3
+ "version": "2.0.84",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",