avvir 8.8.1 → 8.8.2

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.
@@ -4006,7 +4006,7 @@ __webpack_require__.r(__webpack_exports__);
4006
4006
 
4007
4007
  var ApiFloor = /** @class */ (function () {
4008
4008
  function ApiFloor(_a) {
4009
- var _b = _a === void 0 ? {} : _a, id = _b.id, firebaseId = _b.firebaseId, ordinal = _b.ordinal, floorNumber = _b.floorNumber, defaultFirebaseScanDatasetId = _b.defaultFirebaseScanDatasetId, firebaseProjectId = _b.firebaseProjectId, firebaseScanDatasetIds = _b.firebaseScanDatasetIds, constructionGrid = _b.constructionGrid, plannedElementCount = _b.plannedElementCount, plannedElementsExist = _b.plannedElementsExist, scanDate = _b.scanDate, scanDateString = _b.scanDateString, photoAreaId = _b.photoAreaId, offset = _b.offset, photoAreaMinimapPixelToBimMinimapPixel = _b.photoAreaMinimapPixelToBimMinimapPixel, bimMinimapToWorld = _b.bimMinimapToWorld, floorElevation = _b.floorElevation, floorPlanOffset = _b.floorPlanOffset, globalOffsetYaw = _b.globalOffsetYaw, isLocked = _b.isLocked;
4009
+ var _b = _a === void 0 ? {} : _a, id = _b.id, firebaseId = _b.firebaseId, ordinal = _b.ordinal, floorNumber = _b.floorNumber, defaultFirebaseScanDatasetId = _b.defaultFirebaseScanDatasetId, firebaseProjectId = _b.firebaseProjectId, firebaseScanDatasetIds = _b.firebaseScanDatasetIds, constructionGrid = _b.constructionGrid, plannedElementCount = _b.plannedElementCount, plannedElementsExist = _b.plannedElementsExist, scanDate = _b.scanDate, scanDateString = _b.scanDateString, photoAreaId = _b.photoAreaId, offset = _b.offset, photoAreaMinimapPixelToBimMinimapPixel = _b.photoAreaMinimapPixelToBimMinimapPixel, bimMinimapToWorld = _b.bimMinimapToWorld, floorElevation = _b.floorElevation, floorPlanOffset = _b.floorPlanOffset, areaLocationInFloorPlan = _b.areaLocationInFloorPlan, globalOffsetYaw = _b.globalOffsetYaw, isLocked = _b.isLocked;
4010
4010
  this.constructionGrid = null;
4011
4011
  this.plannedElementCount = null;
4012
4012
  this.plannedElementsExist = null;
@@ -4020,7 +4020,7 @@ var ApiFloor = /** @class */ (function () {
4020
4020
  this.bimMinimapToWorld = null;
4021
4021
  (0,_mixins_add_read_only_properties_to_model__WEBPACK_IMPORTED_MODULE_3__["default"])(this, { id: id, firebaseId: firebaseId, firebaseProjectId: firebaseProjectId });
4022
4022
  (0,_mixins_add_instant_getter_and_setter_to_api_model__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "scanDate", scanDate);
4023
- var offsetVal, photoMinimapToBimMinimapTransformVal, bimMinimapToWorldTransformVal;
4023
+ var offsetVal, photoMinimapToBimMinimapTransformVal, bimMinimapToWorldTransformVal, areaLocationInFloorPlanVal;
4024
4024
  Object.defineProperties(this, {
4025
4025
  offset: {
4026
4026
  get: function () {
@@ -4069,6 +4069,27 @@ var ApiFloor = /** @class */ (function () {
4069
4069
  }
4070
4070
  },
4071
4071
  enumerable: true
4072
+ },
4073
+ areaLocationInFloorPlan: {
4074
+ get: function () {
4075
+ return areaLocationInFloorPlanVal;
4076
+ },
4077
+ set: function (val) {
4078
+ if (val && Array.isArray(val)) {
4079
+ if (val.length) {
4080
+ areaLocationInFloorPlanVal = val.map(function (point) {
4081
+ return { x: point.x, y: point.y };
4082
+ });
4083
+ }
4084
+ else {
4085
+ areaLocationInFloorPlanVal = [];
4086
+ }
4087
+ }
4088
+ else {
4089
+ areaLocationInFloorPlanVal = null;
4090
+ }
4091
+ },
4092
+ enumerable: true
4072
4093
  }
4073
4094
  });
4074
4095
  this.ordinal = ordinal;
@@ -4089,6 +4110,7 @@ var ApiFloor = /** @class */ (function () {
4089
4110
  this.bimMinimapToWorld = bimMinimapToWorld || null;
4090
4111
  this.floorElevation = floorElevation || null;
4091
4112
  this.floorPlanOffset = floorPlanOffset || 0;
4113
+ this.areaLocationInFloorPlan = areaLocationInFloorPlan;
4092
4114
  this.globalOffsetYaw = globalOffsetYaw;
4093
4115
  this.isLocked = isLocked;
4094
4116
  }
@@ -4734,7 +4756,8 @@ __webpack_require__.r(__webpack_exports__);
4734
4756
 
4735
4757
  var ApiPlannedElement = /** @class */ (function () {
4736
4758
  function ApiPlannedElement(_a) {
4737
- var _b = _a === void 0 ? {} : _a, globalId = _b.globalId, name = _b.name, ifcType = _b.ifcType, uniformat = _b.uniformat, masterformat = _b.masterformat, revitCategory = _b.revitCategory, revitFamily = _b.revitFamily, revitType = _b.revitType, itemId = _b.itemId, discipline = _b.discipline, primaryUnitOfMeasurement = _b.primaryUnitOfMeasurement, primaryMeasurement = _b.primaryMeasurement, unitCost = _b.unitCost, navisworksGuid = _b.navisworksGuid, issueId = _b.issueId, excludeFromAnalysis = _b.excludeFromAnalysis, builtAt = _b.builtAt, deviation = _b.deviation, fixedAt = _b.fixedAt, fixedDeviation = _b.fixedDeviation, duplicateOf = _b.duplicateOf, reviztoId = _b.reviztoId, reviztoIfcGuid = _b.reviztoIfcGuid, verified = _b.verified, exportedToBcf = _b.exportedToBcf, partialProgressPercent = _b.partialProgressPercent, trade = _b.trade;
4759
+ var _b = _a === void 0 ? {} : _a, id = _b.id, globalId = _b.globalId, name = _b.name, ifcType = _b.ifcType, uniformat = _b.uniformat, masterformat = _b.masterformat, revitCategory = _b.revitCategory, revitFamily = _b.revitFamily, revitType = _b.revitType, itemId = _b.itemId, discipline = _b.discipline, primaryUnitOfMeasurement = _b.primaryUnitOfMeasurement, primaryMeasurement = _b.primaryMeasurement, unitCost = _b.unitCost, navisworksGuid = _b.navisworksGuid, issueId = _b.issueId, excludeFromAnalysis = _b.excludeFromAnalysis, builtAt = _b.builtAt, deviation = _b.deviation, fixedAt = _b.fixedAt, fixedDeviation = _b.fixedDeviation, duplicateOf = _b.duplicateOf, reviztoId = _b.reviztoId, reviztoIfcGuid = _b.reviztoIfcGuid, verified = _b.verified, exportedToBcf = _b.exportedToBcf, partialProgressPercent = _b.partialProgressPercent, trade = _b.trade;
4760
+ (0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addReadOnlyPropertiesToModel)(this, { id: id });
4738
4761
  (0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "builtAt", builtAt);
4739
4762
  (0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "fixedAt", fixedAt);
4740
4763
  this.globalId = globalId;
@@ -7801,26 +7824,6 @@ var ApiInspectionMode;
7801
7824
  })(ApiInspectionMode || (ApiInspectionMode = {}));
7802
7825
 
7803
7826
 
7804
- /***/ }),
7805
-
7806
- /***/ 491:
7807
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7808
-
7809
- "use strict";
7810
- __webpack_require__.r(__webpack_exports__);
7811
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7812
- /* harmony export */ "ApiInspectionMode": () => (/* binding */ ApiInspectionMode)
7813
- /* harmony export */ });
7814
- var ApiInspectionMode;
7815
- (function (ApiInspectionMode) {
7816
- ApiInspectionMode["DateCenter"] = "Data Center";
7817
- ApiInspectionMode["bimPrep"] = "BIM_PREP";
7818
- ApiInspectionMode["inspectLegacy"] = "LEGACY_INSPECT";
7819
- ApiInspectionMode["inspect"] = "INSPECT";
7820
- ApiInspectionMode["progress"] = "PROGRESS";
7821
- })(ApiInspectionMode || (ApiInspectionMode = {}));
7822
-
7823
-
7824
7827
  /***/ }),
7825
7828
 
7826
7829
  /***/ 2453:
@@ -9069,7 +9072,7 @@ var serializeForm = function (form) {
9069
9072
 
9070
9073
  /***/ }),
9071
9074
 
9072
- /***/ 5422:
9075
+ /***/ 1976:
9073
9076
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9074
9077
 
9075
9078
  var map = {
@@ -9229,7 +9232,6 @@ var map = {
9229
9232
  "./models/enums/event_type.ts": 1739,
9230
9233
  "./models/enums/index.ts": 8260,
9231
9234
  "./models/enums/inspection_modes.ts": 941,
9232
- "./models/enums/jira_building_types.ts": 491,
9233
9235
  "./models/enums/notification_level.ts": 2453,
9234
9236
  "./models/enums/photo_projection_type.ts": 6975,
9235
9237
  "./models/enums/photo_rotation_type.ts": 8543,
@@ -9280,7 +9282,7 @@ webpackContext.keys = function webpackContextKeys() {
9280
9282
  };
9281
9283
  webpackContext.resolve = webpackContextResolve;
9282
9284
  module.exports = webpackContext;
9283
- webpackContext.id = 5422;
9285
+ webpackContext.id = 1976;
9284
9286
 
9285
9287
  /***/ }),
9286
9288
 
@@ -9423,7 +9425,7 @@ function importAll(directoryContext, target) {
9423
9425
 
9424
9426
  // skip .d.ts files because some use syntax our webpack settings don't support
9425
9427
  //@ts-ignore
9426
- importAll(__webpack_require__(5422), _source_index__WEBPACK_IMPORTED_MODULE_0__["default"]);
9428
+ importAll(__webpack_require__(1976), _source_index__WEBPACK_IMPORTED_MODULE_0__["default"]);
9427
9429
 
9428
9430
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_source_index__WEBPACK_IMPORTED_MODULE_0__["default"]);
9429
9431
 
@@ -1 +1 @@
1
- {"version":3,"file":"api_detailed_element.js","sourceRoot":"","sources":["../../../../source/models/api/api_detailed_element.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AACjE,OAAO,EAA2B,qBAAqB,EAAC,MAAM,uBAAuB,CAAC;AAKtF,yFAAyF;AACzF,MAAM,OAAO,kBAAkE,SAAQ,iBAAiB;IACtG,YAAY,kBAAsD,EAAE;QAClE,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,mCAAmC,CAAC,IAAI,EAAE,SAAS,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;QAC9E,mCAAmC,CAAC,IAAI,EAAE,SAAS,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;QAC9E,IAAI,CAAC,UAAU,GAAG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E,CAAC;SACvF;QAED,IAAI,eAAe,CAAC,cAAc,EAAE;YAClC,IAAI,CAAC,cAAc,qBAAQ,IAAI,mBAAmB,CAAC,eAAe,CAAC,cAAc,CAAC,CAAE,CAAC;SACtF;QAED,IAAI,eAAe,CAAC,eAAe,EAAE;YACnC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC;SACxD;IACH,CAAC;CAOF;AAED,eAAe,kBAAkB,CAAC"}
@@ -5,9 +5,10 @@ export declare type ApiFloorArgument = ModifyPartial<ApiFloor, {
5
5
  scanDate?: DateLike;
6
6
  photoAreaMinimapPixelToBimMinimapPixel?: Matrix3Like;
7
7
  bimMinimapToWorld?: Matrix3Like;
8
+ areaLocationInFloorPlan?: Vector2Like[];
8
9
  }>;
9
10
  export declare class ApiFloor {
10
- constructor({ id, firebaseId, ordinal, floorNumber, defaultFirebaseScanDatasetId, firebaseProjectId, firebaseScanDatasetIds, constructionGrid, plannedElementCount, plannedElementsExist, scanDate, scanDateString, photoAreaId, offset, photoAreaMinimapPixelToBimMinimapPixel, bimMinimapToWorld, floorElevation, floorPlanOffset, globalOffsetYaw, isLocked }?: ApiFloorArgument);
11
+ constructor({ id, firebaseId, ordinal, floorNumber, defaultFirebaseScanDatasetId, firebaseProjectId, firebaseScanDatasetIds, constructionGrid, plannedElementCount, plannedElementsExist, scanDate, scanDateString, photoAreaId, offset, photoAreaMinimapPixelToBimMinimapPixel, bimMinimapToWorld, floorElevation, floorPlanOffset, areaLocationInFloorPlan, globalOffsetYaw, isLocked }?: ApiFloorArgument);
11
12
  /** Internal identifier, not used in URLs. */
12
13
  readonly id: number;
13
14
  /** External identifier, suitable for use in URLs. */
@@ -36,6 +37,8 @@ export declare class ApiFloor {
36
37
  floorElevation: number | null;
37
38
  /** The vertical offset of the floor plan from the {@link floorElevation}, useful for adjusting the height of the floor plan to make it more visible */
38
39
  floorPlanOffset: number;
40
+ /** The coordinates on the floor plan that define the boundaries of the area. Stored as normalized coordinates */
41
+ areaLocationInFloorPlan: Vector2Like[];
39
42
  globalOffsetYaw: number | null;
40
43
  isLocked: boolean;
41
44
  }
@@ -3,7 +3,7 @@ import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter
3
3
  import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
4
4
  import Matrix3Converter from "../../converters/matrix_3_converter";
5
5
  export class ApiFloor {
6
- constructor({ id, firebaseId, ordinal, floorNumber, defaultFirebaseScanDatasetId, firebaseProjectId, firebaseScanDatasetIds, constructionGrid, plannedElementCount, plannedElementsExist, scanDate, scanDateString, photoAreaId, offset, photoAreaMinimapPixelToBimMinimapPixel, bimMinimapToWorld, floorElevation, floorPlanOffset, globalOffsetYaw, isLocked } = {}) {
6
+ constructor({ id, firebaseId, ordinal, floorNumber, defaultFirebaseScanDatasetId, firebaseProjectId, firebaseScanDatasetIds, constructionGrid, plannedElementCount, plannedElementsExist, scanDate, scanDateString, photoAreaId, offset, photoAreaMinimapPixelToBimMinimapPixel, bimMinimapToWorld, floorElevation, floorPlanOffset, areaLocationInFloorPlan, globalOffsetYaw, isLocked } = {}) {
7
7
  this.constructionGrid = null;
8
8
  this.plannedElementCount = null;
9
9
  this.plannedElementsExist = null;
@@ -17,7 +17,7 @@ export class ApiFloor {
17
17
  this.bimMinimapToWorld = null;
18
18
  addReadOnlyPropertiesToModel(this, { id, firebaseId, firebaseProjectId });
19
19
  addInstantGetterAndSetterToApiModel(this, "scanDate", scanDate);
20
- let offsetVal, photoMinimapToBimMinimapTransformVal, bimMinimapToWorldTransformVal;
20
+ let offsetVal, photoMinimapToBimMinimapTransformVal, bimMinimapToWorldTransformVal, areaLocationInFloorPlanVal;
21
21
  Object.defineProperties(this, {
22
22
  offset: {
23
23
  get() {
@@ -66,6 +66,27 @@ export class ApiFloor {
66
66
  }
67
67
  },
68
68
  enumerable: true
69
+ },
70
+ areaLocationInFloorPlan: {
71
+ get() {
72
+ return areaLocationInFloorPlanVal;
73
+ },
74
+ set(val) {
75
+ if (val && Array.isArray(val)) {
76
+ if (val.length) {
77
+ areaLocationInFloorPlanVal = val.map(point => {
78
+ return { x: point.x, y: point.y };
79
+ });
80
+ }
81
+ else {
82
+ areaLocationInFloorPlanVal = [];
83
+ }
84
+ }
85
+ else {
86
+ areaLocationInFloorPlanVal = null;
87
+ }
88
+ },
89
+ enumerable: true
69
90
  }
70
91
  });
71
92
  this.ordinal = ordinal;
@@ -86,6 +107,7 @@ export class ApiFloor {
86
107
  this.bimMinimapToWorld = bimMinimapToWorld || null;
87
108
  this.floorElevation = floorElevation || null;
88
109
  this.floorPlanOffset = floorPlanOffset || 0;
110
+ this.areaLocationInFloorPlan = areaLocationInFloorPlan;
89
111
  this.globalOffsetYaw = globalOffsetYaw;
90
112
  this.isLocked = isLocked;
91
113
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api_floor.js","sourceRoot":"","sources":["../../../../source/models/api/api_floor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,mCAAmC,MAAM,yDAAyD,CAAC;AAC1G,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAC1F,OAAO,gBAAgB,MAAM,qCAAqC,CAAC;AAYnE,MAAM,OAAO,QAAQ;IACnB,YAAY,EACE,EAAE,EACF,UAAU,EACV,OAAO,EACP,WAAW,EACX,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,cAAc,EACd,WAAW,EACX,MAAM,EACN,sCAAsC,EACtC,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,eAAe,EACf,QAAQ,KACY,EAAE;QAwFpC,qBAAgB,GAA+B,IAAI,CAAC;QACpD,wBAAmB,GAAkB,IAAI,CAAC;QAC1C,yBAAoB,GAAmB,IAAI,CAAC;QAC5C,sDAAsD;QACtD,aAAQ,GAAkB,IAAI,CAAC;QAC/B,wDAAwD;QACxD,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AAC;QACvC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CAkCF;AAED,eAAe,QAAQ,CAAC"}
@@ -6,7 +6,8 @@ declare type ApiPlannedElementArgument = ModifyPartial<ApiPlannedElement, {
6
6
  fixedAt: DateLike;
7
7
  }>;
8
8
  export declare class ApiPlannedElement {
9
- constructor({ globalId, name, ifcType, uniformat, masterformat, revitCategory, revitFamily, revitType, itemId, discipline, primaryUnitOfMeasurement, primaryMeasurement, unitCost, navisworksGuid, issueId, excludeFromAnalysis, builtAt, deviation, fixedAt, fixedDeviation, duplicateOf, reviztoId, reviztoIfcGuid, verified, exportedToBcf, partialProgressPercent, trade }?: ApiPlannedElementArgument);
9
+ constructor({ id, globalId, name, ifcType, uniformat, masterformat, revitCategory, revitFamily, revitType, itemId, discipline, primaryUnitOfMeasurement, primaryMeasurement, unitCost, navisworksGuid, issueId, excludeFromAnalysis, builtAt, deviation, fixedAt, fixedDeviation, duplicateOf, reviztoId, reviztoIfcGuid, verified, exportedToBcf, partialProgressPercent, trade }?: ApiPlannedElementArgument);
10
+ readonly id: number;
10
11
  name?: string;
11
12
  globalId: string;
12
13
  itemId?: string | null;
@@ -1,6 +1,7 @@
1
- import { addInstantGetterAndSetterToApiModel } from "../../mixins";
1
+ import { addInstantGetterAndSetterToApiModel, addReadOnlyPropertiesToModel } from "../../mixins";
2
2
  export class ApiPlannedElement {
3
- constructor({ globalId, name, ifcType, uniformat, masterformat, revitCategory, revitFamily, revitType, itemId, discipline, primaryUnitOfMeasurement, primaryMeasurement, unitCost, navisworksGuid, issueId, excludeFromAnalysis, builtAt, deviation, fixedAt, fixedDeviation, duplicateOf, reviztoId, reviztoIfcGuid, verified, exportedToBcf, partialProgressPercent, trade } = {}) {
3
+ constructor({ id, globalId, name, ifcType, uniformat, masterformat, revitCategory, revitFamily, revitType, itemId, discipline, primaryUnitOfMeasurement, primaryMeasurement, unitCost, navisworksGuid, issueId, excludeFromAnalysis, builtAt, deviation, fixedAt, fixedDeviation, duplicateOf, reviztoId, reviztoIfcGuid, verified, exportedToBcf, partialProgressPercent, trade } = {}) {
4
+ addReadOnlyPropertiesToModel(this, { id });
4
5
  addInstantGetterAndSetterToApiModel(this, "builtAt", builtAt);
5
6
  addInstantGetterAndSetterToApiModel(this, "fixedAt", fixedAt);
6
7
  this.globalId = globalId;
@@ -1 +1 @@
1
- {"version":3,"file":"api_planned_element.js","sourceRoot":"","sources":["../../../../source/models/api/api_planned_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,cAAc,CAAC;AAQnE,MAAM,OAAO,iBAAiB;IAC5B,YAAY,EACE,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,SAAS,EACT,MAAM,EACN,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,OAAO,EACP,mBAAmB,EACnB,OAAO,EACP,SAAS,EACT,OAAO,EACP,cAAc,EACd,WAAW,EACX,SAAS,EACT,cAAc,EACd,QAAQ,EACR,aAAa,EACb,sBAAsB,EACtB,KAAK,KACwB,EAAE;QAE3C,mCAAmC,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9D,mCAAmC,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;QACzD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CA6BF;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"api_planned_element.js","sourceRoot":"","sources":["../../../../source/models/api/api_planned_element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAQjG,MAAM,OAAO,iBAAiB;IAC5B,YAAY,EACE,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,SAAS,EACT,MAAM,EACN,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,OAAO,EACP,mBAAmB,EACnB,OAAO,EACP,SAAS,EACT,OAAO,EACP,cAAc,EACd,WAAW,EACX,SAAS,EACT,cAAc,EACd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GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CA8BF;AAED,eAAe,iBAAiB,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": "8.8.1",
4
+ "version": "8.8.2",
5
5
  "description": "Javascript client for Avvir APIs",
6
6
  "license": "Apache-2.0",
7
7
  "module": "dist/esm/index.js",
@@ -1,10 +1,10 @@
1
1
  import ApiElementDeviation from "./api_element_deviation";
2
2
  import ApiPlannedElement from "./api_planned_element";
3
- import {addInstantGetterAndSetterToApiModel} from "../../mixins";
4
- import {ApiScannedElementTypeMap, isDeviationScanResult} from "./api_scanned_element";
3
+ import { addInstantGetterAndSetterToApiModel } from "../../mixins";
4
+ import { ApiScannedElementTypeMap, isDeviationScanResult } from "./api_scanned_element";
5
5
 
6
- import type {ApiBuiltStatus} from "../enums";
7
- import {ApiElementProgress} from "./api_element_progress";
6
+ import type { ApiBuiltStatus } from "../enums";
7
+ import { ApiElementProgress } from "./api_element_progress";
8
8
 
9
9
  /** @deprecated This information should now all live in the {@link ApiPlannedElement}. */
10
10
  export class ApiDetailedElement<Label extends ApiBuiltStatus = ApiBuiltStatus> extends ApiPlannedElement {
@@ -15,11 +15,11 @@ export class ApiDetailedElement<Label extends ApiBuiltStatus = ApiBuiltStatus> e
15
15
  this.scanResult = detailedElement.scanResult;
16
16
 
17
17
  if (isDeviationScanResult(this.scanResult)) {
18
- this.scanResult.deviation = {...new ApiElementDeviation(this.scanResult.deviation)};
18
+ this.scanResult.deviation = { ...new ApiElementDeviation(this.scanResult.deviation) };
19
19
  }
20
20
 
21
21
  if (detailedElement.fixedDeviation) {
22
- this.fixedDeviation = {...new ApiElementDeviation(detailedElement.fixedDeviation)};
22
+ this.fixedDeviation = { ...new ApiElementDeviation(detailedElement.fixedDeviation) };
23
23
  }
24
24
 
25
25
  if (detailedElement.progressHistory) {
@@ -12,6 +12,7 @@ export type ApiFloorArgument = ModifyPartial<ApiFloor, {
12
12
  scanDate?: DateLike,
13
13
  photoAreaMinimapPixelToBimMinimapPixel?: Matrix3Like;
14
14
  bimMinimapToWorld?: Matrix3Like;
15
+ areaLocationInFloorPlan?: Vector2Like[]
15
16
  }>
16
17
 
17
18
  export class ApiFloor {
@@ -34,6 +35,7 @@ export class ApiFloor {
34
35
  bimMinimapToWorld,
35
36
  floorElevation,
36
37
  floorPlanOffset,
38
+ areaLocationInFloorPlan,
37
39
  globalOffsetYaw,
38
40
  isLocked
39
41
  }: ApiFloorArgument = {})
@@ -41,7 +43,7 @@ export class ApiFloor {
41
43
  addReadOnlyPropertiesToModel(this, { id, firebaseId, firebaseProjectId });
42
44
  addInstantGetterAndSetterToApiModel(this, "scanDate", scanDate);
43
45
  let offsetVal: Vector2Like, photoMinimapToBimMinimapTransformVal: ApiMatrix3,
44
- bimMinimapToWorldTransformVal: ApiMatrix3;
46
+ bimMinimapToWorldTransformVal: ApiMatrix3, areaLocationInFloorPlanVal: Vector2Like[];
45
47
  Object.defineProperties(this, {
46
48
  offset: {
47
49
  get() {
@@ -85,6 +87,25 @@ export class ApiFloor {
85
87
  }
86
88
  },
87
89
  enumerable: true
90
+ },
91
+ areaLocationInFloorPlan: {
92
+ get() {
93
+ return areaLocationInFloorPlanVal;
94
+ },
95
+ set(val: Vector2Like[]) {
96
+ if (val && Array.isArray(val)) {
97
+ if (val.length) {
98
+ areaLocationInFloorPlanVal = val.map(point => {
99
+ return { x: point.x, y: point.y };
100
+ });
101
+ } else {
102
+ areaLocationInFloorPlanVal = [];
103
+ }
104
+ } else {
105
+ areaLocationInFloorPlanVal = null;
106
+ }
107
+ },
108
+ enumerable: true
88
109
  }
89
110
  });
90
111
 
@@ -106,6 +127,7 @@ export class ApiFloor {
106
127
  this.bimMinimapToWorld = bimMinimapToWorld || null;
107
128
  this.floorElevation = floorElevation || null;
108
129
  this.floorPlanOffset = floorPlanOffset || 0;
130
+ this.areaLocationInFloorPlan = areaLocationInFloorPlan;
109
131
  this.globalOffsetYaw = globalOffsetYaw;
110
132
  this.isLocked = isLocked;
111
133
  }
@@ -138,6 +160,8 @@ export class ApiFloor {
138
160
  floorElevation: number | null;
139
161
  /** The vertical offset of the floor plan from the {@link floorElevation}, useful for adjusting the height of the floor plan to make it more visible */
140
162
  floorPlanOffset: number;
163
+ /** The coordinates on the floor plan that define the boundaries of the area. Stored as normalized coordinates */
164
+ areaLocationInFloorPlan: Vector2Like[];
141
165
  globalOffsetYaw: number | null;
142
166
  isLocked: boolean;
143
167
  }
@@ -1,4 +1,4 @@
1
- import { addInstantGetterAndSetterToApiModel } from "../../mixins";
1
+ import { addInstantGetterAndSetterToApiModel, addReadOnlyPropertiesToModel } from "../../mixins";
2
2
 
3
3
  import type ApiElementDeviation from "./api_element_deviation";
4
4
  import type { DateLike, ModifyPartial } from "type_aliases";
@@ -8,6 +8,7 @@ type ApiPlannedElementArgument = ModifyPartial<ApiPlannedElement, { builtAt: Dat
8
8
 
9
9
  export class ApiPlannedElement {
10
10
  constructor({
11
+ id,
11
12
  globalId,
12
13
  name,
13
14
  ifcType,
@@ -37,6 +38,7 @@ export class ApiPlannedElement {
37
38
  trade
38
39
  }: ApiPlannedElementArgument = {})
39
40
  {
41
+ addReadOnlyPropertiesToModel(this, { id });
40
42
  addInstantGetterAndSetterToApiModel(this, "builtAt", builtAt);
41
43
  addInstantGetterAndSetterToApiModel(this, "fixedAt", fixedAt);
42
44
  this.globalId = globalId;
@@ -51,7 +53,7 @@ export class ApiPlannedElement {
51
53
  this.discipline = discipline;
52
54
  this.primaryUnitOfMeasurement = primaryUnitOfMeasurement;
53
55
  this.primaryMeasurement = primaryMeasurement;
54
- this.unitCost = unitCost
56
+ this.unitCost = unitCost;
55
57
  this.navisworksGuid = navisworksGuid;
56
58
  this.issueId = issueId;
57
59
  this.excludeFromAnalysis = excludeFromAnalysis;
@@ -66,6 +68,7 @@ export class ApiPlannedElement {
66
68
  this.trade = trade;
67
69
  }
68
70
 
71
+ readonly id: number;
69
72
  name?: string;
70
73
  globalId: string;
71
74
  itemId?: string | null;
@@ -78,7 +81,7 @@ export class ApiPlannedElement {
78
81
  revitCategory?: string;
79
82
  primaryUnitOfMeasurement?: string;
80
83
  primaryMeasurement?: number;
81
- unitCost?: number
84
+ unitCost?: number;
82
85
  navisworksGuid?: string;
83
86
  issueId?: number;
84
87
  excludeFromAnalysis?: boolean;
@@ -1,8 +0,0 @@
1
- export declare enum ApiInspectionMode {
2
- DateCenter = "Data Center",
3
- bimPrep = "BIM_PREP",
4
- inspectLegacy = "LEGACY_INSPECT",
5
- inspect = "INSPECT",
6
- progress = "PROGRESS"
7
- }
8
- export declare type JiraBuildingType = ApiInspectionMode.DateCenter | ApiInspectionMode.bimPrep | ApiInspectionMode.inspect | ApiInspectionMode.inspectLegacy | ApiInspectionMode.progress;
@@ -1,9 +0,0 @@
1
- export var ApiInspectionMode;
2
- (function (ApiInspectionMode) {
3
- ApiInspectionMode["DateCenter"] = "Data Center";
4
- ApiInspectionMode["bimPrep"] = "BIM_PREP";
5
- ApiInspectionMode["inspectLegacy"] = "LEGACY_INSPECT";
6
- ApiInspectionMode["inspect"] = "INSPECT";
7
- ApiInspectionMode["progress"] = "PROGRESS";
8
- })(ApiInspectionMode || (ApiInspectionMode = {}));
9
- //# sourceMappingURL=jira_building_types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jira_building_types.js","sourceRoot":"","sources":["../../../../source/models/enums/jira_building_types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IACzB,+CAA0B,CAAA;IAC1B,yCAAoB,CAAA;IACpB,qDAAgC,CAAA;IAChC,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACzB,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B"}
@@ -1,14 +0,0 @@
1
- export enum ApiInspectionMode {
2
- DateCenter = "Data Center",
3
- bimPrep = "BIM_PREP",
4
- inspectLegacy = "LEGACY_INSPECT",
5
- inspect = "INSPECT",
6
- progress = "PROGRESS",
7
- }
8
-
9
- export type JiraBuildingType =
10
- ApiInspectionMode.DateCenter |
11
- ApiInspectionMode.bimPrep |
12
- ApiInspectionMode.inspect |
13
- ApiInspectionMode.inspectLegacy |
14
- ApiInspectionMode.progress;