updates to concierge bot to support adding services and routes

This commit is contained in:
JB
2026-02-12 19:25:01 -05:00
parent e9865d3ee8
commit 415aa3dbfe
86 changed files with 2396 additions and 723 deletions

View File

@@ -8,7 +8,7 @@ export interface Location {
}
// required scope: esi-location.read_location.v1
export function getCharacterLocation(options: EsiOptions) {
export function getCharacterLocation(options: EsiOptions): Promise<Partial<Location>> {
const character_id = checkScopesAndGetCharacterId(options, ESI_SCOPE['esi-location.read_location.v1']);
return esiFetch<Partial<Location>>(`/characters/${character_id}/location/`, options);
}
@@ -21,7 +21,7 @@ export interface Online {
}
// required scope: esi-location.read_online.v1
export function getCharacterOnline(options: EsiOptions) {
export function getCharacterOnline(options: EsiOptions): Promise<Partial<Online>> {
const character_id = checkScopesAndGetCharacterId(options, ESI_SCOPE['esi-location.read_online.v1']);
return esiFetch<Partial<Online>>(`/characters/${character_id}/online/`, options);
}
@@ -33,7 +33,7 @@ export interface CurrentShip {
}
// required scope: esi-location.read_ship_type.v1
export function getCharacterCurrentShip(options: EsiOptions) {
export function getCharacterCurrentShip(options: EsiOptions): Promise<Partial<CurrentShip>> {
const character_id = checkScopesAndGetCharacterId(options, ESI_SCOPE['esi-location.read_ship_type.v1']);
return esiFetch<Partial<CurrentShip>>(`/characters/${character_id}/ship/`, options);
}