avvir 0.3.19 → 0.3.21
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.
- package/dist/avvir_api.node.js +10 -12
- package/dist/esm/models/api/api_cloud_file.d.ts +5 -3
- package/dist/esm/models/api/api_cloud_file.js +6 -8
- package/dist/esm/models/api/api_cloud_file.js.map +1 -1
- package/dist/esm/models/api/api_cloud_file_location_3d.d.ts +3 -0
- package/dist/esm/models/api/api_cloud_file_location_3d.js.map +1 -1
- package/dist/esm/models/api/api_project_summary.d.ts +4 -4
- package/dist/esm/models/api/api_project_summary.js +4 -4
- package/dist/esm/models/api/api_project_summary.js.map +1 -1
- package/package.json +1 -1
- package/source/models/api/api_cloud_file.ts +10 -10
- package/source/models/api/api_cloud_file_location_3d.ts +3 -0
- package/source/models/api/api_project_summary.ts +7 -6
package/dist/avvir_api.node.js
CHANGED
|
@@ -2374,13 +2374,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2374
2374
|
|
|
2375
2375
|
var ApiCloudFile = /** @class */ (function () {
|
|
2376
2376
|
function ApiCloudFile(_a) {
|
|
2377
|
-
var url = _a.url, id = _a.id, lastModified = _a.lastModified, createdAt = _a.createdAt, purposeType = _a.purposeType, fileType = _a.fileType;
|
|
2377
|
+
var url = _a.url, id = _a.id, lastModified = _a.lastModified, createdAt = _a.createdAt, purposeType = _a.purposeType, fileType = _a.fileType, createdBy = _a.createdBy, sizeInBytes = _a.sizeInBytes, location3d = _a.location3d;
|
|
2378
2378
|
this.lastModified = null;
|
|
2379
2379
|
this.createdAt = null;
|
|
2380
2380
|
this.purposeType = _api_purpose_type__WEBPACK_IMPORTED_MODULE_1__.ApiProjectPurposeType.OTHER;
|
|
2381
|
-
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "lastModified");
|
|
2382
|
-
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "createdAt");
|
|
2383
|
-
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addReadOnlyPropertiesToModel)(this, { url: url, id: id, fileType: fileType });
|
|
2381
|
+
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "lastModified", lastModified);
|
|
2382
|
+
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "createdAt", createdAt);
|
|
2383
|
+
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addReadOnlyPropertiesToModel)(this, { url: url, id: id, fileType: fileType, createdBy: createdBy });
|
|
2384
2384
|
var purposeTypeVal = _api_purpose_type__WEBPACK_IMPORTED_MODULE_1__.ApiProjectPurposeType.OTHER;
|
|
2385
2385
|
Object.defineProperties(this, {
|
|
2386
2386
|
purposeType: {
|
|
@@ -2401,11 +2401,9 @@ var ApiCloudFile = /** @class */ (function () {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
});
|
|
2403
2403
|
// @ts-ignore
|
|
2404
|
-
this.lastModified = lastModified || null;
|
|
2405
|
-
// @ts-ignore
|
|
2406
|
-
this.createdAt = createdAt || null;
|
|
2407
|
-
// @ts-ignore
|
|
2408
2404
|
this.purposeType = purposeType;
|
|
2405
|
+
this.location3d = location3d;
|
|
2406
|
+
this.sizeInBytes = sizeInBytes;
|
|
2409
2407
|
}
|
|
2410
2408
|
return ApiCloudFile;
|
|
2411
2409
|
}());
|
|
@@ -3572,23 +3570,23 @@ var ApiProjectSummary = /** @class */ (function () {
|
|
|
3572
3570
|
|
|
3573
3571
|
var ApiProjectArea = /** @class */ (function () {
|
|
3574
3572
|
function ApiProjectArea(_a) {
|
|
3575
|
-
var id = _a.id, modelElementId = _a.modelElementId, name = _a.name, progress = _a.progress;
|
|
3573
|
+
var id = _a.id, modelElementId = _a.modelElementId, name = _a.name, progress = _a.progress, floorId = _a.floorId, firebaseFloorId = _a.firebaseFloorId;
|
|
3576
3574
|
this.id = id;
|
|
3577
3575
|
this.modelElementId = modelElementId;
|
|
3578
3576
|
this.name = name;
|
|
3579
3577
|
this.progress = progress;
|
|
3578
|
+
this.floorId = floorId;
|
|
3579
|
+
this.firebaseFloorId = firebaseFloorId;
|
|
3580
3580
|
}
|
|
3581
3581
|
return ApiProjectArea;
|
|
3582
3582
|
}());
|
|
3583
3583
|
|
|
3584
3584
|
var ApiProjectAreaProgress = /** @class */ (function () {
|
|
3585
3585
|
function ApiProjectAreaProgress(_a) {
|
|
3586
|
-
var id = _a.id, name = _a.name, status = _a.status
|
|
3586
|
+
var id = _a.id, name = _a.name, status = _a.status;
|
|
3587
3587
|
this.id = id;
|
|
3588
3588
|
this.name = name;
|
|
3589
3589
|
this.status = status;
|
|
3590
|
-
this.floorId = floorId;
|
|
3591
|
-
this.firebaseFloorId = firebaseFloorId;
|
|
3592
3590
|
}
|
|
3593
3591
|
return ApiProjectAreaProgress;
|
|
3594
3592
|
}());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DateLike, Modify } from "./type_aliases";
|
|
2
2
|
import { ApiPurposeType } from "./api_purpose_type";
|
|
3
3
|
import { PurposeType } from "../enums";
|
|
4
|
-
import
|
|
4
|
+
import ApiPhotoLocation3d from "./api_photo_location_3d";
|
|
5
5
|
export declare type AvvirApiFiles<Type extends ApiPurposeType = ApiPurposeType> = {
|
|
6
6
|
[purposeType in Type]?: ApiCloudFile | ApiCloudFile[];
|
|
7
7
|
};
|
|
@@ -16,12 +16,14 @@ export interface ApiCloudFileArgument extends Partial<Modify<ApiCloudFile, {
|
|
|
16
16
|
}>> {
|
|
17
17
|
}
|
|
18
18
|
export declare class ApiCloudFile {
|
|
19
|
-
constructor({ url, id, lastModified, createdAt, purposeType, fileType }: ApiCloudFileArgument);
|
|
19
|
+
constructor({ url, id, lastModified, createdAt, purposeType, fileType, createdBy, sizeInBytes, location3d }: ApiCloudFileArgument);
|
|
20
20
|
readonly url: string;
|
|
21
|
-
location3d?:
|
|
21
|
+
location3d?: ApiPhotoLocation3d;
|
|
22
22
|
readonly id?: number;
|
|
23
23
|
lastModified?: number | null;
|
|
24
24
|
createdAt?: number | null;
|
|
25
25
|
purposeType: ApiPurposeType;
|
|
26
|
+
readonly createdBy?: string;
|
|
27
|
+
sizeInBytes?: number;
|
|
26
28
|
}
|
|
27
29
|
export default ApiCloudFile;
|
|
@@ -3,13 +3,13 @@ import { ApiProjectPurposeType, isApiPurposeType } from "./api_purpose_type";
|
|
|
3
3
|
import { PurposeTypeConverter } from "../../converters";
|
|
4
4
|
import { isPurposeType } from "../enums";
|
|
5
5
|
export class ApiCloudFile {
|
|
6
|
-
constructor({ url, id, lastModified, createdAt, purposeType, fileType }) {
|
|
6
|
+
constructor({ url, id, lastModified, createdAt, purposeType, fileType, createdBy, sizeInBytes, location3d }) {
|
|
7
7
|
this.lastModified = null;
|
|
8
8
|
this.createdAt = null;
|
|
9
9
|
this.purposeType = ApiProjectPurposeType.OTHER;
|
|
10
|
-
addInstantGetterAndSetterToApiModel(this, "lastModified");
|
|
11
|
-
addInstantGetterAndSetterToApiModel(this, "createdAt");
|
|
12
|
-
addReadOnlyPropertiesToModel(this, { url, id, fileType });
|
|
10
|
+
addInstantGetterAndSetterToApiModel(this, "lastModified", lastModified);
|
|
11
|
+
addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
|
|
12
|
+
addReadOnlyPropertiesToModel(this, { url, id, fileType, createdBy });
|
|
13
13
|
let purposeTypeVal = ApiProjectPurposeType.OTHER;
|
|
14
14
|
Object.defineProperties(this, {
|
|
15
15
|
purposeType: {
|
|
@@ -30,11 +30,9 @@ export class ApiCloudFile {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
this.lastModified = lastModified || null;
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
this.createdAt = createdAt || null;
|
|
36
|
-
// @ts-ignore
|
|
37
33
|
this.purposeType = purposeType;
|
|
34
|
+
this.location3d = location3d;
|
|
35
|
+
this.sizeInBytes = sizeInBytes;
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
38
|
export default ApiCloudFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_cloud_file.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,mCAAmC,EAAE,4BAA4B,EAAC,MAAM,cAAc,CAAA;AAC9F,OAAO,EAAC,qBAAqB,EAAkB,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAc,MAAM,UAAU,CAAC;AAcpD,MAAM,OAAO,YAAY;IACvB,YAAY,EAAC,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAuB;
|
|
1
|
+
{"version":3,"file":"api_cloud_file.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,mCAAmC,EAAE,4BAA4B,EAAC,MAAM,cAAc,CAAA;AAC9F,OAAO,EAAC,qBAAqB,EAAkB,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAc,MAAM,UAAU,CAAC;AAcpD,MAAM,OAAO,YAAY;IACvB,YAAY,EAAC,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAuB;QA+B/H,iBAAY,GAAmB,IAAI,CAAC;QACpC,cAAS,GAAmB,IAAI,CAAC;QACjC,gBAAW,GAAmB,qBAAqB,CAAC,KAAK,CAAC;QAhCxD,mCAAmC,CAAC,IAAI,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QACxE,mCAAmC,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAClE,4BAA4B,CAAC,IAAI,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAC,CAAC,CAAC;QACnE,IAAI,cAAc,GAAmB,qBAAqB,CAAC,KAAK,CAAC;QACjE,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;YAC5B,WAAW,EAAE;gBACX,GAAG;oBACD,OAAO,cAAc,CAAC;gBACxB,CAAC;gBACD,GAAG,CAAC,GAAG;oBACL,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;wBAC3B,IAAI,gBAAgB,CAAC,GAAG,CAAC,EAAE;4BACzB,cAAc,GAAG,GAAG,CAAC;yBACtB;6BAAM,IAAI,aAAa,CAAC,GAAG,CAAC,EAAE;4BAC7B,cAAc,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;yBAC7D;qBACF;gBACH,CAAC;gBACD,UAAU,EAAE,IAAI;aACjB;SACF,CAAC,CAAC;QACH,aAAa;QACb,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CAUF;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Vector3Like, Vector4Like } from "./type_aliases";
|
|
2
2
|
import { ApiQuaternion } from "./api_quaternion";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated See ApiPhotoLocation3d (./api_photo_location_3d.ts)
|
|
5
|
+
*/
|
|
3
6
|
export declare type ApiCloudFileLocationId = {
|
|
4
7
|
id: number;
|
|
5
8
|
position: Vector3Like;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_cloud_file_location_3d.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file_location_3d.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"api_cloud_file_location_3d.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file_location_3d.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAiB/C,MAAM,OAAO,sBAAsB;IAIjC,YAAY,EACN,EAAE,EACF,QAAQ,EACR,WAAW,EACqB;QACpC,4BAA4B,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC;CACF;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -6,16 +6,16 @@ export declare class ApiProjectSummary {
|
|
|
6
6
|
export declare class ApiProjectArea {
|
|
7
7
|
readonly id: number;
|
|
8
8
|
readonly modelElementId: number;
|
|
9
|
+
readonly floorId?: number;
|
|
10
|
+
readonly firebaseFloorId?: string;
|
|
9
11
|
name: string;
|
|
10
12
|
progress: ApiProjectAreaProgress[];
|
|
11
|
-
constructor({ id, modelElementId, name, progress }: Partial<ApiProjectArea>);
|
|
13
|
+
constructor({ id, modelElementId, name, progress, floorId, firebaseFloorId }: Partial<ApiProjectArea>);
|
|
12
14
|
}
|
|
13
15
|
export declare class ApiProjectAreaProgress {
|
|
14
16
|
id: number;
|
|
15
17
|
name: string;
|
|
16
18
|
status: string;
|
|
17
|
-
|
|
18
|
-
readonly firebaseFloorId?: string;
|
|
19
|
-
constructor({ id, name, status, floorId, firebaseFloorId }: Partial<ApiProjectAreaProgress>);
|
|
19
|
+
constructor({ id, name, status }: Partial<ApiProjectAreaProgress>);
|
|
20
20
|
}
|
|
21
21
|
export default ApiProjectSummary;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export class ApiProjectSummary {
|
|
2
2
|
}
|
|
3
3
|
export class ApiProjectArea {
|
|
4
|
-
constructor({ id, modelElementId, name, progress }) {
|
|
4
|
+
constructor({ id, modelElementId, name, progress, floorId, firebaseFloorId }) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.modelElementId = modelElementId;
|
|
7
7
|
this.name = name;
|
|
8
8
|
this.progress = progress;
|
|
9
|
+
this.floorId = floorId;
|
|
10
|
+
this.firebaseFloorId = firebaseFloorId;
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
13
|
export class ApiProjectAreaProgress {
|
|
12
|
-
constructor({ id, name, status
|
|
14
|
+
constructor({ id, name, status }) {
|
|
13
15
|
this.id = id;
|
|
14
16
|
this.name = name;
|
|
15
17
|
this.status = status;
|
|
16
|
-
this.floorId = floorId;
|
|
17
|
-
this.firebaseFloorId = firebaseFloorId;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
export default ApiProjectSummary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_project_summary.js","sourceRoot":"","sources":["../../../../source/models/api/api_project_summary.ts"],"names":[],"mappings":"AACA,MAAM,OAAO,iBAAiB;CAG7B;AAGD,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"api_project_summary.js","sourceRoot":"","sources":["../../../../source/models/api/api_project_summary.ts"],"names":[],"mappings":"AACA,MAAM,OAAO,iBAAiB;CAG7B;AAGD,MAAM,OAAO,cAAc;IAQvB,YAAY,EAAC,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAA2B;QAChG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC3C,CAAC;CACJ;AAED,MAAM,OAAO,sBAAsB;IAM/B,YAAY,EAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAmC;QAC5D,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACxB,CAAC;CACJ;AAED,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import {addInstantGetterAndSetterToApiModel, addReadOnlyPropertiesToModel} from
|
|
|
3
3
|
import {ApiProjectPurposeType, ApiPurposeType, isApiPurposeType} from "./api_purpose_type";
|
|
4
4
|
import {PurposeTypeConverter} from "../../converters";
|
|
5
5
|
import {isPurposeType, PurposeType} from "../enums";
|
|
6
|
-
import
|
|
6
|
+
import ApiPhotoLocation3d from "./api_photo_location_3d";
|
|
7
7
|
|
|
8
8
|
export type AvvirApiFiles<Type extends ApiPurposeType = ApiPurposeType> = { [purposeType in Type]?: ApiCloudFile | ApiCloudFile[] }
|
|
9
9
|
export type AvvirApiFileIds<Type extends ApiPurposeType = ApiPurposeType> = { [purposeType in Type]?: number[] }
|
|
@@ -17,10 +17,10 @@ export interface ApiCloudFileArgument extends Partial<Modify<ApiCloudFile, {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export class ApiCloudFile {
|
|
20
|
-
constructor({url, id, lastModified, createdAt, purposeType, fileType}: ApiCloudFileArgument) {
|
|
21
|
-
addInstantGetterAndSetterToApiModel(this, "lastModified");
|
|
22
|
-
addInstantGetterAndSetterToApiModel(this, "createdAt");
|
|
23
|
-
addReadOnlyPropertiesToModel(this, {url, id, fileType});
|
|
20
|
+
constructor({url, id, lastModified, createdAt, purposeType, fileType, createdBy, sizeInBytes, location3d}: ApiCloudFileArgument) {
|
|
21
|
+
addInstantGetterAndSetterToApiModel(this, "lastModified", lastModified);
|
|
22
|
+
addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
|
|
23
|
+
addReadOnlyPropertiesToModel(this, {url, id, fileType, createdBy});
|
|
24
24
|
let purposeTypeVal: ApiPurposeType = ApiProjectPurposeType.OTHER;
|
|
25
25
|
Object.defineProperties(this, {
|
|
26
26
|
purposeType: {
|
|
@@ -40,19 +40,19 @@ export class ApiCloudFile {
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
// @ts-ignore
|
|
43
|
-
this.lastModified = lastModified || null;
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
this.createdAt = createdAt || null;
|
|
46
|
-
// @ts-ignore
|
|
47
43
|
this.purposeType = purposeType;
|
|
44
|
+
this.location3d = location3d;
|
|
45
|
+
this.sizeInBytes = sizeInBytes;
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
readonly url: string;
|
|
51
|
-
location3d?:
|
|
49
|
+
location3d?: ApiPhotoLocation3d
|
|
52
50
|
readonly id?: number
|
|
53
51
|
lastModified?: number | null = null;
|
|
54
52
|
createdAt?: number | null = null;
|
|
55
53
|
purposeType: ApiPurposeType = ApiProjectPurposeType.OTHER;
|
|
54
|
+
readonly createdBy?: string;
|
|
55
|
+
sizeInBytes?: number;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export default ApiCloudFile;
|
|
@@ -2,6 +2,9 @@ import {Vector3Like, Vector4Like} from "./type_aliases";
|
|
|
2
2
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
3
|
import {ApiQuaternion} from "./api_quaternion";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated See ApiPhotoLocation3d (./api_photo_location_3d.ts)
|
|
7
|
+
*/
|
|
5
8
|
export type ApiCloudFileLocationId = {
|
|
6
9
|
id: number,
|
|
7
10
|
position: Vector3Like,
|
|
@@ -8,14 +8,18 @@ export class ApiProjectSummary {
|
|
|
8
8
|
export class ApiProjectArea {
|
|
9
9
|
readonly id: number
|
|
10
10
|
readonly modelElementId: number
|
|
11
|
+
readonly floorId?: number
|
|
12
|
+
readonly firebaseFloorId?: string
|
|
11
13
|
name: string
|
|
12
14
|
progress: ApiProjectAreaProgress[]
|
|
13
15
|
|
|
14
|
-
constructor({id, modelElementId, name, progress} : Partial<ApiProjectArea>) {
|
|
16
|
+
constructor({id, modelElementId, name, progress, floorId, firebaseFloorId} : Partial<ApiProjectArea>) {
|
|
15
17
|
this.id = id;
|
|
16
18
|
this.modelElementId = modelElementId;
|
|
17
19
|
this.name = name;
|
|
18
20
|
this.progress = progress;
|
|
21
|
+
this.floorId = floorId;
|
|
22
|
+
this.firebaseFloorId = firebaseFloorId;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
|
|
@@ -23,15 +27,12 @@ export class ApiProjectAreaProgress {
|
|
|
23
27
|
id: number
|
|
24
28
|
name: string
|
|
25
29
|
status: string
|
|
26
|
-
readonly floorId?: number
|
|
27
|
-
readonly firebaseFloorId?: string
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
|
|
32
|
+
constructor({id, name, status} : Partial<ApiProjectAreaProgress>) {
|
|
30
33
|
this.id = id;
|
|
31
34
|
this.name = name;
|
|
32
35
|
this.status = status
|
|
33
|
-
this.floorId = floorId;
|
|
34
|
-
this.firebaseFloorId = firebaseFloorId;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|