@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.
- package/.openapi-generator/FILES +27 -1
- package/README.md +2 -2
- package/dist/apis/LogicLayersApi.d.ts +279 -0
- package/dist/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +72 -62
- package/dist/apis/ObjectGroupsApi.d.ts +28 -1
- package/dist/apis/ObjectGroupsApi.js +40 -0
- package/dist/apis/PropertiesApi.d.ts +16 -16
- package/dist/apis/PropertiesApi.js +8 -8
- package/dist/apis/ScenariosApi.d.ts +4 -4
- package/dist/apis/ScenariosApi.js +2 -2
- package/dist/apis/ScriptsApi.d.ts +57 -1
- package/dist/apis/ScriptsApi.js +82 -0
- package/dist/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/apis/TopDownModelsApi.js +2 -2
- package/dist/apis/VariablesApi.d.ts +4 -4
- package/dist/apis/VariablesApi.js +2 -2
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/esm/apis/LogicLayersApi.d.ts +279 -0
- package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
- package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
- package/dist/esm/apis/ObjectGroupsApi.js +41 -1
- package/dist/esm/apis/PropertiesApi.d.ts +16 -16
- package/dist/esm/apis/PropertiesApi.js +8 -8
- package/dist/esm/apis/ScenariosApi.d.ts +4 -4
- package/dist/esm/apis/ScenariosApi.js +2 -2
- package/dist/esm/apis/ScriptsApi.d.ts +57 -1
- package/dist/esm/apis/ScriptsApi.js +83 -1
- package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/esm/apis/TopDownModelsApi.js +2 -2
- package/dist/esm/apis/VariablesApi.d.ts +4 -4
- package/dist/esm/apis/VariablesApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -1
- package/dist/esm/apis/index.js +1 -1
- package/dist/esm/models/CalcCompare.d.ts +45 -0
- package/dist/esm/models/CalcCompare.js +52 -0
- package/dist/esm/models/CalcCondition.d.ts +46 -0
- package/dist/esm/models/CalcCondition.js +53 -0
- package/dist/esm/models/CalcHasNode.d.ts +44 -0
- package/dist/esm/models/CalcHasNode.js +51 -0
- package/dist/esm/models/CalcIsObject.d.ts +32 -0
- package/dist/esm/models/CalcIsObject.js +43 -0
- package/dist/esm/models/CalcRuleRef.d.ts +2 -1
- package/dist/esm/models/CalcRuleRef.js +7 -0
- package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
- package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
- package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
- package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
- package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
- package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
- package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
- package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
- package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
- package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
- package/dist/esm/models/CalcTest.d.ts +24 -0
- package/dist/esm/models/CalcTest.js +58 -0
- package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf.js +44 -0
- package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf1.js +44 -0
- package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf2.js +44 -0
- package/dist/esm/models/Group.d.ts +45 -0
- package/dist/esm/models/Group.js +52 -0
- package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
- package/dist/esm/models/LogicAssignment.d.ts +23 -0
- package/dist/esm/models/LogicAssignment.js +51 -0
- package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
- package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
- package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
- package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
- package/dist/esm/models/LogicDemand.d.ts +40 -0
- package/dist/esm/models/LogicDemand.js +49 -0
- package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
- package/dist/esm/models/LogicLayerConfig.js +48 -0
- package/dist/esm/models/LogicPer.d.ts +45 -0
- package/dist/esm/models/LogicPer.js +52 -0
- package/dist/esm/models/LogicRule.d.ts +66 -0
- package/dist/esm/models/LogicRule.js +67 -0
- package/dist/esm/models/LogicSupply.d.ts +48 -0
- package/dist/esm/models/LogicSupply.js +54 -0
- package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
- package/dist/esm/models/LogicSupplyWeight.js +43 -0
- package/dist/esm/models/MaybeVarInt.d.ts +2 -2
- package/dist/esm/models/MaybeVarInt.js +5 -5
- package/dist/esm/models/MaybeVarProp.d.ts +2 -2
- package/dist/esm/models/MaybeVarProp.js +5 -5
- package/dist/esm/models/MaybeVarStr.d.ts +2 -2
- package/dist/esm/models/MaybeVarStr.js +5 -5
- package/dist/esm/models/ModelObject.d.ts +38 -0
- package/dist/esm/models/ModelObject.js +47 -0
- package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
- package/dist/esm/models/ObjectGroupListEntry.js +0 -4
- package/dist/esm/models/ScratchpadOutput.d.ts +69 -0
- package/dist/esm/models/ScratchpadOutput.js +64 -0
- package/dist/esm/models/ScratchpadOutputFile.d.ts +44 -0
- package/dist/esm/models/ScratchpadOutputFile.js +49 -0
- package/dist/esm/models/ScratchpadRun.d.ts +127 -0
- package/dist/esm/models/ScratchpadRun.js +91 -0
- package/dist/esm/models/ScratchpadRunPostReqBody.d.ts +58 -0
- package/dist/esm/models/ScratchpadRunPostReqBody.js +53 -0
- package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
- package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
- package/dist/esm/models/Selection.d.ts +39 -0
- package/dist/esm/models/Selection.js +48 -0
- package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
- package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
- package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
- package/dist/esm/models/index.d.ts +26 -0
- package/dist/esm/models/index.js +26 -0
- package/dist/models/CalcCompare.d.ts +45 -0
- package/dist/models/CalcCompare.js +59 -0
- package/dist/models/CalcCondition.d.ts +46 -0
- package/dist/models/CalcCondition.js +60 -0
- package/dist/models/CalcHasNode.d.ts +44 -0
- package/dist/models/CalcHasNode.js +58 -0
- package/dist/models/CalcIsObject.d.ts +32 -0
- package/dist/models/CalcIsObject.js +50 -0
- package/dist/models/CalcRuleRef.d.ts +2 -1
- package/dist/models/CalcRuleRef.js +7 -0
- package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
- package/dist/models/CalcRuleRefOneOf2.js +4 -3
- package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
- package/dist/models/CalcRuleRefOneOf3.js +3 -4
- package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
- package/dist/models/CalcRuleRefOneOf4.js +4 -4
- package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
- package/dist/models/CalcRuleRefOneOf5.js +4 -3
- package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
- package/dist/models/CalcRuleRefOneOf6.js +50 -0
- package/dist/models/CalcTest.d.ts +24 -0
- package/dist/models/CalcTest.js +64 -0
- package/dist/models/CalcTestOneOf.d.ts +33 -0
- package/dist/models/CalcTestOneOf.js +51 -0
- package/dist/models/CalcTestOneOf1.d.ts +33 -0
- package/dist/models/CalcTestOneOf1.js +51 -0
- package/dist/models/CalcTestOneOf2.d.ts +33 -0
- package/dist/models/CalcTestOneOf2.js +51 -0
- package/dist/models/Group.d.ts +45 -0
- package/dist/models/Group.js +59 -0
- package/dist/models/LayerVariablesRes.d.ts +1 -1
- package/dist/models/LogicAssignment.d.ts +23 -0
- package/dist/models/LogicAssignment.js +57 -0
- package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
- package/dist/models/LogicAssignmentOneOf.js +50 -0
- package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
- package/dist/models/LogicAssignmentOneOf1.js +50 -0
- package/dist/models/LogicDemand.d.ts +40 -0
- package/dist/models/LogicDemand.js +56 -0
- package/dist/models/LogicLayerConfig.d.ts +39 -0
- package/dist/models/LogicLayerConfig.js +55 -0
- package/dist/models/LogicPer.d.ts +45 -0
- package/dist/models/LogicPer.js +59 -0
- package/dist/models/LogicRule.d.ts +66 -0
- package/dist/models/LogicRule.js +74 -0
- package/dist/models/LogicSupply.d.ts +48 -0
- package/dist/models/LogicSupply.js +61 -0
- package/dist/models/LogicSupplyWeight.d.ts +32 -0
- package/dist/models/LogicSupplyWeight.js +50 -0
- package/dist/models/MaybeVarInt.d.ts +2 -2
- package/dist/models/MaybeVarInt.js +5 -5
- package/dist/models/MaybeVarProp.d.ts +2 -2
- package/dist/models/MaybeVarProp.js +5 -5
- package/dist/models/MaybeVarStr.d.ts +2 -2
- package/dist/models/MaybeVarStr.js +5 -5
- package/dist/models/ModelObject.d.ts +38 -0
- package/dist/models/ModelObject.js +54 -0
- package/dist/models/ObjectGroupListEntry.d.ts +0 -6
- package/dist/models/ObjectGroupListEntry.js +0 -4
- package/dist/models/ScratchpadOutput.d.ts +69 -0
- package/dist/models/ScratchpadOutput.js +71 -0
- package/dist/models/ScratchpadOutputFile.d.ts +44 -0
- package/dist/models/ScratchpadOutputFile.js +56 -0
- package/dist/models/ScratchpadRun.d.ts +127 -0
- package/dist/models/ScratchpadRun.js +99 -0
- package/dist/models/ScratchpadRunPostReqBody.d.ts +58 -0
- package/dist/models/ScratchpadRunPostReqBody.js +60 -0
- package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
- package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
- package/dist/models/Selection.d.ts +39 -0
- package/dist/models/Selection.js +55 -0
- package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
- package/dist/models/SpaceRuleSetJSON.js +3 -2
- package/dist/models/SpaceRulesetCreate.d.ts +1 -1
- package/dist/models/index.d.ts +26 -0
- package/dist/models/index.js +26 -0
- package/package.json +1 -1
- package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
- package/src/apis/ObjectGroupsApi.ts +75 -0
- package/src/apis/PropertiesApi.ts +16 -16
- package/src/apis/ScenariosApi.ts +4 -4
- package/src/apis/ScriptsApi.ts +148 -0
- package/src/apis/TopDownModelsApi.ts +4 -4
- package/src/apis/VariablesApi.ts +4 -4
- package/src/apis/index.ts +1 -1
- package/src/models/CalcCompare.ts +92 -0
- package/src/models/CalcCondition.ts +99 -0
- package/src/models/CalcHasNode.ts +84 -0
- package/src/models/CalcIsObject.ts +66 -0
- package/src/models/CalcRuleRef.ts +14 -1
- package/src/models/CalcRuleRefOneOf2.ts +13 -5
- package/src/models/CalcRuleRefOneOf3.ts +5 -13
- package/src/models/CalcRuleRefOneOf4.ts +11 -11
- package/src/models/CalcRuleRefOneOf5.ts +13 -5
- package/src/models/CalcRuleRefOneOf6.ts +66 -0
- package/src/models/CalcTest.ts +89 -0
- package/src/models/CalcTestOneOf.ts +74 -0
- package/src/models/CalcTestOneOf1.ts +74 -0
- package/src/models/CalcTestOneOf2.ts +74 -0
- package/src/models/Group.ts +92 -0
- package/src/models/LayerVariablesRes.ts +1 -1
- package/src/models/LogicAssignment.ts +76 -0
- package/src/models/LogicAssignmentOneOf.ts +66 -0
- package/src/models/LogicAssignmentOneOf1.ts +66 -0
- package/src/models/LogicDemand.ts +90 -0
- package/src/models/LogicLayerConfig.ts +83 -0
- package/src/models/LogicPer.ts +92 -0
- package/src/models/LogicRule.ts +140 -0
- package/src/models/LogicSupply.ts +99 -0
- package/src/models/LogicSupplyWeight.ts +66 -0
- package/src/models/MaybeVarInt.ts +11 -11
- package/src/models/MaybeVarProp.ts +11 -11
- package/src/models/MaybeVarStr.ts +11 -11
- package/src/models/ModelObject.ts +75 -0
- package/src/models/ObjectGroupListEntry.ts +0 -9
- package/src/models/ScratchpadOutput.ts +126 -0
- package/src/models/ScratchpadOutputFile.ts +83 -0
- package/src/models/ScratchpadRun.ts +203 -0
- package/src/models/ScratchpadRunPostReqBody.ts +99 -0
- package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
- package/src/models/Selection.ts +83 -0
- package/src/models/SpaceRuleSetJSON.ts +12 -4
- package/src/models/SpaceRulesetCreate.ts +1 -1
- package/src/models/index.ts +26 -0
- package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
- package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
|
@@ -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,54 @@
|
|
|
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.instanceOfModelObject = instanceOfModelObject;
|
|
17
|
+
exports.ModelObjectFromJSON = ModelObjectFromJSON;
|
|
18
|
+
exports.ModelObjectFromJSONTyped = ModelObjectFromJSONTyped;
|
|
19
|
+
exports.ModelObjectToJSON = ModelObjectToJSON;
|
|
20
|
+
exports.ModelObjectToJSONTyped = ModelObjectToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModelObject interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModelObject(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ModelObjectFromJSON(json) {
|
|
32
|
+
return ModelObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ModelObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ModelObjectToJSON(json) {
|
|
44
|
+
return ModelObjectToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ModelObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -26,8 +26,6 @@ function instanceOfObjectGroupListEntry(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('entries' in value) || value['entries'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('hasModules' in value) || value['hasModules'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('id' in value) || value['id'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('isPublic' in value) || value['isPublic'] === undefined)
|
|
@@ -46,7 +44,6 @@ function ObjectGroupListEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
44
|
return {
|
|
47
45
|
'description': json['description'],
|
|
48
46
|
'entries': json['entries'],
|
|
49
|
-
'hasModules': json['hasModules'],
|
|
50
47
|
'id': json['id'],
|
|
51
48
|
'isPublic': json['isPublic'],
|
|
52
49
|
'name': json['name'],
|
|
@@ -62,7 +59,6 @@ function ObjectGroupListEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
59
|
return {
|
|
63
60
|
'description': value['description'],
|
|
64
61
|
'entries': value['entries'],
|
|
65
|
-
'hasModules': value['hasModules'],
|
|
66
62
|
'id': value['id'],
|
|
67
63
|
'isPublic': value['isPublic'],
|
|
68
64
|
'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;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfScratchpadOutput = instanceOfScratchpadOutput;
|
|
17
|
+
exports.ScratchpadOutputFromJSON = ScratchpadOutputFromJSON;
|
|
18
|
+
exports.ScratchpadOutputFromJSONTyped = ScratchpadOutputFromJSONTyped;
|
|
19
|
+
exports.ScratchpadOutputToJSON = ScratchpadOutputToJSON;
|
|
20
|
+
exports.ScratchpadOutputToJSONTyped = ScratchpadOutputToJSONTyped;
|
|
21
|
+
const ScratchpadOutputFile_1 = require("./ScratchpadOutputFile");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScratchpadOutput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfScratchpadOutput(value) {
|
|
26
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('stderr' in value) || value['stderr'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('stderrTruncated' in value) || value['stderrTruncated'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('stdout' in value) || value['stdout'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('stdoutTruncated' in value) || value['stdoutTruncated'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ScratchpadOutputFromJSON(json) {
|
|
39
|
+
return ScratchpadOutputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ScratchpadOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
47
|
+
'files': (json['files'].map(ScratchpadOutputFile_1.ScratchpadOutputFileFromJSON)),
|
|
48
|
+
'result': json['result'] == null ? undefined : json['result'],
|
|
49
|
+
'stderr': json['stderr'],
|
|
50
|
+
'stderrTruncated': json['stderrTruncated'],
|
|
51
|
+
'stdout': json['stdout'],
|
|
52
|
+
'stdoutTruncated': json['stdoutTruncated'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ScratchpadOutputToJSON(json) {
|
|
56
|
+
return ScratchpadOutputToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ScratchpadOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'error': value['error'],
|
|
64
|
+
'files': (value['files'].map(ScratchpadOutputFile_1.ScratchpadOutputFileToJSON)),
|
|
65
|
+
'result': value['result'],
|
|
66
|
+
'stderr': value['stderr'],
|
|
67
|
+
'stderrTruncated': value['stderrTruncated'],
|
|
68
|
+
'stdout': value['stdout'],
|
|
69
|
+
'stdoutTruncated': value['stdoutTruncated'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ScratchpadOutputFile
|
|
16
|
+
*/
|
|
17
|
+
export interface ScratchpadOutputFile {
|
|
18
|
+
/**
|
|
19
|
+
* The file's content, base64-encoded.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScratchpadOutputFile
|
|
22
|
+
*/
|
|
23
|
+
content: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScratchpadOutputFile
|
|
28
|
+
*/
|
|
29
|
+
contentType?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Path relative to the output directory.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScratchpadOutputFile
|
|
34
|
+
*/
|
|
35
|
+
path: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ScratchpadOutputFile interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfScratchpadOutputFile(value: object): value is ScratchpadOutputFile;
|
|
41
|
+
export declare function ScratchpadOutputFileFromJSON(json: any): ScratchpadOutputFile;
|
|
42
|
+
export declare function ScratchpadOutputFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScratchpadOutputFile;
|
|
43
|
+
export declare function ScratchpadOutputFileToJSON(json: any): ScratchpadOutputFile;
|
|
44
|
+
export declare function ScratchpadOutputFileToJSONTyped(value?: ScratchpadOutputFile | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfScratchpadOutputFile = instanceOfScratchpadOutputFile;
|
|
17
|
+
exports.ScratchpadOutputFileFromJSON = ScratchpadOutputFileFromJSON;
|
|
18
|
+
exports.ScratchpadOutputFileFromJSONTyped = ScratchpadOutputFileFromJSONTyped;
|
|
19
|
+
exports.ScratchpadOutputFileToJSON = ScratchpadOutputFileToJSON;
|
|
20
|
+
exports.ScratchpadOutputFileToJSONTyped = ScratchpadOutputFileToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ScratchpadOutputFile interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfScratchpadOutputFile(value) {
|
|
25
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ScratchpadOutputFileFromJSON(json) {
|
|
32
|
+
return ScratchpadOutputFileFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ScratchpadOutputFileFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'content': json['content'],
|
|
40
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
41
|
+
'path': json['path'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ScratchpadOutputFileToJSON(json) {
|
|
45
|
+
return ScratchpadOutputFileToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ScratchpadOutputFileToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'content': value['content'],
|
|
53
|
+
'contentType': value['contentType'],
|
|
54
|
+
'path': value['path'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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 { ScratchpadOutput } from './ScratchpadOutput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScratchpadRun
|
|
17
|
+
*/
|
|
18
|
+
export interface ScratchpadRun {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ScratchpadRun
|
|
23
|
+
*/
|
|
24
|
+
durationMs?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof ScratchpadRun
|
|
29
|
+
*/
|
|
30
|
+
endedAt?: Date;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ScratchpadRun
|
|
35
|
+
*/
|
|
36
|
+
exitCode: number;
|
|
37
|
+
/**
|
|
38
|
+
* When the run and its output are deleted.
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof ScratchpadRun
|
|
41
|
+
*/
|
|
42
|
+
expiresAt?: Date;
|
|
43
|
+
/**
|
|
44
|
+
* The code that was run, keyed by path.
|
|
45
|
+
* @type {{ [key: string]: string; }}
|
|
46
|
+
* @memberof ScratchpadRun
|
|
47
|
+
*/
|
|
48
|
+
files: {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ScratchpadRun
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ScratchpadRun
|
|
61
|
+
*/
|
|
62
|
+
language: ScratchpadRunLanguageEnum;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ScratchpadRun
|
|
67
|
+
*/
|
|
68
|
+
message?: string;
|
|
69
|
+
/**
|
|
70
|
+
* What the run produced. Absent while it is in progress.
|
|
71
|
+
* @type {ScratchpadOutput}
|
|
72
|
+
* @memberof ScratchpadRun
|
|
73
|
+
*/
|
|
74
|
+
output?: ScratchpadOutput;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof ScratchpadRun
|
|
79
|
+
*/
|
|
80
|
+
queuedAt?: Date;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof ScratchpadRun
|
|
85
|
+
*/
|
|
86
|
+
startedAt?: Date;
|
|
87
|
+
/**
|
|
88
|
+
* How long the sandbox took to start.
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof ScratchpadRun
|
|
91
|
+
*/
|
|
92
|
+
startupMs?: number;
|
|
93
|
+
/**
|
|
94
|
+
* queued or running while the run is in progress, then success, error, timeout, killed or quota_exceeded.
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ScratchpadRun
|
|
97
|
+
*/
|
|
98
|
+
status: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof ScratchpadRun
|
|
103
|
+
*/
|
|
104
|
+
timeoutSeconds: number;
|
|
105
|
+
/**
|
|
106
|
+
* Whether the run used a sandbox that had already started.
|
|
107
|
+
* @type {boolean}
|
|
108
|
+
* @memberof ScratchpadRun
|
|
109
|
+
*/
|
|
110
|
+
warm: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
export declare const ScratchpadRunLanguageEnum: {
|
|
116
|
+
readonly Python: "python";
|
|
117
|
+
readonly Javascript: "javascript";
|
|
118
|
+
};
|
|
119
|
+
export type ScratchpadRunLanguageEnum = typeof ScratchpadRunLanguageEnum[keyof typeof ScratchpadRunLanguageEnum];
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the ScratchpadRun interface.
|
|
122
|
+
*/
|
|
123
|
+
export declare function instanceOfScratchpadRun(value: object): value is ScratchpadRun;
|
|
124
|
+
export declare function ScratchpadRunFromJSON(json: any): ScratchpadRun;
|
|
125
|
+
export declare function ScratchpadRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScratchpadRun;
|
|
126
|
+
export declare function ScratchpadRunToJSON(json: any): ScratchpadRun;
|
|
127
|
+
export declare function ScratchpadRunToJSONTyped(value?: ScratchpadRun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.ScratchpadRunLanguageEnum = void 0;
|
|
17
|
+
exports.instanceOfScratchpadRun = instanceOfScratchpadRun;
|
|
18
|
+
exports.ScratchpadRunFromJSON = ScratchpadRunFromJSON;
|
|
19
|
+
exports.ScratchpadRunFromJSONTyped = ScratchpadRunFromJSONTyped;
|
|
20
|
+
exports.ScratchpadRunToJSON = ScratchpadRunToJSON;
|
|
21
|
+
exports.ScratchpadRunToJSONTyped = ScratchpadRunToJSONTyped;
|
|
22
|
+
const ScratchpadOutput_1 = require("./ScratchpadOutput");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ScratchpadRunLanguageEnum = {
|
|
27
|
+
Python: 'python',
|
|
28
|
+
Javascript: 'javascript'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ScratchpadRun interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfScratchpadRun(value) {
|
|
34
|
+
if (!('exitCode' in value) || value['exitCode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('timeoutSeconds' in value) || value['timeoutSeconds'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('warm' in value) || value['warm'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function ScratchpadRunFromJSON(json) {
|
|
51
|
+
return ScratchpadRunFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ScratchpadRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'durationMs': json['durationMs'] == null ? undefined : json['durationMs'],
|
|
59
|
+
'endedAt': json['endedAt'] == null ? undefined : (new Date(json['endedAt'])),
|
|
60
|
+
'exitCode': json['exitCode'],
|
|
61
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
62
|
+
'files': json['files'],
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'language': json['language'],
|
|
65
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
66
|
+
'output': json['output'] == null ? undefined : (0, ScratchpadOutput_1.ScratchpadOutputFromJSON)(json['output']),
|
|
67
|
+
'queuedAt': json['queuedAt'] == null ? undefined : (new Date(json['queuedAt'])),
|
|
68
|
+
'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
|
|
69
|
+
'startupMs': json['startupMs'] == null ? undefined : json['startupMs'],
|
|
70
|
+
'status': json['status'],
|
|
71
|
+
'timeoutSeconds': json['timeoutSeconds'],
|
|
72
|
+
'warm': json['warm'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function ScratchpadRunToJSON(json) {
|
|
76
|
+
return ScratchpadRunToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function ScratchpadRunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'durationMs': value['durationMs'],
|
|
84
|
+
'endedAt': value['endedAt'] == null ? undefined : ((value['endedAt']).toISOString()),
|
|
85
|
+
'exitCode': value['exitCode'],
|
|
86
|
+
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
87
|
+
'files': value['files'],
|
|
88
|
+
'id': value['id'],
|
|
89
|
+
'language': value['language'],
|
|
90
|
+
'message': value['message'],
|
|
91
|
+
'output': (0, ScratchpadOutput_1.ScratchpadOutputToJSON)(value['output']),
|
|
92
|
+
'queuedAt': value['queuedAt'] == null ? undefined : ((value['queuedAt']).toISOString()),
|
|
93
|
+
'startedAt': value['startedAt'] == null ? undefined : ((value['startedAt']).toISOString()),
|
|
94
|
+
'startupMs': value['startupMs'],
|
|
95
|
+
'status': value['status'],
|
|
96
|
+
'timeoutSeconds': value['timeoutSeconds'],
|
|
97
|
+
'warm': value['warm'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 ScratchpadRunPostReqBody
|
|
16
|
+
*/
|
|
17
|
+
export interface ScratchpadRunPostReqBody {
|
|
18
|
+
/**
|
|
19
|
+
* Source files keyed by path. Python needs script.py defining handle(event, ctx) and JavaScript needs script.js exporting handle(event, ctx), as an integration script does, so the code can be saved as one unchanged.
|
|
20
|
+
* @type {{ [key: string]: string; }}
|
|
21
|
+
* @memberof ScratchpadRunPostReqBody
|
|
22
|
+
*/
|
|
23
|
+
files: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {any}
|
|
29
|
+
* @memberof ScratchpadRunPostReqBody
|
|
30
|
+
*/
|
|
31
|
+
input?: any | null;
|
|
32
|
+
/**
|
|
33
|
+
* python or javascript. Go code has to be saved as a script, which builds it.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ScratchpadRunPostReqBody
|
|
36
|
+
*/
|
|
37
|
+
language: string;
|
|
38
|
+
/**
|
|
39
|
+
* Longest the code may run. Defaults to 30.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof ScratchpadRunPostReqBody
|
|
42
|
+
*/
|
|
43
|
+
timeoutSeconds?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Longest to wait for the run to finish before responding. Defaults to 20.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ScratchpadRunPostReqBody
|
|
48
|
+
*/
|
|
49
|
+
waitSeconds?: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the ScratchpadRunPostReqBody interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfScratchpadRunPostReqBody(value: object): value is ScratchpadRunPostReqBody;
|
|
55
|
+
export declare function ScratchpadRunPostReqBodyFromJSON(json: any): ScratchpadRunPostReqBody;
|
|
56
|
+
export declare function ScratchpadRunPostReqBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScratchpadRunPostReqBody;
|
|
57
|
+
export declare function ScratchpadRunPostReqBodyToJSON(json: any): ScratchpadRunPostReqBody;
|
|
58
|
+
export declare function ScratchpadRunPostReqBodyToJSONTyped(value?: ScratchpadRunPostReqBody | null, ignoreDiscriminator?: boolean): any;
|