@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,67 @@
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 { LogicPerFromJSON, LogicPerToJSON, } from './LogicPer';
15
+ import { LogicAssignmentFromJSON, LogicAssignmentToJSON, } from './LogicAssignment';
16
+ import { LogicDemandFromJSON, LogicDemandToJSON, } from './LogicDemand';
17
+ import { LogicSupplyFromJSON, LogicSupplyToJSON, } from './LogicSupply';
18
+ /**
19
+ * Check if a given object implements the LogicRule interface.
20
+ */
21
+ export function instanceOfLogicRule(value) {
22
+ if (!('demand' in value) || value['demand'] === undefined)
23
+ return false;
24
+ if (!('exactNodes' in value) || value['exactNodes'] === undefined)
25
+ return false;
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('output' in value) || value['output'] === undefined)
29
+ return false;
30
+ if (!('per' in value) || value['per'] === undefined)
31
+ return false;
32
+ if (!('supply' in value) || value['supply'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function LogicRuleFromJSON(json) {
37
+ return LogicRuleFromJSONTyped(json, false);
38
+ }
39
+ export function LogicRuleFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'demand': LogicDemandFromJSON(json['demand']),
45
+ 'exactNodes': json['exactNodes'],
46
+ 'name': json['name'],
47
+ 'output': (json['output'].map(LogicAssignmentFromJSON)),
48
+ 'per': LogicPerFromJSON(json['per']),
49
+ 'supply': LogicSupplyFromJSON(json['supply']),
50
+ };
51
+ }
52
+ export function LogicRuleToJSON(json) {
53
+ return LogicRuleToJSONTyped(json, false);
54
+ }
55
+ export function LogicRuleToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'demand': LogicDemandToJSON(value['demand']),
61
+ 'exactNodes': value['exactNodes'],
62
+ 'name': value['name'],
63
+ 'output': (value['output'].map(LogicAssignmentToJSON)),
64
+ 'per': LogicPerToJSON(value['per']),
65
+ 'supply': LogicSupplyToJSON(value['supply']),
66
+ };
67
+ }
@@ -0,0 +1,48 @@
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 { LogicSupplyWeight } from './LogicSupplyWeight';
13
+ import type { FilterGroup } from './FilterGroup';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface LogicSupply
18
+ */
19
+ export interface LogicSupply {
20
+ /**
21
+ *
22
+ * @type {Array<FilterGroup>}
23
+ * @memberof LogicSupply
24
+ */
25
+ filters: Array<FilterGroup>;
26
+ /**
27
+ *
28
+ * @type {boolean}
29
+ * @memberof LogicSupply
30
+ */
31
+ ignoreMissingWeights: boolean;
32
+ /**
33
+ *
34
+ * @type {{ [key: string]: LogicSupplyWeight; }}
35
+ * @memberof LogicSupply
36
+ */
37
+ weights: {
38
+ [key: string]: LogicSupplyWeight;
39
+ };
40
+ }
41
+ /**
42
+ * Check if a given object implements the LogicSupply interface.
43
+ */
44
+ export declare function instanceOfLogicSupply(value: object): value is LogicSupply;
45
+ export declare function LogicSupplyFromJSON(json: any): LogicSupply;
46
+ export declare function LogicSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicSupply;
47
+ export declare function LogicSupplyToJSON(json: any): LogicSupply;
48
+ export declare function LogicSupplyToJSONTyped(value?: LogicSupply | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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 { mapValues } from '../runtime';
15
+ import { LogicSupplyWeightFromJSON, LogicSupplyWeightToJSON, } from './LogicSupplyWeight';
16
+ import { FilterGroupFromJSON, FilterGroupToJSON, } from './FilterGroup';
17
+ /**
18
+ * Check if a given object implements the LogicSupply interface.
19
+ */
20
+ export function instanceOfLogicSupply(value) {
21
+ if (!('filters' in value) || value['filters'] === undefined)
22
+ return false;
23
+ if (!('ignoreMissingWeights' in value) || value['ignoreMissingWeights'] === undefined)
24
+ return false;
25
+ if (!('weights' in value) || value['weights'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function LogicSupplyFromJSON(json) {
30
+ return LogicSupplyFromJSONTyped(json, false);
31
+ }
32
+ export function LogicSupplyFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'filters': (json['filters'].map(FilterGroupFromJSON)),
38
+ 'ignoreMissingWeights': json['ignoreMissingWeights'],
39
+ 'weights': (mapValues(json['weights'], LogicSupplyWeightFromJSON)),
40
+ };
41
+ }
42
+ export function LogicSupplyToJSON(json) {
43
+ return LogicSupplyToJSONTyped(json, false);
44
+ }
45
+ export function LogicSupplyToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'filters': (value['filters'].map(FilterGroupToJSON)),
51
+ 'ignoreMissingWeights': value['ignoreMissingWeights'],
52
+ 'weights': (mapValues(value['weights'], LogicSupplyWeightToJSON)),
53
+ };
54
+ }
@@ -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 LogicSupplyWeight
16
+ */
17
+ export interface LogicSupplyWeight {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LogicSupplyWeight
22
+ */
23
+ weight: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the LogicSupplyWeight interface.
27
+ */
28
+ export declare function instanceOfLogicSupplyWeight(value: object): value is LogicSupplyWeight;
29
+ export declare function LogicSupplyWeightFromJSON(json: any): LogicSupplyWeight;
30
+ export declare function LogicSupplyWeightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicSupplyWeight;
31
+ export declare function LogicSupplyWeightToJSON(json: any): LogicSupplyWeight;
32
+ export declare function LogicSupplyWeightToJSONTyped(value?: LogicSupplyWeight | 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 LogicSupplyWeight interface.
16
+ */
17
+ export function instanceOfLogicSupplyWeight(value) {
18
+ if (!('weight' in value) || value['weight'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function LogicSupplyWeightFromJSON(json) {
23
+ return LogicSupplyWeightFromJSONTyped(json, false);
24
+ }
25
+ export function LogicSupplyWeightFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'weight': json['weight'],
31
+ };
32
+ }
33
+ export function LogicSupplyWeightToJSON(json) {
34
+ return LogicSupplyWeightToJSONTyped(json, false);
35
+ }
36
+ export function LogicSupplyWeightToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'weight': value['weight'],
42
+ };
43
+ }
@@ -9,14 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CalcRuleRefOneOf5 } from './CalcRuleRefOneOf5';
12
+ import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
13
13
  import type { MaybeVarIntOneOf } from './MaybeVarIntOneOf';
14
14
  /**
15
15
  * @type MaybeVarInt
16
16
  *
17
17
  * @export
18
18
  */
19
- export type MaybeVarInt = CalcRuleRefOneOf5 | MaybeVarIntOneOf;
19
+ export type MaybeVarInt = CalcRuleRefOneOf6 | MaybeVarIntOneOf;
20
20
  export declare function MaybeVarIntFromJSON(json: any): MaybeVarInt;
21
21
  export declare function MaybeVarIntFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaybeVarInt;
22
22
  export declare function MaybeVarIntToJSON(json: any): any;
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { instanceOfCalcRuleRefOneOf5, CalcRuleRefOneOf5FromJSONTyped, CalcRuleRefOneOf5ToJSON, } from './CalcRuleRefOneOf5';
14
+ import { instanceOfCalcRuleRefOneOf6, CalcRuleRefOneOf6FromJSONTyped, CalcRuleRefOneOf6ToJSON, } from './CalcRuleRefOneOf6';
15
15
  import { instanceOfMaybeVarIntOneOf, MaybeVarIntOneOfFromJSONTyped, MaybeVarIntOneOfToJSON, } from './MaybeVarIntOneOf';
16
16
  export function MaybeVarIntFromJSON(json) {
17
17
  return MaybeVarIntFromJSONTyped(json, false);
@@ -23,8 +23,8 @@ export function MaybeVarIntFromJSONTyped(json, ignoreDiscriminator) {
23
23
  if (typeof json !== 'object') {
24
24
  return json;
25
25
  }
26
- if (instanceOfCalcRuleRefOneOf5(json)) {
27
- return CalcRuleRefOneOf5FromJSONTyped(json, true);
26
+ if (instanceOfCalcRuleRefOneOf6(json)) {
27
+ return CalcRuleRefOneOf6FromJSONTyped(json, true);
28
28
  }
29
29
  if (instanceOfMaybeVarIntOneOf(json)) {
30
30
  return MaybeVarIntOneOfFromJSONTyped(json, true);
@@ -41,8 +41,8 @@ export function MaybeVarIntToJSONTyped(value, ignoreDiscriminator = false) {
41
41
  if (typeof value !== 'object') {
42
42
  return value;
43
43
  }
44
- if (instanceOfCalcRuleRefOneOf5(value)) {
45
- return CalcRuleRefOneOf5ToJSON(value);
44
+ if (instanceOfCalcRuleRefOneOf6(value)) {
45
+ return CalcRuleRefOneOf6ToJSON(value);
46
46
  }
47
47
  if (instanceOfMaybeVarIntOneOf(value)) {
48
48
  return MaybeVarIntOneOfToJSON(value);
@@ -9,14 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CalcRuleRefOneOf5 } from './CalcRuleRefOneOf5';
12
+ import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
13
13
  import type { MaybeVarPropOneOf } from './MaybeVarPropOneOf';
14
14
  /**
15
15
  * @type MaybeVarProp
16
16
  *
17
17
  * @export
18
18
  */
19
- export type MaybeVarProp = CalcRuleRefOneOf5 | MaybeVarPropOneOf;
19
+ export type MaybeVarProp = CalcRuleRefOneOf6 | MaybeVarPropOneOf;
20
20
  export declare function MaybeVarPropFromJSON(json: any): MaybeVarProp;
21
21
  export declare function MaybeVarPropFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaybeVarProp;
22
22
  export declare function MaybeVarPropToJSON(json: any): any;
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { instanceOfCalcRuleRefOneOf5, CalcRuleRefOneOf5FromJSONTyped, CalcRuleRefOneOf5ToJSON, } from './CalcRuleRefOneOf5';
14
+ import { instanceOfCalcRuleRefOneOf6, CalcRuleRefOneOf6FromJSONTyped, CalcRuleRefOneOf6ToJSON, } from './CalcRuleRefOneOf6';
15
15
  import { instanceOfMaybeVarPropOneOf, MaybeVarPropOneOfFromJSONTyped, MaybeVarPropOneOfToJSON, } from './MaybeVarPropOneOf';
16
16
  export function MaybeVarPropFromJSON(json) {
17
17
  return MaybeVarPropFromJSONTyped(json, false);
@@ -23,8 +23,8 @@ export function MaybeVarPropFromJSONTyped(json, ignoreDiscriminator) {
23
23
  if (typeof json !== 'object') {
24
24
  return json;
25
25
  }
26
- if (instanceOfCalcRuleRefOneOf5(json)) {
27
- return CalcRuleRefOneOf5FromJSONTyped(json, true);
26
+ if (instanceOfCalcRuleRefOneOf6(json)) {
27
+ return CalcRuleRefOneOf6FromJSONTyped(json, true);
28
28
  }
29
29
  if (instanceOfMaybeVarPropOneOf(json)) {
30
30
  return MaybeVarPropOneOfFromJSONTyped(json, true);
@@ -41,8 +41,8 @@ export function MaybeVarPropToJSONTyped(value, ignoreDiscriminator = false) {
41
41
  if (typeof value !== 'object') {
42
42
  return value;
43
43
  }
44
- if (instanceOfCalcRuleRefOneOf5(value)) {
45
- return CalcRuleRefOneOf5ToJSON(value);
44
+ if (instanceOfCalcRuleRefOneOf6(value)) {
45
+ return CalcRuleRefOneOf6ToJSON(value);
46
46
  }
47
47
  if (instanceOfMaybeVarPropOneOf(value)) {
48
48
  return MaybeVarPropOneOfToJSON(value);
@@ -9,14 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CalcRuleRefOneOf5 } from './CalcRuleRefOneOf5';
12
+ import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
13
13
  import type { MaybeVarStrOneOf } from './MaybeVarStrOneOf';
14
14
  /**
15
15
  * @type MaybeVarStr
16
16
  *
17
17
  * @export
18
18
  */
19
- export type MaybeVarStr = CalcRuleRefOneOf5 | MaybeVarStrOneOf;
19
+ export type MaybeVarStr = CalcRuleRefOneOf6 | MaybeVarStrOneOf;
20
20
  export declare function MaybeVarStrFromJSON(json: any): MaybeVarStr;
21
21
  export declare function MaybeVarStrFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaybeVarStr;
22
22
  export declare function MaybeVarStrToJSON(json: any): any;
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { instanceOfCalcRuleRefOneOf5, CalcRuleRefOneOf5FromJSONTyped, CalcRuleRefOneOf5ToJSON, } from './CalcRuleRefOneOf5';
14
+ import { instanceOfCalcRuleRefOneOf6, CalcRuleRefOneOf6FromJSONTyped, CalcRuleRefOneOf6ToJSON, } from './CalcRuleRefOneOf6';
15
15
  import { instanceOfMaybeVarStrOneOf, MaybeVarStrOneOfFromJSONTyped, MaybeVarStrOneOfToJSON, } from './MaybeVarStrOneOf';
16
16
  export function MaybeVarStrFromJSON(json) {
17
17
  return MaybeVarStrFromJSONTyped(json, false);
@@ -23,8 +23,8 @@ export function MaybeVarStrFromJSONTyped(json, ignoreDiscriminator) {
23
23
  if (typeof json !== 'object') {
24
24
  return json;
25
25
  }
26
- if (instanceOfCalcRuleRefOneOf5(json)) {
27
- return CalcRuleRefOneOf5FromJSONTyped(json, true);
26
+ if (instanceOfCalcRuleRefOneOf6(json)) {
27
+ return CalcRuleRefOneOf6FromJSONTyped(json, true);
28
28
  }
29
29
  if (instanceOfMaybeVarStrOneOf(json)) {
30
30
  return MaybeVarStrOneOfFromJSONTyped(json, true);
@@ -41,8 +41,8 @@ export function MaybeVarStrToJSONTyped(value, ignoreDiscriminator = false) {
41
41
  if (typeof value !== 'object') {
42
42
  return value;
43
43
  }
44
- if (instanceOfCalcRuleRefOneOf5(value)) {
45
- return CalcRuleRefOneOf5ToJSON(value);
44
+ if (instanceOfCalcRuleRefOneOf6(value)) {
45
+ return CalcRuleRefOneOf6ToJSON(value);
46
46
  }
47
47
  if (instanceOfMaybeVarStrOneOf(value)) {
48
48
  return MaybeVarStrOneOfToJSON(value);
@@ -0,0 +1,38 @@
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 ModelObject
16
+ */
17
+ export interface ModelObject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ModelObject
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ModelObject
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ModelObject interface.
33
+ */
34
+ export declare function instanceOfModelObject(value: object): value is ModelObject;
35
+ export declare function ModelObjectFromJSON(json: any): ModelObject;
36
+ export declare function ModelObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelObject;
37
+ export declare function ModelObjectToJSON(json: any): ModelObject;
38
+ export declare function ModelObjectToJSONTyped(value?: ModelObject | null, ignoreDiscriminator?: boolean): any;
@@ -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,69 @@
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 { ScratchpadOutputFile } from './ScratchpadOutputFile';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScratchpadOutput
17
+ */
18
+ export interface ScratchpadOutput {
19
+ /**
20
+ * Why some of the output could not be collected, for example because it was over a limit.
21
+ * @type {string}
22
+ * @memberof ScratchpadOutput
23
+ */
24
+ error?: string;
25
+ /**
26
+ * Files the handler wrote to its output directory.
27
+ * @type {Array<ScratchpadOutputFile>}
28
+ * @memberof ScratchpadOutput
29
+ */
30
+ files: Array<ScratchpadOutputFile>;
31
+ /**
32
+ *
33
+ * @type {any}
34
+ * @memberof ScratchpadOutput
35
+ */
36
+ result?: any | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ScratchpadOutput
41
+ */
42
+ stderr: string;
43
+ /**
44
+ * Set when stderr was longer than the 256 KiB kept.
45
+ * @type {boolean}
46
+ * @memberof ScratchpadOutput
47
+ */
48
+ stderrTruncated: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ScratchpadOutput
53
+ */
54
+ stdout: string;
55
+ /**
56
+ * Set when stdout was longer than the 256 KiB kept.
57
+ * @type {boolean}
58
+ * @memberof ScratchpadOutput
59
+ */
60
+ stdoutTruncated: boolean;
61
+ }
62
+ /**
63
+ * Check if a given object implements the ScratchpadOutput interface.
64
+ */
65
+ export declare function instanceOfScratchpadOutput(value: object): value is ScratchpadOutput;
66
+ export declare function ScratchpadOutputFromJSON(json: any): ScratchpadOutput;
67
+ export declare function ScratchpadOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScratchpadOutput;
68
+ export declare function ScratchpadOutputToJSON(json: any): ScratchpadOutput;
69
+ export declare function ScratchpadOutputToJSONTyped(value?: ScratchpadOutput | null, ignoreDiscriminator?: boolean): any;