@cakemail-org/ui-components-v2 2.0.86 → 2.0.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.
- package/dist/cjs/index.js +39 -0
- package/dist/cjs/models/list/index.d.ts +8 -2
- package/dist/cjs/models/list/types.d.ts +11 -0
- package/dist/cjs/services/lists/index.d.ts +6 -0
- package/dist/esm/index.js +38 -1
- package/dist/esm/models/list/index.d.ts +8 -2
- package/dist/esm/models/list/types.d.ts +11 -0
- package/dist/esm/services/lists/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -9941,6 +9941,28 @@ function getListLogs(_a) {
|
|
|
9941
9941
|
query: camelCase(options)
|
|
9942
9942
|
});
|
|
9943
9943
|
}
|
|
9944
|
+
function acceptListPolicy(_a) {
|
|
9945
|
+
var id = _a.id;
|
|
9946
|
+
return callApi({
|
|
9947
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/accept-policy"),
|
|
9948
|
+
fetchOptions: {
|
|
9949
|
+
method: exports.EMethods.post,
|
|
9950
|
+
},
|
|
9951
|
+
});
|
|
9952
|
+
}
|
|
9953
|
+
function listListAttributes(_a) {
|
|
9954
|
+
var id = _a.id, options = __rest(_a, ["id"]);
|
|
9955
|
+
if (!(options === null || options === void 0 ? void 0 : options.perPage)) {
|
|
9956
|
+
options.perPage = 200;
|
|
9957
|
+
}
|
|
9958
|
+
return callApi({
|
|
9959
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/custom-attributes"),
|
|
9960
|
+
query: camelCase(options),
|
|
9961
|
+
fetchOptions: {
|
|
9962
|
+
method: exports.EMethods.get,
|
|
9963
|
+
},
|
|
9964
|
+
});
|
|
9965
|
+
}
|
|
9944
9966
|
|
|
9945
9967
|
function listSenders(_a) {
|
|
9946
9968
|
var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
|
|
@@ -16853,6 +16875,15 @@ var EnhancedFormModel = /** @class */ (function (_super) {
|
|
|
16853
16875
|
return EnhancedFormModel;
|
|
16854
16876
|
}(SummaryEnhancedFormModel));
|
|
16855
16877
|
|
|
16878
|
+
exports.EListAttributeType = void 0;
|
|
16879
|
+
(function (EListAttributeType) {
|
|
16880
|
+
EListAttributeType["text"] = "text";
|
|
16881
|
+
EListAttributeType["mediumtext"] = "mediumtext";
|
|
16882
|
+
EListAttributeType["integer"] = "integer";
|
|
16883
|
+
EListAttributeType["timestamp"] = "timestamp";
|
|
16884
|
+
EListAttributeType["datetime"] = "datetime";
|
|
16885
|
+
})(exports.EListAttributeType || (exports.EListAttributeType = {}));
|
|
16886
|
+
|
|
16856
16887
|
var ListModel = /** @class */ (function () {
|
|
16857
16888
|
function ListModel(params) {
|
|
16858
16889
|
this.id = params.id;
|
|
@@ -16872,6 +16903,12 @@ var ListModel = /** @class */ (function () {
|
|
|
16872
16903
|
ListModel.prototype.set = function (property, value) {
|
|
16873
16904
|
modelSet(this, property, value);
|
|
16874
16905
|
};
|
|
16906
|
+
ListModel.prototype.acceptPolicy = function () {
|
|
16907
|
+
return acceptListPolicy({ id: this.id });
|
|
16908
|
+
};
|
|
16909
|
+
ListModel.prototype.getAttributes = function (options) {
|
|
16910
|
+
return listListAttributes(__assign({ id: this.id }, options));
|
|
16911
|
+
};
|
|
16875
16912
|
return ListModel;
|
|
16876
16913
|
}());
|
|
16877
16914
|
|
|
@@ -17446,6 +17483,7 @@ exports.TopMenu = TopMenu;
|
|
|
17446
17483
|
exports.Typography = Typography;
|
|
17447
17484
|
exports.UserModel = UserModel;
|
|
17448
17485
|
exports.UsersFactory = UsersFactory;
|
|
17486
|
+
exports.acceptListPolicy = acceptListPolicy;
|
|
17449
17487
|
exports.addPartialInformation = addPartialInformation;
|
|
17450
17488
|
exports.addToImpersonificationTree = addToImpersonificationTree;
|
|
17451
17489
|
exports.amIImpersonating = amIImpersonating;
|
|
@@ -17556,6 +17594,7 @@ exports.listContacts = listContacts;
|
|
|
17556
17594
|
exports.listEmailLogs = listEmailLogs;
|
|
17557
17595
|
exports.listForms = listForms;
|
|
17558
17596
|
exports.listList = listList;
|
|
17597
|
+
exports.listListAttributes = listListAttributes;
|
|
17559
17598
|
exports.listSenders = listSenders;
|
|
17560
17599
|
exports.listSystemEmails = listSystemEmails;
|
|
17561
17600
|
exports.listTemplates = listTemplates;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EApiLanguages } from "../../types";
|
|
2
|
-
import { TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
1
|
+
import { EApiLanguages, TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
|
+
import { TListCustomAttribute, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
3
3
|
export declare class ListModel {
|
|
4
4
|
readonly id: number;
|
|
5
5
|
name: string;
|
|
@@ -14,5 +14,11 @@ export declare class ListModel {
|
|
|
14
14
|
constructor(params: TListModel);
|
|
15
15
|
toJson(): any;
|
|
16
16
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
17
|
+
acceptPolicy(): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
object: string;
|
|
20
|
+
policy_accepted: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
17
23
|
}
|
|
18
24
|
export * from "./types";
|
|
@@ -61,3 +61,14 @@ export type TListLog = {
|
|
|
61
61
|
};
|
|
62
62
|
export type TListLogType = TApiV2LogType;
|
|
63
63
|
export type TListLogUserAgent = TApiV2LogUserAgent;
|
|
64
|
+
export type TListCustomAttribute = {
|
|
65
|
+
name: string;
|
|
66
|
+
type: EListAttributeType;
|
|
67
|
+
};
|
|
68
|
+
export declare enum EListAttributeType {
|
|
69
|
+
text = "text",
|
|
70
|
+
mediumtext = "mediumtext",
|
|
71
|
+
integer = "integer",
|
|
72
|
+
timestamp = "timestamp",
|
|
73
|
+
datetime = "datetime"
|
|
74
|
+
}
|
|
@@ -10,4 +10,10 @@ export declare function getListLogs({ id, options }: {
|
|
|
10
10
|
id: number;
|
|
11
11
|
options?: TGenericListLogsParams;
|
|
12
12
|
}): Promise<any>;
|
|
13
|
+
export declare function acceptListPolicy({ id }: {
|
|
14
|
+
id: number;
|
|
15
|
+
}): Promise<any>;
|
|
16
|
+
export declare function listListAttributes({ id, ...options }: TGenericListParams & {
|
|
17
|
+
id: number;
|
|
18
|
+
}): Promise<any>;
|
|
13
19
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -9921,6 +9921,28 @@ function getListLogs(_a) {
|
|
|
9921
9921
|
query: camelCase(options)
|
|
9922
9922
|
});
|
|
9923
9923
|
}
|
|
9924
|
+
function acceptListPolicy(_a) {
|
|
9925
|
+
var id = _a.id;
|
|
9926
|
+
return callApi({
|
|
9927
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/accept-policy"),
|
|
9928
|
+
fetchOptions: {
|
|
9929
|
+
method: EMethods.post,
|
|
9930
|
+
},
|
|
9931
|
+
});
|
|
9932
|
+
}
|
|
9933
|
+
function listListAttributes(_a) {
|
|
9934
|
+
var id = _a.id, options = __rest(_a, ["id"]);
|
|
9935
|
+
if (!(options === null || options === void 0 ? void 0 : options.perPage)) {
|
|
9936
|
+
options.perPage = 200;
|
|
9937
|
+
}
|
|
9938
|
+
return callApi({
|
|
9939
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/custom-attributes"),
|
|
9940
|
+
query: camelCase(options),
|
|
9941
|
+
fetchOptions: {
|
|
9942
|
+
method: EMethods.get,
|
|
9943
|
+
},
|
|
9944
|
+
});
|
|
9945
|
+
}
|
|
9924
9946
|
|
|
9925
9947
|
function listSenders(_a) {
|
|
9926
9948
|
var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
|
|
@@ -16833,6 +16855,15 @@ var EnhancedFormModel = /** @class */ (function (_super) {
|
|
|
16833
16855
|
return EnhancedFormModel;
|
|
16834
16856
|
}(SummaryEnhancedFormModel));
|
|
16835
16857
|
|
|
16858
|
+
var EListAttributeType;
|
|
16859
|
+
(function (EListAttributeType) {
|
|
16860
|
+
EListAttributeType["text"] = "text";
|
|
16861
|
+
EListAttributeType["mediumtext"] = "mediumtext";
|
|
16862
|
+
EListAttributeType["integer"] = "integer";
|
|
16863
|
+
EListAttributeType["timestamp"] = "timestamp";
|
|
16864
|
+
EListAttributeType["datetime"] = "datetime";
|
|
16865
|
+
})(EListAttributeType || (EListAttributeType = {}));
|
|
16866
|
+
|
|
16836
16867
|
var ListModel = /** @class */ (function () {
|
|
16837
16868
|
function ListModel(params) {
|
|
16838
16869
|
this.id = params.id;
|
|
@@ -16852,6 +16883,12 @@ var ListModel = /** @class */ (function () {
|
|
|
16852
16883
|
ListModel.prototype.set = function (property, value) {
|
|
16853
16884
|
modelSet(this, property, value);
|
|
16854
16885
|
};
|
|
16886
|
+
ListModel.prototype.acceptPolicy = function () {
|
|
16887
|
+
return acceptListPolicy({ id: this.id });
|
|
16888
|
+
};
|
|
16889
|
+
ListModel.prototype.getAttributes = function (options) {
|
|
16890
|
+
return listListAttributes(__assign({ id: this.id }, options));
|
|
16891
|
+
};
|
|
16855
16892
|
return ListModel;
|
|
16856
16893
|
}());
|
|
16857
16894
|
|
|
@@ -17328,4 +17365,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
17328
17365
|
return UsersFactory;
|
|
17329
17366
|
}());
|
|
17330
17367
|
|
|
17331
|
-
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 };
|
|
17368
|
+
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, EListAttributeType, 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, acceptListPolicy, 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, listListAttributes, 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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EApiLanguages } from "../../types";
|
|
2
|
-
import { TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
1
|
+
import { EApiLanguages, TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
|
+
import { TListCustomAttribute, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
3
3
|
export declare class ListModel {
|
|
4
4
|
readonly id: number;
|
|
5
5
|
name: string;
|
|
@@ -14,5 +14,11 @@ export declare class ListModel {
|
|
|
14
14
|
constructor(params: TListModel);
|
|
15
15
|
toJson(): any;
|
|
16
16
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
17
|
+
acceptPolicy(): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
object: string;
|
|
20
|
+
policy_accepted: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
17
23
|
}
|
|
18
24
|
export * from "./types";
|
|
@@ -61,3 +61,14 @@ export type TListLog = {
|
|
|
61
61
|
};
|
|
62
62
|
export type TListLogType = TApiV2LogType;
|
|
63
63
|
export type TListLogUserAgent = TApiV2LogUserAgent;
|
|
64
|
+
export type TListCustomAttribute = {
|
|
65
|
+
name: string;
|
|
66
|
+
type: EListAttributeType;
|
|
67
|
+
};
|
|
68
|
+
export declare enum EListAttributeType {
|
|
69
|
+
text = "text",
|
|
70
|
+
mediumtext = "mediumtext",
|
|
71
|
+
integer = "integer",
|
|
72
|
+
timestamp = "timestamp",
|
|
73
|
+
datetime = "datetime"
|
|
74
|
+
}
|
|
@@ -10,4 +10,10 @@ export declare function getListLogs({ id, options }: {
|
|
|
10
10
|
id: number;
|
|
11
11
|
options?: TGenericListLogsParams;
|
|
12
12
|
}): Promise<any>;
|
|
13
|
+
export declare function acceptListPolicy({ id }: {
|
|
14
|
+
id: number;
|
|
15
|
+
}): Promise<any>;
|
|
16
|
+
export declare function listListAttributes({ id, ...options }: TGenericListParams & {
|
|
17
|
+
id: number;
|
|
18
|
+
}): Promise<any>;
|
|
13
19
|
export * from "./types";
|