@trii/types 2.10.162 → 2.10.164

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.
@@ -3,19 +3,32 @@ export declare enum Account_Status {
3
3
  PendingToDeleted = 2,
4
4
  Deleted = 3
5
5
  }
6
- export declare class PrincipalAccount implements IPrincipalAccount {
7
- props: IPrincipalAccount;
6
+ export interface IAccount {
8
7
  id: string;
9
8
  uid: string;
10
9
  name: string;
11
10
  email: string;
12
11
  status: Account_Status;
13
- constructor(props: IPrincipalAccount);
14
12
  }
15
- export interface IPrincipalAccount {
13
+ export interface ISubscription {
16
14
  id: string;
17
15
  uid: string;
18
16
  name: string;
19
- email: string;
20
- status: Account_Status;
17
+ plan: string;
18
+ planMode: string;
19
+ lastInvoice: string;
20
+ createdAt: Date;
21
+ updatedAt?: Date;
22
+ deletedAt?: Date;
23
+ }
24
+ export interface IInvoice {
25
+ id: string;
26
+ subscriptionId: string;
27
+ status: string;
28
+ items: [];
29
+ amount: number;
30
+ dueDate?: Date;
31
+ paymentDate?: Date;
32
+ paymentMethod?: string;
33
+ createdAt: Date;
21
34
  }
@@ -4,13 +4,3 @@ export var Account_Status;
4
4
  Account_Status[Account_Status["PendingToDeleted"] = 2] = "PendingToDeleted";
5
5
  Account_Status[Account_Status["Deleted"] = 3] = "Deleted";
6
6
  })(Account_Status || (Account_Status = {}));
7
- export class PrincipalAccount {
8
- constructor(props) {
9
- this.props = props;
10
- this.id = props.id;
11
- this.uid = props.uid;
12
- this.name = props.name;
13
- this.email = props.email;
14
- this.status = props.status;
15
- }
16
- }
@@ -27,6 +27,10 @@ export interface IBusiness {
27
27
  ims_instagram: IContactAddress[];
28
28
  ims_facebook: IContactAddress[];
29
29
  ims_webchat: IContactAddress[];
30
+ ims_whatsapp: IContactAddress[];
31
+ address1: IContactPostalAddress;
32
+ address2: IContactPostalAddress;
33
+ tags: IContactTag[];
30
34
  properties: Property[];
31
35
  createdAt?: Date | null;
32
36
  createdBy?: string | null;
@@ -52,6 +52,7 @@ export interface ISpace {
52
52
  name: string;
53
53
  region: Region;
54
54
  status: Status;
55
+ subscriptionId: string;
55
56
  image_url: string;
56
57
  domain_active: string;
57
58
  domain_subdomain: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.162",
3
+ "version": "2.10.164",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",