@spaciv/sdk 0.1.21 → 0.1.23
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 +24 -1
- package/README.md +2 -2
- package/dist/apis/FilesApi.d.ts +28 -1
- package/dist/apis/FilesApi.js +40 -0
- package/dist/apis/LogicLayersApi.d.ts +279 -0
- package/dist/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +72 -62
- package/dist/apis/ObjectGroupsApi.d.ts +28 -1
- package/dist/apis/ObjectGroupsApi.js +40 -0
- package/dist/apis/PropertiesApi.d.ts +16 -16
- package/dist/apis/PropertiesApi.js +8 -8
- package/dist/apis/ScenariosApi.d.ts +4 -4
- package/dist/apis/ScenariosApi.js +2 -2
- package/dist/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/apis/TopDownModelsApi.js +2 -2
- package/dist/apis/VariablesApi.d.ts +4 -4
- package/dist/apis/VariablesApi.js +2 -2
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/esm/apis/FilesApi.d.ts +28 -1
- package/dist/esm/apis/FilesApi.js +41 -1
- package/dist/esm/apis/LogicLayersApi.d.ts +279 -0
- package/dist/esm/apis/{SpaceRulesetsApi.js → LogicLayersApi.js} +70 -60
- package/dist/esm/apis/ObjectGroupsApi.d.ts +28 -1
- package/dist/esm/apis/ObjectGroupsApi.js +41 -1
- package/dist/esm/apis/PropertiesApi.d.ts +16 -16
- package/dist/esm/apis/PropertiesApi.js +8 -8
- package/dist/esm/apis/ScenariosApi.d.ts +4 -4
- package/dist/esm/apis/ScenariosApi.js +2 -2
- package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
- package/dist/esm/apis/TopDownModelsApi.js +2 -2
- package/dist/esm/apis/VariablesApi.d.ts +4 -4
- package/dist/esm/apis/VariablesApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -1
- package/dist/esm/apis/index.js +1 -1
- package/dist/esm/models/AccountTextFilePostBody.d.ts +38 -0
- package/dist/esm/models/AccountTextFilePostBody.js +45 -0
- package/dist/esm/models/CalcCompare.d.ts +45 -0
- package/dist/esm/models/CalcCompare.js +52 -0
- package/dist/esm/models/CalcCondition.d.ts +46 -0
- package/dist/esm/models/CalcCondition.js +53 -0
- package/dist/esm/models/CalcHasNode.d.ts +44 -0
- package/dist/esm/models/CalcHasNode.js +51 -0
- package/dist/esm/models/CalcIsObject.d.ts +32 -0
- package/dist/esm/models/CalcIsObject.js +43 -0
- package/dist/esm/models/CalcRuleRef.d.ts +2 -1
- package/dist/esm/models/CalcRuleRef.js +7 -0
- package/dist/esm/models/CalcRuleRefOneOf2.d.ts +3 -2
- package/dist/esm/models/CalcRuleRefOneOf2.js +4 -3
- package/dist/esm/models/CalcRuleRefOneOf3.d.ts +2 -3
- package/dist/esm/models/CalcRuleRefOneOf3.js +3 -4
- package/dist/esm/models/CalcRuleRefOneOf4.d.ts +3 -3
- package/dist/esm/models/CalcRuleRefOneOf4.js +4 -4
- package/dist/esm/models/CalcRuleRefOneOf5.d.ts +3 -2
- package/dist/esm/models/CalcRuleRefOneOf5.js +4 -3
- package/dist/esm/models/CalcRuleRefOneOf6.d.ts +32 -0
- package/dist/esm/models/CalcRuleRefOneOf6.js +43 -0
- package/dist/esm/models/CalcTest.d.ts +24 -0
- package/dist/esm/models/CalcTest.js +58 -0
- package/dist/esm/models/CalcTestOneOf.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf.js +44 -0
- package/dist/esm/models/CalcTestOneOf1.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf1.js +44 -0
- package/dist/esm/models/CalcTestOneOf2.d.ts +33 -0
- package/dist/esm/models/CalcTestOneOf2.js +44 -0
- package/dist/esm/models/Group.d.ts +45 -0
- package/dist/esm/models/Group.js +52 -0
- package/dist/esm/models/LayerVariablesRes.d.ts +1 -1
- package/dist/esm/models/LogicAssignment.d.ts +23 -0
- package/dist/esm/models/LogicAssignment.js +51 -0
- package/dist/esm/models/LogicAssignmentOneOf.d.ts +32 -0
- package/dist/esm/models/LogicAssignmentOneOf.js +43 -0
- package/dist/esm/models/LogicAssignmentOneOf1.d.ts +32 -0
- package/dist/esm/models/LogicAssignmentOneOf1.js +43 -0
- package/dist/esm/models/LogicDemand.d.ts +40 -0
- package/dist/esm/models/LogicDemand.js +49 -0
- package/dist/esm/models/LogicLayerConfig.d.ts +39 -0
- package/dist/esm/models/LogicLayerConfig.js +48 -0
- package/dist/esm/models/LogicPer.d.ts +45 -0
- package/dist/esm/models/LogicPer.js +52 -0
- package/dist/esm/models/LogicRule.d.ts +66 -0
- package/dist/esm/models/LogicRule.js +67 -0
- package/dist/esm/models/LogicSupply.d.ts +48 -0
- package/dist/esm/models/LogicSupply.js +54 -0
- package/dist/esm/models/LogicSupplyWeight.d.ts +32 -0
- package/dist/esm/models/LogicSupplyWeight.js +43 -0
- package/dist/esm/models/MaybeVarInt.d.ts +2 -2
- package/dist/esm/models/MaybeVarInt.js +5 -5
- package/dist/esm/models/MaybeVarProp.d.ts +2 -2
- package/dist/esm/models/MaybeVarProp.js +5 -5
- package/dist/esm/models/MaybeVarStr.d.ts +2 -2
- package/dist/esm/models/MaybeVarStr.js +5 -5
- package/dist/esm/models/ModelObject.d.ts +38 -0
- package/dist/esm/models/ModelObject.js +47 -0
- package/dist/esm/models/ModelRecord.d.ts +1 -1
- package/dist/esm/models/ObjectGroupListEntry.d.ts +0 -6
- package/dist/esm/models/ObjectGroupListEntry.js +0 -4
- package/dist/esm/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
- package/dist/esm/models/SelectObjectsParamsWrapperBody.js +44 -0
- package/dist/esm/models/Selection.d.ts +39 -0
- package/dist/esm/models/Selection.js +48 -0
- package/dist/esm/models/SpaceRuleSetJSON.d.ts +3 -2
- package/dist/esm/models/SpaceRuleSetJSON.js +3 -2
- package/dist/esm/models/SpaceRulesetCreate.d.ts +1 -1
- package/dist/esm/models/index.d.ts +23 -0
- package/dist/esm/models/index.js +23 -0
- package/dist/models/AccountTextFilePostBody.d.ts +38 -0
- package/dist/models/AccountTextFilePostBody.js +52 -0
- package/dist/models/CalcCompare.d.ts +45 -0
- package/dist/models/CalcCompare.js +59 -0
- package/dist/models/CalcCondition.d.ts +46 -0
- package/dist/models/CalcCondition.js +60 -0
- package/dist/models/CalcHasNode.d.ts +44 -0
- package/dist/models/CalcHasNode.js +58 -0
- package/dist/models/CalcIsObject.d.ts +32 -0
- package/dist/models/CalcIsObject.js +50 -0
- package/dist/models/CalcRuleRef.d.ts +2 -1
- package/dist/models/CalcRuleRef.js +7 -0
- package/dist/models/CalcRuleRefOneOf2.d.ts +3 -2
- package/dist/models/CalcRuleRefOneOf2.js +4 -3
- package/dist/models/CalcRuleRefOneOf3.d.ts +2 -3
- package/dist/models/CalcRuleRefOneOf3.js +3 -4
- package/dist/models/CalcRuleRefOneOf4.d.ts +3 -3
- package/dist/models/CalcRuleRefOneOf4.js +4 -4
- package/dist/models/CalcRuleRefOneOf5.d.ts +3 -2
- package/dist/models/CalcRuleRefOneOf5.js +4 -3
- package/dist/models/CalcRuleRefOneOf6.d.ts +32 -0
- package/dist/models/CalcRuleRefOneOf6.js +50 -0
- package/dist/models/CalcTest.d.ts +24 -0
- package/dist/models/CalcTest.js +64 -0
- package/dist/models/CalcTestOneOf.d.ts +33 -0
- package/dist/models/CalcTestOneOf.js +51 -0
- package/dist/models/CalcTestOneOf1.d.ts +33 -0
- package/dist/models/CalcTestOneOf1.js +51 -0
- package/dist/models/CalcTestOneOf2.d.ts +33 -0
- package/dist/models/CalcTestOneOf2.js +51 -0
- package/dist/models/Group.d.ts +45 -0
- package/dist/models/Group.js +59 -0
- package/dist/models/LayerVariablesRes.d.ts +1 -1
- package/dist/models/LogicAssignment.d.ts +23 -0
- package/dist/models/LogicAssignment.js +57 -0
- package/dist/models/LogicAssignmentOneOf.d.ts +32 -0
- package/dist/models/LogicAssignmentOneOf.js +50 -0
- package/dist/models/LogicAssignmentOneOf1.d.ts +32 -0
- package/dist/models/LogicAssignmentOneOf1.js +50 -0
- package/dist/models/LogicDemand.d.ts +40 -0
- package/dist/models/LogicDemand.js +56 -0
- package/dist/models/LogicLayerConfig.d.ts +39 -0
- package/dist/models/LogicLayerConfig.js +55 -0
- package/dist/models/LogicPer.d.ts +45 -0
- package/dist/models/LogicPer.js +59 -0
- package/dist/models/LogicRule.d.ts +66 -0
- package/dist/models/LogicRule.js +74 -0
- package/dist/models/LogicSupply.d.ts +48 -0
- package/dist/models/LogicSupply.js +61 -0
- package/dist/models/LogicSupplyWeight.d.ts +32 -0
- package/dist/models/LogicSupplyWeight.js +50 -0
- package/dist/models/MaybeVarInt.d.ts +2 -2
- package/dist/models/MaybeVarInt.js +5 -5
- package/dist/models/MaybeVarProp.d.ts +2 -2
- package/dist/models/MaybeVarProp.js +5 -5
- package/dist/models/MaybeVarStr.d.ts +2 -2
- package/dist/models/MaybeVarStr.js +5 -5
- package/dist/models/ModelObject.d.ts +38 -0
- package/dist/models/ModelObject.js +54 -0
- package/dist/models/ModelRecord.d.ts +1 -1
- package/dist/models/ObjectGroupListEntry.d.ts +0 -6
- package/dist/models/ObjectGroupListEntry.js +0 -4
- package/dist/models/SelectObjectsParamsWrapperBody.d.ts +33 -0
- package/dist/models/SelectObjectsParamsWrapperBody.js +51 -0
- package/dist/models/Selection.d.ts +39 -0
- package/dist/models/Selection.js +55 -0
- package/dist/models/SpaceRuleSetJSON.d.ts +3 -2
- package/dist/models/SpaceRuleSetJSON.js +3 -2
- package/dist/models/SpaceRulesetCreate.d.ts +1 -1
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/package.json +1 -1
- package/src/apis/FilesApi.ts +72 -0
- package/src/apis/{SpaceRulesetsApi.ts → LogicLayersApi.ts} +136 -121
- package/src/apis/ObjectGroupsApi.ts +75 -0
- package/src/apis/PropertiesApi.ts +16 -16
- package/src/apis/ScenariosApi.ts +4 -4
- package/src/apis/TopDownModelsApi.ts +4 -4
- package/src/apis/VariablesApi.ts +4 -4
- package/src/apis/index.ts +1 -1
- package/src/models/AccountTextFilePostBody.ts +74 -0
- package/src/models/CalcCompare.ts +92 -0
- package/src/models/CalcCondition.ts +99 -0
- package/src/models/CalcHasNode.ts +84 -0
- package/src/models/CalcIsObject.ts +66 -0
- package/src/models/CalcRuleRef.ts +14 -1
- package/src/models/CalcRuleRefOneOf2.ts +13 -5
- package/src/models/CalcRuleRefOneOf3.ts +5 -13
- package/src/models/CalcRuleRefOneOf4.ts +11 -11
- package/src/models/CalcRuleRefOneOf5.ts +13 -5
- package/src/models/CalcRuleRefOneOf6.ts +66 -0
- package/src/models/CalcTest.ts +89 -0
- package/src/models/CalcTestOneOf.ts +74 -0
- package/src/models/CalcTestOneOf1.ts +74 -0
- package/src/models/CalcTestOneOf2.ts +74 -0
- package/src/models/Group.ts +92 -0
- package/src/models/LayerVariablesRes.ts +1 -1
- package/src/models/LogicAssignment.ts +76 -0
- package/src/models/LogicAssignmentOneOf.ts +66 -0
- package/src/models/LogicAssignmentOneOf1.ts +66 -0
- package/src/models/LogicDemand.ts +90 -0
- package/src/models/LogicLayerConfig.ts +83 -0
- package/src/models/LogicPer.ts +92 -0
- package/src/models/LogicRule.ts +140 -0
- package/src/models/LogicSupply.ts +99 -0
- package/src/models/LogicSupplyWeight.ts +66 -0
- package/src/models/MaybeVarInt.ts +11 -11
- package/src/models/MaybeVarProp.ts +11 -11
- package/src/models/MaybeVarStr.ts +11 -11
- package/src/models/ModelObject.ts +75 -0
- package/src/models/ModelRecord.ts +1 -1
- package/src/models/ObjectGroupListEntry.ts +0 -9
- package/src/models/SelectObjectsParamsWrapperBody.ts +74 -0
- package/src/models/Selection.ts +83 -0
- package/src/models/SpaceRuleSetJSON.ts +12 -4
- package/src/models/SpaceRulesetCreate.ts +1 -1
- package/src/models/index.ts +23 -0
- package/dist/apis/SpaceRulesetsApi.d.ts +0 -269
- package/dist/esm/apis/SpaceRulesetsApi.d.ts +0 -269
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LogicRule } from './LogicRule';
|
|
17
|
+
import {
|
|
18
|
+
LogicRuleFromJSON,
|
|
19
|
+
LogicRuleFromJSONTyped,
|
|
20
|
+
LogicRuleToJSON,
|
|
21
|
+
LogicRuleToJSONTyped,
|
|
22
|
+
} from './LogicRule';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LogicLayerConfig
|
|
28
|
+
*/
|
|
29
|
+
export interface LogicLayerConfig {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LogicRule>}
|
|
33
|
+
* @memberof LogicLayerConfig
|
|
34
|
+
*/
|
|
35
|
+
rules: Array<LogicRule>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LogicLayerConfig
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LogicLayerConfig interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfLogicLayerConfig(value: object): value is LogicLayerConfig {
|
|
48
|
+
if (!('rules' in value) || value['rules'] === undefined) return false;
|
|
49
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function LogicLayerConfigFromJSON(json: any): LogicLayerConfig {
|
|
54
|
+
return LogicLayerConfigFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function LogicLayerConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicLayerConfig {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'rules': ((json['rules'] as Array<any>).map(LogicRuleFromJSON)),
|
|
64
|
+
'type': json['type'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LogicLayerConfigToJSON(json: any): LogicLayerConfig {
|
|
69
|
+
return LogicLayerConfigToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LogicLayerConfigToJSONTyped(value?: LogicLayerConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'rules': ((value['rules'] as Array<any>).map(LogicRuleToJSON)),
|
|
80
|
+
'type': value['type'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CalcRuleRef } from './CalcRuleRef';
|
|
17
|
+
import {
|
|
18
|
+
CalcRuleRefFromJSON,
|
|
19
|
+
CalcRuleRefFromJSONTyped,
|
|
20
|
+
CalcRuleRefToJSON,
|
|
21
|
+
CalcRuleRefToJSONTyped,
|
|
22
|
+
} from './CalcRuleRef';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LogicPer
|
|
28
|
+
*/
|
|
29
|
+
export interface LogicPer {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LogicPer
|
|
34
|
+
*/
|
|
35
|
+
basis: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {CalcRuleRef}
|
|
39
|
+
* @memberof LogicPer
|
|
40
|
+
*/
|
|
41
|
+
demand: CalcRuleRef;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CalcRuleRef}
|
|
45
|
+
* @memberof LogicPer
|
|
46
|
+
*/
|
|
47
|
+
supply: CalcRuleRef;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the LogicPer interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfLogicPer(value: object): value is LogicPer {
|
|
54
|
+
if (!('basis' in value) || value['basis'] === undefined) return false;
|
|
55
|
+
if (!('demand' in value) || value['demand'] === undefined) return false;
|
|
56
|
+
if (!('supply' in value) || value['supply'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LogicPerFromJSON(json: any): LogicPer {
|
|
61
|
+
return LogicPerFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LogicPerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicPer {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'basis': json['basis'],
|
|
71
|
+
'demand': CalcRuleRefFromJSON(json['demand']),
|
|
72
|
+
'supply': CalcRuleRefFromJSON(json['supply']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function LogicPerToJSON(json: any): LogicPer {
|
|
77
|
+
return LogicPerToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function LogicPerToJSONTyped(value?: LogicPer | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'basis': value['basis'],
|
|
88
|
+
'demand': CalcRuleRefToJSON(value['demand']),
|
|
89
|
+
'supply': CalcRuleRefToJSON(value['supply']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LogicPer } from './LogicPer';
|
|
17
|
+
import {
|
|
18
|
+
LogicPerFromJSON,
|
|
19
|
+
LogicPerFromJSONTyped,
|
|
20
|
+
LogicPerToJSON,
|
|
21
|
+
LogicPerToJSONTyped,
|
|
22
|
+
} from './LogicPer';
|
|
23
|
+
import type { LogicAssignment } from './LogicAssignment';
|
|
24
|
+
import {
|
|
25
|
+
LogicAssignmentFromJSON,
|
|
26
|
+
LogicAssignmentFromJSONTyped,
|
|
27
|
+
LogicAssignmentToJSON,
|
|
28
|
+
LogicAssignmentToJSONTyped,
|
|
29
|
+
} from './LogicAssignment';
|
|
30
|
+
import type { LogicDemand } from './LogicDemand';
|
|
31
|
+
import {
|
|
32
|
+
LogicDemandFromJSON,
|
|
33
|
+
LogicDemandFromJSONTyped,
|
|
34
|
+
LogicDemandToJSON,
|
|
35
|
+
LogicDemandToJSONTyped,
|
|
36
|
+
} from './LogicDemand';
|
|
37
|
+
import type { LogicSupply } from './LogicSupply';
|
|
38
|
+
import {
|
|
39
|
+
LogicSupplyFromJSON,
|
|
40
|
+
LogicSupplyFromJSONTyped,
|
|
41
|
+
LogicSupplyToJSON,
|
|
42
|
+
LogicSupplyToJSONTyped,
|
|
43
|
+
} from './LogicSupply';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface LogicRule
|
|
49
|
+
*/
|
|
50
|
+
export interface LogicRule {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {LogicDemand}
|
|
54
|
+
* @memberof LogicRule
|
|
55
|
+
*/
|
|
56
|
+
demand: LogicDemand;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof LogicRule
|
|
61
|
+
*/
|
|
62
|
+
exactNodes: boolean;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof LogicRule
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<LogicAssignment>}
|
|
72
|
+
* @memberof LogicRule
|
|
73
|
+
*/
|
|
74
|
+
output: Array<LogicAssignment>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {LogicPer}
|
|
78
|
+
* @memberof LogicRule
|
|
79
|
+
*/
|
|
80
|
+
per: LogicPer;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {LogicSupply}
|
|
84
|
+
* @memberof LogicRule
|
|
85
|
+
*/
|
|
86
|
+
supply: LogicSupply;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the LogicRule interface.
|
|
91
|
+
*/
|
|
92
|
+
export function instanceOfLogicRule(value: object): value is LogicRule {
|
|
93
|
+
if (!('demand' in value) || value['demand'] === undefined) return false;
|
|
94
|
+
if (!('exactNodes' in value) || value['exactNodes'] === undefined) return false;
|
|
95
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
|
+
if (!('output' in value) || value['output'] === undefined) return false;
|
|
97
|
+
if (!('per' in value) || value['per'] === undefined) return false;
|
|
98
|
+
if (!('supply' in value) || value['supply'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function LogicRuleFromJSON(json: any): LogicRule {
|
|
103
|
+
return LogicRuleFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function LogicRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicRule {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'demand': LogicDemandFromJSON(json['demand']),
|
|
113
|
+
'exactNodes': json['exactNodes'],
|
|
114
|
+
'name': json['name'],
|
|
115
|
+
'output': ((json['output'] as Array<any>).map(LogicAssignmentFromJSON)),
|
|
116
|
+
'per': LogicPerFromJSON(json['per']),
|
|
117
|
+
'supply': LogicSupplyFromJSON(json['supply']),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function LogicRuleToJSON(json: any): LogicRule {
|
|
122
|
+
return LogicRuleToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function LogicRuleToJSONTyped(value?: LogicRule | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'demand': LogicDemandToJSON(value['demand']),
|
|
133
|
+
'exactNodes': value['exactNodes'],
|
|
134
|
+
'name': value['name'],
|
|
135
|
+
'output': ((value['output'] as Array<any>).map(LogicAssignmentToJSON)),
|
|
136
|
+
'per': LogicPerToJSON(value['per']),
|
|
137
|
+
'supply': LogicSupplyToJSON(value['supply']),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LogicSupplyWeight } from './LogicSupplyWeight';
|
|
17
|
+
import {
|
|
18
|
+
LogicSupplyWeightFromJSON,
|
|
19
|
+
LogicSupplyWeightFromJSONTyped,
|
|
20
|
+
LogicSupplyWeightToJSON,
|
|
21
|
+
LogicSupplyWeightToJSONTyped,
|
|
22
|
+
} from './LogicSupplyWeight';
|
|
23
|
+
import type { FilterGroup } from './FilterGroup';
|
|
24
|
+
import {
|
|
25
|
+
FilterGroupFromJSON,
|
|
26
|
+
FilterGroupFromJSONTyped,
|
|
27
|
+
FilterGroupToJSON,
|
|
28
|
+
FilterGroupToJSONTyped,
|
|
29
|
+
} from './FilterGroup';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface LogicSupply
|
|
35
|
+
*/
|
|
36
|
+
export interface LogicSupply {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<FilterGroup>}
|
|
40
|
+
* @memberof LogicSupply
|
|
41
|
+
*/
|
|
42
|
+
filters: Array<FilterGroup>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof LogicSupply
|
|
47
|
+
*/
|
|
48
|
+
ignoreMissingWeights: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: LogicSupplyWeight; }}
|
|
52
|
+
* @memberof LogicSupply
|
|
53
|
+
*/
|
|
54
|
+
weights: { [key: string]: LogicSupplyWeight; };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the LogicSupply interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfLogicSupply(value: object): value is LogicSupply {
|
|
61
|
+
if (!('filters' in value) || value['filters'] === undefined) return false;
|
|
62
|
+
if (!('ignoreMissingWeights' in value) || value['ignoreMissingWeights'] === undefined) return false;
|
|
63
|
+
if (!('weights' in value) || value['weights'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function LogicSupplyFromJSON(json: any): LogicSupply {
|
|
68
|
+
return LogicSupplyFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function LogicSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicSupply {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'filters': ((json['filters'] as Array<any>).map(FilterGroupFromJSON)),
|
|
78
|
+
'ignoreMissingWeights': json['ignoreMissingWeights'],
|
|
79
|
+
'weights': (mapValues(json['weights'], LogicSupplyWeightFromJSON)),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function LogicSupplyToJSON(json: any): LogicSupply {
|
|
84
|
+
return LogicSupplyToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function LogicSupplyToJSONTyped(value?: LogicSupply | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'filters': ((value['filters'] as Array<any>).map(FilterGroupToJSON)),
|
|
95
|
+
'ignoreMissingWeights': value['ignoreMissingWeights'],
|
|
96
|
+
'weights': (mapValues(value['weights'], LogicSupplyWeightToJSON)),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LogicSupplyWeight
|
|
20
|
+
*/
|
|
21
|
+
export interface LogicSupplyWeight {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LogicSupplyWeight
|
|
26
|
+
*/
|
|
27
|
+
weight: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LogicSupplyWeight interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLogicSupplyWeight(value: object): value is LogicSupplyWeight {
|
|
34
|
+
if (!('weight' in value) || value['weight'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function LogicSupplyWeightFromJSON(json: any): LogicSupplyWeight {
|
|
39
|
+
return LogicSupplyWeightFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LogicSupplyWeightFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogicSupplyWeight {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'weight': json['weight'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LogicSupplyWeightToJSON(json: any): LogicSupplyWeight {
|
|
53
|
+
return LogicSupplyWeightToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LogicSupplyWeightToJSONTyped(value?: LogicSupplyWeight | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'weight': value['weight'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type {
|
|
15
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
17
|
+
instanceOfCalcRuleRefOneOf6,
|
|
18
|
+
CalcRuleRefOneOf6FromJSON,
|
|
19
|
+
CalcRuleRefOneOf6FromJSONTyped,
|
|
20
|
+
CalcRuleRefOneOf6ToJSON,
|
|
21
|
+
} from './CalcRuleRefOneOf6';
|
|
22
22
|
import type { MaybeVarIntOneOf } from './MaybeVarIntOneOf';
|
|
23
23
|
import {
|
|
24
24
|
instanceOfMaybeVarIntOneOf,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export type MaybeVarInt =
|
|
35
|
+
export type MaybeVarInt = CalcRuleRefOneOf6 | MaybeVarIntOneOf;
|
|
36
36
|
|
|
37
37
|
export function MaybeVarIntFromJSON(json: any): MaybeVarInt {
|
|
38
38
|
return MaybeVarIntFromJSONTyped(json, false);
|
|
@@ -45,8 +45,8 @@ export function MaybeVarIntFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
45
45
|
if (typeof json !== 'object') {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
48
|
+
if (instanceOfCalcRuleRefOneOf6(json)) {
|
|
49
|
+
return CalcRuleRefOneOf6FromJSONTyped(json, true);
|
|
50
50
|
}
|
|
51
51
|
if (instanceOfMaybeVarIntOneOf(json)) {
|
|
52
52
|
return MaybeVarIntOneOfFromJSONTyped(json, true);
|
|
@@ -65,8 +65,8 @@ export function MaybeVarIntToJSONTyped(value?: MaybeVarInt | null, ignoreDiscrim
|
|
|
65
65
|
if (typeof value !== 'object') {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
68
|
-
if (
|
|
69
|
-
return
|
|
68
|
+
if (instanceOfCalcRuleRefOneOf6(value)) {
|
|
69
|
+
return CalcRuleRefOneOf6ToJSON(value as CalcRuleRefOneOf6);
|
|
70
70
|
}
|
|
71
71
|
if (instanceOfMaybeVarIntOneOf(value)) {
|
|
72
72
|
return MaybeVarIntOneOfToJSON(value as MaybeVarIntOneOf);
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type {
|
|
15
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
17
|
+
instanceOfCalcRuleRefOneOf6,
|
|
18
|
+
CalcRuleRefOneOf6FromJSON,
|
|
19
|
+
CalcRuleRefOneOf6FromJSONTyped,
|
|
20
|
+
CalcRuleRefOneOf6ToJSON,
|
|
21
|
+
} from './CalcRuleRefOneOf6';
|
|
22
22
|
import type { MaybeVarPropOneOf } from './MaybeVarPropOneOf';
|
|
23
23
|
import {
|
|
24
24
|
instanceOfMaybeVarPropOneOf,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export type MaybeVarProp =
|
|
35
|
+
export type MaybeVarProp = CalcRuleRefOneOf6 | MaybeVarPropOneOf;
|
|
36
36
|
|
|
37
37
|
export function MaybeVarPropFromJSON(json: any): MaybeVarProp {
|
|
38
38
|
return MaybeVarPropFromJSONTyped(json, false);
|
|
@@ -45,8 +45,8 @@ export function MaybeVarPropFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
45
45
|
if (typeof json !== 'object') {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
48
|
+
if (instanceOfCalcRuleRefOneOf6(json)) {
|
|
49
|
+
return CalcRuleRefOneOf6FromJSONTyped(json, true);
|
|
50
50
|
}
|
|
51
51
|
if (instanceOfMaybeVarPropOneOf(json)) {
|
|
52
52
|
return MaybeVarPropOneOfFromJSONTyped(json, true);
|
|
@@ -65,8 +65,8 @@ export function MaybeVarPropToJSONTyped(value?: MaybeVarProp | null, ignoreDiscr
|
|
|
65
65
|
if (typeof value !== 'object') {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
68
|
-
if (
|
|
69
|
-
return
|
|
68
|
+
if (instanceOfCalcRuleRefOneOf6(value)) {
|
|
69
|
+
return CalcRuleRefOneOf6ToJSON(value as CalcRuleRefOneOf6);
|
|
70
70
|
}
|
|
71
71
|
if (instanceOfMaybeVarPropOneOf(value)) {
|
|
72
72
|
return MaybeVarPropOneOfToJSON(value as MaybeVarPropOneOf);
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type {
|
|
15
|
+
import type { CalcRuleRefOneOf6 } from './CalcRuleRefOneOf6';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
17
|
+
instanceOfCalcRuleRefOneOf6,
|
|
18
|
+
CalcRuleRefOneOf6FromJSON,
|
|
19
|
+
CalcRuleRefOneOf6FromJSONTyped,
|
|
20
|
+
CalcRuleRefOneOf6ToJSON,
|
|
21
|
+
} from './CalcRuleRefOneOf6';
|
|
22
22
|
import type { MaybeVarStrOneOf } from './MaybeVarStrOneOf';
|
|
23
23
|
import {
|
|
24
24
|
instanceOfMaybeVarStrOneOf,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export type MaybeVarStr =
|
|
35
|
+
export type MaybeVarStr = CalcRuleRefOneOf6 | MaybeVarStrOneOf;
|
|
36
36
|
|
|
37
37
|
export function MaybeVarStrFromJSON(json: any): MaybeVarStr {
|
|
38
38
|
return MaybeVarStrFromJSONTyped(json, false);
|
|
@@ -45,8 +45,8 @@ export function MaybeVarStrFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
45
45
|
if (typeof json !== 'object') {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
48
|
+
if (instanceOfCalcRuleRefOneOf6(json)) {
|
|
49
|
+
return CalcRuleRefOneOf6FromJSONTyped(json, true);
|
|
50
50
|
}
|
|
51
51
|
if (instanceOfMaybeVarStrOneOf(json)) {
|
|
52
52
|
return MaybeVarStrOneOfFromJSONTyped(json, true);
|
|
@@ -65,8 +65,8 @@ export function MaybeVarStrToJSONTyped(value?: MaybeVarStr | null, ignoreDiscrim
|
|
|
65
65
|
if (typeof value !== 'object') {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
68
|
-
if (
|
|
69
|
-
return
|
|
68
|
+
if (instanceOfCalcRuleRefOneOf6(value)) {
|
|
69
|
+
return CalcRuleRefOneOf6ToJSON(value as CalcRuleRefOneOf6);
|
|
70
70
|
}
|
|
71
71
|
if (instanceOfMaybeVarStrOneOf(value)) {
|
|
72
72
|
return MaybeVarStrOneOfToJSON(value as MaybeVarStrOneOf);
|