@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,45 @@
|
|
|
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 { CalcRuleRef } from './CalcRuleRef';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LogicPer
|
|
17
|
+
*/
|
|
18
|
+
export interface LogicPer {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof LogicPer
|
|
23
|
+
*/
|
|
24
|
+
basis: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CalcRuleRef}
|
|
28
|
+
* @memberof LogicPer
|
|
29
|
+
*/
|
|
30
|
+
demand: CalcRuleRef;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {CalcRuleRef}
|
|
34
|
+
* @memberof LogicPer
|
|
35
|
+
*/
|
|
36
|
+
supply: CalcRuleRef;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LogicPer interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfLogicPer(value: object): value is LogicPer;
|
|
42
|
+
export declare function LogicPerFromJSON(json: any): LogicPer;
|
|
43
|
+
export declare function LogicPerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicPer;
|
|
44
|
+
export declare function LogicPerToJSON(json: any): LogicPer;
|
|
45
|
+
export declare function LogicPerToJSONTyped(value?: LogicPer | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLogicPer = instanceOfLogicPer;
|
|
17
|
+
exports.LogicPerFromJSON = LogicPerFromJSON;
|
|
18
|
+
exports.LogicPerFromJSONTyped = LogicPerFromJSONTyped;
|
|
19
|
+
exports.LogicPerToJSON = LogicPerToJSON;
|
|
20
|
+
exports.LogicPerToJSONTyped = LogicPerToJSONTyped;
|
|
21
|
+
const CalcRuleRef_1 = require("./CalcRuleRef");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LogicPer interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLogicPer(value) {
|
|
26
|
+
if (!('basis' in value) || value['basis'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('demand' in value) || value['demand'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('supply' in value) || value['supply'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function LogicPerFromJSON(json) {
|
|
35
|
+
return LogicPerFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function LogicPerFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'basis': json['basis'],
|
|
43
|
+
'demand': (0, CalcRuleRef_1.CalcRuleRefFromJSON)(json['demand']),
|
|
44
|
+
'supply': (0, CalcRuleRef_1.CalcRuleRefFromJSON)(json['supply']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function LogicPerToJSON(json) {
|
|
48
|
+
return LogicPerToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function LogicPerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'basis': value['basis'],
|
|
56
|
+
'demand': (0, CalcRuleRef_1.CalcRuleRefToJSON)(value['demand']),
|
|
57
|
+
'supply': (0, CalcRuleRef_1.CalcRuleRefToJSON)(value['supply']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { LogicPer } from './LogicPer';
|
|
13
|
+
import type { LogicAssignment } from './LogicAssignment';
|
|
14
|
+
import type { LogicDemand } from './LogicDemand';
|
|
15
|
+
import type { LogicSupply } from './LogicSupply';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LogicRule
|
|
20
|
+
*/
|
|
21
|
+
export interface LogicRule {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {LogicDemand}
|
|
25
|
+
* @memberof LogicRule
|
|
26
|
+
*/
|
|
27
|
+
demand: LogicDemand;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LogicRule
|
|
32
|
+
*/
|
|
33
|
+
exactNodes: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LogicRule
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<LogicAssignment>}
|
|
43
|
+
* @memberof LogicRule
|
|
44
|
+
*/
|
|
45
|
+
output: Array<LogicAssignment>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {LogicPer}
|
|
49
|
+
* @memberof LogicRule
|
|
50
|
+
*/
|
|
51
|
+
per: LogicPer;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {LogicSupply}
|
|
55
|
+
* @memberof LogicRule
|
|
56
|
+
*/
|
|
57
|
+
supply: LogicSupply;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the LogicRule interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfLogicRule(value: object): value is LogicRule;
|
|
63
|
+
export declare function LogicRuleFromJSON(json: any): LogicRule;
|
|
64
|
+
export declare function LogicRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicRule;
|
|
65
|
+
export declare function LogicRuleToJSON(json: any): LogicRule;
|
|
66
|
+
export declare function LogicRuleToJSONTyped(value?: LogicRule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLogicRule = instanceOfLogicRule;
|
|
17
|
+
exports.LogicRuleFromJSON = LogicRuleFromJSON;
|
|
18
|
+
exports.LogicRuleFromJSONTyped = LogicRuleFromJSONTyped;
|
|
19
|
+
exports.LogicRuleToJSON = LogicRuleToJSON;
|
|
20
|
+
exports.LogicRuleToJSONTyped = LogicRuleToJSONTyped;
|
|
21
|
+
const LogicPer_1 = require("./LogicPer");
|
|
22
|
+
const LogicAssignment_1 = require("./LogicAssignment");
|
|
23
|
+
const LogicDemand_1 = require("./LogicDemand");
|
|
24
|
+
const LogicSupply_1 = require("./LogicSupply");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LogicRule interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfLogicRule(value) {
|
|
29
|
+
if (!('demand' in value) || value['demand'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('exactNodes' in value) || value['exactNodes'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('output' in value) || value['output'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('per' in value) || value['per'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('supply' in value) || value['supply'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function LogicRuleFromJSON(json) {
|
|
44
|
+
return LogicRuleFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LogicRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'demand': (0, LogicDemand_1.LogicDemandFromJSON)(json['demand']),
|
|
52
|
+
'exactNodes': json['exactNodes'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'output': (json['output'].map(LogicAssignment_1.LogicAssignmentFromJSON)),
|
|
55
|
+
'per': (0, LogicPer_1.LogicPerFromJSON)(json['per']),
|
|
56
|
+
'supply': (0, LogicSupply_1.LogicSupplyFromJSON)(json['supply']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function LogicRuleToJSON(json) {
|
|
60
|
+
return LogicRuleToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function LogicRuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'demand': (0, LogicDemand_1.LogicDemandToJSON)(value['demand']),
|
|
68
|
+
'exactNodes': value['exactNodes'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'output': (value['output'].map(LogicAssignment_1.LogicAssignmentToJSON)),
|
|
71
|
+
'per': (0, LogicPer_1.LogicPerToJSON)(value['per']),
|
|
72
|
+
'supply': (0, LogicSupply_1.LogicSupplyToJSON)(value['supply']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { LogicSupplyWeight } from './LogicSupplyWeight';
|
|
13
|
+
import type { FilterGroup } from './FilterGroup';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface LogicSupply
|
|
18
|
+
*/
|
|
19
|
+
export interface LogicSupply {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<FilterGroup>}
|
|
23
|
+
* @memberof LogicSupply
|
|
24
|
+
*/
|
|
25
|
+
filters: Array<FilterGroup>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof LogicSupply
|
|
30
|
+
*/
|
|
31
|
+
ignoreMissingWeights: boolean;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {{ [key: string]: LogicSupplyWeight; }}
|
|
35
|
+
* @memberof LogicSupply
|
|
36
|
+
*/
|
|
37
|
+
weights: {
|
|
38
|
+
[key: string]: LogicSupplyWeight;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the LogicSupply interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfLogicSupply(value: object): value is LogicSupply;
|
|
45
|
+
export declare function LogicSupplyFromJSON(json: any): LogicSupply;
|
|
46
|
+
export declare function LogicSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicSupply;
|
|
47
|
+
export declare function LogicSupplyToJSON(json: any): LogicSupply;
|
|
48
|
+
export declare function LogicSupplyToJSONTyped(value?: LogicSupply | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLogicSupply = instanceOfLogicSupply;
|
|
17
|
+
exports.LogicSupplyFromJSON = LogicSupplyFromJSON;
|
|
18
|
+
exports.LogicSupplyFromJSONTyped = LogicSupplyFromJSONTyped;
|
|
19
|
+
exports.LogicSupplyToJSON = LogicSupplyToJSON;
|
|
20
|
+
exports.LogicSupplyToJSONTyped = LogicSupplyToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
22
|
+
const LogicSupplyWeight_1 = require("./LogicSupplyWeight");
|
|
23
|
+
const FilterGroup_1 = require("./FilterGroup");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the LogicSupply interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfLogicSupply(value) {
|
|
28
|
+
if (!('filters' in value) || value['filters'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('ignoreMissingWeights' in value) || value['ignoreMissingWeights'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('weights' in value) || value['weights'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function LogicSupplyFromJSON(json) {
|
|
37
|
+
return LogicSupplyFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function LogicSupplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'filters': (json['filters'].map(FilterGroup_1.FilterGroupFromJSON)),
|
|
45
|
+
'ignoreMissingWeights': json['ignoreMissingWeights'],
|
|
46
|
+
'weights': ((0, runtime_1.mapValues)(json['weights'], LogicSupplyWeight_1.LogicSupplyWeightFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function LogicSupplyToJSON(json) {
|
|
50
|
+
return LogicSupplyToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function LogicSupplyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'filters': (value['filters'].map(FilterGroup_1.FilterGroupToJSON)),
|
|
58
|
+
'ignoreMissingWeights': value['ignoreMissingWeights'],
|
|
59
|
+
'weights': ((0, runtime_1.mapValues)(value['weights'], LogicSupplyWeight_1.LogicSupplyWeightToJSON)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 LogicSupplyWeight
|
|
16
|
+
*/
|
|
17
|
+
export interface LogicSupplyWeight {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof LogicSupplyWeight
|
|
22
|
+
*/
|
|
23
|
+
weight: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LogicSupplyWeight interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfLogicSupplyWeight(value: object): value is LogicSupplyWeight;
|
|
29
|
+
export declare function LogicSupplyWeightFromJSON(json: any): LogicSupplyWeight;
|
|
30
|
+
export declare function LogicSupplyWeightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicSupplyWeight;
|
|
31
|
+
export declare function LogicSupplyWeightToJSON(json: any): LogicSupplyWeight;
|
|
32
|
+
export declare function LogicSupplyWeightToJSONTyped(value?: LogicSupplyWeight | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLogicSupplyWeight = instanceOfLogicSupplyWeight;
|
|
17
|
+
exports.LogicSupplyWeightFromJSON = LogicSupplyWeightFromJSON;
|
|
18
|
+
exports.LogicSupplyWeightFromJSONTyped = LogicSupplyWeightFromJSONTyped;
|
|
19
|
+
exports.LogicSupplyWeightToJSON = LogicSupplyWeightToJSON;
|
|
20
|
+
exports.LogicSupplyWeightToJSONTyped = LogicSupplyWeightToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LogicSupplyWeight interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLogicSupplyWeight(value) {
|
|
25
|
+
if (!('weight' in value) || value['weight'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function LogicSupplyWeightFromJSON(json) {
|
|
30
|
+
return LogicSupplyWeightFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function LogicSupplyWeightFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'weight': json['weight'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function LogicSupplyWeightToJSON(json) {
|
|
41
|
+
return LogicSupplyWeightToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LogicSupplyWeightToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'weight': value['weight'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
13
13
|
import type { MaybeVarIntOneOf } from './MaybeVarIntOneOf';
|
|
14
14
|
/**
|
|
15
15
|
* @type MaybeVarInt
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export type MaybeVarInt =
|
|
19
|
+
export type MaybeVarInt = CalcRuleRefOneOf6 | MaybeVarIntOneOf;
|
|
20
20
|
export declare function MaybeVarIntFromJSON(json: any): MaybeVarInt;
|
|
21
21
|
export declare function MaybeVarIntFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaybeVarInt;
|
|
22
22
|
export declare function MaybeVarIntToJSON(json: any): any;
|
|
@@ -17,7 +17,7 @@ exports.MaybeVarIntFromJSON = MaybeVarIntFromJSON;
|
|
|
17
17
|
exports.MaybeVarIntFromJSONTyped = MaybeVarIntFromJSONTyped;
|
|
18
18
|
exports.MaybeVarIntToJSON = MaybeVarIntToJSON;
|
|
19
19
|
exports.MaybeVarIntToJSONTyped = MaybeVarIntToJSONTyped;
|
|
20
|
-
const
|
|
20
|
+
const CalcRuleRefOneOf6_1 = require("./CalcRuleRefOneOf6");
|
|
21
21
|
const MaybeVarIntOneOf_1 = require("./MaybeVarIntOneOf");
|
|
22
22
|
function MaybeVarIntFromJSON(json) {
|
|
23
23
|
return MaybeVarIntFromJSONTyped(json, false);
|
|
@@ -29,8 +29,8 @@ function MaybeVarIntFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
if (typeof json !== 'object') {
|
|
30
30
|
return json;
|
|
31
31
|
}
|
|
32
|
-
if ((0,
|
|
33
|
-
return (0,
|
|
32
|
+
if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(json)) {
|
|
33
|
+
return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6FromJSONTyped)(json, true);
|
|
34
34
|
}
|
|
35
35
|
if ((0, MaybeVarIntOneOf_1.instanceOfMaybeVarIntOneOf)(json)) {
|
|
36
36
|
return (0, MaybeVarIntOneOf_1.MaybeVarIntOneOfFromJSONTyped)(json, true);
|
|
@@ -47,8 +47,8 @@ function MaybeVarIntToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
47
|
if (typeof value !== 'object') {
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
50
|
-
if ((0,
|
|
51
|
-
return (0,
|
|
50
|
+
if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(value)) {
|
|
51
|
+
return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6ToJSON)(value);
|
|
52
52
|
}
|
|
53
53
|
if ((0, MaybeVarIntOneOf_1.instanceOfMaybeVarIntOneOf)(value)) {
|
|
54
54
|
return (0, MaybeVarIntOneOf_1.MaybeVarIntOneOfToJSON)(value);
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
13
13
|
import type { MaybeVarPropOneOf } from './MaybeVarPropOneOf';
|
|
14
14
|
/**
|
|
15
15
|
* @type MaybeVarProp
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export type MaybeVarProp =
|
|
19
|
+
export type MaybeVarProp = CalcRuleRefOneOf6 | MaybeVarPropOneOf;
|
|
20
20
|
export declare function MaybeVarPropFromJSON(json: any): MaybeVarProp;
|
|
21
21
|
export declare function MaybeVarPropFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaybeVarProp;
|
|
22
22
|
export declare function MaybeVarPropToJSON(json: any): any;
|
|
@@ -17,7 +17,7 @@ exports.MaybeVarPropFromJSON = MaybeVarPropFromJSON;
|
|
|
17
17
|
exports.MaybeVarPropFromJSONTyped = MaybeVarPropFromJSONTyped;
|
|
18
18
|
exports.MaybeVarPropToJSON = MaybeVarPropToJSON;
|
|
19
19
|
exports.MaybeVarPropToJSONTyped = MaybeVarPropToJSONTyped;
|
|
20
|
-
const
|
|
20
|
+
const CalcRuleRefOneOf6_1 = require("./CalcRuleRefOneOf6");
|
|
21
21
|
const MaybeVarPropOneOf_1 = require("./MaybeVarPropOneOf");
|
|
22
22
|
function MaybeVarPropFromJSON(json) {
|
|
23
23
|
return MaybeVarPropFromJSONTyped(json, false);
|
|
@@ -29,8 +29,8 @@ function MaybeVarPropFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
if (typeof json !== 'object') {
|
|
30
30
|
return json;
|
|
31
31
|
}
|
|
32
|
-
if ((0,
|
|
33
|
-
return (0,
|
|
32
|
+
if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(json)) {
|
|
33
|
+
return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6FromJSONTyped)(json, true);
|
|
34
34
|
}
|
|
35
35
|
if ((0, MaybeVarPropOneOf_1.instanceOfMaybeVarPropOneOf)(json)) {
|
|
36
36
|
return (0, MaybeVarPropOneOf_1.MaybeVarPropOneOfFromJSONTyped)(json, true);
|
|
@@ -47,8 +47,8 @@ function MaybeVarPropToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
47
|
if (typeof value !== 'object') {
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
50
|
-
if ((0,
|
|
51
|
-
return (0,
|
|
50
|
+
if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(value)) {
|
|
51
|
+
return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6ToJSON)(value);
|
|
52
52
|
}
|
|
53
53
|
if ((0, MaybeVarPropOneOf_1.instanceOfMaybeVarPropOneOf)(value)) {
|
|
54
54
|
return (0, MaybeVarPropOneOf_1.MaybeVarPropOneOfToJSON)(value);
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
13
13
|
import type { MaybeVarStrOneOf } from './MaybeVarStrOneOf';
|
|
14
14
|
/**
|
|
15
15
|
* @type MaybeVarStr
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export type MaybeVarStr =
|
|
19
|
+
export type MaybeVarStr = CalcRuleRefOneOf6 | MaybeVarStrOneOf;
|
|
20
20
|
export declare function MaybeVarStrFromJSON(json: any): MaybeVarStr;
|
|
21
21
|
export declare function MaybeVarStrFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaybeVarStr;
|
|
22
22
|
export declare function MaybeVarStrToJSON(json: any): any;
|
|
@@ -17,7 +17,7 @@ exports.MaybeVarStrFromJSON = MaybeVarStrFromJSON;
|
|
|
17
17
|
exports.MaybeVarStrFromJSONTyped = MaybeVarStrFromJSONTyped;
|
|
18
18
|
exports.MaybeVarStrToJSON = MaybeVarStrToJSON;
|
|
19
19
|
exports.MaybeVarStrToJSONTyped = MaybeVarStrToJSONTyped;
|
|
20
|
-
const
|
|
20
|
+
const CalcRuleRefOneOf6_1 = require("./CalcRuleRefOneOf6");
|
|
21
21
|
const MaybeVarStrOneOf_1 = require("./MaybeVarStrOneOf");
|
|
22
22
|
function MaybeVarStrFromJSON(json) {
|
|
23
23
|
return MaybeVarStrFromJSONTyped(json, false);
|
|
@@ -29,8 +29,8 @@ function MaybeVarStrFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
if (typeof json !== 'object') {
|
|
30
30
|
return json;
|
|
31
31
|
}
|
|
32
|
-
if ((0,
|
|
33
|
-
return (0,
|
|
32
|
+
if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(json)) {
|
|
33
|
+
return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6FromJSONTyped)(json, true);
|
|
34
34
|
}
|
|
35
35
|
if ((0, MaybeVarStrOneOf_1.instanceOfMaybeVarStrOneOf)(json)) {
|
|
36
36
|
return (0, MaybeVarStrOneOf_1.MaybeVarStrOneOfFromJSONTyped)(json, true);
|
|
@@ -47,8 +47,8 @@ function MaybeVarStrToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
47
|
if (typeof value !== 'object') {
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
50
|
-
if ((0,
|
|
51
|
-
return (0,
|
|
50
|
+
if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(value)) {
|
|
51
|
+
return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6ToJSON)(value);
|
|
52
52
|
}
|
|
53
53
|
if ((0, MaybeVarStrOneOf_1.instanceOfMaybeVarStrOneOf)(value)) {
|
|
54
54
|
return (0, MaybeVarStrOneOf_1.MaybeVarStrOneOfToJSON)(value);
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ModelObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelObject
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelObject
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ModelObject interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfModelObject(value: object): value is ModelObject;
|
|
35
|
+
export declare function ModelObjectFromJSON(json: any): ModelObject;
|
|
36
|
+
export declare function ModelObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelObject;
|
|
37
|
+
export declare function ModelObjectToJSON(json: any): ModelObject;
|
|
38
|
+
export declare function ModelObjectToJSONTyped(value?: ModelObject | null, ignoreDiscriminator?: boolean): any;
|