@spaciv/sdk 0.1.21 → 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 +23 -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/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/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/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 +22 -0
- package/dist/esm/models/index.js +22 -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/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 +22 -0
- package/dist/models/index.js +22 -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/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/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 +22 -0
- package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
- package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FilterGroup } from './FilterGroup';
|
|
17
|
+
import {
|
|
18
|
+
FilterGroupFromJSON,
|
|
19
|
+
FilterGroupFromJSONTyped,
|
|
20
|
+
FilterGroupToJSON,
|
|
21
|
+
FilterGroupToJSONTyped,
|
|
22
|
+
} from './FilterGroup';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SelectObjectsParamsWrapperBody
|
|
28
|
+
*/
|
|
29
|
+
export interface SelectObjectsParamsWrapperBody {
|
|
30
|
+
/**
|
|
31
|
+
* Filter groups, of which any may match; within a group every filter must. None selects every object.
|
|
32
|
+
* @type {Array<FilterGroup>}
|
|
33
|
+
* @memberof SelectObjectsParamsWrapperBody
|
|
34
|
+
*/
|
|
35
|
+
filters: Array<FilterGroup>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SelectObjectsParamsWrapperBody interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSelectObjectsParamsWrapperBody(value: object): value is SelectObjectsParamsWrapperBody {
|
|
42
|
+
if (!('filters' in value) || value['filters'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SelectObjectsParamsWrapperBodyFromJSON(json: any): SelectObjectsParamsWrapperBody {
|
|
47
|
+
return SelectObjectsParamsWrapperBodyFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SelectObjectsParamsWrapperBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectObjectsParamsWrapperBody {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'filters': ((json['filters'] as Array<any>).map(FilterGroupFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SelectObjectsParamsWrapperBodyToJSON(json: any): SelectObjectsParamsWrapperBody {
|
|
61
|
+
return SelectObjectsParamsWrapperBodyToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SelectObjectsParamsWrapperBodyToJSONTyped(value?: SelectObjectsParamsWrapperBody | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'filters': ((value['filters'] as Array<any>).map(FilterGroupToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Group } from './Group';
|
|
17
|
+
import {
|
|
18
|
+
GroupFromJSON,
|
|
19
|
+
GroupFromJSONTyped,
|
|
20
|
+
GroupToJSON,
|
|
21
|
+
GroupToJSONTyped,
|
|
22
|
+
} from './Group';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Selection
|
|
28
|
+
*/
|
|
29
|
+
export interface Selection {
|
|
30
|
+
/**
|
|
31
|
+
* The object groups holding a selected object, by name, each with its selected objects by name.
|
|
32
|
+
* @type {Array<Group>}
|
|
33
|
+
* @memberof Selection
|
|
34
|
+
*/
|
|
35
|
+
groups: Array<Group>;
|
|
36
|
+
/**
|
|
37
|
+
* More objects matched than were returned; narrow the filters to see the rest.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof Selection
|
|
40
|
+
*/
|
|
41
|
+
truncated: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Selection interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfSelection(value: object): value is Selection {
|
|
48
|
+
if (!('groups' in value) || value['groups'] === undefined) return false;
|
|
49
|
+
if (!('truncated' in value) || value['truncated'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function SelectionFromJSON(json: any): Selection {
|
|
54
|
+
return SelectionFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function SelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Selection {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'groups': ((json['groups'] as Array<any>).map(GroupFromJSON)),
|
|
64
|
+
'truncated': json['truncated'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SelectionToJSON(json: any): Selection {
|
|
69
|
+
return SelectionToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SelectionToJSONTyped(value?: Selection | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'groups': ((value['groups'] as Array<any>).map(GroupToJSON)),
|
|
80
|
+
'truncated': value['truncated'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LogicLayerConfig } from './LogicLayerConfig';
|
|
17
|
+
import {
|
|
18
|
+
LogicLayerConfigFromJSON,
|
|
19
|
+
LogicLayerConfigFromJSONTyped,
|
|
20
|
+
LogicLayerConfigToJSON,
|
|
21
|
+
LogicLayerConfigToJSONTyped,
|
|
22
|
+
} from './LogicLayerConfig';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
|
|
|
21
29
|
export interface SpaceRuleSetJSON {
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
|
-
* @type {
|
|
32
|
+
* @type {LogicLayerConfig}
|
|
25
33
|
* @memberof SpaceRuleSetJSON
|
|
26
34
|
*/
|
|
27
|
-
config:
|
|
35
|
+
config: LogicLayerConfig;
|
|
28
36
|
/**
|
|
29
37
|
*
|
|
30
38
|
* @type {string}
|
|
@@ -87,7 +95,7 @@ export function SpaceRuleSetJSONFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
87
95
|
}
|
|
88
96
|
return {
|
|
89
97
|
|
|
90
|
-
'config': json['config'],
|
|
98
|
+
'config': LogicLayerConfigFromJSON(json['config']),
|
|
91
99
|
'createdDate': json['createdDate'],
|
|
92
100
|
'creationMode': json['creationMode'],
|
|
93
101
|
'description': json['description'],
|
|
@@ -108,7 +116,7 @@ export function SpaceRuleSetJSONToJSONTyped(value?: SpaceRuleSetJSON | null, ign
|
|
|
108
116
|
|
|
109
117
|
return {
|
|
110
118
|
|
|
111
|
-
'config': value['config'],
|
|
119
|
+
'config': LogicLayerConfigToJSON(value['config']),
|
|
112
120
|
'createdDate': value['createdDate'],
|
|
113
121
|
'creationMode': value['creationMode'],
|
|
114
122
|
'description': value['description'],
|
|
@@ -38,7 +38,7 @@ export interface SpaceRulesetCreate {
|
|
|
38
38
|
*/
|
|
39
39
|
preset?: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Kept as a label: "Standard", "Amenity", or "Advanced". Every logic layer starts with no rules when no preset is supplied.
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof SpaceRulesetCreate
|
|
44
44
|
*/
|
package/src/models/index.ts
CHANGED
|
@@ -62,7 +62,11 @@ export * from './CalcAxis';
|
|
|
62
62
|
export * from './CalcAxisMember';
|
|
63
63
|
export * from './CalcBody';
|
|
64
64
|
export * from './CalcChildren';
|
|
65
|
+
export * from './CalcCompare';
|
|
66
|
+
export * from './CalcCondition';
|
|
65
67
|
export * from './CalcErrorBody';
|
|
68
|
+
export * from './CalcHasNode';
|
|
69
|
+
export * from './CalcIsObject';
|
|
66
70
|
export * from './CalcList';
|
|
67
71
|
export * from './CalcListEntry';
|
|
68
72
|
export * from './CalcListTwoD';
|
|
@@ -75,11 +79,16 @@ export * from './CalcRuleRefOneOf2';
|
|
|
75
79
|
export * from './CalcRuleRefOneOf3';
|
|
76
80
|
export * from './CalcRuleRefOneOf4';
|
|
77
81
|
export * from './CalcRuleRefOneOf5';
|
|
82
|
+
export * from './CalcRuleRefOneOf6';
|
|
78
83
|
export * from './CalcSegmentation';
|
|
79
84
|
export * from './CalcSegmentationOneOf';
|
|
80
85
|
export * from './CalcSegmentationOneOf1';
|
|
81
86
|
export * from './CalcSegmentationOneOf2';
|
|
82
87
|
export * from './CalcSelect';
|
|
88
|
+
export * from './CalcTest';
|
|
89
|
+
export * from './CalcTestOneOf';
|
|
90
|
+
export * from './CalcTestOneOf1';
|
|
91
|
+
export * from './CalcTestOneOf2';
|
|
83
92
|
export * from './CalcTreeList';
|
|
84
93
|
export * from './CalcTreeValue';
|
|
85
94
|
export * from './CalcTypeSingleValue';
|
|
@@ -205,6 +214,7 @@ export * from './GetEntry';
|
|
|
205
214
|
export * from './GetMappingRes';
|
|
206
215
|
export * from './GetResponseBody';
|
|
207
216
|
export * from './GetTopDownModelEntriesRes';
|
|
217
|
+
export * from './Group';
|
|
208
218
|
export * from './I18nTranslationsExportParamsWrapperBody';
|
|
209
219
|
export * from './I18nTranslationsImportParamsWrapperBody';
|
|
210
220
|
export * from './I18nTranslationsParamsWrapperBody';
|
|
@@ -229,6 +239,15 @@ export * from './ListAccountsForUserRow';
|
|
|
229
239
|
export * from './ListPage';
|
|
230
240
|
export * from './ListUserDetailsWithEmailRow';
|
|
231
241
|
export * from './LocationData';
|
|
242
|
+
export * from './LogicAssignment';
|
|
243
|
+
export * from './LogicAssignmentOneOf';
|
|
244
|
+
export * from './LogicAssignmentOneOf1';
|
|
245
|
+
export * from './LogicDemand';
|
|
246
|
+
export * from './LogicLayerConfig';
|
|
247
|
+
export * from './LogicPer';
|
|
248
|
+
export * from './LogicRule';
|
|
249
|
+
export * from './LogicSupply';
|
|
250
|
+
export * from './LogicSupplyWeight';
|
|
232
251
|
export * from './MappingProp';
|
|
233
252
|
export * from './MappingScenario';
|
|
234
253
|
export * from './MaybeVarFunc';
|
|
@@ -243,6 +262,7 @@ export * from './MeetingSizeData';
|
|
|
243
262
|
export * from './MetaVersionResponse';
|
|
244
263
|
export * from './MissingAttributeDetail';
|
|
245
264
|
export * from './MissingObjectDetail';
|
|
265
|
+
export * from './ModelObject';
|
|
246
266
|
export * from './ModelRecord';
|
|
247
267
|
export * from './MultiSelectChangelogData';
|
|
248
268
|
export * from './MultiSelectContributionData';
|
|
@@ -330,6 +350,8 @@ export * from './ScriptSummary';
|
|
|
330
350
|
export * from './ScriptUsage';
|
|
331
351
|
export * from './ScriptUsageResBody';
|
|
332
352
|
export * from './ScriptWebhookResBody';
|
|
353
|
+
export * from './SelectObjectsParamsWrapperBody';
|
|
354
|
+
export * from './Selection';
|
|
333
355
|
export * from './SendPasswordPutReqBody';
|
|
334
356
|
export * from './SerializedEvent';
|
|
335
357
|
export * from './ServerMessage';
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spaciv API
|
|
3
|
-
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: support@spaciv.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { SpaceRuleSet, SpaceRuleSetJSON, SpaceRulesetCreate, SpaceRulesetListEntry, SpaceRulesetUpdate } from '../models/index';
|
|
14
|
-
export interface SpaceRulesetsApiCreateRequest {
|
|
15
|
-
spaceRulesetCreate: SpaceRulesetCreate;
|
|
16
|
-
}
|
|
17
|
-
export interface SpaceRulesetsApiCreateImageRequest {
|
|
18
|
-
id: string;
|
|
19
|
-
filename?: Blob;
|
|
20
|
-
name?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface SpaceRulesetsApiDeleteRequest {
|
|
23
|
-
id: string;
|
|
24
|
-
}
|
|
25
|
-
export interface SpaceRulesetsApiDeleteImageRequest {
|
|
26
|
-
id: string;
|
|
27
|
-
}
|
|
28
|
-
export interface SpaceRulesetsApiGetRequest {
|
|
29
|
-
id: string;
|
|
30
|
-
}
|
|
31
|
-
export interface SpaceRulesetsApiGetImageRequest {
|
|
32
|
-
id: string;
|
|
33
|
-
noFallback?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface SpaceRulesetsApiUpdateRequest {
|
|
36
|
-
id: string;
|
|
37
|
-
spaceRulesetUpdate: SpaceRulesetUpdate;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* SpaceRulesetsApi - interface
|
|
41
|
-
*
|
|
42
|
-
* @export
|
|
43
|
-
* @interface SpaceRulesetsApiInterface
|
|
44
|
-
*/
|
|
45
|
-
export interface SpaceRulesetsApiInterface {
|
|
46
|
-
/**
|
|
47
|
-
* Creates a new space ruleset for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with an empty configuration for the given `type`. Requires the *Edit space rule sets* permission.
|
|
48
|
-
* @summary Create a space ruleset
|
|
49
|
-
* @param {SpaceRulesetCreate} spaceRulesetCreate
|
|
50
|
-
* @param {*} [options] Override http request option.
|
|
51
|
-
* @throws {RequiredError}
|
|
52
|
-
* @memberof SpaceRulesetsApiInterface
|
|
53
|
-
*/
|
|
54
|
-
createRaw(requestParameters: SpaceRulesetsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
55
|
-
/**
|
|
56
|
-
* Creates a new space ruleset for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with an empty configuration for the given `type`. Requires the *Edit space rule sets* permission.
|
|
57
|
-
* Create a space ruleset
|
|
58
|
-
*/
|
|
59
|
-
create(requestParameters: SpaceRulesetsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
60
|
-
/**
|
|
61
|
-
* Uploads an illustrative image for a space ruleset. Send the file as `multipart/form-data` with the field key `file`. Accepted MIME types: `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml` (detected from file bytes). No larger than 4 MB. Replaces any previously uploaded image. Requires the *Edit space rule sets* permission.
|
|
62
|
-
* @summary Upload a space ruleset image
|
|
63
|
-
* @param {string} id
|
|
64
|
-
* @param {Blob} [filename] filename of the file being uploaded
|
|
65
|
-
* @param {string} [name] general purpose name for multipart form value
|
|
66
|
-
* @param {*} [options] Override http request option.
|
|
67
|
-
* @throws {RequiredError}
|
|
68
|
-
* @memberof SpaceRulesetsApiInterface
|
|
69
|
-
*/
|
|
70
|
-
createImageRaw(requestParameters: SpaceRulesetsApiCreateImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
71
|
-
/**
|
|
72
|
-
* Uploads an illustrative image for a space ruleset. Send the file as `multipart/form-data` with the field key `file`. Accepted MIME types: `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml` (detected from file bytes). No larger than 4 MB. Replaces any previously uploaded image. Requires the *Edit space rule sets* permission.
|
|
73
|
-
* Upload a space ruleset image
|
|
74
|
-
*/
|
|
75
|
-
createImage(requestParameters: SpaceRulesetsApiCreateImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
76
|
-
/**
|
|
77
|
-
* Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
|
|
78
|
-
* @summary Delete a space ruleset
|
|
79
|
-
* @param {string} id
|
|
80
|
-
* @param {*} [options] Override http request option.
|
|
81
|
-
* @throws {RequiredError}
|
|
82
|
-
* @memberof SpaceRulesetsApiInterface
|
|
83
|
-
*/
|
|
84
|
-
deleteRaw(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
85
|
-
/**
|
|
86
|
-
* Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
|
|
87
|
-
* Delete a space ruleset
|
|
88
|
-
*/
|
|
89
|
-
delete(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
90
|
-
/**
|
|
91
|
-
* Removes the custom image for a space ruleset. After deletion, `GET /v1/space-rulesets/{id}/image` returns a generated default image unless `noFallback` is set. Requires the *Edit space rule sets* permission.
|
|
92
|
-
* @summary Delete a space ruleset image
|
|
93
|
-
* @param {string} id
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
* @memberof SpaceRulesetsApiInterface
|
|
97
|
-
*/
|
|
98
|
-
deleteImageRaw(requestParameters: SpaceRulesetsApiDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
99
|
-
/**
|
|
100
|
-
* Removes the custom image for a space ruleset. After deletion, `GET /v1/space-rulesets/{id}/image` returns a generated default image unless `noFallback` is set. Requires the *Edit space rule sets* permission.
|
|
101
|
-
* Delete a space ruleset image
|
|
102
|
-
*/
|
|
103
|
-
deleteImage(requestParameters: SpaceRulesetsApiDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
104
|
-
/**
|
|
105
|
-
* Returns the full detail of a space ruleset including its calculation configuration. Requires the *View space rule set details* permission.
|
|
106
|
-
* @summary Get a space ruleset
|
|
107
|
-
* @param {string} id
|
|
108
|
-
* @param {*} [options] Override http request option.
|
|
109
|
-
* @throws {RequiredError}
|
|
110
|
-
* @memberof SpaceRulesetsApiInterface
|
|
111
|
-
*/
|
|
112
|
-
getRaw(requestParameters: SpaceRulesetsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpaceRuleSetJSON>>;
|
|
113
|
-
/**
|
|
114
|
-
* Returns the full detail of a space ruleset including its calculation configuration. Requires the *View space rule set details* permission.
|
|
115
|
-
* Get a space ruleset
|
|
116
|
-
*/
|
|
117
|
-
get(requestParameters: SpaceRulesetsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpaceRuleSetJSON>;
|
|
118
|
-
/**
|
|
119
|
-
* Returns the illustrative image for a space ruleset. If no image has been uploaded and `noFallback` is not set, a default image is generated from the ruleset name. The response `Content-Type` header reflects the actual image format. Requires the *View space rule sets* permission. Returns `403` (`file quarantined: it matched a virus signature`) when a rescan found the stored image matches a virus signature; the bytes are kept for investigation.
|
|
120
|
-
* @summary Get a space ruleset image
|
|
121
|
-
* @param {string} id
|
|
122
|
-
* @param {boolean} [noFallback] When true, returns 404 if no custom image has been uploaded rather than generating a default image from the ruleset name.
|
|
123
|
-
* @param {*} [options] Override http request option.
|
|
124
|
-
* @throws {RequiredError}
|
|
125
|
-
* @memberof SpaceRulesetsApiInterface
|
|
126
|
-
*/
|
|
127
|
-
getImageRaw(requestParameters: SpaceRulesetsApiGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
128
|
-
/**
|
|
129
|
-
* Returns the illustrative image for a space ruleset. If no image has been uploaded and `noFallback` is not set, a default image is generated from the ruleset name. The response `Content-Type` header reflects the actual image format. Requires the *View space rule sets* permission. Returns `403` (`file quarantined: it matched a virus signature`) when a rescan found the stored image matches a virus signature; the bytes are kept for investigation.
|
|
130
|
-
* Get a space ruleset image
|
|
131
|
-
*/
|
|
132
|
-
getImage(requestParameters: SpaceRulesetsApiGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
133
|
-
/**
|
|
134
|
-
* Returns all space rulesets belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific ruleset. Requires the *View space rule sets* permission.
|
|
135
|
-
* @summary List space rulesets
|
|
136
|
-
* @param {*} [options] Override http request option.
|
|
137
|
-
* @throws {RequiredError}
|
|
138
|
-
* @memberof SpaceRulesetsApiInterface
|
|
139
|
-
*/
|
|
140
|
-
listRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SpaceRulesetListEntry>>>;
|
|
141
|
-
/**
|
|
142
|
-
* Returns all space rulesets belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific ruleset. Requires the *View space rule sets* permission.
|
|
143
|
-
* List space rulesets
|
|
144
|
-
*/
|
|
145
|
-
list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SpaceRulesetListEntry>>;
|
|
146
|
-
/**
|
|
147
|
-
* Returns the spaciv-supplied preset space rulesets available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
|
|
148
|
-
* @summary List preset space rulesets
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
* @memberof SpaceRulesetsApiInterface
|
|
152
|
-
*/
|
|
153
|
-
listPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SpaceRuleSet>>>;
|
|
154
|
-
/**
|
|
155
|
-
* Returns the spaciv-supplied preset space rulesets available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
|
|
156
|
-
* List preset space rulesets
|
|
157
|
-
*/
|
|
158
|
-
listPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SpaceRuleSet>>;
|
|
159
|
-
/**
|
|
160
|
-
* Updates one or more fields of a space ruleset. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. Returns `404` if the ruleset does not exist. Requires the *Edit space rule set details* permission.
|
|
161
|
-
* @summary Update a space ruleset
|
|
162
|
-
* @param {string} id
|
|
163
|
-
* @param {SpaceRulesetUpdate} spaceRulesetUpdate
|
|
164
|
-
* @param {*} [options] Override http request option.
|
|
165
|
-
* @throws {RequiredError}
|
|
166
|
-
* @memberof SpaceRulesetsApiInterface
|
|
167
|
-
*/
|
|
168
|
-
updateRaw(requestParameters: SpaceRulesetsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
169
|
-
/**
|
|
170
|
-
* Updates one or more fields of a space ruleset. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. Returns `404` if the ruleset does not exist. Requires the *Edit space rule set details* permission.
|
|
171
|
-
* Update a space ruleset
|
|
172
|
-
*/
|
|
173
|
-
update(requestParameters: SpaceRulesetsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
*/
|
|
178
|
-
export declare class SpaceRulesetsApi extends runtime.BaseAPI implements SpaceRulesetsApiInterface {
|
|
179
|
-
/**
|
|
180
|
-
* Creates a new space ruleset for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with an empty configuration for the given `type`. Requires the *Edit space rule sets* permission.
|
|
181
|
-
* Create a space ruleset
|
|
182
|
-
*/
|
|
183
|
-
createRaw(requestParameters: SpaceRulesetsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
184
|
-
/**
|
|
185
|
-
* Creates a new space ruleset for the current account. Supply `preset` to copy an existing built-in preset as the starting configuration; the preset\'s space modules are cloned into the account\'s module library as needed. Omit `preset` to start with an empty configuration for the given `type`. Requires the *Edit space rule sets* permission.
|
|
186
|
-
* Create a space ruleset
|
|
187
|
-
*/
|
|
188
|
-
create(requestParameters: SpaceRulesetsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
189
|
-
/**
|
|
190
|
-
* Uploads an illustrative image for a space ruleset. Send the file as `multipart/form-data` with the field key `file`. Accepted MIME types: `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml` (detected from file bytes). No larger than 4 MB. Replaces any previously uploaded image. Requires the *Edit space rule sets* permission.
|
|
191
|
-
* Upload a space ruleset image
|
|
192
|
-
*/
|
|
193
|
-
createImageRaw(requestParameters: SpaceRulesetsApiCreateImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
194
|
-
/**
|
|
195
|
-
* Uploads an illustrative image for a space ruleset. Send the file as `multipart/form-data` with the field key `file`. Accepted MIME types: `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml` (detected from file bytes). No larger than 4 MB. Replaces any previously uploaded image. Requires the *Edit space rule sets* permission.
|
|
196
|
-
* Upload a space ruleset image
|
|
197
|
-
*/
|
|
198
|
-
createImage(requestParameters: SpaceRulesetsApiCreateImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
199
|
-
/**
|
|
200
|
-
* Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
|
|
201
|
-
* Delete a space ruleset
|
|
202
|
-
*/
|
|
203
|
-
deleteRaw(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
204
|
-
/**
|
|
205
|
-
* Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
|
|
206
|
-
* Delete a space ruleset
|
|
207
|
-
*/
|
|
208
|
-
delete(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
209
|
-
/**
|
|
210
|
-
* Removes the custom image for a space ruleset. After deletion, `GET /v1/space-rulesets/{id}/image` returns a generated default image unless `noFallback` is set. Requires the *Edit space rule sets* permission.
|
|
211
|
-
* Delete a space ruleset image
|
|
212
|
-
*/
|
|
213
|
-
deleteImageRaw(requestParameters: SpaceRulesetsApiDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
214
|
-
/**
|
|
215
|
-
* Removes the custom image for a space ruleset. After deletion, `GET /v1/space-rulesets/{id}/image` returns a generated default image unless `noFallback` is set. Requires the *Edit space rule sets* permission.
|
|
216
|
-
* Delete a space ruleset image
|
|
217
|
-
*/
|
|
218
|
-
deleteImage(requestParameters: SpaceRulesetsApiDeleteImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
219
|
-
/**
|
|
220
|
-
* Returns the full detail of a space ruleset including its calculation configuration. Requires the *View space rule set details* permission.
|
|
221
|
-
* Get a space ruleset
|
|
222
|
-
*/
|
|
223
|
-
getRaw(requestParameters: SpaceRulesetsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpaceRuleSetJSON>>;
|
|
224
|
-
/**
|
|
225
|
-
* Returns the full detail of a space ruleset including its calculation configuration. Requires the *View space rule set details* permission.
|
|
226
|
-
* Get a space ruleset
|
|
227
|
-
*/
|
|
228
|
-
get(requestParameters: SpaceRulesetsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpaceRuleSetJSON>;
|
|
229
|
-
/**
|
|
230
|
-
* Returns the illustrative image for a space ruleset. If no image has been uploaded and `noFallback` is not set, a default image is generated from the ruleset name. The response `Content-Type` header reflects the actual image format. Requires the *View space rule sets* permission. Returns `403` (`file quarantined: it matched a virus signature`) when a rescan found the stored image matches a virus signature; the bytes are kept for investigation.
|
|
231
|
-
* Get a space ruleset image
|
|
232
|
-
*/
|
|
233
|
-
getImageRaw(requestParameters: SpaceRulesetsApiGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
234
|
-
/**
|
|
235
|
-
* Returns the illustrative image for a space ruleset. If no image has been uploaded and `noFallback` is not set, a default image is generated from the ruleset name. The response `Content-Type` header reflects the actual image format. Requires the *View space rule sets* permission. Returns `403` (`file quarantined: it matched a virus signature`) when a rescan found the stored image matches a virus signature; the bytes are kept for investigation.
|
|
236
|
-
* Get a space ruleset image
|
|
237
|
-
*/
|
|
238
|
-
getImage(requestParameters: SpaceRulesetsApiGetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
239
|
-
/**
|
|
240
|
-
* Returns all space rulesets belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific ruleset. Requires the *View space rule sets* permission.
|
|
241
|
-
* List space rulesets
|
|
242
|
-
*/
|
|
243
|
-
listRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SpaceRulesetListEntry>>>;
|
|
244
|
-
/**
|
|
245
|
-
* Returns all space rulesets belonging to the current account with summary fields. Use `GET /v1/space-rulesets/{id}` to retrieve the full configuration for a specific ruleset. Requires the *View space rule sets* permission.
|
|
246
|
-
* List space rulesets
|
|
247
|
-
*/
|
|
248
|
-
list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SpaceRulesetListEntry>>;
|
|
249
|
-
/**
|
|
250
|
-
* Returns the spaciv-supplied preset space rulesets available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
|
|
251
|
-
* List preset space rulesets
|
|
252
|
-
*/
|
|
253
|
-
listPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SpaceRuleSet>>>;
|
|
254
|
-
/**
|
|
255
|
-
* Returns the spaciv-supplied preset space rulesets available to all accounts. Pass one of the returned IDs as `preset` when calling `POST /v1/space-rulesets` to create a copy in the current account. Requires the *View space rule sets* permission.
|
|
256
|
-
* List preset space rulesets
|
|
257
|
-
*/
|
|
258
|
-
listPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SpaceRuleSet>>;
|
|
259
|
-
/**
|
|
260
|
-
* Updates one or more fields of a space ruleset. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. Returns `404` if the ruleset does not exist. Requires the *Edit space rule set details* permission.
|
|
261
|
-
* Update a space ruleset
|
|
262
|
-
*/
|
|
263
|
-
updateRaw(requestParameters: SpaceRulesetsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
264
|
-
/**
|
|
265
|
-
* Updates one or more fields of a space ruleset. Only fields present in the request body are changed; `modifiedAt` is always updated to the current time. Returns `404` if the ruleset does not exist. Requires the *Edit space rule set details* permission.
|
|
266
|
-
* Update a space ruleset
|
|
267
|
-
*/
|
|
268
|
-
update(requestParameters: SpaceRulesetsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
269
|
-
}
|