UNPKG

nws-client-js

Version:

JavaScript client for the National Weather Service API

66 lines (62 loc) 1.59 kB
// tslint:disable /** * weather.gov API * weather.gov API * * OpenAPI spec version: 1.8.5 * * * NOTE: This file is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the file manually. */ export interface ConfigurationParameters { apiKey?: string | ((name: string) => string); username?: string; password?: string; accessToken?: string | ((name: string, scopes?: string[]) => string); basePath?: string; } export class Configuration { /** * parameter for apiKey security * @param name security name * @memberof Configuration */ apiKey?: string | ((name: string) => string); /** * parameter for basic security * * @type {string} * @memberof Configuration */ username?: string; /** * parameter for basic security * * @type {string} * @memberof Configuration */ password?: string; /** * parameter for oauth2 security * @param name security name * @param scopes oauth2 scope * @memberof Configuration */ accessToken?: string | ((name: string, scopes?: string[]) => string); /** * override base path * * @type {string} * @memberof Configuration */ basePath?: string; constructor(param: ConfigurationParameters = {}) { this.apiKey = param.apiKey; this.username = param.username; this.password = param.password; this.accessToken = param.accessToken; this.basePath = param.basePath; } }