@spaciv/sdk 0.1.7 → 0.1.9
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/.openapi-generator/FILES +2 -8
- package/README.md +2 -2
- package/dist/apis/AnalysisApi.d.ts +4 -4
- package/dist/apis/AnalysisApi.js +2 -2
- package/dist/apis/FloorPlansApi.d.ts +8 -8
- package/dist/apis/FloorPlansApi.js +4 -4
- package/dist/esm/apis/AnalysisApi.d.ts +4 -4
- package/dist/esm/apis/AnalysisApi.js +2 -2
- package/dist/esm/apis/FloorPlansApi.d.ts +8 -8
- package/dist/esm/apis/FloorPlansApi.js +4 -4
- package/dist/esm/models/{NodeOffset.d.ts → CalcAxis.d.ts} +27 -16
- package/dist/esm/models/{NodeOffset.js → CalcAxis.js} +25 -15
- package/dist/esm/models/{CalcNode.d.ts → CalcAxisMember.d.ts} +24 -18
- package/dist/esm/models/{CalcNode.js → CalcAxisMember.js} +17 -15
- package/dist/esm/models/CalcBody.d.ts +6 -0
- package/dist/esm/models/CalcBody.js +2 -0
- package/dist/esm/models/CalcErrorBody.d.ts +1 -0
- package/dist/esm/models/CalcErrorBody.js +2 -1
- package/dist/esm/models/CalcRes.d.ts +5 -6
- package/dist/esm/models/CalcRes.js +7 -8
- package/dist/esm/models/FloorplanCreateSpace.d.ts +12 -0
- package/dist/esm/models/FloorplanCreateSpace.js +4 -0
- package/dist/esm/models/FloorplanGetBody.d.ts +15 -0
- package/dist/esm/models/FloorplanGetBody.js +12 -0
- package/dist/esm/models/FloorplanGetBodySpace.d.ts +12 -0
- 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/index.d.ts +2 -8
- package/dist/esm/models/index.js +2 -8
- package/dist/{esm/models/TwoDLegendEntry.d.ts → models/CalcAxis.d.ts} +27 -15
- package/dist/models/{TwoDLegendEntry.js → CalcAxis.js} +31 -19
- package/dist/models/{CalcNode.d.ts → CalcAxisMember.d.ts} +24 -18
- package/dist/models/{CalcNode.js → CalcAxisMember.js} +22 -20
- package/dist/models/CalcBody.d.ts +6 -0
- package/dist/models/CalcBody.js +2 -0
- package/dist/models/CalcErrorBody.d.ts +1 -0
- package/dist/models/CalcErrorBody.js +2 -1
- package/dist/models/CalcRes.d.ts +5 -6
- package/dist/models/CalcRes.js +7 -8
- package/dist/models/FloorplanCreateSpace.d.ts +12 -0
- package/dist/models/FloorplanCreateSpace.js +4 -0
- package/dist/models/FloorplanGetBody.d.ts +15 -0
- package/dist/models/FloorplanGetBody.js +13 -0
- package/dist/models/FloorplanGetBodySpace.d.ts +12 -0
- 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/index.d.ts +2 -8
- package/dist/models/index.js +2 -8
- package/package.json +1 -1
- package/src/apis/AnalysisApi.ts +4 -4
- package/src/apis/FloorPlansApi.ts +8 -8
- package/src/models/{NodeOffset.ts → CalcAxis.ts} +43 -29
- package/src/models/{CalcNode.ts → CalcAxisMember.ts} +34 -26
- package/src/models/CalcBody.ts +8 -0
- package/src/models/CalcErrorBody.ts +2 -1
- package/src/models/CalcRes.ts +16 -23
- package/src/models/FloorplanCreateSpace.ts +16 -0
- package/src/models/FloorplanGetBody.ts +21 -0
- package/src/models/FloorplanGetBodySpace.ts +16 -0
- package/src/models/FloorplanPatchParamsBody.ts +8 -0
- package/src/models/index.ts +2 -8
- package/dist/esm/models/Legend.d.ts +0 -23
- package/dist/esm/models/Legend.js +0 -51
- package/dist/esm/models/LegendList.d.ts +0 -32
- package/dist/esm/models/LegendList.js +0 -43
- package/dist/esm/models/LegendOneOf.d.ts +0 -33
- package/dist/esm/models/LegendOneOf.js +0 -44
- package/dist/esm/models/LegendOneOf1.d.ts +0 -33
- package/dist/esm/models/LegendOneOf1.js +0 -44
- package/dist/esm/models/TwoDLegendEntry.js +0 -47
- package/dist/esm/models/TwoDLegendList.d.ts +0 -33
- package/dist/esm/models/TwoDLegendList.js +0 -44
- package/dist/models/Legend.d.ts +0 -23
- package/dist/models/Legend.js +0 -57
- package/dist/models/LegendList.d.ts +0 -32
- package/dist/models/LegendList.js +0 -50
- package/dist/models/LegendOneOf.d.ts +0 -33
- package/dist/models/LegendOneOf.js +0 -51
- package/dist/models/LegendOneOf1.d.ts +0 -33
- package/dist/models/LegendOneOf1.js +0 -51
- package/dist/models/NodeOffset.d.ts +0 -39
- package/dist/models/NodeOffset.js +0 -55
- package/dist/models/TwoDLegendEntry.d.ts +0 -38
- package/dist/models/TwoDLegendList.d.ts +0 -33
- package/dist/models/TwoDLegendList.js +0 -51
- package/src/models/Legend.ts +0 -76
- package/src/models/LegendList.ts +0 -66
- package/src/models/LegendOneOf.ts +0 -74
- package/src/models/LegendOneOf1.ts +0 -74
- package/src/models/TwoDLegendEntry.ts +0 -75
- package/src/models/TwoDLegendList.ts +0 -74
|
@@ -12,39 +12,45 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface CalcAxisMember
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface CalcAxisMember {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {
|
|
21
|
-
* @memberof
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CalcAxisMember
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
day: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CalcAxisMember
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
id: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof CalcAxisMember
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CalcAxisMember
|
|
40
|
+
*/
|
|
41
|
+
parent?: number;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
45
|
+
* @memberof CalcAxisMember
|
|
40
46
|
*/
|
|
41
|
-
|
|
47
|
+
scenario: string;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
|
-
* Check if a given object implements the
|
|
50
|
+
* Check if a given object implements the CalcAxisMember interface.
|
|
45
51
|
*/
|
|
46
|
-
export declare function
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function
|
|
49
|
-
export declare function
|
|
50
|
-
export declare function
|
|
52
|
+
export declare function instanceOfCalcAxisMember(value: object): value is CalcAxisMember;
|
|
53
|
+
export declare function CalcAxisMemberFromJSON(json: any): CalcAxisMember;
|
|
54
|
+
export declare function CalcAxisMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcAxisMember;
|
|
55
|
+
export declare function CalcAxisMemberToJSON(json: any): CalcAxisMember;
|
|
56
|
+
export declare function CalcAxisMemberToJSONTyped(value?: CalcAxisMember | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,50 +13,52 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfCalcAxisMember = instanceOfCalcAxisMember;
|
|
17
|
+
exports.CalcAxisMemberFromJSON = CalcAxisMemberFromJSON;
|
|
18
|
+
exports.CalcAxisMemberFromJSONTyped = CalcAxisMemberFromJSONTyped;
|
|
19
|
+
exports.CalcAxisMemberToJSON = CalcAxisMemberToJSON;
|
|
20
|
+
exports.CalcAxisMemberToJSONTyped = CalcAxisMemberToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the CalcAxisMember interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
25
|
-
if (!('
|
|
26
|
-
return false;
|
|
27
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
24
|
+
function instanceOfCalcAxisMember(value) {
|
|
25
|
+
if (!('day' in value) || value['day'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('name' in value) || value['name'] === undefined)
|
|
32
30
|
return false;
|
|
31
|
+
if (!('scenario' in value) || value['scenario'] === undefined)
|
|
32
|
+
return false;
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function CalcAxisMemberFromJSON(json) {
|
|
36
|
+
return CalcAxisMemberFromJSONTyped(json, false);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function CalcAxisMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
if (json == null) {
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
-
'
|
|
44
|
-
'data': json['data'],
|
|
43
|
+
'day': json['day'],
|
|
45
44
|
'id': json['id'],
|
|
46
45
|
'name': json['name'],
|
|
46
|
+
'parent': json['parent'] == null ? undefined : json['parent'],
|
|
47
|
+
'scenario': json['scenario'],
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
50
|
+
function CalcAxisMemberToJSON(json) {
|
|
51
|
+
return CalcAxisMemberToJSONTyped(json, false);
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function CalcAxisMemberToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
54
|
if (value == null) {
|
|
54
55
|
return value;
|
|
55
56
|
}
|
|
56
57
|
return {
|
|
57
|
-
'
|
|
58
|
-
'data': value['data'],
|
|
58
|
+
'day': value['day'],
|
|
59
59
|
'id': value['id'],
|
|
60
60
|
'name': value['name'],
|
|
61
|
+
'parent': value['parent'],
|
|
62
|
+
'scenario': value['scenario'],
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -24,6 +24,12 @@ export interface CalcBody {
|
|
|
24
24
|
* @memberof CalcBody
|
|
25
25
|
*/
|
|
26
26
|
data: DataShapes;
|
|
27
|
+
/**
|
|
28
|
+
* The order to lay the result's values out in, outermost first. `1` is day, `2` tree node, `3` series, `4` scenario and `5` group. Every result has day and tree node; a card adds series (single values, categorisation mixes, lists and tree lists), scenario (scenario comparisons and tree lists over scenarios) or, for a 2D list, group for its rows and series or scenario for its columns. List each of the card's dimensions exactly once, in any order; leave this out for day, tree node, then the card's own dimensions. Any other list is rejected with `400` and `kind` `invalid_dimensions`.
|
|
29
|
+
* @type {Array<number>}
|
|
30
|
+
* @memberof CalcBody
|
|
31
|
+
*/
|
|
32
|
+
dimensions?: Array<number>;
|
|
27
33
|
/**
|
|
28
34
|
*
|
|
29
35
|
* @type {Array<FilterGroup>}
|
package/dist/models/CalcBody.js
CHANGED
|
@@ -41,6 +41,7 @@ function CalcBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
43
|
'data': (0, DataShapes_1.DataShapesFromJSON)(json['data']),
|
|
44
|
+
'dimensions': json['dimensions'] == null ? undefined : json['dimensions'],
|
|
44
45
|
'filters': (json['filters'].map(FilterGroup_1.FilterGroupFromJSON)),
|
|
45
46
|
'includeObjects': json['includeObjects'] == null ? undefined : json['includeObjects'],
|
|
46
47
|
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
@@ -56,6 +57,7 @@ function CalcBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
57
|
}
|
|
57
58
|
return {
|
|
58
59
|
'data': (0, DataShapes_1.DataShapesToJSON)(value['data']),
|
|
60
|
+
'dimensions': value['dimensions'],
|
|
59
61
|
'filters': (value['filters'].map(FilterGroup_1.FilterGroupToJSON)),
|
|
60
62
|
'includeObjects': value['includeObjects'],
|
|
61
63
|
'limit': value['limit'],
|
|
@@ -127,6 +127,7 @@ export declare const CalcErrorBodyKindEnum: {
|
|
|
127
127
|
readonly MissingSpaceRule: "missing_space_rule";
|
|
128
128
|
readonly MissingTopDownModel: "missing_top_down_model";
|
|
129
129
|
readonly InvalidModifierFormula: "invalid_modifier_formula";
|
|
130
|
+
readonly InvalidDimensions: "invalid_dimensions";
|
|
130
131
|
};
|
|
131
132
|
export type CalcErrorBodyKindEnum = typeof CalcErrorBodyKindEnum[keyof typeof CalcErrorBodyKindEnum];
|
|
132
133
|
/**
|
|
@@ -45,7 +45,8 @@ exports.CalcErrorBodyKindEnum = {
|
|
|
45
45
|
MissingAttribute: 'missing_attribute',
|
|
46
46
|
MissingSpaceRule: 'missing_space_rule',
|
|
47
47
|
MissingTopDownModel: 'missing_top_down_model',
|
|
48
|
-
InvalidModifierFormula: 'invalid_modifier_formula'
|
|
48
|
+
InvalidModifierFormula: 'invalid_modifier_formula',
|
|
49
|
+
InvalidDimensions: 'invalid_dimensions'
|
|
49
50
|
};
|
|
50
51
|
/**
|
|
51
52
|
* Check if a given object implements the CalcErrorBody interface.
|
package/dist/models/CalcRes.d.ts
CHANGED
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { NodeOffset } from './NodeOffset';
|
|
12
|
+
import type { CalcAxis } from './CalcAxis';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -19,16 +18,16 @@ import type { NodeOffset } from './NodeOffset';
|
|
|
19
18
|
export interface CalcRes {
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
22
|
-
* @type {
|
|
21
|
+
* @type {Array<CalcAxis>}
|
|
23
22
|
* @memberof CalcRes
|
|
24
23
|
*/
|
|
25
|
-
|
|
24
|
+
axes: Array<CalcAxis>;
|
|
26
25
|
/**
|
|
27
26
|
*
|
|
28
|
-
* @type {Array<
|
|
27
|
+
* @type {Array<number>}
|
|
29
28
|
* @memberof CalcRes
|
|
30
29
|
*/
|
|
31
|
-
|
|
30
|
+
values: Array<number>;
|
|
32
31
|
}
|
|
33
32
|
/**
|
|
34
33
|
* Check if a given object implements the CalcRes interface.
|
package/dist/models/CalcRes.js
CHANGED
|
@@ -18,15 +18,14 @@ exports.CalcResFromJSON = CalcResFromJSON;
|
|
|
18
18
|
exports.CalcResFromJSONTyped = CalcResFromJSONTyped;
|
|
19
19
|
exports.CalcResToJSON = CalcResToJSON;
|
|
20
20
|
exports.CalcResToJSONTyped = CalcResToJSONTyped;
|
|
21
|
-
const
|
|
22
|
-
const NodeOffset_1 = require("./NodeOffset");
|
|
21
|
+
const CalcAxis_1 = require("./CalcAxis");
|
|
23
22
|
/**
|
|
24
23
|
* Check if a given object implements the CalcRes interface.
|
|
25
24
|
*/
|
|
26
25
|
function instanceOfCalcRes(value) {
|
|
27
|
-
if (!('
|
|
26
|
+
if (!('axes' in value) || value['axes'] === undefined)
|
|
28
27
|
return false;
|
|
29
|
-
if (!('
|
|
28
|
+
if (!('values' in value) || value['values'] === undefined)
|
|
30
29
|
return false;
|
|
31
30
|
return true;
|
|
32
31
|
}
|
|
@@ -38,8 +37,8 @@ function CalcResFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
37
|
return json;
|
|
39
38
|
}
|
|
40
39
|
return {
|
|
41
|
-
'
|
|
42
|
-
'
|
|
40
|
+
'axes': (json['axes'].map(CalcAxis_1.CalcAxisFromJSON)),
|
|
41
|
+
'values': json['values'],
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
function CalcResToJSON(json) {
|
|
@@ -50,7 +49,7 @@ function CalcResToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
49
|
return value;
|
|
51
50
|
}
|
|
52
51
|
return {
|
|
53
|
-
'
|
|
54
|
-
'
|
|
52
|
+
'axes': (value['axes'].map(CalcAxis_1.CalcAxisToJSON)),
|
|
53
|
+
'values': value['values'],
|
|
55
54
|
};
|
|
56
55
|
}
|
|
@@ -16,6 +16,12 @@ import type { FloorplanSpaceChangelogPath } from './FloorplanSpaceChangelogPath'
|
|
|
16
16
|
* @interface FloorplanCreateSpace
|
|
17
17
|
*/
|
|
18
18
|
export interface FloorplanCreateSpace {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof FloorplanCreateSpace
|
|
23
|
+
*/
|
|
24
|
+
endHeight?: number;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -28,6 +34,12 @@ export interface FloorplanCreateSpace {
|
|
|
28
34
|
* @memberof FloorplanCreateSpace
|
|
29
35
|
*/
|
|
30
36
|
paths: Array<FloorplanSpaceChangelogPath>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof FloorplanCreateSpace
|
|
41
|
+
*/
|
|
42
|
+
startHeight?: number;
|
|
31
43
|
}
|
|
32
44
|
/**
|
|
33
45
|
* Check if a given object implements the FloorplanCreateSpace interface.
|
|
@@ -37,8 +37,10 @@ function FloorplanCreateSpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
+
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
40
41
|
'location': json['location'],
|
|
41
42
|
'paths': (json['paths'].map(FloorplanSpaceChangelogPath_1.FloorplanSpaceChangelogPathFromJSON)),
|
|
43
|
+
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
function FloorplanCreateSpaceToJSON(json) {
|
|
@@ -49,7 +51,9 @@ function FloorplanCreateSpaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
51
|
return value;
|
|
50
52
|
}
|
|
51
53
|
return {
|
|
54
|
+
'endHeight': value['endHeight'],
|
|
52
55
|
'location': value['location'],
|
|
53
56
|
'paths': (value['paths'].map(FloorplanSpaceChangelogPath_1.FloorplanSpaceChangelogPathToJSON)),
|
|
57
|
+
'startHeight': value['startHeight'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -65,7 +65,22 @@ export interface FloorplanGetBody {
|
|
|
65
65
|
* @memberof FloorplanGetBody
|
|
66
66
|
*/
|
|
67
67
|
spaces: Array<FloorplanGetBodySpace>;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the floor plan can be shown in 2D, in 3D, or both. Defaults to 2d-and-3d.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof FloorplanGetBody
|
|
72
|
+
*/
|
|
73
|
+
viewMode: FloorplanGetBodyViewModeEnum;
|
|
68
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const FloorplanGetBodyViewModeEnum: {
|
|
79
|
+
readonly _2dAnd3d: "2d-and-3d";
|
|
80
|
+
readonly _3dOnly: "3d-only";
|
|
81
|
+
readonly _2dOnly: "2d-only";
|
|
82
|
+
};
|
|
83
|
+
export type FloorplanGetBodyViewModeEnum = typeof FloorplanGetBodyViewModeEnum[keyof typeof FloorplanGetBodyViewModeEnum];
|
|
69
84
|
/**
|
|
70
85
|
* Check if a given object implements the FloorplanGetBody interface.
|
|
71
86
|
*/
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FloorplanGetBodyViewModeEnum = void 0;
|
|
16
17
|
exports.instanceOfFloorplanGetBody = instanceOfFloorplanGetBody;
|
|
17
18
|
exports.FloorplanGetBodyFromJSON = FloorplanGetBodyFromJSON;
|
|
18
19
|
exports.FloorplanGetBodyFromJSONTyped = FloorplanGetBodyFromJSONTyped;
|
|
@@ -20,6 +21,14 @@ exports.FloorplanGetBodyToJSON = FloorplanGetBodyToJSON;
|
|
|
20
21
|
exports.FloorplanGetBodyToJSONTyped = FloorplanGetBodyToJSONTyped;
|
|
21
22
|
const FloorplanGetBodyOverlayOffset_1 = require("./FloorplanGetBodyOverlayOffset");
|
|
22
23
|
const FloorplanGetBodySpace_1 = require("./FloorplanGetBodySpace");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.FloorplanGetBodyViewModeEnum = {
|
|
28
|
+
_2dAnd3d: '2d-and-3d',
|
|
29
|
+
_3dOnly: '3d-only',
|
|
30
|
+
_2dOnly: '2d-only'
|
|
31
|
+
};
|
|
23
32
|
/**
|
|
24
33
|
* Check if a given object implements the FloorplanGetBody interface.
|
|
25
34
|
*/
|
|
@@ -36,6 +45,8 @@ function instanceOfFloorplanGetBody(value) {
|
|
|
36
45
|
return false;
|
|
37
46
|
if (!('spaces' in value) || value['spaces'] === undefined)
|
|
38
47
|
return false;
|
|
48
|
+
if (!('viewMode' in value) || value['viewMode'] === undefined)
|
|
49
|
+
return false;
|
|
39
50
|
return true;
|
|
40
51
|
}
|
|
41
52
|
function FloorplanGetBodyFromJSON(json) {
|
|
@@ -54,6 +65,7 @@ function FloorplanGetBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
65
|
'property': json['property'],
|
|
55
66
|
'propertyNode': json['propertyNode'],
|
|
56
67
|
'spaces': (json['spaces'].map(FloorplanGetBodySpace_1.FloorplanGetBodySpaceFromJSON)),
|
|
68
|
+
'viewMode': json['viewMode'],
|
|
57
69
|
};
|
|
58
70
|
}
|
|
59
71
|
function FloorplanGetBodyToJSON(json) {
|
|
@@ -72,5 +84,6 @@ function FloorplanGetBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
84
|
'property': value['property'],
|
|
73
85
|
'propertyNode': value['propertyNode'],
|
|
74
86
|
'spaces': (value['spaces'].map(FloorplanGetBodySpace_1.FloorplanGetBodySpaceToJSON)),
|
|
87
|
+
'viewMode': value['viewMode'],
|
|
75
88
|
};
|
|
76
89
|
}
|
|
@@ -16,6 +16,12 @@ import type { FloorplanGetBodySpacePoint } from './FloorplanGetBodySpacePoint';
|
|
|
16
16
|
* @interface FloorplanGetBodySpace
|
|
17
17
|
*/
|
|
18
18
|
export interface FloorplanGetBodySpace {
|
|
19
|
+
/**
|
|
20
|
+
* Height the space ends at in 3D, in the same units as its paths. Absent when the space uses the default heights.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof FloorplanGetBodySpace
|
|
23
|
+
*/
|
|
24
|
+
endHeight?: number;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -28,6 +34,12 @@ export interface FloorplanGetBodySpace {
|
|
|
28
34
|
* @memberof FloorplanGetBodySpace
|
|
29
35
|
*/
|
|
30
36
|
paths: Array<Array<FloorplanGetBodySpacePoint>>;
|
|
37
|
+
/**
|
|
38
|
+
* Height the space starts at in 3D, in the same units as its paths. Absent when the space uses the default heights.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof FloorplanGetBodySpace
|
|
41
|
+
*/
|
|
42
|
+
startHeight?: number;
|
|
31
43
|
}
|
|
32
44
|
/**
|
|
33
45
|
* Check if a given object implements the FloorplanGetBodySpace interface.
|
|
@@ -36,8 +36,10 @@ function FloorplanGetBodySpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
+
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
39
40
|
'location': json['location'],
|
|
40
41
|
'paths': json['paths'],
|
|
42
|
+
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
function FloorplanGetBodySpaceToJSON(json) {
|
|
@@ -48,7 +50,9 @@ function FloorplanGetBodySpaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
return value;
|
|
49
51
|
}
|
|
50
52
|
return {
|
|
53
|
+
'endHeight': value['endHeight'],
|
|
51
54
|
'location': value['location'],
|
|
52
55
|
'paths': value['paths'],
|
|
56
|
+
'startHeight': value['startHeight'],
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -65,6 +65,12 @@ export interface FloorplanPatchParamsBody {
|
|
|
65
65
|
* @memberof FloorplanPatchParamsBody
|
|
66
66
|
*/
|
|
67
67
|
spaces?: FloorplanCreateSpaceRepeated;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof FloorplanPatchParamsBody
|
|
72
|
+
*/
|
|
73
|
+
viewMode?: string;
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* Check if a given object implements the FloorplanPatchParamsBody interface.
|
|
@@ -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
|
+
'viewMode': json['viewMode'] == null ? undefined : json['viewMode'],
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
function FloorplanPatchParamsBodyToJSON(json) {
|
|
@@ -60,5 +61,6 @@ function FloorplanPatchParamsBodyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
60
61
|
'property': value['property'],
|
|
61
62
|
'propertyNode': value['propertyNode'],
|
|
62
63
|
'spaces': (0, FloorplanCreateSpaceRepeated_1.FloorplanCreateSpaceRepeatedToJSON)(value['spaces']),
|
|
64
|
+
'viewMode': value['viewMode'],
|
|
63
65
|
};
|
|
64
66
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -54,13 +54,14 @@ export * from './AuthenticationEmail';
|
|
|
54
54
|
export * from './AuthenticationPreferredChanel';
|
|
55
55
|
export * from './AuthenticationPublic';
|
|
56
56
|
export * from './Branding';
|
|
57
|
+
export * from './CalcAxis';
|
|
58
|
+
export * from './CalcAxisMember';
|
|
57
59
|
export * from './CalcBody';
|
|
58
60
|
export * from './CalcChildren';
|
|
59
61
|
export * from './CalcErrorBody';
|
|
60
62
|
export * from './CalcList';
|
|
61
63
|
export * from './CalcListEntry';
|
|
62
64
|
export * from './CalcListTwoD';
|
|
63
|
-
export * from './CalcNode';
|
|
64
65
|
export * from './CalcRes';
|
|
65
66
|
export * from './CalcRuleFloat';
|
|
66
67
|
export * from './CalcRuleRef';
|
|
@@ -214,10 +215,6 @@ export * from './LayerOneOf3';
|
|
|
214
215
|
export * from './LayerOneOf4';
|
|
215
216
|
export * from './LayerTypeNeed';
|
|
216
217
|
export * from './LayerVariablesRes';
|
|
217
|
-
export * from './Legend';
|
|
218
|
-
export * from './LegendList';
|
|
219
|
-
export * from './LegendOneOf';
|
|
220
|
-
export * from './LegendOneOf1';
|
|
221
218
|
export * from './ListAccountsForUserRow';
|
|
222
219
|
export * from './ListPage';
|
|
223
220
|
export * from './ListUserDetailsWithEmailRow';
|
|
@@ -240,7 +237,6 @@ export * from './ModelRecord';
|
|
|
240
237
|
export * from './MultiSelectChangelogData';
|
|
241
238
|
export * from './MultiSelectContributionData';
|
|
242
239
|
export * from './MultiSelectData';
|
|
243
|
-
export * from './NodeOffset';
|
|
244
240
|
export * from './ObjectGroupChangelogBody';
|
|
245
241
|
export * from './ObjectGroupEntriesRes';
|
|
246
242
|
export * from './ObjectGroupEntry';
|
|
@@ -342,8 +338,6 @@ export * from './TopDownModelEntryList';
|
|
|
342
338
|
export * from './TopDownModelEntryPropertyNodes';
|
|
343
339
|
export * from './TopDownModelEntryUpdate';
|
|
344
340
|
export * from './TopDownModelProperties';
|
|
345
|
-
export * from './TwoDLegendEntry';
|
|
346
|
-
export * from './TwoDLegendList';
|
|
347
341
|
export * from './UnmappedParameterDetail';
|
|
348
342
|
export * from './UserV2GetResBody';
|
|
349
343
|
export * from './UserV2PatchReqBody';
|
package/dist/models/index.js
CHANGED
|
@@ -72,13 +72,14 @@ __exportStar(require("./AuthenticationEmail"), exports);
|
|
|
72
72
|
__exportStar(require("./AuthenticationPreferredChanel"), exports);
|
|
73
73
|
__exportStar(require("./AuthenticationPublic"), exports);
|
|
74
74
|
__exportStar(require("./Branding"), exports);
|
|
75
|
+
__exportStar(require("./CalcAxis"), exports);
|
|
76
|
+
__exportStar(require("./CalcAxisMember"), exports);
|
|
75
77
|
__exportStar(require("./CalcBody"), exports);
|
|
76
78
|
__exportStar(require("./CalcChildren"), exports);
|
|
77
79
|
__exportStar(require("./CalcErrorBody"), exports);
|
|
78
80
|
__exportStar(require("./CalcList"), exports);
|
|
79
81
|
__exportStar(require("./CalcListEntry"), exports);
|
|
80
82
|
__exportStar(require("./CalcListTwoD"), exports);
|
|
81
|
-
__exportStar(require("./CalcNode"), exports);
|
|
82
83
|
__exportStar(require("./CalcRes"), exports);
|
|
83
84
|
__exportStar(require("./CalcRuleFloat"), exports);
|
|
84
85
|
__exportStar(require("./CalcRuleRef"), exports);
|
|
@@ -232,10 +233,6 @@ __exportStar(require("./LayerOneOf3"), exports);
|
|
|
232
233
|
__exportStar(require("./LayerOneOf4"), exports);
|
|
233
234
|
__exportStar(require("./LayerTypeNeed"), exports);
|
|
234
235
|
__exportStar(require("./LayerVariablesRes"), exports);
|
|
235
|
-
__exportStar(require("./Legend"), exports);
|
|
236
|
-
__exportStar(require("./LegendList"), exports);
|
|
237
|
-
__exportStar(require("./LegendOneOf"), exports);
|
|
238
|
-
__exportStar(require("./LegendOneOf1"), exports);
|
|
239
236
|
__exportStar(require("./ListAccountsForUserRow"), exports);
|
|
240
237
|
__exportStar(require("./ListPage"), exports);
|
|
241
238
|
__exportStar(require("./ListUserDetailsWithEmailRow"), exports);
|
|
@@ -258,7 +255,6 @@ __exportStar(require("./ModelRecord"), exports);
|
|
|
258
255
|
__exportStar(require("./MultiSelectChangelogData"), exports);
|
|
259
256
|
__exportStar(require("./MultiSelectContributionData"), exports);
|
|
260
257
|
__exportStar(require("./MultiSelectData"), exports);
|
|
261
|
-
__exportStar(require("./NodeOffset"), exports);
|
|
262
258
|
__exportStar(require("./ObjectGroupChangelogBody"), exports);
|
|
263
259
|
__exportStar(require("./ObjectGroupEntriesRes"), exports);
|
|
264
260
|
__exportStar(require("./ObjectGroupEntry"), exports);
|
|
@@ -360,8 +356,6 @@ __exportStar(require("./TopDownModelEntryList"), exports);
|
|
|
360
356
|
__exportStar(require("./TopDownModelEntryPropertyNodes"), exports);
|
|
361
357
|
__exportStar(require("./TopDownModelEntryUpdate"), exports);
|
|
362
358
|
__exportStar(require("./TopDownModelProperties"), exports);
|
|
363
|
-
__exportStar(require("./TwoDLegendEntry"), exports);
|
|
364
|
-
__exportStar(require("./TwoDLegendList"), exports);
|
|
365
359
|
__exportStar(require("./UnmappedParameterDetail"), exports);
|
|
366
360
|
__exportStar(require("./UserV2GetResBody"), exports);
|
|
367
361
|
__exportStar(require("./UserV2PatchReqBody"), exports);
|
package/package.json
CHANGED
package/src/apis/AnalysisApi.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface AnalysisApiCreateAnalyseRequest {
|
|
|
43
43
|
*/
|
|
44
44
|
export interface AnalysisApiInterface {
|
|
45
45
|
/**
|
|
46
|
-
* Runs the scenario through the calculation engine and returns the
|
|
46
|
+
* Runs the scenario through the calculation engine and returns the result as labelled `axes` and a flat `values` array. The axes come in the order given by `dimensions`, and `values` runs fastest along the last axis. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
47
47
|
* @summary Run analysis
|
|
48
48
|
* @param {CalcBody} [calcBody]
|
|
49
49
|
* @param {*} [options] Override http request option.
|
|
@@ -53,7 +53,7 @@ export interface AnalysisApiInterface {
|
|
|
53
53
|
createAnalyseRaw(requestParameters: AnalysisApiCreateAnalyseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalcRes>>;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Runs the scenario through the calculation engine and returns the
|
|
56
|
+
* Runs the scenario through the calculation engine and returns the result as labelled `axes` and a flat `values` array. The axes come in the order given by `dimensions`, and `values` runs fastest along the last axis. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
57
57
|
* Run analysis
|
|
58
58
|
*/
|
|
59
59
|
createAnalyse(requestParameters: AnalysisApiCreateAnalyseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalcRes>;
|
|
@@ -66,7 +66,7 @@ export interface AnalysisApiInterface {
|
|
|
66
66
|
export class AnalysisApi extends runtime.BaseAPI implements AnalysisApiInterface {
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Runs the scenario through the calculation engine and returns the
|
|
69
|
+
* Runs the scenario through the calculation engine and returns the result as labelled `axes` and a flat `values` array. The axes come in the order given by `dimensions`, and `values` runs fastest along the last axis. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
70
70
|
* Run analysis
|
|
71
71
|
*/
|
|
72
72
|
async createAnalyseRaw(requestParameters: AnalysisApiCreateAnalyseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalcRes>> {
|
|
@@ -99,7 +99,7 @@ export class AnalysisApi extends runtime.BaseAPI implements AnalysisApiInterface
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Runs the scenario through the calculation engine and returns the
|
|
102
|
+
* Runs the scenario through the calculation engine and returns the result as labelled `axes` and a flat `values` array. The axes come in the order given by `dimensions`, and `values` runs fastest along the last axis. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
103
103
|
* Run analysis
|
|
104
104
|
*/
|
|
105
105
|
async createAnalyse(requestParameters: AnalysisApiCreateAnalyseRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalcRes> {
|