Skip to content

Commit b10685c

Browse files
committed
Add models and endpoints that were built
1 parent 60ac931 commit b10685c

File tree

8 files changed

+394
-49
lines changed

8 files changed

+394
-49
lines changed

src/src/models/RatingMetadata.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
*/
1414

1515
import { mapValues } from '../runtime';
16-
import type { AbstractRatingMetadata } from './AbstractRatingMetadata';
16+
import type { BaseRatingMetadata } from './BaseRatingMetadata';
1717
import {
18-
AbstractRatingMetadataFromJSON,
19-
AbstractRatingMetadataFromJSONTyped,
20-
AbstractRatingMetadataToJSON,
21-
} from './AbstractRatingMetadata';
18+
BaseRatingMetadataFromJSON,
19+
BaseRatingMetadataFromJSONTyped,
20+
BaseRatingMetadataToJSON,
21+
} from './BaseRatingMetadata';
2222
import type { RatingSpec } from './RatingSpec';
2323
import {
2424
RatingSpecFromJSON,
@@ -40,10 +40,10 @@ export interface RatingMetadata {
4040
ratingSpec?: RatingSpec;
4141
/**
4242
*
43-
* @type {Array<AbstractRatingMetadata>}
43+
* @type {Array<BaseRatingMetadata>}
4444
* @memberof RatingMetadata
4545
*/
46-
ratings?: Array<AbstractRatingMetadata>;
46+
ratings?: Array<BaseRatingMetadata>;
4747
}
4848

4949
/**
@@ -64,7 +64,7 @@ export function RatingMetadataFromJSONTyped(json: any, ignoreDiscriminator: bool
6464
return {
6565

6666
'ratingSpec': json['rating-spec'] == null ? undefined : RatingSpecFromJSON(json['rating-spec']),
67-
'ratings': json['ratings'] == null ? undefined : ((json['ratings'] as Array<any>).map(AbstractRatingMetadataFromJSON)),
67+
'ratings': json['ratings'] == null ? undefined : ((json['ratings'] as Array<any>).map(BaseRatingMetadataFromJSON)),
6868
};
6969
}
7070

@@ -75,7 +75,7 @@ export function RatingMetadataToJSON(value?: RatingMetadata | null): any {
7575
return {
7676

7777
'rating-spec': RatingSpecToJSON(value['ratingSpec']),
78-
'ratings': value['ratings'] == null ? undefined : ((value['ratings'] as Array<any>).map(AbstractRatingMetadataToJSON)),
78+
'ratings': value['ratings'] == null ? undefined : ((value['ratings'] as Array<any>).map(BaseRatingMetadataToJSON)),
7979
};
8080
}
8181

src/src/models/TableRating.ts

Lines changed: 75 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
*/
1414

1515
import { mapValues } from '../runtime';
16-
import type { AbstractRatingMetadata } from './AbstractRatingMetadata';
17-
import {
18-
AbstractRatingMetadataFromJSON,
19-
AbstractRatingMetadataFromJSONTyped,
20-
AbstractRatingMetadataToJSON,
21-
} from './AbstractRatingMetadata';
2216
import type { VerticalDatumInfo } from './VerticalDatumInfo';
2317
import {
2418
VerticalDatumInfoFromJSON,
@@ -31,7 +25,61 @@ import {
3125
* @export
3226
* @interface TableRating
3327
*/
34-
export interface TableRating extends AbstractRatingMetadata {
28+
export interface TableRating {
29+
/**
30+
*
31+
* @type {string}
32+
* @memberof TableRating
33+
*/
34+
officeId?: string;
35+
/**
36+
*
37+
* @type {string}
38+
* @memberof TableRating
39+
*/
40+
ratingSpecId?: string;
41+
/**
42+
*
43+
* @type {string}
44+
* @memberof TableRating
45+
*/
46+
unitsId?: string;
47+
/**
48+
*
49+
* @type {boolean}
50+
* @memberof TableRating
51+
*/
52+
active?: boolean;
53+
/**
54+
*
55+
* @type {Date}
56+
* @memberof TableRating
57+
*/
58+
effectiveDate?: Date;
59+
/**
60+
*
61+
* @type {Date}
62+
* @memberof TableRating
63+
*/
64+
createDate?: Date;
65+
/**
66+
*
67+
* @type {Date}
68+
* @memberof TableRating
69+
*/
70+
transitionDate?: Date;
71+
/**
72+
*
73+
* @type {string}
74+
* @memberof TableRating
75+
*/
76+
description?: string;
77+
/**
78+
*
79+
* @type {VerticalDatumInfo}
80+
* @memberof TableRating
81+
*/
82+
verticalDatumInfo?: VerticalDatumInfo;
3583
/**
3684
*
3785
* @type {string}
@@ -68,7 +116,16 @@ export function TableRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean
68116
return json;
69117
}
70118
return {
71-
...AbstractRatingMetadataFromJSONTyped(json, ignoreDiscriminator),
119+
120+
'officeId': json['office-id'] == null ? undefined : json['office-id'],
121+
'ratingSpecId': json['rating-spec-id'] == null ? undefined : json['rating-spec-id'],
122+
'unitsId': json['units-id'] == null ? undefined : json['units-id'],
123+
'active': json['active'] == null ? undefined : json['active'],
124+
'effectiveDate': json['effective-date'] == null ? undefined : (new Date(json['effective-date'])),
125+
'createDate': json['create-date'] == null ? undefined : (new Date(json['create-date'])),
126+
'transitionDate': json['transition-date'] == null ? undefined : (new Date(json['transition-date'])),
127+
'description': json['description'] == null ? undefined : json['description'],
128+
'verticalDatumInfo': json['vertical-datum-info'] == null ? undefined : VerticalDatumInfoFromJSON(json['vertical-datum-info']),
72129
'inRangeMethod': json['in-range-method'] == null ? undefined : json['in-range-method'],
73130
'outRangeLowMethod': json['out-range-low-method'] == null ? undefined : json['out-range-low-method'],
74131
'outRangeHighMethod': json['out-range-high-method'] == null ? undefined : json['out-range-high-method'],
@@ -80,7 +137,16 @@ export function TableRatingToJSON(value?: TableRating | null): any {
80137
return value;
81138
}
82139
return {
83-
...AbstractRatingMetadataToJSON(value),
140+
141+
'office-id': value['officeId'],
142+
'rating-spec-id': value['ratingSpecId'],
143+
'units-id': value['unitsId'],
144+
'active': value['active'],
145+
'effective-date': value['effectiveDate'] == null ? undefined : ((value['effectiveDate']).toISOString()),
146+
'create-date': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()),
147+
'transition-date': value['transitionDate'] == null ? undefined : ((value['transitionDate']).toISOString()),
148+
'description': value['description'],
149+
'vertical-datum-info': VerticalDatumInfoToJSON(value['verticalDatumInfo']),
84150
'in-range-method': value['inRangeMethod'],
85151
'out-range-low-method': value['outRangeLowMethod'],
86152
'out-range-high-method': value['outRangeHighMethod'],

src/src/models/TransitionalRating.ts

Lines changed: 75 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
*/
1414

1515
import { mapValues } from '../runtime';
16-
import type { AbstractRatingMetadata } from './AbstractRatingMetadata';
17-
import {
18-
AbstractRatingMetadataFromJSON,
19-
AbstractRatingMetadataFromJSONTyped,
20-
AbstractRatingMetadataToJSON,
21-
} from './AbstractRatingMetadata';
2216
import type { VerticalDatumInfo } from './VerticalDatumInfo';
2317
import {
2418
VerticalDatumInfoFromJSON,
@@ -31,7 +25,61 @@ import {
3125
* @export
3226
* @interface TransitionalRating
3327
*/
34-
export interface TransitionalRating extends AbstractRatingMetadata {
28+
export interface TransitionalRating {
29+
/**
30+
*
31+
* @type {string}
32+
* @memberof TransitionalRating
33+
*/
34+
officeId?: string;
35+
/**
36+
*
37+
* @type {string}
38+
* @memberof TransitionalRating
39+
*/
40+
ratingSpecId?: string;
41+
/**
42+
*
43+
* @type {string}
44+
* @memberof TransitionalRating
45+
*/
46+
unitsId?: string;
47+
/**
48+
*
49+
* @type {boolean}
50+
* @memberof TransitionalRating
51+
*/
52+
active?: boolean;
53+
/**
54+
*
55+
* @type {Date}
56+
* @memberof TransitionalRating
57+
*/
58+
effectiveDate?: Date;
59+
/**
60+
*
61+
* @type {Date}
62+
* @memberof TransitionalRating
63+
*/
64+
createDate?: Date;
65+
/**
66+
*
67+
* @type {Date}
68+
* @memberof TransitionalRating
69+
*/
70+
transitionDate?: Date;
71+
/**
72+
*
73+
* @type {string}
74+
* @memberof TransitionalRating
75+
*/
76+
description?: string;
77+
/**
78+
*
79+
* @type {VerticalDatumInfo}
80+
* @memberof TransitionalRating
81+
*/
82+
verticalDatumInfo?: VerticalDatumInfo;
3583
/**
3684
*
3785
* @type {Array<string>}
@@ -68,7 +116,16 @@ export function TransitionalRatingFromJSONTyped(json: any, ignoreDiscriminator:
68116
return json;
69117
}
70118
return {
71-
...AbstractRatingMetadataFromJSONTyped(json, ignoreDiscriminator),
119+
120+
'officeId': json['office-id'] == null ? undefined : json['office-id'],
121+
'ratingSpecId': json['rating-spec-id'] == null ? undefined : json['rating-spec-id'],
122+
'unitsId': json['units-id'] == null ? undefined : json['units-id'],
123+
'active': json['active'] == null ? undefined : json['active'],
124+
'effectiveDate': json['effective-date'] == null ? undefined : (new Date(json['effective-date'])),
125+
'createDate': json['create-date'] == null ? undefined : (new Date(json['create-date'])),
126+
'transitionDate': json['transition-date'] == null ? undefined : (new Date(json['transition-date'])),
127+
'description': json['description'] == null ? undefined : json['description'],
128+
'verticalDatumInfo': json['vertical-datum-info'] == null ? undefined : VerticalDatumInfoFromJSON(json['vertical-datum-info']),
72129
'sourceRatings': json['source-ratings'] == null ? undefined : json['source-ratings'],
73130
'conditions': json['conditions'] == null ? undefined : json['conditions'],
74131
'evaluations': json['evaluations'] == null ? undefined : json['evaluations'],
@@ -80,7 +137,16 @@ export function TransitionalRatingToJSON(value?: TransitionalRating | null): any
80137
return value;
81138
}
82139
return {
83-
...AbstractRatingMetadataToJSON(value),
140+
141+
'office-id': value['officeId'],
142+
'rating-spec-id': value['ratingSpecId'],
143+
'units-id': value['unitsId'],
144+
'active': value['active'],
145+
'effective-date': value['effectiveDate'] == null ? undefined : ((value['effectiveDate']).toISOString()),
146+
'create-date': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()),
147+
'transition-date': value['transitionDate'] == null ? undefined : ((value['transitionDate']).toISOString()),
148+
'description': value['description'],
149+
'vertical-datum-info': VerticalDatumInfoToJSON(value['verticalDatumInfo']),
84150
'source-ratings': value['sourceRatings'],
85151
'conditions': value['conditions'],
86152
'evaluations': value['evaluations'],

src/src/models/TurbineChange.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ export interface TurbineChange {
106106
elevationUnits?: string;
107107
/**
108108
*
109-
* @type {Set<TurbineSetting>}
109+
* @type {Array<TurbineSetting>}
110110
* @memberof TurbineChange
111111
*/
112-
settings?: Set<TurbineSetting>;
112+
settings?: Array<TurbineSetting>;
113113
/**
114114
*
115115
* @type {number}
@@ -150,7 +150,7 @@ export function TurbineChangeFromJSONTyped(json: any, ignoreDiscriminator: boole
150150
'dischargeUnits': json['discharge-units'] == null ? undefined : json['discharge-units'],
151151
'tailwaterElevation': json['tailwater-elevation'] == null ? undefined : json['tailwater-elevation'],
152152
'elevationUnits': json['elevation-units'] == null ? undefined : json['elevation-units'],
153-
'settings': json['settings'] == null ? undefined : new Set((json['settings'] as Array<any>).map(TurbineSettingFromJSON))),
153+
'settings': json['settings'] == null ? undefined : ((json['settings'] as Array<any>).map(TurbineSettingFromJSON)),
154154
'poolElevation': json['pool-elevation'] == null ? undefined : json['pool-elevation'],
155155
};
156156
}
@@ -172,7 +172,7 @@ export function TurbineChangeToJSON(value?: TurbineChange | null): any {
172172
'discharge-units': value['dischargeUnits'],
173173
'tailwater-elevation': value['tailwaterElevation'],
174174
'elevation-units': value['elevationUnits'],
175-
'settings': value['settings'] == null ? undefined : (Array.from(value['settings'] as Set<any>).map(TurbineSettingToJSON)),
175+
'settings': value['settings'] == null ? undefined : ((value['settings'] as Array<any>).map(TurbineSettingToJSON)),
176176
'pool-elevation': value['poolElevation'],
177177
};
178178
}

0 commit comments

Comments
 (0)