@spaciv/sdk 0.1.1 → 0.1.3
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 +25 -0
- package/README.md +2 -2
- package/dist/apis/AccountsApi.d.ts +24 -24
- package/dist/apis/AccountsApi.js +12 -12
- package/dist/apis/AuditLogApi.d.ts +1 -1
- package/dist/apis/AuthenticationApi.d.ts +8 -8
- package/dist/apis/AuthenticationApi.js +4 -4
- package/dist/apis/ScriptsApi.d.ts +383 -0
- package/dist/apis/ScriptsApi.js +559 -0
- package/dist/apis/UsersApi.d.ts +4 -4
- package/dist/apis/UsersApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AccountsApi.d.ts +24 -24
- package/dist/esm/apis/AccountsApi.js +12 -12
- package/dist/esm/apis/AuditLogApi.d.ts +1 -1
- package/dist/esm/apis/AuthenticationApi.d.ts +8 -8
- package/dist/esm/apis/AuthenticationApi.js +4 -4
- package/dist/esm/apis/ScriptsApi.d.ts +383 -0
- package/dist/esm/apis/ScriptsApi.js +555 -0
- package/dist/esm/apis/UsersApi.d.ts +4 -4
- package/dist/esm/apis/UsersApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/APIKey.d.ts +6 -0
- package/dist/esm/models/APIKey.js +2 -0
- package/dist/esm/models/ScriptAuditEntry.d.ts +67 -0
- package/dist/esm/models/ScriptAuditEntry.js +63 -0
- package/dist/esm/models/ScriptAuditResBody.d.ts +39 -0
- package/dist/esm/models/ScriptAuditResBody.js +46 -0
- package/dist/esm/models/ScriptDetail.d.ts +161 -0
- package/dist/esm/models/ScriptDetail.js +122 -0
- package/dist/esm/models/ScriptExport.d.ts +174 -0
- package/dist/esm/models/ScriptExport.js +129 -0
- package/dist/esm/models/ScriptExportResBody.d.ts +39 -0
- package/dist/esm/models/ScriptExportResBody.js +48 -0
- package/dist/esm/models/ScriptExportRun.d.ts +92 -0
- package/dist/esm/models/ScriptExportRun.js +73 -0
- package/dist/esm/models/ScriptKey.d.ts +64 -0
- package/dist/esm/models/ScriptKey.js +58 -0
- package/dist/esm/models/ScriptListResBody.d.ts +33 -0
- package/dist/esm/models/ScriptListResBody.js +44 -0
- package/dist/esm/models/ScriptLogLine.d.ts +38 -0
- package/dist/esm/models/ScriptLogLine.js +47 -0
- package/dist/esm/models/ScriptPatchReqBody.d.ts +98 -0
- package/dist/esm/models/ScriptPatchReqBody.js +70 -0
- package/dist/esm/models/ScriptPostReqBody.d.ts +113 -0
- package/dist/esm/models/ScriptPostReqBody.js +82 -0
- package/dist/esm/models/ScriptRun.d.ts +86 -0
- package/dist/esm/models/ScriptRun.js +69 -0
- package/dist/esm/models/ScriptRunLogsResBody.d.ts +39 -0
- package/dist/esm/models/ScriptRunLogsResBody.js +48 -0
- package/dist/esm/models/ScriptRunsResBody.d.ts +39 -0
- package/dist/esm/models/ScriptRunsResBody.js +46 -0
- package/dist/esm/models/ScriptRuntime.d.ts +62 -0
- package/dist/esm/models/ScriptRuntime.js +51 -0
- package/dist/esm/models/ScriptSchedule.d.ts +38 -0
- package/dist/esm/models/ScriptSchedule.js +43 -0
- package/dist/esm/models/ScriptSchedulePreviewReqBody.d.ts +44 -0
- package/dist/esm/models/ScriptSchedulePreviewReqBody.js +45 -0
- package/dist/esm/models/ScriptSchedulePreviewResBody.d.ts +44 -0
- package/dist/esm/models/ScriptSchedulePreviewResBody.js +49 -0
- package/dist/esm/models/ScriptSecretsReqBody.d.ts +40 -0
- package/dist/esm/models/ScriptSecretsReqBody.js +43 -0
- package/dist/esm/models/ScriptSecretsResBody.d.ts +134 -0
- package/dist/esm/models/ScriptSecretsResBody.js +111 -0
- package/dist/esm/models/ScriptSummary.d.ts +128 -0
- package/dist/esm/models/ScriptSummary.js +107 -0
- package/dist/esm/models/ScriptWebhookResBody.d.ts +32 -0
- package/dist/esm/models/ScriptWebhookResBody.js +43 -0
- package/dist/esm/models/VariableData.d.ts +2 -1
- package/dist/esm/models/VariableData.js +7 -0
- package/dist/esm/models/VariableDataOneOf2.d.ts +3 -3
- package/dist/esm/models/VariableDataOneOf2.js +4 -4
- package/dist/esm/models/VariableDataOneOf3.d.ts +3 -3
- package/dist/esm/models/VariableDataOneOf3.js +4 -4
- package/dist/esm/models/VariableDataOneOf4.d.ts +3 -3
- package/dist/esm/models/VariableDataOneOf4.js +4 -4
- package/dist/esm/models/VariableDataOneOf5.d.ts +3 -2
- package/dist/esm/models/VariableDataOneOf5.js +4 -3
- package/dist/esm/models/VariableDataOneOf6.d.ts +1 -1
- package/dist/esm/models/VariableDataOneOf6.js +3 -3
- package/dist/esm/models/VariableDataOneOf7.d.ts +32 -0
- package/dist/esm/models/VariableDataOneOf7.js +43 -0
- package/dist/esm/models/VariableDate.d.ts +50 -0
- package/dist/esm/models/VariableDate.js +55 -0
- package/dist/esm/models/index.d.ts +24 -0
- package/dist/esm/models/index.js +24 -0
- package/dist/models/APIKey.d.ts +6 -0
- package/dist/models/APIKey.js +2 -0
- package/dist/models/ScriptAuditEntry.d.ts +67 -0
- package/dist/models/ScriptAuditEntry.js +71 -0
- package/dist/models/ScriptAuditResBody.d.ts +39 -0
- package/dist/models/ScriptAuditResBody.js +53 -0
- package/dist/models/ScriptDetail.d.ts +161 -0
- package/dist/models/ScriptDetail.js +130 -0
- package/dist/models/ScriptExport.d.ts +174 -0
- package/dist/models/ScriptExport.js +137 -0
- package/dist/models/ScriptExportResBody.d.ts +39 -0
- package/dist/models/ScriptExportResBody.js +55 -0
- package/dist/models/ScriptExportRun.d.ts +92 -0
- package/dist/models/ScriptExportRun.js +80 -0
- package/dist/models/ScriptKey.d.ts +64 -0
- package/dist/models/ScriptKey.js +66 -0
- package/dist/models/ScriptListResBody.d.ts +33 -0
- package/dist/models/ScriptListResBody.js +51 -0
- package/dist/models/ScriptLogLine.d.ts +38 -0
- package/dist/models/ScriptLogLine.js +54 -0
- package/dist/models/ScriptPatchReqBody.d.ts +98 -0
- package/dist/models/ScriptPatchReqBody.js +78 -0
- package/dist/models/ScriptPostReqBody.d.ts +113 -0
- package/dist/models/ScriptPostReqBody.js +90 -0
- package/dist/models/ScriptRun.d.ts +86 -0
- package/dist/models/ScriptRun.js +76 -0
- package/dist/models/ScriptRunLogsResBody.d.ts +39 -0
- package/dist/models/ScriptRunLogsResBody.js +55 -0
- package/dist/models/ScriptRunsResBody.d.ts +39 -0
- package/dist/models/ScriptRunsResBody.js +53 -0
- package/dist/models/ScriptRuntime.d.ts +62 -0
- package/dist/models/ScriptRuntime.js +58 -0
- package/dist/models/ScriptSchedule.d.ts +38 -0
- package/dist/models/ScriptSchedule.js +50 -0
- package/dist/models/ScriptSchedulePreviewReqBody.d.ts +44 -0
- package/dist/models/ScriptSchedulePreviewReqBody.js +52 -0
- package/dist/models/ScriptSchedulePreviewResBody.d.ts +44 -0
- package/dist/models/ScriptSchedulePreviewResBody.js +56 -0
- package/dist/models/ScriptSecretsReqBody.d.ts +40 -0
- package/dist/models/ScriptSecretsReqBody.js +50 -0
- package/dist/models/ScriptSecretsResBody.d.ts +134 -0
- package/dist/models/ScriptSecretsResBody.js +119 -0
- package/dist/models/ScriptSummary.d.ts +128 -0
- package/dist/models/ScriptSummary.js +115 -0
- package/dist/models/ScriptWebhookResBody.d.ts +32 -0
- package/dist/models/ScriptWebhookResBody.js +50 -0
- package/dist/models/VariableData.d.ts +2 -1
- package/dist/models/VariableData.js +7 -0
- package/dist/models/VariableDataOneOf2.d.ts +3 -3
- package/dist/models/VariableDataOneOf2.js +4 -4
- package/dist/models/VariableDataOneOf3.d.ts +3 -3
- package/dist/models/VariableDataOneOf3.js +4 -4
- package/dist/models/VariableDataOneOf4.d.ts +3 -3
- package/dist/models/VariableDataOneOf4.js +4 -4
- package/dist/models/VariableDataOneOf5.d.ts +3 -2
- package/dist/models/VariableDataOneOf5.js +4 -3
- package/dist/models/VariableDataOneOf6.d.ts +1 -1
- package/dist/models/VariableDataOneOf6.js +3 -3
- package/dist/models/VariableDataOneOf7.d.ts +32 -0
- package/dist/models/VariableDataOneOf7.js +50 -0
- package/dist/models/VariableDate.d.ts +50 -0
- package/dist/models/VariableDate.js +62 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +24 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +24 -24
- package/src/apis/AuditLogApi.ts +1 -1
- package/src/apis/AuthenticationApi.ts +8 -8
- package/src/apis/ScriptsApi.ts +984 -0
- package/src/apis/UsersApi.ts +4 -4
- package/src/apis/index.ts +1 -0
- package/src/models/APIKey.ts +8 -0
- package/src/models/ScriptAuditEntry.ts +112 -0
- package/src/models/ScriptAuditResBody.ts +82 -0
- package/src/models/ScriptDetail.ts +265 -0
- package/src/models/ScriptExport.ts +289 -0
- package/src/models/ScriptExportResBody.ts +83 -0
- package/src/models/ScriptExportRun.ts +151 -0
- package/src/models/ScriptKey.ts +109 -0
- package/src/models/ScriptListResBody.ts +74 -0
- package/src/models/ScriptLogLine.ts +75 -0
- package/src/models/ScriptPatchReqBody.ts +158 -0
- package/src/models/ScriptPostReqBody.ts +176 -0
- package/src/models/ScriptRun.ts +142 -0
- package/src/models/ScriptRunLogsResBody.ts +83 -0
- package/src/models/ScriptRunsResBody.ts +82 -0
- package/src/models/ScriptRuntime.ts +105 -0
- package/src/models/ScriptSchedule.ts +73 -0
- package/src/models/ScriptSchedulePreviewReqBody.ts +81 -0
- package/src/models/ScriptSchedulePreviewResBody.ts +83 -0
- package/src/models/ScriptSecretsReqBody.ts +73 -0
- package/src/models/ScriptSecretsResBody.ts +225 -0
- package/src/models/ScriptSummary.ts +216 -0
- package/src/models/ScriptWebhookResBody.ts +66 -0
- package/src/models/VariableData.ts +14 -1
- package/src/models/VariableDataOneOf2.ts +11 -11
- package/src/models/VariableDataOneOf3.ts +11 -11
- package/src/models/VariableDataOneOf4.ts +11 -11
- package/src/models/VariableDataOneOf5.ts +13 -5
- package/src/models/VariableDataOneOf6.ts +4 -4
- package/src/models/VariableDataOneOf7.ts +66 -0
- package/src/models/VariableDate.ts +93 -0
- package/src/models/index.ts +24 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { VariableProperty } from './VariableProperty';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { VariableNumber } from './VariableNumber';
|
|
|
18
18
|
export interface VariableDataOneOf3 {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {VariableProperty}
|
|
22
22
|
* @memberof VariableDataOneOf3
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
node: VariableProperty;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the VariableDataOneOf3 interface.
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { VariablePropertyFromJSON, VariablePropertyToJSON, } from './VariableProperty';
|
|
15
15
|
/**
|
|
16
16
|
* Check if a given object implements the VariableDataOneOf3 interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfVariableDataOneOf3(value) {
|
|
19
|
-
if (!('
|
|
19
|
+
if (!('node' in value) || value['node'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ export function VariableDataOneOf3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return json;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
|
-
'
|
|
31
|
+
'node': VariablePropertyFromJSON(json['node']),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export function VariableDataOneOf3ToJSON(json) {
|
|
@@ -39,6 +39,6 @@ export function VariableDataOneOf3ToJSONTyped(value, ignoreDiscriminator = false
|
|
|
39
39
|
return value;
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
|
-
'
|
|
42
|
+
'node': VariablePropertyToJSON(value['node']),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { VariableNumber } from './VariableNumber';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { VariableObject } from './VariableObject';
|
|
|
18
18
|
export interface VariableDataOneOf4 {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {VariableNumber}
|
|
22
22
|
* @memberof VariableDataOneOf4
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
number: VariableNumber;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the VariableDataOneOf4 interface.
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { VariableNumberFromJSON, VariableNumberToJSON, } from './VariableNumber';
|
|
15
15
|
/**
|
|
16
16
|
* Check if a given object implements the VariableDataOneOf4 interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfVariableDataOneOf4(value) {
|
|
19
|
-
if (!('
|
|
19
|
+
if (!('number' in value) || value['number'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ export function VariableDataOneOf4FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return json;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
|
-
'
|
|
31
|
+
'number': VariableNumberFromJSON(json['number']),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export function VariableDataOneOf4ToJSON(json) {
|
|
@@ -39,6 +39,6 @@ export function VariableDataOneOf4ToJSONTyped(value, ignoreDiscriminator = false
|
|
|
39
39
|
return value;
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
|
-
'
|
|
42
|
+
'number': VariableNumberToJSON(value['number']),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VariableObject } from './VariableObject';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,10 +18,10 @@
|
|
|
17
18
|
export interface VariableDataOneOf5 {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {VariableObject}
|
|
21
22
|
* @memberof VariableDataOneOf5
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
object: VariableObject;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the VariableDataOneOf5 interface.
|
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { VariableObjectFromJSON, VariableObjectToJSON, } from './VariableObject';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the VariableDataOneOf5 interface.
|
|
16
17
|
*/
|
|
17
18
|
export function instanceOfVariableDataOneOf5(value) {
|
|
18
|
-
if (!('
|
|
19
|
+
if (!('object' in value) || value['object'] === undefined)
|
|
19
20
|
return false;
|
|
20
21
|
return true;
|
|
21
22
|
}
|
|
@@ -27,7 +28,7 @@ export function VariableDataOneOf5FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
28
|
return json;
|
|
28
29
|
}
|
|
29
30
|
return {
|
|
30
|
-
'
|
|
31
|
+
'object': VariableObjectFromJSON(json['object']),
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function VariableDataOneOf5ToJSON(json) {
|
|
@@ -38,6 +39,6 @@ export function VariableDataOneOf5ToJSONTyped(value, ignoreDiscriminator = false
|
|
|
38
39
|
return value;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
|
-
'
|
|
42
|
+
'object': VariableObjectToJSON(value['object']),
|
|
42
43
|
};
|
|
43
44
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Check if a given object implements the VariableDataOneOf6 interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfVariableDataOneOf6(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('property' in value) || value['property'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
@@ -27,7 +27,7 @@ export function VariableDataOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
|
-
'
|
|
30
|
+
'property': json['property'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export function VariableDataOneOf6ToJSON(json) {
|
|
@@ -38,6 +38,6 @@ export function VariableDataOneOf6ToJSONTyped(value, ignoreDiscriminator = false
|
|
|
38
38
|
return value;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'
|
|
41
|
+
'property': value['property'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -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 VariableDataOneOf7
|
|
16
|
+
*/
|
|
17
|
+
export interface VariableDataOneOf7 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VariableDataOneOf7
|
|
22
|
+
*/
|
|
23
|
+
scenario: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the VariableDataOneOf7 interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfVariableDataOneOf7(value: object): value is VariableDataOneOf7;
|
|
29
|
+
export declare function VariableDataOneOf7FromJSON(json: any): VariableDataOneOf7;
|
|
30
|
+
export declare function VariableDataOneOf7FromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableDataOneOf7;
|
|
31
|
+
export declare function VariableDataOneOf7ToJSON(json: any): VariableDataOneOf7;
|
|
32
|
+
export declare function VariableDataOneOf7ToJSONTyped(value?: VariableDataOneOf7 | 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 VariableDataOneOf7 interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVariableDataOneOf7(value) {
|
|
18
|
+
if (!('scenario' in value) || value['scenario'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function VariableDataOneOf7FromJSON(json) {
|
|
23
|
+
return VariableDataOneOf7FromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function VariableDataOneOf7FromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'scenario': json['scenario'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function VariableDataOneOf7ToJSON(json) {
|
|
34
|
+
return VariableDataOneOf7ToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function VariableDataOneOf7ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'scenario': value['scenario'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 VariableDate
|
|
16
|
+
*/
|
|
17
|
+
export interface VariableDate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof VariableDate
|
|
22
|
+
*/
|
|
23
|
+
max: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof VariableDate
|
|
28
|
+
*/
|
|
29
|
+
min: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VariableDate
|
|
34
|
+
*/
|
|
35
|
+
step: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VariableDate
|
|
40
|
+
*/
|
|
41
|
+
value: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the VariableDate interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfVariableDate(value: object): value is VariableDate;
|
|
47
|
+
export declare function VariableDateFromJSON(json: any): VariableDate;
|
|
48
|
+
export declare function VariableDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableDate;
|
|
49
|
+
export declare function VariableDateToJSON(json: any): VariableDate;
|
|
50
|
+
export declare function VariableDateToJSONTyped(value?: VariableDate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 VariableDate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVariableDate(value) {
|
|
18
|
+
if (!('max' in value) || value['max'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('min' in value) || value['min'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('step' in value) || value['step'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function VariableDateFromJSON(json) {
|
|
29
|
+
return VariableDateFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function VariableDateFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'max': json['max'],
|
|
37
|
+
'min': json['min'],
|
|
38
|
+
'step': json['step'],
|
|
39
|
+
'value': json['value'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function VariableDateToJSON(json) {
|
|
43
|
+
return VariableDateToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function VariableDateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'max': value['max'],
|
|
51
|
+
'min': value['min'],
|
|
52
|
+
'step': value['step'],
|
|
53
|
+
'value': value['value'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -292,6 +292,28 @@ export * from './ScenarioListEntry';
|
|
|
292
292
|
export * from './ScenarioListRes';
|
|
293
293
|
export * from './ScenarioNotFoundDetail';
|
|
294
294
|
export * from './ScenarioPatch';
|
|
295
|
+
export * from './ScriptAuditEntry';
|
|
296
|
+
export * from './ScriptAuditResBody';
|
|
297
|
+
export * from './ScriptDetail';
|
|
298
|
+
export * from './ScriptExport';
|
|
299
|
+
export * from './ScriptExportResBody';
|
|
300
|
+
export * from './ScriptExportRun';
|
|
301
|
+
export * from './ScriptKey';
|
|
302
|
+
export * from './ScriptListResBody';
|
|
303
|
+
export * from './ScriptLogLine';
|
|
304
|
+
export * from './ScriptPatchReqBody';
|
|
305
|
+
export * from './ScriptPostReqBody';
|
|
306
|
+
export * from './ScriptRun';
|
|
307
|
+
export * from './ScriptRunLogsResBody';
|
|
308
|
+
export * from './ScriptRunsResBody';
|
|
309
|
+
export * from './ScriptRuntime';
|
|
310
|
+
export * from './ScriptSchedule';
|
|
311
|
+
export * from './ScriptSchedulePreviewReqBody';
|
|
312
|
+
export * from './ScriptSchedulePreviewResBody';
|
|
313
|
+
export * from './ScriptSecretsReqBody';
|
|
314
|
+
export * from './ScriptSecretsResBody';
|
|
315
|
+
export * from './ScriptSummary';
|
|
316
|
+
export * from './ScriptWebhookResBody';
|
|
295
317
|
export * from './SendPasswordPutReqBody';
|
|
296
318
|
export * from './SerializedEvent';
|
|
297
319
|
export * from './SingleSelectChangelogData';
|
|
@@ -330,6 +352,8 @@ export * from './VariableDataOneOf3';
|
|
|
330
352
|
export * from './VariableDataOneOf4';
|
|
331
353
|
export * from './VariableDataOneOf5';
|
|
332
354
|
export * from './VariableDataOneOf6';
|
|
355
|
+
export * from './VariableDataOneOf7';
|
|
356
|
+
export * from './VariableDate';
|
|
333
357
|
export * from './VariableListRes';
|
|
334
358
|
export * from './VariableNotFoundDetail';
|
|
335
359
|
export * from './VariableNumber';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -294,6 +294,28 @@ export * from './ScenarioListEntry';
|
|
|
294
294
|
export * from './ScenarioListRes';
|
|
295
295
|
export * from './ScenarioNotFoundDetail';
|
|
296
296
|
export * from './ScenarioPatch';
|
|
297
|
+
export * from './ScriptAuditEntry';
|
|
298
|
+
export * from './ScriptAuditResBody';
|
|
299
|
+
export * from './ScriptDetail';
|
|
300
|
+
export * from './ScriptExport';
|
|
301
|
+
export * from './ScriptExportResBody';
|
|
302
|
+
export * from './ScriptExportRun';
|
|
303
|
+
export * from './ScriptKey';
|
|
304
|
+
export * from './ScriptListResBody';
|
|
305
|
+
export * from './ScriptLogLine';
|
|
306
|
+
export * from './ScriptPatchReqBody';
|
|
307
|
+
export * from './ScriptPostReqBody';
|
|
308
|
+
export * from './ScriptRun';
|
|
309
|
+
export * from './ScriptRunLogsResBody';
|
|
310
|
+
export * from './ScriptRunsResBody';
|
|
311
|
+
export * from './ScriptRuntime';
|
|
312
|
+
export * from './ScriptSchedule';
|
|
313
|
+
export * from './ScriptSchedulePreviewReqBody';
|
|
314
|
+
export * from './ScriptSchedulePreviewResBody';
|
|
315
|
+
export * from './ScriptSecretsReqBody';
|
|
316
|
+
export * from './ScriptSecretsResBody';
|
|
317
|
+
export * from './ScriptSummary';
|
|
318
|
+
export * from './ScriptWebhookResBody';
|
|
297
319
|
export * from './SendPasswordPutReqBody';
|
|
298
320
|
export * from './SerializedEvent';
|
|
299
321
|
export * from './SingleSelectChangelogData';
|
|
@@ -332,6 +354,8 @@ export * from './VariableDataOneOf3';
|
|
|
332
354
|
export * from './VariableDataOneOf4';
|
|
333
355
|
export * from './VariableDataOneOf5';
|
|
334
356
|
export * from './VariableDataOneOf6';
|
|
357
|
+
export * from './VariableDataOneOf7';
|
|
358
|
+
export * from './VariableDate';
|
|
335
359
|
export * from './VariableListRes';
|
|
336
360
|
export * from './VariableNotFoundDetail';
|
|
337
361
|
export * from './VariableNumber';
|
package/dist/models/APIKey.d.ts
CHANGED
|
@@ -63,6 +63,12 @@ export interface APIKey {
|
|
|
63
63
|
* @memberof APIKey
|
|
64
64
|
*/
|
|
65
65
|
projectId: number;
|
|
66
|
+
/**
|
|
67
|
+
* Set when the key is created and rotated by a script; it can't be revoked here.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof APIKey
|
|
70
|
+
*/
|
|
71
|
+
scriptId?: string;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* Check if a given object implements the APIKey interface.
|
package/dist/models/APIKey.js
CHANGED
|
@@ -54,6 +54,7 @@ function APIKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'name': json['name'],
|
|
55
55
|
'prefix': json['prefix'],
|
|
56
56
|
'projectId': json['projectId'],
|
|
57
|
+
'scriptId': json['scriptId'] == null ? undefined : json['scriptId'],
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
function APIKeyToJSON(json) {
|
|
@@ -72,5 +73,6 @@ function APIKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
73
|
'name': value['name'],
|
|
73
74
|
'prefix': value['prefix'],
|
|
74
75
|
'projectId': value['projectId'],
|
|
76
|
+
'scriptId': value['scriptId'],
|
|
75
77
|
};
|
|
76
78
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 ScriptAuditEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface ScriptAuditEntry {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScriptAuditEntry
|
|
22
|
+
*/
|
|
23
|
+
actorType: ScriptAuditEntryActorTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* What changed, for example created, updated, api-key-rotated or needs-reauthorisation.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScriptAuditEntry
|
|
28
|
+
*/
|
|
29
|
+
kind: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof ScriptAuditEntry
|
|
34
|
+
*/
|
|
35
|
+
modifiedAt: Date;
|
|
36
|
+
/**
|
|
37
|
+
* User who made the change, when actorType is user.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ScriptAuditEntry
|
|
40
|
+
*/
|
|
41
|
+
modifiedBy?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: string; }}
|
|
45
|
+
* @memberof ScriptAuditEntry
|
|
46
|
+
*/
|
|
47
|
+
params?: {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const ScriptAuditEntryActorTypeEnum: {
|
|
55
|
+
readonly User: "user";
|
|
56
|
+
readonly System: "system";
|
|
57
|
+
readonly Anonymous: "anonymous";
|
|
58
|
+
};
|
|
59
|
+
export type ScriptAuditEntryActorTypeEnum = typeof ScriptAuditEntryActorTypeEnum[keyof typeof ScriptAuditEntryActorTypeEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ScriptAuditEntry interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfScriptAuditEntry(value: object): value is ScriptAuditEntry;
|
|
64
|
+
export declare function ScriptAuditEntryFromJSON(json: any): ScriptAuditEntry;
|
|
65
|
+
export declare function ScriptAuditEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptAuditEntry;
|
|
66
|
+
export declare function ScriptAuditEntryToJSON(json: any): ScriptAuditEntry;
|
|
67
|
+
export declare function ScriptAuditEntryToJSONTyped(value?: ScriptAuditEntry | 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.ScriptAuditEntryActorTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfScriptAuditEntry = instanceOfScriptAuditEntry;
|
|
18
|
+
exports.ScriptAuditEntryFromJSON = ScriptAuditEntryFromJSON;
|
|
19
|
+
exports.ScriptAuditEntryFromJSONTyped = ScriptAuditEntryFromJSONTyped;
|
|
20
|
+
exports.ScriptAuditEntryToJSON = ScriptAuditEntryToJSON;
|
|
21
|
+
exports.ScriptAuditEntryToJSONTyped = ScriptAuditEntryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ScriptAuditEntryActorTypeEnum = {
|
|
26
|
+
User: 'user',
|
|
27
|
+
System: 'system',
|
|
28
|
+
Anonymous: 'anonymous'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ScriptAuditEntry interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfScriptAuditEntry(value) {
|
|
34
|
+
if (!('actorType' in value) || value['actorType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('modifiedAt' in value) || value['modifiedAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ScriptAuditEntryFromJSON(json) {
|
|
43
|
+
return ScriptAuditEntryFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ScriptAuditEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'actorType': json['actorType'],
|
|
51
|
+
'kind': json['kind'],
|
|
52
|
+
'modifiedAt': (new Date(json['modifiedAt'])),
|
|
53
|
+
'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
|
|
54
|
+
'params': json['params'] == null ? undefined : json['params'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function ScriptAuditEntryToJSON(json) {
|
|
58
|
+
return ScriptAuditEntryToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function ScriptAuditEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'actorType': value['actorType'],
|
|
66
|
+
'kind': value['kind'],
|
|
67
|
+
'modifiedAt': ((value['modifiedAt']).toISOString()),
|
|
68
|
+
'modifiedBy': value['modifiedBy'],
|
|
69
|
+
'params': value['params'],
|
|
70
|
+
};
|
|
71
|
+
}
|