@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
|
@@ -169,7 +169,7 @@ export interface TopDownModelsApiInterface {
|
|
|
169
169
|
*/
|
|
170
170
|
update(requestParameters: TopDownModelsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
171
171
|
/**
|
|
172
|
-
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references
|
|
172
|
+
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
|
|
173
173
|
* @summary Create or update a top-down model entry
|
|
174
174
|
* @param {string} id
|
|
175
175
|
* @param {TopDownModelEntryUpdate} [topDownModelEntryUpdate]
|
|
@@ -179,7 +179,7 @@ export interface TopDownModelsApiInterface {
|
|
|
179
179
|
*/
|
|
180
180
|
updateEntriesRaw(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
181
181
|
/**
|
|
182
|
-
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references
|
|
182
|
+
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
|
|
183
183
|
* Create or update a top-down model entry
|
|
184
184
|
*/
|
|
185
185
|
updateEntries(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -269,12 +269,12 @@ export declare class TopDownModelsApi extends runtime.BaseAPI implements TopDown
|
|
|
269
269
|
*/
|
|
270
270
|
update(requestParameters: TopDownModelsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
271
271
|
/**
|
|
272
|
-
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references
|
|
272
|
+
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
|
|
273
273
|
* Create or update a top-down model entry
|
|
274
274
|
*/
|
|
275
275
|
updateEntriesRaw(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
276
276
|
/**
|
|
277
|
-
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references
|
|
277
|
+
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
|
|
278
278
|
* Create or update a top-down model entry
|
|
279
279
|
*/
|
|
280
280
|
updateEntries(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -359,7 +359,7 @@ export class TopDownModelsApi extends runtime.BaseAPI {
|
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
/**
|
|
362
|
-
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references
|
|
362
|
+
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
|
|
363
363
|
* Create or update a top-down model entry
|
|
364
364
|
*/
|
|
365
365
|
updateEntriesRaw(requestParameters, initOverrides) {
|
|
@@ -390,7 +390,7 @@ export class TopDownModelsApi extends runtime.BaseAPI {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
/**
|
|
393
|
-
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references
|
|
393
|
+
* Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references, the add, subtract, multiply and divide operators, and `condition` (if a comparison or a `has` test, then one expression, else another). With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
|
|
394
394
|
* Create or update a top-down model entry
|
|
395
395
|
*/
|
|
396
396
|
updateEntries(requestParameters, initOverrides) {
|
|
@@ -90,7 +90,7 @@ export interface VariablesApiInterface {
|
|
|
90
90
|
*/
|
|
91
91
|
list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VariableListRes>;
|
|
92
92
|
/**
|
|
93
|
-
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations
|
|
93
|
+
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
|
|
94
94
|
* @summary List account variable references
|
|
95
95
|
* @param {string} id Account variable ID, either qualified (account:<id>) or bare.
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
@@ -99,7 +99,7 @@ export interface VariablesApiInterface {
|
|
|
99
99
|
*/
|
|
100
100
|
listReferencesRaw(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferencesRes>>;
|
|
101
101
|
/**
|
|
102
|
-
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations
|
|
102
|
+
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
|
|
103
103
|
* List account variable references
|
|
104
104
|
*/
|
|
105
105
|
listReferences(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReferencesRes>;
|
|
@@ -164,12 +164,12 @@ export declare class VariablesApi extends runtime.BaseAPI implements VariablesAp
|
|
|
164
164
|
*/
|
|
165
165
|
list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VariableListRes>;
|
|
166
166
|
/**
|
|
167
|
-
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations
|
|
167
|
+
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
|
|
168
168
|
* List account variable references
|
|
169
169
|
*/
|
|
170
170
|
listReferencesRaw(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferencesRes>>;
|
|
171
171
|
/**
|
|
172
|
-
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations
|
|
172
|
+
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
|
|
173
173
|
* List account variable references
|
|
174
174
|
*/
|
|
175
175
|
listReferences(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReferencesRes>;
|
|
@@ -181,7 +181,7 @@ export class VariablesApi extends runtime.BaseAPI {
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
|
-
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations
|
|
184
|
+
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
|
|
185
185
|
* List account variable references
|
|
186
186
|
*/
|
|
187
187
|
listReferencesRaw(requestParameters, initOverrides) {
|
|
@@ -210,7 +210,7 @@ export class VariablesApi extends runtime.BaseAPI {
|
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
|
-
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations
|
|
213
|
+
* Returns every place in the account that uses the account-level variable: project value overrides, project filters, dashboard visualisations, the modifier formulas of layers and the functions of logic layers, across all projects including archived ones. A variable can only be deleted, or have its type changed, when this list is empty. Requires the *View projects* permission.
|
|
214
214
|
* List account variable references
|
|
215
215
|
*/
|
|
216
216
|
listReferences(requestParameters, initOverrides) {
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './FloorPlansApi';
|
|
|
13
13
|
export * from './IntegrationsApi';
|
|
14
14
|
export * from './InternalApi';
|
|
15
15
|
export * from './LocalisationApi';
|
|
16
|
+
export * from './LogicLayersApi';
|
|
16
17
|
export * from './LookupsApi';
|
|
17
18
|
export * from './NeedsApi';
|
|
18
19
|
export * from './ObjectGroupsApi';
|
|
@@ -22,7 +23,6 @@ export * from './ReportsApi';
|
|
|
22
23
|
export * from './ScenariosApi';
|
|
23
24
|
export * from './ScriptsApi';
|
|
24
25
|
export * from './ServiceApi';
|
|
25
|
-
export * from './SpaceRulesetsApi';
|
|
26
26
|
export * from './TemplateProjectsApi';
|
|
27
27
|
export * from './TopDownModelsApi';
|
|
28
28
|
export * from './UsersApi';
|
package/dist/esm/apis/index.js
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,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 CalcCompare
|
|
17
|
+
*/
|
|
18
|
+
export interface CalcCompare {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CalcRuleRef}
|
|
22
|
+
* @memberof CalcCompare
|
|
23
|
+
*/
|
|
24
|
+
left: CalcRuleRef;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CalcCompare
|
|
29
|
+
*/
|
|
30
|
+
op: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {CalcRuleRef}
|
|
34
|
+
* @memberof CalcCompare
|
|
35
|
+
*/
|
|
36
|
+
right: CalcRuleRef;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CalcCompare interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfCalcCompare(value: object): value is CalcCompare;
|
|
42
|
+
export declare function CalcCompareFromJSON(json: any): CalcCompare;
|
|
43
|
+
export declare function CalcCompareFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcCompare;
|
|
44
|
+
export declare function CalcCompareToJSON(json: any): CalcCompare;
|
|
45
|
+
export declare function CalcCompareToJSONTyped(value?: CalcCompare | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CalcRuleRefFromJSON, CalcRuleRefToJSON, } from './CalcRuleRef';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CalcCompare interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCalcCompare(value) {
|
|
19
|
+
if (!('left' in value) || value['left'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('op' in value) || value['op'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('right' in value) || value['right'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function CalcCompareFromJSON(json) {
|
|
28
|
+
return CalcCompareFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function CalcCompareFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'left': CalcRuleRefFromJSON(json['left']),
|
|
36
|
+
'op': json['op'],
|
|
37
|
+
'right': CalcRuleRefFromJSON(json['right']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function CalcCompareToJSON(json) {
|
|
41
|
+
return CalcCompareToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function CalcCompareToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'left': CalcRuleRefToJSON(value['left']),
|
|
49
|
+
'op': value['op'],
|
|
50
|
+
'right': CalcRuleRefToJSON(value['right']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { CalcTest } from './CalcTest';
|
|
13
|
+
import type { CalcRuleRef } from './CalcRuleRef';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CalcCondition
|
|
18
|
+
*/
|
|
19
|
+
export interface CalcCondition {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CalcRuleRef}
|
|
23
|
+
* @memberof CalcCondition
|
|
24
|
+
*/
|
|
25
|
+
_else: CalcRuleRef;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {CalcTest}
|
|
29
|
+
* @memberof CalcCondition
|
|
30
|
+
*/
|
|
31
|
+
_if: CalcTest;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {CalcRuleRef}
|
|
35
|
+
* @memberof CalcCondition
|
|
36
|
+
*/
|
|
37
|
+
then: CalcRuleRef;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CalcCondition interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCalcCondition(value: object): value is CalcCondition;
|
|
43
|
+
export declare function CalcConditionFromJSON(json: any): CalcCondition;
|
|
44
|
+
export declare function CalcConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcCondition;
|
|
45
|
+
export declare function CalcConditionToJSON(json: any): CalcCondition;
|
|
46
|
+
export declare function CalcConditionToJSONTyped(value?: CalcCondition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CalcTestFromJSON, CalcTestToJSON, } from './CalcTest';
|
|
15
|
+
import { CalcRuleRefFromJSON, CalcRuleRefToJSON, } from './CalcRuleRef';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CalcCondition interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCalcCondition(value) {
|
|
20
|
+
if (!('_else' in value) || value['_else'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('_if' in value) || value['_if'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('then' in value) || value['then'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function CalcConditionFromJSON(json) {
|
|
29
|
+
return CalcConditionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function CalcConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'_else': CalcRuleRefFromJSON(json['else']),
|
|
37
|
+
'_if': CalcTestFromJSON(json['if']),
|
|
38
|
+
'then': CalcRuleRefFromJSON(json['then']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function CalcConditionToJSON(json) {
|
|
42
|
+
return CalcConditionToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function CalcConditionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'else': CalcRuleRefToJSON(value['_else']),
|
|
50
|
+
'if': CalcTestToJSON(value['_if']),
|
|
51
|
+
'then': CalcRuleRefToJSON(value['then']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 CalcHasNode
|
|
16
|
+
*/
|
|
17
|
+
export interface CalcHasNode {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof CalcHasNode
|
|
22
|
+
*/
|
|
23
|
+
exact: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CalcHasNode
|
|
28
|
+
*/
|
|
29
|
+
nodes: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CalcHasNode
|
|
34
|
+
*/
|
|
35
|
+
property: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CalcHasNode interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCalcHasNode(value: object): value is CalcHasNode;
|
|
41
|
+
export declare function CalcHasNodeFromJSON(json: any): CalcHasNode;
|
|
42
|
+
export declare function CalcHasNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcHasNode;
|
|
43
|
+
export declare function CalcHasNodeToJSON(json: any): CalcHasNode;
|
|
44
|
+
export declare function CalcHasNodeToJSONTyped(value?: CalcHasNode | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the CalcHasNode interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCalcHasNode(value) {
|
|
18
|
+
if (!('exact' in value) || value['exact'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('nodes' in value) || value['nodes'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('property' in value) || value['property'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function CalcHasNodeFromJSON(json) {
|
|
27
|
+
return CalcHasNodeFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function CalcHasNodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'exact': json['exact'],
|
|
35
|
+
'nodes': json['nodes'],
|
|
36
|
+
'property': json['property'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function CalcHasNodeToJSON(json) {
|
|
40
|
+
return CalcHasNodeToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function CalcHasNodeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'exact': value['exact'],
|
|
48
|
+
'nodes': value['nodes'],
|
|
49
|
+
'property': value['property'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 CalcIsObject
|
|
16
|
+
*/
|
|
17
|
+
export interface CalcIsObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof CalcIsObject
|
|
22
|
+
*/
|
|
23
|
+
objects: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CalcIsObject interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCalcIsObject(value: object): value is CalcIsObject;
|
|
29
|
+
export declare function CalcIsObjectFromJSON(json: any): CalcIsObject;
|
|
30
|
+
export declare function CalcIsObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcIsObject;
|
|
31
|
+
export declare function CalcIsObjectToJSON(json: any): CalcIsObject;
|
|
32
|
+
export declare function CalcIsObjectToJSONTyped(value?: CalcIsObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the CalcIsObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCalcIsObject(value) {
|
|
18
|
+
if (!('objects' in value) || value['objects'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CalcIsObjectFromJSON(json) {
|
|
23
|
+
return CalcIsObjectFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CalcIsObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'objects': json['objects'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function CalcIsObjectToJSON(json) {
|
|
34
|
+
return CalcIsObjectToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CalcIsObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'objects': value['objects'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -15,12 +15,13 @@ import type { CalcRuleRefOneOf2 } from './CalcRuleRefOneOf2';
|
|
|
15
15
|
import type { CalcRuleRefOneOf3 } from './CalcRuleRefOneOf3';
|
|
16
16
|
import type { CalcRuleRefOneOf4 } from './CalcRuleRefOneOf4';
|
|
17
17
|
import type { CalcRuleRefOneOf5 } from './CalcRuleRefOneOf5';
|
|
18
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
18
19
|
/**
|
|
19
20
|
* @type CalcRuleRef
|
|
20
21
|
*
|
|
21
22
|
* @export
|
|
22
23
|
*/
|
|
23
|
-
export type CalcRuleRef = CalcRuleRefOneOf | CalcRuleRefOneOf1 | CalcRuleRefOneOf2 | CalcRuleRefOneOf3 | CalcRuleRefOneOf4 | CalcRuleRefOneOf5;
|
|
24
|
+
export type CalcRuleRef = CalcRuleRefOneOf | CalcRuleRefOneOf1 | CalcRuleRefOneOf2 | CalcRuleRefOneOf3 | CalcRuleRefOneOf4 | CalcRuleRefOneOf5 | CalcRuleRefOneOf6;
|
|
24
25
|
export declare function CalcRuleRefFromJSON(json: any): CalcRuleRef;
|
|
25
26
|
export declare function CalcRuleRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcRuleRef;
|
|
26
27
|
export declare function CalcRuleRefToJSON(json: any): any;
|
|
@@ -17,6 +17,7 @@ import { instanceOfCalcRuleRefOneOf2, CalcRuleRefOneOf2FromJSONTyped, CalcRuleRe
|
|
|
17
17
|
import { instanceOfCalcRuleRefOneOf3, CalcRuleRefOneOf3FromJSONTyped, CalcRuleRefOneOf3ToJSON, } from './CalcRuleRefOneOf3';
|
|
18
18
|
import { instanceOfCalcRuleRefOneOf4, CalcRuleRefOneOf4FromJSONTyped, CalcRuleRefOneOf4ToJSON, } from './CalcRuleRefOneOf4';
|
|
19
19
|
import { instanceOfCalcRuleRefOneOf5, CalcRuleRefOneOf5FromJSONTyped, CalcRuleRefOneOf5ToJSON, } from './CalcRuleRefOneOf5';
|
|
20
|
+
import { instanceOfCalcRuleRefOneOf6, CalcRuleRefOneOf6FromJSONTyped, CalcRuleRefOneOf6ToJSON, } from './CalcRuleRefOneOf6';
|
|
20
21
|
export function CalcRuleRefFromJSON(json) {
|
|
21
22
|
return CalcRuleRefFromJSONTyped(json, false);
|
|
22
23
|
}
|
|
@@ -45,6 +46,9 @@ export function CalcRuleRefFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
46
|
if (instanceOfCalcRuleRefOneOf5(json)) {
|
|
46
47
|
return CalcRuleRefOneOf5FromJSONTyped(json, true);
|
|
47
48
|
}
|
|
49
|
+
if (instanceOfCalcRuleRefOneOf6(json)) {
|
|
50
|
+
return CalcRuleRefOneOf6FromJSONTyped(json, true);
|
|
51
|
+
}
|
|
48
52
|
return {};
|
|
49
53
|
}
|
|
50
54
|
export function CalcRuleRefToJSON(json) {
|
|
@@ -75,5 +79,8 @@ export function CalcRuleRefToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
79
|
if (instanceOfCalcRuleRefOneOf5(value)) {
|
|
76
80
|
return CalcRuleRefOneOf5ToJSON(value);
|
|
77
81
|
}
|
|
82
|
+
if (instanceOfCalcRuleRefOneOf6(value)) {
|
|
83
|
+
return CalcRuleRefOneOf6ToJSON(value);
|
|
84
|
+
}
|
|
78
85
|
return {};
|
|
79
86
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CalcCondition } from './CalcCondition';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,10 +18,10 @@
|
|
|
17
18
|
export interface CalcRuleRefOneOf2 {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {CalcCondition}
|
|
21
22
|
* @memberof CalcRuleRefOneOf2
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
condition: CalcCondition;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the CalcRuleRefOneOf2 interface.
|
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { CalcConditionFromJSON, CalcConditionToJSON, } from './CalcCondition';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the CalcRuleRefOneOf2 interface.
|
|
16
17
|
*/
|
|
17
18
|
export function instanceOfCalcRuleRefOneOf2(value) {
|
|
18
|
-
if (!('
|
|
19
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
19
20
|
return false;
|
|
20
21
|
return true;
|
|
21
22
|
}
|
|
@@ -27,7 +28,7 @@ export function CalcRuleRefOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
28
|
return json;
|
|
28
29
|
}
|
|
29
30
|
return {
|
|
30
|
-
'
|
|
31
|
+
'condition': CalcConditionFromJSON(json['condition']),
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function CalcRuleRefOneOf2ToJSON(json) {
|
|
@@ -38,6 +39,6 @@ export function CalcRuleRefOneOf2ToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
38
39
|
return value;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
|
-
'
|
|
42
|
+
'condition': CalcConditionToJSON(value['condition']),
|
|
42
43
|
};
|
|
43
44
|
}
|