@housebookgroup/shared-types 1.0.7 → 1.0.9

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.
@@ -1,23 +1,23 @@
1
- export interface FormData {
2
- propertyName: string;
3
- propertyDescription: string;
4
- address: string;
5
- totalFloorArea: number;
6
- floorPlans: File[];
7
- buildingPlans: File[];
8
- }
9
- export interface AssetFeature {
10
- name: string;
11
- value: string;
12
- }
13
- export interface AssetInt {
14
- typeId: string;
15
- name: string;
16
- description: string;
17
- features: AssetFeature[];
18
- }
19
- export interface SpaceInt {
20
- type: string;
21
- name: string;
22
- assets: AssetInt[];
23
- }
1
+ export interface FormData {
2
+ propertyName: string;
3
+ propertyDescription: string;
4
+ address: string;
5
+ totalFloorArea: number;
6
+ floorPlans: File[];
7
+ buildingPlans: File[];
8
+ }
9
+ export interface AssetFeature {
10
+ name: string;
11
+ value: string;
12
+ }
13
+ export interface AssetInt {
14
+ typeId: string;
15
+ name: string;
16
+ description: string;
17
+ features: AssetFeature[];
18
+ }
19
+ export interface SpaceInt {
20
+ type: string;
21
+ name: string;
22
+ assets: AssetInt[];
23
+ }
@@ -1,36 +1,36 @@
1
- export interface AssetType {
2
- id: string;
3
- name: string;
4
- discipline: string;
5
- }
6
- export interface Asset {
7
- id: string;
8
- description: string;
9
- type?: string;
10
- currentSpecifications: Record<string, any>;
11
- deleted: boolean;
12
- assetTypes: AssetType;
13
- }
14
- export interface Space {
15
- id: string;
16
- name: string;
17
- type: string;
18
- deleted: boolean;
19
- assets: Asset[];
20
- }
21
- export interface Property {
22
- propertyId: string;
23
- address: string;
24
- description: string;
25
- pin: string;
26
- name: string;
27
- type: string;
28
- status: string;
29
- lastUpdated: string;
30
- completionStatus: number;
31
- totalFloorArea?: number;
32
- spaces?: Space[];
33
- images?: string[];
34
- createdAt: string;
35
- splashImage?: string;
36
- }
1
+ export interface AssetType {
2
+ id: string;
3
+ name: string;
4
+ discipline: string;
5
+ }
6
+ export interface Asset {
7
+ id: string;
8
+ description: string;
9
+ type?: string;
10
+ currentSpecifications: Record<string, any>;
11
+ deleted: boolean;
12
+ assetTypes: AssetType;
13
+ }
14
+ export interface Space {
15
+ id: string;
16
+ name: string;
17
+ type: string;
18
+ deleted: boolean;
19
+ assets: Asset[];
20
+ }
21
+ export interface Property {
22
+ propertyId: string;
23
+ address: string;
24
+ description: string;
25
+ pin: string;
26
+ name: string;
27
+ type: string;
28
+ status: string;
29
+ lastUpdated: string;
30
+ completionStatus: number;
31
+ totalFloorArea?: number;
32
+ spaces?: Space[];
33
+ images?: string[];
34
+ createdAt: string;
35
+ splashImage?: string;
36
+ }
@@ -1,7 +1,20 @@
1
- export interface Owner {
2
- ownerId: string;
3
- firstName: string;
4
- lastName: string;
5
- email: string;
6
- phone: string;
7
- }
1
+ export interface Owner {
2
+ ownerId: string;
3
+ userId: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ phone: string;
8
+ status: string;
9
+ createdAt: string;
10
+ }
11
+
12
+ export interface User {
13
+ userId: string;
14
+ createdAt: string;
15
+ firstName: string;
16
+ lastName: string;
17
+ phone: string;
18
+ email: string;
19
+ status: string;
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@housebookgroup/shared-types",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "private": false,
package/src/userTypes.ts CHANGED
@@ -1,7 +1,20 @@
1
1
  export interface Owner {
2
2
  ownerId: string;
3
+ userId: string;
3
4
  firstName: string;
4
5
  lastName: string;
5
6
  email: string;
6
7
  phone: string;
8
+ status: string;
9
+ createdAt: string;
7
10
  }
11
+
12
+ export interface User {
13
+ userId: string;
14
+ createdAt: string;
15
+ firstName: string;
16
+ lastName: string;
17
+ phone: string;
18
+ email: string;
19
+ status: string;
20
+ }