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
|
@@ -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;
|
|
@@ -1,55 +1,53 @@
|
|
|
1
|
-
import { Modify } from "./type_aliases";
|
|
2
1
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
name?: string | null
|
|
6
|
-
isEnabled?: boolean | null
|
|
7
|
-
modeledCode?: string | null
|
|
8
|
-
steps?: ApiRecipeStep[] | null
|
|
9
|
-
}>> {
|
|
10
|
-
}
|
|
3
|
+
import type { ModifyPartial } from "type_aliases";
|
|
11
4
|
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
name: string
|
|
16
|
-
isEnabled: boolean
|
|
17
|
-
modeledCode?: string
|
|
18
|
-
steps?: ApiRecipeStep[]
|
|
5
|
+
export type ApiRecipeArgument = ModifyPartial<ApiRecipe, {
|
|
6
|
+
steps?: Partial<ApiRecipeStep>[] | null
|
|
7
|
+
}>
|
|
19
8
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
9
|
+
export class ApiRecipe {
|
|
10
|
+
readonly id: number;
|
|
11
|
+
readonly firebaseProjectId?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
isEnabled: boolean;
|
|
14
|
+
modeledCode?: string;
|
|
15
|
+
steps?: ApiRecipeStep[];
|
|
28
16
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
name
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
constructor({ id, firebaseProjectId, name, isEnabled, modeledCode, steps }: ApiRecipeArgument) {
|
|
18
|
+
addReadOnlyPropertiesToModel(this, { id, firebaseProjectId });
|
|
19
|
+
this.name = name;
|
|
20
|
+
this.isEnabled = isEnabled || false;
|
|
21
|
+
this.modeledCode = modeledCode;
|
|
22
|
+
this.steps = steps?.map(step => new ApiRecipeStep(step)) || [];
|
|
23
|
+
}
|
|
35
24
|
}
|
|
36
25
|
|
|
37
26
|
export class ApiRecipeStep {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
27
|
+
readonly id: number;
|
|
28
|
+
readonly recipeId: number;
|
|
29
|
+
readonly globalRecipeStepId: number;
|
|
30
|
+
name: string;
|
|
31
|
+
code: string;
|
|
32
|
+
ordinal: number;
|
|
33
|
+
partialProgressPercent: number;
|
|
45
34
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
35
|
+
constructor({
|
|
36
|
+
id,
|
|
37
|
+
recipeId,
|
|
38
|
+
globalRecipeStepId,
|
|
39
|
+
ordinal,
|
|
40
|
+
name,
|
|
41
|
+
code,
|
|
42
|
+
partialProgressPercent
|
|
43
|
+
}: Partial<ApiRecipeStep>)
|
|
44
|
+
{
|
|
45
|
+
addReadOnlyPropertiesToModel(this, { id, recipeId, globalRecipeStepId });
|
|
46
|
+
this.ordinal = ordinal;
|
|
47
|
+
this.name = name || null;
|
|
48
|
+
this.code = code || null;
|
|
49
|
+
this.partialProgressPercent = partialProgressPercent || 0.0;
|
|
50
|
+
}
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
export default ApiRecipe;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import ProcessStatus from "../enums/process_status";
|
|
2
|
-
import {DateLike, ModifyPartial} from "./type_aliases";
|
|
3
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
import type ProcessStatus from "../enums/process_status";
|
|
4
|
+
import type { DateLike, ModifyPartial } from "./type_aliases";
|
|
5
|
+
|
|
6
|
+
export type ApiRunningProcessArgument = ModifyPartial<ApiRunningProcess, {
|
|
6
7
|
startDate?: DateLike
|
|
7
8
|
endDate?: DateLike
|
|
8
|
-
}>
|
|
9
|
+
}>
|
|
9
10
|
|
|
10
11
|
export class ApiRunningProcess {
|
|
11
|
-
constructor({id, name, status, startDate, endDate, message}:
|
|
12
|
+
constructor({ id, name, status, startDate, endDate, message }: ApiRunningProcessArgument = {}) {
|
|
12
13
|
this.id = id;
|
|
13
14
|
this.name = name;
|
|
14
15
|
this.status = status;
|
|
15
|
-
this.message = message;
|
|
16
16
|
addInstantGetterAndSetterToApiModel(this, "startDate", startDate);
|
|
17
17
|
addInstantGetterAndSetterToApiModel(this, "endDate", endDate);
|
|
18
|
+
this.message = message;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
id: number;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { Matrix4 } from "three";
|
|
2
|
+
|
|
2
3
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
3
4
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
4
|
-
import ApiMatrix4 from "./api_matrix_4";
|
|
5
5
|
import Matrix4Converter from "../../converters/matrix_4_converter";
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
import type ApiMatrix4 from "./api_matrix_4";
|
|
8
|
+
import type { DateLike, ModifyPartial } from "type_aliases";
|
|
7
9
|
|
|
8
10
|
export type ApiScanDatasetArgument = ModifyPartial<ApiScanDataset, {
|
|
9
|
-
coarseAlignmentMatrix
|
|
10
|
-
fineAlignmentMatrix
|
|
11
|
-
scanDate
|
|
12
|
-
qaStarted
|
|
13
|
-
qaComplete
|
|
14
|
-
analysisCompleted
|
|
15
|
-
manualAnalysisSkipped
|
|
16
|
-
scanDateString?: string,
|
|
11
|
+
coarseAlignmentMatrix: ApiMatrix4 | Matrix4 | string | null
|
|
12
|
+
fineAlignmentMatrix: ApiMatrix4 | Matrix4 | string | null
|
|
13
|
+
scanDate: DateLike,
|
|
14
|
+
qaStarted: DateLike,
|
|
15
|
+
qaComplete: DateLike,
|
|
16
|
+
analysisCompleted: DateLike,
|
|
17
|
+
manualAnalysisSkipped: DateLike,
|
|
17
18
|
}>
|
|
18
19
|
|
|
19
20
|
export enum ApiScanDatasetQaState {
|
|
@@ -1,55 +1,64 @@
|
|
|
1
|
-
import {addInstantGetterAndSetterToApiModel} from "../../mixins";
|
|
1
|
+
import { addInstantGetterAndSetterToApiModel } from "../../mixins";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
organizationName: string;
|
|
5
|
-
scanDatasetId: number;
|
|
6
|
-
projectName: string;
|
|
7
|
-
floor: string;
|
|
8
|
-
scanDatasetName: string;
|
|
9
|
-
pipelineStartTime: Date;
|
|
10
|
-
pipelineEndTime: Date;
|
|
11
|
-
pipelineStatus: string;
|
|
12
|
-
qaCompleteTime: Date;
|
|
13
|
-
qaStartTime: Date;
|
|
14
|
-
squareFootage: number;
|
|
3
|
+
import type { DateLike, ModifyPartial } from "type_aliases";
|
|
15
4
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
export type ApiScanDatasetStatsArgument = ModifyPartial<ApiScanDatasetStats, {
|
|
6
|
+
pipelineStartTime: DateLike;
|
|
7
|
+
pipelineEndTime: DateLike;
|
|
8
|
+
qaCompleteTime: DateLike;
|
|
9
|
+
qaStartTime: DateLike;
|
|
10
|
+
realityCaptureUploadedOn: DateLike;
|
|
11
|
+
}>
|
|
19
12
|
|
|
20
|
-
constructor(props: ApiScanDatasetStatsProps) {
|
|
21
|
-
addInstantGetterAndSetterToApiModel(this, 'pipelineStartTime', props.pipelineStartTime);
|
|
22
|
-
addInstantGetterAndSetterToApiModel(this, 'pipelineEndTime', props.pipelineEndTime);
|
|
23
|
-
addInstantGetterAndSetterToApiModel(this, 'qaCompleteTime', props.qaCompleteTime);
|
|
24
|
-
addInstantGetterAndSetterToApiModel(this, 'qaStartTime', props.qaStartTime);
|
|
25
|
-
addInstantGetterAndSetterToApiModel(this, 'realityCaptureUploadedOn', props.realityCaptureUploadedOn);
|
|
26
|
-
this.organizationName = props.organizationName;
|
|
27
|
-
this.projectName = props.projectName;
|
|
28
|
-
this.scanDatasetId = props.scanDatasetId;
|
|
29
|
-
this.scanDatasetName = props.scanDatasetName;
|
|
30
|
-
this.pipelineStatus = props.pipelineStatus;
|
|
31
|
-
this.squareFootage = props.squareFootage;
|
|
32
13
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
14
|
+
export class ApiScanDatasetStats {
|
|
15
|
+
constructor({
|
|
16
|
+
pipelineStartTime,
|
|
17
|
+
pipelineEndTime,
|
|
18
|
+
qaCompleteTime,
|
|
19
|
+
qaStartTime,
|
|
20
|
+
realityCaptureUploadedOn,
|
|
21
|
+
organizationName,
|
|
22
|
+
projectName,
|
|
23
|
+
floor,
|
|
24
|
+
scanDatasetId,
|
|
25
|
+
scanDatasetName,
|
|
26
|
+
pipelineStatus,
|
|
27
|
+
squareFootage,
|
|
28
|
+
realityCaptureName,
|
|
29
|
+
realityCaptureType
|
|
30
|
+
}: ApiScanDatasetStatsArgument = {})
|
|
31
|
+
{
|
|
32
|
+
addInstantGetterAndSetterToApiModel(this, "pipelineStartTime", pipelineStartTime);
|
|
33
|
+
addInstantGetterAndSetterToApiModel(this, "pipelineEndTime", pipelineEndTime);
|
|
34
|
+
addInstantGetterAndSetterToApiModel(this, "qaCompleteTime", qaCompleteTime);
|
|
35
|
+
addInstantGetterAndSetterToApiModel(this, "qaStartTime", qaStartTime);
|
|
36
|
+
addInstantGetterAndSetterToApiModel(this, "realityCaptureUploadedOn", realityCaptureUploadedOn);
|
|
37
|
+
this.organizationName = organizationName;
|
|
38
|
+
this.projectName = projectName;
|
|
39
|
+
this.floor = floor;
|
|
40
|
+
this.scanDatasetId = scanDatasetId;
|
|
41
|
+
this.scanDatasetName = scanDatasetName;
|
|
42
|
+
this.pipelineStatus = pipelineStatus;
|
|
43
|
+
this.squareFootage = squareFootage;
|
|
37
44
|
|
|
45
|
+
this.realityCaptureName = realityCaptureName;
|
|
46
|
+
this.realityCaptureType = realityCaptureType;
|
|
47
|
+
}
|
|
38
48
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
squareFootage: number;
|
|
49
|
+
organizationName: string;
|
|
50
|
+
scanDatasetId: number;
|
|
51
|
+
projectName: string;
|
|
52
|
+
floor: string;
|
|
53
|
+
scanDatasetName: string;
|
|
54
|
+
pipelineStartTime: number;
|
|
55
|
+
pipelineEndTime: number;
|
|
56
|
+
pipelineStatus: string;
|
|
57
|
+
qaCompleteTime: number;
|
|
58
|
+
qaStartTime: number;
|
|
59
|
+
squareFootage: number;
|
|
51
60
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
61
|
+
realityCaptureName?: string;
|
|
62
|
+
realityCaptureType?: string;
|
|
63
|
+
realityCaptureUploadedOn?: number;
|
|
64
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {ApiBuiltStatus} from "../enums";
|
|
2
|
-
import {ApiElementDeviation} from "./api_element_deviation";
|
|
1
|
+
import { ApiBuiltStatus } from "../enums";
|
|
3
2
|
|
|
3
|
+
import type ApiElementDeviation from "./api_element_deviation";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated This information is now all part of the {@link ApiPlannedElement}
|
|
7
|
+
*/
|
|
4
8
|
export class ApiScannedElement<Label extends ApiBuiltStatus> {
|
|
5
|
-
constructor({globalId, scanLabel, deviation, detectedInScan}: Partial<ApiScannedElement<Label>> = {}) {
|
|
9
|
+
constructor({ globalId, scanLabel, deviation, detectedInScan }: Partial<ApiScannedElement<Label>> = {}) {
|
|
6
10
|
this.globalId = globalId;
|
|
7
11
|
this.scanLabel = scanLabel;
|
|
8
12
|
this.deviation = deviation;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type ApiProjectWorkPackage from "./api_project_work_package";
|
|
2
2
|
|
|
3
3
|
export class ApiTeamMember {
|
|
4
|
-
id?: number
|
|
5
|
-
name: string
|
|
6
|
-
userOrganization: string
|
|
7
|
-
email: string
|
|
8
|
-
role: string
|
|
9
|
-
masterformats?: string[]
|
|
4
|
+
id?: number;
|
|
5
|
+
name: string;
|
|
6
|
+
userOrganization: string;
|
|
7
|
+
email: string;
|
|
8
|
+
role: string;
|
|
9
|
+
masterformats?: string[];
|
|
10
10
|
vendor?: ApiProjectWorkPackage;
|
|
11
11
|
|
|
12
12
|
constructor({ id, name, userOrganization, email, role, masterformats, vendor }: Partial<ApiTeamMember> = {}) {
|
|
@@ -19,3 +19,5 @@ export class ApiTeamMember {
|
|
|
19
19
|
this.vendor = vendor;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
export default ApiTeamMember;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import UserRole from "../enums/user_role";
|
|
1
|
+
import type UserRole from "../enums/user_role";
|
|
2
2
|
|
|
3
3
|
export class ApiUser {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
name: string;
|
|
5
|
+
userOrganization: string;
|
|
6
|
+
email: string;
|
|
7
|
+
role: UserRole;
|
|
8
|
+
projectId: string;
|
|
9
|
+
userId: number;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
constructor({ name, userOrganization, email, role, projectId, userId }: Partial<ApiUser> = {}) {
|
|
12
|
+
this.name = name;
|
|
13
|
+
this.userOrganization = userOrganization;
|
|
14
|
+
this.email = email;
|
|
15
|
+
this.role = role;
|
|
16
|
+
this.projectId = projectId;
|
|
17
|
+
this.userId = userId;
|
|
18
|
+
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export default ApiUser;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {ApiActionPayload} from "./api_action_payload";
|
|
2
|
-
import UserActionType from "../enums/user_action_type";
|
|
3
|
-
import ApiUser from "./api_user";
|
|
4
|
-
import {DateLike} from "./type_aliases";
|
|
5
1
|
import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
|
|
6
2
|
|
|
3
|
+
import type ApiActionPayload from "./api_action_payload";
|
|
4
|
+
import type ApiUser from "./api_user";
|
|
5
|
+
import type UserActionType from "../enums/user_action_type";
|
|
6
|
+
import type { DateLike } from "type_aliases";
|
|
7
|
+
|
|
7
8
|
export class ApiUserAction {
|
|
8
9
|
constructor(user: ApiUser,
|
|
9
10
|
userEmail: string,
|
|
10
11
|
type: UserActionType,
|
|
11
12
|
createdAt: DateLike,
|
|
12
|
-
payload: ApiActionPayload[])
|
|
13
|
+
payload: ApiActionPayload[])
|
|
14
|
+
{
|
|
13
15
|
this.user = user;
|
|
14
16
|
this.userEmail = userEmail;
|
|
15
17
|
this.type = type;
|
|
@@ -1,32 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { addInstantGetterAndSetterToApiModel } from "../../mixins";
|
|
2
|
+
|
|
3
|
+
import type UserRole from "../enums/user_role";
|
|
4
|
+
import type { DateLike, ModifyPartial } from "type_aliases";
|
|
5
|
+
|
|
6
|
+
export type ApiUserForOrganizationArgument = ModifyPartial<ApiUserForOrganization, {
|
|
7
|
+
latestInvitationExpiry: DateLike
|
|
8
|
+
accountCreationTime: DateLike
|
|
9
|
+
accountAcceptedTime: DateLike
|
|
10
|
+
}>
|
|
3
11
|
|
|
4
12
|
export class ApiUserForOrganization {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
email: string;
|
|
16
|
+
role: UserRole;
|
|
17
|
+
projects: string[];
|
|
18
|
+
accessType: string;
|
|
19
|
+
inviteStatus: string;
|
|
20
|
+
masterformatCodes: string[];
|
|
21
|
+
latestInvitationExpiry: number;
|
|
22
|
+
accountCreationTime: number;
|
|
23
|
+
accountAcceptedTime: number;
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
constructor({
|
|
26
|
+
id,
|
|
27
|
+
name,
|
|
28
|
+
email,
|
|
29
|
+
role,
|
|
30
|
+
projects,
|
|
31
|
+
accessType,
|
|
32
|
+
inviteStatus,
|
|
33
|
+
masterformatCodes,
|
|
34
|
+
latestInvitationExpiry,
|
|
35
|
+
accountCreationTime,
|
|
36
|
+
accountAcceptedTime
|
|
37
|
+
}: ApiUserForOrganizationArgument = {})
|
|
38
|
+
{
|
|
39
|
+
this.id = id;
|
|
40
|
+
this.name = name;
|
|
41
|
+
this.email = email;
|
|
42
|
+
this.role = role;
|
|
43
|
+
this.projects = projects;
|
|
44
|
+
this.accessType = accessType;
|
|
45
|
+
this.inviteStatus = inviteStatus;
|
|
46
|
+
this.masterformatCodes = masterformatCodes;
|
|
47
|
+
addInstantGetterAndSetterToApiModel(this, "latestInvitationExpiry", latestInvitationExpiry);
|
|
48
|
+
addInstantGetterAndSetterToApiModel(this, "accountCreationTime", accountCreationTime);
|
|
49
|
+
addInstantGetterAndSetterToApiModel(this, "accountAcceptedTime", accountAcceptedTime);
|
|
50
|
+
}
|
|
30
51
|
}
|
|
31
52
|
|
|
32
53
|
export default ApiUserForOrganization;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type UserPermissionAction from "../enums/user_permission_action";
|
|
2
|
+
import type UserPermissionType from "../enums/user_permission_type";
|
|
3
3
|
|
|
4
4
|
export class ApiUserPermission {
|
|
5
|
-
id: number
|
|
6
|
-
userId: number
|
|
7
|
-
projectFirebaseId: string
|
|
8
|
-
organizationFirebaseId: string
|
|
9
|
-
masterformatCode: string
|
|
10
|
-
permissionType: UserPermissionType
|
|
11
|
-
permissionAction: UserPermissionAction
|
|
12
|
-
organizationName: string
|
|
13
|
-
projectName: string
|
|
14
|
-
workPackageId: number
|
|
5
|
+
id: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
projectFirebaseId: string;
|
|
8
|
+
organizationFirebaseId: string;
|
|
9
|
+
masterformatCode: string;
|
|
10
|
+
permissionType: UserPermissionType;
|
|
11
|
+
permissionAction: UserPermissionAction;
|
|
12
|
+
organizationName: string;
|
|
13
|
+
projectName: string;
|
|
14
|
+
workPackageId: number;
|
|
15
15
|
|
|
16
16
|
constructor({
|
|
17
17
|
id,
|
|
@@ -24,7 +24,8 @@ export class ApiUserPermission {
|
|
|
24
24
|
organizationName,
|
|
25
25
|
projectName,
|
|
26
26
|
workPackageId
|
|
27
|
-
|
|
27
|
+
}: Partial<ApiUserPermission>)
|
|
28
|
+
{
|
|
28
29
|
this.id = id;
|
|
29
30
|
this.userId = userId;
|
|
30
31
|
this.projectFirebaseId = projectFirebaseId;
|