@cosmotech/aip-client 0.0.1-rc1
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/README.md +45 -0
- package/package.json +29 -0
- package/src/apis/DefaultApi.ts +53 -0
- package/src/apis/MetricApi.ts +256 -0
- package/src/apis/MetricCostsPerYearApi.ts +286 -0
- package/src/apis/ObjectiveApi.ts +256 -0
- package/src/apis/ObjectiveWeightApi.ts +271 -0
- package/src/apis/ValueFrameworkApi.ts +256 -0
- package/src/apis/index.ts +8 -0
- package/src/index.ts +5 -0
- package/src/models/HTTPValidationError.ts +72 -0
- package/src/models/MeasurementType.ts +38 -0
- package/src/models/MetricCostsPerYearCreate.ts +102 -0
- package/src/models/MetricCostsPerYearResponse.ts +110 -0
- package/src/models/MetricCostsPerYearUpdate.ts +73 -0
- package/src/models/MetricCreate.ts +139 -0
- package/src/models/MetricResponse.ts +174 -0
- package/src/models/MetricType.ts +39 -0
- package/src/models/MetricUpdate.ts +134 -0
- package/src/models/ObjectiveCreate.ts +74 -0
- package/src/models/ObjectiveResponse.ts +109 -0
- package/src/models/ObjectiveUpdate.ts +73 -0
- package/src/models/ObjectiveWeightCreate.ts +83 -0
- package/src/models/ObjectiveWeightResponse.ts +91 -0
- package/src/models/ObjectiveWeightUpdate.ts +65 -0
- package/src/models/ValidationError.ts +91 -0
- package/src/models/ValidationErrorLocInner.ts +44 -0
- package/src/models/ValueFrameworkCreate.ts +74 -0
- package/src/models/ValueFrameworkResponse.ts +109 -0
- package/src/models/ValueFrameworkUpdate.ts +73 -0
- package/src/models/index.ts +22 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Schema for partially updating an Objective. Only provided fields will be updated.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ObjectiveUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface ObjectiveUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ObjectiveUpdate
|
|
26
|
+
*/
|
|
27
|
+
description?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ObjectiveUpdate
|
|
32
|
+
*/
|
|
33
|
+
name?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ObjectiveUpdate interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfObjectiveUpdate(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ObjectiveUpdateFromJSON(json: any): ObjectiveUpdate {
|
|
46
|
+
return ObjectiveUpdateFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ObjectiveUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectiveUpdate {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
56
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ObjectiveUpdateToJSON(value?: ObjectiveUpdate | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'description': value.description,
|
|
70
|
+
'name': value.name,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Schema for creating a new ObjectiveWeight
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ObjectiveWeightCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface ObjectiveWeightCreate {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the value framework
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ObjectiveWeightCreate
|
|
26
|
+
*/
|
|
27
|
+
frameworkId: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the objective
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ObjectiveWeightCreate
|
|
32
|
+
*/
|
|
33
|
+
objectiveId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Weight for this objective in the framework
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ObjectiveWeightCreate
|
|
38
|
+
*/
|
|
39
|
+
weight?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ObjectiveWeightCreate interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfObjectiveWeightCreate(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "frameworkId" in value;
|
|
48
|
+
isInstance = isInstance && "objectiveId" in value;
|
|
49
|
+
|
|
50
|
+
return isInstance;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ObjectiveWeightCreateFromJSON(json: any): ObjectiveWeightCreate {
|
|
54
|
+
return ObjectiveWeightCreateFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ObjectiveWeightCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectiveWeightCreate {
|
|
58
|
+
if ((json === undefined) || (json === null)) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'frameworkId': json['framework_id'],
|
|
64
|
+
'objectiveId': json['objective_id'],
|
|
65
|
+
'weight': !exists(json, 'weight') ? undefined : json['weight'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ObjectiveWeightCreateToJSON(value?: ObjectiveWeightCreate | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'framework_id': value.frameworkId,
|
|
79
|
+
'objective_id': value.objectiveId,
|
|
80
|
+
'weight': value.weight,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Schema for ObjectiveWeight responses
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ObjectiveWeightResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ObjectiveWeightResponse {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the value framework
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ObjectiveWeightResponse
|
|
26
|
+
*/
|
|
27
|
+
frameworkId: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the objective
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ObjectiveWeightResponse
|
|
32
|
+
*/
|
|
33
|
+
objectiveId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ObjectiveWeightResponse
|
|
38
|
+
*/
|
|
39
|
+
ownerName?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Weight for this objective in the framework
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ObjectiveWeightResponse
|
|
44
|
+
*/
|
|
45
|
+
weight?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ObjectiveWeightResponse interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfObjectiveWeightResponse(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "frameworkId" in value;
|
|
54
|
+
isInstance = isInstance && "objectiveId" in value;
|
|
55
|
+
|
|
56
|
+
return isInstance;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ObjectiveWeightResponseFromJSON(json: any): ObjectiveWeightResponse {
|
|
60
|
+
return ObjectiveWeightResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ObjectiveWeightResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectiveWeightResponse {
|
|
64
|
+
if ((json === undefined) || (json === null)) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'frameworkId': json['framework_id'],
|
|
70
|
+
'objectiveId': json['objective_id'],
|
|
71
|
+
'ownerName': !exists(json, 'owner_name') ? undefined : json['owner_name'],
|
|
72
|
+
'weight': !exists(json, 'weight') ? undefined : json['weight'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ObjectiveWeightResponseToJSON(value?: ObjectiveWeightResponse | null): any {
|
|
77
|
+
if (value === undefined) {
|
|
78
|
+
return undefined;
|
|
79
|
+
}
|
|
80
|
+
if (value === null) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'framework_id': value.frameworkId,
|
|
86
|
+
'objective_id': value.objectiveId,
|
|
87
|
+
'owner_name': value.ownerName,
|
|
88
|
+
'weight': value.weight,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Schema for partially updating an Objective Weight. Only the weight field can be updated.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ObjectiveWeightUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface ObjectiveWeightUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ObjectiveWeightUpdate
|
|
26
|
+
*/
|
|
27
|
+
weight?: number | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ObjectiveWeightUpdate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfObjectiveWeightUpdate(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ObjectiveWeightUpdateFromJSON(json: any): ObjectiveWeightUpdate {
|
|
40
|
+
return ObjectiveWeightUpdateFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ObjectiveWeightUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectiveWeightUpdate {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'weight': !exists(json, 'weight') ? undefined : json['weight'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ObjectiveWeightUpdateToJSON(value?: ObjectiveWeightUpdate | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'weight': value.weight,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
17
|
+
import {
|
|
18
|
+
ValidationErrorLocInnerFromJSON,
|
|
19
|
+
ValidationErrorLocInnerFromJSONTyped,
|
|
20
|
+
ValidationErrorLocInnerToJSON,
|
|
21
|
+
} from './ValidationErrorLocInner';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ValidationError
|
|
27
|
+
*/
|
|
28
|
+
export interface ValidationError {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
32
|
+
* @memberof ValidationError
|
|
33
|
+
*/
|
|
34
|
+
loc: Array<ValidationErrorLocInner>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ValidationError
|
|
39
|
+
*/
|
|
40
|
+
msg: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ValidationError
|
|
45
|
+
*/
|
|
46
|
+
type: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ValidationError interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfValidationError(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "loc" in value;
|
|
55
|
+
isInstance = isInstance && "msg" in value;
|
|
56
|
+
isInstance = isInstance && "type" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
62
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'loc': ((json['loc'] as Array<any>).map(ValidationErrorLocInnerFromJSON)),
|
|
72
|
+
'msg': json['msg'],
|
|
73
|
+
'type': json['type'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ValidationErrorToJSON(value?: ValidationError | null): any {
|
|
78
|
+
if (value === undefined) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
if (value === null) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'loc': ((value.loc as Array<any>).map(ValidationErrorLocInnerToJSON)),
|
|
87
|
+
'msg': value.msg,
|
|
88
|
+
'type': value.type,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValidationErrorLocInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidationErrorLocInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfValidationErrorLocInner(value: object): boolean {
|
|
28
|
+
let isInstance = true;
|
|
29
|
+
|
|
30
|
+
return isInstance;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner {
|
|
34
|
+
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ValidationErrorLocInnerToJSON(value?: ValidationErrorLocInner | null): any {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Schema for creating a new ValueFramework (excludes auto-generated fields)
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValueFrameworkCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface ValueFrameworkCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ValueFrameworkCreate
|
|
26
|
+
*/
|
|
27
|
+
description?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the value framework
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ValueFrameworkCreate
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ValueFrameworkCreate interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfValueFrameworkCreate(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "name" in value;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ValueFrameworkCreateFromJSON(json: any): ValueFrameworkCreate {
|
|
47
|
+
return ValueFrameworkCreateFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ValueFrameworkCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueFrameworkCreate {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ValueFrameworkCreateToJSON(value?: ValueFrameworkCreate | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'description': value.description,
|
|
71
|
+
'name': value.name,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Schema for ValueFramework responses (includes all fields)
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValueFrameworkResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ValueFrameworkResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof ValueFrameworkResponse
|
|
26
|
+
*/
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ValueFrameworkResponse
|
|
32
|
+
*/
|
|
33
|
+
description?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ValueFrameworkResponse
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Name of the value framework
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ValueFrameworkResponse
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ValueFrameworkResponse
|
|
50
|
+
*/
|
|
51
|
+
ownerName?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof ValueFrameworkResponse
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ValueFrameworkResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfValueFrameworkResponse(value: object): boolean {
|
|
64
|
+
let isInstance = true;
|
|
65
|
+
isInstance = isInstance && "createdAt" in value;
|
|
66
|
+
isInstance = isInstance && "id" in value;
|
|
67
|
+
isInstance = isInstance && "name" in value;
|
|
68
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
69
|
+
|
|
70
|
+
return isInstance;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ValueFrameworkResponseFromJSON(json: any): ValueFrameworkResponse {
|
|
74
|
+
return ValueFrameworkResponseFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ValueFrameworkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueFrameworkResponse {
|
|
78
|
+
if ((json === undefined) || (json === null)) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'createdAt': (new Date(json['created_at'])),
|
|
84
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
85
|
+
'id': json['id'],
|
|
86
|
+
'name': json['name'],
|
|
87
|
+
'ownerName': !exists(json, 'owner_name') ? undefined : json['owner_name'],
|
|
88
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ValueFrameworkResponseToJSON(value?: ValueFrameworkResponse | null): any {
|
|
93
|
+
if (value === undefined) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
if (value === null) {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'created_at': (value.createdAt.toISOString()),
|
|
102
|
+
'description': value.description,
|
|
103
|
+
'id': value.id,
|
|
104
|
+
'name': value.name,
|
|
105
|
+
'owner_name': value.ownerName,
|
|
106
|
+
'updated_at': (value.updatedAt.toISOString()),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0-rc1
|
|
8
|
+
*
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Schema for partially updating a Value Framework. Only provided fields will be updated.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValueFrameworkUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface ValueFrameworkUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ValueFrameworkUpdate
|
|
26
|
+
*/
|
|
27
|
+
description?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ValueFrameworkUpdate
|
|
32
|
+
*/
|
|
33
|
+
name?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ValueFrameworkUpdate interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfValueFrameworkUpdate(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ValueFrameworkUpdateFromJSON(json: any): ValueFrameworkUpdate {
|
|
46
|
+
return ValueFrameworkUpdateFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ValueFrameworkUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueFrameworkUpdate {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
56
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ValueFrameworkUpdateToJSON(value?: ValueFrameworkUpdate | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'description': value.description,
|
|
70
|
+
'name': value.name,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|