@spaciv/sdk 0.1.7 → 0.1.8
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/esm/apis/AnalysisApi.d.ts +4 -4
- package/dist/esm/apis/AnalysisApi.js +2 -2
- 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/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/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/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/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
|
@@ -16,78 +16,86 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface CalcAxisMember
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface CalcAxisMember {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {
|
|
25
|
-
* @memberof
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CalcAxisMember
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
day: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
31
|
-
* @memberof
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CalcAxisMember
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
id: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof CalcAxisMember
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CalcAxisMember
|
|
44
|
+
*/
|
|
45
|
+
parent?: number;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
49
|
+
* @memberof CalcAxisMember
|
|
44
50
|
*/
|
|
45
|
-
|
|
51
|
+
scenario: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
49
|
-
* Check if a given object implements the
|
|
55
|
+
* Check if a given object implements the CalcAxisMember interface.
|
|
50
56
|
*/
|
|
51
|
-
export function
|
|
52
|
-
if (!('
|
|
53
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
57
|
+
export function instanceOfCalcAxisMember(value: object): value is CalcAxisMember {
|
|
58
|
+
if (!('day' in value) || value['day'] === undefined) return false;
|
|
54
59
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
55
60
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
if (!('scenario' in value) || value['scenario'] === undefined) return false;
|
|
56
62
|
return true;
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
export function
|
|
60
|
-
return
|
|
65
|
+
export function CalcAxisMemberFromJSON(json: any): CalcAxisMember {
|
|
66
|
+
return CalcAxisMemberFromJSONTyped(json, false);
|
|
61
67
|
}
|
|
62
68
|
|
|
63
|
-
export function
|
|
69
|
+
export function CalcAxisMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcAxisMember {
|
|
64
70
|
if (json == null) {
|
|
65
71
|
return json;
|
|
66
72
|
}
|
|
67
73
|
return {
|
|
68
74
|
|
|
69
|
-
'
|
|
70
|
-
'data': json['data'],
|
|
75
|
+
'day': json['day'],
|
|
71
76
|
'id': json['id'],
|
|
72
77
|
'name': json['name'],
|
|
78
|
+
'parent': json['parent'] == null ? undefined : json['parent'],
|
|
79
|
+
'scenario': json['scenario'],
|
|
73
80
|
};
|
|
74
81
|
}
|
|
75
82
|
|
|
76
|
-
export function
|
|
77
|
-
return
|
|
83
|
+
export function CalcAxisMemberToJSON(json: any): CalcAxisMember {
|
|
84
|
+
return CalcAxisMemberToJSONTyped(json, false);
|
|
78
85
|
}
|
|
79
86
|
|
|
80
|
-
export function
|
|
87
|
+
export function CalcAxisMemberToJSONTyped(value?: CalcAxisMember | null, ignoreDiscriminator: boolean = false): any {
|
|
81
88
|
if (value == null) {
|
|
82
89
|
return value;
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
return {
|
|
86
93
|
|
|
87
|
-
'
|
|
88
|
-
'data': value['data'],
|
|
94
|
+
'day': value['day'],
|
|
89
95
|
'id': value['id'],
|
|
90
96
|
'name': value['name'],
|
|
97
|
+
'parent': value['parent'],
|
|
98
|
+
'scenario': value['scenario'],
|
|
91
99
|
};
|
|
92
100
|
}
|
|
93
101
|
|
package/src/models/CalcBody.ts
CHANGED
|
@@ -47,6 +47,12 @@ export interface CalcBody {
|
|
|
47
47
|
* @memberof CalcBody
|
|
48
48
|
*/
|
|
49
49
|
data: DataShapes;
|
|
50
|
+
/**
|
|
51
|
+
* 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`.
|
|
52
|
+
* @type {Array<number>}
|
|
53
|
+
* @memberof CalcBody
|
|
54
|
+
*/
|
|
55
|
+
dimensions?: Array<number>;
|
|
50
56
|
/**
|
|
51
57
|
*
|
|
52
58
|
* @type {Array<FilterGroup>}
|
|
@@ -93,6 +99,7 @@ export function CalcBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
93
99
|
return {
|
|
94
100
|
|
|
95
101
|
'data': DataShapesFromJSON(json['data']),
|
|
102
|
+
'dimensions': json['dimensions'] == null ? undefined : json['dimensions'],
|
|
96
103
|
'filters': ((json['filters'] as Array<any>).map(FilterGroupFromJSON)),
|
|
97
104
|
'includeObjects': json['includeObjects'] == null ? undefined : json['includeObjects'],
|
|
98
105
|
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
@@ -112,6 +119,7 @@ export function CalcBodyToJSONTyped(value?: CalcBody | null, ignoreDiscriminator
|
|
|
112
119
|
return {
|
|
113
120
|
|
|
114
121
|
'data': DataShapesToJSON(value['data']),
|
|
122
|
+
'dimensions': value['dimensions'],
|
|
115
123
|
'filters': ((value['filters'] as Array<any>).map(FilterGroupToJSON)),
|
|
116
124
|
'includeObjects': value['includeObjects'],
|
|
117
125
|
'limit': value['limit'],
|
|
@@ -181,7 +181,8 @@ export const CalcErrorBodyKindEnum = {
|
|
|
181
181
|
MissingAttribute: 'missing_attribute',
|
|
182
182
|
MissingSpaceRule: 'missing_space_rule',
|
|
183
183
|
MissingTopDownModel: 'missing_top_down_model',
|
|
184
|
-
InvalidModifierFormula: 'invalid_modifier_formula'
|
|
184
|
+
InvalidModifierFormula: 'invalid_modifier_formula',
|
|
185
|
+
InvalidDimensions: 'invalid_dimensions'
|
|
185
186
|
} as const;
|
|
186
187
|
export type CalcErrorBodyKindEnum = typeof CalcErrorBodyKindEnum[keyof typeof CalcErrorBodyKindEnum];
|
|
187
188
|
|
package/src/models/CalcRes.ts
CHANGED
|
@@ -13,20 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { CalcAxis } from './CalcAxis';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
23
|
-
import type { NodeOffset } from './NodeOffset';
|
|
24
|
-
import {
|
|
25
|
-
NodeOffsetFromJSON,
|
|
26
|
-
NodeOffsetFromJSONTyped,
|
|
27
|
-
NodeOffsetToJSON,
|
|
28
|
-
NodeOffsetToJSONTyped,
|
|
29
|
-
} from './NodeOffset';
|
|
18
|
+
CalcAxisFromJSON,
|
|
19
|
+
CalcAxisFromJSONTyped,
|
|
20
|
+
CalcAxisToJSON,
|
|
21
|
+
CalcAxisToJSONTyped,
|
|
22
|
+
} from './CalcAxis';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -36,24 +29,24 @@ import {
|
|
|
36
29
|
export interface CalcRes {
|
|
37
30
|
/**
|
|
38
31
|
*
|
|
39
|
-
* @type {
|
|
32
|
+
* @type {Array<CalcAxis>}
|
|
40
33
|
* @memberof CalcRes
|
|
41
34
|
*/
|
|
42
|
-
|
|
35
|
+
axes: Array<CalcAxis>;
|
|
43
36
|
/**
|
|
44
37
|
*
|
|
45
|
-
* @type {Array<
|
|
38
|
+
* @type {Array<number>}
|
|
46
39
|
* @memberof CalcRes
|
|
47
40
|
*/
|
|
48
|
-
|
|
41
|
+
values: Array<number>;
|
|
49
42
|
}
|
|
50
43
|
|
|
51
44
|
/**
|
|
52
45
|
* Check if a given object implements the CalcRes interface.
|
|
53
46
|
*/
|
|
54
47
|
export function instanceOfCalcRes(value: object): value is CalcRes {
|
|
55
|
-
if (!('
|
|
56
|
-
if (!('
|
|
48
|
+
if (!('axes' in value) || value['axes'] === undefined) return false;
|
|
49
|
+
if (!('values' in value) || value['values'] === undefined) return false;
|
|
57
50
|
return true;
|
|
58
51
|
}
|
|
59
52
|
|
|
@@ -67,8 +60,8 @@ export function CalcResFromJSONTyped(json: any, ignoreDiscriminator: boolean): C
|
|
|
67
60
|
}
|
|
68
61
|
return {
|
|
69
62
|
|
|
70
|
-
'
|
|
71
|
-
'
|
|
63
|
+
'axes': ((json['axes'] as Array<any>).map(CalcAxisFromJSON)),
|
|
64
|
+
'values': json['values'],
|
|
72
65
|
};
|
|
73
66
|
}
|
|
74
67
|
|
|
@@ -83,8 +76,8 @@ export function CalcResToJSONTyped(value?: CalcRes | null, ignoreDiscriminator:
|
|
|
83
76
|
|
|
84
77
|
return {
|
|
85
78
|
|
|
86
|
-
'
|
|
87
|
-
'
|
|
79
|
+
'axes': ((value['axes'] as Array<any>).map(CalcAxisToJSON)),
|
|
80
|
+
'values': value['values'],
|
|
88
81
|
};
|
|
89
82
|
}
|
|
90
83
|
|
package/src/models/index.ts
CHANGED
|
@@ -56,13 +56,14 @@ export * from './AuthenticationEmail';
|
|
|
56
56
|
export * from './AuthenticationPreferredChanel';
|
|
57
57
|
export * from './AuthenticationPublic';
|
|
58
58
|
export * from './Branding';
|
|
59
|
+
export * from './CalcAxis';
|
|
60
|
+
export * from './CalcAxisMember';
|
|
59
61
|
export * from './CalcBody';
|
|
60
62
|
export * from './CalcChildren';
|
|
61
63
|
export * from './CalcErrorBody';
|
|
62
64
|
export * from './CalcList';
|
|
63
65
|
export * from './CalcListEntry';
|
|
64
66
|
export * from './CalcListTwoD';
|
|
65
|
-
export * from './CalcNode';
|
|
66
67
|
export * from './CalcRes';
|
|
67
68
|
export * from './CalcRuleFloat';
|
|
68
69
|
export * from './CalcRuleRef';
|
|
@@ -216,10 +217,6 @@ export * from './LayerOneOf3';
|
|
|
216
217
|
export * from './LayerOneOf4';
|
|
217
218
|
export * from './LayerTypeNeed';
|
|
218
219
|
export * from './LayerVariablesRes';
|
|
219
|
-
export * from './Legend';
|
|
220
|
-
export * from './LegendList';
|
|
221
|
-
export * from './LegendOneOf';
|
|
222
|
-
export * from './LegendOneOf1';
|
|
223
220
|
export * from './ListAccountsForUserRow';
|
|
224
221
|
export * from './ListPage';
|
|
225
222
|
export * from './ListUserDetailsWithEmailRow';
|
|
@@ -242,7 +239,6 @@ export * from './ModelRecord';
|
|
|
242
239
|
export * from './MultiSelectChangelogData';
|
|
243
240
|
export * from './MultiSelectContributionData';
|
|
244
241
|
export * from './MultiSelectData';
|
|
245
|
-
export * from './NodeOffset';
|
|
246
242
|
export * from './ObjectGroupChangelogBody';
|
|
247
243
|
export * from './ObjectGroupEntriesRes';
|
|
248
244
|
export * from './ObjectGroupEntry';
|
|
@@ -344,8 +340,6 @@ export * from './TopDownModelEntryList';
|
|
|
344
340
|
export * from './TopDownModelEntryPropertyNodes';
|
|
345
341
|
export * from './TopDownModelEntryUpdate';
|
|
346
342
|
export * from './TopDownModelProperties';
|
|
347
|
-
export * from './TwoDLegendEntry';
|
|
348
|
-
export * from './TwoDLegendList';
|
|
349
343
|
export * from './UnmappedParameterDetail';
|
|
350
344
|
export * from './UserV2GetResBody';
|
|
351
345
|
export * from './UserV2PatchReqBody';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spaciv API
|
|
3
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: support@spaciv.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { LegendOneOf } from './LegendOneOf';
|
|
13
|
-
import type { LegendOneOf1 } from './LegendOneOf1';
|
|
14
|
-
/**
|
|
15
|
-
* @type Legend
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export type Legend = LegendOneOf | LegendOneOf1;
|
|
20
|
-
export declare function LegendFromJSON(json: any): Legend;
|
|
21
|
-
export declare function LegendFromJSONTyped(json: any, ignoreDiscriminator: boolean): Legend;
|
|
22
|
-
export declare function LegendToJSON(json: any): any;
|
|
23
|
-
export declare function LegendToJSONTyped(value?: Legend | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* spaciv API
|
|
5
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: support@spaciv.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { instanceOfLegendOneOf, LegendOneOfFromJSONTyped, LegendOneOfToJSON, } from './LegendOneOf';
|
|
15
|
-
import { instanceOfLegendOneOf1, LegendOneOf1FromJSONTyped, LegendOneOf1ToJSON, } from './LegendOneOf1';
|
|
16
|
-
export function LegendFromJSON(json) {
|
|
17
|
-
return LegendFromJSONTyped(json, false);
|
|
18
|
-
}
|
|
19
|
-
export function LegendFromJSONTyped(json, ignoreDiscriminator) {
|
|
20
|
-
if (json == null) {
|
|
21
|
-
return json;
|
|
22
|
-
}
|
|
23
|
-
if (typeof json !== 'object') {
|
|
24
|
-
return json;
|
|
25
|
-
}
|
|
26
|
-
if (instanceOfLegendOneOf(json)) {
|
|
27
|
-
return LegendOneOfFromJSONTyped(json, true);
|
|
28
|
-
}
|
|
29
|
-
if (instanceOfLegendOneOf1(json)) {
|
|
30
|
-
return LegendOneOf1FromJSONTyped(json, true);
|
|
31
|
-
}
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
export function LegendToJSON(json) {
|
|
35
|
-
return LegendToJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
export function LegendToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
if (typeof value !== 'object') {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
if (instanceOfLegendOneOf(value)) {
|
|
45
|
-
return LegendOneOfToJSON(value);
|
|
46
|
-
}
|
|
47
|
-
if (instanceOfLegendOneOf1(value)) {
|
|
48
|
-
return LegendOneOf1ToJSON(value);
|
|
49
|
-
}
|
|
50
|
-
return {};
|
|
51
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spaciv API
|
|
3
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: support@spaciv.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface LegendList
|
|
16
|
-
*/
|
|
17
|
-
export interface LegendList {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof LegendList
|
|
22
|
-
*/
|
|
23
|
-
list: Array<string>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the LegendList interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfLegendList(value: object): value is LegendList;
|
|
29
|
-
export declare function LegendListFromJSON(json: any): LegendList;
|
|
30
|
-
export declare function LegendListFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendList;
|
|
31
|
-
export declare function LegendListToJSON(json: any): LegendList;
|
|
32
|
-
export declare function LegendListToJSONTyped(value?: LegendList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* spaciv API
|
|
5
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: support@spaciv.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Check if a given object implements the LegendList interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfLegendList(value) {
|
|
18
|
-
if (!('list' in value) || value['list'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
export function LegendListFromJSON(json) {
|
|
23
|
-
return LegendListFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function LegendListFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'list': json['list'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function LegendListToJSON(json) {
|
|
34
|
-
return LegendListToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
export function LegendListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
-
if (value == null) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'list': value['list'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spaciv API
|
|
3
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: support@spaciv.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { LegendList } from './LegendList';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface LegendOneOf
|
|
17
|
-
*/
|
|
18
|
-
export interface LegendOneOf {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {LegendList}
|
|
22
|
-
* @memberof LegendOneOf
|
|
23
|
-
*/
|
|
24
|
-
list: LegendList;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the LegendOneOf interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfLegendOneOf(value: object): value is LegendOneOf;
|
|
30
|
-
export declare function LegendOneOfFromJSON(json: any): LegendOneOf;
|
|
31
|
-
export declare function LegendOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendOneOf;
|
|
32
|
-
export declare function LegendOneOfToJSON(json: any): LegendOneOf;
|
|
33
|
-
export declare function LegendOneOfToJSONTyped(value?: LegendOneOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* spaciv API
|
|
5
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: support@spaciv.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { LegendListFromJSON, LegendListToJSON, } from './LegendList';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the LegendOneOf interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfLegendOneOf(value) {
|
|
19
|
-
if (!('list' in value) || value['list'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function LegendOneOfFromJSON(json) {
|
|
24
|
-
return LegendOneOfFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function LegendOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'list': LegendListFromJSON(json['list']),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export function LegendOneOfToJSON(json) {
|
|
35
|
-
return LegendOneOfToJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
export function LegendOneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'list': LegendListToJSON(value['list']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spaciv API
|
|
3
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: support@spaciv.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { TwoDLegendList } from './TwoDLegendList';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface LegendOneOf1
|
|
17
|
-
*/
|
|
18
|
-
export interface LegendOneOf1 {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {TwoDLegendList}
|
|
22
|
-
* @memberof LegendOneOf1
|
|
23
|
-
*/
|
|
24
|
-
twoDList: TwoDLegendList;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the LegendOneOf1 interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfLegendOneOf1(value: object): value is LegendOneOf1;
|
|
30
|
-
export declare function LegendOneOf1FromJSON(json: any): LegendOneOf1;
|
|
31
|
-
export declare function LegendOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendOneOf1;
|
|
32
|
-
export declare function LegendOneOf1ToJSON(json: any): LegendOneOf1;
|
|
33
|
-
export declare function LegendOneOf1ToJSONTyped(value?: LegendOneOf1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* spaciv API
|
|
5
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: support@spaciv.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { TwoDLegendListFromJSON, TwoDLegendListToJSON, } from './TwoDLegendList';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the LegendOneOf1 interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfLegendOneOf1(value) {
|
|
19
|
-
if (!('twoDList' in value) || value['twoDList'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function LegendOneOf1FromJSON(json) {
|
|
24
|
-
return LegendOneOf1FromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function LegendOneOf1FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'twoDList': TwoDLegendListFromJSON(json['twoDList']),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export function LegendOneOf1ToJSON(json) {
|
|
35
|
-
return LegendOneOf1ToJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
export function LegendOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'twoDList': TwoDLegendListToJSON(value['twoDList']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* spaciv API
|
|
5
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: support@spaciv.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Check if a given object implements the TwoDLegendEntry interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfTwoDLegendEntry(value) {
|
|
18
|
-
if (!('list' in value) || value['list'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
export function TwoDLegendEntryFromJSON(json) {
|
|
25
|
-
return TwoDLegendEntryFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
export function TwoDLegendEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (json == null) {
|
|
29
|
-
return json;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
'list': json['list'],
|
|
33
|
-
'name': json['name'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function TwoDLegendEntryToJSON(json) {
|
|
37
|
-
return TwoDLegendEntryToJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
export function TwoDLegendEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'list': value['list'],
|
|
45
|
-
'name': value['name'],
|
|
46
|
-
};
|
|
47
|
-
}
|