Skip to content

Commit f5889f4

Browse files
committed
Auto-API L13 updates
1 parent 6e80123 commit f5889f4

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

src/capabilities/Universal.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { Capability } from '../core/Capability';
2+
import { Configuration } from '../configuration';
3+
4+
import { UniversalProperties } from './properties';
5+
6+
enum Properties {}
7+
8+
export class Universal extends Capability<`${Properties}` | `${UniversalProperties}`> {
9+
static readonly Identifier = {
10+
msb: 0,
11+
lsb: 21,
12+
};
13+
static readonly Name = 'universal';
14+
static readonly Properties = Properties;
15+
constructor() {
16+
super(
17+
Configuration.getCapabilityDefinition(Universal.Name),
18+
Configuration.getUniversalProperties(),
19+
);
20+
}
21+
}

src/capabilities/classes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { TextInput } from './TextInput';
4444
import { TheftAlarm } from './TheftAlarm';
4545
import { Trips } from './Trips';
4646
import { Trunk } from './Trunk';
47+
import { Universal } from './Universal';
4748
import { Usage } from './Usage';
4849
import { ValetMode } from './ValetMode';
4950
import { VehicleInformation } from './VehicleInformation';
@@ -104,6 +105,7 @@ export type CapabilityClass =
104105
| typeof TheftAlarm
105106
| typeof Trips
106107
| typeof Trunk
108+
| typeof Universal
107109
| typeof Usage
108110
| typeof ValetMode
109111
| typeof VehicleInformation
@@ -164,6 +166,7 @@ export const ClassList: Array<CapabilityClass> = [
164166
TheftAlarm,
165167
Trips,
166168
Trunk,
169+
Universal,
167170
Usage,
168171
ValetMode,
169172
VehicleInformation,

src/capabilities/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export { TextInput } from './TextInput';
4444
export { TheftAlarm } from './TheftAlarm';
4545
export { Trips } from './Trips';
4646
export { Trunk } from './Trunk';
47+
export { Universal } from './Universal';
4748
export { Usage } from './Usage';
4849
export { ValetMode } from './ValetMode';
4950
export { VehicleInformation } from './VehicleInformation';

src/configuration/configuration.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)