@cakemail-org/ui-components-v2 2.1.46 → 2.1.48

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
@@ -10478,10 +10478,9 @@ function listSuppressedEmails(_a) {
10478
10478
  function deleteSuppressedEmail(_a) {
10479
10479
  var email = _a.email;
10480
10480
  return callApi({
10481
- url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
10481
+ url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails/" + email,
10482
10482
  fetchOptions: {
10483
10483
  method: exports.EMethods.delete,
10484
- body: { email: email }
10485
10484
  }
10486
10485
  });
10487
10486
  }
@@ -17584,6 +17583,15 @@ var ListModel = /** @class */ (function () {
17584
17583
  });
17585
17584
  });
17586
17585
  };
17586
+ ListModel.prototype.getReport = function () {
17587
+ return __awaiter(this, void 0, void 0, function () {
17588
+ return __generator(this, function (_a) {
17589
+ return [2 /*return*/, getListReport({ id: this.id }).then(function (data) {
17590
+ return data.data;
17591
+ })];
17592
+ });
17593
+ });
17594
+ };
17587
17595
  return ListModel;
17588
17596
  }());
17589
17597
 
@@ -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";
package/dist/esm/index.js CHANGED
@@ -10458,10 +10458,9 @@ function listSuppressedEmails(_a) {
10458
10458
  function deleteSuppressedEmail(_a) {
10459
10459
  var email = _a.email;
10460
10460
  return callApi({
10461
- url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
10461
+ url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails/" + email,
10462
10462
  fetchOptions: {
10463
10463
  method: EMethods.delete,
10464
- body: { email: email }
10465
10464
  }
10466
10465
  });
10467
10466
  }
@@ -17564,6 +17563,15 @@ var ListModel = /** @class */ (function () {
17564
17563
  });
17565
17564
  });
17566
17565
  };
17566
+ ListModel.prototype.getReport = function () {
17567
+ return __awaiter(this, void 0, void 0, function () {
17568
+ return __generator(this, function (_a) {
17569
+ return [2 /*return*/, getListReport({ id: this.id }).then(function (data) {
17570
+ return data.data;
17571
+ })];
17572
+ });
17573
+ });
17574
+ };
17567
17575
  return ListModel;
17568
17576
  }());
17569
17577
 
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.1.46",
3
+ "version": "2.1.48",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",