@spaciv/sdk 0.1.15 → 0.1.17
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/README.md +2 -2
- package/dist/apis/DashboardsApi.d.ts +12 -12
- package/dist/apis/DashboardsApi.js +6 -6
- package/dist/apis/FloorPlansApi.d.ts +8 -8
- package/dist/apis/FloorPlansApi.js +4 -4
- package/dist/apis/ScenariosApi.d.ts +8 -8
- package/dist/apis/ScenariosApi.js +4 -4
- package/dist/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/apis/TopDownModelsApi.js +2 -2
- package/dist/esm/apis/DashboardsApi.d.ts +12 -12
- package/dist/esm/apis/DashboardsApi.js +6 -6
- package/dist/esm/apis/FloorPlansApi.d.ts +8 -8
- package/dist/esm/apis/FloorPlansApi.js +4 -4
- package/dist/esm/apis/ScenariosApi.d.ts +8 -8
- package/dist/esm/apis/ScenariosApi.js +4 -4
- package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/esm/apis/TopDownModelsApi.js +2 -2
- package/dist/esm/models/CalcListEntry.d.ts +6 -0
- package/dist/esm/models/CalcListEntry.js +2 -0
- package/dist/esm/models/CalcRes.d.ts +6 -0
- package/dist/esm/models/CalcRes.js +4 -0
- package/dist/esm/models/FloorplanCreateSpace.d.ts +12 -0
- package/dist/esm/models/FloorplanCreateSpace.js +4 -0
- package/dist/esm/models/FloorplanGetBody.d.ts +6 -0
- package/dist/esm/models/FloorplanGetBody.js +2 -0
- package/dist/esm/models/FloorplanGetBodySpace.d.ts +14 -2
- package/dist/esm/models/FloorplanGetBodySpace.js +4 -0
- package/dist/esm/models/FloorplanPatchParamsBody.d.ts +6 -0
- package/dist/esm/models/FloorplanPatchParamsBody.js +2 -0
- package/dist/esm/models/ScenarioChangelogBody.d.ts +6 -0
- package/dist/esm/models/ScenarioChangelogBody.js +2 -0
- package/dist/esm/models/ScenarioCreate.d.ts +6 -0
- package/dist/esm/models/ScenarioCreate.js +2 -0
- package/dist/esm/models/ScenarioPatch.d.ts +12 -0
- package/dist/esm/models/ScenarioPatch.js +4 -0
- package/dist/esm/models/TopDownModelEntryUpdate.d.ts +6 -0
- package/dist/esm/models/TopDownModelEntryUpdate.js +2 -0
- package/dist/models/CalcListEntry.d.ts +6 -0
- package/dist/models/CalcListEntry.js +2 -0
- package/dist/models/CalcRes.d.ts +6 -0
- package/dist/models/CalcRes.js +4 -0
- package/dist/models/FloorplanCreateSpace.d.ts +12 -0
- package/dist/models/FloorplanCreateSpace.js +4 -0
- package/dist/models/FloorplanGetBody.d.ts +6 -0
- package/dist/models/FloorplanGetBody.js +2 -0
- package/dist/models/FloorplanGetBodySpace.d.ts +14 -2
- package/dist/models/FloorplanGetBodySpace.js +4 -0
- package/dist/models/FloorplanPatchParamsBody.d.ts +6 -0
- package/dist/models/FloorplanPatchParamsBody.js +2 -0
- package/dist/models/ScenarioChangelogBody.d.ts +6 -0
- package/dist/models/ScenarioChangelogBody.js +2 -0
- package/dist/models/ScenarioCreate.d.ts +6 -0
- package/dist/models/ScenarioCreate.js +2 -0
- package/dist/models/ScenarioPatch.d.ts +12 -0
- package/dist/models/ScenarioPatch.js +4 -0
- package/dist/models/TopDownModelEntryUpdate.d.ts +6 -0
- package/dist/models/TopDownModelEntryUpdate.js +2 -0
- package/package.json +1 -1
- package/src/apis/DashboardsApi.ts +12 -12
- package/src/apis/FloorPlansApi.ts +8 -8
- package/src/apis/ScenariosApi.ts +8 -8
- package/src/apis/TopDownModelsApi.ts +4 -4
- package/src/models/CalcListEntry.ts +8 -0
- package/src/models/CalcRes.ts +9 -0
- package/src/models/FloorplanCreateSpace.ts +16 -0
- package/src/models/FloorplanGetBody.ts +8 -0
- package/src/models/FloorplanGetBodySpace.ts +18 -2
- package/src/models/FloorplanPatchParamsBody.ts +8 -0
- package/src/models/ScenarioChangelogBody.ts +8 -0
- package/src/models/ScenarioCreate.ts +8 -0
- package/src/models/ScenarioPatch.ts +16 -0
- package/src/models/TopDownModelEntryUpdate.ts +8 -0
|
@@ -31,9 +31,11 @@ export function FloorplanCreateSpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
34
|
+
'endHeightMetres': json['endHeightMetres'] == null ? undefined : json['endHeightMetres'],
|
|
34
35
|
'location': json['location'],
|
|
35
36
|
'paths': (json['paths'].map(FloorplanSpaceChangelogPathFromJSON)),
|
|
36
37
|
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
38
|
+
'startHeightMetres': json['startHeightMetres'] == null ? undefined : json['startHeightMetres'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
export function FloorplanCreateSpaceToJSON(json) {
|
|
@@ -45,8 +47,10 @@ export function FloorplanCreateSpaceToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
49
|
'endHeight': value['endHeight'],
|
|
50
|
+
'endHeightMetres': value['endHeightMetres'],
|
|
48
51
|
'location': value['location'],
|
|
49
52
|
'paths': (value['paths'].map(FloorplanSpaceChangelogPathToJSON)),
|
|
50
53
|
'startHeight': value['startHeight'],
|
|
54
|
+
'startHeightMetres': value['startHeightMetres'],
|
|
51
55
|
};
|
|
52
56
|
}
|
|
@@ -65,6 +65,12 @@ export interface FloorplanGetBody {
|
|
|
65
65
|
* @memberof FloorplanGetBody
|
|
66
66
|
*/
|
|
67
67
|
spaces: Array<FloorplanGetBodySpace>;
|
|
68
|
+
/**
|
|
69
|
+
* How many of the spaces' path units make one metre, which scales space heights in 3D. Absent until the floor plan's scale has been set.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof FloorplanGetBody
|
|
72
|
+
*/
|
|
73
|
+
unitsPerMetre?: number;
|
|
68
74
|
/**
|
|
69
75
|
* Whether the floor plan can be shown in 2D, in 3D, or both. Defaults to 2d-and-3d.
|
|
70
76
|
* @type {string}
|
|
@@ -57,6 +57,7 @@ export function FloorplanGetBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'property': json['property'],
|
|
58
58
|
'propertyNode': json['propertyNode'],
|
|
59
59
|
'spaces': (json['spaces'].map(FloorplanGetBodySpaceFromJSON)),
|
|
60
|
+
'unitsPerMetre': json['unitsPerMetre'] == null ? undefined : json['unitsPerMetre'],
|
|
60
61
|
'viewMode': json['viewMode'],
|
|
61
62
|
};
|
|
62
63
|
}
|
|
@@ -76,6 +77,7 @@ export function FloorplanGetBodyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
76
77
|
'property': value['property'],
|
|
77
78
|
'propertyNode': value['propertyNode'],
|
|
78
79
|
'spaces': (value['spaces'].map(FloorplanGetBodySpaceToJSON)),
|
|
80
|
+
'unitsPerMetre': value['unitsPerMetre'],
|
|
79
81
|
'viewMode': value['viewMode'],
|
|
80
82
|
};
|
|
81
83
|
}
|
|
@@ -17,11 +17,17 @@ import type { FloorplanGetBodySpacePoint } from './FloorplanGetBodySpacePoint';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface FloorplanGetBodySpace {
|
|
19
19
|
/**
|
|
20
|
-
* Height the space ends at in 3D, in the
|
|
20
|
+
* Height the space ends at in 3D, in the spaces' path units, as written by editors that predate metres. Absent once converted to metres.
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof FloorplanGetBodySpace
|
|
23
23
|
*/
|
|
24
24
|
endHeight?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Height the space ends at in 3D, in metres. Absent when the space uses the default heights.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof FloorplanGetBodySpace
|
|
29
|
+
*/
|
|
30
|
+
endHeightMetres?: number;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -35,11 +41,17 @@ export interface FloorplanGetBodySpace {
|
|
|
35
41
|
*/
|
|
36
42
|
paths: Array<Array<FloorplanGetBodySpacePoint>>;
|
|
37
43
|
/**
|
|
38
|
-
* Height the space starts at in 3D, in the
|
|
44
|
+
* Height the space starts at in 3D, in the spaces' path units, as written by editors that predate metres. Absent once converted to metres.
|
|
39
45
|
* @type {number}
|
|
40
46
|
* @memberof FloorplanGetBodySpace
|
|
41
47
|
*/
|
|
42
48
|
startHeight?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Height the space starts at in 3D, in metres. Absent when the space uses the default heights.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof FloorplanGetBodySpace
|
|
53
|
+
*/
|
|
54
|
+
startHeightMetres?: number;
|
|
43
55
|
}
|
|
44
56
|
/**
|
|
45
57
|
* Check if a given object implements the FloorplanGetBodySpace interface.
|
|
@@ -30,9 +30,11 @@ export function FloorplanGetBodySpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
33
|
+
'endHeightMetres': json['endHeightMetres'] == null ? undefined : json['endHeightMetres'],
|
|
33
34
|
'location': json['location'],
|
|
34
35
|
'paths': json['paths'],
|
|
35
36
|
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
37
|
+
'startHeightMetres': json['startHeightMetres'] == null ? undefined : json['startHeightMetres'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
export function FloorplanGetBodySpaceToJSON(json) {
|
|
@@ -44,8 +46,10 @@ export function FloorplanGetBodySpaceToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
44
46
|
}
|
|
45
47
|
return {
|
|
46
48
|
'endHeight': value['endHeight'],
|
|
49
|
+
'endHeightMetres': value['endHeightMetres'],
|
|
47
50
|
'location': value['location'],
|
|
48
51
|
'paths': value['paths'],
|
|
49
52
|
'startHeight': value['startHeight'],
|
|
53
|
+
'startHeightMetres': value['startHeightMetres'],
|
|
50
54
|
};
|
|
51
55
|
}
|
|
@@ -65,6 +65,12 @@ export interface FloorplanPatchParamsBody {
|
|
|
65
65
|
* @memberof FloorplanPatchParamsBody
|
|
66
66
|
*/
|
|
67
67
|
spaces?: FloorplanCreateSpaceRepeated;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof FloorplanPatchParamsBody
|
|
72
|
+
*/
|
|
73
|
+
unitsPerMetre?: number;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
76
|
* @type {string}
|
|
@@ -35,6 +35,7 @@ export function FloorplanPatchParamsBodyFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
35
|
'property': json['property'] == null ? undefined : json['property'],
|
|
36
36
|
'propertyNode': json['propertyNode'] == null ? undefined : json['propertyNode'],
|
|
37
37
|
'spaces': json['spaces'] == null ? undefined : FloorplanCreateSpaceRepeatedFromJSON(json['spaces']),
|
|
38
|
+
'unitsPerMetre': json['unitsPerMetre'] == null ? undefined : json['unitsPerMetre'],
|
|
38
39
|
'viewMode': json['viewMode'] == null ? undefined : json['viewMode'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
@@ -54,6 +55,7 @@ export function FloorplanPatchParamsBodyToJSONTyped(value, ignoreDiscriminator =
|
|
|
54
55
|
'property': value['property'],
|
|
55
56
|
'propertyNode': value['propertyNode'],
|
|
56
57
|
'spaces': FloorplanCreateSpaceRepeatedToJSON(value['spaces']),
|
|
58
|
+
'unitsPerMetre': value['unitsPerMetre'],
|
|
57
59
|
'viewMode': value['viewMode'],
|
|
58
60
|
};
|
|
59
61
|
}
|
|
@@ -38,6 +38,7 @@ export function ScenarioChangelogBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'createdAt': json['createdAt'],
|
|
40
40
|
'description': json['description'],
|
|
41
|
+
'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
|
|
41
42
|
'layers': (json['layers'].map(LayerFromJSON)),
|
|
42
43
|
'modifiedAt': json['modifiedAt'],
|
|
43
44
|
'name': json['name'],
|
|
@@ -53,6 +54,7 @@ export function ScenarioChangelogBodyToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
53
54
|
return {
|
|
54
55
|
'createdAt': value['createdAt'],
|
|
55
56
|
'description': value['description'],
|
|
57
|
+
'hexCode': value['hexCode'],
|
|
56
58
|
'layers': (value['layers'].map(LayerToJSON)),
|
|
57
59
|
'modifiedAt': value['modifiedAt'],
|
|
58
60
|
'name': value['name'],
|
|
@@ -33,6 +33,7 @@ export function ScenarioCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'description': json['description'],
|
|
36
|
+
'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
|
|
36
37
|
'layers': (json['layers'].map(LayerFromJSON)),
|
|
37
38
|
'name': json['name'],
|
|
38
39
|
};
|
|
@@ -46,6 +47,7 @@ export function ScenarioCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'description': value['description'],
|
|
50
|
+
'hexCode': value['hexCode'],
|
|
49
51
|
'layers': (value['layers'].map(LayerToJSON)),
|
|
50
52
|
'name': value['name'],
|
|
51
53
|
};
|
|
@@ -16,12 +16,24 @@ import type { Layer } from './Layer';
|
|
|
16
16
|
* @interface ScenarioPatch
|
|
17
17
|
*/
|
|
18
18
|
export interface ScenarioPatch {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ScenarioPatch
|
|
23
|
+
*/
|
|
24
|
+
clearLayers?: boolean;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
22
28
|
* @memberof ScenarioPatch
|
|
23
29
|
*/
|
|
24
30
|
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ScenarioPatch
|
|
35
|
+
*/
|
|
36
|
+
hexCode?: string;
|
|
25
37
|
/**
|
|
26
38
|
*
|
|
27
39
|
* @type {Array<Layer>}
|
|
@@ -28,7 +28,9 @@ export function ScenarioPatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return json;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
|
+
'clearLayers': json['clearLayers'] == null ? undefined : json['clearLayers'],
|
|
31
32
|
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
|
|
32
34
|
'layers': (json['layers'].map(LayerFromJSON)),
|
|
33
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
34
36
|
};
|
|
@@ -41,7 +43,9 @@ export function ScenarioPatchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
43
|
return value;
|
|
42
44
|
}
|
|
43
45
|
return {
|
|
46
|
+
'clearLayers': value['clearLayers'],
|
|
44
47
|
'description': value['description'],
|
|
48
|
+
'hexCode': value['hexCode'],
|
|
45
49
|
'layers': (value['layers'].map(LayerToJSON)),
|
|
46
50
|
'name': value['name'],
|
|
47
51
|
};
|
|
@@ -17,6 +17,12 @@ import type { FilterGroup } from './FilterGroup';
|
|
|
17
17
|
* @interface TopDownModelEntryUpdate
|
|
18
18
|
*/
|
|
19
19
|
export interface TopDownModelEntryUpdate {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof TopDownModelEntryUpdate
|
|
24
|
+
*/
|
|
25
|
+
clearObjects?: boolean;
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
* @type {string}
|
|
@@ -31,6 +31,7 @@ export function TopDownModelEntryUpdateFromJSONTyped(json, ignoreDiscriminator)
|
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
|
+
'clearObjects': json['clearObjects'] == null ? undefined : json['clearObjects'],
|
|
34
35
|
'id': json['id'],
|
|
35
36
|
'objects': (json['objects'].map(FilterGroupFromJSON)),
|
|
36
37
|
'properties': json['properties'] == null ? undefined : TopDownModelPropertiesFromJSON(json['properties']),
|
|
@@ -44,6 +45,7 @@ export function TopDownModelEntryUpdateToJSONTyped(value, ignoreDiscriminator =
|
|
|
44
45
|
return value;
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
48
|
+
'clearObjects': value['clearObjects'],
|
|
47
49
|
'id': value['id'],
|
|
48
50
|
'objects': (value['objects'].map(FilterGroupToJSON)),
|
|
49
51
|
'properties': TopDownModelPropertiesToJSON(value['properties']),
|
|
@@ -45,6 +45,7 @@ function CalcListEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
47
|
'_function': (0, MaybeVarFunc_1.MaybeVarFuncFromJSON)(json['function']),
|
|
48
|
+
'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
|
|
48
49
|
'name': json['name'],
|
|
49
50
|
'params': ((0, runtime_1.mapValues)(json['params'], ParameterType_1.ParameterTypeFromJSON)),
|
|
50
51
|
'scenario': (0, MaybeVarStr_1.MaybeVarStrFromJSON)(json['scenario']),
|
|
@@ -59,6 +60,7 @@ function CalcListEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
60
|
}
|
|
60
61
|
return {
|
|
61
62
|
'function': (0, MaybeVarFunc_1.MaybeVarFuncToJSON)(value['_function']),
|
|
63
|
+
'hexCode': value['hexCode'],
|
|
62
64
|
'name': value['name'],
|
|
63
65
|
'params': ((0, runtime_1.mapValues)(value['params'], ParameterType_1.ParameterTypeToJSON)),
|
|
64
66
|
'scenario': (0, MaybeVarStr_1.MaybeVarStrToJSON)(value['scenario']),
|
package/dist/models/CalcRes.d.ts
CHANGED
package/dist/models/CalcRes.js
CHANGED
|
@@ -25,6 +25,8 @@ const CalcAxis_1 = require("./CalcAxis");
|
|
|
25
25
|
function instanceOfCalcRes(value) {
|
|
26
26
|
if (!('axes' in value) || value['axes'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('columnHexCodes' in value) || value['columnHexCodes'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('values' in value) || value['values'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
return true;
|
|
@@ -38,6 +40,7 @@ function CalcResFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
}
|
|
39
41
|
return {
|
|
40
42
|
'axes': (json['axes'].map(CalcAxis_1.CalcAxisFromJSON)),
|
|
43
|
+
'columnHexCodes': json['columnHexCodes'],
|
|
41
44
|
'values': json['values'],
|
|
42
45
|
};
|
|
43
46
|
}
|
|
@@ -50,6 +53,7 @@ function CalcResToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
53
|
}
|
|
51
54
|
return {
|
|
52
55
|
'axes': (value['axes'].map(CalcAxis_1.CalcAxisToJSON)),
|
|
56
|
+
'columnHexCodes': value['columnHexCodes'],
|
|
53
57
|
'values': value['values'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -22,6 +22,12 @@ export interface FloorplanCreateSpace {
|
|
|
22
22
|
* @memberof FloorplanCreateSpace
|
|
23
23
|
*/
|
|
24
24
|
endHeight?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof FloorplanCreateSpace
|
|
29
|
+
*/
|
|
30
|
+
endHeightMetres?: number;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -40,6 +46,12 @@ export interface FloorplanCreateSpace {
|
|
|
40
46
|
* @memberof FloorplanCreateSpace
|
|
41
47
|
*/
|
|
42
48
|
startHeight?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof FloorplanCreateSpace
|
|
53
|
+
*/
|
|
54
|
+
startHeightMetres?: number;
|
|
43
55
|
}
|
|
44
56
|
/**
|
|
45
57
|
* Check if a given object implements the FloorplanCreateSpace interface.
|
|
@@ -38,9 +38,11 @@ function FloorplanCreateSpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
41
|
+
'endHeightMetres': json['endHeightMetres'] == null ? undefined : json['endHeightMetres'],
|
|
41
42
|
'location': json['location'],
|
|
42
43
|
'paths': (json['paths'].map(FloorplanSpaceChangelogPath_1.FloorplanSpaceChangelogPathFromJSON)),
|
|
43
44
|
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
45
|
+
'startHeightMetres': json['startHeightMetres'] == null ? undefined : json['startHeightMetres'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function FloorplanCreateSpaceToJSON(json) {
|
|
@@ -52,8 +54,10 @@ function FloorplanCreateSpaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
54
56
|
'endHeight': value['endHeight'],
|
|
57
|
+
'endHeightMetres': value['endHeightMetres'],
|
|
55
58
|
'location': value['location'],
|
|
56
59
|
'paths': (value['paths'].map(FloorplanSpaceChangelogPath_1.FloorplanSpaceChangelogPathToJSON)),
|
|
57
60
|
'startHeight': value['startHeight'],
|
|
61
|
+
'startHeightMetres': value['startHeightMetres'],
|
|
58
62
|
};
|
|
59
63
|
}
|
|
@@ -65,6 +65,12 @@ export interface FloorplanGetBody {
|
|
|
65
65
|
* @memberof FloorplanGetBody
|
|
66
66
|
*/
|
|
67
67
|
spaces: Array<FloorplanGetBodySpace>;
|
|
68
|
+
/**
|
|
69
|
+
* How many of the spaces' path units make one metre, which scales space heights in 3D. Absent until the floor plan's scale has been set.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof FloorplanGetBody
|
|
72
|
+
*/
|
|
73
|
+
unitsPerMetre?: number;
|
|
68
74
|
/**
|
|
69
75
|
* Whether the floor plan can be shown in 2D, in 3D, or both. Defaults to 2d-and-3d.
|
|
70
76
|
* @type {string}
|
|
@@ -65,6 +65,7 @@ function FloorplanGetBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'property': json['property'],
|
|
66
66
|
'propertyNode': json['propertyNode'],
|
|
67
67
|
'spaces': (json['spaces'].map(FloorplanGetBodySpace_1.FloorplanGetBodySpaceFromJSON)),
|
|
68
|
+
'unitsPerMetre': json['unitsPerMetre'] == null ? undefined : json['unitsPerMetre'],
|
|
68
69
|
'viewMode': json['viewMode'],
|
|
69
70
|
};
|
|
70
71
|
}
|
|
@@ -84,6 +85,7 @@ function FloorplanGetBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
84
85
|
'property': value['property'],
|
|
85
86
|
'propertyNode': value['propertyNode'],
|
|
86
87
|
'spaces': (value['spaces'].map(FloorplanGetBodySpace_1.FloorplanGetBodySpaceToJSON)),
|
|
88
|
+
'unitsPerMetre': value['unitsPerMetre'],
|
|
87
89
|
'viewMode': value['viewMode'],
|
|
88
90
|
};
|
|
89
91
|
}
|
|
@@ -17,11 +17,17 @@ import type { FloorplanGetBodySpacePoint } from './FloorplanGetBodySpacePoint';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface FloorplanGetBodySpace {
|
|
19
19
|
/**
|
|
20
|
-
* Height the space ends at in 3D, in the
|
|
20
|
+
* Height the space ends at in 3D, in the spaces' path units, as written by editors that predate metres. Absent once converted to metres.
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof FloorplanGetBodySpace
|
|
23
23
|
*/
|
|
24
24
|
endHeight?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Height the space ends at in 3D, in metres. Absent when the space uses the default heights.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof FloorplanGetBodySpace
|
|
29
|
+
*/
|
|
30
|
+
endHeightMetres?: number;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -35,11 +41,17 @@ export interface FloorplanGetBodySpace {
|
|
|
35
41
|
*/
|
|
36
42
|
paths: Array<Array<FloorplanGetBodySpacePoint>>;
|
|
37
43
|
/**
|
|
38
|
-
* Height the space starts at in 3D, in the
|
|
44
|
+
* Height the space starts at in 3D, in the spaces' path units, as written by editors that predate metres. Absent once converted to metres.
|
|
39
45
|
* @type {number}
|
|
40
46
|
* @memberof FloorplanGetBodySpace
|
|
41
47
|
*/
|
|
42
48
|
startHeight?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Height the space starts at in 3D, in metres. Absent when the space uses the default heights.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof FloorplanGetBodySpace
|
|
53
|
+
*/
|
|
54
|
+
startHeightMetres?: number;
|
|
43
55
|
}
|
|
44
56
|
/**
|
|
45
57
|
* Check if a given object implements the FloorplanGetBodySpace interface.
|
|
@@ -37,9 +37,11 @@ function FloorplanGetBodySpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
40
|
+
'endHeightMetres': json['endHeightMetres'] == null ? undefined : json['endHeightMetres'],
|
|
40
41
|
'location': json['location'],
|
|
41
42
|
'paths': json['paths'],
|
|
42
43
|
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
44
|
+
'startHeightMetres': json['startHeightMetres'] == null ? undefined : json['startHeightMetres'],
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
function FloorplanGetBodySpaceToJSON(json) {
|
|
@@ -51,8 +53,10 @@ function FloorplanGetBodySpaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
53
|
}
|
|
52
54
|
return {
|
|
53
55
|
'endHeight': value['endHeight'],
|
|
56
|
+
'endHeightMetres': value['endHeightMetres'],
|
|
54
57
|
'location': value['location'],
|
|
55
58
|
'paths': value['paths'],
|
|
56
59
|
'startHeight': value['startHeight'],
|
|
60
|
+
'startHeightMetres': value['startHeightMetres'],
|
|
57
61
|
};
|
|
58
62
|
}
|
|
@@ -65,6 +65,12 @@ export interface FloorplanPatchParamsBody {
|
|
|
65
65
|
* @memberof FloorplanPatchParamsBody
|
|
66
66
|
*/
|
|
67
67
|
spaces?: FloorplanCreateSpaceRepeated;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof FloorplanPatchParamsBody
|
|
72
|
+
*/
|
|
73
|
+
unitsPerMetre?: number;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
76
|
* @type {string}
|
|
@@ -42,6 +42,7 @@ function FloorplanPatchParamsBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'property': json['property'] == null ? undefined : json['property'],
|
|
43
43
|
'propertyNode': json['propertyNode'] == null ? undefined : json['propertyNode'],
|
|
44
44
|
'spaces': json['spaces'] == null ? undefined : (0, FloorplanCreateSpaceRepeated_1.FloorplanCreateSpaceRepeatedFromJSON)(json['spaces']),
|
|
45
|
+
'unitsPerMetre': json['unitsPerMetre'] == null ? undefined : json['unitsPerMetre'],
|
|
45
46
|
'viewMode': json['viewMode'] == null ? undefined : json['viewMode'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
@@ -61,6 +62,7 @@ function FloorplanPatchParamsBodyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
61
62
|
'property': value['property'],
|
|
62
63
|
'propertyNode': value['propertyNode'],
|
|
63
64
|
'spaces': (0, FloorplanCreateSpaceRepeated_1.FloorplanCreateSpaceRepeatedToJSON)(value['spaces']),
|
|
65
|
+
'unitsPerMetre': value['unitsPerMetre'],
|
|
64
66
|
'viewMode': value['viewMode'],
|
|
65
67
|
};
|
|
66
68
|
}
|
|
@@ -45,6 +45,7 @@ function ScenarioChangelogBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
return {
|
|
46
46
|
'createdAt': json['createdAt'],
|
|
47
47
|
'description': json['description'],
|
|
48
|
+
'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
|
|
48
49
|
'layers': (json['layers'].map(Layer_1.LayerFromJSON)),
|
|
49
50
|
'modifiedAt': json['modifiedAt'],
|
|
50
51
|
'name': json['name'],
|
|
@@ -60,6 +61,7 @@ function ScenarioChangelogBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
61
|
return {
|
|
61
62
|
'createdAt': value['createdAt'],
|
|
62
63
|
'description': value['description'],
|
|
64
|
+
'hexCode': value['hexCode'],
|
|
63
65
|
'layers': (value['layers'].map(Layer_1.LayerToJSON)),
|
|
64
66
|
'modifiedAt': value['modifiedAt'],
|
|
65
67
|
'name': value['name'],
|
|
@@ -40,6 +40,7 @@ function ScenarioCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
42
|
'description': json['description'],
|
|
43
|
+
'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
|
|
43
44
|
'layers': (json['layers'].map(Layer_1.LayerFromJSON)),
|
|
44
45
|
'name': json['name'],
|
|
45
46
|
};
|
|
@@ -53,6 +54,7 @@ function ScenarioCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
55
56
|
'description': value['description'],
|
|
57
|
+
'hexCode': value['hexCode'],
|
|
56
58
|
'layers': (value['layers'].map(Layer_1.LayerToJSON)),
|
|
57
59
|
'name': value['name'],
|
|
58
60
|
};
|
|
@@ -16,12 +16,24 @@ import type { Layer } from './Layer';
|
|
|
16
16
|
* @interface ScenarioPatch
|
|
17
17
|
*/
|
|
18
18
|
export interface ScenarioPatch {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ScenarioPatch
|
|
23
|
+
*/
|
|
24
|
+
clearLayers?: boolean;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
22
28
|
* @memberof ScenarioPatch
|
|
23
29
|
*/
|
|
24
30
|
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ScenarioPatch
|
|
35
|
+
*/
|
|
36
|
+
hexCode?: string;
|
|
25
37
|
/**
|
|
26
38
|
*
|
|
27
39
|
* @type {Array<Layer>}
|
|
@@ -35,7 +35,9 @@ function ScenarioPatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
|
+
'clearLayers': json['clearLayers'] == null ? undefined : json['clearLayers'],
|
|
38
39
|
'description': json['description'] == null ? undefined : json['description'],
|
|
40
|
+
'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
|
|
39
41
|
'layers': (json['layers'].map(Layer_1.LayerFromJSON)),
|
|
40
42
|
'name': json['name'] == null ? undefined : json['name'],
|
|
41
43
|
};
|
|
@@ -48,7 +50,9 @@ function ScenarioPatchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
return value;
|
|
49
51
|
}
|
|
50
52
|
return {
|
|
53
|
+
'clearLayers': value['clearLayers'],
|
|
51
54
|
'description': value['description'],
|
|
55
|
+
'hexCode': value['hexCode'],
|
|
52
56
|
'layers': (value['layers'].map(Layer_1.LayerToJSON)),
|
|
53
57
|
'name': value['name'],
|
|
54
58
|
};
|
|
@@ -17,6 +17,12 @@ import type { FilterGroup } from './FilterGroup';
|
|
|
17
17
|
* @interface TopDownModelEntryUpdate
|
|
18
18
|
*/
|
|
19
19
|
export interface TopDownModelEntryUpdate {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof TopDownModelEntryUpdate
|
|
24
|
+
*/
|
|
25
|
+
clearObjects?: boolean;
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
* @type {string}
|