@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.
Files changed (211) hide show
  1. package/.openapi-generator/FILES +23 -1
  2. package/README.md +2 -2
  3. package/dist/apis/LogicLayersApi.d.ts +279 -0
  4. package/dist/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +72 -62
  5. package/dist/apis/ObjectGroupsApi.d.ts +28 -1
  6. package/dist/apis/ObjectGroupsApi.js +40 -0
  7. package/dist/apis/PropertiesApi.d.ts +16 -16
  8. package/dist/apis/PropertiesApi.js +8 -8
  9. package/dist/apis/ScenariosApi.d.ts +4 -4
  10. package/dist/apis/ScenariosApi.js +2 -2
  11. package/dist/apis/TopDownModelsApi.d.ts +4 -4
  12. package/dist/apis/TopDownModelsApi.js +2 -2
  13. package/dist/apis/VariablesApi.d.ts +4 -4
  14. package/dist/apis/VariablesApi.js +2 -2
  15. package/dist/apis/index.d.ts +1 -1
  16. package/dist/apis/index.js +1 -1
  17. package/dist/esm/apis/LogicLayersApi.d.ts +279 -0
  18. package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
  19. package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
  20. package/dist/esm/apis/ObjectGroupsApi.js +41 -1
  21. package/dist/esm/apis/PropertiesApi.d.ts +16 -16
  22. package/dist/esm/apis/PropertiesApi.js +8 -8
  23. package/dist/esm/apis/ScenariosApi.d.ts +4 -4
  24. package/dist/esm/apis/ScenariosApi.js +2 -2
  25. package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
  26. package/dist/esm/apis/TopDownModelsApi.js +2 -2
  27. package/dist/esm/apis/VariablesApi.d.ts +4 -4
  28. package/dist/esm/apis/VariablesApi.js +2 -2
  29. package/dist/esm/apis/index.d.ts +1 -1
  30. package/dist/esm/apis/index.js +1 -1
  31. package/dist/esm/models/CalcCompare.d.ts +45 -0
  32. package/dist/esm/models/CalcCompare.js +52 -0
  33. package/dist/esm/models/CalcCondition.d.ts +46 -0
  34. package/dist/esm/models/CalcCondition.js +53 -0
  35. package/dist/esm/models/CalcHasNode.d.ts +44 -0
  36. package/dist/esm/models/CalcHasNode.js +51 -0
  37. package/dist/esm/models/CalcIsObject.d.ts +32 -0
  38. package/dist/esm/models/CalcIsObject.js +43 -0
  39. package/dist/esm/models/CalcRuleRef.d.ts +2 -1
  40. package/dist/esm/models/CalcRuleRef.js +7 -0
  41. package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
  42. package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
  43. package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
  44. package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
  45. package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
  46. package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
  47. package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
  48. package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
  49. package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
  50. package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
  51. package/dist/esm/models/CalcTest.d.ts +24 -0
  52. package/dist/esm/models/CalcTest.js +58 -0
  53. package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
  54. package/dist/esm/models/CalcTestOneOf.js +44 -0
  55. package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
  56. package/dist/esm/models/CalcTestOneOf1.js +44 -0
  57. package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
  58. package/dist/esm/models/CalcTestOneOf2.js +44 -0
  59. package/dist/esm/models/Group.d.ts +45 -0
  60. package/dist/esm/models/Group.js +52 -0
  61. package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
  62. package/dist/esm/models/LogicAssignment.d.ts +23 -0
  63. package/dist/esm/models/LogicAssignment.js +51 -0
  64. package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
  65. package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
  66. package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
  67. package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
  68. package/dist/esm/models/LogicDemand.d.ts +40 -0
  69. package/dist/esm/models/LogicDemand.js +49 -0
  70. package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
  71. package/dist/esm/models/LogicLayerConfig.js +48 -0
  72. package/dist/esm/models/LogicPer.d.ts +45 -0
  73. package/dist/esm/models/LogicPer.js +52 -0
  74. package/dist/esm/models/LogicRule.d.ts +66 -0
  75. package/dist/esm/models/LogicRule.js +67 -0
  76. package/dist/esm/models/LogicSupply.d.ts +48 -0
  77. package/dist/esm/models/LogicSupply.js +54 -0
  78. package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
  79. package/dist/esm/models/LogicSupplyWeight.js +43 -0
  80. package/dist/esm/models/MaybeVarInt.d.ts +2 -2
  81. package/dist/esm/models/MaybeVarInt.js +5 -5
  82. package/dist/esm/models/MaybeVarProp.d.ts +2 -2
  83. package/dist/esm/models/MaybeVarProp.js +5 -5
  84. package/dist/esm/models/MaybeVarStr.d.ts +2 -2
  85. package/dist/esm/models/MaybeVarStr.js +5 -5
  86. package/dist/esm/models/ModelObject.d.ts +38 -0
  87. package/dist/esm/models/ModelObject.js +47 -0
  88. package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
  89. package/dist/esm/models/ObjectGroupListEntry.js +0 -4
  90. package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  91. package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
  92. package/dist/esm/models/Selection.d.ts +39 -0
  93. package/dist/esm/models/Selection.js +48 -0
  94. package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
  95. package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
  96. package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
  97. package/dist/esm/models/index.d.ts +22 -0
  98. package/dist/esm/models/index.js +22 -0
  99. package/dist/models/CalcCompare.d.ts +45 -0
  100. package/dist/models/CalcCompare.js +59 -0
  101. package/dist/models/CalcCondition.d.ts +46 -0
  102. package/dist/models/CalcCondition.js +60 -0
  103. package/dist/models/CalcHasNode.d.ts +44 -0
  104. package/dist/models/CalcHasNode.js +58 -0
  105. package/dist/models/CalcIsObject.d.ts +32 -0
  106. package/dist/models/CalcIsObject.js +50 -0
  107. package/dist/models/CalcRuleRef.d.ts +2 -1
  108. package/dist/models/CalcRuleRef.js +7 -0
  109. package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
  110. package/dist/models/CalcRuleRefOneOf2.js +4 -3
  111. package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
  112. package/dist/models/CalcRuleRefOneOf3.js +3 -4
  113. package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
  114. package/dist/models/CalcRuleRefOneOf4.js +4 -4
  115. package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
  116. package/dist/models/CalcRuleRefOneOf5.js +4 -3
  117. package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
  118. package/dist/models/CalcRuleRefOneOf6.js +50 -0
  119. package/dist/models/CalcTest.d.ts +24 -0
  120. package/dist/models/CalcTest.js +64 -0
  121. package/dist/models/CalcTestOneOf.d.ts +33 -0
  122. package/dist/models/CalcTestOneOf.js +51 -0
  123. package/dist/models/CalcTestOneOf1.d.ts +33 -0
  124. package/dist/models/CalcTestOneOf1.js +51 -0
  125. package/dist/models/CalcTestOneOf2.d.ts +33 -0
  126. package/dist/models/CalcTestOneOf2.js +51 -0
  127. package/dist/models/Group.d.ts +45 -0
  128. package/dist/models/Group.js +59 -0
  129. package/dist/models/LayerVariablesRes.d.ts +1 -1
  130. package/dist/models/LogicAssignment.d.ts +23 -0
  131. package/dist/models/LogicAssignment.js +57 -0
  132. package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
  133. package/dist/models/LogicAssignmentOneOf.js +50 -0
  134. package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
  135. package/dist/models/LogicAssignmentOneOf1.js +50 -0
  136. package/dist/models/LogicDemand.d.ts +40 -0
  137. package/dist/models/LogicDemand.js +56 -0
  138. package/dist/models/LogicLayerConfig.d.ts +39 -0
  139. package/dist/models/LogicLayerConfig.js +55 -0
  140. package/dist/models/LogicPer.d.ts +45 -0
  141. package/dist/models/LogicPer.js +59 -0
  142. package/dist/models/LogicRule.d.ts +66 -0
  143. package/dist/models/LogicRule.js +74 -0
  144. package/dist/models/LogicSupply.d.ts +48 -0
  145. package/dist/models/LogicSupply.js +61 -0
  146. package/dist/models/LogicSupplyWeight.d.ts +32 -0
  147. package/dist/models/LogicSupplyWeight.js +50 -0
  148. package/dist/models/MaybeVarInt.d.ts +2 -2
  149. package/dist/models/MaybeVarInt.js +5 -5
  150. package/dist/models/MaybeVarProp.d.ts +2 -2
  151. package/dist/models/MaybeVarProp.js +5 -5
  152. package/dist/models/MaybeVarStr.d.ts +2 -2
  153. package/dist/models/MaybeVarStr.js +5 -5
  154. package/dist/models/ModelObject.d.ts +38 -0
  155. package/dist/models/ModelObject.js +54 -0
  156. package/dist/models/ObjectGroupListEntry.d.ts +0 -6
  157. package/dist/models/ObjectGroupListEntry.js +0 -4
  158. package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  159. package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
  160. package/dist/models/Selection.d.ts +39 -0
  161. package/dist/models/Selection.js +55 -0
  162. package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
  163. package/dist/models/SpaceRuleSetJSON.js +3 -2
  164. package/dist/models/SpaceRulesetCreate.d.ts +1 -1
  165. package/dist/models/index.d.ts +22 -0
  166. package/dist/models/index.js +22 -0
  167. package/package.json +1 -1
  168. package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
  169. package/src/apis/ObjectGroupsApi.ts +75 -0
  170. package/src/apis/PropertiesApi.ts +16 -16
  171. package/src/apis/ScenariosApi.ts +4 -4
  172. package/src/apis/TopDownModelsApi.ts +4 -4
  173. package/src/apis/VariablesApi.ts +4 -4
  174. package/src/apis/index.ts +1 -1
  175. package/src/models/CalcCompare.ts +92 -0
  176. package/src/models/CalcCondition.ts +99 -0
  177. package/src/models/CalcHasNode.ts +84 -0
  178. package/src/models/CalcIsObject.ts +66 -0
  179. package/src/models/CalcRuleRef.ts +14 -1
  180. package/src/models/CalcRuleRefOneOf2.ts +13 -5
  181. package/src/models/CalcRuleRefOneOf3.ts +5 -13
  182. package/src/models/CalcRuleRefOneOf4.ts +11 -11
  183. package/src/models/CalcRuleRefOneOf5.ts +13 -5
  184. package/src/models/CalcRuleRefOneOf6.ts +66 -0
  185. package/src/models/CalcTest.ts +89 -0
  186. package/src/models/CalcTestOneOf.ts +74 -0
  187. package/src/models/CalcTestOneOf1.ts +74 -0
  188. package/src/models/CalcTestOneOf2.ts +74 -0
  189. package/src/models/Group.ts +92 -0
  190. package/src/models/LayerVariablesRes.ts +1 -1
  191. package/src/models/LogicAssignment.ts +76 -0
  192. package/src/models/LogicAssignmentOneOf.ts +66 -0
  193. package/src/models/LogicAssignmentOneOf1.ts +66 -0
  194. package/src/models/LogicDemand.ts +90 -0
  195. package/src/models/LogicLayerConfig.ts +83 -0
  196. package/src/models/LogicPer.ts +92 -0
  197. package/src/models/LogicRule.ts +140 -0
  198. package/src/models/LogicSupply.ts +99 -0
  199. package/src/models/LogicSupplyWeight.ts +66 -0
  200. package/src/models/MaybeVarInt.ts +11 -11
  201. package/src/models/MaybeVarProp.ts +11 -11
  202. package/src/models/MaybeVarStr.ts +11 -11
  203. package/src/models/ModelObject.ts +75 -0
  204. package/src/models/ObjectGroupListEntry.ts +0 -9
  205. package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
  206. package/src/models/Selection.ts +83 -0
  207. package/src/models/SpaceRuleSetJSON.ts +12 -4
  208. package/src/models/SpaceRulesetCreate.ts +1 -1
  209. package/src/models/index.ts +22 -0
  210. package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
  211. package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
@@ -0,0 +1,47 @@
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 ModelObject interface.
16
+ */
17
+ export function instanceOfModelObject(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ModelObjectFromJSON(json) {
25
+ return ModelObjectFromJSONTyped(json, false);
26
+ }
27
+ export function ModelObjectFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function ModelObjectToJSON(json) {
37
+ return ModelObjectToJSONTyped(json, false);
38
+ }
39
+ export function ModelObjectToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -27,12 +27,6 @@ export interface ObjectGroupListEntry {
27
27
  * @memberof ObjectGroupListEntry
28
28
  */
29
29
  entries: number;
30
- /**
31
- *
32
- * @type {boolean}
33
- * @memberof ObjectGroupListEntry
34
- */
35
- hasModules: boolean;
36
30
  /**
37
31
  *
38
32
  * @type {string}
@@ -19,8 +19,6 @@ export function instanceOfObjectGroupListEntry(value) {
19
19
  return false;
20
20
  if (!('entries' in value) || value['entries'] === undefined)
21
21
  return false;
22
- if (!('hasModules' in value) || value['hasModules'] === undefined)
23
- return false;
24
22
  if (!('id' in value) || value['id'] === undefined)
25
23
  return false;
26
24
  if (!('isPublic' in value) || value['isPublic'] === undefined)
@@ -39,7 +37,6 @@ export function ObjectGroupListEntryFromJSONTyped(json, ignoreDiscriminator) {
39
37
  return {
40
38
  'description': json['description'],
41
39
  'entries': json['entries'],
42
- 'hasModules': json['hasModules'],
43
40
  'id': json['id'],
44
41
  'isPublic': json['isPublic'],
45
42
  'name': json['name'],
@@ -55,7 +52,6 @@ export function ObjectGroupListEntryToJSONTyped(value, ignoreDiscriminator = fal
55
52
  return {
56
53
  'description': value['description'],
57
54
  'entries': value['entries'],
58
- 'hasModules': value['hasModules'],
59
55
  'id': value['id'],
60
56
  'isPublic': value['isPublic'],
61
57
  'name': value['name'],
@@ -0,0 +1,33 @@
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 { FilterGroup } from './FilterGroup';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SelectObjectsParamsWrapperBody
17
+ */
18
+ export interface SelectObjectsParamsWrapperBody {
19
+ /**
20
+ * Filter groups, of which any may match; within a group every filter must. None selects every object.
21
+ * @type {Array<FilterGroup>}
22
+ * @memberof SelectObjectsParamsWrapperBody
23
+ */
24
+ filters: Array<FilterGroup>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SelectObjectsParamsWrapperBody interface.
28
+ */
29
+ export declare function instanceOfSelectObjectsParamsWrapperBody(value: object): value is SelectObjectsParamsWrapperBody;
30
+ export declare function SelectObjectsParamsWrapperBodyFromJSON(json: any): SelectObjectsParamsWrapperBody;
31
+ export declare function SelectObjectsParamsWrapperBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectObjectsParamsWrapperBody;
32
+ export declare function SelectObjectsParamsWrapperBodyToJSON(json: any): SelectObjectsParamsWrapperBody;
33
+ export declare function SelectObjectsParamsWrapperBodyToJSONTyped(value?: SelectObjectsParamsWrapperBody | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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 { FilterGroupFromJSON, FilterGroupToJSON, } from './FilterGroup';
15
+ /**
16
+ * Check if a given object implements the SelectObjectsParamsWrapperBody interface.
17
+ */
18
+ export function instanceOfSelectObjectsParamsWrapperBody(value) {
19
+ if (!('filters' in value) || value['filters'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SelectObjectsParamsWrapperBodyFromJSON(json) {
24
+ return SelectObjectsParamsWrapperBodyFromJSONTyped(json, false);
25
+ }
26
+ export function SelectObjectsParamsWrapperBodyFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'filters': (json['filters'].map(FilterGroupFromJSON)),
32
+ };
33
+ }
34
+ export function SelectObjectsParamsWrapperBodyToJSON(json) {
35
+ return SelectObjectsParamsWrapperBodyToJSONTyped(json, false);
36
+ }
37
+ export function SelectObjectsParamsWrapperBodyToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'filters': (value['filters'].map(FilterGroupToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,39 @@
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 { Group } from './Group';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Selection
17
+ */
18
+ export interface Selection {
19
+ /**
20
+ * The object groups holding a selected object, by name, each with its selected objects by name.
21
+ * @type {Array<Group>}
22
+ * @memberof Selection
23
+ */
24
+ groups: Array<Group>;
25
+ /**
26
+ * More objects matched than were returned; narrow the filters to see the rest.
27
+ * @type {boolean}
28
+ * @memberof Selection
29
+ */
30
+ truncated: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the Selection interface.
34
+ */
35
+ export declare function instanceOfSelection(value: object): value is Selection;
36
+ export declare function SelectionFromJSON(json: any): Selection;
37
+ export declare function SelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Selection;
38
+ export declare function SelectionToJSON(json: any): Selection;
39
+ export declare function SelectionToJSONTyped(value?: Selection | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { GroupFromJSON, GroupToJSON, } from './Group';
15
+ /**
16
+ * Check if a given object implements the Selection interface.
17
+ */
18
+ export function instanceOfSelection(value) {
19
+ if (!('groups' in value) || value['groups'] === undefined)
20
+ return false;
21
+ if (!('truncated' in value) || value['truncated'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function SelectionFromJSON(json) {
26
+ return SelectionFromJSONTyped(json, false);
27
+ }
28
+ export function SelectionFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'groups': (json['groups'].map(GroupFromJSON)),
34
+ 'truncated': json['truncated'],
35
+ };
36
+ }
37
+ export function SelectionToJSON(json) {
38
+ return SelectionToJSONTyped(json, false);
39
+ }
40
+ export function SelectionToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'groups': (value['groups'].map(GroupToJSON)),
46
+ 'truncated': value['truncated'],
47
+ };
48
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LogicLayerConfig } from './LogicLayerConfig';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface SpaceRuleSetJSON {
18
19
  /**
19
20
  *
20
- * @type {any}
21
+ * @type {LogicLayerConfig}
21
22
  * @memberof SpaceRuleSetJSON
22
23
  */
23
- config: any | null;
24
+ config: LogicLayerConfig;
24
25
  /**
25
26
  *
26
27
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { LogicLayerConfigFromJSON, LogicLayerConfigToJSON, } from './LogicLayerConfig';
14
15
  /**
15
16
  * Check if a given object implements the SpaceRuleSetJSON interface.
16
17
  */
@@ -39,7 +40,7 @@ export function SpaceRuleSetJSONFromJSONTyped(json, ignoreDiscriminator) {
39
40
  return json;
40
41
  }
41
42
  return {
42
- 'config': json['config'],
43
+ 'config': LogicLayerConfigFromJSON(json['config']),
43
44
  'createdDate': json['createdDate'],
44
45
  'creationMode': json['creationMode'],
45
46
  'description': json['description'],
@@ -56,7 +57,7 @@ export function SpaceRuleSetJSONToJSONTyped(value, ignoreDiscriminator = false)
56
57
  return value;
57
58
  }
58
59
  return {
59
- 'config': value['config'],
60
+ 'config': LogicLayerConfigToJSON(value['config']),
60
61
  'createdDate': value['createdDate'],
61
62
  'creationMode': value['creationMode'],
62
63
  'description': value['description'],
@@ -34,7 +34,7 @@ export interface SpaceRulesetCreate {
34
34
  */
35
35
  preset?: string;
36
36
  /**
37
- * Ruleset type: "Standard", "Amenity", or "Advanced". Determines the initial calculation configuration template when no preset is supplied.
37
+ * Kept as a label: "Standard", "Amenity", or "Advanced". Every logic layer starts with no rules when no preset is supplied.
38
38
  * @type {string}
39
39
  * @memberof SpaceRulesetCreate
40
40
  */
@@ -60,7 +60,11 @@ export * from './CalcAxis';
60
60
  export * from './CalcAxisMember';
61
61
  export * from './CalcBody';
62
62
  export * from './CalcChildren';
63
+ export * from './CalcCompare';
64
+ export * from './CalcCondition';
63
65
  export * from './CalcErrorBody';
66
+ export * from './CalcHasNode';
67
+ export * from './CalcIsObject';
64
68
  export * from './CalcList';
65
69
  export * from './CalcListEntry';
66
70
  export * from './CalcListTwoD';
@@ -73,11 +77,16 @@ export * from './CalcRuleRefOneOf2';
73
77
  export * from './CalcRuleRefOneOf3';
74
78
  export * from './CalcRuleRefOneOf4';
75
79
  export * from './CalcRuleRefOneOf5';
80
+ export * from './CalcRuleRefOneOf6';
76
81
  export * from './CalcSegmentation';
77
82
  export * from './CalcSegmentationOneOf';
78
83
  export * from './CalcSegmentationOneOf1';
79
84
  export * from './CalcSegmentationOneOf2';
80
85
  export * from './CalcSelect';
86
+ export * from './CalcTest';
87
+ export * from './CalcTestOneOf';
88
+ export * from './CalcTestOneOf1';
89
+ export * from './CalcTestOneOf2';
81
90
  export * from './CalcTreeList';
82
91
  export * from './CalcTreeValue';
83
92
  export * from './CalcTypeSingleValue';
@@ -203,6 +212,7 @@ export * from './GetEntry';
203
212
  export * from './GetMappingRes';
204
213
  export * from './GetResponseBody';
205
214
  export * from './GetTopDownModelEntriesRes';
215
+ export * from './Group';
206
216
  export * from './I18nTranslationsExportParamsWrapperBody';
207
217
  export * from './I18nTranslationsImportParamsWrapperBody';
208
218
  export * from './I18nTranslationsParamsWrapperBody';
@@ -227,6 +237,15 @@ export * from './ListAccountsForUserRow';
227
237
  export * from './ListPage';
228
238
  export * from './ListUserDetailsWithEmailRow';
229
239
  export * from './LocationData';
240
+ export * from './LogicAssignment';
241
+ export * from './LogicAssignmentOneOf';
242
+ export * from './LogicAssignmentOneOf1';
243
+ export * from './LogicDemand';
244
+ export * from './LogicLayerConfig';
245
+ export * from './LogicPer';
246
+ export * from './LogicRule';
247
+ export * from './LogicSupply';
248
+ export * from './LogicSupplyWeight';
230
249
  export * from './MappingProp';
231
250
  export * from './MappingScenario';
232
251
  export * from './MaybeVarFunc';
@@ -241,6 +260,7 @@ export * from './MeetingSizeData';
241
260
  export * from './MetaVersionResponse';
242
261
  export * from './MissingAttributeDetail';
243
262
  export * from './MissingObjectDetail';
263
+ export * from './ModelObject';
244
264
  export * from './ModelRecord';
245
265
  export * from './MultiSelectChangelogData';
246
266
  export * from './MultiSelectContributionData';
@@ -328,6 +348,8 @@ export * from './ScriptSummary';
328
348
  export * from './ScriptUsage';
329
349
  export * from './ScriptUsageResBody';
330
350
  export * from './ScriptWebhookResBody';
351
+ export * from './SelectObjectsParamsWrapperBody';
352
+ export * from './Selection';
331
353
  export * from './SendPasswordPutReqBody';
332
354
  export * from './SerializedEvent';
333
355
  export * from './ServerMessage';
@@ -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';
@@ -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,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * spaciv API
6
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@spaciv.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCalcCompare = instanceOfCalcCompare;
17
+ exports.CalcCompareFromJSON = CalcCompareFromJSON;
18
+ exports.CalcCompareFromJSONTyped = CalcCompareFromJSONTyped;
19
+ exports.CalcCompareToJSON = CalcCompareToJSON;
20
+ exports.CalcCompareToJSONTyped = CalcCompareToJSONTyped;
21
+ const CalcRuleRef_1 = require("./CalcRuleRef");
22
+ /**
23
+ * Check if a given object implements the CalcCompare interface.
24
+ */
25
+ function instanceOfCalcCompare(value) {
26
+ if (!('left' in value) || value['left'] === undefined)
27
+ return false;
28
+ if (!('op' in value) || value['op'] === undefined)
29
+ return false;
30
+ if (!('right' in value) || value['right'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function CalcCompareFromJSON(json) {
35
+ return CalcCompareFromJSONTyped(json, false);
36
+ }
37
+ function CalcCompareFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'left': (0, CalcRuleRef_1.CalcRuleRefFromJSON)(json['left']),
43
+ 'op': json['op'],
44
+ 'right': (0, CalcRuleRef_1.CalcRuleRefFromJSON)(json['right']),
45
+ };
46
+ }
47
+ function CalcCompareToJSON(json) {
48
+ return CalcCompareToJSONTyped(json, false);
49
+ }
50
+ function CalcCompareToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'left': (0, CalcRuleRef_1.CalcRuleRefToJSON)(value['left']),
56
+ 'op': value['op'],
57
+ 'right': (0, CalcRuleRef_1.CalcRuleRefToJSON)(value['right']),
58
+ };
59
+ }
@@ -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;