@housebookgroup/shared-types 1.0.1 → 1.0.3

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.
@@ -0,0 +1,25 @@
1
+ export interface ChangeLog {
2
+ id: string;
3
+ asset_id: string;
4
+ specifications: JSON;
5
+ change_description: string;
6
+ changed_by_user_id?: string;
7
+ created_at: string;
8
+ status: ChangeLogStatus;
9
+ actions: ChangeLogAction;
10
+ deleted: boolean;
11
+ asset_name?: string;
12
+ space_name?: string;
13
+ property_id?: string;
14
+ }
15
+ declare enum ChangeLogStatus {
16
+ PENDING = "PENDING",
17
+ ACCEPTED = "ACCEPTED",
18
+ DECLINED = "DECLINED"
19
+ }
20
+ declare enum ChangeLogAction {
21
+ CREATED = "CREATED",
22
+ UPDATED = "UPDATED",
23
+ DELETED = "DELETED"
24
+ }
25
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * from './authTypes';
2
- export * from './onboardingTypes';
3
- export * from './propertyTypes';
4
- export * from './userTypes';
1
+ export * from "./authTypes";
2
+ export * from "./onboardingTypes";
3
+ export * from "./propertyTypes";
4
+ export * from "./userTypes";
5
+ export * from "./changelogTypes";
@@ -19,9 +19,12 @@ export type Space = {
19
19
  name: string;
20
20
  type: string;
21
21
  assets: Asset[];
22
+ deleted: boolean;
22
23
  };
23
24
  export type Asset = {
24
25
  asset_id: string;
25
26
  type: string;
26
27
  description: string;
28
+ current_specifications: JSON;
29
+ deleted: boolean;
27
30
  };
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "name": "@housebookgroup/shared-types",
3
- "version": "1.0.1",
4
- "description": "",
5
- "main": "index.js",
6
- "private": false,
7
- "types": "dist/index.d.ts",
8
- "scripts": {
9
- "test": "echo \"Error: no test specified\" && exit 1",
10
- "build": "tsc"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/SSIEK-unimelb/housebook-shared-types.git"
15
- },
16
- "keywords": [],
17
- "author": "",
18
- "license": "ISC",
19
- "bugs": {
20
- "url": "https://github.com/SSIEK-unimelb/housebook-shared-types/issues"
21
- },
22
- "homepage": "https://github.com/SSIEK-unimelb/housebook-shared-types#readme"
23
- }
1
+ {
2
+ "name": "@housebookgroup/shared-types",
3
+ "version": "1.0.3",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "private": false,
7
+ "types": "dist/index.d.ts",
8
+ "scripts": {
9
+ "test": "echo \"Error: no test specified\" && exit 1",
10
+ "build": "tsc"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/SSIEK-unimelb/housebook-shared-types.git"
15
+ },
16
+ "keywords": [],
17
+ "author": "",
18
+ "license": "ISC",
19
+ "bugs": {
20
+ "url": "https://github.com/SSIEK-unimelb/housebook-shared-types/issues"
21
+ },
22
+ "homepage": "https://github.com/SSIEK-unimelb/housebook-shared-types#readme"
23
+ }
@@ -0,0 +1,27 @@
1
+ export interface ChangeLog {
2
+ id: string;
3
+ asset_id: string;
4
+ specifications: JSON;
5
+ change_description: string;
6
+ changed_by_user_id?: string;
7
+ created_at: string;
8
+ status: ChangeLogStatus;
9
+ actions: ChangeLogAction;
10
+ deleted: boolean;
11
+ // Joined data
12
+ asset_name?: string;
13
+ space_name?: string;
14
+ property_id?: string;
15
+ }
16
+
17
+ enum ChangeLogStatus {
18
+ PENDING = "PENDING",
19
+ ACCEPTED = "ACCEPTED",
20
+ DECLINED = "DECLINED",
21
+ }
22
+
23
+ enum ChangeLogAction {
24
+ CREATED = "CREATED",
25
+ UPDATED = "UPDATED",
26
+ DELETED = "DELETED",
27
+ }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * from './authTypes';
2
- export * from './onboardingTypes';
3
- export * from './propertyTypes';
4
- export * from './userTypes';
1
+ export * from "./authTypes";
2
+ export * from "./onboardingTypes";
3
+ export * from "./propertyTypes";
4
+ export * from "./userTypes";
5
+ export * from "./changelogTypes";
@@ -1,13 +1,13 @@
1
- export type Property = {
1
+ export type Property = {
2
2
  property_id: string;
3
- address: string;
4
- description: string;
5
- pin: string;
6
- name: string;
7
- type: string;
8
- status: string;
9
- lastUpdated: string;
10
- completionStatus: number;
3
+ address: string;
4
+ description: string;
5
+ pin: string;
6
+ name: string;
7
+ type: string;
8
+ status: string;
9
+ lastUpdated: string;
10
+ completionStatus: number;
11
11
  totalFloorArea?: number;
12
12
  spaces?: Space[];
13
13
  images?: string[];
@@ -20,10 +20,14 @@ export type Space = {
20
20
  name: string;
21
21
  type: string;
22
22
  assets: Asset[];
23
+ deleted: boolean;
23
24
  };
24
25
 
25
26
  export type Asset = {
26
27
  asset_id: string;
27
28
  type: string;
28
29
  description: string;
30
+ current_specifications: JSON;
31
+ deleted: boolean;
29
32
  };
33
+
package/src/userTypes.ts CHANGED
@@ -3,4 +3,4 @@ export type Owner = {
3
3
  first_name: string;
4
4
  last_name: string;
5
5
  email: string;
6
- };
6
+ };