@spaciv/sdk 0.1.20 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/.openapi-generator/FILES +27 -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/ScriptsApi.d.ts +57 -1
  12. package/dist/apis/ScriptsApi.js +82 -0
  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/LogicLayersApi.d.ts +279 -0
  20. package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
  21. package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
  22. package/dist/esm/apis/ObjectGroupsApi.js +41 -1
  23. package/dist/esm/apis/PropertiesApi.d.ts +16 -16
  24. package/dist/esm/apis/PropertiesApi.js +8 -8
  25. package/dist/esm/apis/ScenariosApi.d.ts +4 -4
  26. package/dist/esm/apis/ScenariosApi.js +2 -2
  27. package/dist/esm/apis/ScriptsApi.d.ts +57 -1
  28. package/dist/esm/apis/ScriptsApi.js +83 -1
  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/CalcCompare.d.ts +45 -0
  36. package/dist/esm/models/CalcCompare.js +52 -0
  37. package/dist/esm/models/CalcCondition.d.ts +46 -0
  38. package/dist/esm/models/CalcCondition.js +53 -0
  39. package/dist/esm/models/CalcHasNode.d.ts +44 -0
  40. package/dist/esm/models/CalcHasNode.js +51 -0
  41. package/dist/esm/models/CalcIsObject.d.ts +32 -0
  42. package/dist/esm/models/CalcIsObject.js +43 -0
  43. package/dist/esm/models/CalcRuleRef.d.ts +2 -1
  44. package/dist/esm/models/CalcRuleRef.js +7 -0
  45. package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
  46. package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
  47. package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
  48. package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
  49. package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
  50. package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
  51. package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
  52. package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
  53. package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
  54. package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
  55. package/dist/esm/models/CalcTest.d.ts +24 -0
  56. package/dist/esm/models/CalcTest.js +58 -0
  57. package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
  58. package/dist/esm/models/CalcTestOneOf.js +44 -0
  59. package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
  60. package/dist/esm/models/CalcTestOneOf1.js +44 -0
  61. package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
  62. package/dist/esm/models/CalcTestOneOf2.js +44 -0
  63. package/dist/esm/models/Group.d.ts +45 -0
  64. package/dist/esm/models/Group.js +52 -0
  65. package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
  66. package/dist/esm/models/LogicAssignment.d.ts +23 -0
  67. package/dist/esm/models/LogicAssignment.js +51 -0
  68. package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
  69. package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
  70. package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
  71. package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
  72. package/dist/esm/models/LogicDemand.d.ts +40 -0
  73. package/dist/esm/models/LogicDemand.js +49 -0
  74. package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
  75. package/dist/esm/models/LogicLayerConfig.js +48 -0
  76. package/dist/esm/models/LogicPer.d.ts +45 -0
  77. package/dist/esm/models/LogicPer.js +52 -0
  78. package/dist/esm/models/LogicRule.d.ts +66 -0
  79. package/dist/esm/models/LogicRule.js +67 -0
  80. package/dist/esm/models/LogicSupply.d.ts +48 -0
  81. package/dist/esm/models/LogicSupply.js +54 -0
  82. package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
  83. package/dist/esm/models/LogicSupplyWeight.js +43 -0
  84. package/dist/esm/models/MaybeVarInt.d.ts +2 -2
  85. package/dist/esm/models/MaybeVarInt.js +5 -5
  86. package/dist/esm/models/MaybeVarProp.d.ts +2 -2
  87. package/dist/esm/models/MaybeVarProp.js +5 -5
  88. package/dist/esm/models/MaybeVarStr.d.ts +2 -2
  89. package/dist/esm/models/MaybeVarStr.js +5 -5
  90. package/dist/esm/models/ModelObject.d.ts +38 -0
  91. package/dist/esm/models/ModelObject.js +47 -0
  92. package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
  93. package/dist/esm/models/ObjectGroupListEntry.js +0 -4
  94. package/dist/esm/models/ScratchpadOutput.d.ts +69 -0
  95. package/dist/esm/models/ScratchpadOutput.js +64 -0
  96. package/dist/esm/models/ScratchpadOutputFile.d.ts +44 -0
  97. package/dist/esm/models/ScratchpadOutputFile.js +49 -0
  98. package/dist/esm/models/ScratchpadRun.d.ts +127 -0
  99. package/dist/esm/models/ScratchpadRun.js +91 -0
  100. package/dist/esm/models/ScratchpadRunPostReqBody.d.ts +58 -0
  101. package/dist/esm/models/ScratchpadRunPostReqBody.js +53 -0
  102. package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  103. package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
  104. package/dist/esm/models/Selection.d.ts +39 -0
  105. package/dist/esm/models/Selection.js +48 -0
  106. package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
  107. package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
  108. package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
  109. package/dist/esm/models/index.d.ts +26 -0
  110. package/dist/esm/models/index.js +26 -0
  111. package/dist/models/CalcCompare.d.ts +45 -0
  112. package/dist/models/CalcCompare.js +59 -0
  113. package/dist/models/CalcCondition.d.ts +46 -0
  114. package/dist/models/CalcCondition.js +60 -0
  115. package/dist/models/CalcHasNode.d.ts +44 -0
  116. package/dist/models/CalcHasNode.js +58 -0
  117. package/dist/models/CalcIsObject.d.ts +32 -0
  118. package/dist/models/CalcIsObject.js +50 -0
  119. package/dist/models/CalcRuleRef.d.ts +2 -1
  120. package/dist/models/CalcRuleRef.js +7 -0
  121. package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
  122. package/dist/models/CalcRuleRefOneOf2.js +4 -3
  123. package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
  124. package/dist/models/CalcRuleRefOneOf3.js +3 -4
  125. package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
  126. package/dist/models/CalcRuleRefOneOf4.js +4 -4
  127. package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
  128. package/dist/models/CalcRuleRefOneOf5.js +4 -3
  129. package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
  130. package/dist/models/CalcRuleRefOneOf6.js +50 -0
  131. package/dist/models/CalcTest.d.ts +24 -0
  132. package/dist/models/CalcTest.js +64 -0
  133. package/dist/models/CalcTestOneOf.d.ts +33 -0
  134. package/dist/models/CalcTestOneOf.js +51 -0
  135. package/dist/models/CalcTestOneOf1.d.ts +33 -0
  136. package/dist/models/CalcTestOneOf1.js +51 -0
  137. package/dist/models/CalcTestOneOf2.d.ts +33 -0
  138. package/dist/models/CalcTestOneOf2.js +51 -0
  139. package/dist/models/Group.d.ts +45 -0
  140. package/dist/models/Group.js +59 -0
  141. package/dist/models/LayerVariablesRes.d.ts +1 -1
  142. package/dist/models/LogicAssignment.d.ts +23 -0
  143. package/dist/models/LogicAssignment.js +57 -0
  144. package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
  145. package/dist/models/LogicAssignmentOneOf.js +50 -0
  146. package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
  147. package/dist/models/LogicAssignmentOneOf1.js +50 -0
  148. package/dist/models/LogicDemand.d.ts +40 -0
  149. package/dist/models/LogicDemand.js +56 -0
  150. package/dist/models/LogicLayerConfig.d.ts +39 -0
  151. package/dist/models/LogicLayerConfig.js +55 -0
  152. package/dist/models/LogicPer.d.ts +45 -0
  153. package/dist/models/LogicPer.js +59 -0
  154. package/dist/models/LogicRule.d.ts +66 -0
  155. package/dist/models/LogicRule.js +74 -0
  156. package/dist/models/LogicSupply.d.ts +48 -0
  157. package/dist/models/LogicSupply.js +61 -0
  158. package/dist/models/LogicSupplyWeight.d.ts +32 -0
  159. package/dist/models/LogicSupplyWeight.js +50 -0
  160. package/dist/models/MaybeVarInt.d.ts +2 -2
  161. package/dist/models/MaybeVarInt.js +5 -5
  162. package/dist/models/MaybeVarProp.d.ts +2 -2
  163. package/dist/models/MaybeVarProp.js +5 -5
  164. package/dist/models/MaybeVarStr.d.ts +2 -2
  165. package/dist/models/MaybeVarStr.js +5 -5
  166. package/dist/models/ModelObject.d.ts +38 -0
  167. package/dist/models/ModelObject.js +54 -0
  168. package/dist/models/ObjectGroupListEntry.d.ts +0 -6
  169. package/dist/models/ObjectGroupListEntry.js +0 -4
  170. package/dist/models/ScratchpadOutput.d.ts +69 -0
  171. package/dist/models/ScratchpadOutput.js +71 -0
  172. package/dist/models/ScratchpadOutputFile.d.ts +44 -0
  173. package/dist/models/ScratchpadOutputFile.js +56 -0
  174. package/dist/models/ScratchpadRun.d.ts +127 -0
  175. package/dist/models/ScratchpadRun.js +99 -0
  176. package/dist/models/ScratchpadRunPostReqBody.d.ts +58 -0
  177. package/dist/models/ScratchpadRunPostReqBody.js +60 -0
  178. package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
  179. package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
  180. package/dist/models/Selection.d.ts +39 -0
  181. package/dist/models/Selection.js +55 -0
  182. package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
  183. package/dist/models/SpaceRuleSetJSON.js +3 -2
  184. package/dist/models/SpaceRulesetCreate.d.ts +1 -1
  185. package/dist/models/index.d.ts +26 -0
  186. package/dist/models/index.js +26 -0
  187. package/package.json +1 -1
  188. package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
  189. package/src/apis/ObjectGroupsApi.ts +75 -0
  190. package/src/apis/PropertiesApi.ts +16 -16
  191. package/src/apis/ScenariosApi.ts +4 -4
  192. package/src/apis/ScriptsApi.ts +148 -0
  193. package/src/apis/TopDownModelsApi.ts +4 -4
  194. package/src/apis/VariablesApi.ts +4 -4
  195. package/src/apis/index.ts +1 -1
  196. package/src/models/CalcCompare.ts +92 -0
  197. package/src/models/CalcCondition.ts +99 -0
  198. package/src/models/CalcHasNode.ts +84 -0
  199. package/src/models/CalcIsObject.ts +66 -0
  200. package/src/models/CalcRuleRef.ts +14 -1
  201. package/src/models/CalcRuleRefOneOf2.ts +13 -5
  202. package/src/models/CalcRuleRefOneOf3.ts +5 -13
  203. package/src/models/CalcRuleRefOneOf4.ts +11 -11
  204. package/src/models/CalcRuleRefOneOf5.ts +13 -5
  205. package/src/models/CalcRuleRefOneOf6.ts +66 -0
  206. package/src/models/CalcTest.ts +89 -0
  207. package/src/models/CalcTestOneOf.ts +74 -0
  208. package/src/models/CalcTestOneOf1.ts +74 -0
  209. package/src/models/CalcTestOneOf2.ts +74 -0
  210. package/src/models/Group.ts +92 -0
  211. package/src/models/LayerVariablesRes.ts +1 -1
  212. package/src/models/LogicAssignment.ts +76 -0
  213. package/src/models/LogicAssignmentOneOf.ts +66 -0
  214. package/src/models/LogicAssignmentOneOf1.ts +66 -0
  215. package/src/models/LogicDemand.ts +90 -0
  216. package/src/models/LogicLayerConfig.ts +83 -0
  217. package/src/models/LogicPer.ts +92 -0
  218. package/src/models/LogicRule.ts +140 -0
  219. package/src/models/LogicSupply.ts +99 -0
  220. package/src/models/LogicSupplyWeight.ts +66 -0
  221. package/src/models/MaybeVarInt.ts +11 -11
  222. package/src/models/MaybeVarProp.ts +11 -11
  223. package/src/models/MaybeVarStr.ts +11 -11
  224. package/src/models/ModelObject.ts +75 -0
  225. package/src/models/ObjectGroupListEntry.ts +0 -9
  226. package/src/models/ScratchpadOutput.ts +126 -0
  227. package/src/models/ScratchpadOutputFile.ts +83 -0
  228. package/src/models/ScratchpadRun.ts +203 -0
  229. package/src/models/ScratchpadRunPostReqBody.ts +99 -0
  230. package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
  231. package/src/models/Selection.ts +83 -0
  232. package/src/models/SpaceRuleSetJSON.ts +12 -4
  233. package/src/models/SpaceRulesetCreate.ts +1 -1
  234. package/src/models/index.ts +26 -0
  235. package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
  236. package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * spaciv API
6
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@spaciv.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCalcIsObject = instanceOfCalcIsObject;
17
+ exports.CalcIsObjectFromJSON = CalcIsObjectFromJSON;
18
+ exports.CalcIsObjectFromJSONTyped = CalcIsObjectFromJSONTyped;
19
+ exports.CalcIsObjectToJSON = CalcIsObjectToJSON;
20
+ exports.CalcIsObjectToJSONTyped = CalcIsObjectToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CalcIsObject interface.
23
+ */
24
+ function instanceOfCalcIsObject(value) {
25
+ if (!('objects' in value) || value['objects'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CalcIsObjectFromJSON(json) {
30
+ return CalcIsObjectFromJSONTyped(json, false);
31
+ }
32
+ function CalcIsObjectFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'objects': json['objects'],
38
+ };
39
+ }
40
+ function CalcIsObjectToJSON(json) {
41
+ return CalcIsObjectToJSONTyped(json, false);
42
+ }
43
+ function CalcIsObjectToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'objects': value['objects'],
49
+ };
50
+ }
@@ -15,12 +15,13 @@ import type { CalcRuleRefOneOf2 } from './CalcRuleRefOneOf2';
15
15
  import type { CalcRuleRefOneOf3 } from './CalcRuleRefOneOf3';
16
16
  import type { CalcRuleRefOneOf4 } from './CalcRuleRefOneOf4';
17
17
  import type { CalcRuleRefOneOf5 } from './CalcRuleRefOneOf5';
18
+ import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
18
19
  /**
19
20
  * @type CalcRuleRef
20
21
  *
21
22
  * @export
22
23
  */
23
- export type CalcRuleRef = CalcRuleRefOneOf | CalcRuleRefOneOf1 | CalcRuleRefOneOf2 | CalcRuleRefOneOf3 | CalcRuleRefOneOf4 | CalcRuleRefOneOf5;
24
+ export type CalcRuleRef = CalcRuleRefOneOf | CalcRuleRefOneOf1 | CalcRuleRefOneOf2 | CalcRuleRefOneOf3 | CalcRuleRefOneOf4 | CalcRuleRefOneOf5 | CalcRuleRefOneOf6;
24
25
  export declare function CalcRuleRefFromJSON(json: any): CalcRuleRef;
25
26
  export declare function CalcRuleRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalcRuleRef;
26
27
  export declare function CalcRuleRefToJSON(json: any): any;
@@ -23,6 +23,7 @@ const CalcRuleRefOneOf2_1 = require("./CalcRuleRefOneOf2");
23
23
  const CalcRuleRefOneOf3_1 = require("./CalcRuleRefOneOf3");
24
24
  const CalcRuleRefOneOf4_1 = require("./CalcRuleRefOneOf4");
25
25
  const CalcRuleRefOneOf5_1 = require("./CalcRuleRefOneOf5");
26
+ const CalcRuleRefOneOf6_1 = require("./CalcRuleRefOneOf6");
26
27
  function CalcRuleRefFromJSON(json) {
27
28
  return CalcRuleRefFromJSONTyped(json, false);
28
29
  }
@@ -51,6 +52,9 @@ function CalcRuleRefFromJSONTyped(json, ignoreDiscriminator) {
51
52
  if ((0, CalcRuleRefOneOf5_1.instanceOfCalcRuleRefOneOf5)(json)) {
52
53
  return (0, CalcRuleRefOneOf5_1.CalcRuleRefOneOf5FromJSONTyped)(json, true);
53
54
  }
55
+ if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(json)) {
56
+ return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6FromJSONTyped)(json, true);
57
+ }
54
58
  return {};
55
59
  }
56
60
  function CalcRuleRefToJSON(json) {
@@ -81,5 +85,8 @@ function CalcRuleRefToJSONTyped(value, ignoreDiscriminator = false) {
81
85
  if ((0, CalcRuleRefOneOf5_1.instanceOfCalcRuleRefOneOf5)(value)) {
82
86
  return (0, CalcRuleRefOneOf5_1.CalcRuleRefOneOf5ToJSON)(value);
83
87
  }
88
+ if ((0, CalcRuleRefOneOf6_1.instanceOfCalcRuleRefOneOf6)(value)) {
89
+ return (0, CalcRuleRefOneOf6_1.CalcRuleRefOneOf6ToJSON)(value);
90
+ }
84
91
  return {};
85
92
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CalcCondition } from './CalcCondition';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface CalcRuleRefOneOf2 {
18
19
  /**
19
20
  *
20
- * @type {number}
21
+ * @type {CalcCondition}
21
22
  * @memberof CalcRuleRefOneOf2
22
23
  */
23
- num: number;
24
+ condition: CalcCondition;
24
25
  }
25
26
  /**
26
27
  * Check if a given object implements the CalcRuleRefOneOf2 interface.
@@ -18,11 +18,12 @@ exports.CalcRuleRefOneOf2FromJSON = CalcRuleRefOneOf2FromJSON;
18
18
  exports.CalcRuleRefOneOf2FromJSONTyped = CalcRuleRefOneOf2FromJSONTyped;
19
19
  exports.CalcRuleRefOneOf2ToJSON = CalcRuleRefOneOf2ToJSON;
20
20
  exports.CalcRuleRefOneOf2ToJSONTyped = CalcRuleRefOneOf2ToJSONTyped;
21
+ const CalcCondition_1 = require("./CalcCondition");
21
22
  /**
22
23
  * Check if a given object implements the CalcRuleRefOneOf2 interface.
23
24
  */
24
25
  function instanceOfCalcRuleRefOneOf2(value) {
25
- if (!('num' in value) || value['num'] === undefined)
26
+ if (!('condition' in value) || value['condition'] === undefined)
26
27
  return false;
27
28
  return true;
28
29
  }
@@ -34,7 +35,7 @@ function CalcRuleRefOneOf2FromJSONTyped(json, ignoreDiscriminator) {
34
35
  return json;
35
36
  }
36
37
  return {
37
- 'num': json['num'],
38
+ 'condition': (0, CalcCondition_1.CalcConditionFromJSON)(json['condition']),
38
39
  };
39
40
  }
40
41
  function CalcRuleRefOneOf2ToJSON(json) {
@@ -45,6 +46,6 @@ function CalcRuleRefOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  return value;
46
47
  }
47
48
  return {
48
- 'num': value['num'],
49
+ 'condition': (0, CalcCondition_1.CalcConditionToJSON)(value['condition']),
49
50
  };
50
51
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CalcSelect } from './CalcSelect';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -18,10 +17,10 @@ import type { CalcSelect } from './CalcSelect';
18
17
  export interface CalcRuleRefOneOf3 {
19
18
  /**
20
19
  *
21
- * @type {CalcSelect}
20
+ * @type {number}
22
21
  * @memberof CalcRuleRefOneOf3
23
22
  */
24
- select: CalcSelect;
23
+ num: number;
25
24
  }
26
25
  /**
27
26
  * Check if a given object implements the CalcRuleRefOneOf3 interface.
@@ -18,12 +18,11 @@ exports.CalcRuleRefOneOf3FromJSON = CalcRuleRefOneOf3FromJSON;
18
18
  exports.CalcRuleRefOneOf3FromJSONTyped = CalcRuleRefOneOf3FromJSONTyped;
19
19
  exports.CalcRuleRefOneOf3ToJSON = CalcRuleRefOneOf3ToJSON;
20
20
  exports.CalcRuleRefOneOf3ToJSONTyped = CalcRuleRefOneOf3ToJSONTyped;
21
- const CalcSelect_1 = require("./CalcSelect");
22
21
  /**
23
22
  * Check if a given object implements the CalcRuleRefOneOf3 interface.
24
23
  */
25
24
  function instanceOfCalcRuleRefOneOf3(value) {
26
- if (!('select' in value) || value['select'] === undefined)
25
+ if (!('num' in value) || value['num'] === undefined)
27
26
  return false;
28
27
  return true;
29
28
  }
@@ -35,7 +34,7 @@ function CalcRuleRefOneOf3FromJSONTyped(json, ignoreDiscriminator) {
35
34
  return json;
36
35
  }
37
36
  return {
38
- 'select': (0, CalcSelect_1.CalcSelectFromJSON)(json['select']),
37
+ 'num': json['num'],
39
38
  };
40
39
  }
41
40
  function CalcRuleRefOneOf3ToJSON(json) {
@@ -46,6 +45,6 @@ function CalcRuleRefOneOf3ToJSONTyped(value, ignoreDiscriminator = false) {
46
45
  return value;
47
46
  }
48
47
  return {
49
- 'select': (0, CalcSelect_1.CalcSelectToJSON)(value['select']),
48
+ 'num': value['num'],
50
49
  };
51
50
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CalcRuleRef } from './CalcRuleRef';
12
+ import type { CalcSelect } from './CalcSelect';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { CalcRuleRef } from './CalcRuleRef';
18
18
  export interface CalcRuleRefOneOf4 {
19
19
  /**
20
20
  *
21
- * @type {CalcRuleRef}
21
+ * @type {CalcSelect}
22
22
  * @memberof CalcRuleRefOneOf4
23
23
  */
24
- sumOf: CalcRuleRef;
24
+ select: CalcSelect;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the CalcRuleRefOneOf4 interface.
@@ -18,12 +18,12 @@ exports.CalcRuleRefOneOf4FromJSON = CalcRuleRefOneOf4FromJSON;
18
18
  exports.CalcRuleRefOneOf4FromJSONTyped = CalcRuleRefOneOf4FromJSONTyped;
19
19
  exports.CalcRuleRefOneOf4ToJSON = CalcRuleRefOneOf4ToJSON;
20
20
  exports.CalcRuleRefOneOf4ToJSONTyped = CalcRuleRefOneOf4ToJSONTyped;
21
- const CalcRuleRef_1 = require("./CalcRuleRef");
21
+ const CalcSelect_1 = require("./CalcSelect");
22
22
  /**
23
23
  * Check if a given object implements the CalcRuleRefOneOf4 interface.
24
24
  */
25
25
  function instanceOfCalcRuleRefOneOf4(value) {
26
- if (!('sumOf' in value) || value['sumOf'] === undefined)
26
+ if (!('select' in value) || value['select'] === undefined)
27
27
  return false;
28
28
  return true;
29
29
  }
@@ -35,7 +35,7 @@ function CalcRuleRefOneOf4FromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'sumOf': (0, CalcRuleRef_1.CalcRuleRefFromJSON)(json['sumOf']),
38
+ 'select': (0, CalcSelect_1.CalcSelectFromJSON)(json['select']),
39
39
  };
40
40
  }
41
41
  function CalcRuleRefOneOf4ToJSON(json) {
@@ -46,6 +46,6 @@ function CalcRuleRefOneOf4ToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'sumOf': (0, CalcRuleRef_1.CalcRuleRefToJSON)(value['sumOf']),
49
+ 'select': (0, CalcSelect_1.CalcSelectToJSON)(value['select']),
50
50
  };
51
51
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CalcRuleRef } from './CalcRuleRef';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface CalcRuleRefOneOf5 {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {CalcRuleRef}
21
22
  * @memberof CalcRuleRefOneOf5
22
23
  */
23
- _var: string;
24
+ sumOf: CalcRuleRef;
24
25
  }
25
26
  /**
26
27
  * Check if a given object implements the CalcRuleRefOneOf5 interface.
@@ -18,11 +18,12 @@ exports.CalcRuleRefOneOf5FromJSON = CalcRuleRefOneOf5FromJSON;
18
18
  exports.CalcRuleRefOneOf5FromJSONTyped = CalcRuleRefOneOf5FromJSONTyped;
19
19
  exports.CalcRuleRefOneOf5ToJSON = CalcRuleRefOneOf5ToJSON;
20
20
  exports.CalcRuleRefOneOf5ToJSONTyped = CalcRuleRefOneOf5ToJSONTyped;
21
+ const CalcRuleRef_1 = require("./CalcRuleRef");
21
22
  /**
22
23
  * Check if a given object implements the CalcRuleRefOneOf5 interface.
23
24
  */
24
25
  function instanceOfCalcRuleRefOneOf5(value) {
25
- if (!('_var' in value) || value['_var'] === undefined)
26
+ if (!('sumOf' in value) || value['sumOf'] === undefined)
26
27
  return false;
27
28
  return true;
28
29
  }
@@ -34,7 +35,7 @@ function CalcRuleRefOneOf5FromJSONTyped(json, ignoreDiscriminator) {
34
35
  return json;
35
36
  }
36
37
  return {
37
- '_var': json['var'],
38
+ 'sumOf': (0, CalcRuleRef_1.CalcRuleRefFromJSON)(json['sumOf']),
38
39
  };
39
40
  }
40
41
  function CalcRuleRefOneOf5ToJSON(json) {
@@ -45,6 +46,6 @@ function CalcRuleRefOneOf5ToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  return value;
46
47
  }
47
48
  return {
48
- 'var': value['_var'],
49
+ 'sumOf': (0, CalcRuleRef_1.CalcRuleRefToJSON)(value['sumOf']),
49
50
  };
50
51
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * spaciv API
3
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@spaciv.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface 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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * spaciv API
6
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@spaciv.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCalcRuleRefOneOf6 = instanceOfCalcRuleRefOneOf6;
17
+ exports.CalcRuleRefOneOf6FromJSON = CalcRuleRefOneOf6FromJSON;
18
+ exports.CalcRuleRefOneOf6FromJSONTyped = CalcRuleRefOneOf6FromJSONTyped;
19
+ exports.CalcRuleRefOneOf6ToJSON = CalcRuleRefOneOf6ToJSON;
20
+ exports.CalcRuleRefOneOf6ToJSONTyped = CalcRuleRefOneOf6ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CalcRuleRefOneOf6 interface.
23
+ */
24
+ function instanceOfCalcRuleRefOneOf6(value) {
25
+ if (!('_var' in value) || value['_var'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CalcRuleRefOneOf6FromJSON(json) {
30
+ return CalcRuleRefOneOf6FromJSONTyped(json, false);
31
+ }
32
+ function CalcRuleRefOneOf6FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ '_var': json['var'],
38
+ };
39
+ }
40
+ function CalcRuleRefOneOf6ToJSON(json) {
41
+ return CalcRuleRefOneOf6ToJSONTyped(json, false);
42
+ }
43
+ function CalcRuleRefOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'var': value['_var'],
49
+ };
50
+ }
@@ -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,64 @@
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.CalcTestFromJSON = CalcTestFromJSON;
17
+ exports.CalcTestFromJSONTyped = CalcTestFromJSONTyped;
18
+ exports.CalcTestToJSON = CalcTestToJSON;
19
+ exports.CalcTestToJSONTyped = CalcTestToJSONTyped;
20
+ const CalcTestOneOf_1 = require("./CalcTestOneOf");
21
+ const CalcTestOneOf1_1 = require("./CalcTestOneOf1");
22
+ const CalcTestOneOf2_1 = require("./CalcTestOneOf2");
23
+ function CalcTestFromJSON(json) {
24
+ return CalcTestFromJSONTyped(json, false);
25
+ }
26
+ function CalcTestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ if (typeof json !== 'object') {
31
+ return json;
32
+ }
33
+ if ((0, CalcTestOneOf_1.instanceOfCalcTestOneOf)(json)) {
34
+ return (0, CalcTestOneOf_1.CalcTestOneOfFromJSONTyped)(json, true);
35
+ }
36
+ if ((0, CalcTestOneOf1_1.instanceOfCalcTestOneOf1)(json)) {
37
+ return (0, CalcTestOneOf1_1.CalcTestOneOf1FromJSONTyped)(json, true);
38
+ }
39
+ if ((0, CalcTestOneOf2_1.instanceOfCalcTestOneOf2)(json)) {
40
+ return (0, CalcTestOneOf2_1.CalcTestOneOf2FromJSONTyped)(json, true);
41
+ }
42
+ return {};
43
+ }
44
+ function CalcTestToJSON(json) {
45
+ return CalcTestToJSONTyped(json, false);
46
+ }
47
+ function CalcTestToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ if (typeof value !== 'object') {
52
+ return value;
53
+ }
54
+ if ((0, CalcTestOneOf_1.instanceOfCalcTestOneOf)(value)) {
55
+ return (0, CalcTestOneOf_1.CalcTestOneOfToJSON)(value);
56
+ }
57
+ if ((0, CalcTestOneOf1_1.instanceOfCalcTestOneOf1)(value)) {
58
+ return (0, CalcTestOneOf1_1.CalcTestOneOf1ToJSON)(value);
59
+ }
60
+ if ((0, CalcTestOneOf2_1.instanceOfCalcTestOneOf2)(value)) {
61
+ return (0, CalcTestOneOf2_1.CalcTestOneOf2ToJSON)(value);
62
+ }
63
+ return {};
64
+ }
@@ -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,51 @@
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.instanceOfCalcTestOneOf = instanceOfCalcTestOneOf;
17
+ exports.CalcTestOneOfFromJSON = CalcTestOneOfFromJSON;
18
+ exports.CalcTestOneOfFromJSONTyped = CalcTestOneOfFromJSONTyped;
19
+ exports.CalcTestOneOfToJSON = CalcTestOneOfToJSON;
20
+ exports.CalcTestOneOfToJSONTyped = CalcTestOneOfToJSONTyped;
21
+ const CalcCompare_1 = require("./CalcCompare");
22
+ /**
23
+ * Check if a given object implements the CalcTestOneOf interface.
24
+ */
25
+ function instanceOfCalcTestOneOf(value) {
26
+ if (!('compare' in value) || value['compare'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CalcTestOneOfFromJSON(json) {
31
+ return CalcTestOneOfFromJSONTyped(json, false);
32
+ }
33
+ function CalcTestOneOfFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'compare': (0, CalcCompare_1.CalcCompareFromJSON)(json['compare']),
39
+ };
40
+ }
41
+ function CalcTestOneOfToJSON(json) {
42
+ return CalcTestOneOfToJSONTyped(json, false);
43
+ }
44
+ function CalcTestOneOfToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'compare': (0, CalcCompare_1.CalcCompareToJSON)(value['compare']),
50
+ };
51
+ }
@@ -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;