@cakemail-org/ui-components-v2 2.2.85 → 2.2.87

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.
@@ -3,7 +3,7 @@ import { TAutomationStats, TAutomationStatsParam } from "./types";
3
3
  import { AutomationModel } from "../../models/automation";
4
4
  export declare class AutomationsFactory {
5
5
  static get({ id }: {
6
- id: number;
6
+ id: string;
7
7
  }): Promise<AutomationModel>;
8
8
  static getAutomationStats({ ...options }: TAutomationStatsParam): Promise<TAutomationStats>;
9
9
  static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<AutomationModel>>;
@@ -39,7 +39,7 @@ export type TAutomationSubAutomation = {
39
39
  steps: TAutomationStep[];
40
40
  };
41
41
  export type TAutomation = {
42
- id: number;
42
+ id: string;
43
43
  name: string;
44
44
  description: string;
45
45
  status: "active" | "inactive" | "deleted";
package/dist/cjs/index.js CHANGED
@@ -9816,6 +9816,16 @@ function isDomainValidService(_a) {
9816
9816
  useImpersonationTree: useImpersonationTree
9817
9817
  });
9818
9818
  }
9819
+ function listDkimService(_a) {
9820
+ var _b = _a === void 0 ? {} : _a, id = _b.id;
9821
+ return callApi({
9822
+ url: uiKitConfig.GATEWAY_PROXY + "/brands/default/dkim",
9823
+ query: id ? { account_id: id } : undefined,
9824
+ fetchOptions: {
9825
+ method: exports.EMethods.get
9826
+ }
9827
+ });
9828
+ }
9819
9829
 
9820
9830
  var AccountModel = /** @class */ (function () {
9821
9831
  function AccountModel(params) {
@@ -9896,6 +9906,16 @@ var AccountModel = /** @class */ (function () {
9896
9906
  });
9897
9907
  });
9898
9908
  };
9909
+ AccountModel.prototype.getDkimKeys = function () {
9910
+ return __awaiter(this, void 0, void 0, function () {
9911
+ return __generator(this, function (_a) {
9912
+ if (!this.id) {
9913
+ throw new Error("Account was not initialized");
9914
+ }
9915
+ return [2 /*return*/, listDkimService({ id: this.id }).then(function (data) { return data.data; })];
9916
+ });
9917
+ });
9918
+ };
9899
9919
  AccountModel.prototype.getCustomer = function () {
9900
9920
  return __awaiter(this, void 0, void 0, function () {
9901
9921
  return __generator(this, function (_a) {
@@ -10157,7 +10177,7 @@ function updateAnyAutomation(_a) {
10157
10177
 
10158
10178
  var AutomationModel = /** @class */ (function () {
10159
10179
  function AutomationModel(automation) {
10160
- this.id = automation.id || 0;
10180
+ this.id = automation.id || "";
10161
10181
  this.name = automation.name || "";
10162
10182
  this.description = automation.description || "";
10163
10183
  this.status = automation.status || "inactive";
@@ -20045,6 +20065,7 @@ exports.listAutomations = listAutomations;
20045
20065
  exports.listCampaigns = listCampaigns;
20046
20066
  exports.listCampaignsReportsExports = listCampaignsReportsExports;
20047
20067
  exports.listContacts = listContacts;
20068
+ exports.listDkimService = listDkimService;
20048
20069
  exports.listEmailLogs = listEmailLogs;
20049
20070
  exports.listForms = listForms;
20050
20071
  exports.listList = listList;
@@ -1,4 +1,5 @@
1
1
  import { TBrand } from "../../factories";
2
+ import { TDkimKey } from "../../services/domains";
2
3
  import { CustomerModel } from "../customer";
3
4
  import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountOwner, TAccountReport, TDeleteAccountResponse, TGetAccountReport } from "./types";
4
5
  export declare class AccountModel {
@@ -31,6 +32,7 @@ export declare class AccountModel {
31
32
  getReport({ ...options }: TGetAccountReport): Promise<TAccountReport>;
32
33
  impersonate(byContext?: boolean): Promise<any>;
33
34
  getDomains(): Promise<TAccountDomains>;
35
+ getDkimKeys(): Promise<TDkimKey[]>;
34
36
  getCustomer(): Promise<CustomerModel>;
35
37
  update(account: Partial<TAccountModel>): Promise<{
36
38
  data: AccountModel;
@@ -1,8 +1,8 @@
1
1
  import { TAutomation } from "../../factories/automations/types";
2
- import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
3
2
  import { TDeleteApiResource } from "../../types";
3
+ import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
4
4
  export declare class AutomationModel {
5
- readonly id: number;
5
+ readonly id: string;
6
6
  name: string;
7
7
  description: string;
8
8
  status: "active" | "inactive" | "deleted";
@@ -1,41 +1,41 @@
1
- import { TAutomationStatsParam, TAutomation } from "../../factories/automations/types";
1
+ import { TAutomation, TAutomationStatsParam } from "../../factories/automations/types";
2
2
  import { TGenericListParams } from "../../types";
3
3
  export declare function getAllAutomationStats({ ...options }: TAutomationStatsParam): Promise<any>;
4
4
  export declare function listAutomations({ ...options }: TGenericListParams): Promise<any>;
5
5
  export declare function listWorkflows({ ...options }: TGenericListParams): Promise<any>;
6
6
  export declare function getAutomation({ id }: {
7
- id: number;
7
+ id: string;
8
8
  }): Promise<any>;
9
9
  export declare function deleteAutomation({ id }: {
10
- id: number;
10
+ id: string;
11
11
  }): Promise<any>;
12
12
  export declare function getAutomationExecutionsCount({ id }: {
13
13
  id: string;
14
14
  }): Promise<any>;
15
15
  export declare function updateAutomation({ id, data }: {
16
- id: number;
16
+ id: string;
17
17
  data: Partial<TAutomation>;
18
18
  }): Promise<any>;
19
19
  export declare function deleteWorkflow({ id }: {
20
- id: number;
20
+ id: string;
21
21
  }): Promise<any>;
22
22
  export declare function updateWorkflow({ id, data }: {
23
- id: number;
23
+ id: string;
24
24
  data: Partial<TAutomation>;
25
25
  }): Promise<any>;
26
26
  export declare function getAutomationStats({ id, path }: {
27
- id: number;
27
+ id: string;
28
28
  path: string;
29
29
  }): Promise<any>;
30
30
  export declare function getAutomationEmailContent({ contentId }: {
31
31
  contentId: string;
32
32
  }): Promise<any>;
33
33
  export declare function deleteAnyAutomation({ id, v1 }: {
34
- id: number;
34
+ id: string;
35
35
  v1?: boolean;
36
36
  }): Promise<any>;
37
37
  export declare function updateAnyAutomation({ id, data, v1 }: {
38
- id: number;
38
+ id: string;
39
39
  data: Partial<TAutomation>;
40
40
  v1?: boolean;
41
41
  }): Promise<any>;
@@ -1,4 +1,5 @@
1
- import { TNumStr } from "../../types";
1
+ import { TGenericListReturn, TNumStr } from "../../types";
2
+ import { TDkimKey } from "./types";
2
3
  export declare function getDomainsService({ id }: {
3
4
  id?: TNumStr;
4
5
  }): Promise<any>;
@@ -7,4 +8,7 @@ export declare function isDomainValidService({ domain, useImpersonationTree, que
7
8
  useImpersonationTree?: boolean;
8
9
  query?: any;
9
10
  }): Promise<any>;
11
+ export declare function listDkimService({ id }?: {
12
+ id?: TNumStr;
13
+ }): Promise<TGenericListReturn<TDkimKey>>;
10
14
  export * from "./types";
@@ -1 +1,8 @@
1
- export {};
1
+ export type TDkimKey = {
2
+ account_default: boolean;
3
+ domain: string;
4
+ id: number;
5
+ public_key: string;
6
+ selector: string;
7
+ status: string;
8
+ };
@@ -3,7 +3,7 @@ import { TAutomationStats, TAutomationStatsParam } from "./types";
3
3
  import { AutomationModel } from "../../models/automation";
4
4
  export declare class AutomationsFactory {
5
5
  static get({ id }: {
6
- id: number;
6
+ id: string;
7
7
  }): Promise<AutomationModel>;
8
8
  static getAutomationStats({ ...options }: TAutomationStatsParam): Promise<TAutomationStats>;
9
9
  static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<AutomationModel>>;
@@ -39,7 +39,7 @@ export type TAutomationSubAutomation = {
39
39
  steps: TAutomationStep[];
40
40
  };
41
41
  export type TAutomation = {
42
- id: number;
42
+ id: string;
43
43
  name: string;
44
44
  description: string;
45
45
  status: "active" | "inactive" | "deleted";
package/dist/esm/index.js CHANGED
@@ -9796,6 +9796,16 @@ function isDomainValidService(_a) {
9796
9796
  useImpersonationTree: useImpersonationTree
9797
9797
  });
9798
9798
  }
9799
+ function listDkimService(_a) {
9800
+ var _b = _a === void 0 ? {} : _a, id = _b.id;
9801
+ return callApi({
9802
+ url: uiKitConfig.GATEWAY_PROXY + "/brands/default/dkim",
9803
+ query: id ? { account_id: id } : undefined,
9804
+ fetchOptions: {
9805
+ method: EMethods.get
9806
+ }
9807
+ });
9808
+ }
9799
9809
 
9800
9810
  var AccountModel = /** @class */ (function () {
9801
9811
  function AccountModel(params) {
@@ -9876,6 +9886,16 @@ var AccountModel = /** @class */ (function () {
9876
9886
  });
9877
9887
  });
9878
9888
  };
9889
+ AccountModel.prototype.getDkimKeys = function () {
9890
+ return __awaiter(this, void 0, void 0, function () {
9891
+ return __generator(this, function (_a) {
9892
+ if (!this.id) {
9893
+ throw new Error("Account was not initialized");
9894
+ }
9895
+ return [2 /*return*/, listDkimService({ id: this.id }).then(function (data) { return data.data; })];
9896
+ });
9897
+ });
9898
+ };
9879
9899
  AccountModel.prototype.getCustomer = function () {
9880
9900
  return __awaiter(this, void 0, void 0, function () {
9881
9901
  return __generator(this, function (_a) {
@@ -10137,7 +10157,7 @@ function updateAnyAutomation(_a) {
10137
10157
 
10138
10158
  var AutomationModel = /** @class */ (function () {
10139
10159
  function AutomationModel(automation) {
10140
- this.id = automation.id || 0;
10160
+ this.id = automation.id || "";
10141
10161
  this.name = automation.name || "";
10142
10162
  this.description = automation.description || "";
10143
10163
  this.status = automation.status || "inactive";
@@ -19770,4 +19790,4 @@ var UsersFactory = /** @class */ (function () {
19770
19790
  return UsersFactory;
19771
19791
  }());
19772
19792
 
19773
- 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, 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, 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, getAccountMetadata, 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 };
19793
+ 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, 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, 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, getAccountMetadata, 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, listDkimService, 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
1
  import { TBrand } from "../../factories";
2
+ import { TDkimKey } from "../../services/domains";
2
3
  import { CustomerModel } from "../customer";
3
4
  import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountOwner, TAccountReport, TDeleteAccountResponse, TGetAccountReport } from "./types";
4
5
  export declare class AccountModel {
@@ -31,6 +32,7 @@ export declare class AccountModel {
31
32
  getReport({ ...options }: TGetAccountReport): Promise<TAccountReport>;
32
33
  impersonate(byContext?: boolean): Promise<any>;
33
34
  getDomains(): Promise<TAccountDomains>;
35
+ getDkimKeys(): Promise<TDkimKey[]>;
34
36
  getCustomer(): Promise<CustomerModel>;
35
37
  update(account: Partial<TAccountModel>): Promise<{
36
38
  data: AccountModel;
@@ -1,8 +1,8 @@
1
1
  import { TAutomation } from "../../factories/automations/types";
2
- import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
3
2
  import { TDeleteApiResource } from "../../types";
3
+ import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
4
4
  export declare class AutomationModel {
5
- readonly id: number;
5
+ readonly id: string;
6
6
  name: string;
7
7
  description: string;
8
8
  status: "active" | "inactive" | "deleted";
@@ -1,41 +1,41 @@
1
- import { TAutomationStatsParam, TAutomation } from "../../factories/automations/types";
1
+ import { TAutomation, TAutomationStatsParam } from "../../factories/automations/types";
2
2
  import { TGenericListParams } from "../../types";
3
3
  export declare function getAllAutomationStats({ ...options }: TAutomationStatsParam): Promise<any>;
4
4
  export declare function listAutomations({ ...options }: TGenericListParams): Promise<any>;
5
5
  export declare function listWorkflows({ ...options }: TGenericListParams): Promise<any>;
6
6
  export declare function getAutomation({ id }: {
7
- id: number;
7
+ id: string;
8
8
  }): Promise<any>;
9
9
  export declare function deleteAutomation({ id }: {
10
- id: number;
10
+ id: string;
11
11
  }): Promise<any>;
12
12
  export declare function getAutomationExecutionsCount({ id }: {
13
13
  id: string;
14
14
  }): Promise<any>;
15
15
  export declare function updateAutomation({ id, data }: {
16
- id: number;
16
+ id: string;
17
17
  data: Partial<TAutomation>;
18
18
  }): Promise<any>;
19
19
  export declare function deleteWorkflow({ id }: {
20
- id: number;
20
+ id: string;
21
21
  }): Promise<any>;
22
22
  export declare function updateWorkflow({ id, data }: {
23
- id: number;
23
+ id: string;
24
24
  data: Partial<TAutomation>;
25
25
  }): Promise<any>;
26
26
  export declare function getAutomationStats({ id, path }: {
27
- id: number;
27
+ id: string;
28
28
  path: string;
29
29
  }): Promise<any>;
30
30
  export declare function getAutomationEmailContent({ contentId }: {
31
31
  contentId: string;
32
32
  }): Promise<any>;
33
33
  export declare function deleteAnyAutomation({ id, v1 }: {
34
- id: number;
34
+ id: string;
35
35
  v1?: boolean;
36
36
  }): Promise<any>;
37
37
  export declare function updateAnyAutomation({ id, data, v1 }: {
38
- id: number;
38
+ id: string;
39
39
  data: Partial<TAutomation>;
40
40
  v1?: boolean;
41
41
  }): Promise<any>;
@@ -1,4 +1,5 @@
1
- import { TNumStr } from "../../types";
1
+ import { TGenericListReturn, TNumStr } from "../../types";
2
+ import { TDkimKey } from "./types";
2
3
  export declare function getDomainsService({ id }: {
3
4
  id?: TNumStr;
4
5
  }): Promise<any>;
@@ -7,4 +8,7 @@ export declare function isDomainValidService({ domain, useImpersonationTree, que
7
8
  useImpersonationTree?: boolean;
8
9
  query?: any;
9
10
  }): Promise<any>;
11
+ export declare function listDkimService({ id }?: {
12
+ id?: TNumStr;
13
+ }): Promise<TGenericListReturn<TDkimKey>>;
10
14
  export * from "./types";
@@ -1 +1,8 @@
1
- export {};
1
+ export type TDkimKey = {
2
+ account_default: boolean;
3
+ domain: string;
4
+ id: number;
5
+ public_key: string;
6
+ selector: string;
7
+ status: string;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.85",
3
+ "version": "2.2.87",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",