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.
Files changed (239) hide show
  1. package/dist/avvir_api.node.js +452 -354
  2. package/dist/esm/api/index.d.ts +2 -1
  3. package/dist/esm/api/index.js +2 -1
  4. package/dist/esm/api/index.js.map +1 -1
  5. package/dist/esm/api/photo_area_api.d.ts +1 -1
  6. package/dist/esm/api/photo_area_api.js.map +1 -1
  7. package/dist/esm/api/project_api.d.ts +2 -4
  8. package/dist/esm/api/project_api.js.map +1 -1
  9. package/dist/esm/api/scan_dataset_api.d.ts +2 -2
  10. package/dist/esm/api/scan_dataset_api.js.map +1 -1
  11. package/dist/esm/avvir_api.d.ts +3 -2
  12. package/dist/esm/avvir_api.js +3 -2
  13. package/dist/esm/avvir_api.js.map +1 -1
  14. package/dist/esm/converters/floor_file_deletion_mode_converter.d.ts +1 -1
  15. package/dist/esm/converters/floor_file_deletion_mode_converter.js +1 -1
  16. package/dist/esm/converters/floor_file_deletion_mode_converter.js.map +1 -1
  17. package/dist/esm/index.d.ts +3 -2
  18. package/dist/esm/models/api/api_action_payload.d.ts +2 -1
  19. package/dist/esm/models/api/api_action_payload.js +1 -0
  20. package/dist/esm/models/api/api_action_payload.js.map +1 -1
  21. package/dist/esm/models/api/api_argo_response.js.map +1 -1
  22. package/dist/esm/models/api/api_bcf_building_element.d.ts +4 -4
  23. package/dist/esm/models/api/api_bcf_building_element.js.map +1 -1
  24. package/dist/esm/models/api/api_bcf_issue.d.ts +2 -2
  25. package/dist/esm/models/api/api_bcf_issue.js.map +1 -1
  26. package/dist/esm/models/api/api_cloud_file.d.ts +5 -10
  27. package/dist/esm/models/api/api_cloud_file.js +1 -1
  28. package/dist/esm/models/api/api_cloud_file.js.map +1 -1
  29. package/dist/esm/models/api/api_cloud_file_location_3d.d.ts +2 -2
  30. package/dist/esm/models/api/api_cloud_file_location_3d.js.map +1 -1
  31. package/dist/esm/models/api/api_construction_grid.d.ts +3 -3
  32. package/dist/esm/models/api/api_construction_grid.js.map +1 -1
  33. package/dist/esm/models/api/api_detailed_element.d.ts +4 -3
  34. package/dist/esm/models/api/api_detailed_element.js +4 -3
  35. package/dist/esm/models/api/api_detailed_element.js.map +1 -1
  36. package/dist/esm/models/api/api_element_deviation.d.ts +8 -3
  37. package/dist/esm/models/api/api_element_deviation.js +1 -1
  38. package/dist/esm/models/api/api_element_deviation.js.map +1 -1
  39. package/dist/esm/models/api/api_floor.d.ts +6 -7
  40. package/dist/esm/models/api/api_floor.js +2 -6
  41. package/dist/esm/models/api/api_floor.js.map +1 -1
  42. package/dist/esm/models/api/api_grid_line.d.ts +1 -1
  43. package/dist/esm/models/api/api_grid_line.js.map +1 -1
  44. package/dist/esm/models/api/api_groups.js.map +1 -1
  45. package/dist/esm/models/api/api_inspect_report.d.ts +11 -4
  46. package/dist/esm/models/api/api_inspect_report.js +3 -1
  47. package/dist/esm/models/api/api_inspect_report.js.map +1 -1
  48. package/dist/esm/models/api/api_inspect_report_entry.d.ts +11 -5
  49. package/dist/esm/models/api/api_inspect_report_entry.js +5 -3
  50. package/dist/esm/models/api/api_inspect_report_entry.js.map +1 -1
  51. package/dist/esm/models/api/api_inspect_report_entry_element.d.ts +3 -8
  52. package/dist/esm/models/api/api_inspect_report_entry_element.js +2 -1
  53. package/dist/esm/models/api/api_inspect_report_entry_element.js.map +1 -1
  54. package/dist/esm/models/api/api_integration_credentials.d.ts +4 -4
  55. package/dist/esm/models/api/api_integration_credentials.js.map +1 -1
  56. package/dist/esm/models/api/api_integration_project.d.ts +3 -3
  57. package/dist/esm/models/api/api_integration_project.js.map +1 -1
  58. package/dist/esm/models/api/api_invitation.d.ts +1 -1
  59. package/dist/esm/models/api/api_masterformat_progress.d.ts +3 -2
  60. package/dist/esm/models/api/api_masterformat_progress.js +1 -0
  61. package/dist/esm/models/api/api_masterformat_progress.js.map +1 -1
  62. package/dist/esm/models/api/api_organization.d.ts +1 -1
  63. package/dist/esm/models/api/api_organization.js +0 -1
  64. package/dist/esm/models/api/api_organization.js.map +1 -1
  65. package/dist/esm/models/api/api_photo_location.d.ts +15 -15
  66. package/dist/esm/models/api/api_photo_location.js +4 -4
  67. package/dist/esm/models/api/api_photo_location.js.map +1 -1
  68. package/dist/esm/models/api/api_photo_location_3d.d.ts +3 -3
  69. package/dist/esm/models/api/api_photo_location_3d.js.map +1 -1
  70. package/dist/esm/models/api/api_photo_session.d.ts +3 -4
  71. package/dist/esm/models/api/api_photo_session.js +1 -1
  72. package/dist/esm/models/api/api_photo_session.js.map +1 -1
  73. package/dist/esm/models/api/api_pipeline.d.ts +4 -5
  74. package/dist/esm/models/api/api_pipeline.js +1 -1
  75. package/dist/esm/models/api/api_pipeline.js.map +1 -1
  76. package/dist/esm/models/api/api_planned_element.d.ts +3 -3
  77. package/dist/esm/models/api/api_planned_element.js.map +1 -1
  78. package/dist/esm/models/api/api_progress_category.d.ts +1 -1
  79. package/dist/esm/models/api/api_progress_scan_dataset.d.ts +1 -1
  80. package/dist/esm/models/api/api_project.d.ts +17 -17
  81. package/dist/esm/models/api/api_project.js +5 -14
  82. package/dist/esm/models/api/api_project.js.map +1 -1
  83. package/dist/esm/models/api/api_project_area.d.ts +1 -1
  84. package/dist/esm/models/api/api_project_area.js.map +1 -1
  85. package/dist/esm/models/api/api_project_area_work_package.js.map +1 -1
  86. package/dist/esm/models/api/api_project_cost_analysis_progress.d.ts +1 -1
  87. package/dist/esm/models/api/api_project_cost_analysis_progress.js.map +1 -1
  88. package/dist/esm/models/api/api_project_report.d.ts +6 -2
  89. package/dist/esm/models/api/api_project_report.js +2 -1
  90. package/dist/esm/models/api/api_project_report.js.map +1 -1
  91. package/dist/esm/models/api/api_project_report_version.d.ts +5 -1
  92. package/dist/esm/models/api/api_project_report_version.js +1 -3
  93. package/dist/esm/models/api/api_project_report_version.js.map +1 -1
  94. package/dist/esm/models/api/api_project_settings.d.ts +1 -0
  95. package/dist/esm/models/api/api_project_settings.js +1 -0
  96. package/dist/esm/models/api/api_project_settings.js.map +1 -1
  97. package/dist/esm/models/api/api_project_summary.d.ts +2 -2
  98. package/dist/esm/models/api/api_project_summary.js.map +1 -1
  99. package/dist/esm/models/api/api_project_work_package.d.ts +5 -1
  100. package/dist/esm/models/api/api_project_work_package.js +4 -0
  101. package/dist/esm/models/api/api_project_work_package.js.map +1 -1
  102. package/dist/esm/models/api/api_project_work_package_cost.d.ts +2 -8
  103. package/dist/esm/models/api/api_project_work_package_cost.js +1 -1
  104. package/dist/esm/models/api/api_project_work_package_cost.js.map +1 -1
  105. package/dist/esm/models/api/api_quaternion.d.ts +1 -1
  106. package/dist/esm/models/api/api_quaternion.js +1 -0
  107. package/dist/esm/models/api/api_quaternion.js.map +1 -1
  108. package/dist/esm/models/api/api_query_resource.d.ts +1 -0
  109. package/dist/esm/models/api/api_query_resource.js +1 -0
  110. package/dist/esm/models/api/api_query_resource.js.map +1 -1
  111. package/dist/esm/models/api/api_recipe.d.ts +7 -18
  112. package/dist/esm/models/api/api_recipe.js +3 -3
  113. package/dist/esm/models/api/api_recipe.js.map +1 -1
  114. package/dist/esm/models/api/api_running_process.d.ts +5 -6
  115. package/dist/esm/models/api/api_running_process.js +1 -1
  116. package/dist/esm/models/api/api_running_process.js.map +1 -1
  117. package/dist/esm/models/api/api_scan_dataset.d.ts +9 -10
  118. package/dist/esm/models/api/api_scan_dataset.js.map +1 -1
  119. package/dist/esm/models/api/api_scandataset_stats.d.ts +10 -19
  120. package/dist/esm/models/api/api_scandataset_stats.js +15 -14
  121. package/dist/esm/models/api/api_scandataset_stats.js.map +1 -1
  122. package/dist/esm/models/api/api_scanned_element.d.ts +4 -1
  123. package/dist/esm/models/api/api_scanned_element.js +3 -0
  124. package/dist/esm/models/api/api_scanned_element.js.map +1 -1
  125. package/dist/esm/models/api/api_team_member.d.ts +2 -1
  126. package/dist/esm/models/api/api_team_member.js +1 -0
  127. package/dist/esm/models/api/api_team_member.js.map +1 -1
  128. package/dist/esm/models/api/api_user.d.ts +1 -1
  129. package/dist/esm/models/api/api_user.js.map +1 -1
  130. package/dist/esm/models/api/api_user_action.d.ts +4 -4
  131. package/dist/esm/models/api/api_user_action.js.map +1 -1
  132. package/dist/esm/models/api/api_user_for_organization.d.ts +11 -6
  133. package/dist/esm/models/api/api_user_for_organization.js +4 -3
  134. package/dist/esm/models/api/api_user_for_organization.js.map +1 -1
  135. package/dist/esm/models/api/api_user_permission.d.ts +2 -2
  136. package/dist/esm/models/api/api_user_permission.js.map +1 -1
  137. package/dist/esm/models/api/api_view.d.ts +24 -18
  138. package/dist/esm/models/api/api_view.js +4 -7
  139. package/dist/esm/models/api/api_view.js.map +1 -1
  140. package/dist/esm/models/api/api_work_package.d.ts +3 -2
  141. package/dist/esm/models/api/api_work_package.js +2 -1
  142. package/dist/esm/models/api/api_work_package.js.map +1 -1
  143. package/dist/esm/models/api/deprecated_api_pipeline.d.ts +3 -0
  144. package/dist/esm/models/api/deprecated_api_pipeline.js +3 -0
  145. package/dist/esm/models/api/deprecated_api_pipeline.js.map +1 -1
  146. package/dist/esm/models/api/index.d.ts +62 -60
  147. package/dist/esm/models/api/index.js +59 -56
  148. package/dist/esm/models/api/index.js.map +1 -1
  149. package/dist/esm/models/api/trade/api_captured_trade_cost.d.ts +2 -1
  150. package/dist/esm/models/api/trade/api_captured_trade_cost.js +2 -1
  151. package/dist/esm/models/api/trade/api_captured_trade_cost.js.map +1 -1
  152. package/dist/esm/models/api/trade/api_planned_trade_cost.d.ts +2 -1
  153. package/dist/esm/models/api/trade/api_planned_trade_cost.js +2 -1
  154. package/dist/esm/models/api/trade/api_planned_trade_cost.js.map +1 -1
  155. package/dist/esm/models/api/trade/api_trade.d.ts +2 -1
  156. package/dist/esm/models/api/trade/api_trade.js +2 -1
  157. package/dist/esm/models/api/trade/api_trade.js.map +1 -1
  158. package/dist/esm/models/api/trade/api_trade_cost.d.ts +2 -1
  159. package/dist/esm/models/api/trade/api_trade_cost.js +2 -1
  160. package/dist/esm/models/api/trade/api_trade_cost.js.map +1 -1
  161. package/dist/esm/models/api/trade/index.d.ts +4 -0
  162. package/dist/esm/models/api/trade/index.js +5 -0
  163. package/dist/esm/models/api/trade/index.js.map +1 -0
  164. package/dist/esm/models/enums/api_floor_file_deletion_mode.d.ts +7 -0
  165. package/dist/esm/models/{api/ApiFloorFileDeletionMode.js → enums/api_floor_file_deletion_mode.js} +4 -1
  166. package/dist/esm/models/enums/api_floor_file_deletion_mode.js.map +1 -0
  167. package/dist/esm/models/enums/index.d.ts +9 -8
  168. package/dist/esm/models/enums/index.js +9 -8
  169. package/dist/esm/models/enums/index.js.map +1 -1
  170. package/package.json +1 -1
  171. package/source/api/index.ts +2 -0
  172. package/source/api/photo_area_api.ts +11 -8
  173. package/source/api/project_api.ts +3 -5
  174. package/source/api/scan_dataset_api.ts +3 -3
  175. package/source/avvir_api.ts +3 -2
  176. package/source/converters/floor_file_deletion_mode_converter.ts +9 -7
  177. package/source/models/api/api_action_payload.ts +5 -3
  178. package/source/models/api/api_argo_response.ts +11 -1
  179. package/source/models/api/api_bcf_building_element.ts +4 -4
  180. package/source/models/api/api_bcf_issue.ts +2 -2
  181. package/source/models/api/api_cloud_file.ts +7 -9
  182. package/source/models/api/api_cloud_file_location_3d.ts +2 -2
  183. package/source/models/api/api_construction_grid.ts +5 -4
  184. package/source/models/api/api_detailed_element.ts +22 -20
  185. package/source/models/api/api_element_deviation.ts +15 -6
  186. package/source/models/api/api_floor.ts +14 -12
  187. package/source/models/api/api_grid_line.ts +2 -1
  188. package/source/models/api/api_groups.ts +10 -9
  189. package/source/models/api/api_inspect_report.ts +27 -16
  190. package/source/models/api/api_inspect_report_entry.ts +54 -30
  191. package/source/models/api/api_inspect_report_entry_element.ts +26 -23
  192. package/source/models/api/api_integration_credentials.ts +6 -4
  193. package/source/models/api/api_integration_project.ts +5 -3
  194. package/source/models/api/api_invitation.ts +1 -1
  195. package/source/models/api/api_masterformat_progress.ts +5 -3
  196. package/source/models/api/api_organization.ts +1 -1
  197. package/source/models/api/api_photo_location.ts +21 -19
  198. package/source/models/api/api_photo_location_3d.ts +10 -7
  199. package/source/models/api/api_photo_session.ts +5 -5
  200. package/source/models/api/api_pipeline.ts +9 -7
  201. package/source/models/api/api_planned_element.ts +4 -3
  202. package/source/models/api/api_progress_category.ts +2 -2
  203. package/source/models/api/api_progress_scan_dataset.ts +2 -2
  204. package/source/models/api/api_project.ts +24 -27
  205. package/source/models/api/api_project_area.ts +2 -1
  206. package/source/models/api/api_project_area_work_package.ts +12 -1
  207. package/source/models/api/api_project_cost_analysis_progress.ts +2 -1
  208. package/source/models/api/api_project_report.ts +22 -16
  209. package/source/models/api/api_project_report_version.ts +18 -14
  210. package/source/models/api/api_project_settings.ts +2 -0
  211. package/source/models/api/api_project_summary.ts +2 -2
  212. package/source/models/api/api_project_work_package.ts +18 -13
  213. package/source/models/api/api_project_work_package_cost.ts +15 -14
  214. package/source/models/api/api_quaternion.ts +2 -0
  215. package/source/models/api/api_query_resource.ts +2 -0
  216. package/source/models/api/api_recipe.ts +41 -43
  217. package/source/models/api/api_running_process.ts +7 -6
  218. package/source/models/api/api_scan_dataset.ts +11 -10
  219. package/source/models/api/api_scandataset_stats.ts +57 -48
  220. package/source/models/api/api_scanned_element.ts +7 -3
  221. package/source/models/api/api_team_member.ts +9 -7
  222. package/source/models/api/api_user.ts +15 -15
  223. package/source/models/api/api_user_action.ts +7 -5
  224. package/source/models/api/api_user_for_organization.ts +47 -26
  225. package/source/models/api/api_user_permission.ts +14 -13
  226. package/source/models/api/api_view.ts +43 -31
  227. package/source/models/api/api_work_package.ts +6 -3
  228. package/source/models/api/deprecated_api_pipeline.ts +3 -0
  229. package/source/models/api/index.ts +62 -120
  230. package/source/models/api/trade/api_captured_trade_cost.ts +3 -1
  231. package/source/models/api/trade/api_planned_trade_cost.ts +3 -1
  232. package/source/models/api/trade/api_trade.ts +3 -1
  233. package/source/models/api/trade/api_trade_cost.ts +3 -1
  234. package/source/models/api/trade/index.ts +4 -0
  235. package/source/models/enums/api_floor_file_deletion_mode.ts +9 -0
  236. package/source/models/enums/index.ts +9 -8
  237. package/dist/esm/models/api/ApiFloorFileDeletionMode.d.ts +0 -4
  238. package/dist/esm/models/api/ApiFloorFileDeletionMode.js.map +0 -1
  239. package/source/models/api/ApiFloorFileDeletionMode.ts +0 -4
@@ -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
- //# sourceMappingURL=ApiFloorFileDeletionMode.js.map
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 "./api_integration_credentials_type";
19
+ export * from "./user_auth_type";
17
20
  export * from "./user_permission_action";
18
21
  export * from "./user_permission_type";
19
- export * from "./association_type";
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 "./api_integration_credentials_type";
19
+ export * from "./user_auth_type";
17
20
  export * from "./user_permission_action";
18
21
  export * from "./user_permission_type";
19
- export * from "./association_type";
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,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EAOpB,aAAa,EAEb,cAAc,EACd,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,gBAAgB,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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "avvir",
3
3
  "repository": "git@github.com:Avvir/avvir-javascript-client.git",
4
- "version": "6.0.4",
4
+ "version": "7.0.0",
5
5
  "description": "Javascript client for Avvir APIs",
6
6
  "license": "Apache-2.0",
7
7
  "module": "dist/esm/index.js",
@@ -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, ApiPhotoSession, ApiPhotoLocation3d, AssociationIds} from "../models";
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, user: User): Promise<ApiPhotoArea[]> {
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, user: User): Promise<ApiPhotoLocation[]> {
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, user: User): Promise<ApiPhotoSession[]> {
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
- import { ApiClassificationCode } from "../models/api/api_classification_code";
9
- import ApiProjectWorkPackageCost from "../models/api/api_project_work_package_cost";
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, { ViewParameter } from "../models/api/api_view";
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<ViewParameter[]> {
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<ViewParameter[]>;
129
+ return Http.get(url, user) as unknown as Promise<ApiViewArgument[]>;
130
130
  }
131
131
 
132
132
  static getNewElementsForScanDataset({ projectId, floorId, scanDatasetId }: AssociationIds,
@@ -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
- import {ApiFloorFileDeletionMode} from "../models/api/ApiFloorFileDeletionMode";
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(type);
10
+ const isApiFloorFileDeletionMode = (type: any): type is ApiFloorFileDeletionMode => apiFloorFileDeletionModeTypeKeys.includes(
11
+ type);
10
12
 
11
13
  export class FloorFileDeletionModeConverter {
12
- static toApiFloorFileDeletionMode(fileKey: ApiFloorFileDeletionMode): ApiFloorFileDeletionMode {
13
- if (isApiFloorFileDeletionMode(fileKey)) {
14
- return fileKey;
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({ name, generateName, namespace, selfLink, uid, resourceVersion, generation, creationTimestamp }: Partial<ArgoMetadata> = {}) {
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 {ApiDetailedElement} from "./api_detailed_element";
2
- import {ApiBcfIssue} from "./api_bcf_issue";
1
+ import type { ApiBcfIssue } from "./api_bcf_issue";
2
+ import type { ApiDetailedElement } from "./api_detailed_element";
3
3
 
4
- export type ApiBcfBuildingElementArgs = Partial<ApiBcfBuildingElement>;
4
+ export type ApiBcfBuildingElementArgument = Partial<ApiBcfBuildingElement>;
5
5
 
6
6
  export class ApiBcfBuildingElement {
7
- constructor({bcfIssue, detailedElement}: ApiBcfBuildingElementArgs = {}) {
7
+ constructor({ bcfIssue, detailedElement }: ApiBcfBuildingElementArgument = {}) {
8
8
  this.detailedElement = detailedElement;
9
9
  this.bcfIssue = bcfIssue;
10
10
  }
@@ -1,7 +1,7 @@
1
- export type ApiBcfIssueArgs = Partial<ApiBcfIssue>;
1
+ export type ApiBcfIssueArgument = Partial<ApiBcfIssue>;
2
2
 
3
3
  export class ApiBcfIssue {
4
- constructor({plannedBuildingElementId, commentGuid, viewpointGuid, topicGuid}: ApiBcfIssueArgs = {}) {
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 ApiPhotoLocation3d from "./api_photo_location_3d";
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?: { x: number, y: number };
13
+ offset?: Vector2Like;
13
14
  }
14
15
 
15
- export interface ApiCloudFileArgument extends Partial<Modify<ApiCloudFile, {
16
+ export type ApiCloudFileArgument = ModifyPartial<ApiCloudFile, {
16
17
  lastModified?: DateLike
17
18
  createdAt?: DateLike
18
19
  purposeType: ApiPurposeType | PurposeType,
19
- fileType?: string
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 ApiCloudFileLocation3dArguments = {
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
- }: ApiCloudFileLocation3dArguments ) {
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
- import ApiGridLine from "./api_grid_line";
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: Array<ApiGridLine> = [];
14
- axisVLines: Array<ApiGridLine> = [];
14
+ axisULines: ApiGridLine[] = [];
15
+ axisVLines: ApiGridLine[] = [];
15
16
  readonly firebaseFloorId: string | null = null;
16
17
  }
17
18
 
@@ -1,27 +1,29 @@
1
- import {ApiPlannedElement} from "./api_planned_element";
2
- import {ApiBuiltStatus} from "../enums";
3
- import {ApiElementDeviation} from "./api_element_deviation";
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
- constructor(detailedElement: Partial<ApiDetailedElement<Label>> = {}) {
9
- super(detailedElement);
10
- addInstantGetterAndSetterToApiModel(this, "builtAt", detailedElement.builtAt);
11
- addInstantGetterAndSetterToApiModel(this, "fixedAt", detailedElement.fixedAt);
12
- this.scanResult = detailedElement.scanResult;
13
- if (isDeviationScanResult(this.scanResult)) {
14
- this.scanResult.deviation = { ...new ApiElementDeviation(this.scanResult.deviation) };
15
- }
16
- if (detailedElement.fixedDeviation) {
17
- this.fixedDeviation = {...new ApiElementDeviation(detailedElement.fixedDeviation)};
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
- scanResult?: ApiScannedElementTypeMap[Label];
22
- builtAt?: number;
23
- fixedAt?: number;
24
- fixedDeviation?: ApiElementDeviation;
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 {Vector3Like} from "./type_aliases";
2
- import {DeviationStatus} from "../enums";
3
- import {Vector3} from "three";
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: Vector3Like;
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: Partial<ApiElementDeviation> = {}) {
18
+ constructor(deviation: ApiElementDeviationArgument = {}) {
12
19
  let deviationVector: Vector3;
13
20
  if (deviation?.deviationVectorMeters) {
14
- deviationVector = new Vector3(deviation.deviationVectorMeters.x, deviation.deviationVectorMeters.y, deviation.deviationVectorMeters.z);
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
- export interface ApiFloorArgument extends Partial<Modify<ApiFloor, {
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
- addInstantGetterAndSetterToApiModel(this, "scanDate");
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: Array<string> = [];
142
+ firebaseScanDatasetIds: string[];
141
143
 
142
144
  constructionGrid: ApiConstructionGrid | null = null;
143
145
  plannedElementCount: number | null = null;
@@ -1,5 +1,6 @@
1
1
  import { Vector2 } from "three";
2
- import { Vector2Like } from "./type_aliases";
2
+
3
+ import type { Vector2Like } from "type_aliases";
3
4
 
4
5
  export class ApiGridLine {
5
6
  constructor({ name, point1, point2 }: Partial<ApiGridLine>) {
@@ -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
- import ApiUser from "./api_user";
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
- constructor({ id, firebaseProjectId, name, entries, createdBy, createdAt }: Partial<ApiInspectReport>) {
7
- addReadOnlyPropertiesToModel(this, { id, firebaseProjectId, createdBy });
8
- this.name = name;
9
- this.entries = !!entries ? entries : [];
10
- addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
11
- }
12
- readonly id: number;
13
- readonly firebaseProjectId: string;
14
- name: string;
15
- entries: ApiInspectReportEntry[];
16
- createdAt?: number;
17
- createdBy?: ApiUser;
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;