@cakemail-org/ui-components-v2 2.1.45 → 2.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -2227,6 +2227,7 @@ exports.EPartialInfoPool = void 0;
2227
2227
  EPartialInfoPool["partialAutomationReport"] = "partialAutomationReport";
2228
2228
  EPartialInfoPool["partialUsers"] = "partialUsers";
2229
2229
  EPartialInfoPool["partialLists"] = "partialLists";
2230
+ EPartialInfoPool["partialListReports"] = "partialListReports";
2230
2231
  EPartialInfoPool["partialCampaignReports"] = "partialCampaignReports";
2231
2232
  })(exports.EPartialInfoPool || (exports.EPartialInfoPool = {}));
2232
2233
 
@@ -17583,6 +17584,15 @@ var ListModel = /** @class */ (function () {
17583
17584
  });
17584
17585
  });
17585
17586
  };
17587
+ ListModel.prototype.getReport = function () {
17588
+ return __awaiter(this, void 0, void 0, function () {
17589
+ return __generator(this, function (_a) {
17590
+ return [2 /*return*/, getListReport({ id: this.id }).then(function (data) {
17591
+ return data.data;
17592
+ })];
17593
+ });
17594
+ });
17595
+ };
17586
17596
  return ListModel;
17587
17597
  }());
17588
17598
 
@@ -1,5 +1,5 @@
1
1
  import { EApiLanguages, TDeleteApiResource, TGenericListParams, TGenericListReturn } from "../../types";
2
- import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
2
+ import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListReport, TListSender, TListWebhook } from "./types";
3
3
  export declare class ListModel {
4
4
  readonly id: number;
5
5
  name: string;
@@ -23,5 +23,6 @@ export declare class ListModel {
23
23
  delete(): Promise<TDeleteApiResource>;
24
24
  getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
25
25
  getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
26
+ getReport(): Promise<TListReport>;
26
27
  }
27
28
  export * from "./types";
@@ -1,6 +1,6 @@
1
1
  import { Stoppable, UsesConcurrency } from "@supercharge/promise-pool";
2
2
  import { Dispatch, RefObject, SetStateAction } from "react";
3
- import { TCampaignReport, TListModel, TUserModel } from "../models";
3
+ import { TCampaignReport, TListModel, TListReport, TUserModel } from "../models";
4
4
  import { TSenderModel } from "../models/sender";
5
5
  import { TListTemplateModel, TTemplateModel } from "../models/templates";
6
6
  import { TNumStr } from "./generic";
@@ -32,11 +32,13 @@ export declare enum EPartialInfoPool {
32
32
  "partialAutomationReport" = "partialAutomationReport",
33
33
  "partialUsers" = "partialUsers",
34
34
  "partialLists" = "partialLists",
35
+ "partialListReports" = "partialListReports",
35
36
  "partialCampaignReports" = "partialCampaignReports"
36
37
  }
37
38
  export type TPromisePoolPartialUser = Pick<TUserModel, "id" | "email" | "status" | "last_activity_on" | "first_name" | "last_name" | "language" | "timezone"> | undefined;
38
39
  export type TPromisePoolPartialSender = Pick<TSenderModel, "email" | "name" | "confirmed"> | undefined;
39
40
  export type TPromisePoolPartialTemplates = Pick<TTemplateModel | TListTemplateModel, "name" | "thumbnail_url" | "description"> | undefined;
40
41
  export type TPromisePoolPartialList = Pick<TListModel, "id" | "name" | "status"> | undefined;
42
+ export type TPromisePoolPartialListReport = Pick<TListReport, "active_contacts" | "open_rate" | "click_rate"> | undefined;
41
43
  export type TPromisePoolPartialCampaignReports = Pick<TCampaignReport, "open_rate" | "click_rate" | "unsubscribe_rate" | "spam_rate" | "bounce_rate" | "unique_clicks" | "unique_opens"> | undefined;
42
44
  export {};
package/dist/esm/index.js CHANGED
@@ -2207,6 +2207,7 @@ var EPartialInfoPool;
2207
2207
  EPartialInfoPool["partialAutomationReport"] = "partialAutomationReport";
2208
2208
  EPartialInfoPool["partialUsers"] = "partialUsers";
2209
2209
  EPartialInfoPool["partialLists"] = "partialLists";
2210
+ EPartialInfoPool["partialListReports"] = "partialListReports";
2210
2211
  EPartialInfoPool["partialCampaignReports"] = "partialCampaignReports";
2211
2212
  })(EPartialInfoPool || (EPartialInfoPool = {}));
2212
2213
 
@@ -17563,6 +17564,15 @@ var ListModel = /** @class */ (function () {
17563
17564
  });
17564
17565
  });
17565
17566
  };
17567
+ ListModel.prototype.getReport = function () {
17568
+ return __awaiter(this, void 0, void 0, function () {
17569
+ return __generator(this, function (_a) {
17570
+ return [2 /*return*/, getListReport({ id: this.id }).then(function (data) {
17571
+ return data.data;
17572
+ })];
17573
+ });
17574
+ });
17575
+ };
17566
17576
  return ListModel;
17567
17577
  }());
17568
17578
 
@@ -1,5 +1,5 @@
1
1
  import { EApiLanguages, TDeleteApiResource, TGenericListParams, TGenericListReturn } from "../../types";
2
- import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListSender, TListWebhook } from "./types";
2
+ import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListReport, TListSender, TListWebhook } from "./types";
3
3
  export declare class ListModel {
4
4
  readonly id: number;
5
5
  name: string;
@@ -23,5 +23,6 @@ export declare class ListModel {
23
23
  delete(): Promise<TDeleteApiResource>;
24
24
  getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
25
25
  getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
26
+ getReport(): Promise<TListReport>;
26
27
  }
27
28
  export * from "./types";
@@ -1,6 +1,6 @@
1
1
  import { Stoppable, UsesConcurrency } from "@supercharge/promise-pool";
2
2
  import { Dispatch, RefObject, SetStateAction } from "react";
3
- import { TCampaignReport, TListModel, TUserModel } from "../models";
3
+ import { TCampaignReport, TListModel, TListReport, TUserModel } from "../models";
4
4
  import { TSenderModel } from "../models/sender";
5
5
  import { TListTemplateModel, TTemplateModel } from "../models/templates";
6
6
  import { TNumStr } from "./generic";
@@ -32,11 +32,13 @@ export declare enum EPartialInfoPool {
32
32
  "partialAutomationReport" = "partialAutomationReport",
33
33
  "partialUsers" = "partialUsers",
34
34
  "partialLists" = "partialLists",
35
+ "partialListReports" = "partialListReports",
35
36
  "partialCampaignReports" = "partialCampaignReports"
36
37
  }
37
38
  export type TPromisePoolPartialUser = Pick<TUserModel, "id" | "email" | "status" | "last_activity_on" | "first_name" | "last_name" | "language" | "timezone"> | undefined;
38
39
  export type TPromisePoolPartialSender = Pick<TSenderModel, "email" | "name" | "confirmed"> | undefined;
39
40
  export type TPromisePoolPartialTemplates = Pick<TTemplateModel | TListTemplateModel, "name" | "thumbnail_url" | "description"> | undefined;
40
41
  export type TPromisePoolPartialList = Pick<TListModel, "id" | "name" | "status"> | undefined;
42
+ export type TPromisePoolPartialListReport = Pick<TListReport, "active_contacts" | "open_rate" | "click_rate"> | undefined;
41
43
  export type TPromisePoolPartialCampaignReports = Pick<TCampaignReport, "open_rate" | "click_rate" | "unsubscribe_rate" | "spam_rate" | "bounce_rate" | "unique_clicks" | "unique_opens"> | undefined;
42
44
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.1.45",
3
+ "version": "2.1.47",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",