UNPKG

@golemio/parkings

Version:
18 lines (17 loc) 796 B
import { IDataSourceProvider } from "../../interfaces/IDataSourceProvider"; import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig"; import { IDataSource } from "@golemio/core/dist/integration-engine"; import { ISmart4CityGraphQLReponse } from "./ISmart4CityGraphQLReponse"; export declare class Smart4CityGraphQLDataSource implements IDataSourceProvider<ISmart4CityGraphQLReponse> { private config; private token; private tokenExpireAt; private readonly TOKEN_REFRESH_BUFFER_SECONDS; private readonly GRANT_TYPE; private credentialInfo; private readonly QUERY; constructor(config: ISimpleConfig); private refreshToken; getToken(): Promise<string>; getDataSource(token: string): IDataSource<ISmart4CityGraphQLReponse>; }