@cakemail-org/ui-components-v2 2.2.67 → 2.2.69

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.
@@ -35,5 +35,5 @@ export type TDilaogActions = {
35
35
  primaryBtnOnClick?: TButtonClick;
36
36
  primaryBtnDisabled?: boolean;
37
37
  secondaryBtnText?: string | any;
38
- secondaryBtnOnClick?: Function;
38
+ secondaryBtnOnClick?: TButtonClick;
39
39
  };
package/dist/cjs/index.js CHANGED
@@ -8108,9 +8108,9 @@ function DialogActions(_a) {
8108
8108
  DialogHandler.hide();
8109
8109
  }
8110
8110
  }
8111
- function handleOnSecondaryClick() {
8111
+ function handleOnSecondaryClick(e, btnRef) {
8112
8112
  if (secondaryBtnOnClick) {
8113
- secondaryBtnOnClick();
8113
+ secondaryBtnOnClick(e, btnRef);
8114
8114
  }
8115
8115
  else {
8116
8116
  DialogHandler.hide();
@@ -9607,11 +9607,12 @@ var emptyAccountAddress = {
9607
9607
 
9608
9608
  var CustomerModel = /** @class */ (function () {
9609
9609
  function CustomerModel(_a) {
9610
- var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions;
9610
+ var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions, contract = _a.contract;
9611
9611
  this.id = id;
9612
9612
  this.language = language;
9613
9613
  this.profile = profile;
9614
9614
  this.subscriptions = subscriptions;
9615
+ this.contract = contract;
9615
9616
  }
9616
9617
  CustomerModel.prototype.toJson = function () {
9617
9618
  return modelToJson(this);
@@ -1,10 +1,11 @@
1
- import { TStripeSubscription } from "./types";
1
+ import { TContract, TStripeSubscription } from "./types";
2
2
  export declare class CustomerModel {
3
3
  readonly id: string;
4
4
  readonly language: string;
5
5
  readonly profile: any;
6
6
  readonly subscriptions: TStripeSubscription[];
7
- constructor({ id, language, profile, subscriptions }: CustomerModel);
7
+ readonly contract: TContract;
8
+ constructor({ id, language, profile, subscriptions, contract }: CustomerModel);
8
9
  toJson(): any;
9
10
  set<T extends keyof this>(property: T, value: this[T]): void;
10
11
  }
@@ -1,4 +1,21 @@
1
1
  import { TAccountLimits } from "../account/types";
2
+ export type TContract = {
3
+ active: boolean;
4
+ currency: string;
5
+ metadata: {
6
+ active: boolean;
7
+ added: string;
8
+ category: "growth" | "free" | "premium";
9
+ id: string;
10
+ type: string;
11
+ updated: string;
12
+ usage_limits: TAccountLimits;
13
+ uuid: string;
14
+ };
15
+ name: string;
16
+ product: string;
17
+ unit_amount: number;
18
+ };
2
19
  export type TStripeSubscription = {
3
20
  currentPeriodEnd: number;
4
21
  id: string;
@@ -35,5 +35,5 @@ export type TDilaogActions = {
35
35
  primaryBtnOnClick?: TButtonClick;
36
36
  primaryBtnDisabled?: boolean;
37
37
  secondaryBtnText?: string | any;
38
- secondaryBtnOnClick?: Function;
38
+ secondaryBtnOnClick?: TButtonClick;
39
39
  };
package/dist/esm/index.js CHANGED
@@ -8088,9 +8088,9 @@ function DialogActions(_a) {
8088
8088
  DialogHandler.hide();
8089
8089
  }
8090
8090
  }
8091
- function handleOnSecondaryClick() {
8091
+ function handleOnSecondaryClick(e, btnRef) {
8092
8092
  if (secondaryBtnOnClick) {
8093
- secondaryBtnOnClick();
8093
+ secondaryBtnOnClick(e, btnRef);
8094
8094
  }
8095
8095
  else {
8096
8096
  DialogHandler.hide();
@@ -9587,11 +9587,12 @@ var emptyAccountAddress = {
9587
9587
 
9588
9588
  var CustomerModel = /** @class */ (function () {
9589
9589
  function CustomerModel(_a) {
9590
- var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions;
9590
+ var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions, contract = _a.contract;
9591
9591
  this.id = id;
9592
9592
  this.language = language;
9593
9593
  this.profile = profile;
9594
9594
  this.subscriptions = subscriptions;
9595
+ this.contract = contract;
9595
9596
  }
9596
9597
  CustomerModel.prototype.toJson = function () {
9597
9598
  return modelToJson(this);
@@ -1,10 +1,11 @@
1
- import { TStripeSubscription } from "./types";
1
+ import { TContract, TStripeSubscription } from "./types";
2
2
  export declare class CustomerModel {
3
3
  readonly id: string;
4
4
  readonly language: string;
5
5
  readonly profile: any;
6
6
  readonly subscriptions: TStripeSubscription[];
7
- constructor({ id, language, profile, subscriptions }: CustomerModel);
7
+ readonly contract: TContract;
8
+ constructor({ id, language, profile, subscriptions, contract }: CustomerModel);
8
9
  toJson(): any;
9
10
  set<T extends keyof this>(property: T, value: this[T]): void;
10
11
  }
@@ -1,4 +1,21 @@
1
1
  import { TAccountLimits } from "../account/types";
2
+ export type TContract = {
3
+ active: boolean;
4
+ currency: string;
5
+ metadata: {
6
+ active: boolean;
7
+ added: string;
8
+ category: "growth" | "free" | "premium";
9
+ id: string;
10
+ type: string;
11
+ updated: string;
12
+ usage_limits: TAccountLimits;
13
+ uuid: string;
14
+ };
15
+ name: string;
16
+ product: string;
17
+ unit_amount: number;
18
+ };
2
19
  export type TStripeSubscription = {
3
20
  currentPeriodEnd: number;
4
21
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.67",
3
+ "version": "2.2.69",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",