@spaciv/sdk 0.1.2 → 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 +2 -0
- package/README.md +2 -2
- 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 +2 -0
- package/dist/esm/models/index.js +2 -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 +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- 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 +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -388,6 +388,8 @@ src/models/VariableDataOneOf3.ts
|
|
|
388
388
|
src/models/VariableDataOneOf4.ts
|
|
389
389
|
src/models/VariableDataOneOf5.ts
|
|
390
390
|
src/models/VariableDataOneOf6.ts
|
|
391
|
+
src/models/VariableDataOneOf7.ts
|
|
392
|
+
src/models/VariableDate.ts
|
|
391
393
|
src/models/VariableListRes.ts
|
|
392
394
|
src/models/VariableNotFoundDetail.ts
|
|
393
395
|
src/models/VariableNumber.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @spaciv/sdk@0.1.
|
|
1
|
+
## @spaciv/sdk@0.1.3
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @spaciv/sdk@0.1.
|
|
39
|
+
npm install @spaciv/sdk@0.1.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -17,12 +17,13 @@ import type { VariableDataOneOf3 } from './VariableDataOneOf3';
|
|
|
17
17
|
import type { VariableDataOneOf4 } from './VariableDataOneOf4';
|
|
18
18
|
import type { VariableDataOneOf5 } from './VariableDataOneOf5';
|
|
19
19
|
import type { VariableDataOneOf6 } from './VariableDataOneOf6';
|
|
20
|
+
import type { VariableDataOneOf7 } from './VariableDataOneOf7';
|
|
20
21
|
/**
|
|
21
22
|
* @type VariableData
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
25
|
-
export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6;
|
|
26
|
+
export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6 | VariableDataOneOf7;
|
|
26
27
|
export declare function VariableDataFromJSON(json: any): VariableData;
|
|
27
28
|
export declare function VariableDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableData;
|
|
28
29
|
export declare function VariableDataToJSON(json: any): any;
|
|
@@ -19,6 +19,7 @@ import { instanceOfVariableDataOneOf3, VariableDataOneOf3FromJSONTyped, Variable
|
|
|
19
19
|
import { instanceOfVariableDataOneOf4, VariableDataOneOf4FromJSONTyped, VariableDataOneOf4ToJSON, } from './VariableDataOneOf4';
|
|
20
20
|
import { instanceOfVariableDataOneOf5, VariableDataOneOf5FromJSONTyped, VariableDataOneOf5ToJSON, } from './VariableDataOneOf5';
|
|
21
21
|
import { instanceOfVariableDataOneOf6, VariableDataOneOf6FromJSONTyped, VariableDataOneOf6ToJSON, } from './VariableDataOneOf6';
|
|
22
|
+
import { instanceOfVariableDataOneOf7, VariableDataOneOf7FromJSONTyped, VariableDataOneOf7ToJSON, } from './VariableDataOneOf7';
|
|
22
23
|
export function VariableDataFromJSON(json) {
|
|
23
24
|
return VariableDataFromJSONTyped(json, false);
|
|
24
25
|
}
|
|
@@ -53,6 +54,9 @@ export function VariableDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
if (instanceOfVariableDataOneOf6(json)) {
|
|
54
55
|
return VariableDataOneOf6FromJSONTyped(json, true);
|
|
55
56
|
}
|
|
57
|
+
if (instanceOfVariableDataOneOf7(json)) {
|
|
58
|
+
return VariableDataOneOf7FromJSONTyped(json, true);
|
|
59
|
+
}
|
|
56
60
|
return {};
|
|
57
61
|
}
|
|
58
62
|
export function VariableDataToJSON(json) {
|
|
@@ -89,5 +93,8 @@ export function VariableDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
93
|
if (instanceOfVariableDataOneOf6(value)) {
|
|
90
94
|
return VariableDataOneOf6ToJSON(value);
|
|
91
95
|
}
|
|
96
|
+
if (instanceOfVariableDataOneOf7(value)) {
|
|
97
|
+
return VariableDataOneOf7ToJSON(value);
|
|
98
|
+
}
|
|
92
99
|
return {};
|
|
93
100
|
}
|
|
@@ -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 { VariableDate } from './VariableDate';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { VariableProperty } from './VariableProperty';
|
|
|
18
18
|
export interface VariableDataOneOf2 {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {VariableDate}
|
|
22
22
|
* @memberof VariableDataOneOf2
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
dateRange: VariableDate;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the VariableDataOneOf2 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 { VariableDateFromJSON, VariableDateToJSON, } from './VariableDate';
|
|
15
15
|
/**
|
|
16
16
|
* Check if a given object implements the VariableDataOneOf2 interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfVariableDataOneOf2(value) {
|
|
19
|
-
if (!('
|
|
19
|
+
if (!('dateRange' in value) || value['dateRange'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ export function VariableDataOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return json;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
|
-
'
|
|
31
|
+
'dateRange': VariableDateFromJSON(json['dateRange']),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export function VariableDataOneOf2ToJSON(json) {
|
|
@@ -39,6 +39,6 @@ export function VariableDataOneOf2ToJSONTyped(value, ignoreDiscriminator = false
|
|
|
39
39
|
return value;
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
|
-
'
|
|
42
|
+
'dateRange': VariableDateToJSON(value['dateRange']),
|
|
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 { 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
|
+
}
|
|
@@ -352,6 +352,8 @@ export * from './VariableDataOneOf3';
|
|
|
352
352
|
export * from './VariableDataOneOf4';
|
|
353
353
|
export * from './VariableDataOneOf5';
|
|
354
354
|
export * from './VariableDataOneOf6';
|
|
355
|
+
export * from './VariableDataOneOf7';
|
|
356
|
+
export * from './VariableDate';
|
|
355
357
|
export * from './VariableListRes';
|
|
356
358
|
export * from './VariableNotFoundDetail';
|
|
357
359
|
export * from './VariableNumber';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -354,6 +354,8 @@ export * from './VariableDataOneOf3';
|
|
|
354
354
|
export * from './VariableDataOneOf4';
|
|
355
355
|
export * from './VariableDataOneOf5';
|
|
356
356
|
export * from './VariableDataOneOf6';
|
|
357
|
+
export * from './VariableDataOneOf7';
|
|
358
|
+
export * from './VariableDate';
|
|
357
359
|
export * from './VariableListRes';
|
|
358
360
|
export * from './VariableNotFoundDetail';
|
|
359
361
|
export * from './VariableNumber';
|
|
@@ -17,12 +17,13 @@ import type { VariableDataOneOf3 } from './VariableDataOneOf3';
|
|
|
17
17
|
import type { VariableDataOneOf4 } from './VariableDataOneOf4';
|
|
18
18
|
import type { VariableDataOneOf5 } from './VariableDataOneOf5';
|
|
19
19
|
import type { VariableDataOneOf6 } from './VariableDataOneOf6';
|
|
20
|
+
import type { VariableDataOneOf7 } from './VariableDataOneOf7';
|
|
20
21
|
/**
|
|
21
22
|
* @type VariableData
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
25
|
-
export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6;
|
|
26
|
+
export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6 | VariableDataOneOf7;
|
|
26
27
|
export declare function VariableDataFromJSON(json: any): VariableData;
|
|
27
28
|
export declare function VariableDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableData;
|
|
28
29
|
export declare function VariableDataToJSON(json: any): any;
|
|
@@ -25,6 +25,7 @@ const VariableDataOneOf3_1 = require("./VariableDataOneOf3");
|
|
|
25
25
|
const VariableDataOneOf4_1 = require("./VariableDataOneOf4");
|
|
26
26
|
const VariableDataOneOf5_1 = require("./VariableDataOneOf5");
|
|
27
27
|
const VariableDataOneOf6_1 = require("./VariableDataOneOf6");
|
|
28
|
+
const VariableDataOneOf7_1 = require("./VariableDataOneOf7");
|
|
28
29
|
function VariableDataFromJSON(json) {
|
|
29
30
|
return VariableDataFromJSONTyped(json, false);
|
|
30
31
|
}
|
|
@@ -59,6 +60,9 @@ function VariableDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
if ((0, VariableDataOneOf6_1.instanceOfVariableDataOneOf6)(json)) {
|
|
60
61
|
return (0, VariableDataOneOf6_1.VariableDataOneOf6FromJSONTyped)(json, true);
|
|
61
62
|
}
|
|
63
|
+
if ((0, VariableDataOneOf7_1.instanceOfVariableDataOneOf7)(json)) {
|
|
64
|
+
return (0, VariableDataOneOf7_1.VariableDataOneOf7FromJSONTyped)(json, true);
|
|
65
|
+
}
|
|
62
66
|
return {};
|
|
63
67
|
}
|
|
64
68
|
function VariableDataToJSON(json) {
|
|
@@ -95,5 +99,8 @@ function VariableDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
99
|
if ((0, VariableDataOneOf6_1.instanceOfVariableDataOneOf6)(value)) {
|
|
96
100
|
return (0, VariableDataOneOf6_1.VariableDataOneOf6ToJSON)(value);
|
|
97
101
|
}
|
|
102
|
+
if ((0, VariableDataOneOf7_1.instanceOfVariableDataOneOf7)(value)) {
|
|
103
|
+
return (0, VariableDataOneOf7_1.VariableDataOneOf7ToJSON)(value);
|
|
104
|
+
}
|
|
98
105
|
return {};
|
|
99
106
|
}
|
|
@@ -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 { VariableDate } from './VariableDate';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { VariableProperty } from './VariableProperty';
|
|
|
18
18
|
export interface VariableDataOneOf2 {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {VariableDate}
|
|
22
22
|
* @memberof VariableDataOneOf2
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
dateRange: VariableDate;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the VariableDataOneOf2 interface.
|
|
@@ -18,12 +18,12 @@ exports.VariableDataOneOf2FromJSON = VariableDataOneOf2FromJSON;
|
|
|
18
18
|
exports.VariableDataOneOf2FromJSONTyped = VariableDataOneOf2FromJSONTyped;
|
|
19
19
|
exports.VariableDataOneOf2ToJSON = VariableDataOneOf2ToJSON;
|
|
20
20
|
exports.VariableDataOneOf2ToJSONTyped = VariableDataOneOf2ToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const VariableDate_1 = require("./VariableDate");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the VariableDataOneOf2 interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfVariableDataOneOf2(value) {
|
|
26
|
-
if (!('
|
|
26
|
+
if (!('dateRange' in value) || value['dateRange'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
@@ -35,7 +35,7 @@ function VariableDataOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
|
-
'
|
|
38
|
+
'dateRange': (0, VariableDate_1.VariableDateFromJSON)(json['dateRange']),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
function VariableDataOneOf2ToJSON(json) {
|
|
@@ -46,6 +46,6 @@ function VariableDataOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
49
|
+
'dateRange': (0, VariableDate_1.VariableDateToJSON)(value['dateRange']),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -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.
|