@cakemail-org/ui-components-v2 2.2.90 → 2.2.92

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.
Files changed (35) hide show
  1. package/dist/cjs/data/theme/MuiAvatar.d.ts +87 -55
  2. package/dist/cjs/data/theme/MuiMenuItem.d.ts +87 -55
  3. package/dist/cjs/data/theme/MuiTableCell.d.ts +87 -55
  4. package/dist/cjs/data/theme/MuiTableHead.d.ts +87 -55
  5. package/dist/cjs/data/theme/MuiTablePagination.d.ts +87 -55
  6. package/dist/cjs/data/theme/MuiTextField.d.ts +348 -220
  7. package/dist/cjs/data/theme/MuiTooltip.d.ts +87 -55
  8. package/dist/cjs/factories/customDomains/index.d.ts +13 -0
  9. package/dist/cjs/factories/index.d.ts +1 -0
  10. package/dist/cjs/index.js +323 -86
  11. package/dist/cjs/models/customDomains/index.d.ts +22 -0
  12. package/dist/cjs/models/customDomains/types.d.ts +34 -0
  13. package/dist/cjs/models/index.d.ts +1 -0
  14. package/dist/cjs/models/pages/index.d.ts +2 -0
  15. package/dist/cjs/models/pages/types.d.ts +2 -0
  16. package/dist/cjs/services/customDomains/index.d.ts +18 -0
  17. package/dist/cjs/services/index.d.ts +1 -0
  18. package/dist/esm/data/theme/MuiAvatar.d.ts +87 -55
  19. package/dist/esm/data/theme/MuiMenuItem.d.ts +87 -55
  20. package/dist/esm/data/theme/MuiTableCell.d.ts +87 -55
  21. package/dist/esm/data/theme/MuiTableHead.d.ts +87 -55
  22. package/dist/esm/data/theme/MuiTablePagination.d.ts +87 -55
  23. package/dist/esm/data/theme/MuiTextField.d.ts +348 -220
  24. package/dist/esm/data/theme/MuiTooltip.d.ts +87 -55
  25. package/dist/esm/factories/customDomains/index.d.ts +13 -0
  26. package/dist/esm/factories/index.d.ts +1 -0
  27. package/dist/esm/index.js +318 -88
  28. package/dist/esm/models/customDomains/index.d.ts +22 -0
  29. package/dist/esm/models/customDomains/types.d.ts +34 -0
  30. package/dist/esm/models/index.d.ts +1 -0
  31. package/dist/esm/models/pages/index.d.ts +2 -0
  32. package/dist/esm/models/pages/types.d.ts +2 -0
  33. package/dist/esm/services/customDomains/index.d.ts +18 -0
  34. package/dist/esm/services/index.d.ts +1 -0
  35. package/package.json +2 -2
@@ -0,0 +1,22 @@
1
+ import { TDeleteApiResource } from "../../types";
2
+ import { ECustomDomainVerificationStatus, TCustomDomainModel, TCustomDomainVerificationPayload } from "./types";
3
+ export declare class CustomDomainModel {
4
+ id: string;
5
+ account_id: number;
6
+ domain: string;
7
+ verification_status: ECustomDomainVerificationStatus;
8
+ verified_on: number | null;
9
+ created_on: number;
10
+ updated_on: number;
11
+ dns_instructions: TCustomDomainModel["dns_instructions"];
12
+ constructor(params: TCustomDomainModel);
13
+ get isVerified(): boolean;
14
+ toJson(): TCustomDomainModel;
15
+ set<T extends keyof this>(property: T, value: this[T]): void;
16
+ verify(): Promise<{
17
+ domain: CustomDomainModel;
18
+ verification: TCustomDomainVerificationPayload;
19
+ }>;
20
+ delete(): Promise<TDeleteApiResource>;
21
+ }
22
+ export * from "./types";
@@ -0,0 +1,34 @@
1
+ export declare enum ECustomDomainVerificationStatus {
2
+ pending = "pending",
3
+ verified = "verified",
4
+ failed = "failed"
5
+ }
6
+ export type TCustomDomainDnsCname = {
7
+ hostname: string;
8
+ point_to: string;
9
+ help: string;
10
+ };
11
+ export type TCustomDomainDnsInstructions = {
12
+ cname: TCustomDomainDnsCname;
13
+ extra_dns?: Array<{
14
+ hostname: string;
15
+ help: string;
16
+ }>;
17
+ };
18
+ export type TCustomDomainModel = {
19
+ id: string;
20
+ account_id: number;
21
+ domain: string;
22
+ verification_status: ECustomDomainVerificationStatus;
23
+ verified_on: number | null;
24
+ created_on: number;
25
+ updated_on: number;
26
+ dns_instructions: TCustomDomainDnsInstructions;
27
+ };
28
+ export type TCustomDomainVerificationPayload = {
29
+ success: boolean;
30
+ message: string;
31
+ };
32
+ export type TCustomDomainVerifyResult = TCustomDomainModel & {
33
+ verification: TCustomDomainVerificationPayload;
34
+ };
@@ -2,6 +2,7 @@ export * from "./account";
2
2
  export * from "./automation";
3
3
  export * from "./campaign";
4
4
  export * from "./contact";
5
+ export * from "./customDomains";
5
6
  export * from "./customer";
6
7
  export * from "./emailAPI";
7
8
  export * from "./form";
@@ -20,6 +20,8 @@ export declare class ListPageModel {
20
20
  form_id: string | null;
21
21
  thumbnail_url: string;
22
22
  published_url: string | null;
23
+ custom_domain_id: string | null;
24
+ custom_domain: string | null;
23
25
  constructor(params: TPageModel);
24
26
  toJson(): any;
25
27
  set<T extends keyof this>(property: T, value: this[T]): void;
@@ -19,6 +19,8 @@ export type TPageModel = {
19
19
  form_id: string | null;
20
20
  thumbnail_url: string;
21
21
  published_url: string | null;
22
+ custom_domain_id?: string | null;
23
+ custom_domain?: string | null;
22
24
  };
23
25
  export type TPageUser = {
24
26
  id: string;
@@ -0,0 +1,18 @@
1
+ import { TCustomDomainModel, TCustomDomainVerifyResult } from "../../models/customDomains/types";
2
+ import { TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
3
+ import { TCreateApiResource, TDeleteApiResource, TUpdateApiResource } from "../../types/generic";
4
+ export declare function listCustomDomains({ ...options }: TGenericListParams & {
5
+ verificationStatus?: string;
6
+ }): Promise<TGenericListReturn<TCustomDomainModel>>;
7
+ export declare function createCustomDomain({ domain, }: {
8
+ domain: string;
9
+ }): Promise<TCreateApiResource<TCustomDomainModel>>;
10
+ export declare function getCustomDomain({ id }: {
11
+ id: string;
12
+ }): Promise<TGenericReturn<TCustomDomainModel>>;
13
+ export declare function deleteCustomDomain({ id }: {
14
+ id: string;
15
+ }): Promise<TDeleteApiResource>;
16
+ export declare function verifyCustomDomain({ id, }: {
17
+ id: string;
18
+ }): Promise<TUpdateApiResource<TCustomDomainVerifyResult>>;
@@ -5,6 +5,7 @@ export * from "./billing";
5
5
  export * from "./brands";
6
6
  export * from "./campaigns";
7
7
  export * from "./contacts";
8
+ export * from "./customDomains";
8
9
  export * from "./domains";
9
10
  export * from "./emailAPI";
10
11
  export * from "./forms";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.90",
3
+ "version": "2.2.92",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -76,7 +76,7 @@
76
76
  "classnames": "^2.5.1",
77
77
  "country-list": "^2.3.0",
78
78
  "moment": "^2.30.1",
79
- "posthog-js": "^1.249.4",
79
+ "posthog-js": "1.368.2",
80
80
  "react": "^19.1.0",
81
81
  "react-colorful": "^5.6.1",
82
82
  "react-dom": "^19.1.0",