@cakemail-org/ui-components-v2 2.2.80 → 2.2.82

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
@@ -9904,6 +9904,16 @@ var AccountModel = /** @class */ (function () {
9904
9904
  });
9905
9905
  });
9906
9906
  };
9907
+ AccountModel.prototype.getDkimKeys = function () {
9908
+ return __awaiter(this, void 0, void 0, function () {
9909
+ return __generator(this, function (_a) {
9910
+ if (!this.id) {
9911
+ throw new Error("Account was not initialized");
9912
+ }
9913
+ return [2 /*return*/, listDkimService().then(function (data) { return data.data; })];
9914
+ });
9915
+ });
9916
+ };
9907
9917
  AccountModel.prototype.getCustomer = function () {
9908
9918
  return __awaiter(this, void 0, void 0, function () {
9909
9919
  return __generator(this, function (_a) {
@@ -1,4 +1,5 @@
1
1
  import { TBrand } from "../../factories";
2
+ import { TDkimKey } from "../../services/domains";
2
3
  import { CustomerModel } from "../customer";
3
4
  import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountOwner, TAccountReport, TDeleteAccountResponse, TGetAccountReport } from "./types";
4
5
  export declare class AccountModel {
@@ -31,6 +32,7 @@ export declare class AccountModel {
31
32
  getReport({ ...options }: TGetAccountReport): Promise<TAccountReport>;
32
33
  impersonate(byContext?: boolean): Promise<any>;
33
34
  getDomains(): Promise<TAccountDomains>;
35
+ getDkimKeys(): Promise<TDkimKey[]>;
34
36
  getCustomer(): Promise<CustomerModel>;
35
37
  update(account: Partial<TAccountModel>): Promise<{
36
38
  data: AccountModel;
@@ -1,4 +1,5 @@
1
- import { TNumStr } from "../../types";
1
+ import { TGenericListReturn, TNumStr } from "../../types";
2
+ import { TDkimKey } from "./types";
2
3
  export declare function getDomainsService({ id }: {
3
4
  id?: TNumStr;
4
5
  }): Promise<any>;
@@ -7,5 +8,5 @@ export declare function isDomainValidService({ domain, useImpersonationTree, que
7
8
  useImpersonationTree?: boolean;
8
9
  query?: any;
9
10
  }): Promise<any>;
10
- export declare function listDkimService(): Promise<any>;
11
+ export declare function listDkimService(): Promise<TGenericListReturn<TDkimKey>>;
11
12
  export * from "./types";
@@ -1 +1,8 @@
1
- export {};
1
+ export type TDkimKey = {
2
+ account_default: boolean;
3
+ domain: string;
4
+ id: number;
5
+ public_key: string;
6
+ selector: string;
7
+ status: string;
8
+ };
package/dist/esm/index.js CHANGED
@@ -9884,6 +9884,16 @@ var AccountModel = /** @class */ (function () {
9884
9884
  });
9885
9885
  });
9886
9886
  };
9887
+ AccountModel.prototype.getDkimKeys = function () {
9888
+ return __awaiter(this, void 0, void 0, function () {
9889
+ return __generator(this, function (_a) {
9890
+ if (!this.id) {
9891
+ throw new Error("Account was not initialized");
9892
+ }
9893
+ return [2 /*return*/, listDkimService().then(function (data) { return data.data; })];
9894
+ });
9895
+ });
9896
+ };
9887
9897
  AccountModel.prototype.getCustomer = function () {
9888
9898
  return __awaiter(this, void 0, void 0, function () {
9889
9899
  return __generator(this, function (_a) {
@@ -1,4 +1,5 @@
1
1
  import { TBrand } from "../../factories";
2
+ import { TDkimKey } from "../../services/domains";
2
3
  import { CustomerModel } from "../customer";
3
4
  import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountOwner, TAccountReport, TDeleteAccountResponse, TGetAccountReport } from "./types";
4
5
  export declare class AccountModel {
@@ -31,6 +32,7 @@ export declare class AccountModel {
31
32
  getReport({ ...options }: TGetAccountReport): Promise<TAccountReport>;
32
33
  impersonate(byContext?: boolean): Promise<any>;
33
34
  getDomains(): Promise<TAccountDomains>;
35
+ getDkimKeys(): Promise<TDkimKey[]>;
34
36
  getCustomer(): Promise<CustomerModel>;
35
37
  update(account: Partial<TAccountModel>): Promise<{
36
38
  data: AccountModel;
@@ -1,4 +1,5 @@
1
- import { TNumStr } from "../../types";
1
+ import { TGenericListReturn, TNumStr } from "../../types";
2
+ import { TDkimKey } from "./types";
2
3
  export declare function getDomainsService({ id }: {
3
4
  id?: TNumStr;
4
5
  }): Promise<any>;
@@ -7,5 +8,5 @@ export declare function isDomainValidService({ domain, useImpersonationTree, que
7
8
  useImpersonationTree?: boolean;
8
9
  query?: any;
9
10
  }): Promise<any>;
10
- export declare function listDkimService(): Promise<any>;
11
+ export declare function listDkimService(): Promise<TGenericListReturn<TDkimKey>>;
11
12
  export * from "./types";
@@ -1 +1,8 @@
1
- export {};
1
+ export type TDkimKey = {
2
+ account_default: boolean;
3
+ domain: string;
4
+ id: number;
5
+ public_key: string;
6
+ selector: string;
7
+ status: string;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.80",
3
+ "version": "2.2.82",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",