@spaciv/sdk 0.1.20 → 0.1.22
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 +27 -1
- package/README.md +2 -2
- 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/ScriptsApi.d.ts +57 -1
- package/dist/apis/ScriptsApi.js +82 -0
- 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/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/ScriptsApi.d.ts +57 -1
- package/dist/esm/apis/ScriptsApi.js +83 -1
- 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/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/ObjectGroupListEntry.d.ts +0 -6
- package/dist/esm/models/ObjectGroupListEntry.js +0 -4
- package/dist/esm/models/ScratchpadOutput.d.ts +69 -0
- package/dist/esm/models/ScratchpadOutput.js +64 -0
- package/dist/esm/models/ScratchpadOutputFile.d.ts +44 -0
- package/dist/esm/models/ScratchpadOutputFile.js +49 -0
- package/dist/esm/models/ScratchpadRun.d.ts +127 -0
- package/dist/esm/models/ScratchpadRun.js +91 -0
- package/dist/esm/models/ScratchpadRunPostReqBody.d.ts +58 -0
- package/dist/esm/models/ScratchpadRunPostReqBody.js +53 -0
- 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 +26 -0
- package/dist/esm/models/index.js +26 -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/ObjectGroupListEntry.d.ts +0 -6
- package/dist/models/ObjectGroupListEntry.js +0 -4
- package/dist/models/ScratchpadOutput.d.ts +69 -0
- package/dist/models/ScratchpadOutput.js +71 -0
- package/dist/models/ScratchpadOutputFile.d.ts +44 -0
- package/dist/models/ScratchpadOutputFile.js +56 -0
- package/dist/models/ScratchpadRun.d.ts +127 -0
- package/dist/models/ScratchpadRun.js +99 -0
- package/dist/models/ScratchpadRunPostReqBody.d.ts +58 -0
- package/dist/models/ScratchpadRunPostReqBody.js +60 -0
- 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 +26 -0
- package/dist/models/index.js +26 -0
- package/package.json +1 -1
- 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/ScriptsApi.ts +148 -0
- package/src/apis/TopDownModelsApi.ts +4 -4
- package/src/apis/VariablesApi.ts +4 -4
- package/src/apis/index.ts +1 -1
- 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/ObjectGroupListEntry.ts +0 -9
- package/src/models/ScratchpadOutput.ts +126 -0
- package/src/models/ScratchpadOutputFile.ts +83 -0
- package/src/models/ScratchpadRun.ts +203 -0
- package/src/models/ScratchpadRunPostReqBody.ts +99 -0
- 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 +26 -0
- package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
- package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
package/src/apis/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './FloorPlansApi';
|
|
|
15
15
|
export * from './IntegrationsApi';
|
|
16
16
|
export * from './InternalApi';
|
|
17
17
|
export * from './LocalisationApi';
|
|
18
|
+
export * from './LogicLayersApi';
|
|
18
19
|
export * from './LookupsApi';
|
|
19
20
|
export * from './NeedsApi';
|
|
20
21
|
export * from './ObjectGroupsApi';
|
|
@@ -24,7 +25,6 @@ export * from './ReportsApi';
|
|
|
24
25
|
export * from './ScenariosApi';
|
|
25
26
|
export * from './ScriptsApi';
|
|
26
27
|
export * from './ServiceApi';
|
|
27
|
-
export * from './SpaceRulesetsApi';
|
|
28
28
|
export * from './TemplateProjectsApi';
|
|
29
29
|
export * from './TopDownModelsApi';
|
|
30
30
|
export * from './UsersApi';
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { CalcRuleRef } from './CalcRuleRef';
|
|
17
|
+
import {
|
|
18
|
+
CalcRuleRefFromJSON,
|
|
19
|
+
CalcRuleRefFromJSONTyped,
|
|
20
|
+
CalcRuleRefToJSON,
|
|
21
|
+
CalcRuleRefToJSONTyped,
|
|
22
|
+
} from './CalcRuleRef';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CalcCompare
|
|
28
|
+
*/
|
|
29
|
+
export interface CalcCompare {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CalcRuleRef}
|
|
33
|
+
* @memberof CalcCompare
|
|
34
|
+
*/
|
|
35
|
+
left: CalcRuleRef;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CalcCompare
|
|
40
|
+
*/
|
|
41
|
+
op: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CalcRuleRef}
|
|
45
|
+
* @memberof CalcCompare
|
|
46
|
+
*/
|
|
47
|
+
right: CalcRuleRef;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the CalcCompare interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfCalcCompare(value: object): value is CalcCompare {
|
|
54
|
+
if (!('left' in value) || value['left'] === undefined) return false;
|
|
55
|
+
if (!('op' in value) || value['op'] === undefined) return false;
|
|
56
|
+
if (!('right' in value) || value['right'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CalcCompareFromJSON(json: any): CalcCompare {
|
|
61
|
+
return CalcCompareFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CalcCompareFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcCompare {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'left': CalcRuleRefFromJSON(json['left']),
|
|
71
|
+
'op': json['op'],
|
|
72
|
+
'right': CalcRuleRefFromJSON(json['right']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function CalcCompareToJSON(json: any): CalcCompare {
|
|
77
|
+
return CalcCompareToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CalcCompareToJSONTyped(value?: CalcCompare | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'left': CalcRuleRefToJSON(value['left']),
|
|
88
|
+
'op': value['op'],
|
|
89
|
+
'right': CalcRuleRefToJSON(value['right']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { CalcTest } from './CalcTest';
|
|
17
|
+
import {
|
|
18
|
+
CalcTestFromJSON,
|
|
19
|
+
CalcTestFromJSONTyped,
|
|
20
|
+
CalcTestToJSON,
|
|
21
|
+
CalcTestToJSONTyped,
|
|
22
|
+
} from './CalcTest';
|
|
23
|
+
import type { CalcRuleRef } from './CalcRuleRef';
|
|
24
|
+
import {
|
|
25
|
+
CalcRuleRefFromJSON,
|
|
26
|
+
CalcRuleRefFromJSONTyped,
|
|
27
|
+
CalcRuleRefToJSON,
|
|
28
|
+
CalcRuleRefToJSONTyped,
|
|
29
|
+
} from './CalcRuleRef';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CalcCondition
|
|
35
|
+
*/
|
|
36
|
+
export interface CalcCondition {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CalcRuleRef}
|
|
40
|
+
* @memberof CalcCondition
|
|
41
|
+
*/
|
|
42
|
+
_else: CalcRuleRef;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CalcTest}
|
|
46
|
+
* @memberof CalcCondition
|
|
47
|
+
*/
|
|
48
|
+
_if: CalcTest;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {CalcRuleRef}
|
|
52
|
+
* @memberof CalcCondition
|
|
53
|
+
*/
|
|
54
|
+
then: CalcRuleRef;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the CalcCondition interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfCalcCondition(value: object): value is CalcCondition {
|
|
61
|
+
if (!('_else' in value) || value['_else'] === undefined) return false;
|
|
62
|
+
if (!('_if' in value) || value['_if'] === undefined) return false;
|
|
63
|
+
if (!('then' in value) || value['then'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function CalcConditionFromJSON(json: any): CalcCondition {
|
|
68
|
+
return CalcConditionFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function CalcConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcCondition {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'_else': CalcRuleRefFromJSON(json['else']),
|
|
78
|
+
'_if': CalcTestFromJSON(json['if']),
|
|
79
|
+
'then': CalcRuleRefFromJSON(json['then']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CalcConditionToJSON(json: any): CalcCondition {
|
|
84
|
+
return CalcConditionToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CalcConditionToJSONTyped(value?: CalcCondition | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'else': CalcRuleRefToJSON(value['_else']),
|
|
95
|
+
'if': CalcTestToJSON(value['_if']),
|
|
96
|
+
'then': CalcRuleRefToJSON(value['then']),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 CalcHasNode
|
|
20
|
+
*/
|
|
21
|
+
export interface CalcHasNode {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof CalcHasNode
|
|
26
|
+
*/
|
|
27
|
+
exact: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof CalcHasNode
|
|
32
|
+
*/
|
|
33
|
+
nodes: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CalcHasNode
|
|
38
|
+
*/
|
|
39
|
+
property: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CalcHasNode interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfCalcHasNode(value: object): value is CalcHasNode {
|
|
46
|
+
if (!('exact' in value) || value['exact'] === undefined) return false;
|
|
47
|
+
if (!('nodes' in value) || value['nodes'] === undefined) return false;
|
|
48
|
+
if (!('property' in value) || value['property'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CalcHasNodeFromJSON(json: any): CalcHasNode {
|
|
53
|
+
return CalcHasNodeFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CalcHasNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcHasNode {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'exact': json['exact'],
|
|
63
|
+
'nodes': json['nodes'],
|
|
64
|
+
'property': json['property'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CalcHasNodeToJSON(json: any): CalcHasNode {
|
|
69
|
+
return CalcHasNodeToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CalcHasNodeToJSONTyped(value?: CalcHasNode | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'exact': value['exact'],
|
|
80
|
+
'nodes': value['nodes'],
|
|
81
|
+
'property': value['property'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 CalcIsObject
|
|
20
|
+
*/
|
|
21
|
+
export interface CalcIsObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof CalcIsObject
|
|
26
|
+
*/
|
|
27
|
+
objects: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CalcIsObject interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCalcIsObject(value: object): value is CalcIsObject {
|
|
34
|
+
if (!('objects' in value) || value['objects'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CalcIsObjectFromJSON(json: any): CalcIsObject {
|
|
39
|
+
return CalcIsObjectFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CalcIsObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcIsObject {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'objects': json['objects'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CalcIsObjectToJSON(json: any): CalcIsObject {
|
|
53
|
+
return CalcIsObjectToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CalcIsObjectToJSONTyped(value?: CalcIsObject | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'objects': value['objects'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -54,13 +54,20 @@ import {
|
|
|
54
54
|
CalcRuleRefOneOf5FromJSONTyped,
|
|
55
55
|
CalcRuleRefOneOf5ToJSON,
|
|
56
56
|
} from './CalcRuleRefOneOf5';
|
|
57
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
58
|
+
import {
|
|
59
|
+
instanceOfCalcRuleRefOneOf6,
|
|
60
|
+
CalcRuleRefOneOf6FromJSON,
|
|
61
|
+
CalcRuleRefOneOf6FromJSONTyped,
|
|
62
|
+
CalcRuleRefOneOf6ToJSON,
|
|
63
|
+
} from './CalcRuleRefOneOf6';
|
|
57
64
|
|
|
58
65
|
/**
|
|
59
66
|
* @type CalcRuleRef
|
|
60
67
|
*
|
|
61
68
|
* @export
|
|
62
69
|
*/
|
|
63
|
-
export type CalcRuleRef = CalcRuleRefOneOf | CalcRuleRefOneOf1 | CalcRuleRefOneOf2 | CalcRuleRefOneOf3 | CalcRuleRefOneOf4 | CalcRuleRefOneOf5;
|
|
70
|
+
export type CalcRuleRef = CalcRuleRefOneOf | CalcRuleRefOneOf1 | CalcRuleRefOneOf2 | CalcRuleRefOneOf3 | CalcRuleRefOneOf4 | CalcRuleRefOneOf5 | CalcRuleRefOneOf6;
|
|
64
71
|
|
|
65
72
|
export function CalcRuleRefFromJSON(json: any): CalcRuleRef {
|
|
66
73
|
return CalcRuleRefFromJSONTyped(json, false);
|
|
@@ -91,6 +98,9 @@ export function CalcRuleRefFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
91
98
|
if (instanceOfCalcRuleRefOneOf5(json)) {
|
|
92
99
|
return CalcRuleRefOneOf5FromJSONTyped(json, true);
|
|
93
100
|
}
|
|
101
|
+
if (instanceOfCalcRuleRefOneOf6(json)) {
|
|
102
|
+
return CalcRuleRefOneOf6FromJSONTyped(json, true);
|
|
103
|
+
}
|
|
94
104
|
return {} as any;
|
|
95
105
|
}
|
|
96
106
|
|
|
@@ -123,6 +133,9 @@ export function CalcRuleRefToJSONTyped(value?: CalcRuleRef | null, ignoreDiscrim
|
|
|
123
133
|
if (instanceOfCalcRuleRefOneOf5(value)) {
|
|
124
134
|
return CalcRuleRefOneOf5ToJSON(value as CalcRuleRefOneOf5);
|
|
125
135
|
}
|
|
136
|
+
if (instanceOfCalcRuleRefOneOf6(value)) {
|
|
137
|
+
return CalcRuleRefOneOf6ToJSON(value as CalcRuleRefOneOf6);
|
|
138
|
+
}
|
|
126
139
|
return {};
|
|
127
140
|
}
|
|
128
141
|
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CalcCondition } from './CalcCondition';
|
|
17
|
+
import {
|
|
18
|
+
CalcConditionFromJSON,
|
|
19
|
+
CalcConditionFromJSONTyped,
|
|
20
|
+
CalcConditionToJSON,
|
|
21
|
+
CalcConditionToJSONTyped,
|
|
22
|
+
} from './CalcCondition';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -21,17 +29,17 @@ import { mapValues } from '../runtime';
|
|
|
21
29
|
export interface CalcRuleRefOneOf2 {
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
|
-
* @type {
|
|
32
|
+
* @type {CalcCondition}
|
|
25
33
|
* @memberof CalcRuleRefOneOf2
|
|
26
34
|
*/
|
|
27
|
-
|
|
35
|
+
condition: CalcCondition;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
/**
|
|
31
39
|
* Check if a given object implements the CalcRuleRefOneOf2 interface.
|
|
32
40
|
*/
|
|
33
41
|
export function instanceOfCalcRuleRefOneOf2(value: object): value is CalcRuleRefOneOf2 {
|
|
34
|
-
if (!('
|
|
42
|
+
if (!('condition' in value) || value['condition'] === undefined) return false;
|
|
35
43
|
return true;
|
|
36
44
|
}
|
|
37
45
|
|
|
@@ -45,7 +53,7 @@ export function CalcRuleRefOneOf2FromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
45
53
|
}
|
|
46
54
|
return {
|
|
47
55
|
|
|
48
|
-
'
|
|
56
|
+
'condition': CalcConditionFromJSON(json['condition']),
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -60,7 +68,7 @@ export function CalcRuleRefOneOf2ToJSONTyped(value?: CalcRuleRefOneOf2 | null, i
|
|
|
60
68
|
|
|
61
69
|
return {
|
|
62
70
|
|
|
63
|
-
'
|
|
71
|
+
'condition': CalcConditionToJSON(value['condition']),
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { CalcSelect } from './CalcSelect';
|
|
17
|
-
import {
|
|
18
|
-
CalcSelectFromJSON,
|
|
19
|
-
CalcSelectFromJSONTyped,
|
|
20
|
-
CalcSelectToJSON,
|
|
21
|
-
CalcSelectToJSONTyped,
|
|
22
|
-
} from './CalcSelect';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -29,17 +21,17 @@ import {
|
|
|
29
21
|
export interface CalcRuleRefOneOf3 {
|
|
30
22
|
/**
|
|
31
23
|
*
|
|
32
|
-
* @type {
|
|
24
|
+
* @type {number}
|
|
33
25
|
* @memberof CalcRuleRefOneOf3
|
|
34
26
|
*/
|
|
35
|
-
|
|
27
|
+
num: number;
|
|
36
28
|
}
|
|
37
29
|
|
|
38
30
|
/**
|
|
39
31
|
* Check if a given object implements the CalcRuleRefOneOf3 interface.
|
|
40
32
|
*/
|
|
41
33
|
export function instanceOfCalcRuleRefOneOf3(value: object): value is CalcRuleRefOneOf3 {
|
|
42
|
-
if (!('
|
|
34
|
+
if (!('num' in value) || value['num'] === undefined) return false;
|
|
43
35
|
return true;
|
|
44
36
|
}
|
|
45
37
|
|
|
@@ -53,7 +45,7 @@ export function CalcRuleRefOneOf3FromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
53
45
|
}
|
|
54
46
|
return {
|
|
55
47
|
|
|
56
|
-
'
|
|
48
|
+
'num': json['num'],
|
|
57
49
|
};
|
|
58
50
|
}
|
|
59
51
|
|
|
@@ -68,7 +60,7 @@ export function CalcRuleRefOneOf3ToJSONTyped(value?: CalcRuleRefOneOf3 | null, i
|
|
|
68
60
|
|
|
69
61
|
return {
|
|
70
62
|
|
|
71
|
-
'
|
|
63
|
+
'num': value['num'],
|
|
72
64
|
};
|
|
73
65
|
}
|
|
74
66
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { CalcSelect } from './CalcSelect';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
CalcSelectFromJSON,
|
|
19
|
+
CalcSelectFromJSONTyped,
|
|
20
|
+
CalcSelectToJSON,
|
|
21
|
+
CalcSelectToJSONTyped,
|
|
22
|
+
} from './CalcSelect';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
export interface CalcRuleRefOneOf4 {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {CalcSelect}
|
|
33
33
|
* @memberof CalcRuleRefOneOf4
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
select: CalcSelect;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the CalcRuleRefOneOf4 interface.
|
|
40
40
|
*/
|
|
41
41
|
export function instanceOfCalcRuleRefOneOf4(value: object): value is CalcRuleRefOneOf4 {
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('select' in value) || value['select'] === undefined) return false;
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ export function CalcRuleRefOneOf4FromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
|
|
56
|
-
'
|
|
56
|
+
'select': CalcSelectFromJSON(json['select']),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -68,7 +68,7 @@ export function CalcRuleRefOneOf4ToJSONTyped(value?: CalcRuleRefOneOf4 | null, i
|
|
|
68
68
|
|
|
69
69
|
return {
|
|
70
70
|
|
|
71
|
-
'
|
|
71
|
+
'select': CalcSelectToJSON(value['select']),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CalcRuleRef } from './CalcRuleRef';
|
|
17
|
+
import {
|
|
18
|
+
CalcRuleRefFromJSON,
|
|
19
|
+
CalcRuleRefFromJSONTyped,
|
|
20
|
+
CalcRuleRefToJSON,
|
|
21
|
+
CalcRuleRefToJSONTyped,
|
|
22
|
+
} from './CalcRuleRef';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -21,17 +29,17 @@ import { mapValues } from '../runtime';
|
|
|
21
29
|
export interface CalcRuleRefOneOf5 {
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
|
-
* @type {
|
|
32
|
+
* @type {CalcRuleRef}
|
|
25
33
|
* @memberof CalcRuleRefOneOf5
|
|
26
34
|
*/
|
|
27
|
-
|
|
35
|
+
sumOf: CalcRuleRef;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
/**
|
|
31
39
|
* Check if a given object implements the CalcRuleRefOneOf5 interface.
|
|
32
40
|
*/
|
|
33
41
|
export function instanceOfCalcRuleRefOneOf5(value: object): value is CalcRuleRefOneOf5 {
|
|
34
|
-
if (!('
|
|
42
|
+
if (!('sumOf' in value) || value['sumOf'] === undefined) return false;
|
|
35
43
|
return true;
|
|
36
44
|
}
|
|
37
45
|
|
|
@@ -45,7 +53,7 @@ export function CalcRuleRefOneOf5FromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
45
53
|
}
|
|
46
54
|
return {
|
|
47
55
|
|
|
48
|
-
'
|
|
56
|
+
'sumOf': CalcRuleRefFromJSON(json['sumOf']),
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -60,7 +68,7 @@ export function CalcRuleRefOneOf5ToJSONTyped(value?: CalcRuleRefOneOf5 | null, i
|
|
|
60
68
|
|
|
61
69
|
return {
|
|
62
70
|
|
|
63
|
-
'
|
|
71
|
+
'sumOf': CalcRuleRefToJSON(value['sumOf']),
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|
|
@@ -0,0 +1,66 @@
|
|
|
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 CalcRuleRefOneOf6
|
|
20
|
+
*/
|
|
21
|
+
export interface CalcRuleRefOneOf6 {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CalcRuleRefOneOf6
|
|
26
|
+
*/
|
|
27
|
+
_var: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CalcRuleRefOneOf6 interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCalcRuleRefOneOf6(value: object): value is CalcRuleRefOneOf6 {
|
|
34
|
+
if (!('_var' in value) || value['_var'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CalcRuleRefOneOf6FromJSON(json: any): CalcRuleRefOneOf6 {
|
|
39
|
+
return CalcRuleRefOneOf6FromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CalcRuleRefOneOf6FromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcRuleRefOneOf6 {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'_var': json['var'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CalcRuleRefOneOf6ToJSON(json: any): CalcRuleRefOneOf6 {
|
|
53
|
+
return CalcRuleRefOneOf6ToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CalcRuleRefOneOf6ToJSONTyped(value?: CalcRuleRefOneOf6 | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'var': value['_var'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|