@cakemail-org/ui-components-v2 2.1.5 → 2.1.7
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/index.d.ts +1 -0
- package/dist/cjs/factories/tags/index.d.ts +6 -0
- package/dist/cjs/factories/tags/types.d.ts +3 -0
- package/dist/cjs/index.js +55 -4
- package/dist/cjs/models/list/index.d.ts +2 -1
- package/dist/cjs/models/list/types.d.ts +5 -0
- package/dist/cjs/services/lists/index.d.ts +3 -0
- package/dist/cjs/services/tags/index.d.ts +3 -0
- package/dist/esm/factories/index.d.ts +1 -0
- package/dist/esm/factories/tags/index.d.ts +6 -0
- package/dist/esm/factories/tags/types.d.ts +3 -0
- package/dist/esm/index.js +54 -5
- package/dist/esm/models/list/index.d.ts +2 -1
- package/dist/esm/models/list/types.d.ts +5 -0
- package/dist/esm/services/lists/index.d.ts +3 -0
- package/dist/esm/services/tags/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -8876,7 +8876,7 @@ function DataTable(_a) {
|
|
|
8876
8876
|
showPagination && (hasMore !== undefined ? (React.createElement(DataTablePaginationNoCount, { page: page, setPage: setPage, onPaginationChange: onPaginationChange, rowsPerPage: rowsPerPage, hasMore: hasMore })) : (React.createElement(TablePagination, { rowsPerPageOptions: rowsPerPageOptions, component: "div", count: totalCount !== undefined ? totalCount : rows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage }))));
|
|
8877
8877
|
}
|
|
8878
8878
|
|
|
8879
|
-
var css_248z$f = ".dateTimeSelector.dateTimeCalendar {\n background: var(--white, #FFFFFF);\n}";
|
|
8879
|
+
var css_248z$f = ".dateTimeSelector.dateTimeCalendar {\n background: var(--white, #FFFFFF);\n}\n.dateTimeSelector .MuiMultiSectionDigitalClock-root,\n.dateTimeSelector .MuiMultiSectionDigitalClockSection-root {\n flex: 1;\n}\n.dateTimeSelector .MuiMultiSectionDigitalClock-root .MuiMultiSectionDigitalClockSection-item.Mui-selected,\n.dateTimeSelector .MuiMultiSectionDigitalClockSection-root .MuiMultiSectionDigitalClockSection-item.Mui-selected {\n background-color: var(--primary-brand-color, var(--grape, #69006E)) !important;\n}";
|
|
8880
8880
|
styleInject(css_248z$f);
|
|
8881
8881
|
|
|
8882
8882
|
function DatePicker(_a) {
|
|
@@ -8915,8 +8915,12 @@ function DateTimeCalendar(_a) {
|
|
|
8915
8915
|
var classes = classNames("dateTimeSelector", "dateTimeCalendar", className);
|
|
8916
8916
|
return React.createElement(LocalizationProvider.LocalizationProvider, { dateAdapter: AdapterMoment.AdapterMoment },
|
|
8917
8917
|
React.createElement(xDatePickers.StaticDateTimePicker, __assign({}, props, { view: currentView,
|
|
8918
|
-
//Preview default auto switch
|
|
8919
|
-
onViewChange: function (newView) {
|
|
8918
|
+
//Preview default auto switch fix
|
|
8919
|
+
onViewChange: function (newView) {
|
|
8920
|
+
if (currentView !== "hours" && (newView === "year" || currentView === "year")) {
|
|
8921
|
+
setCurrentView(newView);
|
|
8922
|
+
}
|
|
8923
|
+
}, className: classes, viewRenderers: {
|
|
8920
8924
|
hours: function (props) {
|
|
8921
8925
|
return React.createElement(xDatePickers.MultiSectionDigitalClock, { ampm: props.ampm, minTime: props.minTime, maxTime: props.maxTime, onChange: props.onChange, value: props.value, defaultValue: props.defaultValue, disableFuture: props.disableFuture, disablePast: props.disablePast, timezone: props.timezone });
|
|
8922
8926
|
},
|
|
@@ -8926,6 +8930,7 @@ function DateTimeCalendar(_a) {
|
|
|
8926
8930
|
tabs: {
|
|
8927
8931
|
//@ts-ignore
|
|
8928
8932
|
onViewChange: function (view) {
|
|
8933
|
+
console.log("view", view);
|
|
8929
8934
|
setCurrentView(view);
|
|
8930
8935
|
}
|
|
8931
8936
|
}
|
|
@@ -10319,6 +10324,19 @@ function listListAttributes(_a) {
|
|
|
10319
10324
|
},
|
|
10320
10325
|
});
|
|
10321
10326
|
}
|
|
10327
|
+
function listListInterests(_a) {
|
|
10328
|
+
var id = _a.id, options = __rest(_a, ["id"]);
|
|
10329
|
+
if (!(options === null || options === void 0 ? void 0 : options.perPage)) {
|
|
10330
|
+
options.perPage = 200;
|
|
10331
|
+
}
|
|
10332
|
+
return callApi({
|
|
10333
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/interests"),
|
|
10334
|
+
query: camelCase(options),
|
|
10335
|
+
fetchOptions: {
|
|
10336
|
+
method: exports.EMethods.get,
|
|
10337
|
+
},
|
|
10338
|
+
});
|
|
10339
|
+
}
|
|
10322
10340
|
|
|
10323
10341
|
function listSenders(_a) {
|
|
10324
10342
|
var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
|
|
@@ -16122,7 +16140,7 @@ function Radio(_a) {
|
|
|
16122
16140
|
return React.createElement(material.Radio, __assign({}, props));
|
|
16123
16141
|
}
|
|
16124
16142
|
|
|
16125
|
-
var css_248z$3 = ".resourceEdit-component-v2 {\n width: 100%;\n}\n.resourceEdit-component-v2 .resource-heading {\n flex: 1;\n width: 100%;\n}\n.resourceEdit-component-v2 .resource-heading .resource-title {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark {\n width: 24px;\n height: 24px;\n border-radius: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0.5rem;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.valid {\n background-color: var(--secondary-brand-color, var(--teal, #0ABDAE));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.warning {\n background-color: var(--warning-brand-color, var(--orange, #FF9E0E));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.error {\n background-color: var(--error-brand-color, var(--rad-red, #FF4835));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.empty {\n background-color: var(--shade500, #939292);\n}
|
|
16143
|
+
var css_248z$3 = ".resourceEdit-component-v2 {\n width: 100%;\n padding-bottom: 1.5rem;\n}\n.resourceEdit-component-v2 .resource-heading {\n flex: 1;\n width: 100%;\n}\n.resourceEdit-component-v2 .resource-heading .resource-title {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark {\n width: 24px;\n height: 24px;\n border-radius: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0.5rem;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.valid {\n background-color: var(--secondary-brand-color, var(--teal, #0ABDAE));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.warning {\n background-color: var(--warning-brand-color, var(--orange, #FF9E0E));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.error {\n background-color: var(--error-brand-color, var(--rad-red, #FF4835));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.empty {\n background-color: var(--shade500, #939292);\n}";
|
|
16126
16144
|
styleInject(css_248z$3);
|
|
16127
16145
|
|
|
16128
16146
|
function ResourceEdit(_a) {
|
|
@@ -17291,6 +17309,9 @@ var ListModel = /** @class */ (function () {
|
|
|
17291
17309
|
ListModel.prototype.getAttributes = function (options) {
|
|
17292
17310
|
return listListAttributes(__assign({ id: this.id }, options));
|
|
17293
17311
|
};
|
|
17312
|
+
ListModel.prototype.getInterests = function (options) {
|
|
17313
|
+
return listListInterests(__assign({ id: this.id }, options));
|
|
17314
|
+
};
|
|
17294
17315
|
return ListModel;
|
|
17295
17316
|
}());
|
|
17296
17317
|
|
|
@@ -17664,6 +17685,34 @@ var SystemEmailsFactory = /** @class */ (function () {
|
|
|
17664
17685
|
return SystemEmailsFactory;
|
|
17665
17686
|
}());
|
|
17666
17687
|
|
|
17688
|
+
function listTags(options) {
|
|
17689
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17690
|
+
return __generator(this, function (_a) {
|
|
17691
|
+
return [2 /*return*/, callApi({
|
|
17692
|
+
url: uiKitConfig.GATEWAY_PROXY + "/tags",
|
|
17693
|
+
query: camelCase(options),
|
|
17694
|
+
fetchOptions: {
|
|
17695
|
+
method: exports.EMethods.patch,
|
|
17696
|
+
}
|
|
17697
|
+
})];
|
|
17698
|
+
});
|
|
17699
|
+
});
|
|
17700
|
+
}
|
|
17701
|
+
|
|
17702
|
+
var TagsFactory = /** @class */ (function () {
|
|
17703
|
+
function TagsFactory() {
|
|
17704
|
+
}
|
|
17705
|
+
TagsFactory.list = function (_a) {
|
|
17706
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17707
|
+
var options = __rest(_a, []);
|
|
17708
|
+
return __generator(this, function (_b) {
|
|
17709
|
+
return [2 /*return*/, listTags(options)];
|
|
17710
|
+
});
|
|
17711
|
+
});
|
|
17712
|
+
};
|
|
17713
|
+
return TagsFactory;
|
|
17714
|
+
}());
|
|
17715
|
+
|
|
17667
17716
|
var TemplatesFactory = /** @class */ (function () {
|
|
17668
17717
|
function TemplatesFactory() {
|
|
17669
17718
|
}
|
|
@@ -17867,6 +17916,7 @@ exports.SummaryEnhancedFormModel = SummaryEnhancedFormModel;
|
|
|
17867
17916
|
exports.SupportFactory = SupportFactory;
|
|
17868
17917
|
exports.SystemEmailsFactory = SystemEmailsFactory;
|
|
17869
17918
|
exports.SystemEmailsModel = SystemEmailsModel;
|
|
17919
|
+
exports.TagsFactory = TagsFactory;
|
|
17870
17920
|
exports.TemplateModel = TemplateModel;
|
|
17871
17921
|
exports.TemplatesFactory = TemplatesFactory;
|
|
17872
17922
|
exports.TextField = TextField;
|
|
@@ -17989,6 +18039,7 @@ exports.listEmailLogs = listEmailLogs;
|
|
|
17989
18039
|
exports.listForms = listForms;
|
|
17990
18040
|
exports.listList = listList;
|
|
17991
18041
|
exports.listListAttributes = listListAttributes;
|
|
18042
|
+
exports.listListInterests = listListInterests;
|
|
17992
18043
|
exports.listSenders = listSenders;
|
|
17993
18044
|
exports.listSystemEmails = listSystemEmails;
|
|
17994
18045
|
exports.listTemplates = listTemplates;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EApiLanguages, TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
|
-
import { TListCustomAttribute, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
2
|
+
import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
3
3
|
export declare class ListModel {
|
|
4
4
|
readonly id: number;
|
|
5
5
|
name: string;
|
|
@@ -20,5 +20,6 @@ export declare class ListModel {
|
|
|
20
20
|
policy_accepted: boolean;
|
|
21
21
|
}>;
|
|
22
22
|
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
23
|
+
getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
|
|
23
24
|
}
|
|
24
25
|
export * from "./types";
|
|
@@ -65,6 +65,11 @@ export type TListCustomAttribute = {
|
|
|
65
65
|
name: string;
|
|
66
66
|
type: EListAttributeType;
|
|
67
67
|
};
|
|
68
|
+
export type TListInterest = {
|
|
69
|
+
name: string;
|
|
70
|
+
alias: string;
|
|
71
|
+
usage: number;
|
|
72
|
+
};
|
|
68
73
|
export declare enum EListAttributeType {
|
|
69
74
|
text = "text",
|
|
70
75
|
mediumtext = "mediumtext",
|
|
@@ -16,4 +16,7 @@ export declare function acceptListPolicy({ id }: {
|
|
|
16
16
|
export declare function listListAttributes({ id, ...options }: TGenericListParams & {
|
|
17
17
|
id: number;
|
|
18
18
|
}): Promise<any>;
|
|
19
|
+
export declare function listListInterests({ id, ...options }: TGenericListParams & {
|
|
20
|
+
id: number;
|
|
21
|
+
}): Promise<any>;
|
|
19
22
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -8856,7 +8856,7 @@ function DataTable(_a) {
|
|
|
8856
8856
|
showPagination && (hasMore !== undefined ? (React__default.createElement(DataTablePaginationNoCount, { page: page, setPage: setPage, onPaginationChange: onPaginationChange, rowsPerPage: rowsPerPage, hasMore: hasMore })) : (React__default.createElement(TablePagination, { rowsPerPageOptions: rowsPerPageOptions, component: "div", count: totalCount !== undefined ? totalCount : rows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage }))));
|
|
8857
8857
|
}
|
|
8858
8858
|
|
|
8859
|
-
var css_248z$f = ".dateTimeSelector.dateTimeCalendar {\n background: var(--white, #FFFFFF);\n}";
|
|
8859
|
+
var css_248z$f = ".dateTimeSelector.dateTimeCalendar {\n background: var(--white, #FFFFFF);\n}\n.dateTimeSelector .MuiMultiSectionDigitalClock-root,\n.dateTimeSelector .MuiMultiSectionDigitalClockSection-root {\n flex: 1;\n}\n.dateTimeSelector .MuiMultiSectionDigitalClock-root .MuiMultiSectionDigitalClockSection-item.Mui-selected,\n.dateTimeSelector .MuiMultiSectionDigitalClockSection-root .MuiMultiSectionDigitalClockSection-item.Mui-selected {\n background-color: var(--primary-brand-color, var(--grape, #69006E)) !important;\n}";
|
|
8860
8860
|
styleInject(css_248z$f);
|
|
8861
8861
|
|
|
8862
8862
|
function DatePicker(_a) {
|
|
@@ -8895,8 +8895,12 @@ function DateTimeCalendar(_a) {
|
|
|
8895
8895
|
var classes = classNames("dateTimeSelector", "dateTimeCalendar", className);
|
|
8896
8896
|
return React__default.createElement(LocalizationProvider, { dateAdapter: AdapterMoment },
|
|
8897
8897
|
React__default.createElement(StaticDateTimePicker, __assign({}, props, { view: currentView,
|
|
8898
|
-
//Preview default auto switch
|
|
8899
|
-
onViewChange: function (newView) {
|
|
8898
|
+
//Preview default auto switch fix
|
|
8899
|
+
onViewChange: function (newView) {
|
|
8900
|
+
if (currentView !== "hours" && (newView === "year" || currentView === "year")) {
|
|
8901
|
+
setCurrentView(newView);
|
|
8902
|
+
}
|
|
8903
|
+
}, className: classes, viewRenderers: {
|
|
8900
8904
|
hours: function (props) {
|
|
8901
8905
|
return React__default.createElement(MultiSectionDigitalClock, { ampm: props.ampm, minTime: props.minTime, maxTime: props.maxTime, onChange: props.onChange, value: props.value, defaultValue: props.defaultValue, disableFuture: props.disableFuture, disablePast: props.disablePast, timezone: props.timezone });
|
|
8902
8906
|
},
|
|
@@ -8906,6 +8910,7 @@ function DateTimeCalendar(_a) {
|
|
|
8906
8910
|
tabs: {
|
|
8907
8911
|
//@ts-ignore
|
|
8908
8912
|
onViewChange: function (view) {
|
|
8913
|
+
console.log("view", view);
|
|
8909
8914
|
setCurrentView(view);
|
|
8910
8915
|
}
|
|
8911
8916
|
}
|
|
@@ -10299,6 +10304,19 @@ function listListAttributes(_a) {
|
|
|
10299
10304
|
},
|
|
10300
10305
|
});
|
|
10301
10306
|
}
|
|
10307
|
+
function listListInterests(_a) {
|
|
10308
|
+
var id = _a.id, options = __rest(_a, ["id"]);
|
|
10309
|
+
if (!(options === null || options === void 0 ? void 0 : options.perPage)) {
|
|
10310
|
+
options.perPage = 200;
|
|
10311
|
+
}
|
|
10312
|
+
return callApi({
|
|
10313
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/interests"),
|
|
10314
|
+
query: camelCase(options),
|
|
10315
|
+
fetchOptions: {
|
|
10316
|
+
method: EMethods.get,
|
|
10317
|
+
},
|
|
10318
|
+
});
|
|
10319
|
+
}
|
|
10302
10320
|
|
|
10303
10321
|
function listSenders(_a) {
|
|
10304
10322
|
var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
|
|
@@ -16102,7 +16120,7 @@ function Radio(_a) {
|
|
|
16102
16120
|
return React__default.createElement(Radio$1, __assign({}, props));
|
|
16103
16121
|
}
|
|
16104
16122
|
|
|
16105
|
-
var css_248z$3 = ".resourceEdit-component-v2 {\n width: 100%;\n}\n.resourceEdit-component-v2 .resource-heading {\n flex: 1;\n width: 100%;\n}\n.resourceEdit-component-v2 .resource-heading .resource-title {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark {\n width: 24px;\n height: 24px;\n border-radius: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0.5rem;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.valid {\n background-color: var(--secondary-brand-color, var(--teal, #0ABDAE));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.warning {\n background-color: var(--warning-brand-color, var(--orange, #FF9E0E));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.error {\n background-color: var(--error-brand-color, var(--rad-red, #FF4835));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.empty {\n background-color: var(--shade500, #939292);\n}
|
|
16123
|
+
var css_248z$3 = ".resourceEdit-component-v2 {\n width: 100%;\n padding-bottom: 1.5rem;\n}\n.resourceEdit-component-v2 .resource-heading {\n flex: 1;\n width: 100%;\n}\n.resourceEdit-component-v2 .resource-heading .resource-title {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark {\n width: 24px;\n height: 24px;\n border-radius: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0.5rem;\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.valid {\n background-color: var(--secondary-brand-color, var(--teal, #0ABDAE));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.warning {\n background-color: var(--warning-brand-color, var(--orange, #FF9E0E));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.error {\n background-color: var(--error-brand-color, var(--rad-red, #FF4835));\n}\n.resourceEdit-component-v2 .resource-heading .statusCheckmark.empty {\n background-color: var(--shade500, #939292);\n}";
|
|
16106
16124
|
styleInject(css_248z$3);
|
|
16107
16125
|
|
|
16108
16126
|
function ResourceEdit(_a) {
|
|
@@ -17271,6 +17289,9 @@ var ListModel = /** @class */ (function () {
|
|
|
17271
17289
|
ListModel.prototype.getAttributes = function (options) {
|
|
17272
17290
|
return listListAttributes(__assign({ id: this.id }, options));
|
|
17273
17291
|
};
|
|
17292
|
+
ListModel.prototype.getInterests = function (options) {
|
|
17293
|
+
return listListInterests(__assign({ id: this.id }, options));
|
|
17294
|
+
};
|
|
17274
17295
|
return ListModel;
|
|
17275
17296
|
}());
|
|
17276
17297
|
|
|
@@ -17644,6 +17665,34 @@ var SystemEmailsFactory = /** @class */ (function () {
|
|
|
17644
17665
|
return SystemEmailsFactory;
|
|
17645
17666
|
}());
|
|
17646
17667
|
|
|
17668
|
+
function listTags(options) {
|
|
17669
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17670
|
+
return __generator(this, function (_a) {
|
|
17671
|
+
return [2 /*return*/, callApi({
|
|
17672
|
+
url: uiKitConfig.GATEWAY_PROXY + "/tags",
|
|
17673
|
+
query: camelCase(options),
|
|
17674
|
+
fetchOptions: {
|
|
17675
|
+
method: EMethods.patch,
|
|
17676
|
+
}
|
|
17677
|
+
})];
|
|
17678
|
+
});
|
|
17679
|
+
});
|
|
17680
|
+
}
|
|
17681
|
+
|
|
17682
|
+
var TagsFactory = /** @class */ (function () {
|
|
17683
|
+
function TagsFactory() {
|
|
17684
|
+
}
|
|
17685
|
+
TagsFactory.list = function (_a) {
|
|
17686
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17687
|
+
var options = __rest(_a, []);
|
|
17688
|
+
return __generator(this, function (_b) {
|
|
17689
|
+
return [2 /*return*/, listTags(options)];
|
|
17690
|
+
});
|
|
17691
|
+
});
|
|
17692
|
+
};
|
|
17693
|
+
return TagsFactory;
|
|
17694
|
+
}());
|
|
17695
|
+
|
|
17647
17696
|
var TemplatesFactory = /** @class */ (function () {
|
|
17648
17697
|
function TemplatesFactory() {
|
|
17649
17698
|
}
|
|
@@ -17757,4 +17806,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
17757
17806
|
return UsersFactory;
|
|
17758
17807
|
}());
|
|
17759
17808
|
|
|
17760
|
-
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, 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, 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, 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 };
|
|
17809
|
+
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, 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, SystemEmailsFactory, SystemEmailsModel, TagsFactory, 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, listListInterests, listSenders, listSystemEmails, 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,5 +1,5 @@
|
|
|
1
1
|
import { EApiLanguages, TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
|
-
import { TListCustomAttribute, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
2
|
+
import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
|
|
3
3
|
export declare class ListModel {
|
|
4
4
|
readonly id: number;
|
|
5
5
|
name: string;
|
|
@@ -20,5 +20,6 @@ export declare class ListModel {
|
|
|
20
20
|
policy_accepted: boolean;
|
|
21
21
|
}>;
|
|
22
22
|
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
23
|
+
getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
|
|
23
24
|
}
|
|
24
25
|
export * from "./types";
|
|
@@ -65,6 +65,11 @@ export type TListCustomAttribute = {
|
|
|
65
65
|
name: string;
|
|
66
66
|
type: EListAttributeType;
|
|
67
67
|
};
|
|
68
|
+
export type TListInterest = {
|
|
69
|
+
name: string;
|
|
70
|
+
alias: string;
|
|
71
|
+
usage: number;
|
|
72
|
+
};
|
|
68
73
|
export declare enum EListAttributeType {
|
|
69
74
|
text = "text",
|
|
70
75
|
mediumtext = "mediumtext",
|
|
@@ -16,4 +16,7 @@ export declare function acceptListPolicy({ id }: {
|
|
|
16
16
|
export declare function listListAttributes({ id, ...options }: TGenericListParams & {
|
|
17
17
|
id: number;
|
|
18
18
|
}): Promise<any>;
|
|
19
|
+
export declare function listListInterests({ id, ...options }: TGenericListParams & {
|
|
20
|
+
id: number;
|
|
21
|
+
}): Promise<any>;
|
|
19
22
|
export * from "./types";
|