@spaciv/sdk 0.1.21 → 0.1.23
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 +24 -1
- package/README.md +2 -2
- package/dist/apis/FilesApi.d.ts +28 -1
- package/dist/apis/FilesApi.js +40 -0
- package/dist/apis/LogicLayersApi.d.ts +279 -0
- package/dist/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +72 -62
- package/dist/apis/ObjectGroupsApi.d.ts +28 -1
- package/dist/apis/ObjectGroupsApi.js +40 -0
- package/dist/apis/PropertiesApi.d.ts +16 -16
- package/dist/apis/PropertiesApi.js +8 -8
- package/dist/apis/ScenariosApi.d.ts +4 -4
- package/dist/apis/ScenariosApi.js +2 -2
- package/dist/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/apis/TopDownModelsApi.js +2 -2
- package/dist/apis/VariablesApi.d.ts +4 -4
- package/dist/apis/VariablesApi.js +2 -2
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/esm/apis/FilesApi.d.ts +28 -1
- package/dist/esm/apis/FilesApi.js +41 -1
- package/dist/esm/apis/LogicLayersApi.d.ts +279 -0
- package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
- package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
- package/dist/esm/apis/ObjectGroupsApi.js +41 -1
- package/dist/esm/apis/PropertiesApi.d.ts +16 -16
- package/dist/esm/apis/PropertiesApi.js +8 -8
- package/dist/esm/apis/ScenariosApi.d.ts +4 -4
- package/dist/esm/apis/ScenariosApi.js +2 -2
- package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/esm/apis/TopDownModelsApi.js +2 -2
- package/dist/esm/apis/VariablesApi.d.ts +4 -4
- package/dist/esm/apis/VariablesApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -1
- package/dist/esm/apis/index.js +1 -1
- package/dist/esm/models/AccountTextFilePostBody.d.ts +38 -0
- package/dist/esm/models/AccountTextFilePostBody.js +45 -0
- package/dist/esm/models/CalcCompare.d.ts +45 -0
- package/dist/esm/models/CalcCompare.js +52 -0
- package/dist/esm/models/CalcCondition.d.ts +46 -0
- package/dist/esm/models/CalcCondition.js +53 -0
- package/dist/esm/models/CalcHasNode.d.ts +44 -0
- package/dist/esm/models/CalcHasNode.js +51 -0
- package/dist/esm/models/CalcIsObject.d.ts +32 -0
- package/dist/esm/models/CalcIsObject.js +43 -0
- package/dist/esm/models/CalcRuleRef.d.ts +2 -1
- package/dist/esm/models/CalcRuleRef.js +7 -0
- package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
- package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
- package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
- package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
- package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
- package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
- package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
- package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
- package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
- package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
- package/dist/esm/models/CalcTest.d.ts +24 -0
- package/dist/esm/models/CalcTest.js +58 -0
- package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf.js +44 -0
- package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf1.js +44 -0
- package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf2.js +44 -0
- package/dist/esm/models/Group.d.ts +45 -0
- package/dist/esm/models/Group.js +52 -0
- package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
- package/dist/esm/models/LogicAssignment.d.ts +23 -0
- package/dist/esm/models/LogicAssignment.js +51 -0
- package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
- package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
- package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
- package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
- package/dist/esm/models/LogicDemand.d.ts +40 -0
- package/dist/esm/models/LogicDemand.js +49 -0
- package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
- package/dist/esm/models/LogicLayerConfig.js +48 -0
- package/dist/esm/models/LogicPer.d.ts +45 -0
- package/dist/esm/models/LogicPer.js +52 -0
- package/dist/esm/models/LogicRule.d.ts +66 -0
- package/dist/esm/models/LogicRule.js +67 -0
- package/dist/esm/models/LogicSupply.d.ts +48 -0
- package/dist/esm/models/LogicSupply.js +54 -0
- package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
- package/dist/esm/models/LogicSupplyWeight.js +43 -0
- package/dist/esm/models/MaybeVarInt.d.ts +2 -2
- package/dist/esm/models/MaybeVarInt.js +5 -5
- package/dist/esm/models/MaybeVarProp.d.ts +2 -2
- package/dist/esm/models/MaybeVarProp.js +5 -5
- package/dist/esm/models/MaybeVarStr.d.ts +2 -2
- package/dist/esm/models/MaybeVarStr.js +5 -5
- package/dist/esm/models/ModelObject.d.ts +38 -0
- package/dist/esm/models/ModelObject.js +47 -0
- package/dist/esm/models/ModelRecord.d.ts +1 -1
- package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
- package/dist/esm/models/ObjectGroupListEntry.js +0 -4
- package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
- package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
- package/dist/esm/models/Selection.d.ts +39 -0
- package/dist/esm/models/Selection.js +48 -0
- package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
- package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
- package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
- package/dist/esm/models/index.d.ts +23 -0
- package/dist/esm/models/index.js +23 -0
- package/dist/models/AccountTextFilePostBody.d.ts +38 -0
- package/dist/models/AccountTextFilePostBody.js +52 -0
- package/dist/models/CalcCompare.d.ts +45 -0
- package/dist/models/CalcCompare.js +59 -0
- package/dist/models/CalcCondition.d.ts +46 -0
- package/dist/models/CalcCondition.js +60 -0
- package/dist/models/CalcHasNode.d.ts +44 -0
- package/dist/models/CalcHasNode.js +58 -0
- package/dist/models/CalcIsObject.d.ts +32 -0
- package/dist/models/CalcIsObject.js +50 -0
- package/dist/models/CalcRuleRef.d.ts +2 -1
- package/dist/models/CalcRuleRef.js +7 -0
- package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
- package/dist/models/CalcRuleRefOneOf2.js +4 -3
- package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
- package/dist/models/CalcRuleRefOneOf3.js +3 -4
- package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
- package/dist/models/CalcRuleRefOneOf4.js +4 -4
- package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
- package/dist/models/CalcRuleRefOneOf5.js +4 -3
- package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
- package/dist/models/CalcRuleRefOneOf6.js +50 -0
- package/dist/models/CalcTest.d.ts +24 -0
- package/dist/models/CalcTest.js +64 -0
- package/dist/models/CalcTestOneOf.d.ts +33 -0
- package/dist/models/CalcTestOneOf.js +51 -0
- package/dist/models/CalcTestOneOf1.d.ts +33 -0
- package/dist/models/CalcTestOneOf1.js +51 -0
- package/dist/models/CalcTestOneOf2.d.ts +33 -0
- package/dist/models/CalcTestOneOf2.js +51 -0
- package/dist/models/Group.d.ts +45 -0
- package/dist/models/Group.js +59 -0
- package/dist/models/LayerVariablesRes.d.ts +1 -1
- package/dist/models/LogicAssignment.d.ts +23 -0
- package/dist/models/LogicAssignment.js +57 -0
- package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
- package/dist/models/LogicAssignmentOneOf.js +50 -0
- package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
- package/dist/models/LogicAssignmentOneOf1.js +50 -0
- package/dist/models/LogicDemand.d.ts +40 -0
- package/dist/models/LogicDemand.js +56 -0
- package/dist/models/LogicLayerConfig.d.ts +39 -0
- package/dist/models/LogicLayerConfig.js +55 -0
- package/dist/models/LogicPer.d.ts +45 -0
- package/dist/models/LogicPer.js +59 -0
- package/dist/models/LogicRule.d.ts +66 -0
- package/dist/models/LogicRule.js +74 -0
- package/dist/models/LogicSupply.d.ts +48 -0
- package/dist/models/LogicSupply.js +61 -0
- package/dist/models/LogicSupplyWeight.d.ts +32 -0
- package/dist/models/LogicSupplyWeight.js +50 -0
- package/dist/models/MaybeVarInt.d.ts +2 -2
- package/dist/models/MaybeVarInt.js +5 -5
- package/dist/models/MaybeVarProp.d.ts +2 -2
- package/dist/models/MaybeVarProp.js +5 -5
- package/dist/models/MaybeVarStr.d.ts +2 -2
- package/dist/models/MaybeVarStr.js +5 -5
- package/dist/models/ModelObject.d.ts +38 -0
- package/dist/models/ModelObject.js +54 -0
- package/dist/models/ModelRecord.d.ts +1 -1
- package/dist/models/ObjectGroupListEntry.d.ts +0 -6
- package/dist/models/ObjectGroupListEntry.js +0 -4
- package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
- package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
- package/dist/models/Selection.d.ts +39 -0
- package/dist/models/Selection.js +55 -0
- package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
- package/dist/models/SpaceRuleSetJSON.js +3 -2
- package/dist/models/SpaceRulesetCreate.d.ts +1 -1
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/package.json +1 -1
- package/src/apis/FilesApi.ts +72 -0
- package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
- package/src/apis/ObjectGroupsApi.ts +75 -0
- package/src/apis/PropertiesApi.ts +16 -16
- package/src/apis/ScenariosApi.ts +4 -4
- package/src/apis/TopDownModelsApi.ts +4 -4
- package/src/apis/VariablesApi.ts +4 -4
- package/src/apis/index.ts +1 -1
- package/src/models/AccountTextFilePostBody.ts +74 -0
- package/src/models/CalcCompare.ts +92 -0
- package/src/models/CalcCondition.ts +99 -0
- package/src/models/CalcHasNode.ts +84 -0
- package/src/models/CalcIsObject.ts +66 -0
- package/src/models/CalcRuleRef.ts +14 -1
- package/src/models/CalcRuleRefOneOf2.ts +13 -5
- package/src/models/CalcRuleRefOneOf3.ts +5 -13
- package/src/models/CalcRuleRefOneOf4.ts +11 -11
- package/src/models/CalcRuleRefOneOf5.ts +13 -5
- package/src/models/CalcRuleRefOneOf6.ts +66 -0
- package/src/models/CalcTest.ts +89 -0
- package/src/models/CalcTestOneOf.ts +74 -0
- package/src/models/CalcTestOneOf1.ts +74 -0
- package/src/models/CalcTestOneOf2.ts +74 -0
- package/src/models/Group.ts +92 -0
- package/src/models/LayerVariablesRes.ts +1 -1
- package/src/models/LogicAssignment.ts +76 -0
- package/src/models/LogicAssignmentOneOf.ts +66 -0
- package/src/models/LogicAssignmentOneOf1.ts +66 -0
- package/src/models/LogicDemand.ts +90 -0
- package/src/models/LogicLayerConfig.ts +83 -0
- package/src/models/LogicPer.ts +92 -0
- package/src/models/LogicRule.ts +140 -0
- package/src/models/LogicSupply.ts +99 -0
- package/src/models/LogicSupplyWeight.ts +66 -0
- package/src/models/MaybeVarInt.ts +11 -11
- package/src/models/MaybeVarProp.ts +11 -11
- package/src/models/MaybeVarStr.ts +11 -11
- package/src/models/ModelObject.ts +75 -0
- package/src/models/ModelRecord.ts +1 -1
- package/src/models/ObjectGroupListEntry.ts +0 -9
- package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
- package/src/models/Selection.ts +83 -0
- package/src/models/SpaceRuleSetJSON.ts +12 -4
- package/src/models/SpaceRulesetCreate.ts +1 -1
- package/src/models/index.ts +23 -0
- package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
- package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ModelObject
|
|
20
|
+
*/
|
|
21
|
+
export interface ModelObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ModelObject
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ModelObject
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ModelObject interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfModelObject(value: object): value is ModelObject {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ModelObjectFromJSON(json: any): ModelObject {
|
|
46
|
+
return ModelObjectFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ModelObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelObject {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ModelObjectToJSON(json: any): ModelObject {
|
|
61
|
+
return ModelObjectToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ModelObjectToJSONTyped(value?: ModelObject | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -32,7 +32,7 @@ export interface ModelRecord {
|
|
|
32
32
|
*/
|
|
33
33
|
id: string;
|
|
34
34
|
/**
|
|
35
|
-
* Media type detected from the file's contents when they were last stored, rather than from its name or the type the client declared.
|
|
35
|
+
* Media type detected from the file's contents when they were last stored, rather than from its name or the type the client declared. A file created empty in the app takes its type from its extension, such as text/markdown; charset=utf-8 for .md, and keeps it while its contents are detected as plain text.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ModelRecord
|
|
38
38
|
*/
|
|
@@ -31,12 +31,6 @@ export interface ObjectGroupListEntry {
|
|
|
31
31
|
* @memberof ObjectGroupListEntry
|
|
32
32
|
*/
|
|
33
33
|
entries: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof ObjectGroupListEntry
|
|
38
|
-
*/
|
|
39
|
-
hasModules: boolean;
|
|
40
34
|
/**
|
|
41
35
|
*
|
|
42
36
|
* @type {string}
|
|
@@ -63,7 +57,6 @@ export interface ObjectGroupListEntry {
|
|
|
63
57
|
export function instanceOfObjectGroupListEntry(value: object): value is ObjectGroupListEntry {
|
|
64
58
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
65
59
|
if (!('entries' in value) || value['entries'] === undefined) return false;
|
|
66
|
-
if (!('hasModules' in value) || value['hasModules'] === undefined) return false;
|
|
67
60
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
68
61
|
if (!('isPublic' in value) || value['isPublic'] === undefined) return false;
|
|
69
62
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
@@ -82,7 +75,6 @@ export function ObjectGroupListEntryFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
82
75
|
|
|
83
76
|
'description': json['description'],
|
|
84
77
|
'entries': json['entries'],
|
|
85
|
-
'hasModules': json['hasModules'],
|
|
86
78
|
'id': json['id'],
|
|
87
79
|
'isPublic': json['isPublic'],
|
|
88
80
|
'name': json['name'],
|
|
@@ -102,7 +94,6 @@ export function ObjectGroupListEntryToJSONTyped(value?: ObjectGroupListEntry | n
|
|
|
102
94
|
|
|
103
95
|
'description': value['description'],
|
|
104
96
|
'entries': value['entries'],
|
|
105
|
-
'hasModules': value['hasModules'],
|
|
106
97
|
'id': value['id'],
|
|
107
98
|
'isPublic': value['isPublic'],
|
|
108
99
|
'name': value['name'],
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FilterGroup } from './FilterGroup';
|
|
17
|
+
import {
|
|
18
|
+
FilterGroupFromJSON,
|
|
19
|
+
FilterGroupFromJSONTyped,
|
|
20
|
+
FilterGroupToJSON,
|
|
21
|
+
FilterGroupToJSONTyped,
|
|
22
|
+
} from './FilterGroup';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SelectObjectsParamsWrapperBody
|
|
28
|
+
*/
|
|
29
|
+
export interface SelectObjectsParamsWrapperBody {
|
|
30
|
+
/**
|
|
31
|
+
* Filter groups, of which any may match; within a group every filter must. None selects every object.
|
|
32
|
+
* @type {Array<FilterGroup>}
|
|
33
|
+
* @memberof SelectObjectsParamsWrapperBody
|
|
34
|
+
*/
|
|
35
|
+
filters: Array<FilterGroup>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SelectObjectsParamsWrapperBody interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSelectObjectsParamsWrapperBody(value: object): value is SelectObjectsParamsWrapperBody {
|
|
42
|
+
if (!('filters' in value) || value['filters'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SelectObjectsParamsWrapperBodyFromJSON(json: any): SelectObjectsParamsWrapperBody {
|
|
47
|
+
return SelectObjectsParamsWrapperBodyFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SelectObjectsParamsWrapperBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectObjectsParamsWrapperBody {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'filters': ((json['filters'] as Array<any>).map(FilterGroupFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SelectObjectsParamsWrapperBodyToJSON(json: any): SelectObjectsParamsWrapperBody {
|
|
61
|
+
return SelectObjectsParamsWrapperBodyToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SelectObjectsParamsWrapperBodyToJSONTyped(value?: SelectObjectsParamsWrapperBody | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'filters': ((value['filters'] as Array<any>).map(FilterGroupToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Group } from './Group';
|
|
17
|
+
import {
|
|
18
|
+
GroupFromJSON,
|
|
19
|
+
GroupFromJSONTyped,
|
|
20
|
+
GroupToJSON,
|
|
21
|
+
GroupToJSONTyped,
|
|
22
|
+
} from './Group';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Selection
|
|
28
|
+
*/
|
|
29
|
+
export interface Selection {
|
|
30
|
+
/**
|
|
31
|
+
* The object groups holding a selected object, by name, each with its selected objects by name.
|
|
32
|
+
* @type {Array<Group>}
|
|
33
|
+
* @memberof Selection
|
|
34
|
+
*/
|
|
35
|
+
groups: Array<Group>;
|
|
36
|
+
/**
|
|
37
|
+
* More objects matched than were returned; narrow the filters to see the rest.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof Selection
|
|
40
|
+
*/
|
|
41
|
+
truncated: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Selection interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfSelection(value: object): value is Selection {
|
|
48
|
+
if (!('groups' in value) || value['groups'] === undefined) return false;
|
|
49
|
+
if (!('truncated' in value) || value['truncated'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function SelectionFromJSON(json: any): Selection {
|
|
54
|
+
return SelectionFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function SelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Selection {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'groups': ((json['groups'] as Array<any>).map(GroupFromJSON)),
|
|
64
|
+
'truncated': json['truncated'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SelectionToJSON(json: any): Selection {
|
|
69
|
+
return SelectionToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SelectionToJSONTyped(value?: Selection | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'groups': ((value['groups'] as Array<any>).map(GroupToJSON)),
|
|
80
|
+
'truncated': value['truncated'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LogicLayerConfig } from './LogicLayerConfig';
|
|
17
|
+
import {
|
|
18
|
+
LogicLayerConfigFromJSON,
|
|
19
|
+
LogicLayerConfigFromJSONTyped,
|
|
20
|
+
LogicLayerConfigToJSON,
|
|
21
|
+
LogicLayerConfigToJSONTyped,
|
|
22
|
+
} from './LogicLayerConfig';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
|
|
|
21
29
|
export interface SpaceRuleSetJSON {
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
|
-
* @type {
|
|
32
|
+
* @type {LogicLayerConfig}
|
|
25
33
|
* @memberof SpaceRuleSetJSON
|
|
26
34
|
*/
|
|
27
|
-
config:
|
|
35
|
+
config: LogicLayerConfig;
|
|
28
36
|
/**
|
|
29
37
|
*
|
|
30
38
|
* @type {string}
|
|
@@ -87,7 +95,7 @@ export function SpaceRuleSetJSONFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
87
95
|
}
|
|
88
96
|
return {
|
|
89
97
|
|
|
90
|
-
'config': json['config'],
|
|
98
|
+
'config': LogicLayerConfigFromJSON(json['config']),
|
|
91
99
|
'createdDate': json['createdDate'],
|
|
92
100
|
'creationMode': json['creationMode'],
|
|
93
101
|
'description': json['description'],
|
|
@@ -108,7 +116,7 @@ export function SpaceRuleSetJSONToJSONTyped(value?: SpaceRuleSetJSON | null, ign
|
|
|
108
116
|
|
|
109
117
|
return {
|
|
110
118
|
|
|
111
|
-
'config': value['config'],
|
|
119
|
+
'config': LogicLayerConfigToJSON(value['config']),
|
|
112
120
|
'createdDate': value['createdDate'],
|
|
113
121
|
'creationMode': value['creationMode'],
|
|
114
122
|
'description': value['description'],
|
|
@@ -38,7 +38,7 @@ export interface SpaceRulesetCreate {
|
|
|
38
38
|
*/
|
|
39
39
|
preset?: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Kept as a label: "Standard", "Amenity", or "Advanced". Every logic layer starts with no rules when no preset is supplied.
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof SpaceRulesetCreate
|
|
44
44
|
*/
|
package/src/models/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './AccountPostOIDCProviderReqBody';
|
|
|
21
21
|
export * from './AccountPostReqBody';
|
|
22
22
|
export * from './AccountPutOIDCClientSecretReqBody';
|
|
23
23
|
export * from './AccountPutReqBody';
|
|
24
|
+
export * from './AccountTextFilePostBody';
|
|
24
25
|
export * from './AccountUsageResBody';
|
|
25
26
|
export * from './ActivityData';
|
|
26
27
|
export * from './ActivityLocationData';
|
|
@@ -62,7 +63,11 @@ export * from './CalcAxis';
|
|
|
62
63
|
export * from './CalcAxisMember';
|
|
63
64
|
export * from './CalcBody';
|
|
64
65
|
export * from './CalcChildren';
|
|
66
|
+
export * from './CalcCompare';
|
|
67
|
+
export * from './CalcCondition';
|
|
65
68
|
export * from './CalcErrorBody';
|
|
69
|
+
export * from './CalcHasNode';
|
|
70
|
+
export * from './CalcIsObject';
|
|
66
71
|
export * from './CalcList';
|
|
67
72
|
export * from './CalcListEntry';
|
|
68
73
|
export * from './CalcListTwoD';
|
|
@@ -75,11 +80,16 @@ export * from './CalcRuleRefOneOf2';
|
|
|
75
80
|
export * from './CalcRuleRefOneOf3';
|
|
76
81
|
export * from './CalcRuleRefOneOf4';
|
|
77
82
|
export * from './CalcRuleRefOneOf5';
|
|
83
|
+
export * from './CalcRuleRefOneOf6';
|
|
78
84
|
export * from './CalcSegmentation';
|
|
79
85
|
export * from './CalcSegmentationOneOf';
|
|
80
86
|
export * from './CalcSegmentationOneOf1';
|
|
81
87
|
export * from './CalcSegmentationOneOf2';
|
|
82
88
|
export * from './CalcSelect';
|
|
89
|
+
export * from './CalcTest';
|
|
90
|
+
export * from './CalcTestOneOf';
|
|
91
|
+
export * from './CalcTestOneOf1';
|
|
92
|
+
export * from './CalcTestOneOf2';
|
|
83
93
|
export * from './CalcTreeList';
|
|
84
94
|
export * from './CalcTreeValue';
|
|
85
95
|
export * from './CalcTypeSingleValue';
|
|
@@ -205,6 +215,7 @@ export * from './GetEntry';
|
|
|
205
215
|
export * from './GetMappingRes';
|
|
206
216
|
export * from './GetResponseBody';
|
|
207
217
|
export * from './GetTopDownModelEntriesRes';
|
|
218
|
+
export * from './Group';
|
|
208
219
|
export * from './I18nTranslationsExportParamsWrapperBody';
|
|
209
220
|
export * from './I18nTranslationsImportParamsWrapperBody';
|
|
210
221
|
export * from './I18nTranslationsParamsWrapperBody';
|
|
@@ -229,6 +240,15 @@ export * from './ListAccountsForUserRow';
|
|
|
229
240
|
export * from './ListPage';
|
|
230
241
|
export * from './ListUserDetailsWithEmailRow';
|
|
231
242
|
export * from './LocationData';
|
|
243
|
+
export * from './LogicAssignment';
|
|
244
|
+
export * from './LogicAssignmentOneOf';
|
|
245
|
+
export * from './LogicAssignmentOneOf1';
|
|
246
|
+
export * from './LogicDemand';
|
|
247
|
+
export * from './LogicLayerConfig';
|
|
248
|
+
export * from './LogicPer';
|
|
249
|
+
export * from './LogicRule';
|
|
250
|
+
export * from './LogicSupply';
|
|
251
|
+
export * from './LogicSupplyWeight';
|
|
232
252
|
export * from './MappingProp';
|
|
233
253
|
export * from './MappingScenario';
|
|
234
254
|
export * from './MaybeVarFunc';
|
|
@@ -243,6 +263,7 @@ export * from './MeetingSizeData';
|
|
|
243
263
|
export * from './MetaVersionResponse';
|
|
244
264
|
export * from './MissingAttributeDetail';
|
|
245
265
|
export * from './MissingObjectDetail';
|
|
266
|
+
export * from './ModelObject';
|
|
246
267
|
export * from './ModelRecord';
|
|
247
268
|
export * from './MultiSelectChangelogData';
|
|
248
269
|
export * from './MultiSelectContributionData';
|
|
@@ -330,6 +351,8 @@ export * from './ScriptSummary';
|
|
|
330
351
|
export * from './ScriptUsage';
|
|
331
352
|
export * from './ScriptUsageResBody';
|
|
332
353
|
export * from './ScriptWebhookResBody';
|
|
354
|
+
export * from './SelectObjectsParamsWrapperBody';
|
|
355
|
+
export * from './Selection';
|
|
333
356
|
export * from './SendPasswordPutReqBody';
|
|
334
357
|
export * from './SerializedEvent';
|
|
335
358
|
export * from './ServerMessage';
|