@cakemail-org/ui-components-v2 2.1.49 → 2.1.51

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.
@@ -0,0 +1,14 @@
1
+ import { ListPopupModel, PopupModel } from "../../models/popups";
2
+ import { TPopupModel } from "../../models/popups/types";
3
+ import { TGenericListParams, TGenericListReturn } from "../../types";
4
+ export declare class PopupsFactory {
5
+ static list({ ...params }: TGenericListParams & {
6
+ name?: string;
7
+ tags?: string[];
8
+ enabled?: boolean;
9
+ }): Promise<TGenericListReturn<ListPopupModel>>;
10
+ static create({ ...popup }: Partial<TPopupModel>): Promise<PopupModel>;
11
+ static get({ id }: {
12
+ id: string;
13
+ }): Promise<PopupModel>;
14
+ }
package/dist/cjs/index.js CHANGED
@@ -5331,6 +5331,12 @@ exports.EEvents = void 0;
5331
5331
  EEvents["MFA_DISABLE_FLOW"] = "MFA.Disable.Flow.Started";
5332
5332
  EEvents["MFA_ENABLED"] = "MFA.Enabled";
5333
5333
  EEvents["MFA_DISABLED"] = "MFA.Disabled";
5334
+ EEvents["POPUP_CREATED"] = "Popup.Created";
5335
+ EEvents["POPUP_UPDATED"] = "Popup.Updated";
5336
+ EEvents["POPUP_DELETED"] = "Popup.Deleted";
5337
+ EEvents["POPUP_ENABLED"] = "Popup.Enabled";
5338
+ EEvents["POPUP_DISABLED"] = "Popup.Disabled";
5339
+ EEvents["POPUP_PUBLISHED"] = "Popup.Published";
5334
5340
  })(exports.EEvents || (exports.EEvents = {}));
5335
5341
  function eventCondition(type, disabledEvents) {
5336
5342
  if (disabledEvents === void 0) { disabledEvents = []; }
@@ -9713,6 +9719,109 @@ var AccountModel = /** @class */ (function () {
9713
9719
  return AccountModel;
9714
9720
  }());
9715
9721
 
9722
+ function listUsers(_a) {
9723
+ var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
9724
+ return callApi({
9725
+ url: uiKitConfig.GATEWAY_PROXY + "/users",
9726
+ query: camelCase(options),
9727
+ fetchOptions: {
9728
+ method: exports.EMethods.get
9729
+ },
9730
+ useImpersonationTree: useImpersonationTree
9731
+ });
9732
+ }
9733
+ function getUser(_a) {
9734
+ var id = _a.id;
9735
+ return callApi({
9736
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9737
+ fetchOptions: {
9738
+ method: exports.EMethods.get
9739
+ }
9740
+ });
9741
+ }
9742
+ function updateUser(_a) {
9743
+ var id = _a.id, data = _a.data;
9744
+ return callApi({
9745
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9746
+ fetchOptions: {
9747
+ method: exports.EMethods.patch,
9748
+ body: data
9749
+ }
9750
+ });
9751
+ }
9752
+ function deleteUser(_a) {
9753
+ var id = _a.id;
9754
+ return callApi({
9755
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9756
+ fetchOptions: {
9757
+ method: exports.EMethods.delete
9758
+ }
9759
+ });
9760
+ }
9761
+ function resendVerificationEmail(_a) {
9762
+ var id = _a.id;
9763
+ return callApi({
9764
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id + "/resend-verification-email",
9765
+ fetchOptions: {
9766
+ method: exports.EMethods.post
9767
+ }
9768
+ });
9769
+ }
9770
+
9771
+ var UserModel = /** @class */ (function () {
9772
+ function UserModel(_a) {
9773
+ var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
9774
+ this.id = id || 0;
9775
+ this.email = email || "";
9776
+ this.status = status || "";
9777
+ this.created_on = created_on || 0;
9778
+ this.last_activity_on = last_activity_on || 0;
9779
+ this.expires_on = expires_on || 0;
9780
+ this.first_name = first_name || "";
9781
+ this.last_name = last_name || "";
9782
+ this.title = title || "";
9783
+ this.language = language || "en_US";
9784
+ this.timezone = timezone || "";
9785
+ this.office_phone = office_phone || "";
9786
+ this.mobile_phone = mobile_phone || "";
9787
+ }
9788
+ UserModel.prototype.toJson = function () {
9789
+ return modelToJson(this);
9790
+ };
9791
+ UserModel.prototype.set = function (property, value) {
9792
+ modelSet(this, property, value);
9793
+ };
9794
+ UserModel.prototype.update = function (user) {
9795
+ return __awaiter(this, void 0, void 0, function () {
9796
+ return __generator(this, function (_a) {
9797
+ return [2 /*return*/, updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
9798
+ trackEvent(exports.EEvents.USER_UPDATED);
9799
+ return new UserModel(data.data);
9800
+ })];
9801
+ });
9802
+ });
9803
+ };
9804
+ UserModel.prototype.delete = function () {
9805
+ return __awaiter(this, void 0, void 0, function () {
9806
+ return __generator(this, function (_a) {
9807
+ return [2 /*return*/, deleteUser({ id: this.id }).then(function (data) {
9808
+ return data.data;
9809
+ })];
9810
+ });
9811
+ });
9812
+ };
9813
+ UserModel.prototype.resendVerificationEmail = function () {
9814
+ return __awaiter(this, void 0, void 0, function () {
9815
+ return __generator(this, function (_a) {
9816
+ return [2 /*return*/, resendVerificationEmail({ id: this.id }).then(function (data) {
9817
+ return data.data;
9818
+ })];
9819
+ });
9820
+ });
9821
+ };
9822
+ return UserModel;
9823
+ }());
9824
+
9716
9825
  function amILoggedInService() {
9717
9826
  return callApi({
9718
9827
  url: uiKitConfig.GATEWAY_PROXY + "/amiloggedin",
@@ -10643,69 +10752,6 @@ function unshareTemplate(_a) {
10643
10752
  });
10644
10753
  }
10645
10754
 
10646
- function listUsers(_a) {
10647
- var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
10648
- return callApi({
10649
- url: uiKitConfig.GATEWAY_PROXY + "/users",
10650
- query: camelCase(options),
10651
- fetchOptions: {
10652
- method: exports.EMethods.get
10653
- },
10654
- useImpersonationTree: useImpersonationTree
10655
- });
10656
- }
10657
- function getUser(_a) {
10658
- var id = _a.id;
10659
- return callApi({
10660
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10661
- fetchOptions: {
10662
- method: exports.EMethods.get
10663
- }
10664
- });
10665
- }
10666
- function updateUser(_a) {
10667
- var id = _a.id, data = _a.data;
10668
- return callApi({
10669
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10670
- fetchOptions: {
10671
- method: exports.EMethods.patch,
10672
- body: data
10673
- }
10674
- });
10675
- }
10676
-
10677
- var UserModel = /** @class */ (function () {
10678
- function UserModel(_a) {
10679
- var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
10680
- this.id = id || 0;
10681
- this.email = email || "";
10682
- this.status = status || "";
10683
- this.created_on = created_on || 0;
10684
- this.last_activity_on = last_activity_on || 0;
10685
- this.expires_on = expires_on || 0;
10686
- this.first_name = first_name || "";
10687
- this.last_name = last_name || "";
10688
- this.title = title || "";
10689
- this.language = language || "en_US";
10690
- this.timezone = timezone || "";
10691
- this.office_phone = office_phone || "";
10692
- this.mobile_phone = mobile_phone || "";
10693
- }
10694
- UserModel.prototype.toJson = function () {
10695
- return modelToJson(this);
10696
- };
10697
- UserModel.prototype.set = function (property, value) {
10698
- modelSet(this, property, value);
10699
- };
10700
- UserModel.prototype.update = function (user) {
10701
- return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
10702
- trackEvent(exports.EEvents.USER_UPDATED);
10703
- return new UserModel(data.data);
10704
- });
10705
- };
10706
- return UserModel;
10707
- }());
10708
-
10709
10755
  var GenericWrapperContext = React.createContext({
10710
10756
  partnerBrand: {},
10711
10757
  userBrand: undefined,
@@ -18428,6 +18474,7 @@ exports.deleteStorageItem = deleteStorageItem;
18428
18474
  exports.deleteSuppressedEmail = deleteSuppressedEmail;
18429
18475
  exports.deleteTaskService = deleteTaskService;
18430
18476
  exports.deleteTemplate = deleteTemplate;
18477
+ exports.deleteUser = deleteUser;
18431
18478
  exports.descendingComparator = descendingComparator;
18432
18479
  exports.disableForm = disableForm;
18433
18480
  exports.downloadCampaignLogExport = downloadCampaignLogExport;
@@ -18540,6 +18587,7 @@ exports.renderForm = renderForm;
18540
18587
  exports.renderPublicHtmlForm = renderPublicHtmlForm;
18541
18588
  exports.renderTemplate = renderTemplate;
18542
18589
  exports.requestSupportService = requestSupportService;
18590
+ exports.resendVerificationEmail = resendVerificationEmail;
18543
18591
  exports.resumeCampaign = resumeCampaign;
18544
18592
  exports.saveList = saveList;
18545
18593
  exports.scheduleCampaign = scheduleCampaign;
@@ -0,0 +1,35 @@
1
+ import { TDeleteApiResource } from "../../types";
2
+ import { EPopupBranding, EPopupDisplayFrequency, TPopupContent, TPopupModel, TPopupTargeting, TPopupTrigger, TPopupUser } from "./types";
3
+ export declare class ListPopupModel {
4
+ id: string;
5
+ readonly account_id: number;
6
+ name: string | null;
7
+ description: string | null;
8
+ enabled: boolean;
9
+ readonly created_on: number;
10
+ updated_on: number;
11
+ published_on: number | null;
12
+ branding: EPopupBranding;
13
+ tags: string[] | null;
14
+ edited_by: TPopupUser;
15
+ content: Omit<TPopupContent, "json">;
16
+ trigger: TPopupTrigger;
17
+ targeting: TPopupTargeting;
18
+ display_frequency: EPopupDisplayFrequency;
19
+ published_content_url: string | null;
20
+ thumbnail_url: string;
21
+ constructor(params: TPopupModel);
22
+ toJson(): any;
23
+ set<T extends keyof this>(property: T, value: this[T]): void;
24
+ delete(): Promise<TDeleteApiResource>;
25
+ save({ ...popup }: Partial<TPopupModel>): Promise<PopupModel>;
26
+ enable(): Promise<PopupModel>;
27
+ disable(): Promise<PopupModel>;
28
+ publish(): Promise<PopupModel>;
29
+ render(): Promise<string>;
30
+ }
31
+ export declare class PopupModel extends ListPopupModel {
32
+ content: TPopupContent;
33
+ constructor(params: TPopupModel);
34
+ toJson(): any;
35
+ }
@@ -0,0 +1,94 @@
1
+ export type TPopupModel = {
2
+ id: string;
3
+ account_id: number;
4
+ name: string | null;
5
+ description: string | null;
6
+ enabled: boolean;
7
+ created_on: number;
8
+ updated_on: number;
9
+ published_on: number | null;
10
+ branding: EPopupBranding;
11
+ tags: string[] | null;
12
+ edited_by: TPopupUser;
13
+ content: TPopupContent;
14
+ trigger: TPopupTrigger;
15
+ targeting: TPopupTargeting;
16
+ display_frequency: EPopupDisplayFrequency;
17
+ published_content_url: string | null;
18
+ thumbnail_url: string;
19
+ };
20
+ export type TPopupUser = {
21
+ id: string;
22
+ email: string;
23
+ };
24
+ export type TPopupTrigger = {
25
+ type: EPopupTriggerType;
26
+ delay_seconds: number | null;
27
+ scroll_percentage: number | null;
28
+ selector: string | null;
29
+ start_date: number | null;
30
+ end_date: number | null;
31
+ };
32
+ export type TPopupTargeting = {
33
+ pages: string[] | null;
34
+ exclude_pages: string[] | null;
35
+ devices: EPopupDeviceType[] | null;
36
+ browsers: EPopupBrowserType[] | null;
37
+ languages: string[] | null;
38
+ countries: string[] | null;
39
+ referrers: string[] | null;
40
+ utm_params: Record<string, string> | null;
41
+ };
42
+ export type TPopupContent = {
43
+ position: EPopupPosition | null;
44
+ json?: Record<string, any>;
45
+ };
46
+ export declare enum EPopupTriggerType {
47
+ on_page_load = "on_page_load",
48
+ on_exit_intent = "on_exit_intent",
49
+ on_scroll = "on_scroll",
50
+ on_time_delay = "on_time_delay",
51
+ on_click = "on_click"
52
+ }
53
+ export declare enum EPopupDisplayFrequency {
54
+ once_per_session = "once_per_session",
55
+ once_per_day = "once_per_day",
56
+ once_per_week = "once_per_week",
57
+ always = "always",
58
+ once = "once"
59
+ }
60
+ export declare enum EPopupDeviceType {
61
+ desktop = "desktop",
62
+ mobile = "mobile",
63
+ tablet = "tablet"
64
+ }
65
+ export declare enum EPopupBrowserType {
66
+ chrome = "chrome",
67
+ firefox = "firefox",
68
+ safari = "safari",
69
+ edge = "edge",
70
+ opera = "opera",
71
+ other = "other"
72
+ }
73
+ export declare enum EPopupPosition {
74
+ center = "classic-center",
75
+ top_right = "classic-top-right",
76
+ top_left = "classic-top-left",
77
+ top_center = "classic-top-center",
78
+ bottom_left = "classic-bottom-left",
79
+ bottom_center = "classic-bottom-center",
80
+ bottom_right = "classic-bottom-right",
81
+ drawer_left = "drawer-left",
82
+ drawer_right = "drawer-right",
83
+ drawer_top = "bar-top",
84
+ drawer_bottom = "bar-bottom"
85
+ }
86
+ export declare enum EPopupBranding {
87
+ smart = "smart",
88
+ basic = "basic"
89
+ }
90
+ export type TPopupFilters = {
91
+ name: string;
92
+ tags: string[];
93
+ enabled: string;
94
+ };
@@ -1,4 +1,4 @@
1
- import { TUserModel, TUserModelUpdate } from "./types";
1
+ import { TDeleteUserResponse, TResendVerificationEmailResponse, TUserModel, TUserModelUpdate } from "./types";
2
2
  export declare class UserModel {
3
3
  readonly id: number;
4
4
  readonly email: string;
@@ -17,5 +17,7 @@ export declare class UserModel {
17
17
  toJson(): any;
18
18
  set<T extends keyof this>(property: T, value: this[T]): void;
19
19
  update(user?: Partial<TUserModelUpdate>): Promise<UserModel>;
20
+ delete(): Promise<TDeleteUserResponse>;
21
+ resendVerificationEmail(): Promise<TResendVerificationEmailResponse>;
20
22
  }
21
23
  export * from "./types";
@@ -20,3 +20,12 @@ export type TUserModelUpdate = TUserModel & {
20
20
  password_strength_requirement: "VERY_WEAK" | "WEAK" | "MODERATE" | "STRONG" | "VERY_STRONG";
21
21
  };
22
22
  };
23
+ export type TDeleteUserResponse = {
24
+ id: string;
25
+ object: string;
26
+ deleted: boolean;
27
+ };
28
+ export type TResendVerificationEmailResponse = {
29
+ object: string;
30
+ confirmation_resent: boolean;
31
+ };
@@ -0,0 +1,31 @@
1
+ import { TPopupModel } from "../../models/popups/types";
2
+ import { TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
3
+ import { TCreateApiResource, TDeleteApiResource, TDisableApiResource, TEnableApiResource, TRenderResponse, TUpdateApiResource } from "../../types/generic";
4
+ export declare function listPopups({ ...options }: TGenericListParams & {
5
+ name?: string;
6
+ tags?: string[];
7
+ enabled?: boolean;
8
+ }): Promise<TGenericListReturn<TPopupModel>>;
9
+ export declare function createPopup({ ...popup }: Partial<TPopupModel>): Promise<TCreateApiResource<TPopupModel>>;
10
+ export declare function getPopup({ id }: {
11
+ id: string;
12
+ }): Promise<TGenericReturn<TPopupModel>>;
13
+ export declare function deletePopup({ id }: {
14
+ id: string;
15
+ }): Promise<TDeleteApiResource>;
16
+ export declare function updatePopup({ id, ...popup }: {
17
+ id: string;
18
+ popup: Partial<TPopupModel>;
19
+ }): Promise<TUpdateApiResource<TPopupModel>>;
20
+ export declare function enablePopup({ id }: {
21
+ id: string;
22
+ }): Promise<TEnableApiResource<TPopupModel>>;
23
+ export declare function disablePopup({ id }: {
24
+ id: string;
25
+ }): Promise<TDisableApiResource<TPopupModel>>;
26
+ export declare function publishPopup({ id }: {
27
+ id: string;
28
+ }): Promise<TUpdateApiResource<TPopupModel>>;
29
+ export declare function renderPopup({ id }: {
30
+ id: string;
31
+ }): Promise<TRenderResponse>;
@@ -8,4 +8,10 @@ export declare function updateUser({ id, data }: {
8
8
  id: number;
9
9
  data: TUserModelUpdate;
10
10
  }): Promise<any>;
11
+ export declare function deleteUser({ id }: {
12
+ id: number;
13
+ }): Promise<any>;
14
+ export declare function resendVerificationEmail({ id }: {
15
+ id: number;
16
+ }): Promise<any>;
11
17
  export * from "./types";
@@ -112,6 +112,9 @@ export type TCreateApiResource<T> = {
112
112
  object: string;
113
113
  data: T;
114
114
  };
115
+ export type TRenderResponse = {
116
+ data: string;
117
+ };
115
118
  export type TActionApiResource = {
116
119
  id: number;
117
120
  object: string;
@@ -143,7 +143,13 @@ export declare enum EEvents {
143
143
  MFA_ACTIVATION_FLOW = "MFA.Activation.Flow.Started",
144
144
  MFA_DISABLE_FLOW = "MFA.Disable.Flow.Started",
145
145
  MFA_ENABLED = "MFA.Enabled",
146
- MFA_DISABLED = "MFA.Disabled"
146
+ MFA_DISABLED = "MFA.Disabled",
147
+ POPUP_CREATED = "Popup.Created",
148
+ POPUP_UPDATED = "Popup.Updated",
149
+ POPUP_DELETED = "Popup.Deleted",
150
+ POPUP_ENABLED = "Popup.Enabled",
151
+ POPUP_DISABLED = "Popup.Disabled",
152
+ POPUP_PUBLISHED = "Popup.Published"
147
153
  }
148
154
  export declare function eventCondition(type: EEvents | string, disabledEvents?: string[]): boolean;
149
155
  export declare function trackEvent(type: EEvents | string, data?: any, dataParser?: (event: EEvents | string, data: any) => any, disabledEvents?: string[]): void;
@@ -0,0 +1,14 @@
1
+ import { ListPopupModel, PopupModel } from "../../models/popups";
2
+ import { TPopupModel } from "../../models/popups/types";
3
+ import { TGenericListParams, TGenericListReturn } from "../../types";
4
+ export declare class PopupsFactory {
5
+ static list({ ...params }: TGenericListParams & {
6
+ name?: string;
7
+ tags?: string[];
8
+ enabled?: boolean;
9
+ }): Promise<TGenericListReturn<ListPopupModel>>;
10
+ static create({ ...popup }: Partial<TPopupModel>): Promise<PopupModel>;
11
+ static get({ id }: {
12
+ id: string;
13
+ }): Promise<PopupModel>;
14
+ }
package/dist/esm/index.js CHANGED
@@ -5311,6 +5311,12 @@ var EEvents;
5311
5311
  EEvents["MFA_DISABLE_FLOW"] = "MFA.Disable.Flow.Started";
5312
5312
  EEvents["MFA_ENABLED"] = "MFA.Enabled";
5313
5313
  EEvents["MFA_DISABLED"] = "MFA.Disabled";
5314
+ EEvents["POPUP_CREATED"] = "Popup.Created";
5315
+ EEvents["POPUP_UPDATED"] = "Popup.Updated";
5316
+ EEvents["POPUP_DELETED"] = "Popup.Deleted";
5317
+ EEvents["POPUP_ENABLED"] = "Popup.Enabled";
5318
+ EEvents["POPUP_DISABLED"] = "Popup.Disabled";
5319
+ EEvents["POPUP_PUBLISHED"] = "Popup.Published";
5314
5320
  })(EEvents || (EEvents = {}));
5315
5321
  function eventCondition(type, disabledEvents) {
5316
5322
  if (disabledEvents === void 0) { disabledEvents = []; }
@@ -9693,6 +9699,109 @@ var AccountModel = /** @class */ (function () {
9693
9699
  return AccountModel;
9694
9700
  }());
9695
9701
 
9702
+ function listUsers(_a) {
9703
+ var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
9704
+ return callApi({
9705
+ url: uiKitConfig.GATEWAY_PROXY + "/users",
9706
+ query: camelCase(options),
9707
+ fetchOptions: {
9708
+ method: EMethods.get
9709
+ },
9710
+ useImpersonationTree: useImpersonationTree
9711
+ });
9712
+ }
9713
+ function getUser(_a) {
9714
+ var id = _a.id;
9715
+ return callApi({
9716
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9717
+ fetchOptions: {
9718
+ method: EMethods.get
9719
+ }
9720
+ });
9721
+ }
9722
+ function updateUser(_a) {
9723
+ var id = _a.id, data = _a.data;
9724
+ return callApi({
9725
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9726
+ fetchOptions: {
9727
+ method: EMethods.patch,
9728
+ body: data
9729
+ }
9730
+ });
9731
+ }
9732
+ function deleteUser(_a) {
9733
+ var id = _a.id;
9734
+ return callApi({
9735
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
9736
+ fetchOptions: {
9737
+ method: EMethods.delete
9738
+ }
9739
+ });
9740
+ }
9741
+ function resendVerificationEmail(_a) {
9742
+ var id = _a.id;
9743
+ return callApi({
9744
+ url: uiKitConfig.GATEWAY_PROXY + "/users/" + id + "/resend-verification-email",
9745
+ fetchOptions: {
9746
+ method: EMethods.post
9747
+ }
9748
+ });
9749
+ }
9750
+
9751
+ var UserModel = /** @class */ (function () {
9752
+ function UserModel(_a) {
9753
+ var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
9754
+ this.id = id || 0;
9755
+ this.email = email || "";
9756
+ this.status = status || "";
9757
+ this.created_on = created_on || 0;
9758
+ this.last_activity_on = last_activity_on || 0;
9759
+ this.expires_on = expires_on || 0;
9760
+ this.first_name = first_name || "";
9761
+ this.last_name = last_name || "";
9762
+ this.title = title || "";
9763
+ this.language = language || "en_US";
9764
+ this.timezone = timezone || "";
9765
+ this.office_phone = office_phone || "";
9766
+ this.mobile_phone = mobile_phone || "";
9767
+ }
9768
+ UserModel.prototype.toJson = function () {
9769
+ return modelToJson(this);
9770
+ };
9771
+ UserModel.prototype.set = function (property, value) {
9772
+ modelSet(this, property, value);
9773
+ };
9774
+ UserModel.prototype.update = function (user) {
9775
+ return __awaiter(this, void 0, void 0, function () {
9776
+ return __generator(this, function (_a) {
9777
+ return [2 /*return*/, updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
9778
+ trackEvent(EEvents.USER_UPDATED);
9779
+ return new UserModel(data.data);
9780
+ })];
9781
+ });
9782
+ });
9783
+ };
9784
+ UserModel.prototype.delete = function () {
9785
+ return __awaiter(this, void 0, void 0, function () {
9786
+ return __generator(this, function (_a) {
9787
+ return [2 /*return*/, deleteUser({ id: this.id }).then(function (data) {
9788
+ return data.data;
9789
+ })];
9790
+ });
9791
+ });
9792
+ };
9793
+ UserModel.prototype.resendVerificationEmail = function () {
9794
+ return __awaiter(this, void 0, void 0, function () {
9795
+ return __generator(this, function (_a) {
9796
+ return [2 /*return*/, resendVerificationEmail({ id: this.id }).then(function (data) {
9797
+ return data.data;
9798
+ })];
9799
+ });
9800
+ });
9801
+ };
9802
+ return UserModel;
9803
+ }());
9804
+
9696
9805
  function amILoggedInService() {
9697
9806
  return callApi({
9698
9807
  url: uiKitConfig.GATEWAY_PROXY + "/amiloggedin",
@@ -10623,69 +10732,6 @@ function unshareTemplate(_a) {
10623
10732
  });
10624
10733
  }
10625
10734
 
10626
- function listUsers(_a) {
10627
- var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
10628
- return callApi({
10629
- url: uiKitConfig.GATEWAY_PROXY + "/users",
10630
- query: camelCase(options),
10631
- fetchOptions: {
10632
- method: EMethods.get
10633
- },
10634
- useImpersonationTree: useImpersonationTree
10635
- });
10636
- }
10637
- function getUser(_a) {
10638
- var id = _a.id;
10639
- return callApi({
10640
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10641
- fetchOptions: {
10642
- method: EMethods.get
10643
- }
10644
- });
10645
- }
10646
- function updateUser(_a) {
10647
- var id = _a.id, data = _a.data;
10648
- return callApi({
10649
- url: uiKitConfig.GATEWAY_PROXY + "/users/" + id,
10650
- fetchOptions: {
10651
- method: EMethods.patch,
10652
- body: data
10653
- }
10654
- });
10655
- }
10656
-
10657
- var UserModel = /** @class */ (function () {
10658
- function UserModel(_a) {
10659
- var id = _a.id, email = _a.email, status = _a.status, created_on = _a.created_on, last_activity_on = _a.last_activity_on, expires_on = _a.expires_on, first_name = _a.first_name, last_name = _a.last_name, title = _a.title, language = _a.language, timezone = _a.timezone, office_phone = _a.office_phone, mobile_phone = _a.mobile_phone;
10660
- this.id = id || 0;
10661
- this.email = email || "";
10662
- this.status = status || "";
10663
- this.created_on = created_on || 0;
10664
- this.last_activity_on = last_activity_on || 0;
10665
- this.expires_on = expires_on || 0;
10666
- this.first_name = first_name || "";
10667
- this.last_name = last_name || "";
10668
- this.title = title || "";
10669
- this.language = language || "en_US";
10670
- this.timezone = timezone || "";
10671
- this.office_phone = office_phone || "";
10672
- this.mobile_phone = mobile_phone || "";
10673
- }
10674
- UserModel.prototype.toJson = function () {
10675
- return modelToJson(this);
10676
- };
10677
- UserModel.prototype.set = function (property, value) {
10678
- modelSet(this, property, value);
10679
- };
10680
- UserModel.prototype.update = function (user) {
10681
- return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
10682
- trackEvent(EEvents.USER_UPDATED);
10683
- return new UserModel(data.data);
10684
- });
10685
- };
10686
- return UserModel;
10687
- }());
10688
-
10689
10735
  var GenericWrapperContext = createContext({
10690
10736
  partnerBrand: {},
10691
10737
  userBrand: undefined,
@@ -18269,4 +18315,4 @@ var UsersFactory = /** @class */ (function () {
18269
18315
  return UsersFactory;
18270
18316
  }());
18271
18317
 
18272
- 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, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ETaskType, 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, SuppressedEmailsFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deleteList, deletePartialInformation, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, 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, getSuppressedEmailExport, getTColor, getTaskService, 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, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resumeCampaign, saveList, 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 };
18318
+ 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, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ETaskType, 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, SuppressedEmailsFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deleteList, deletePartialInformation, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteUser, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, 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, getSuppressedEmailExport, getTColor, getTaskService, 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, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resendVerificationEmail, resumeCampaign, saveList, 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 };
@@ -0,0 +1,35 @@
1
+ import { TDeleteApiResource } from "../../types";
2
+ import { EPopupBranding, EPopupDisplayFrequency, TPopupContent, TPopupModel, TPopupTargeting, TPopupTrigger, TPopupUser } from "./types";
3
+ export declare class ListPopupModel {
4
+ id: string;
5
+ readonly account_id: number;
6
+ name: string | null;
7
+ description: string | null;
8
+ enabled: boolean;
9
+ readonly created_on: number;
10
+ updated_on: number;
11
+ published_on: number | null;
12
+ branding: EPopupBranding;
13
+ tags: string[] | null;
14
+ edited_by: TPopupUser;
15
+ content: Omit<TPopupContent, "json">;
16
+ trigger: TPopupTrigger;
17
+ targeting: TPopupTargeting;
18
+ display_frequency: EPopupDisplayFrequency;
19
+ published_content_url: string | null;
20
+ thumbnail_url: string;
21
+ constructor(params: TPopupModel);
22
+ toJson(): any;
23
+ set<T extends keyof this>(property: T, value: this[T]): void;
24
+ delete(): Promise<TDeleteApiResource>;
25
+ save({ ...popup }: Partial<TPopupModel>): Promise<PopupModel>;
26
+ enable(): Promise<PopupModel>;
27
+ disable(): Promise<PopupModel>;
28
+ publish(): Promise<PopupModel>;
29
+ render(): Promise<string>;
30
+ }
31
+ export declare class PopupModel extends ListPopupModel {
32
+ content: TPopupContent;
33
+ constructor(params: TPopupModel);
34
+ toJson(): any;
35
+ }
@@ -0,0 +1,94 @@
1
+ export type TPopupModel = {
2
+ id: string;
3
+ account_id: number;
4
+ name: string | null;
5
+ description: string | null;
6
+ enabled: boolean;
7
+ created_on: number;
8
+ updated_on: number;
9
+ published_on: number | null;
10
+ branding: EPopupBranding;
11
+ tags: string[] | null;
12
+ edited_by: TPopupUser;
13
+ content: TPopupContent;
14
+ trigger: TPopupTrigger;
15
+ targeting: TPopupTargeting;
16
+ display_frequency: EPopupDisplayFrequency;
17
+ published_content_url: string | null;
18
+ thumbnail_url: string;
19
+ };
20
+ export type TPopupUser = {
21
+ id: string;
22
+ email: string;
23
+ };
24
+ export type TPopupTrigger = {
25
+ type: EPopupTriggerType;
26
+ delay_seconds: number | null;
27
+ scroll_percentage: number | null;
28
+ selector: string | null;
29
+ start_date: number | null;
30
+ end_date: number | null;
31
+ };
32
+ export type TPopupTargeting = {
33
+ pages: string[] | null;
34
+ exclude_pages: string[] | null;
35
+ devices: EPopupDeviceType[] | null;
36
+ browsers: EPopupBrowserType[] | null;
37
+ languages: string[] | null;
38
+ countries: string[] | null;
39
+ referrers: string[] | null;
40
+ utm_params: Record<string, string> | null;
41
+ };
42
+ export type TPopupContent = {
43
+ position: EPopupPosition | null;
44
+ json?: Record<string, any>;
45
+ };
46
+ export declare enum EPopupTriggerType {
47
+ on_page_load = "on_page_load",
48
+ on_exit_intent = "on_exit_intent",
49
+ on_scroll = "on_scroll",
50
+ on_time_delay = "on_time_delay",
51
+ on_click = "on_click"
52
+ }
53
+ export declare enum EPopupDisplayFrequency {
54
+ once_per_session = "once_per_session",
55
+ once_per_day = "once_per_day",
56
+ once_per_week = "once_per_week",
57
+ always = "always",
58
+ once = "once"
59
+ }
60
+ export declare enum EPopupDeviceType {
61
+ desktop = "desktop",
62
+ mobile = "mobile",
63
+ tablet = "tablet"
64
+ }
65
+ export declare enum EPopupBrowserType {
66
+ chrome = "chrome",
67
+ firefox = "firefox",
68
+ safari = "safari",
69
+ edge = "edge",
70
+ opera = "opera",
71
+ other = "other"
72
+ }
73
+ export declare enum EPopupPosition {
74
+ center = "classic-center",
75
+ top_right = "classic-top-right",
76
+ top_left = "classic-top-left",
77
+ top_center = "classic-top-center",
78
+ bottom_left = "classic-bottom-left",
79
+ bottom_center = "classic-bottom-center",
80
+ bottom_right = "classic-bottom-right",
81
+ drawer_left = "drawer-left",
82
+ drawer_right = "drawer-right",
83
+ drawer_top = "bar-top",
84
+ drawer_bottom = "bar-bottom"
85
+ }
86
+ export declare enum EPopupBranding {
87
+ smart = "smart",
88
+ basic = "basic"
89
+ }
90
+ export type TPopupFilters = {
91
+ name: string;
92
+ tags: string[];
93
+ enabled: string;
94
+ };
@@ -1,4 +1,4 @@
1
- import { TUserModel, TUserModelUpdate } from "./types";
1
+ import { TDeleteUserResponse, TResendVerificationEmailResponse, TUserModel, TUserModelUpdate } from "./types";
2
2
  export declare class UserModel {
3
3
  readonly id: number;
4
4
  readonly email: string;
@@ -17,5 +17,7 @@ export declare class UserModel {
17
17
  toJson(): any;
18
18
  set<T extends keyof this>(property: T, value: this[T]): void;
19
19
  update(user?: Partial<TUserModelUpdate>): Promise<UserModel>;
20
+ delete(): Promise<TDeleteUserResponse>;
21
+ resendVerificationEmail(): Promise<TResendVerificationEmailResponse>;
20
22
  }
21
23
  export * from "./types";
@@ -20,3 +20,12 @@ export type TUserModelUpdate = TUserModel & {
20
20
  password_strength_requirement: "VERY_WEAK" | "WEAK" | "MODERATE" | "STRONG" | "VERY_STRONG";
21
21
  };
22
22
  };
23
+ export type TDeleteUserResponse = {
24
+ id: string;
25
+ object: string;
26
+ deleted: boolean;
27
+ };
28
+ export type TResendVerificationEmailResponse = {
29
+ object: string;
30
+ confirmation_resent: boolean;
31
+ };
@@ -0,0 +1,31 @@
1
+ import { TPopupModel } from "../../models/popups/types";
2
+ import { TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
3
+ import { TCreateApiResource, TDeleteApiResource, TDisableApiResource, TEnableApiResource, TRenderResponse, TUpdateApiResource } from "../../types/generic";
4
+ export declare function listPopups({ ...options }: TGenericListParams & {
5
+ name?: string;
6
+ tags?: string[];
7
+ enabled?: boolean;
8
+ }): Promise<TGenericListReturn<TPopupModel>>;
9
+ export declare function createPopup({ ...popup }: Partial<TPopupModel>): Promise<TCreateApiResource<TPopupModel>>;
10
+ export declare function getPopup({ id }: {
11
+ id: string;
12
+ }): Promise<TGenericReturn<TPopupModel>>;
13
+ export declare function deletePopup({ id }: {
14
+ id: string;
15
+ }): Promise<TDeleteApiResource>;
16
+ export declare function updatePopup({ id, ...popup }: {
17
+ id: string;
18
+ popup: Partial<TPopupModel>;
19
+ }): Promise<TUpdateApiResource<TPopupModel>>;
20
+ export declare function enablePopup({ id }: {
21
+ id: string;
22
+ }): Promise<TEnableApiResource<TPopupModel>>;
23
+ export declare function disablePopup({ id }: {
24
+ id: string;
25
+ }): Promise<TDisableApiResource<TPopupModel>>;
26
+ export declare function publishPopup({ id }: {
27
+ id: string;
28
+ }): Promise<TUpdateApiResource<TPopupModel>>;
29
+ export declare function renderPopup({ id }: {
30
+ id: string;
31
+ }): Promise<TRenderResponse>;
@@ -8,4 +8,10 @@ export declare function updateUser({ id, data }: {
8
8
  id: number;
9
9
  data: TUserModelUpdate;
10
10
  }): Promise<any>;
11
+ export declare function deleteUser({ id }: {
12
+ id: number;
13
+ }): Promise<any>;
14
+ export declare function resendVerificationEmail({ id }: {
15
+ id: number;
16
+ }): Promise<any>;
11
17
  export * from "./types";
@@ -112,6 +112,9 @@ export type TCreateApiResource<T> = {
112
112
  object: string;
113
113
  data: T;
114
114
  };
115
+ export type TRenderResponse = {
116
+ data: string;
117
+ };
115
118
  export type TActionApiResource = {
116
119
  id: number;
117
120
  object: string;
@@ -143,7 +143,13 @@ export declare enum EEvents {
143
143
  MFA_ACTIVATION_FLOW = "MFA.Activation.Flow.Started",
144
144
  MFA_DISABLE_FLOW = "MFA.Disable.Flow.Started",
145
145
  MFA_ENABLED = "MFA.Enabled",
146
- MFA_DISABLED = "MFA.Disabled"
146
+ MFA_DISABLED = "MFA.Disabled",
147
+ POPUP_CREATED = "Popup.Created",
148
+ POPUP_UPDATED = "Popup.Updated",
149
+ POPUP_DELETED = "Popup.Deleted",
150
+ POPUP_ENABLED = "Popup.Enabled",
151
+ POPUP_DISABLED = "Popup.Disabled",
152
+ POPUP_PUBLISHED = "Popup.Published"
147
153
  }
148
154
  export declare function eventCondition(type: EEvents | string, disabledEvents?: string[]): boolean;
149
155
  export declare function trackEvent(type: EEvents | string, data?: any, dataParser?: (event: EEvents | string, data: any) => any, disabledEvents?: string[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.1.49",
3
+ "version": "2.1.51",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",