avvir 6.0.4 → 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 +452 -354
- package/dist/esm/api/index.d.ts +2 -1
- package/dist/esm/api/index.js +2 -1
- 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/scan_dataset_api.d.ts +2 -2
- package/dist/esm/api/scan_dataset_api.js.map +1 -1
- package/dist/esm/avvir_api.d.ts +3 -2
- package/dist/esm/avvir_api.js +3 -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 +3 -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 +3 -2
- package/dist/esm/models/api/api_work_package.js +2 -1
- package/dist/esm/models/api/api_work_package.js.map +1 -1
- 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 +2 -1
- package/dist/esm/models/api/trade/api_captured_trade_cost.js +2 -1
- package/dist/esm/models/api/trade/api_captured_trade_cost.js.map +1 -1
- package/dist/esm/models/api/trade/api_planned_trade_cost.d.ts +2 -1
- package/dist/esm/models/api/trade/api_planned_trade_cost.js +2 -1
- package/dist/esm/models/api/trade/api_planned_trade_cost.js.map +1 -1
- package/dist/esm/models/api/trade/api_trade.d.ts +2 -1
- package/dist/esm/models/api/trade/api_trade.js +2 -1
- package/dist/esm/models/api/trade/api_trade.js.map +1 -1
- package/dist/esm/models/api/trade/api_trade_cost.d.ts +2 -1
- package/dist/esm/models/api/trade/api_trade_cost.js +2 -1
- package/dist/esm/models/api/trade/api_trade_cost.js.map +1 -1
- 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 +2 -0
- package/source/api/photo_area_api.ts +11 -8
- package/source/api/project_api.ts +3 -5
- package/source/api/scan_dataset_api.ts +3 -3
- package/source/avvir_api.ts +3 -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 +6 -3
- 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 +3 -1
- package/source/models/api/trade/api_planned_trade_cost.ts +3 -1
- package/source/models/api/trade/api_trade.ts +3 -1
- package/source/models/api/trade/api_trade_cost.ts +3 -1
- 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
package/dist/esm/models/{api/ApiFloorFileDeletionMode.js → enums/api_floor_file_deletion_mode.js}
RENAMED
|
@@ -3,4 +3,7 @@ export var ApiFloorFileDeletionMode;
|
|
|
3
3
|
ApiFloorFileDeletionMode["ALL_FILES"] = "ALL_FILES";
|
|
4
4
|
ApiFloorFileDeletionMode["FLOOR_ONLY"] = "FLOOR_ONLY";
|
|
5
5
|
})(ApiFloorFileDeletionMode || (ApiFloorFileDeletionMode = {}));
|
|
6
|
-
|
|
6
|
+
export const ALL_FILES = ApiFloorFileDeletionMode.ALL_FILES;
|
|
7
|
+
export const FLOOR_ONLY = ApiFloorFileDeletionMode.FLOOR_ONLY;
|
|
8
|
+
export default ApiFloorFileDeletionMode;
|
|
9
|
+
//# sourceMappingURL=api_floor_file_deletion_mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_floor_file_deletion_mode.js","sourceRoot":"","sources":["../../../../source/models/enums/api_floor_file_deletion_mode.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,mDAAuB,CAAA;IACvB,qDAAyB,CAAA;AAC3B,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,wBAAwB,CAAC,SAAS,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,CAAC,UAAU,CAAC;AAE9D,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
export * from "./api_built_status";
|
|
2
|
+
export * from "./api_floor_file_deletion_mode";
|
|
3
|
+
export * from "./api_integration_credentials_type";
|
|
4
|
+
export * from "./association_type";
|
|
1
5
|
export * from "./deviation_status";
|
|
2
|
-
export * from "./inspection_modes";
|
|
3
6
|
export * from "./event_type";
|
|
7
|
+
export * from "./inspection_modes";
|
|
4
8
|
export * from "./notification_level";
|
|
5
9
|
export * from "./photo_projection_type";
|
|
6
10
|
export * from "./photo_rotation_type";
|
|
7
11
|
export * from "./pipeline_types";
|
|
8
12
|
export * from "./process_status";
|
|
13
|
+
export * from "./progress_type";
|
|
14
|
+
export * from "./project_work_package_type";
|
|
9
15
|
export * from "./running_process_status";
|
|
10
|
-
export * from "./api_built_status";
|
|
11
16
|
export * from "./system_of_measurement";
|
|
12
17
|
export * from "./uploader_status";
|
|
13
|
-
export * from "./user_auth_type";
|
|
14
|
-
export * from "./user_role";
|
|
15
18
|
export * from "./user_action_type";
|
|
16
|
-
export * from "./
|
|
19
|
+
export * from "./user_auth_type";
|
|
17
20
|
export * from "./user_permission_action";
|
|
18
21
|
export * from "./user_permission_type";
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./project_work_package_type";
|
|
21
|
-
export * from "./progress_type";
|
|
22
|
+
export * from "./user_role";
|
|
22
23
|
export { ProjectPurposeType, FloorPurposeType, ScanDatasetPurposeType, PhotoAreaPurposeType, ProjectTypeKeys, FloorTypeKeys, ScanDatasetTypeKeys, PhotoAreaTypeKeys, PurposeTypeKeys, PurposeType, isPurposeType, UploadHistoryPurposeTypes, PurposeTypeMap, uploadHistoryPurposeTypes, floorPurposeTypes } from "./purpose_type";
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
export * from "./api_built_status";
|
|
2
|
+
export * from "./api_floor_file_deletion_mode";
|
|
3
|
+
export * from "./api_integration_credentials_type";
|
|
4
|
+
export * from "./association_type";
|
|
1
5
|
export * from "./deviation_status";
|
|
2
|
-
export * from "./inspection_modes";
|
|
3
6
|
export * from "./event_type";
|
|
7
|
+
export * from "./inspection_modes";
|
|
4
8
|
export * from "./notification_level";
|
|
5
9
|
export * from "./photo_projection_type";
|
|
6
10
|
export * from "./photo_rotation_type";
|
|
7
11
|
export * from "./pipeline_types";
|
|
8
12
|
export * from "./process_status";
|
|
13
|
+
export * from "./progress_type";
|
|
14
|
+
export * from "./project_work_package_type";
|
|
9
15
|
export * from "./running_process_status";
|
|
10
|
-
export * from "./api_built_status";
|
|
11
16
|
export * from "./system_of_measurement";
|
|
12
17
|
export * from "./uploader_status";
|
|
13
|
-
export * from "./user_auth_type";
|
|
14
|
-
export * from "./user_role";
|
|
15
18
|
export * from "./user_action_type";
|
|
16
|
-
export * from "./
|
|
19
|
+
export * from "./user_auth_type";
|
|
17
20
|
export * from "./user_permission_action";
|
|
18
21
|
export * from "./user_permission_type";
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./project_work_package_type";
|
|
21
|
-
export * from "./progress_type";
|
|
22
|
+
export * from "./user_role";
|
|
22
23
|
export { ProjectPurposeType, FloorPurposeType, ScanDatasetPurposeType, PhotoAreaPurposeType, isPurposeType, PurposeTypeMap, uploadHistoryPurposeTypes, floorPurposeTypes } from "./purpose_type";
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/models/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/models/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAE5B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EAOpB,aAAa,EAEb,cAAc,EACd,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC"}
|
package/package.json
CHANGED
package/source/api/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import TradeApi from "./trade_api";
|
|
|
17
17
|
import UserApi from "./user_api";
|
|
18
18
|
import WebGatewayApi from "./web_gateway_api";
|
|
19
19
|
import WebRpcApi from "./web_rpc_api";
|
|
20
|
+
import WorkPackageApi from "./work_package_api";
|
|
20
21
|
|
|
21
22
|
export {
|
|
22
23
|
AuthApi,
|
|
@@ -38,4 +39,5 @@ export {
|
|
|
38
39
|
UserApi,
|
|
39
40
|
WebGatewayApi,
|
|
40
41
|
WebRpcApi,
|
|
42
|
+
WorkPackageApi
|
|
41
43
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {isArray} from "underscore";
|
|
2
|
-
import {ApiPhotoArea, ApiPhotoLocation,
|
|
3
|
-
import {User} from "../utilities/get_authorization_headers";
|
|
1
|
+
import { isArray } from "underscore";
|
|
2
|
+
import { ApiPhotoArea, ApiPhotoLocation, ApiPhotoLocation3d, ApiPhotoSession, AssociationIds } from "../models";
|
|
3
|
+
import { User } from "../utilities/get_authorization_headers";
|
|
4
4
|
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
5
5
|
import Http from "../utilities/http";
|
|
6
6
|
|
|
7
7
|
export default class PhotoAreaApi {
|
|
8
8
|
|
|
9
|
-
static createPhotoLocations({ projectId, photoAreaId, photoSessionId}: AssociationIds,
|
|
9
|
+
static createPhotoLocations({ projectId, photoAreaId, photoSessionId }: AssociationIds,
|
|
10
10
|
locations: ApiPhotoLocation[],
|
|
11
11
|
user: User): Promise<ApiPhotoLocation[]> {
|
|
12
12
|
let url = `${Http.baseUrl()}/projects/${projectId}/photo-areas/${photoAreaId}/locations`;
|
|
13
13
|
if (photoSessionId) {
|
|
14
|
-
url += `?photoSessionId=${photoSessionId}
|
|
14
|
+
url += `?photoSessionId=${photoSessionId}`;
|
|
15
15
|
}
|
|
16
16
|
return Http.post(url, user, locations) as unknown as Promise<ApiPhotoLocation[]>;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
static listPhotoAreasForProject({ projectId, integrationProjectId }: AssociationIds,
|
|
19
|
+
static listPhotoAreasForProject({ projectId, integrationProjectId }: AssociationIds,
|
|
20
|
+
user: User): Promise<ApiPhotoArea[]> {
|
|
20
21
|
let url = `${Http.baseUrl()}/projects/${projectId}/photo-areas`;
|
|
21
22
|
if (integrationProjectId != null) {
|
|
22
23
|
url += `?integrationProjectId=${integrationProjectId}`;
|
|
@@ -24,7 +25,8 @@ export default class PhotoAreaApi {
|
|
|
24
25
|
return Http.get(url, user) as unknown as Promise<ApiPhotoArea[]>;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
static listPhotoLocations({ projectId, photoAreaId, photoSessionId }: AssociationIds,
|
|
28
|
+
static listPhotoLocations({ projectId, photoAreaId, photoSessionId }: AssociationIds,
|
|
29
|
+
user: User): Promise<ApiPhotoLocation[]> {
|
|
28
30
|
let url = `${Http.baseUrl()}/projects/${projectId}/photo-areas/${photoAreaId}/locations`;
|
|
29
31
|
if (photoSessionId) {
|
|
30
32
|
if (isArray(photoSessionId)) {
|
|
@@ -36,7 +38,8 @@ export default class PhotoAreaApi {
|
|
|
36
38
|
return Http.get(url, user) as unknown as Promise<ApiPhotoLocation[]>;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
static listPhotoSessionsForPhotoArea({ projectId, photoAreaId }: AssociationIds,
|
|
41
|
+
static listPhotoSessionsForPhotoArea({ projectId, photoAreaId }: AssociationIds,
|
|
42
|
+
user: User): Promise<ApiPhotoSession[]> {
|
|
40
43
|
let url = `${Http.baseUrl()}/projects/${projectId}/photo-areas/${photoAreaId}/sessions`;
|
|
41
44
|
return Http.get(url, user) as unknown as Promise<ApiPhotoSession[]>;
|
|
42
45
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import getAuthorizationHeaders, { User } from "../utilities/get_authorization_headers";
|
|
2
2
|
import Http from "../utilities/http";
|
|
3
3
|
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
4
|
-
|
|
5
|
-
import { ApiCloudFile, ApiMasterformatProgress, ApiProject, ApiProjectCostAnalysisProgress, ApiProjectCostAnalysisProgressValidationResult, ApiProjectListing, ApiProjectWorkPackage, ApiRunningProcess, AssociationIds, ProgressType, ProjectWorkPackageType } from "../models";
|
|
6
|
-
import { DateLike } from "type_aliases";
|
|
7
4
|
import { DateConverter } from "../converters";
|
|
8
|
-
|
|
9
|
-
import ApiProjectWorkPackageCost from "../models
|
|
5
|
+
|
|
6
|
+
import type { ApiClassificationCode, ApiCloudFile, ApiMasterformatProgress, ApiProject, ApiProjectCostAnalysisProgress, ApiProjectCostAnalysisProgressValidationResult, ApiProjectListing, ApiProjectWorkPackage, ApiProjectWorkPackageCost, ApiRunningProcess, AssociationIds, ProgressType, ProjectWorkPackageType } from "../models";
|
|
7
|
+
import type { DateLike } from "type_aliases";
|
|
10
8
|
|
|
11
9
|
export default class ProjectApi {
|
|
12
10
|
static listProjectsForOrganization(organizationId: string, user: User): Promise<ApiProject[]> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ApiView, {
|
|
1
|
+
import ApiView, { ApiViewArgument } from "../models/api/api_view";
|
|
2
2
|
import Http from "../utilities/http";
|
|
3
3
|
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
4
4
|
import { ApiBuiltStatus, ApiDetailedElement, ApiPhotoSession, ApiScanDataset, ApiScanDatasetQaState, ApiScannedElementType, AssociationIds, DateLike } from "../models";
|
|
@@ -124,9 +124,9 @@ export default class ScanDatasetApi {
|
|
|
124
124
|
projectId,
|
|
125
125
|
floorId,
|
|
126
126
|
scanDatasetId
|
|
127
|
-
}: AssociationIds, user: User): Promise<
|
|
127
|
+
}: AssociationIds, user: User): Promise<ApiViewArgument[]> {
|
|
128
128
|
const url = `${Http.baseUrl()}/projects/${projectId}/floors/${floorId}/scan-datasets/${scanDatasetId}/views`;
|
|
129
|
-
return Http.get(url, user) as unknown as Promise<
|
|
129
|
+
return Http.get(url, user) as unknown as Promise<ApiViewArgument[]>;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
static getNewElementsForScanDataset({ projectId, floorId, scanDatasetId }: AssociationIds,
|
package/source/avvir_api.ts
CHANGED
|
@@ -19,7 +19,8 @@ export default {
|
|
|
19
19
|
reports: Api.ReportApi,
|
|
20
20
|
scanDatasets: Api.ScanDatasetApi,
|
|
21
21
|
trades: Api.TradeApi,
|
|
22
|
-
other: Api.WebGatewayApi,
|
|
23
|
-
webRpcApi: Api.WebRpcApi,
|
|
24
22
|
user: Api.UserApi,
|
|
23
|
+
webRpcApi: Api.WebRpcApi,
|
|
24
|
+
workPackages: Api.WorkPackageApi,
|
|
25
|
+
other: Api.WebGatewayApi,
|
|
25
26
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import _ from "underscore";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import ApiFloorFileDeletionMode from "../models/enums/api_floor_file_deletion_mode";
|
|
3
4
|
|
|
4
5
|
const apiFloorFileDeletionModes = _.invert(ApiFloorFileDeletionMode);
|
|
5
6
|
|
|
6
7
|
type ApiFloorFileDeletionModeKeys = keyof typeof ApiFloorFileDeletionMode;
|
|
7
8
|
const apiFloorFileDeletionModeTypeKeys: ApiFloorFileDeletionModeKeys[] = Object.values(ApiFloorFileDeletionMode);
|
|
8
9
|
|
|
9
|
-
const isApiFloorFileDeletionMode = (type: any): type is ApiFloorFileDeletionMode => apiFloorFileDeletionModeTypeKeys.includes(
|
|
10
|
+
const isApiFloorFileDeletionMode = (type: any): type is ApiFloorFileDeletionMode => apiFloorFileDeletionModeTypeKeys.includes(
|
|
11
|
+
type);
|
|
10
12
|
|
|
11
13
|
export class FloorFileDeletionModeConverter {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
return apiFloorFileDeletionModes[fileKey];
|
|
14
|
+
static toApiFloorFileDeletionMode(fileKey: ApiFloorFileDeletionMode): ApiFloorFileDeletionMode {
|
|
15
|
+
if (isApiFloorFileDeletionMode(fileKey)) {
|
|
16
|
+
return fileKey;
|
|
17
17
|
}
|
|
18
|
+
return apiFloorFileDeletionModes[fileKey];
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export default FloorFileDeletionModeConverter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Vector3Like} from "./type_aliases";
|
|
1
|
+
import type { Vector3Like } from "./type_aliases";
|
|
2
2
|
|
|
3
3
|
export type ApiBehavioralData = {
|
|
4
4
|
deviation?: Vector3Like
|
|
@@ -15,7 +15,8 @@ export class ApiActionPayload {
|
|
|
15
15
|
photoSessionId: number,
|
|
16
16
|
photoLocationId: number,
|
|
17
17
|
scannedBuildingElementId: number,
|
|
18
|
-
behavioralData: ApiBehavioralData)
|
|
18
|
+
behavioralData: ApiBehavioralData)
|
|
19
|
+
{
|
|
19
20
|
this.globalId = globalId;
|
|
20
21
|
this.firebaseClientAccountId = firebaseClientAccountId;
|
|
21
22
|
this.firebaseProjectId = firebaseProjectId;
|
|
@@ -38,5 +39,6 @@ export class ApiActionPayload {
|
|
|
38
39
|
photoLocationId?: number;
|
|
39
40
|
scannedBuildingElementId?: number;
|
|
40
41
|
behavioralData?: ApiBehavioralData;
|
|
41
|
-
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
export default ApiActionPayload;
|
|
@@ -10,7 +10,17 @@ export type ArgoMetadata = {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export class ApiArgoResponse {
|
|
13
|
-
constructor({
|
|
13
|
+
constructor({
|
|
14
|
+
name,
|
|
15
|
+
generateName,
|
|
16
|
+
namespace,
|
|
17
|
+
selfLink,
|
|
18
|
+
uid,
|
|
19
|
+
resourceVersion,
|
|
20
|
+
generation,
|
|
21
|
+
creationTimestamp
|
|
22
|
+
}: Partial<ArgoMetadata> = {})
|
|
23
|
+
{
|
|
14
24
|
this.metadata = {
|
|
15
25
|
name,
|
|
16
26
|
generateName,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ApiBcfIssue } from "./api_bcf_issue";
|
|
2
|
+
import type { ApiDetailedElement } from "./api_detailed_element";
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type ApiBcfBuildingElementArgument = Partial<ApiBcfBuildingElement>;
|
|
5
5
|
|
|
6
6
|
export class ApiBcfBuildingElement {
|
|
7
|
-
constructor({bcfIssue, detailedElement}:
|
|
7
|
+
constructor({ bcfIssue, detailedElement }: ApiBcfBuildingElementArgument = {}) {
|
|
8
8
|
this.detailedElement = detailedElement;
|
|
9
9
|
this.bcfIssue = bcfIssue;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ApiBcfIssueArgument = Partial<ApiBcfIssue>;
|
|
2
2
|
|
|
3
3
|
export class ApiBcfIssue {
|
|
4
|
-
constructor({plannedBuildingElementId, commentGuid, viewpointGuid, topicGuid}:
|
|
4
|
+
constructor({plannedBuildingElementId, commentGuid, viewpointGuid, topicGuid}: ApiBcfIssueArgument = {}) {
|
|
5
5
|
this.plannedBuildingElementId = plannedBuildingElementId;
|
|
6
6
|
this.commentGuid = commentGuid;
|
|
7
7
|
this.topicGuid = topicGuid;
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { DateLike, Modify } from "./type_aliases";
|
|
2
1
|
import { addInstantGetterAndSetterToApiModel, addReadOnlyPropertiesToModel } from "../../mixins";
|
|
3
2
|
import { ApiProjectPurposeType, ApiPurposeType, isApiPurposeType } from "./api_purpose_type";
|
|
4
|
-
import { PurposeTypeConverter } from "../../converters";
|
|
5
3
|
import { AssociationType, isPurposeType, PurposeType } from "../enums";
|
|
6
|
-
import
|
|
4
|
+
import { PurposeTypeConverter } from "../../converters";
|
|
5
|
+
|
|
6
|
+
import type ApiPhotoLocation3d from "./api_photo_location_3d";
|
|
7
|
+
import type { DateLike, ModifyPartial, Vector2Like } from "type_aliases";
|
|
7
8
|
|
|
8
9
|
export type AvvirApiFiles<Type extends ApiPurposeType = ApiPurposeType> = { [purposeType in Type]?: ApiCloudFile | ApiCloudFile[] }
|
|
9
10
|
export type AvvirApiFileIds<Type extends ApiPurposeType = ApiPurposeType> = { [purposeType in Type]?: number[] }
|
|
10
11
|
|
|
11
12
|
export interface ApiCloudFileMetadata {
|
|
12
|
-
offset?:
|
|
13
|
+
offset?: Vector2Like;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export
|
|
16
|
+
export type ApiCloudFileArgument = ModifyPartial<ApiCloudFile, {
|
|
16
17
|
lastModified?: DateLike
|
|
17
18
|
createdAt?: DateLike
|
|
18
19
|
purposeType: ApiPurposeType | PurposeType,
|
|
19
|
-
|
|
20
|
-
}>>
|
|
21
|
-
{
|
|
22
|
-
}
|
|
20
|
+
}>
|
|
23
21
|
|
|
24
22
|
export class ApiCloudFile {
|
|
25
23
|
constructor({
|
|
@@ -11,7 +11,7 @@ export type ApiCloudFileLocationId = {
|
|
|
11
11
|
orientation: ApiQuaternion
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type ApiCloudFileLocation3dArgument = {
|
|
15
15
|
id: number,
|
|
16
16
|
position: Vector3Like,
|
|
17
17
|
orientation: Vector4Like
|
|
@@ -25,7 +25,7 @@ export class ApiCloudFileLocation3d {
|
|
|
25
25
|
id,
|
|
26
26
|
position,
|
|
27
27
|
orientation
|
|
28
|
-
}:
|
|
28
|
+
}: ApiCloudFileLocation3dArgument ) {
|
|
29
29
|
addReadOnlyPropertiesToModel(this, { id });
|
|
30
30
|
this.position = position;
|
|
31
31
|
this.orientation = ApiQuaternion.create(orientation);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {addReadOnlyPropertiesToModel} from "../../mixins";
|
|
2
|
-
|
|
1
|
+
import { addReadOnlyPropertiesToModel } from "../../mixins";
|
|
2
|
+
|
|
3
|
+
import type ApiGridLine from "./api_grid_line";
|
|
3
4
|
|
|
4
5
|
export class ApiConstructionGrid {
|
|
5
6
|
constructor({ id, globalId, axisULines, axisVLines, firebaseFloorId }: Partial<ApiConstructionGrid>) {
|
|
@@ -10,8 +11,8 @@ export class ApiConstructionGrid {
|
|
|
10
11
|
|
|
11
12
|
readonly id: number | null = null;
|
|
12
13
|
readonly globalId: string | null = null;
|
|
13
|
-
axisULines:
|
|
14
|
-
axisVLines:
|
|
14
|
+
axisULines: ApiGridLine[] = [];
|
|
15
|
+
axisVLines: ApiGridLine[] = [];
|
|
15
16
|
readonly firebaseFloorId: string | null = null;
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {ApiScannedElementTypeMap, isDeviationScanResult} from "./api_scanned_element";
|
|
5
|
-
import {addInstantGetterAndSetterToApiModel} from "../../mixins";
|
|
1
|
+
import ApiElementDeviation from "./api_element_deviation";
|
|
2
|
+
import ApiPlannedElement from "./api_planned_element";
|
|
3
|
+
import { addInstantGetterAndSetterToApiModel } from "../../mixins";
|
|
4
|
+
import { ApiScannedElementTypeMap, isDeviationScanResult } from "./api_scanned_element";
|
|
6
5
|
|
|
6
|
+
import type { ApiBuiltStatus } from "../enums";
|
|
7
|
+
|
|
8
|
+
/** @deprecated This information should now all live in the {@link ApiPlannedElement}. */
|
|
7
9
|
export class ApiDetailedElement<Label extends ApiBuiltStatus = ApiBuiltStatus> extends ApiPlannedElement {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
10
|
+
constructor(detailedElement: Partial<ApiDetailedElement<Label>> = {}) {
|
|
11
|
+
super(detailedElement);
|
|
12
|
+
addInstantGetterAndSetterToApiModel(this, "builtAt", detailedElement.builtAt);
|
|
13
|
+
addInstantGetterAndSetterToApiModel(this, "fixedAt", detailedElement.fixedAt);
|
|
14
|
+
this.scanResult = detailedElement.scanResult;
|
|
15
|
+
if (isDeviationScanResult(this.scanResult)) {
|
|
16
|
+
this.scanResult.deviation = { ...new ApiElementDeviation(this.scanResult.deviation) };
|
|
17
|
+
}
|
|
18
|
+
if (detailedElement.fixedDeviation) {
|
|
19
|
+
this.fixedDeviation = { ...new ApiElementDeviation(detailedElement.fixedDeviation) };
|
|
19
20
|
}
|
|
21
|
+
}
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
scanResult?: ApiScannedElementTypeMap[Label];
|
|
24
|
+
builtAt?: number;
|
|
25
|
+
fixedAt?: number;
|
|
26
|
+
fixedDeviation?: ApiElementDeviation;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
export default ApiDetailedElement;
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
import { Vector3 } from "three";
|
|
2
|
+
|
|
3
|
+
import { DeviationStatus } from "../enums";
|
|
4
|
+
|
|
5
|
+
import type { ModifyPartial, Vector3Like } from "type_aliases";
|
|
6
|
+
|
|
7
|
+
export type ApiElementDeviationArgument = ModifyPartial<ApiElementDeviation, {
|
|
8
|
+
deviationVectorMeters: Vector3Like
|
|
9
|
+
}>
|
|
4
10
|
|
|
5
11
|
export class ApiElementDeviation {
|
|
6
|
-
deviationVectorMeters:
|
|
12
|
+
deviationVectorMeters: Vector3;
|
|
7
13
|
deviationMeters: number;
|
|
8
14
|
status: DeviationStatus;
|
|
15
|
+
/** @deprecated This is now stored as obstructing/obstructed id pairs and will be ignored */
|
|
9
16
|
clashing: boolean;
|
|
10
17
|
|
|
11
|
-
constructor(deviation:
|
|
18
|
+
constructor(deviation: ApiElementDeviationArgument = {}) {
|
|
12
19
|
let deviationVector: Vector3;
|
|
13
20
|
if (deviation?.deviationVectorMeters) {
|
|
14
|
-
deviationVector = new Vector3(deviation.deviationVectorMeters.x,
|
|
21
|
+
deviationVector = new Vector3(deviation.deviationVectorMeters.x,
|
|
22
|
+
deviation.deviationVectorMeters.y,
|
|
23
|
+
deviation.deviationVectorMeters.z);
|
|
15
24
|
} else {
|
|
16
25
|
deviationVector = new Vector3();
|
|
17
26
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { Matrix3 } from "three";
|
|
2
|
+
|
|
1
3
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
2
4
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
|
-
import ApiConstructionGrid from "./api_construction_grid";
|
|
4
|
-
import {DateLike, Matrix3Like, Modify, Vector2Like} from "./type_aliases";
|
|
5
|
-
import ApiMatrix3 from "./api_matrix_3";
|
|
6
|
-
import {Matrix3} from "three";
|
|
7
5
|
import Matrix3Converter from "../../converters/matrix_3_converter";
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
import type ApiConstructionGrid from "./api_construction_grid";
|
|
8
|
+
import type ApiMatrix3 from "./api_matrix_3";
|
|
9
|
+
import type { DateLike, Matrix3Like, ModifyPartial, Vector2Like } from "type_aliases";
|
|
10
|
+
|
|
11
|
+
export type ApiFloorArgument = ModifyPartial<ApiFloor, {
|
|
10
12
|
scanDate?: DateLike,
|
|
11
13
|
photoAreaMinimapPixelToBimMinimapPixel?: Matrix3Like;
|
|
12
14
|
bimMinimapToWorld?: Matrix3Like;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
+
}>
|
|
15
16
|
|
|
16
17
|
export class ApiFloor {
|
|
17
18
|
constructor({
|
|
@@ -33,9 +34,10 @@ export class ApiFloor {
|
|
|
33
34
|
bimMinimapToWorld,
|
|
34
35
|
floorElevation,
|
|
35
36
|
globalOffsetYaw
|
|
36
|
-
}: ApiFloorArgument = {})
|
|
37
|
-
|
|
38
|
-
addReadOnlyPropertiesToModel(this, {id, firebaseId, firebaseProjectId});
|
|
37
|
+
}: ApiFloorArgument = {})
|
|
38
|
+
{
|
|
39
|
+
addReadOnlyPropertiesToModel(this, { id, firebaseId, firebaseProjectId });
|
|
40
|
+
addInstantGetterAndSetterToApiModel(this, "scanDate", scanDate);
|
|
39
41
|
let offsetVal: Vector2Like, photoMinimapToBimMinimapTransformVal: ApiMatrix3,
|
|
40
42
|
bimMinimapToWorldTransformVal: ApiMatrix3;
|
|
41
43
|
Object.defineProperties(this, {
|
|
@@ -45,7 +47,7 @@ export class ApiFloor {
|
|
|
45
47
|
},
|
|
46
48
|
set(val: Vector2Like) {
|
|
47
49
|
if (val) {
|
|
48
|
-
offsetVal = {x: val.x, y: val.y};
|
|
50
|
+
offsetVal = { x: val.x, y: val.y };
|
|
49
51
|
} else {
|
|
50
52
|
offsetVal = null;
|
|
51
53
|
}
|
|
@@ -137,7 +139,7 @@ export class ApiFloor {
|
|
|
137
139
|
/**
|
|
138
140
|
* An array of external identifiers of the capture datasets associated with this area.
|
|
139
141
|
*/
|
|
140
|
-
firebaseScanDatasetIds:
|
|
142
|
+
firebaseScanDatasetIds: string[];
|
|
141
143
|
|
|
142
144
|
constructionGrid: ApiConstructionGrid | null = null;
|
|
143
145
|
plannedElementCount: number | null = null;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {addInstantGetterAndSetterToApiModel} from "../../mixins";
|
|
1
|
+
import { addInstantGetterAndSetterToApiModel } from "../../mixins";
|
|
2
2
|
|
|
3
3
|
export class ApiGroup {
|
|
4
|
-
id: number
|
|
5
|
-
name: string
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
6
|
createdAt: number;
|
|
7
7
|
createdBy: number;
|
|
8
8
|
members: ApiGroupMember[];
|
|
9
9
|
floorId: string;
|
|
10
|
+
|
|
10
11
|
constructor({ id, name, createdAt, createdBy, members, floorId }: Partial<ApiGroup>) {
|
|
11
12
|
this.id = id;
|
|
12
13
|
this.name = name;
|
|
13
14
|
this.createdBy = createdBy;
|
|
14
15
|
this.members = members;
|
|
15
|
-
this.floorId = floorId
|
|
16
|
+
this.floorId = floorId;
|
|
16
17
|
addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
export class ApiGroupMember {
|
|
22
|
-
id: number
|
|
23
|
-
groupId: number
|
|
24
|
-
memberType: string
|
|
25
|
-
elementId: string
|
|
23
|
+
id: number;
|
|
24
|
+
groupId: number;
|
|
25
|
+
memberType: string;
|
|
26
|
+
elementId: string;
|
|
26
27
|
|
|
27
28
|
constructor({ id, groupId, memberType, elementId }: Partial<ApiGroupMember>) {
|
|
28
29
|
this.id = id;
|
|
@@ -31,4 +32,4 @@ export class ApiGroupMember {
|
|
|
31
32
|
this.memberType = memberType;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
}
|
|
35
|
+
}
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
import {addInstantGetterAndSetterToApiModel, addReadOnlyPropertiesToModel} from "../../mixins";
|
|
2
|
-
import {ApiInspectReportEntry} from "./api_inspect_report_entry";
|
|
3
|
-
|
|
1
|
+
import { addInstantGetterAndSetterToApiModel, addReadOnlyPropertiesToModel } from "../../mixins";
|
|
2
|
+
import { ApiInspectReportEntry, ApiInspectReportEntryArgument } from "./api_inspect_report_entry";
|
|
3
|
+
|
|
4
|
+
import type ApiUser from "./api_user";
|
|
5
|
+
import { DateLike, ModifyPartial } from "type_aliases";
|
|
6
|
+
|
|
7
|
+
export type ApiInspectReportArgument = ModifyPartial<ApiInspectReport, {
|
|
8
|
+
entries: ApiInspectReportEntryArgument[]
|
|
9
|
+
createdAt: DateLike
|
|
10
|
+
createdBy: Partial<ApiUser>
|
|
11
|
+
}>
|
|
4
12
|
|
|
5
13
|
export class ApiInspectReport {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
constructor({ id, firebaseProjectId, name, entries, createdBy, createdAt }: ApiInspectReportArgument) {
|
|
15
|
+
addReadOnlyPropertiesToModel(this, { id, firebaseProjectId, createdBy });
|
|
16
|
+
this.name = name;
|
|
17
|
+
this.entries = entries?.map(entry => new ApiInspectReportEntry(entry)) || [];
|
|
18
|
+
addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
readonly id: number;
|
|
22
|
+
readonly firebaseProjectId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
entries: ApiInspectReportEntry[];
|
|
25
|
+
createdAt?: number;
|
|
26
|
+
readonly createdBy?: ApiUser;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default ApiInspectReport;
|