@spaciv/sdk 0.1.2 → 0.1.4
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/apis/AnalysisApi.d.ts +4 -4
- package/dist/apis/AnalysisApi.js +2 -2
- package/dist/apis/ProjectsApi.d.ts +4 -4
- package/dist/apis/ProjectsApi.js +2 -2
- package/dist/apis/VariablesApi.d.ts +8 -8
- package/dist/apis/VariablesApi.js +4 -4
- package/dist/esm/apis/AnalysisApi.d.ts +4 -4
- package/dist/esm/apis/AnalysisApi.js +2 -2
- package/dist/esm/apis/ProjectsApi.d.ts +4 -4
- package/dist/esm/apis/ProjectsApi.js +2 -2
- package/dist/esm/apis/VariablesApi.d.ts +8 -8
- package/dist/esm/apis/VariablesApi.js +4 -4
- 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/apis/AnalysisApi.ts +4 -4
- package/src/apis/ProjectsApi.ts +4 -4
- package/src/apis/VariablesApi.ts +8 -8
- 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
|
@@ -18,11 +18,12 @@ exports.VariableDataOneOf5FromJSON = VariableDataOneOf5FromJSON;
|
|
|
18
18
|
exports.VariableDataOneOf5FromJSONTyped = VariableDataOneOf5FromJSONTyped;
|
|
19
19
|
exports.VariableDataOneOf5ToJSON = VariableDataOneOf5ToJSON;
|
|
20
20
|
exports.VariableDataOneOf5ToJSONTyped = VariableDataOneOf5ToJSONTyped;
|
|
21
|
+
const VariableObject_1 = require("./VariableObject");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the VariableDataOneOf5 interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfVariableDataOneOf5(value) {
|
|
25
|
-
if (!('
|
|
26
|
+
if (!('object' in value) || value['object'] === undefined)
|
|
26
27
|
return false;
|
|
27
28
|
return true;
|
|
28
29
|
}
|
|
@@ -34,7 +35,7 @@ function VariableDataOneOf5FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
|
-
'
|
|
38
|
+
'object': (0, VariableObject_1.VariableObjectFromJSON)(json['object']),
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function VariableDataOneOf5ToJSON(json) {
|
|
@@ -45,6 +46,6 @@ function VariableDataOneOf5ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
return value;
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
|
-
'
|
|
49
|
+
'object': (0, VariableObject_1.VariableObjectToJSON)(value['object']),
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -22,7 +22,7 @@ exports.VariableDataOneOf6ToJSONTyped = VariableDataOneOf6ToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the VariableDataOneOf6 interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfVariableDataOneOf6(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('property' in value) || value['property'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
@@ -34,7 +34,7 @@ function VariableDataOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'property': json['property'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function VariableDataOneOf6ToJSON(json) {
|
|
@@ -45,6 +45,6 @@ function VariableDataOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'
|
|
48
|
+
'property': value['property'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -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,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfVariableDataOneOf7 = instanceOfVariableDataOneOf7;
|
|
17
|
+
exports.VariableDataOneOf7FromJSON = VariableDataOneOf7FromJSON;
|
|
18
|
+
exports.VariableDataOneOf7FromJSONTyped = VariableDataOneOf7FromJSONTyped;
|
|
19
|
+
exports.VariableDataOneOf7ToJSON = VariableDataOneOf7ToJSON;
|
|
20
|
+
exports.VariableDataOneOf7ToJSONTyped = VariableDataOneOf7ToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VariableDataOneOf7 interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVariableDataOneOf7(value) {
|
|
25
|
+
if (!('scenario' in value) || value['scenario'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function VariableDataOneOf7FromJSON(json) {
|
|
30
|
+
return VariableDataOneOf7FromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function VariableDataOneOf7FromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'scenario': json['scenario'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function VariableDataOneOf7ToJSON(json) {
|
|
41
|
+
return VariableDataOneOf7ToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function VariableDataOneOf7ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'scenario': value['scenario'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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,62 @@
|
|
|
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.instanceOfVariableDate = instanceOfVariableDate;
|
|
17
|
+
exports.VariableDateFromJSON = VariableDateFromJSON;
|
|
18
|
+
exports.VariableDateFromJSONTyped = VariableDateFromJSONTyped;
|
|
19
|
+
exports.VariableDateToJSON = VariableDateToJSON;
|
|
20
|
+
exports.VariableDateToJSONTyped = VariableDateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VariableDate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVariableDate(value) {
|
|
25
|
+
if (!('max' in value) || value['max'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('min' in value) || value['min'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('step' in value) || value['step'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function VariableDateFromJSON(json) {
|
|
36
|
+
return VariableDateFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function VariableDateFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'max': json['max'],
|
|
44
|
+
'min': json['min'],
|
|
45
|
+
'step': json['step'],
|
|
46
|
+
'value': json['value'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function VariableDateToJSON(json) {
|
|
50
|
+
return VariableDateToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function VariableDateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'max': value['max'],
|
|
58
|
+
'min': value['min'],
|
|
59
|
+
'step': value['step'],
|
|
60
|
+
'value': value['value'],
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -370,6 +370,8 @@ __exportStar(require("./VariableDataOneOf3"), exports);
|
|
|
370
370
|
__exportStar(require("./VariableDataOneOf4"), exports);
|
|
371
371
|
__exportStar(require("./VariableDataOneOf5"), exports);
|
|
372
372
|
__exportStar(require("./VariableDataOneOf6"), exports);
|
|
373
|
+
__exportStar(require("./VariableDataOneOf7"), exports);
|
|
374
|
+
__exportStar(require("./VariableDate"), exports);
|
|
373
375
|
__exportStar(require("./VariableListRes"), exports);
|
|
374
376
|
__exportStar(require("./VariableNotFoundDetail"), exports);
|
|
375
377
|
__exportStar(require("./VariableNumber"), exports);
|
package/package.json
CHANGED
package/src/apis/AnalysisApi.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface AnalysisApiCreateAnalyseRequest {
|
|
|
43
43
|
*/
|
|
44
44
|
export interface AnalysisApiInterface {
|
|
45
45
|
/**
|
|
46
|
-
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. Requires the *View ideal space* permission.
|
|
46
|
+
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
47
47
|
* @summary Run analysis
|
|
48
48
|
* @param {CalcBody} [calcBody]
|
|
49
49
|
* @param {*} [options] Override http request option.
|
|
@@ -53,7 +53,7 @@ export interface AnalysisApiInterface {
|
|
|
53
53
|
createAnalyseRaw(requestParameters: AnalysisApiCreateAnalyseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalcRes>>;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. Requires the *View ideal space* permission.
|
|
56
|
+
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
57
57
|
* Run analysis
|
|
58
58
|
*/
|
|
59
59
|
createAnalyse(requestParameters: AnalysisApiCreateAnalyseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalcRes>;
|
|
@@ -66,7 +66,7 @@ export interface AnalysisApiInterface {
|
|
|
66
66
|
export class AnalysisApi extends runtime.BaseAPI implements AnalysisApiInterface {
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. Requires the *View ideal space* permission.
|
|
69
|
+
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
70
70
|
* Run analysis
|
|
71
71
|
*/
|
|
72
72
|
async createAnalyseRaw(requestParameters: AnalysisApiCreateAnalyseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalcRes>> {
|
|
@@ -99,7 +99,7 @@ export class AnalysisApi extends runtime.BaseAPI implements AnalysisApiInterface
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. Requires the *View ideal space* permission.
|
|
102
|
+
* Runs the scenario through the calculation engine and returns the resulting model. A `400` response with a structured `kind` field indicates a configuration problem such as a missing scenario, property, or unmapped parameter — inspect the `kind` and the accompanying detail object to identify what needs fixing. A `variableOverrides` value outside the variable\'s range, step or `options` is rejected with `400` and `kind` `variable_type_mismatch`; `options` sent inside an override are ignored. Requires the *View ideal space* permission.
|
|
103
103
|
* Run analysis
|
|
104
104
|
*/
|
|
105
105
|
async createAnalyse(requestParameters: AnalysisApiCreateAnalyseRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalcRes> {
|
package/src/apis/ProjectsApi.ts
CHANGED
|
@@ -168,7 +168,7 @@ export interface ProjectsApiInterface {
|
|
|
168
168
|
list(requestParameters: ProjectsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectListRes>;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type and
|
|
171
|
+
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type, range and `options` come from the account definition; such an override must not set `options` itself and must choose one of the listed values. Other variable IDs must not contain `:`. Requires the *Manage projects* permission.
|
|
172
172
|
* @summary Update a project
|
|
173
173
|
* @param {ProjectPatchBody} [projectPatchBody]
|
|
174
174
|
* @param {*} [options] Override http request option.
|
|
@@ -178,7 +178,7 @@ export interface ProjectsApiInterface {
|
|
|
178
178
|
updateRaw(requestParameters: ProjectsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type and
|
|
181
|
+
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type, range and `options` come from the account definition; such an override must not set `options` itself and must choose one of the listed values. Other variable IDs must not contain `:`. Requires the *Manage projects* permission.
|
|
182
182
|
* Update a project
|
|
183
183
|
*/
|
|
184
184
|
update(requestParameters: ProjectsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -472,7 +472,7 @@ export class ProjectsApi extends runtime.BaseAPI implements ProjectsApiInterface
|
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
/**
|
|
475
|
-
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type and
|
|
475
|
+
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type, range and `options` come from the account definition; such an override must not set `options` itself and must choose one of the listed values. Other variable IDs must not contain `:`. Requires the *Manage projects* permission.
|
|
476
476
|
* Update a project
|
|
477
477
|
*/
|
|
478
478
|
async updateRaw(requestParameters: ProjectsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -505,7 +505,7 @@ export class ProjectsApi extends runtime.BaseAPI implements ProjectsApiInterface
|
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
|
-
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type and
|
|
508
|
+
* Updates the name, description, default filters, or variables of the current project. Only fields present in the request body are changed; set `keepFilters` to preserve filters when `filters` is sent only for schema compatibility. Returns `404` if the project does not exist, and `409` if it keeps changing concurrently; retry the request. Variables keyed `account:<id>` override the value of that account variable for this project; their type, range and `options` come from the account definition; such an override must not set `options` itself and must choose one of the listed values. Other variable IDs must not contain `:`. Requires the *Manage projects* permission.
|
|
509
509
|
* Update a project
|
|
510
510
|
*/
|
|
511
511
|
async update(requestParameters: ProjectsApiUpdateRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
package/src/apis/VariablesApi.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface VariablesApiUpdateRequest {
|
|
|
66
66
|
*/
|
|
67
67
|
export interface VariablesApiInterface {
|
|
68
68
|
/**
|
|
69
|
-
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Requires the *Manage my account* permission.
|
|
69
|
+
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Option variables may restrict their values with `options`; the value must be one of them. Requires the *Manage my account* permission.
|
|
70
70
|
* @summary Create an account variable
|
|
71
71
|
* @param {VariableCreate} [variableCreate]
|
|
72
72
|
* @param {*} [options] Override http request option.
|
|
@@ -76,7 +76,7 @@ export interface VariablesApiInterface {
|
|
|
76
76
|
createRaw(requestParameters: VariablesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Requires the *Manage my account* permission.
|
|
79
|
+
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Option variables may restrict their values with `options`; the value must be one of them. Requires the *Manage my account* permission.
|
|
80
80
|
* Create an account variable
|
|
81
81
|
*/
|
|
82
82
|
create(requestParameters: VariablesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
@@ -145,7 +145,7 @@ export interface VariablesApiInterface {
|
|
|
145
145
|
listReferences(requestParameters: VariablesApiListReferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReferencesRes>;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Requires the *Manage my account* permission.
|
|
148
|
+
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Narrowing `options` so that an existing project override is no longer listed is rejected the same way. Sending `data` replaces the variable\'s `options` too. Requires the *Manage my account* permission.
|
|
149
149
|
* @summary Update an account variable
|
|
150
150
|
* @param {string} id Account variable ID, either qualified (account:<id>) or bare.
|
|
151
151
|
* @param {VariablePatch} [variablePatch]
|
|
@@ -156,7 +156,7 @@ export interface VariablesApiInterface {
|
|
|
156
156
|
updateRaw(requestParameters: VariablesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Requires the *Manage my account* permission.
|
|
159
|
+
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Narrowing `options` so that an existing project override is no longer listed is rejected the same way. Sending `data` replaces the variable\'s `options` too. Requires the *Manage my account* permission.
|
|
160
160
|
* Update an account variable
|
|
161
161
|
*/
|
|
162
162
|
update(requestParameters: VariablesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -169,7 +169,7 @@ export interface VariablesApiInterface {
|
|
|
169
169
|
export class VariablesApi extends runtime.BaseAPI implements VariablesApiInterface {
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Requires the *Manage my account* permission.
|
|
172
|
+
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Option variables may restrict their values with `options`; the value must be one of them. Requires the *Manage my account* permission.
|
|
173
173
|
* Create an account variable
|
|
174
174
|
*/
|
|
175
175
|
async createRaw(requestParameters: VariablesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
@@ -206,7 +206,7 @@ export class VariablesApi extends runtime.BaseAPI implements VariablesApiInterfa
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Requires the *Manage my account* permission.
|
|
209
|
+
* Creates an account-level variable and returns its qualified `account:<id>` ID. `name` and `data` are required; number variables must satisfy their own range and step. Option variables may restrict their values with `options`; the value must be one of them. Requires the *Manage my account* permission.
|
|
210
210
|
* Create an account variable
|
|
211
211
|
*/
|
|
212
212
|
async create(requestParameters: VariablesApiCreateRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
@@ -394,7 +394,7 @@ export class VariablesApi extends runtime.BaseAPI implements VariablesApiInterfa
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
|
-
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Requires the *Manage my account* permission.
|
|
397
|
+
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Narrowing `options` so that an existing project override is no longer listed is rejected the same way. Sending `data` replaces the variable\'s `options` too. Requires the *Manage my account* permission.
|
|
398
398
|
* Update an account variable
|
|
399
399
|
*/
|
|
400
400
|
async updateRaw(requestParameters: VariablesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -435,7 +435,7 @@ export class VariablesApi extends runtime.BaseAPI implements VariablesApiInterfa
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
|
-
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Requires the *Manage my account* permission.
|
|
438
|
+
* Updates the name and/or default value of an account-level variable; the new default applies to every project that does not override it. Setting `delete` behaves like `DELETE /v1/variables/{id}`. Changing the variable\'s type, or deleting it, is rejected with `409` while it is referenced. Changing its data so that an existing project override no longer validates (for example, a narrower number `min`/`max` or a different `step`) is also rejected with `409`, listing the projects with invalid overrides. In both cases the error details list the references when the caller has the *View projects* permission, otherwise only their count. Narrowing `options` so that an existing project override is no longer listed is rejected the same way. Sending `data` replaces the variable\'s `options` too. Requires the *Manage my account* permission.
|
|
439
439
|
* Update an account variable
|
|
440
440
|
*/
|
|
441
441
|
async update(requestParameters: VariablesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
@@ -68,13 +68,20 @@ import {
|
|
|
68
68
|
VariableDataOneOf6FromJSONTyped,
|
|
69
69
|
VariableDataOneOf6ToJSON,
|
|
70
70
|
} from './VariableDataOneOf6';
|
|
71
|
+
import type { VariableDataOneOf7 } from './VariableDataOneOf7';
|
|
72
|
+
import {
|
|
73
|
+
instanceOfVariableDataOneOf7,
|
|
74
|
+
VariableDataOneOf7FromJSON,
|
|
75
|
+
VariableDataOneOf7FromJSONTyped,
|
|
76
|
+
VariableDataOneOf7ToJSON,
|
|
77
|
+
} from './VariableDataOneOf7';
|
|
71
78
|
|
|
72
79
|
/**
|
|
73
80
|
* @type VariableData
|
|
74
81
|
*
|
|
75
82
|
* @export
|
|
76
83
|
*/
|
|
77
|
-
export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6;
|
|
84
|
+
export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6 | VariableDataOneOf7;
|
|
78
85
|
|
|
79
86
|
export function VariableDataFromJSON(json: any): VariableData {
|
|
80
87
|
return VariableDataFromJSONTyped(json, false);
|
|
@@ -111,6 +118,9 @@ export function VariableDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
111
118
|
if (instanceOfVariableDataOneOf6(json)) {
|
|
112
119
|
return VariableDataOneOf6FromJSONTyped(json, true);
|
|
113
120
|
}
|
|
121
|
+
if (instanceOfVariableDataOneOf7(json)) {
|
|
122
|
+
return VariableDataOneOf7FromJSONTyped(json, true);
|
|
123
|
+
}
|
|
114
124
|
return {} as any;
|
|
115
125
|
}
|
|
116
126
|
|
|
@@ -149,6 +159,9 @@ export function VariableDataToJSONTyped(value?: VariableData | null, ignoreDiscr
|
|
|
149
159
|
if (instanceOfVariableDataOneOf6(value)) {
|
|
150
160
|
return VariableDataOneOf6ToJSON(value as VariableDataOneOf6);
|
|
151
161
|
}
|
|
162
|
+
if (instanceOfVariableDataOneOf7(value)) {
|
|
163
|
+
return VariableDataOneOf7ToJSON(value as VariableDataOneOf7);
|
|
164
|
+
}
|
|
152
165
|
return {};
|
|
153
166
|
}
|
|
154
167
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { VariableDate } from './VariableDate';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
VariableDateFromJSON,
|
|
19
|
+
VariableDateFromJSONTyped,
|
|
20
|
+
VariableDateToJSON,
|
|
21
|
+
VariableDateToJSONTyped,
|
|
22
|
+
} from './VariableDate';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
export interface VariableDataOneOf2 {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {VariableDate}
|
|
33
33
|
* @memberof VariableDataOneOf2
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
dateRange: VariableDate;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the VariableDataOneOf2 interface.
|
|
40
40
|
*/
|
|
41
41
|
export function instanceOfVariableDataOneOf2(value: object): value is VariableDataOneOf2 {
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('dateRange' in value) || value['dateRange'] === undefined) return false;
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ export function VariableDataOneOf2FromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
|
|
56
|
-
'
|
|
56
|
+
'dateRange': VariableDateFromJSON(json['dateRange']),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -68,7 +68,7 @@ export function VariableDataOneOf2ToJSONTyped(value?: VariableDataOneOf2 | null,
|
|
|
68
68
|
|
|
69
69
|
return {
|
|
70
70
|
|
|
71
|
-
'
|
|
71
|
+
'dateRange': VariableDateToJSON(value['dateRange']),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { VariableProperty } from './VariableProperty';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
VariablePropertyFromJSON,
|
|
19
|
+
VariablePropertyFromJSONTyped,
|
|
20
|
+
VariablePropertyToJSON,
|
|
21
|
+
VariablePropertyToJSONTyped,
|
|
22
|
+
} from './VariableProperty';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
export interface VariableDataOneOf3 {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {VariableProperty}
|
|
33
33
|
* @memberof VariableDataOneOf3
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
node: VariableProperty;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the VariableDataOneOf3 interface.
|
|
40
40
|
*/
|
|
41
41
|
export function instanceOfVariableDataOneOf3(value: object): value is VariableDataOneOf3 {
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('node' in value) || value['node'] === undefined) return false;
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ export function VariableDataOneOf3FromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
|
|
56
|
-
'
|
|
56
|
+
'node': VariablePropertyFromJSON(json['node']),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -68,7 +68,7 @@ export function VariableDataOneOf3ToJSONTyped(value?: VariableDataOneOf3 | null,
|
|
|
68
68
|
|
|
69
69
|
return {
|
|
70
70
|
|
|
71
|
-
'
|
|
71
|
+
'node': VariablePropertyToJSON(value['node']),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|