avvir 6.0.3 → 7.0.0
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 +739 -379
- package/dist/esm/api/index.d.ts +9 -7
- package/dist/esm/api/index.js +9 -7
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/photo_area_api.d.ts +1 -1
- package/dist/esm/api/photo_area_api.js.map +1 -1
- package/dist/esm/api/project_api.d.ts +2 -4
- package/dist/esm/api/project_api.js.map +1 -1
- package/dist/esm/api/recipe_api.d.ts +5 -0
- package/dist/esm/api/recipe_api.js +20 -0
- package/dist/esm/api/recipe_api.js.map +1 -1
- package/dist/esm/api/scan_dataset_api.d.ts +3 -2
- package/dist/esm/api/scan_dataset_api.js +4 -0
- package/dist/esm/api/scan_dataset_api.js.map +1 -1
- package/dist/esm/api/trade_api.d.ts +12 -0
- package/dist/esm/api/trade_api.js +33 -0
- package/dist/esm/api/trade_api.js.map +1 -0
- package/dist/esm/api/work_package_api.d.ts +10 -0
- package/dist/esm/api/work_package_api.js +22 -0
- package/dist/esm/api/work_package_api.js.map +1 -0
- package/dist/esm/avvir_api.d.ts +4 -2
- package/dist/esm/avvir_api.js +4 -2
- package/dist/esm/avvir_api.js.map +1 -1
- package/dist/esm/converters/floor_file_deletion_mode_converter.d.ts +1 -1
- package/dist/esm/converters/floor_file_deletion_mode_converter.js +1 -1
- package/dist/esm/converters/floor_file_deletion_mode_converter.js.map +1 -1
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/models/api/api_action_payload.d.ts +2 -1
- package/dist/esm/models/api/api_action_payload.js +1 -0
- package/dist/esm/models/api/api_action_payload.js.map +1 -1
- package/dist/esm/models/api/api_argo_response.js.map +1 -1
- package/dist/esm/models/api/api_bcf_building_element.d.ts +4 -4
- package/dist/esm/models/api/api_bcf_building_element.js.map +1 -1
- package/dist/esm/models/api/api_bcf_issue.d.ts +2 -2
- package/dist/esm/models/api/api_bcf_issue.js.map +1 -1
- package/dist/esm/models/api/api_cloud_file.d.ts +5 -10
- package/dist/esm/models/api/api_cloud_file.js +1 -1
- package/dist/esm/models/api/api_cloud_file.js.map +1 -1
- package/dist/esm/models/api/api_cloud_file_location_3d.d.ts +2 -2
- package/dist/esm/models/api/api_cloud_file_location_3d.js.map +1 -1
- package/dist/esm/models/api/api_construction_grid.d.ts +3 -3
- package/dist/esm/models/api/api_construction_grid.js.map +1 -1
- package/dist/esm/models/api/api_detailed_element.d.ts +4 -3
- package/dist/esm/models/api/api_detailed_element.js +4 -3
- package/dist/esm/models/api/api_detailed_element.js.map +1 -1
- package/dist/esm/models/api/api_element_deviation.d.ts +8 -3
- package/dist/esm/models/api/api_element_deviation.js +1 -1
- package/dist/esm/models/api/api_element_deviation.js.map +1 -1
- package/dist/esm/models/api/api_floor.d.ts +6 -7
- package/dist/esm/models/api/api_floor.js +2 -6
- package/dist/esm/models/api/api_floor.js.map +1 -1
- package/dist/esm/models/api/api_grid_line.d.ts +1 -1
- package/dist/esm/models/api/api_grid_line.js.map +1 -1
- package/dist/esm/models/api/api_groups.js.map +1 -1
- package/dist/esm/models/api/api_inspect_report.d.ts +11 -4
- package/dist/esm/models/api/api_inspect_report.js +3 -1
- package/dist/esm/models/api/api_inspect_report.js.map +1 -1
- package/dist/esm/models/api/api_inspect_report_entry.d.ts +11 -5
- package/dist/esm/models/api/api_inspect_report_entry.js +5 -3
- package/dist/esm/models/api/api_inspect_report_entry.js.map +1 -1
- package/dist/esm/models/api/api_inspect_report_entry_element.d.ts +3 -8
- package/dist/esm/models/api/api_inspect_report_entry_element.js +2 -1
- package/dist/esm/models/api/api_inspect_report_entry_element.js.map +1 -1
- package/dist/esm/models/api/api_integration_credentials.d.ts +4 -4
- package/dist/esm/models/api/api_integration_credentials.js.map +1 -1
- package/dist/esm/models/api/api_integration_project.d.ts +3 -3
- package/dist/esm/models/api/api_integration_project.js.map +1 -1
- package/dist/esm/models/api/api_invitation.d.ts +1 -1
- package/dist/esm/models/api/api_masterformat_progress.d.ts +3 -2
- package/dist/esm/models/api/api_masterformat_progress.js +1 -0
- package/dist/esm/models/api/api_masterformat_progress.js.map +1 -1
- package/dist/esm/models/api/api_organization.d.ts +1 -1
- package/dist/esm/models/api/api_organization.js +0 -1
- package/dist/esm/models/api/api_organization.js.map +1 -1
- package/dist/esm/models/api/api_photo_location.d.ts +15 -15
- package/dist/esm/models/api/api_photo_location.js +4 -4
- package/dist/esm/models/api/api_photo_location.js.map +1 -1
- package/dist/esm/models/api/api_photo_location_3d.d.ts +3 -3
- package/dist/esm/models/api/api_photo_location_3d.js.map +1 -1
- package/dist/esm/models/api/api_photo_session.d.ts +3 -4
- package/dist/esm/models/api/api_photo_session.js +1 -1
- package/dist/esm/models/api/api_photo_session.js.map +1 -1
- package/dist/esm/models/api/api_pipeline.d.ts +4 -5
- package/dist/esm/models/api/api_pipeline.js +1 -1
- package/dist/esm/models/api/api_pipeline.js.map +1 -1
- package/dist/esm/models/api/api_planned_element.d.ts +3 -3
- package/dist/esm/models/api/api_planned_element.js.map +1 -1
- package/dist/esm/models/api/api_progress_category.d.ts +1 -1
- package/dist/esm/models/api/api_progress_scan_dataset.d.ts +1 -1
- package/dist/esm/models/api/api_project.d.ts +17 -17
- package/dist/esm/models/api/api_project.js +5 -14
- package/dist/esm/models/api/api_project.js.map +1 -1
- package/dist/esm/models/api/api_project_area.d.ts +1 -1
- package/dist/esm/models/api/api_project_area.js.map +1 -1
- package/dist/esm/models/api/api_project_area_work_package.js.map +1 -1
- package/dist/esm/models/api/api_project_cost_analysis_progress.d.ts +1 -1
- package/dist/esm/models/api/api_project_cost_analysis_progress.js.map +1 -1
- package/dist/esm/models/api/api_project_report.d.ts +6 -2
- package/dist/esm/models/api/api_project_report.js +2 -1
- package/dist/esm/models/api/api_project_report.js.map +1 -1
- package/dist/esm/models/api/api_project_report_version.d.ts +5 -1
- package/dist/esm/models/api/api_project_report_version.js +1 -3
- package/dist/esm/models/api/api_project_report_version.js.map +1 -1
- package/dist/esm/models/api/api_project_settings.d.ts +1 -0
- package/dist/esm/models/api/api_project_settings.js +1 -0
- package/dist/esm/models/api/api_project_settings.js.map +1 -1
- package/dist/esm/models/api/api_project_summary.d.ts +2 -2
- package/dist/esm/models/api/api_project_summary.js.map +1 -1
- package/dist/esm/models/api/api_project_work_package.d.ts +5 -1
- package/dist/esm/models/api/api_project_work_package.js +4 -0
- package/dist/esm/models/api/api_project_work_package.js.map +1 -1
- package/dist/esm/models/api/api_project_work_package_cost.d.ts +2 -8
- package/dist/esm/models/api/api_project_work_package_cost.js +1 -1
- package/dist/esm/models/api/api_project_work_package_cost.js.map +1 -1
- package/dist/esm/models/api/api_quaternion.d.ts +1 -1
- package/dist/esm/models/api/api_quaternion.js +1 -0
- package/dist/esm/models/api/api_quaternion.js.map +1 -1
- package/dist/esm/models/api/api_query_resource.d.ts +1 -0
- package/dist/esm/models/api/api_query_resource.js +1 -0
- package/dist/esm/models/api/api_query_resource.js.map +1 -1
- package/dist/esm/models/api/api_recipe.d.ts +7 -18
- package/dist/esm/models/api/api_recipe.js +3 -3
- package/dist/esm/models/api/api_recipe.js.map +1 -1
- package/dist/esm/models/api/api_running_process.d.ts +5 -6
- package/dist/esm/models/api/api_running_process.js +1 -1
- package/dist/esm/models/api/api_running_process.js.map +1 -1
- package/dist/esm/models/api/api_scan_dataset.d.ts +9 -10
- package/dist/esm/models/api/api_scan_dataset.js.map +1 -1
- package/dist/esm/models/api/api_scandataset_stats.d.ts +10 -19
- package/dist/esm/models/api/api_scandataset_stats.js +15 -14
- package/dist/esm/models/api/api_scandataset_stats.js.map +1 -1
- package/dist/esm/models/api/api_scanned_element.d.ts +4 -1
- package/dist/esm/models/api/api_scanned_element.js +3 -0
- package/dist/esm/models/api/api_scanned_element.js.map +1 -1
- package/dist/esm/models/api/api_team_member.d.ts +2 -1
- package/dist/esm/models/api/api_team_member.js +1 -0
- package/dist/esm/models/api/api_team_member.js.map +1 -1
- package/dist/esm/models/api/api_user.d.ts +1 -1
- package/dist/esm/models/api/api_user.js.map +1 -1
- package/dist/esm/models/api/api_user_action.d.ts +4 -4
- package/dist/esm/models/api/api_user_action.js.map +1 -1
- package/dist/esm/models/api/api_user_for_organization.d.ts +11 -6
- package/dist/esm/models/api/api_user_for_organization.js +4 -3
- package/dist/esm/models/api/api_user_for_organization.js.map +1 -1
- package/dist/esm/models/api/api_user_permission.d.ts +2 -2
- package/dist/esm/models/api/api_user_permission.js.map +1 -1
- package/dist/esm/models/api/api_view.d.ts +24 -18
- package/dist/esm/models/api/api_view.js +4 -7
- package/dist/esm/models/api/api_view.js.map +1 -1
- package/dist/esm/models/api/api_work_package.d.ts +9 -0
- package/dist/esm/models/api/api_work_package.js +9 -0
- package/dist/esm/models/api/api_work_package.js.map +1 -0
- package/dist/esm/models/api/deprecated_api_pipeline.d.ts +3 -0
- package/dist/esm/models/api/deprecated_api_pipeline.js +3 -0
- package/dist/esm/models/api/deprecated_api_pipeline.js.map +1 -1
- package/dist/esm/models/api/index.d.ts +62 -60
- package/dist/esm/models/api/index.js +59 -56
- package/dist/esm/models/api/index.js.map +1 -1
- package/dist/esm/models/api/trade/api_captured_trade_cost.d.ts +7 -0
- package/dist/esm/models/api/trade/api_captured_trade_cost.js +9 -0
- package/dist/esm/models/api/trade/api_captured_trade_cost.js.map +1 -0
- package/dist/esm/models/api/trade/api_planned_trade_cost.d.ts +9 -0
- package/dist/esm/models/api/trade/api_planned_trade_cost.js +11 -0
- package/dist/esm/models/api/trade/api_planned_trade_cost.js.map +1 -0
- package/dist/esm/models/api/trade/api_trade.d.ts +9 -0
- package/dist/esm/models/api/trade/api_trade.js +13 -0
- package/dist/esm/models/api/trade/api_trade.js.map +1 -0
- package/dist/esm/models/api/trade/api_trade_cost.d.ts +12 -0
- package/dist/esm/models/api/trade/api_trade_cost.js +14 -0
- package/dist/esm/models/api/trade/api_trade_cost.js.map +1 -0
- package/dist/esm/models/api/trade/index.d.ts +4 -0
- package/dist/esm/models/api/trade/index.js +5 -0
- package/dist/esm/models/api/trade/index.js.map +1 -0
- package/dist/esm/models/enums/api_floor_file_deletion_mode.d.ts +7 -0
- package/dist/esm/models/{api/ApiFloorFileDeletionMode.js → enums/api_floor_file_deletion_mode.js} +4 -1
- package/dist/esm/models/enums/api_floor_file_deletion_mode.js.map +1 -0
- package/dist/esm/models/enums/index.d.ts +9 -8
- package/dist/esm/models/enums/index.js +9 -8
- package/dist/esm/models/enums/index.js.map +1 -1
- package/package.json +1 -1
- package/source/api/index.ts +28 -24
- package/source/api/photo_area_api.ts +11 -8
- package/source/api/project_api.ts +3 -5
- package/source/api/recipe_api.ts +28 -3
- package/source/api/scan_dataset_api.ts +8 -3
- package/source/api/trade_api.ts +45 -0
- package/source/api/work_package_api.ts +28 -0
- package/source/avvir_api.ts +4 -2
- package/source/converters/floor_file_deletion_mode_converter.ts +9 -7
- package/source/models/api/api_action_payload.ts +5 -3
- package/source/models/api/api_argo_response.ts +11 -1
- package/source/models/api/api_bcf_building_element.ts +4 -4
- package/source/models/api/api_bcf_issue.ts +2 -2
- package/source/models/api/api_cloud_file.ts +7 -9
- package/source/models/api/api_cloud_file_location_3d.ts +2 -2
- package/source/models/api/api_construction_grid.ts +5 -4
- package/source/models/api/api_detailed_element.ts +22 -20
- package/source/models/api/api_element_deviation.ts +15 -6
- package/source/models/api/api_floor.ts +14 -12
- package/source/models/api/api_grid_line.ts +2 -1
- package/source/models/api/api_groups.ts +10 -9
- package/source/models/api/api_inspect_report.ts +27 -16
- package/source/models/api/api_inspect_report_entry.ts +54 -30
- package/source/models/api/api_inspect_report_entry_element.ts +26 -23
- package/source/models/api/api_integration_credentials.ts +6 -4
- package/source/models/api/api_integration_project.ts +5 -3
- package/source/models/api/api_invitation.ts +1 -1
- package/source/models/api/api_masterformat_progress.ts +5 -3
- package/source/models/api/api_organization.ts +1 -1
- package/source/models/api/api_photo_location.ts +21 -19
- package/source/models/api/api_photo_location_3d.ts +10 -7
- package/source/models/api/api_photo_session.ts +5 -5
- package/source/models/api/api_pipeline.ts +9 -7
- package/source/models/api/api_planned_element.ts +4 -3
- package/source/models/api/api_progress_category.ts +2 -2
- package/source/models/api/api_progress_scan_dataset.ts +2 -2
- package/source/models/api/api_project.ts +24 -27
- package/source/models/api/api_project_area.ts +2 -1
- package/source/models/api/api_project_area_work_package.ts +12 -1
- package/source/models/api/api_project_cost_analysis_progress.ts +2 -1
- package/source/models/api/api_project_report.ts +22 -16
- package/source/models/api/api_project_report_version.ts +18 -14
- package/source/models/api/api_project_settings.ts +2 -0
- package/source/models/api/api_project_summary.ts +2 -2
- package/source/models/api/api_project_work_package.ts +18 -13
- package/source/models/api/api_project_work_package_cost.ts +15 -14
- package/source/models/api/api_quaternion.ts +2 -0
- package/source/models/api/api_query_resource.ts +2 -0
- package/source/models/api/api_recipe.ts +41 -43
- package/source/models/api/api_running_process.ts +7 -6
- package/source/models/api/api_scan_dataset.ts +11 -10
- package/source/models/api/api_scandataset_stats.ts +57 -48
- package/source/models/api/api_scanned_element.ts +7 -3
- package/source/models/api/api_team_member.ts +9 -7
- package/source/models/api/api_user.ts +15 -15
- package/source/models/api/api_user_action.ts +7 -5
- package/source/models/api/api_user_for_organization.ts +47 -26
- package/source/models/api/api_user_permission.ts +14 -13
- package/source/models/api/api_view.ts +43 -31
- package/source/models/api/api_work_package.ts +17 -0
- package/source/models/api/deprecated_api_pipeline.ts +3 -0
- package/source/models/api/index.ts +62 -120
- package/source/models/api/trade/api_captured_trade_cost.ts +13 -0
- package/source/models/api/trade/api_planned_trade_cost.ts +23 -0
- package/source/models/api/trade/api_trade.ts +19 -0
- package/source/models/api/trade/api_trade_cost.ts +24 -0
- package/source/models/api/trade/index.ts +4 -0
- package/source/models/enums/api_floor_file_deletion_mode.ts +9 -0
- package/source/models/enums/index.ts +9 -8
- package/dist/esm/models/api/ApiFloorFileDeletionMode.d.ts +0 -4
- package/dist/esm/models/api/ApiFloorFileDeletionMode.js.map +0 -1
- package/source/models/api/ApiFloorFileDeletionMode.ts +0 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
2
|
-
import {DateLike, ModifyPartial} from "./type_aliases";
|
|
3
|
-
import {ApiIntegrationCredentialsType} from "../enums";
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
import type { DateLike, ModifyPartial } from "./type_aliases";
|
|
4
|
+
import type { ApiIntegrationCredentialsType } from "../enums";
|
|
5
|
+
|
|
6
|
+
export type ApiIntegrationCredentialsArgument = ModifyPartial<ApiIntegrationCredentials, {
|
|
6
7
|
createdAt?: DateLike,
|
|
7
8
|
modifiedAt?: DateLike
|
|
8
9
|
}>;
|
|
@@ -19,7 +20,8 @@ export class ApiIntegrationCredentials {
|
|
|
19
20
|
firebaseProjectId,
|
|
20
21
|
authorId,
|
|
21
22
|
encryptedCredentials
|
|
22
|
-
}:
|
|
23
|
+
}: ApiIntegrationCredentialsArgument)
|
|
24
|
+
{
|
|
23
25
|
this.id = id;
|
|
24
26
|
this.username = username;
|
|
25
27
|
this.password = password;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
2
|
-
import {DateLike, ModifyPartial} from "./type_aliases";
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import type { DateLike, ModifyPartial } from "./type_aliases";
|
|
4
|
+
|
|
5
|
+
export type ApiIntegrationProjectArgument = ModifyPartial<ApiIntegrationProject, {
|
|
5
6
|
createdAt?: DateLike,
|
|
6
7
|
modifiedAt?: DateLike
|
|
7
8
|
}>;
|
|
@@ -14,7 +15,8 @@ export class ApiIntegrationProject {
|
|
|
14
15
|
integrationCredentialsId,
|
|
15
16
|
externalId,
|
|
16
17
|
externalName
|
|
17
|
-
}:
|
|
18
|
+
}: ApiIntegrationProjectArgument)
|
|
19
|
+
{
|
|
18
20
|
this.id = id;
|
|
19
21
|
this.integrationCredentialsId = integrationCredentialsId;
|
|
20
22
|
this.externalId = externalId;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
2
2
|
import ApiMasterformat from "./api_masterformat";
|
|
3
|
-
import {DateLike} from "./type_aliases";
|
|
3
|
+
import { DateLike } from "./type_aliases";
|
|
4
4
|
|
|
5
|
-
export type
|
|
5
|
+
export type ApiMasterformatProgressArgument = Partial<ApiMasterformatProgress>;
|
|
6
6
|
|
|
7
7
|
export class ApiMasterformatProgress {
|
|
8
8
|
constructor({
|
|
@@ -11,7 +11,7 @@ export class ApiMasterformatProgress {
|
|
|
11
11
|
scanDate,
|
|
12
12
|
createdAt,
|
|
13
13
|
customTradeCode
|
|
14
|
-
}:
|
|
14
|
+
}: ApiMasterformatProgressArgument) {
|
|
15
15
|
addInstantGetterAndSetterToApiModel(this, "scanDate");
|
|
16
16
|
addInstantGetterAndSetterToApiModel(this, "createdAt");
|
|
17
17
|
if (masterformat) {
|
|
@@ -32,3 +32,5 @@ export class ApiMasterformatProgress {
|
|
|
32
32
|
createdAt: number | null | DateLike = null;
|
|
33
33
|
customTradeCode: string | null = null;
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
export default ApiMasterformatProgress;
|
|
@@ -52,7 +52,7 @@ export class ApiOrganization {
|
|
|
52
52
|
contactPhoneNumber?: string | null = null;
|
|
53
53
|
name?: string | null = null;
|
|
54
54
|
notes?: string | null = null;
|
|
55
|
-
firebaseProjectIds:
|
|
55
|
+
firebaseProjectIds: string[];
|
|
56
56
|
multivistaEmail?: string | null = null;
|
|
57
57
|
multivistaPassword?: string | null = null;
|
|
58
58
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {Matrix4Like, DateLike, ModifyPartial} from "./type_aliases";
|
|
2
|
-
import PhotoProjectionType from "../enums/photo_projection_type";
|
|
3
|
-
import ApiCloudFile from "./api_cloud_file";
|
|
4
|
-
import ApiPhotoLocation3d from "./api_photo_location_3d";
|
|
5
|
-
import {PhotoRotationType} from "../enums";
|
|
6
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import type ApiCloudFile from "./api_cloud_file";
|
|
4
|
+
import type ApiPhotoLocation3d from "./api_photo_location_3d";
|
|
5
|
+
import type PhotoProjectionType from "../enums/photo_projection_type";
|
|
6
|
+
import type { DateLike, Matrix4Like, ModifyPartial } from "./type_aliases";
|
|
7
|
+
import type { PhotoRotationType } from "../enums";
|
|
8
|
+
|
|
9
|
+
export type ApiPhotoLocationArgument = ModifyPartial<ApiPhotoLocation, {
|
|
10
|
+
createdAt: DateLike,
|
|
11
|
+
updatedAt: DateLike,
|
|
12
|
+
originalTimestamp: DateLike
|
|
13
|
+
deletedAt: DateLike
|
|
13
14
|
}>;
|
|
14
15
|
|
|
15
16
|
export class ApiPhotoLocation {
|
|
@@ -30,11 +31,8 @@ export class ApiPhotoLocation {
|
|
|
30
31
|
updatedAt,
|
|
31
32
|
originalTimestamp,
|
|
32
33
|
deletedAt
|
|
33
|
-
}:
|
|
34
|
-
|
|
35
|
-
addInstantGetterAndSetterToApiModel(this, "updatedAt", updatedAt);
|
|
36
|
-
addInstantGetterAndSetterToApiModel(this, "originalTimestamp", originalTimestamp);
|
|
37
|
-
addInstantGetterAndSetterToApiModel(this, "deletedAt", deletedAt);
|
|
34
|
+
}: ApiPhotoLocationArgument = {})
|
|
35
|
+
{
|
|
38
36
|
this.id = id;
|
|
39
37
|
this.photoAreaId = photoAreaId;
|
|
40
38
|
this.photoSessionId = photoSessionId;
|
|
@@ -47,16 +45,16 @@ export class ApiPhotoLocation {
|
|
|
47
45
|
this.bimLocation = bimLocation;
|
|
48
46
|
this.yawOffset = yawOffset;
|
|
49
47
|
this.rotationType = rotationType;
|
|
48
|
+
addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
|
|
49
|
+
addInstantGetterAndSetterToApiModel(this, "updatedAt", updatedAt);
|
|
50
|
+
addInstantGetterAndSetterToApiModel(this, "originalTimestamp", originalTimestamp);
|
|
51
|
+
addInstantGetterAndSetterToApiModel(this, "deletedAt", deletedAt);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
readonly id: number;
|
|
53
55
|
readonly photoAreaId: number;
|
|
54
56
|
readonly photoSessionId?: number;
|
|
55
57
|
readonly file: ApiCloudFile;
|
|
56
|
-
readonly createdAt: number;
|
|
57
|
-
readonly updatedAt?: number;
|
|
58
|
-
readonly originalTimestamp?: number;
|
|
59
|
-
readonly deletedAt?: number;
|
|
60
58
|
minimapX: number;
|
|
61
59
|
minimapY: number;
|
|
62
60
|
minimapBearing: number;
|
|
@@ -65,6 +63,10 @@ export class ApiPhotoLocation {
|
|
|
65
63
|
bimLocation: ApiPhotoLocation3d;
|
|
66
64
|
yawOffset: number = null;
|
|
67
65
|
rotationType: PhotoRotationType;
|
|
66
|
+
readonly createdAt: number;
|
|
67
|
+
readonly updatedAt?: number;
|
|
68
|
+
readonly originalTimestamp?: number;
|
|
69
|
+
readonly deletedAt?: number;
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
export default ApiPhotoLocation;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {Vector3Like, Vector4Like} from "./type_aliases";
|
|
2
1
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
|
-
import {ApiQuaternion} from "./api_quaternion";
|
|
2
|
+
import { ApiQuaternion } from "./api_quaternion";
|
|
3
|
+
|
|
4
|
+
import type { Vector3Like, Vector4Like } from "./type_aliases";
|
|
4
5
|
|
|
5
6
|
export type ApiPhotoLocationProperties = {
|
|
6
7
|
id: number,
|
|
@@ -8,7 +9,7 @@ export type ApiPhotoLocationProperties = {
|
|
|
8
9
|
orientation: ApiQuaternion
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export type
|
|
12
|
+
export type ApiPhotoLocation3dArgument = {
|
|
12
13
|
id: number,
|
|
13
14
|
position: Vector3Like,
|
|
14
15
|
orientation: Vector4Like
|
|
@@ -18,11 +19,13 @@ export class ApiPhotoLocation3d {
|
|
|
18
19
|
readonly id: number;
|
|
19
20
|
position: Vector3Like;
|
|
20
21
|
orientation: ApiQuaternion;
|
|
22
|
+
|
|
21
23
|
constructor({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
id,
|
|
25
|
+
position,
|
|
26
|
+
orientation
|
|
27
|
+
}: ApiPhotoLocation3dArgument)
|
|
28
|
+
{
|
|
26
29
|
addReadOnlyPropertiesToModel(this, { id });
|
|
27
30
|
this.position = position;
|
|
28
31
|
this.orientation = ApiQuaternion.create(orientation);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
2
|
-
import { DateLike, ModifyPartial } from "./type_aliases";
|
|
3
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
2
|
+
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
|
+
|
|
4
|
+
import type { DateLike, ModifyPartial } from "./type_aliases";
|
|
4
5
|
|
|
5
|
-
export type
|
|
6
|
+
export type ApiPhotoSessionArgument = ModifyPartial<ApiPhotoSession, {
|
|
6
7
|
sessionDate?: DateLike,
|
|
7
8
|
deletedAt?: DateLike
|
|
8
|
-
externalId?: string
|
|
9
9
|
}>
|
|
10
10
|
|
|
11
11
|
export class ApiPhotoSession {
|
|
12
|
-
constructor({ id, photoAreaId, sessionDate, deletedAt, externalId }:
|
|
12
|
+
constructor({ id, photoAreaId, sessionDate, deletedAt, externalId }: ApiPhotoSessionArgument = {}) {
|
|
13
13
|
addReadOnlyPropertiesToModel(this, { id, photoAreaId });
|
|
14
14
|
addInstantGetterAndSetterToApiModel(this, "sessionDate", sessionDate);
|
|
15
15
|
addInstantGetterAndSetterToApiModel(this, "deletedAt", deletedAt);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { DateLike, ModifyPartial } from "./type_aliases";
|
|
2
|
-
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
4
|
-
import
|
|
2
|
+
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
|
+
|
|
4
|
+
import type { DateLike, ModifyPartial } from "./type_aliases";
|
|
5
|
+
import type { PipelineName, RunningProcessStatus } from "../enums";
|
|
5
6
|
|
|
6
|
-
export
|
|
7
|
+
export type ApiPipelineArgument = ModifyPartial<ApiPipeline, {
|
|
7
8
|
startTime?: DateLike
|
|
8
9
|
endTime?: DateLike
|
|
9
|
-
}>
|
|
10
|
+
}>
|
|
10
11
|
|
|
11
12
|
export class ApiPipeline {
|
|
12
13
|
constructor({
|
|
@@ -22,7 +23,8 @@ export class ApiPipeline {
|
|
|
22
23
|
firebaseScanDatasetId,
|
|
23
24
|
options,
|
|
24
25
|
status
|
|
25
|
-
}: ApiPipelineArgument = {})
|
|
26
|
+
}: ApiPipelineArgument = {})
|
|
27
|
+
{
|
|
26
28
|
addReadOnlyPropertiesToModel(this, { id });
|
|
27
29
|
addInstantGetterAndSetterToApiModel(this, "startTime");
|
|
28
30
|
addInstantGetterAndSetterToApiModel(this, "endTime");
|
|
@@ -58,4 +60,4 @@ export class ApiPipeline {
|
|
|
58
60
|
status: RunningProcessStatus;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
export default ApiPipeline;
|
|
63
|
+
export default ApiPipeline;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { UniformatId } from "uniformat";
|
|
2
|
-
import ApiElementDeviation from "./api_element_deviation";
|
|
3
1
|
import { addInstantGetterAndSetterToApiModel } from "../../mixins";
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
import type ApiElementDeviation from "./api_element_deviation";
|
|
4
|
+
import type { DateLike, ModifyPartial } from "type_aliases";
|
|
5
|
+
import type { UniformatId } from "uniformat";
|
|
5
6
|
|
|
6
7
|
type ApiPlannedElementArgument = ModifyPartial<ApiPlannedElement, { builtAt: DateLike, fixedAt: DateLike }>
|
|
7
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniformatId } from "uniformat";
|
|
1
|
+
import type { UniformatId } from "uniformat";
|
|
2
2
|
|
|
3
3
|
export class ApiProgressCategory {
|
|
4
4
|
uniformatId: UniformatId;
|
|
@@ -8,4 +8,4 @@ export class ApiProgressCategory {
|
|
|
8
8
|
subCategories?: ApiProgressCategory[];
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export default ApiProgressCategory;
|
|
11
|
+
export default ApiProgressCategory;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ApiProgressCategory from "./api_progress_category";
|
|
1
|
+
import type ApiProgressCategory from "./api_progress_category";
|
|
2
2
|
|
|
3
3
|
export class ApiProgressScanDataset {
|
|
4
4
|
id: number;
|
|
@@ -7,4 +7,4 @@ export class ApiProgressScanDataset {
|
|
|
7
7
|
progressCategories: ApiProgressCategory[];
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export default ApiProgressScanDataset;
|
|
10
|
+
export default ApiProgressScanDataset;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
2
2
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
|
-
import
|
|
3
|
+
import ApiProjectReport, { ApiProjectReportArgument } from "./api_project_report";
|
|
4
4
|
import SystemOfMeasurement, { IMPERIAL } from "../enums/system_of_measurement";
|
|
5
|
-
import { DateLike, Modify } from "./type_aliases";
|
|
6
|
-
import ApiProjectReport from "./api_project_report";
|
|
7
|
-
import {ApiTeamMember} from "./api_team_member";
|
|
8
|
-
import { ApiProjectSettings } from "./api_project_settings";
|
|
9
|
-
import {ApiMasterformatProgress} from "./api_masterformat_progress";
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import type ApiProjectCostAnalysisProgress from "./api_project_cost_analysis_progress";
|
|
7
|
+
import type ApiTeamMember from "./api_team_member";
|
|
8
|
+
import type ApiMasterformatProgress from "./api_masterformat_progress";
|
|
9
|
+
import type ApiProjectSettings from "./api_project_settings";
|
|
10
|
+
import type { DateLike, ModifyPartial } from "./type_aliases";
|
|
11
|
+
|
|
12
|
+
export type ApiProjectArgument = ModifyPartial<ApiProject, {
|
|
13
|
+
archivedAt: DateLike
|
|
14
|
+
startDate: DateLike
|
|
15
|
+
endDate: DateLike
|
|
16
|
+
projectReports: ApiProjectReportArgument[]
|
|
17
|
+
}>
|
|
16
18
|
|
|
17
19
|
export class ApiProject {
|
|
18
20
|
constructor({
|
|
@@ -48,10 +50,11 @@ export class ApiProject {
|
|
|
48
50
|
settings,
|
|
49
51
|
baselineScheduleDate,
|
|
50
52
|
currentScheduleDate
|
|
51
|
-
}: ApiProjectArgument = {})
|
|
52
|
-
|
|
53
|
-
addInstantGetterAndSetterToApiModel(this, "
|
|
54
|
-
addInstantGetterAndSetterToApiModel(this, "
|
|
53
|
+
}: ApiProjectArgument = {})
|
|
54
|
+
{
|
|
55
|
+
addInstantGetterAndSetterToApiModel(this, "startDate", startDate);
|
|
56
|
+
addInstantGetterAndSetterToApiModel(this, "endDate", endDate);
|
|
57
|
+
addInstantGetterAndSetterToApiModel(this, "archivedAt", archivedAt);
|
|
55
58
|
|
|
56
59
|
addReadOnlyPropertiesToModel(this, { firebaseId, clientAccountId, id });
|
|
57
60
|
|
|
@@ -73,15 +76,9 @@ export class ApiProject {
|
|
|
73
76
|
this.baselineProjectMasterformatProgresses = baselineProjectMasterformatProgresses || [];
|
|
74
77
|
this.currentProjectMasterformatProgresses = currentProjectMasterformatProgresses || [];
|
|
75
78
|
this.costAnalysisProgresses = costAnalysisProgresses || [];
|
|
76
|
-
this.projectReports = projectReports || [];
|
|
79
|
+
this.projectReports = projectReports?.map(report => new ApiProjectReport(report)) || [];
|
|
77
80
|
|
|
78
81
|
this.systemOfMeasurement = systemOfMeasurement || IMPERIAL;
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
this.endDate = endDate || null;
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
this.startDate = startDate || null;
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
this.archivedAt = archivedAt || null;
|
|
85
82
|
this.generateMasterformatProgressEnabled = generateMasterformatProgressEnabled;
|
|
86
83
|
this.integrationProjectId = integrationProjectId;
|
|
87
84
|
this.teamMembers = teamMembers;
|
|
@@ -94,11 +91,11 @@ export class ApiProject {
|
|
|
94
91
|
readonly firebaseId: string;
|
|
95
92
|
readonly clientAccountId: string;
|
|
96
93
|
name: string;
|
|
97
|
-
scannedProjectMasterformatProgresses:
|
|
98
|
-
baselineProjectMasterformatProgresses:
|
|
99
|
-
currentProjectMasterformatProgresses:
|
|
100
|
-
costAnalysisProgresses:
|
|
101
|
-
projectReports:
|
|
94
|
+
scannedProjectMasterformatProgresses: ApiMasterformatProgress[];
|
|
95
|
+
baselineProjectMasterformatProgresses: ApiMasterformatProgress[];
|
|
96
|
+
currentProjectMasterformatProgresses: ApiMasterformatProgress[];
|
|
97
|
+
costAnalysisProgresses: ApiProjectCostAnalysisProgress[];
|
|
98
|
+
projectReports: ApiProjectReport[];
|
|
102
99
|
defaultFirebaseFloorId: string | null = null;
|
|
103
100
|
firebaseFloorIds: string[] = [];
|
|
104
101
|
addressLine1: string | null = null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import ApiProjectAreaWorkPackage from "./api_project_area_work_package";
|
|
2
1
|
import { addReadOnlyPropertiesToModel } from "../../mixins";
|
|
3
2
|
import { ApiProjectAreaProgress } from "./api_project_summary";
|
|
4
3
|
|
|
4
|
+
import type ApiProjectAreaWorkPackage from "./api_project_area_work_package";
|
|
5
|
+
|
|
5
6
|
export class ApiProjectArea {
|
|
6
7
|
readonly id: number;
|
|
7
8
|
readonly modelElementId: number;
|
|
@@ -12,7 +12,18 @@ export class ApiProjectAreaWorkPackage {
|
|
|
12
12
|
completion: string;
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
constructor({
|
|
15
|
+
constructor({
|
|
16
|
+
id,
|
|
17
|
+
projectAreaId,
|
|
18
|
+
projectWorkPackageId,
|
|
19
|
+
workPackageId,
|
|
20
|
+
status,
|
|
21
|
+
expectedStart,
|
|
22
|
+
expectedCompletion,
|
|
23
|
+
start,
|
|
24
|
+
completion
|
|
25
|
+
}: Partial<ApiProjectAreaWorkPackage>)
|
|
26
|
+
{
|
|
16
27
|
addReadOnlyPropertiesToModel(this, { id, projectAreaId, projectWorkPackageId, workPackageId });
|
|
17
28
|
this.status = status;
|
|
18
29
|
this.expectedStart = expectedStart;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
2
2
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import type { DateLike, Modify } from "./type_aliases";
|
|
4
5
|
|
|
5
6
|
export type ApiProjectCostAnalysisProgressArgument = Partial<Modify<ApiProjectCostAnalysisProgress, {
|
|
6
7
|
analysisDate?: DateLike
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import ApiProjectReportVersion from "./api_project_report_version";
|
|
1
|
+
import ApiProjectReportVersion, { ApiProjectReportVersionArgument } from "./api_project_report_version";
|
|
2
|
+
|
|
3
|
+
import type { ModifyPartial } from "type_aliases";
|
|
4
|
+
|
|
5
|
+
export type ApiProjectReportArgument = ModifyPartial<ApiProjectReport, {
|
|
6
|
+
reportVersions: ApiProjectReportVersionArgument[];
|
|
7
|
+
}>
|
|
2
8
|
|
|
3
9
|
export class ApiProjectReport {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
constructor({ id, type, name, url, subcontractorId, reportVersions }: ApiProjectReportArgument = {}) {
|
|
11
|
+
this.id = id;
|
|
12
|
+
this.type = type;
|
|
13
|
+
this.name = name;
|
|
14
|
+
this.url = url;
|
|
15
|
+
this.reportVersions = reportVersions?.map(version => new ApiProjectReportVersion(version)) || [];
|
|
16
|
+
this.subcontractorId = subcontractorId;
|
|
17
|
+
}
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
id: number;
|
|
20
|
+
type: string;
|
|
21
|
+
name: string;
|
|
22
|
+
url: string;
|
|
23
|
+
reportVersions: ApiProjectReportVersion[];
|
|
24
|
+
subcontractorId: number;
|
|
19
25
|
}
|
|
20
26
|
|
|
21
|
-
export default ApiProjectReport;
|
|
27
|
+
export default ApiProjectReport;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import addDateGetterAndSetterToDomainModel from "../../mixins/add_date_getter_and_setter_to_domain_model";
|
|
2
2
|
|
|
3
|
+
import type { DateLike, ModifyPartial } from "type_aliases";
|
|
4
|
+
|
|
5
|
+
export type ApiProjectReportVersionArgument = ModifyPartial<ApiProjectReportVersion, {
|
|
6
|
+
reportDate: DateLike
|
|
7
|
+
}>
|
|
8
|
+
|
|
3
9
|
export class ApiProjectReportVersion {
|
|
4
|
-
|
|
5
|
-
|
|
10
|
+
constructor({ id, projectReportId, reportDate, note, url }: ApiProjectReportVersionArgument = {}) {
|
|
11
|
+
addDateGetterAndSetterToDomainModel(this, "reportDate", reportDate);
|
|
6
12
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
this.reportDate = reportDate || null;
|
|
13
|
-
}
|
|
13
|
+
this.id = id;
|
|
14
|
+
this.projectReportId = projectReportId;
|
|
15
|
+
this.note = note;
|
|
16
|
+
this.url = url;
|
|
17
|
+
}
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
id: number;
|
|
20
|
+
projectReportId: number;
|
|
21
|
+
reportDate: Date;
|
|
22
|
+
note: string;
|
|
23
|
+
url: string;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
export default ApiProjectReportVersion;
|
|
@@ -2,7 +2,7 @@ import ApiCloudFile, { ApiCloudFileArgument } from "./api_cloud_file";
|
|
|
2
2
|
|
|
3
3
|
import type { ModifyPartial } from "type_aliases";
|
|
4
4
|
|
|
5
|
-
export type
|
|
5
|
+
export type ApiProjectSummaryArgument = ModifyPartial<ApiProjectSummary, {
|
|
6
6
|
model: ApiCloudFileArgument
|
|
7
7
|
}>
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ export class ApiProjectSummary {
|
|
|
10
10
|
readonly model: ApiCloudFile;
|
|
11
11
|
projectAreaIds: number[];
|
|
12
12
|
|
|
13
|
-
constructor({ model, projectAreaIds }:
|
|
13
|
+
constructor({ model, projectAreaIds }: ApiProjectSummaryArgument = {}) {
|
|
14
14
|
this.model = new ApiCloudFile(model);
|
|
15
15
|
this.projectAreaIds = projectAreaIds || [];
|
|
16
16
|
}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import { ProjectWorkPackageType } from "../enums";
|
|
1
|
+
import type { ProjectWorkPackageType } from "../enums";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use {@link ApiWorkPackage} instead.
|
|
5
|
+
*/
|
|
3
6
|
export class ApiProjectWorkPackage {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
id?: number;
|
|
8
|
+
name: string;
|
|
9
|
+
ordinal: number;
|
|
10
|
+
type?: ProjectWorkPackageType;
|
|
11
|
+
masterformatCodes?: string[];
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
constructor({ id, name, ordinal, type, masterformatCodes }: Partial<ApiProjectWorkPackage> = {}) {
|
|
14
|
+
this.id = id;
|
|
15
|
+
this.name = name;
|
|
16
|
+
this.ordinal = ordinal;
|
|
17
|
+
this.type = type;
|
|
18
|
+
this.masterformatCodes = masterformatCodes;
|
|
19
|
+
}
|
|
17
20
|
}
|
|
21
|
+
|
|
22
|
+
export default ApiProjectWorkPackage;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
2
2
|
|
|
3
|
-
export class ApiProjectWorkPackageCost{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
export class ApiProjectWorkPackageCost {
|
|
4
|
+
constructor({ id, name, captured, planned, modeled }: Partial<ApiProjectWorkPackageCost> = {}) {
|
|
5
|
+
addReadOnlyPropertiesToModel(this, { id });
|
|
6
|
+
this.name = name;
|
|
7
|
+
this.captured = captured;
|
|
8
|
+
this.planned = planned;
|
|
9
|
+
this.modeled = modeled;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
readonly id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
captured: number;
|
|
15
|
+
planned: number;
|
|
16
|
+
modeled: number;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
export default ApiProjectWorkPackageCost;
|
|
19
|
+
export default ApiProjectWorkPackageCost;
|