@spaciv/sdk 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/.openapi-generator/FILES +24 -1
  2. package/README.md +2 -2
  3. package/dist/apis/FilesApi.d.ts +28 -1
  4. package/dist/apis/FilesApi.js +40 -0
  5. package/dist/apis/LogicLayersApi.d.ts +279 -0
  6. package/dist/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +72 -62
  7. package/dist/apis/ObjectGroupsApi.d.ts +28 -1
  8. package/dist/apis/ObjectGroupsApi.js +40 -0
  9. package/dist/apis/PropertiesApi.d.ts +16 -16
  10. package/dist/apis/PropertiesApi.js +8 -8
  11. package/dist/apis/ScenariosApi.d.ts +4 -4
  12. package/dist/apis/ScenariosApi.js +2 -2
  13. package/dist/apis/TopDownModelsApi.d.ts +4 -4
  14. package/dist/apis/TopDownModelsApi.js +2 -2
  15. package/dist/apis/VariablesApi.d.ts +4 -4
  16. package/dist/apis/VariablesApi.js +2 -2
  17. package/dist/apis/index.d.ts +1 -1
  18. package/dist/apis/index.js +1 -1
  19. package/dist/esm/apis/FilesApi.d.ts +28 -1
  20. package/dist/esm/apis/FilesApi.js +41 -1
  21. package/dist/esm/apis/LogicLayersApi.d.ts +279 -0
  22. package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
  23. package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
  24. package/dist/esm/apis/ObjectGroupsApi.js +41 -1
  25. package/dist/esm/apis/PropertiesApi.d.ts +16 -16
  26. package/dist/esm/apis/PropertiesApi.js +8 -8
  27. package/dist/esm/apis/ScenariosApi.d.ts +4 -4
  28. package/dist/esm/apis/ScenariosApi.js +2 -2
  29. package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
  30. package/dist/esm/apis/TopDownModelsApi.js +2 -2
  31. package/dist/esm/apis/VariablesApi.d.ts +4 -4
  32. package/dist/esm/apis/VariablesApi.js +2 -2
  33. package/dist/esm/apis/index.d.ts +1 -1
  34. package/dist/esm/apis/index.js +1 -1
  35. package/dist/esm/models/AccountTextFilePostBody.d.ts +38 -0
  36. package/dist/esm/models/AccountTextFilePostBody.js +45 -0
  37. package/dist/esm/models/CalcCompare.d.ts +45 -0
  38. package/dist/esm/models/CalcCompare.js +52 -0
  39. package/dist/esm/models/CalcCondition.d.ts +46 -0
  40. package/dist/esm/models/CalcCondition.js +53 -0
  41. package/dist/esm/models/CalcHasNode.d.ts +44 -0
  42. package/dist/esm/models/CalcHasNode.js +51 -0
  43. package/dist/esm/models/CalcIsObject.d.ts +32 -0
  44. package/dist/esm/models/CalcIsObject.js +43 -0
  45. package/dist/esm/models/CalcRuleRef.d.ts +2 -1
  46. package/dist/esm/models/CalcRuleRef.js +7 -0
  47. package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
  48. package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
  49. package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
  50. package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
  51. package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
  52. package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
  53. package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
  54. package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
  55. package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
  56. package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
  57. package/dist/esm/models/CalcTest.d.ts +24 -0
  58. package/dist/esm/models/CalcTest.js +58 -0
  59. package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
  60. package/dist/esm/models/CalcTestOneOf.js +44 -0
  61. package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
  62. package/dist/esm/models/CalcTestOneOf1.js +44 -0
  63. package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
  64. package/dist/esm/models/CalcTestOneOf2.js +44 -0
  65. package/dist/esm/models/Group.d.ts +45 -0
  66. package/dist/esm/models/Group.js +52 -0
  67. package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
  68. package/dist/esm/models/LogicAssignment.d.ts +23 -0
  69. package/dist/esm/models/LogicAssignment.js +51 -0
  70. package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
  71. package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
  72. package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
  73. package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
  74. package/dist/esm/models/LogicDemand.d.ts +40 -0
  75. package/dist/esm/models/LogicDemand.js +49 -0
  76. package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
  77. package/dist/esm/models/LogicLayerConfig.js +48 -0
  78. package/dist/esm/models/LogicPer.d.ts +45 -0
  79. package/dist/esm/models/LogicPer.js +52 -0
  80. package/dist/esm/models/LogicRule.d.ts +66 -0
  81. package/dist/esm/models/LogicRule.js +67 -0
  82. package/dist/esm/models/LogicSupply.d.ts +48 -0
  83. package/dist/esm/models/LogicSupply.js +54 -0
  84. package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
  85. package/dist/esm/models/LogicSupplyWeight.js +43 -0
  86. package/dist/esm/models/MaybeVarInt.d.ts +2 -2
  87. package/dist/esm/models/MaybeVarInt.js +5 -5
  88. package/dist/esm/models/MaybeVarProp.d.ts +2 -2
  89. package/dist/esm/models/MaybeVarProp.js +5 -5
  90. package/dist/esm/models/MaybeVarStr.d.ts +2 -2
  91. package/dist/esm/models/MaybeVarStr.js +5 -5
  92. package/dist/esm/models/ModelObject.d.ts +38 -0
  93. package/dist/esm/models/ModelObject.js +47 -0
  94. package/dist/esm/models/ModelRecord.d.ts +1 -1
  95. package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
  96. package/dist/esm/models/ObjectGroupListEntry.js +0 -4
  97. package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  98. package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
  99. package/dist/esm/models/Selection.d.ts +39 -0
  100. package/dist/esm/models/Selection.js +48 -0
  101. package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
  102. package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
  103. package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
  104. package/dist/esm/models/index.d.ts +23 -0
  105. package/dist/esm/models/index.js +23 -0
  106. package/dist/models/AccountTextFilePostBody.d.ts +38 -0
  107. package/dist/models/AccountTextFilePostBody.js +52 -0
  108. package/dist/models/CalcCompare.d.ts +45 -0
  109. package/dist/models/CalcCompare.js +59 -0
  110. package/dist/models/CalcCondition.d.ts +46 -0
  111. package/dist/models/CalcCondition.js +60 -0
  112. package/dist/models/CalcHasNode.d.ts +44 -0
  113. package/dist/models/CalcHasNode.js +58 -0
  114. package/dist/models/CalcIsObject.d.ts +32 -0
  115. package/dist/models/CalcIsObject.js +50 -0
  116. package/dist/models/CalcRuleRef.d.ts +2 -1
  117. package/dist/models/CalcRuleRef.js +7 -0
  118. package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
  119. package/dist/models/CalcRuleRefOneOf2.js +4 -3
  120. package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
  121. package/dist/models/CalcRuleRefOneOf3.js +3 -4
  122. package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
  123. package/dist/models/CalcRuleRefOneOf4.js +4 -4
  124. package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
  125. package/dist/models/CalcRuleRefOneOf5.js +4 -3
  126. package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
  127. package/dist/models/CalcRuleRefOneOf6.js +50 -0
  128. package/dist/models/CalcTest.d.ts +24 -0
  129. package/dist/models/CalcTest.js +64 -0
  130. package/dist/models/CalcTestOneOf.d.ts +33 -0
  131. package/dist/models/CalcTestOneOf.js +51 -0
  132. package/dist/models/CalcTestOneOf1.d.ts +33 -0
  133. package/dist/models/CalcTestOneOf1.js +51 -0
  134. package/dist/models/CalcTestOneOf2.d.ts +33 -0
  135. package/dist/models/CalcTestOneOf2.js +51 -0
  136. package/dist/models/Group.d.ts +45 -0
  137. package/dist/models/Group.js +59 -0
  138. package/dist/models/LayerVariablesRes.d.ts +1 -1
  139. package/dist/models/LogicAssignment.d.ts +23 -0
  140. package/dist/models/LogicAssignment.js +57 -0
  141. package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
  142. package/dist/models/LogicAssignmentOneOf.js +50 -0
  143. package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
  144. package/dist/models/LogicAssignmentOneOf1.js +50 -0
  145. package/dist/models/LogicDemand.d.ts +40 -0
  146. package/dist/models/LogicDemand.js +56 -0
  147. package/dist/models/LogicLayerConfig.d.ts +39 -0
  148. package/dist/models/LogicLayerConfig.js +55 -0
  149. package/dist/models/LogicPer.d.ts +45 -0
  150. package/dist/models/LogicPer.js +59 -0
  151. package/dist/models/LogicRule.d.ts +66 -0
  152. package/dist/models/LogicRule.js +74 -0
  153. package/dist/models/LogicSupply.d.ts +48 -0
  154. package/dist/models/LogicSupply.js +61 -0
  155. package/dist/models/LogicSupplyWeight.d.ts +32 -0
  156. package/dist/models/LogicSupplyWeight.js +50 -0
  157. package/dist/models/MaybeVarInt.d.ts +2 -2
  158. package/dist/models/MaybeVarInt.js +5 -5
  159. package/dist/models/MaybeVarProp.d.ts +2 -2
  160. package/dist/models/MaybeVarProp.js +5 -5
  161. package/dist/models/MaybeVarStr.d.ts +2 -2
  162. package/dist/models/MaybeVarStr.js +5 -5
  163. package/dist/models/ModelObject.d.ts +38 -0
  164. package/dist/models/ModelObject.js +54 -0
  165. package/dist/models/ModelRecord.d.ts +1 -1
  166. package/dist/models/ObjectGroupListEntry.d.ts +0 -6
  167. package/dist/models/ObjectGroupListEntry.js +0 -4
  168. package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  169. package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
  170. package/dist/models/Selection.d.ts +39 -0
  171. package/dist/models/Selection.js +55 -0
  172. package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
  173. package/dist/models/SpaceRuleSetJSON.js +3 -2
  174. package/dist/models/SpaceRulesetCreate.d.ts +1 -1
  175. package/dist/models/index.d.ts +23 -0
  176. package/dist/models/index.js +23 -0
  177. package/package.json +1 -1
  178. package/src/apis/FilesApi.ts +72 -0
  179. package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
  180. package/src/apis/ObjectGroupsApi.ts +75 -0
  181. package/src/apis/PropertiesApi.ts +16 -16
  182. package/src/apis/ScenariosApi.ts +4 -4
  183. package/src/apis/TopDownModelsApi.ts +4 -4
  184. package/src/apis/VariablesApi.ts +4 -4
  185. package/src/apis/index.ts +1 -1
  186. package/src/models/AccountTextFilePostBody.ts +74 -0
  187. package/src/models/CalcCompare.ts +92 -0
  188. package/src/models/CalcCondition.ts +99 -0
  189. package/src/models/CalcHasNode.ts +84 -0
  190. package/src/models/CalcIsObject.ts +66 -0
  191. package/src/models/CalcRuleRef.ts +14 -1
  192. package/src/models/CalcRuleRefOneOf2.ts +13 -5
  193. package/src/models/CalcRuleRefOneOf3.ts +5 -13
  194. package/src/models/CalcRuleRefOneOf4.ts +11 -11
  195. package/src/models/CalcRuleRefOneOf5.ts +13 -5
  196. package/src/models/CalcRuleRefOneOf6.ts +66 -0
  197. package/src/models/CalcTest.ts +89 -0
  198. package/src/models/CalcTestOneOf.ts +74 -0
  199. package/src/models/CalcTestOneOf1.ts +74 -0
  200. package/src/models/CalcTestOneOf2.ts +74 -0
  201. package/src/models/Group.ts +92 -0
  202. package/src/models/LayerVariablesRes.ts +1 -1
  203. package/src/models/LogicAssignment.ts +76 -0
  204. package/src/models/LogicAssignmentOneOf.ts +66 -0
  205. package/src/models/LogicAssignmentOneOf1.ts +66 -0
  206. package/src/models/LogicDemand.ts +90 -0
  207. package/src/models/LogicLayerConfig.ts +83 -0
  208. package/src/models/LogicPer.ts +92 -0
  209. package/src/models/LogicRule.ts +140 -0
  210. package/src/models/LogicSupply.ts +99 -0
  211. package/src/models/LogicSupplyWeight.ts +66 -0
  212. package/src/models/MaybeVarInt.ts +11 -11
  213. package/src/models/MaybeVarProp.ts +11 -11
  214. package/src/models/MaybeVarStr.ts +11 -11
  215. package/src/models/ModelObject.ts +75 -0
  216. package/src/models/ModelRecord.ts +1 -1
  217. package/src/models/ObjectGroupListEntry.ts +0 -9
  218. package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
  219. package/src/models/Selection.ts +83 -0
  220. package/src/models/SpaceRuleSetJSON.ts +12 -4
  221. package/src/models/SpaceRulesetCreate.ts +1 -1
  222. package/src/models/index.ts +23 -0
  223. package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
  224. package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
@@ -11,11 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { CalcRuleRefFromJSON, CalcRuleRefToJSON, } from './CalcRuleRef';
14
15
  /**
15
16
  * Check if a given object implements the CalcRuleRefOneOf5 interface.
16
17
  */
17
18
  export function instanceOfCalcRuleRefOneOf5(value) {
18
- if (!('_var' in value) || value['_var'] === undefined)
19
+ if (!('sumOf' in value) || value['sumOf'] === undefined)
19
20
  return false;
20
21
  return true;
21
22
  }
@@ -27,7 +28,7 @@ export function CalcRuleRefOneOf5FromJSONTyped(json, ignoreDiscriminator) {
27
28
  return json;
28
29
  }
29
30
  return {
30
- '_var': json['var'],
31
+ 'sumOf': CalcRuleRefFromJSON(json['sumOf']),
31
32
  };
32
33
  }
33
34
  export function CalcRuleRefOneOf5ToJSON(json) {
@@ -38,6 +39,6 @@ export function CalcRuleRefOneOf5ToJSONTyped(value, ignoreDiscriminator = false)
38
39
  return value;
39
40
  }
40
41
  return {
41
- 'var': value['_var'],
42
+ 'sumOf': CalcRuleRefToJSON(value['sumOf']),
42
43
  };
43
44
  }
@@ -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 CalcRuleRefOneOf6
16
+ */
17
+ export interface CalcRuleRefOneOf6 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CalcRuleRefOneOf6
22
+ */
23
+ _var: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CalcRuleRefOneOf6 interface.
27
+ */
28
+ export declare function instanceOfCalcRuleRefOneOf6(value: object): value is CalcRuleRefOneOf6;
29
+ export declare function CalcRuleRefOneOf6FromJSON(json: any): CalcRuleRefOneOf6;
30
+ export declare function CalcRuleRefOneOf6FromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcRuleRefOneOf6;
31
+ export declare function CalcRuleRefOneOf6ToJSON(json: any): CalcRuleRefOneOf6;
32
+ export declare function CalcRuleRefOneOf6ToJSONTyped(value?: CalcRuleRefOneOf6 | 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 CalcRuleRefOneOf6 interface.
16
+ */
17
+ export function instanceOfCalcRuleRefOneOf6(value) {
18
+ if (!('_var' in value) || value['_var'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CalcRuleRefOneOf6FromJSON(json) {
23
+ return CalcRuleRefOneOf6FromJSONTyped(json, false);
24
+ }
25
+ export function CalcRuleRefOneOf6FromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ '_var': json['var'],
31
+ };
32
+ }
33
+ export function CalcRuleRefOneOf6ToJSON(json) {
34
+ return CalcRuleRefOneOf6ToJSONTyped(json, false);
35
+ }
36
+ export function CalcRuleRefOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'var': value['_var'],
42
+ };
43
+ }
@@ -0,0 +1,24 @@
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 { CalcTestOneOf } from './CalcTestOneOf';
13
+ import type { CalcTestOneOf1 } from './CalcTestOneOf1';
14
+ import type { CalcTestOneOf2 } from './CalcTestOneOf2';
15
+ /**
16
+ * @type CalcTest
17
+ *
18
+ * @export
19
+ */
20
+ export type CalcTest = CalcTestOneOf | CalcTestOneOf1 | CalcTestOneOf2;
21
+ export declare function CalcTestFromJSON(json: any): CalcTest;
22
+ export declare function CalcTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcTest;
23
+ export declare function CalcTestToJSON(json: any): any;
24
+ export declare function CalcTestToJSONTyped(value?: CalcTest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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 { instanceOfCalcTestOneOf, CalcTestOneOfFromJSONTyped, CalcTestOneOfToJSON, } from './CalcTestOneOf';
15
+ import { instanceOfCalcTestOneOf1, CalcTestOneOf1FromJSONTyped, CalcTestOneOf1ToJSON, } from './CalcTestOneOf1';
16
+ import { instanceOfCalcTestOneOf2, CalcTestOneOf2FromJSONTyped, CalcTestOneOf2ToJSON, } from './CalcTestOneOf2';
17
+ export function CalcTestFromJSON(json) {
18
+ return CalcTestFromJSONTyped(json, false);
19
+ }
20
+ export function CalcTestFromJSONTyped(json, ignoreDiscriminator) {
21
+ if (json == null) {
22
+ return json;
23
+ }
24
+ if (typeof json !== 'object') {
25
+ return json;
26
+ }
27
+ if (instanceOfCalcTestOneOf(json)) {
28
+ return CalcTestOneOfFromJSONTyped(json, true);
29
+ }
30
+ if (instanceOfCalcTestOneOf1(json)) {
31
+ return CalcTestOneOf1FromJSONTyped(json, true);
32
+ }
33
+ if (instanceOfCalcTestOneOf2(json)) {
34
+ return CalcTestOneOf2FromJSONTyped(json, true);
35
+ }
36
+ return {};
37
+ }
38
+ export function CalcTestToJSON(json) {
39
+ return CalcTestToJSONTyped(json, false);
40
+ }
41
+ export function CalcTestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ if (typeof value !== 'object') {
46
+ return value;
47
+ }
48
+ if (instanceOfCalcTestOneOf(value)) {
49
+ return CalcTestOneOfToJSON(value);
50
+ }
51
+ if (instanceOfCalcTestOneOf1(value)) {
52
+ return CalcTestOneOf1ToJSON(value);
53
+ }
54
+ if (instanceOfCalcTestOneOf2(value)) {
55
+ return CalcTestOneOf2ToJSON(value);
56
+ }
57
+ return {};
58
+ }
@@ -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 { CalcCompare } from './CalcCompare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalcTestOneOf
17
+ */
18
+ export interface CalcTestOneOf {
19
+ /**
20
+ *
21
+ * @type {CalcCompare}
22
+ * @memberof CalcTestOneOf
23
+ */
24
+ compare: CalcCompare;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CalcTestOneOf interface.
28
+ */
29
+ export declare function instanceOfCalcTestOneOf(value: object): value is CalcTestOneOf;
30
+ export declare function CalcTestOneOfFromJSON(json: any): CalcTestOneOf;
31
+ export declare function CalcTestOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcTestOneOf;
32
+ export declare function CalcTestOneOfToJSON(json: any): CalcTestOneOf;
33
+ export declare function CalcTestOneOfToJSONTyped(value?: CalcTestOneOf | 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 { CalcCompareFromJSON, CalcCompareToJSON, } from './CalcCompare';
15
+ /**
16
+ * Check if a given object implements the CalcTestOneOf interface.
17
+ */
18
+ export function instanceOfCalcTestOneOf(value) {
19
+ if (!('compare' in value) || value['compare'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function CalcTestOneOfFromJSON(json) {
24
+ return CalcTestOneOfFromJSONTyped(json, false);
25
+ }
26
+ export function CalcTestOneOfFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'compare': CalcCompareFromJSON(json['compare']),
32
+ };
33
+ }
34
+ export function CalcTestOneOfToJSON(json) {
35
+ return CalcTestOneOfToJSONTyped(json, false);
36
+ }
37
+ export function CalcTestOneOfToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'compare': CalcCompareToJSON(value['compare']),
43
+ };
44
+ }
@@ -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 { CalcHasNode } from './CalcHasNode';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalcTestOneOf1
17
+ */
18
+ export interface CalcTestOneOf1 {
19
+ /**
20
+ *
21
+ * @type {CalcHasNode}
22
+ * @memberof CalcTestOneOf1
23
+ */
24
+ has: CalcHasNode;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CalcTestOneOf1 interface.
28
+ */
29
+ export declare function instanceOfCalcTestOneOf1(value: object): value is CalcTestOneOf1;
30
+ export declare function CalcTestOneOf1FromJSON(json: any): CalcTestOneOf1;
31
+ export declare function CalcTestOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcTestOneOf1;
32
+ export declare function CalcTestOneOf1ToJSON(json: any): CalcTestOneOf1;
33
+ export declare function CalcTestOneOf1ToJSONTyped(value?: CalcTestOneOf1 | 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 { CalcHasNodeFromJSON, CalcHasNodeToJSON, } from './CalcHasNode';
15
+ /**
16
+ * Check if a given object implements the CalcTestOneOf1 interface.
17
+ */
18
+ export function instanceOfCalcTestOneOf1(value) {
19
+ if (!('has' in value) || value['has'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function CalcTestOneOf1FromJSON(json) {
24
+ return CalcTestOneOf1FromJSONTyped(json, false);
25
+ }
26
+ export function CalcTestOneOf1FromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'has': CalcHasNodeFromJSON(json['has']),
32
+ };
33
+ }
34
+ export function CalcTestOneOf1ToJSON(json) {
35
+ return CalcTestOneOf1ToJSONTyped(json, false);
36
+ }
37
+ export function CalcTestOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'has': CalcHasNodeToJSON(value['has']),
43
+ };
44
+ }
@@ -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 { CalcIsObject } from './CalcIsObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalcTestOneOf2
17
+ */
18
+ export interface CalcTestOneOf2 {
19
+ /**
20
+ *
21
+ * @type {CalcIsObject}
22
+ * @memberof CalcTestOneOf2
23
+ */
24
+ isObject: CalcIsObject;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CalcTestOneOf2 interface.
28
+ */
29
+ export declare function instanceOfCalcTestOneOf2(value: object): value is CalcTestOneOf2;
30
+ export declare function CalcTestOneOf2FromJSON(json: any): CalcTestOneOf2;
31
+ export declare function CalcTestOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcTestOneOf2;
32
+ export declare function CalcTestOneOf2ToJSON(json: any): CalcTestOneOf2;
33
+ export declare function CalcTestOneOf2ToJSONTyped(value?: CalcTestOneOf2 | 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 { CalcIsObjectFromJSON, CalcIsObjectToJSON, } from './CalcIsObject';
15
+ /**
16
+ * Check if a given object implements the CalcTestOneOf2 interface.
17
+ */
18
+ export function instanceOfCalcTestOneOf2(value) {
19
+ if (!('isObject' in value) || value['isObject'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function CalcTestOneOf2FromJSON(json) {
24
+ return CalcTestOneOf2FromJSONTyped(json, false);
25
+ }
26
+ export function CalcTestOneOf2FromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'isObject': CalcIsObjectFromJSON(json['isObject']),
32
+ };
33
+ }
34
+ export function CalcTestOneOf2ToJSON(json) {
35
+ return CalcTestOneOf2ToJSONTyped(json, false);
36
+ }
37
+ export function CalcTestOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'isObject': CalcIsObjectToJSON(value['isObject']),
43
+ };
44
+ }
@@ -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 { ModelObject } from './ModelObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Group
17
+ */
18
+ export interface Group {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Group
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Group
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {Array<ModelObject>}
34
+ * @memberof Group
35
+ */
36
+ objects: Array<ModelObject>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the Group interface.
40
+ */
41
+ export declare function instanceOfGroup(value: object): value is Group;
42
+ export declare function GroupFromJSON(json: any): Group;
43
+ export declare function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Group;
44
+ export declare function GroupToJSON(json: any): Group;
45
+ export declare function GroupToJSONTyped(value?: Group | 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 { ModelObjectFromJSON, ModelObjectToJSON, } from './ModelObject';
15
+ /**
16
+ * Check if a given object implements the Group interface.
17
+ */
18
+ export function instanceOfGroup(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('objects' in value) || value['objects'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function GroupFromJSON(json) {
28
+ return GroupFromJSONTyped(json, false);
29
+ }
30
+ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'],
36
+ 'name': json['name'],
37
+ 'objects': (json['objects'].map(ModelObjectFromJSON)),
38
+ };
39
+ }
40
+ export function GroupToJSON(json) {
41
+ return GroupToJSONTyped(json, false);
42
+ }
43
+ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'name': value['name'],
50
+ 'objects': (value['objects'].map(ModelObjectToJSON)),
51
+ };
52
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface LayerVariablesRes {
18
18
  /**
19
- * For each active scenario whose layers' modifier formulas use account variables, those variable ids (account:<id>), including the layers of stacked scenarios.
19
+ * For each active scenario whose layers' modifier or logic layer formulas use account variables, those variable ids (account:<id>), including the layers of stacked scenarios.
20
20
  * @type {{ [key: string]: Array<string>; }}
21
21
  * @memberof LayerVariablesRes
22
22
  */
@@ -0,0 +1,23 @@
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 { LogicAssignmentOneOf } from './LogicAssignmentOneOf';
13
+ import type { LogicAssignmentOneOf1 } from './LogicAssignmentOneOf1';
14
+ /**
15
+ * @type LogicAssignment
16
+ *
17
+ * @export
18
+ */
19
+ export type LogicAssignment = LogicAssignmentOneOf | LogicAssignmentOneOf1;
20
+ export declare function LogicAssignmentFromJSON(json: any): LogicAssignment;
21
+ export declare function LogicAssignmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicAssignment;
22
+ export declare function LogicAssignmentToJSON(json: any): any;
23
+ export declare function LogicAssignmentToJSONTyped(value?: LogicAssignment | 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
+ import { instanceOfLogicAssignmentOneOf, LogicAssignmentOneOfFromJSONTyped, LogicAssignmentOneOfToJSON, } from './LogicAssignmentOneOf';
15
+ import { instanceOfLogicAssignmentOneOf1, LogicAssignmentOneOf1FromJSONTyped, LogicAssignmentOneOf1ToJSON, } from './LogicAssignmentOneOf1';
16
+ export function LogicAssignmentFromJSON(json) {
17
+ return LogicAssignmentFromJSONTyped(json, false);
18
+ }
19
+ export function LogicAssignmentFromJSONTyped(json, ignoreDiscriminator) {
20
+ if (json == null) {
21
+ return json;
22
+ }
23
+ if (typeof json !== 'object') {
24
+ return json;
25
+ }
26
+ if (instanceOfLogicAssignmentOneOf(json)) {
27
+ return LogicAssignmentOneOfFromJSONTyped(json, true);
28
+ }
29
+ if (instanceOfLogicAssignmentOneOf1(json)) {
30
+ return LogicAssignmentOneOf1FromJSONTyped(json, true);
31
+ }
32
+ return {};
33
+ }
34
+ export function LogicAssignmentToJSON(json) {
35
+ return LogicAssignmentToJSONTyped(json, false);
36
+ }
37
+ export function LogicAssignmentToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ if (typeof value !== 'object') {
42
+ return value;
43
+ }
44
+ if (instanceOfLogicAssignmentOneOf(value)) {
45
+ return LogicAssignmentOneOfToJSON(value);
46
+ }
47
+ if (instanceOfLogicAssignmentOneOf1(value)) {
48
+ return LogicAssignmentOneOf1ToJSON(value);
49
+ }
50
+ return {};
51
+ }