@cakemail-org/ui-components-v2 2.0.86 → 2.0.88

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.
@@ -34,6 +34,7 @@ export * from "./loadingContainer";
34
34
  export * from "./logo";
35
35
  export * from "./metricCard";
36
36
  export * from "./modal";
37
+ export * from "./radio";
37
38
  export * from "./resourceEdit";
38
39
  export * from "./search";
39
40
  export * from "./sideMenu";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TRadio } from "./types";
3
+ export declare function Radio({ ...props }: TRadio): React.JSX.Element;
4
+ export default Radio;
@@ -0,0 +1,5 @@
1
+ import { RadioProps } from "@mui/material/Radio";
2
+ import { TColors } from "../../types/generic";
3
+ export interface TRadio extends RadioProps {
4
+ color?: TColors;
5
+ }
@@ -0,0 +1,69 @@
1
+ import { Theme } from "@mui/material";
2
+ import { TComponentsOwnerState } from "../../types/generic";
3
+ declare module "@mui/material/Radio" {
4
+ interface RadioPropsColorOverrides {
5
+ body1: true;
6
+ body2: true;
7
+ darkMatter: true;
8
+ silver: true;
9
+ wildSand: true;
10
+ cloud: true;
11
+ boulder: true;
12
+ pebble: true;
13
+ white: true;
14
+ shade1000: true;
15
+ shade950: true;
16
+ shade900: true;
17
+ shade850: true;
18
+ shade800: true;
19
+ shade750: true;
20
+ shade700: true;
21
+ shade650: true;
22
+ shade600: true;
23
+ shade550: true;
24
+ shade500: true;
25
+ shade450: true;
26
+ shade400: true;
27
+ shade350: true;
28
+ shade300: true;
29
+ shade250: true;
30
+ shade200: true;
31
+ shade150: true;
32
+ shade100: true;
33
+ shade50: true;
34
+ }
35
+ }
36
+ export default function getMuiRadio(theme: Theme): {
37
+ variants: ({
38
+ props: {
39
+ size: string;
40
+ };
41
+ style: {
42
+ width: string;
43
+ height: string;
44
+ ".MuiSvgIcon-root": {
45
+ fontSize: string;
46
+ };
47
+ padding?: undefined;
48
+ };
49
+ } | {
50
+ props: {
51
+ size: string;
52
+ };
53
+ style: {
54
+ width: string;
55
+ height: string;
56
+ padding: string;
57
+ ".MuiSvgIcon-root": {
58
+ fontSize: string;
59
+ };
60
+ };
61
+ })[];
62
+ styleOverrides: {
63
+ root: ({ ownerState, theme }: TComponentsOwnerState) => any;
64
+ };
65
+ defaultProps: {
66
+ disableRipple: boolean;
67
+ size: string;
68
+ };
69
+ };
package/dist/cjs/index.js CHANGED
@@ -6265,6 +6265,76 @@ function getMuiPopper(theme) {
6265
6265
  return {};
6266
6266
  }
6267
6267
 
6268
+ function getMuiRadio(theme) {
6269
+ return {
6270
+ variants: [
6271
+ {
6272
+ props: { size: "medium" },
6273
+ style: {
6274
+ width: theme.spacing(6),
6275
+ height: theme.spacing(6),
6276
+ ".MuiSvgIcon-root": {
6277
+ fontSize: theme.spacing(5),
6278
+ }
6279
+ },
6280
+ },
6281
+ {
6282
+ props: { size: "small" },
6283
+ style: {
6284
+ width: theme.spacing(4.5),
6285
+ height: theme.spacing(4.5),
6286
+ padding: "7px",
6287
+ ".MuiSvgIcon-root": {
6288
+ fontSize: theme.spacing(4),
6289
+ }
6290
+ },
6291
+ },
6292
+ ],
6293
+ styleOverrides: {
6294
+ root: function (_a) {
6295
+ var ownerState = _a.ownerState, theme = _a.theme;
6296
+ var styles = {
6297
+ border: "1px solid ".concat(theme.palette.silver.main),
6298
+ background: theme.palette.common.white,
6299
+ "&.Mui-disabled": {
6300
+ opacity: "0.65",
6301
+ },
6302
+ "&.Mui-checked": {
6303
+ border: "2px solid ".concat(theme.palette[ownerState.color].main),
6304
+ },
6305
+ "&:hover.Mui-checked": {
6306
+ border: "2px solid ".concat(theme.palette.wildSand.main),
6307
+ background: theme.palette.wildSand.main,
6308
+ color: theme.palette.text.primary,
6309
+ ".MuiSvgIcon-root": {
6310
+ color: theme.palette.body1.main,
6311
+ }
6312
+ },
6313
+ "&:hover:not(.Mui-checked)": {
6314
+ border: "2px solid ".concat(theme.palette.wildSand.main),
6315
+ background: theme.palette.wildSand.main,
6316
+ color: theme.palette.text.primary,
6317
+ ".MuiSvgIcon-root": {
6318
+ color: theme.palette.silver.main,
6319
+ }
6320
+ },
6321
+ "span > svg:first-child": {
6322
+ opacity: 0,
6323
+ },
6324
+ "span > svg:last-child": {
6325
+ color: theme.palette[ownerState.color].main
6326
+ },
6327
+ };
6328
+ return styles;
6329
+ },
6330
+ },
6331
+ defaultProps: {
6332
+ disableRipple: true,
6333
+ size: "medium"
6334
+ },
6335
+ };
6336
+ }
6337
+
6268
6338
  function getMuiSelect(theme) {
6269
6339
  return {
6270
6340
  variants: [
@@ -7256,6 +7326,7 @@ function buildMUITheme(_a) {
7256
7326
  MuiTableCell: getMuiTableCell(theme),
7257
7327
  MuiTablePagination: getMuiTablePagination(theme),
7258
7328
  MuiCheckbox: getMuiCheckbox(theme),
7329
+ MuiRadio: getMuiRadio(theme),
7259
7330
  MuiAvatar: getMuiAvatar(theme),
7260
7331
  MuiBadge: getMuiBadge(),
7261
7332
  MuiTableFooter: {},
@@ -9941,6 +10012,28 @@ function getListLogs(_a) {
9941
10012
  query: camelCase(options)
9942
10013
  });
9943
10014
  }
10015
+ function acceptListPolicy(_a) {
10016
+ var id = _a.id;
10017
+ return callApi({
10018
+ url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/accept-policy"),
10019
+ fetchOptions: {
10020
+ method: exports.EMethods.post,
10021
+ },
10022
+ });
10023
+ }
10024
+ function listListAttributes(_a) {
10025
+ var id = _a.id, options = __rest(_a, ["id"]);
10026
+ if (!(options === null || options === void 0 ? void 0 : options.perPage)) {
10027
+ options.perPage = 200;
10028
+ }
10029
+ return callApi({
10030
+ url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/custom-attributes"),
10031
+ query: camelCase(options),
10032
+ fetchOptions: {
10033
+ method: exports.EMethods.get,
10034
+ },
10035
+ });
10036
+ }
9944
10037
 
9945
10038
  function listSenders(_a) {
9946
10039
  var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
@@ -15734,6 +15827,11 @@ function MetricCard(_a) {
15734
15827
  rightContent && React.createElement(Stack, { className: "rightContent" }, rightContent));
15735
15828
  }
15736
15829
 
15830
+ function Radio(_a) {
15831
+ var props = __rest(_a, []);
15832
+ return React.createElement(material.Radio, __assign({}, props));
15833
+ }
15834
+
15737
15835
  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}\n.resourceEdit-component-v2 .resource-content,\n.resourceEdit-component-v2 .resource-support {\n padding-bottom: 1.5rem;\n}";
15738
15836
  styleInject(css_248z$3);
15739
15837
 
@@ -16853,6 +16951,15 @@ var EnhancedFormModel = /** @class */ (function (_super) {
16853
16951
  return EnhancedFormModel;
16854
16952
  }(SummaryEnhancedFormModel));
16855
16953
 
16954
+ exports.EListAttributeType = void 0;
16955
+ (function (EListAttributeType) {
16956
+ EListAttributeType["text"] = "text";
16957
+ EListAttributeType["mediumtext"] = "mediumtext";
16958
+ EListAttributeType["integer"] = "integer";
16959
+ EListAttributeType["timestamp"] = "timestamp";
16960
+ EListAttributeType["datetime"] = "datetime";
16961
+ })(exports.EListAttributeType || (exports.EListAttributeType = {}));
16962
+
16856
16963
  var ListModel = /** @class */ (function () {
16857
16964
  function ListModel(params) {
16858
16965
  this.id = params.id;
@@ -16872,6 +16979,12 @@ var ListModel = /** @class */ (function () {
16872
16979
  ListModel.prototype.set = function (property, value) {
16873
16980
  modelSet(this, property, value);
16874
16981
  };
16982
+ ListModel.prototype.acceptPolicy = function () {
16983
+ return acceptListPolicy({ id: this.id });
16984
+ };
16985
+ ListModel.prototype.getAttributes = function (options) {
16986
+ return listListAttributes(__assign({ id: this.id }, options));
16987
+ };
16875
16988
  return ListModel;
16876
16989
  }());
16877
16990
 
@@ -17424,6 +17537,7 @@ exports.ModalHandler = ModalHandler;
17424
17537
  exports.ModalHeading = ModalHeading;
17425
17538
  exports.OverlayHandler = OverlayHandler;
17426
17539
  exports.PhoneTextField = PhoneTextField;
17540
+ exports.Radio = Radio;
17427
17541
  exports.ResourceEdit = ResourceEdit;
17428
17542
  exports.Search = Search;
17429
17543
  exports.SenderModel = SenderModel;
@@ -17446,6 +17560,7 @@ exports.TopMenu = TopMenu;
17446
17560
  exports.Typography = Typography;
17447
17561
  exports.UserModel = UserModel;
17448
17562
  exports.UsersFactory = UsersFactory;
17563
+ exports.acceptListPolicy = acceptListPolicy;
17449
17564
  exports.addPartialInformation = addPartialInformation;
17450
17565
  exports.addToImpersonificationTree = addToImpersonificationTree;
17451
17566
  exports.amIImpersonating = amIImpersonating;
@@ -17556,6 +17671,7 @@ exports.listContacts = listContacts;
17556
17671
  exports.listEmailLogs = listEmailLogs;
17557
17672
  exports.listForms = listForms;
17558
17673
  exports.listList = listList;
17674
+ exports.listListAttributes = listListAttributes;
17559
17675
  exports.listSenders = listSenders;
17560
17676
  exports.listSystemEmails = listSystemEmails;
17561
17677
  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";
@@ -34,6 +34,7 @@ export * from "./loadingContainer";
34
34
  export * from "./logo";
35
35
  export * from "./metricCard";
36
36
  export * from "./modal";
37
+ export * from "./radio";
37
38
  export * from "./resourceEdit";
38
39
  export * from "./search";
39
40
  export * from "./sideMenu";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TRadio } from "./types";
3
+ export declare function Radio({ ...props }: TRadio): React.JSX.Element;
4
+ export default Radio;
@@ -0,0 +1,5 @@
1
+ import { RadioProps } from "@mui/material/Radio";
2
+ import { TColors } from "../../types/generic";
3
+ export interface TRadio extends RadioProps {
4
+ color?: TColors;
5
+ }
@@ -0,0 +1,69 @@
1
+ import { Theme } from "@mui/material";
2
+ import { TComponentsOwnerState } from "../../types/generic";
3
+ declare module "@mui/material/Radio" {
4
+ interface RadioPropsColorOverrides {
5
+ body1: true;
6
+ body2: true;
7
+ darkMatter: true;
8
+ silver: true;
9
+ wildSand: true;
10
+ cloud: true;
11
+ boulder: true;
12
+ pebble: true;
13
+ white: true;
14
+ shade1000: true;
15
+ shade950: true;
16
+ shade900: true;
17
+ shade850: true;
18
+ shade800: true;
19
+ shade750: true;
20
+ shade700: true;
21
+ shade650: true;
22
+ shade600: true;
23
+ shade550: true;
24
+ shade500: true;
25
+ shade450: true;
26
+ shade400: true;
27
+ shade350: true;
28
+ shade300: true;
29
+ shade250: true;
30
+ shade200: true;
31
+ shade150: true;
32
+ shade100: true;
33
+ shade50: true;
34
+ }
35
+ }
36
+ export default function getMuiRadio(theme: Theme): {
37
+ variants: ({
38
+ props: {
39
+ size: string;
40
+ };
41
+ style: {
42
+ width: string;
43
+ height: string;
44
+ ".MuiSvgIcon-root": {
45
+ fontSize: string;
46
+ };
47
+ padding?: undefined;
48
+ };
49
+ } | {
50
+ props: {
51
+ size: string;
52
+ };
53
+ style: {
54
+ width: string;
55
+ height: string;
56
+ padding: string;
57
+ ".MuiSvgIcon-root": {
58
+ fontSize: string;
59
+ };
60
+ };
61
+ })[];
62
+ styleOverrides: {
63
+ root: ({ ownerState, theme }: TComponentsOwnerState) => any;
64
+ };
65
+ defaultProps: {
66
+ disableRipple: boolean;
67
+ size: string;
68
+ };
69
+ };
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Stack as Stack$1, Box, CircularProgress as CircularProgress$1, LinearProgress as LinearProgress$1, Tooltip, Typography as Typography$1, Badge, Avatar as Avatar$1, lighten, Dialog as Dialog$1, DialogContent, Checkbox as Checkbox$1, Paper, Chip as Chip$1, ClickAwayListener, useTheme as useTheme$2, FormControl, InputLabel, Link, InputAdornment, Select as Select$1, MenuItem as MenuItem$1 } from '@mui/material';
1
+ import { Stack as Stack$1, Box, CircularProgress as CircularProgress$1, LinearProgress as LinearProgress$1, Tooltip, Typography as Typography$1, Badge, Avatar as Avatar$1, lighten, Dialog as Dialog$1, DialogContent, Checkbox as Checkbox$1, Paper, Chip as Chip$1, ClickAwayListener, useTheme as useTheme$2, FormControl, InputLabel, Link, Radio as Radio$1, InputAdornment, Select as Select$1, MenuItem as MenuItem$1 } from '@mui/material';
2
2
  import classNames from 'classnames';
3
3
  import * as React from 'react';
4
4
  import React__default, { forwardRef, useRef, useState, useEffect, useLayoutEffect, useImperativeHandle, Component, useCallback, createContext } from 'react';
@@ -6245,6 +6245,76 @@ function getMuiPopper(theme) {
6245
6245
  return {};
6246
6246
  }
6247
6247
 
6248
+ function getMuiRadio(theme) {
6249
+ return {
6250
+ variants: [
6251
+ {
6252
+ props: { size: "medium" },
6253
+ style: {
6254
+ width: theme.spacing(6),
6255
+ height: theme.spacing(6),
6256
+ ".MuiSvgIcon-root": {
6257
+ fontSize: theme.spacing(5),
6258
+ }
6259
+ },
6260
+ },
6261
+ {
6262
+ props: { size: "small" },
6263
+ style: {
6264
+ width: theme.spacing(4.5),
6265
+ height: theme.spacing(4.5),
6266
+ padding: "7px",
6267
+ ".MuiSvgIcon-root": {
6268
+ fontSize: theme.spacing(4),
6269
+ }
6270
+ },
6271
+ },
6272
+ ],
6273
+ styleOverrides: {
6274
+ root: function (_a) {
6275
+ var ownerState = _a.ownerState, theme = _a.theme;
6276
+ var styles = {
6277
+ border: "1px solid ".concat(theme.palette.silver.main),
6278
+ background: theme.palette.common.white,
6279
+ "&.Mui-disabled": {
6280
+ opacity: "0.65",
6281
+ },
6282
+ "&.Mui-checked": {
6283
+ border: "2px solid ".concat(theme.palette[ownerState.color].main),
6284
+ },
6285
+ "&:hover.Mui-checked": {
6286
+ border: "2px solid ".concat(theme.palette.wildSand.main),
6287
+ background: theme.palette.wildSand.main,
6288
+ color: theme.palette.text.primary,
6289
+ ".MuiSvgIcon-root": {
6290
+ color: theme.palette.body1.main,
6291
+ }
6292
+ },
6293
+ "&:hover:not(.Mui-checked)": {
6294
+ border: "2px solid ".concat(theme.palette.wildSand.main),
6295
+ background: theme.palette.wildSand.main,
6296
+ color: theme.palette.text.primary,
6297
+ ".MuiSvgIcon-root": {
6298
+ color: theme.palette.silver.main,
6299
+ }
6300
+ },
6301
+ "span > svg:first-child": {
6302
+ opacity: 0,
6303
+ },
6304
+ "span > svg:last-child": {
6305
+ color: theme.palette[ownerState.color].main
6306
+ },
6307
+ };
6308
+ return styles;
6309
+ },
6310
+ },
6311
+ defaultProps: {
6312
+ disableRipple: true,
6313
+ size: "medium"
6314
+ },
6315
+ };
6316
+ }
6317
+
6248
6318
  function getMuiSelect(theme) {
6249
6319
  return {
6250
6320
  variants: [
@@ -7236,6 +7306,7 @@ function buildMUITheme(_a) {
7236
7306
  MuiTableCell: getMuiTableCell(theme),
7237
7307
  MuiTablePagination: getMuiTablePagination(theme),
7238
7308
  MuiCheckbox: getMuiCheckbox(theme),
7309
+ MuiRadio: getMuiRadio(theme),
7239
7310
  MuiAvatar: getMuiAvatar(theme),
7240
7311
  MuiBadge: getMuiBadge(),
7241
7312
  MuiTableFooter: {},
@@ -9921,6 +9992,28 @@ function getListLogs(_a) {
9921
9992
  query: camelCase(options)
9922
9993
  });
9923
9994
  }
9995
+ function acceptListPolicy(_a) {
9996
+ var id = _a.id;
9997
+ return callApi({
9998
+ url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/accept-policy"),
9999
+ fetchOptions: {
10000
+ method: EMethods.post,
10001
+ },
10002
+ });
10003
+ }
10004
+ function listListAttributes(_a) {
10005
+ var id = _a.id, options = __rest(_a, ["id"]);
10006
+ if (!(options === null || options === void 0 ? void 0 : options.perPage)) {
10007
+ options.perPage = 200;
10008
+ }
10009
+ return callApi({
10010
+ url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(id, "/custom-attributes"),
10011
+ query: camelCase(options),
10012
+ fetchOptions: {
10013
+ method: EMethods.get,
10014
+ },
10015
+ });
10016
+ }
9924
10017
 
9925
10018
  function listSenders(_a) {
9926
10019
  var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
@@ -15714,6 +15807,11 @@ function MetricCard(_a) {
15714
15807
  rightContent && React__default.createElement(Stack, { className: "rightContent" }, rightContent));
15715
15808
  }
15716
15809
 
15810
+ function Radio(_a) {
15811
+ var props = __rest(_a, []);
15812
+ return React__default.createElement(Radio$1, __assign({}, props));
15813
+ }
15814
+
15717
15815
  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}\n.resourceEdit-component-v2 .resource-content,\n.resourceEdit-component-v2 .resource-support {\n padding-bottom: 1.5rem;\n}";
15718
15816
  styleInject(css_248z$3);
15719
15817
 
@@ -16833,6 +16931,15 @@ var EnhancedFormModel = /** @class */ (function (_super) {
16833
16931
  return EnhancedFormModel;
16834
16932
  }(SummaryEnhancedFormModel));
16835
16933
 
16934
+ var EListAttributeType;
16935
+ (function (EListAttributeType) {
16936
+ EListAttributeType["text"] = "text";
16937
+ EListAttributeType["mediumtext"] = "mediumtext";
16938
+ EListAttributeType["integer"] = "integer";
16939
+ EListAttributeType["timestamp"] = "timestamp";
16940
+ EListAttributeType["datetime"] = "datetime";
16941
+ })(EListAttributeType || (EListAttributeType = {}));
16942
+
16836
16943
  var ListModel = /** @class */ (function () {
16837
16944
  function ListModel(params) {
16838
16945
  this.id = params.id;
@@ -16852,6 +16959,12 @@ var ListModel = /** @class */ (function () {
16852
16959
  ListModel.prototype.set = function (property, value) {
16853
16960
  modelSet(this, property, value);
16854
16961
  };
16962
+ ListModel.prototype.acceptPolicy = function () {
16963
+ return acceptListPolicy({ id: this.id });
16964
+ };
16965
+ ListModel.prototype.getAttributes = function (options) {
16966
+ return listListAttributes(__assign({ id: this.id }, options));
16967
+ };
16855
16968
  return ListModel;
16856
16969
  }());
16857
16970
 
@@ -17328,4 +17441,4 @@ var UsersFactory = /** @class */ (function () {
17328
17441
  return UsersFactory;
17329
17442
  }());
17330
17443
 
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 };
17444
+ 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, 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, 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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.0.86",
3
+ "version": "2.0.88",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",