Push before general cleanup to avoid merge errors
This commit is contained in:
42
node_modules/googleapis-common/build/src/discovery.d.ts
generated
vendored
Normal file
42
node_modules/googleapis-common/build/src/discovery.d.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import { GlobalOptions } from './api';
|
||||
import { Endpoint } from './endpoint';
|
||||
export declare type EndpointCreator = (options: GlobalOptions, google: {}) => Endpoint;
|
||||
export interface DiscoveryOptions {
|
||||
includePrivate?: boolean;
|
||||
debug?: boolean;
|
||||
}
|
||||
export declare class Discovery {
|
||||
private transporter;
|
||||
private options;
|
||||
/**
|
||||
* Discovery for discovering API endpoints
|
||||
*
|
||||
* @param options Options for discovery
|
||||
*/
|
||||
constructor(options: DiscoveryOptions);
|
||||
/**
|
||||
* Generate and Endpoint from an endpoint schema object.
|
||||
*
|
||||
* @param schema The schema from which to generate the Endpoint.
|
||||
* @return A function that creates an endpoint.
|
||||
*/
|
||||
private makeEndpoint;
|
||||
/**
|
||||
* Log output of generator. Works just like console.log
|
||||
*/
|
||||
private log;
|
||||
/**
|
||||
* Generate all APIs and return as in-memory object.
|
||||
* @param discoveryUrl
|
||||
*/
|
||||
discoverAllAPIs(discoveryUrl: string): Promise<{}>;
|
||||
/**
|
||||
* Generate API file given discovery URL
|
||||
*
|
||||
* @param apiDiscoveryUrl URL or filename of discovery doc for API
|
||||
* @returns A promise that resolves with a function that creates the endpoint
|
||||
*/
|
||||
discoverAPI(apiDiscoveryUrl: string | {
|
||||
url?: string;
|
||||
}): Promise<EndpointCreator>;
|
||||
}
|
||||
Reference in New Issue
Block a user