@cakemail-org/ui-components-v2 2.0.85 → 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/components/genericWrapper/index.d.ts +1 -1
- package/dist/cjs/components/genericWrapper/types.d.ts +2 -0
- package/dist/cjs/index.js +47 -2
- 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/components/genericWrapper/index.d.ts +1 -1
- package/dist/esm/components/genericWrapper/types.d.ts +2 -0
- package/dist/esm/index.js +46 -3
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TGenericWrapper } from "./types";
|
|
3
|
-
export declare function GenericWrapper({ children, brandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
3
|
+
export declare function GenericWrapper({ children, brandObj, userBrandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
4
4
|
export default GenericWrapper;
|
|
5
5
|
export * from "./context";
|
|
6
6
|
export * from "./types";
|
|
@@ -6,6 +6,7 @@ import { TUserModel } from "../../models/user/types";
|
|
|
6
6
|
export type TGenericWrapper = {
|
|
7
7
|
children: any;
|
|
8
8
|
brandObj?: TBrand;
|
|
9
|
+
userBrandObj?: TBrand;
|
|
9
10
|
brandHost?: string;
|
|
10
11
|
brandId?: string;
|
|
11
12
|
account?: TAccountModel;
|
|
@@ -20,6 +21,7 @@ export type TGenericWrapper = {
|
|
|
20
21
|
};
|
|
21
22
|
export type TGenericWrapperContext = {
|
|
22
23
|
partnerBrand: TBrand;
|
|
24
|
+
userBrand?: TBrand;
|
|
23
25
|
account: AccountModel;
|
|
24
26
|
user: UserModel;
|
|
25
27
|
};
|
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"]);
|
|
@@ -10129,15 +10151,17 @@ var UserModel = /** @class */ (function () {
|
|
|
10129
10151
|
|
|
10130
10152
|
var GenericWrapperContext = React.createContext({
|
|
10131
10153
|
partnerBrand: {},
|
|
10154
|
+
userBrand: undefined,
|
|
10132
10155
|
account: {},
|
|
10133
10156
|
user: {}
|
|
10134
10157
|
});
|
|
10135
10158
|
|
|
10136
10159
|
function GenericWrapper(_a) {
|
|
10137
|
-
var children = _a.children, brandObj = _a.brandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d, _e = _a.includeHandlers, includeHandlers = _e === void 0 ? true : _e;
|
|
10160
|
+
var children = _a.children, brandObj = _a.brandObj, userBrandObj = _a.userBrandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d, _e = _a.includeHandlers, includeHandlers = _e === void 0 ? true : _e;
|
|
10138
10161
|
var _f = React.useState(brandObj ? buildMUITheme({ brand: brandObj }) : undefined), mUITheme = _f[0], setMUITheme = _f[1];
|
|
10139
10162
|
var _g = React.useState(brandObj), resellerBrand = _g[0], setResellerBrand = _g[1];
|
|
10140
|
-
var _h =
|
|
10163
|
+
var _h = React.useState(userBrandObj), userBrand = _h[0], setUserBrand = _h[1];
|
|
10164
|
+
var _j = reactI18next.useTranslation(); _j.t; _j.i18n;
|
|
10141
10165
|
var dialogRef = React.useRef(undefined);
|
|
10142
10166
|
var actionsBarContainerRef = React.useRef(undefined);
|
|
10143
10167
|
var overlayRef = React.useRef(undefined);
|
|
@@ -10155,6 +10179,9 @@ function GenericWrapper(_a) {
|
|
|
10155
10179
|
LocizeInitializer.changeLanguage(locale);
|
|
10156
10180
|
}
|
|
10157
10181
|
moment$1.locale(locale);
|
|
10182
|
+
getBrand({ id: user.id, compiled: false }).then(function (res) {
|
|
10183
|
+
setUserBrand(res);
|
|
10184
|
+
});
|
|
10158
10185
|
}
|
|
10159
10186
|
}, [user]);
|
|
10160
10187
|
React.useEffect(initPH, []);
|
|
@@ -10198,6 +10225,7 @@ function GenericWrapper(_a) {
|
|
|
10198
10225
|
}, noFetch: !!brandObj, setPageHead: setPageHead, brandThemeContext: brandThemeContext, includeHandlers: false }, resellerBrand &&
|
|
10199
10226
|
React.createElement(GenericWrapperContext.Provider, { value: {
|
|
10200
10227
|
partnerBrand: resellerBrand,
|
|
10228
|
+
userBrand: userBrand,
|
|
10201
10229
|
account: account ? new AccountModel(account) : new AccountModel({}),
|
|
10202
10230
|
user: user ? new UserModel(user) : new UserModel({})
|
|
10203
10231
|
} },
|
|
@@ -16847,6 +16875,15 @@ var EnhancedFormModel = /** @class */ (function (_super) {
|
|
|
16847
16875
|
return EnhancedFormModel;
|
|
16848
16876
|
}(SummaryEnhancedFormModel));
|
|
16849
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
|
+
|
|
16850
16887
|
var ListModel = /** @class */ (function () {
|
|
16851
16888
|
function ListModel(params) {
|
|
16852
16889
|
this.id = params.id;
|
|
@@ -16866,6 +16903,12 @@ var ListModel = /** @class */ (function () {
|
|
|
16866
16903
|
ListModel.prototype.set = function (property, value) {
|
|
16867
16904
|
modelSet(this, property, value);
|
|
16868
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
|
+
};
|
|
16869
16912
|
return ListModel;
|
|
16870
16913
|
}());
|
|
16871
16914
|
|
|
@@ -17440,6 +17483,7 @@ exports.TopMenu = TopMenu;
|
|
|
17440
17483
|
exports.Typography = Typography;
|
|
17441
17484
|
exports.UserModel = UserModel;
|
|
17442
17485
|
exports.UsersFactory = UsersFactory;
|
|
17486
|
+
exports.acceptListPolicy = acceptListPolicy;
|
|
17443
17487
|
exports.addPartialInformation = addPartialInformation;
|
|
17444
17488
|
exports.addToImpersonificationTree = addToImpersonificationTree;
|
|
17445
17489
|
exports.amIImpersonating = amIImpersonating;
|
|
@@ -17550,6 +17594,7 @@ exports.listContacts = listContacts;
|
|
|
17550
17594
|
exports.listEmailLogs = listEmailLogs;
|
|
17551
17595
|
exports.listForms = listForms;
|
|
17552
17596
|
exports.listList = listList;
|
|
17597
|
+
exports.listListAttributes = listListAttributes;
|
|
17553
17598
|
exports.listSenders = listSenders;
|
|
17554
17599
|
exports.listSystemEmails = listSystemEmails;
|
|
17555
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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TGenericWrapper } from "./types";
|
|
3
|
-
export declare function GenericWrapper({ children, brandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
3
|
+
export declare function GenericWrapper({ children, brandObj, userBrandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
4
4
|
export default GenericWrapper;
|
|
5
5
|
export * from "./context";
|
|
6
6
|
export * from "./types";
|
|
@@ -6,6 +6,7 @@ import { TUserModel } from "../../models/user/types";
|
|
|
6
6
|
export type TGenericWrapper = {
|
|
7
7
|
children: any;
|
|
8
8
|
brandObj?: TBrand;
|
|
9
|
+
userBrandObj?: TBrand;
|
|
9
10
|
brandHost?: string;
|
|
10
11
|
brandId?: string;
|
|
11
12
|
account?: TAccountModel;
|
|
@@ -20,6 +21,7 @@ export type TGenericWrapper = {
|
|
|
20
21
|
};
|
|
21
22
|
export type TGenericWrapperContext = {
|
|
22
23
|
partnerBrand: TBrand;
|
|
24
|
+
userBrand?: TBrand;
|
|
23
25
|
account: AccountModel;
|
|
24
26
|
user: UserModel;
|
|
25
27
|
};
|
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"]);
|
|
@@ -10109,15 +10131,17 @@ var UserModel = /** @class */ (function () {
|
|
|
10109
10131
|
|
|
10110
10132
|
var GenericWrapperContext = createContext({
|
|
10111
10133
|
partnerBrand: {},
|
|
10134
|
+
userBrand: undefined,
|
|
10112
10135
|
account: {},
|
|
10113
10136
|
user: {}
|
|
10114
10137
|
});
|
|
10115
10138
|
|
|
10116
10139
|
function GenericWrapper(_a) {
|
|
10117
|
-
var children = _a.children, brandObj = _a.brandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d, _e = _a.includeHandlers, includeHandlers = _e === void 0 ? true : _e;
|
|
10140
|
+
var children = _a.children, brandObj = _a.brandObj, userBrandObj = _a.userBrandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d, _e = _a.includeHandlers, includeHandlers = _e === void 0 ? true : _e;
|
|
10118
10141
|
var _f = useState(brandObj ? buildMUITheme({ brand: brandObj }) : undefined), mUITheme = _f[0], setMUITheme = _f[1];
|
|
10119
10142
|
var _g = useState(brandObj), resellerBrand = _g[0], setResellerBrand = _g[1];
|
|
10120
|
-
var _h =
|
|
10143
|
+
var _h = useState(userBrandObj), userBrand = _h[0], setUserBrand = _h[1];
|
|
10144
|
+
var _j = useTranslation(); _j.t; _j.i18n;
|
|
10121
10145
|
var dialogRef = useRef(undefined);
|
|
10122
10146
|
var actionsBarContainerRef = useRef(undefined);
|
|
10123
10147
|
var overlayRef = useRef(undefined);
|
|
@@ -10135,6 +10159,9 @@ function GenericWrapper(_a) {
|
|
|
10135
10159
|
LocizeInitializer.changeLanguage(locale);
|
|
10136
10160
|
}
|
|
10137
10161
|
moment$1.locale(locale);
|
|
10162
|
+
getBrand({ id: user.id, compiled: false }).then(function (res) {
|
|
10163
|
+
setUserBrand(res);
|
|
10164
|
+
});
|
|
10138
10165
|
}
|
|
10139
10166
|
}, [user]);
|
|
10140
10167
|
useEffect(initPH, []);
|
|
@@ -10178,6 +10205,7 @@ function GenericWrapper(_a) {
|
|
|
10178
10205
|
}, noFetch: !!brandObj, setPageHead: setPageHead, brandThemeContext: brandThemeContext, includeHandlers: false }, resellerBrand &&
|
|
10179
10206
|
React__default.createElement(GenericWrapperContext.Provider, { value: {
|
|
10180
10207
|
partnerBrand: resellerBrand,
|
|
10208
|
+
userBrand: userBrand,
|
|
10181
10209
|
account: account ? new AccountModel(account) : new AccountModel({}),
|
|
10182
10210
|
user: user ? new UserModel(user) : new UserModel({})
|
|
10183
10211
|
} },
|
|
@@ -16827,6 +16855,15 @@ var EnhancedFormModel = /** @class */ (function (_super) {
|
|
|
16827
16855
|
return EnhancedFormModel;
|
|
16828
16856
|
}(SummaryEnhancedFormModel));
|
|
16829
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
|
+
|
|
16830
16867
|
var ListModel = /** @class */ (function () {
|
|
16831
16868
|
function ListModel(params) {
|
|
16832
16869
|
this.id = params.id;
|
|
@@ -16846,6 +16883,12 @@ var ListModel = /** @class */ (function () {
|
|
|
16846
16883
|
ListModel.prototype.set = function (property, value) {
|
|
16847
16884
|
modelSet(this, property, value);
|
|
16848
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
|
+
};
|
|
16849
16892
|
return ListModel;
|
|
16850
16893
|
}());
|
|
16851
16894
|
|
|
@@ -17322,4 +17365,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
17322
17365
|
return UsersFactory;
|
|
17323
17366
|
}());
|
|
17324
17367
|
|
|
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 };
|
|
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";
|