#2956 [typescript] change accessToken name parameter to optional (#3555)

* [typescript] change accessToken name parameter to optional

* [typescript] update samples for ts-fetch and ts-rxjs
This commit is contained in:
Cristian Achille 2019-08-05 12:37:13 +02:00 committed by Esteban Gehring
parent b20118b87c
commit 00f7134eb3
18 changed files with 25 additions and 25 deletions

View File

@ -5,7 +5,7 @@ export interface ConfigurationParameters {
apiKey?: string | ((name: string) => string); apiKey?: string | ((name: string) => string);
username?: string; username?: string;
password?: string; password?: string;
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
basePath?: string; basePath?: string;
baseOptions?: any; baseOptions?: any;
} }
@ -37,7 +37,7 @@ export class Configuration {
* @param scopes oauth2 scope * @param scopes oauth2 scope
* @memberof Configuration * @memberof Configuration
*/ */
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
/** /**
* override base path * override base path
* *

View File

@ -120,7 +120,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -12,7 +12,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -16,7 +16,7 @@ export interface ConfigurationParameters {
apiKey?: string | ((name: string) => string); apiKey?: string | ((name: string) => string);
username?: string; username?: string;
password?: string; password?: string;
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
basePath?: string; basePath?: string;
baseOptions?: any; baseOptions?: any;
} }
@ -48,7 +48,7 @@ export class Configuration {
* @param scopes oauth2 scope * @param scopes oauth2 scope
* @memberof Configuration * @memberof Configuration
*/ */
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
/** /**
* override base path * override base path
* *

View File

@ -16,7 +16,7 @@ export interface ConfigurationParameters {
apiKey?: string | ((name: string) => string); apiKey?: string | ((name: string) => string);
username?: string; username?: string;
password?: string; password?: string;
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
basePath?: string; basePath?: string;
baseOptions?: any; baseOptions?: any;
} }
@ -48,7 +48,7 @@ export class Configuration {
* @param scopes oauth2 scope * @param scopes oauth2 scope
* @memberof Configuration * @memberof Configuration
*/ */
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
/** /**
* override base path * override base path
* *

View File

@ -16,7 +16,7 @@ export interface ConfigurationParameters {
apiKey?: string | ((name: string) => string); apiKey?: string | ((name: string) => string);
username?: string; username?: string;
password?: string; password?: string;
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
basePath?: string; basePath?: string;
baseOptions?: any; baseOptions?: any;
} }
@ -48,7 +48,7 @@ export class Configuration {
* @param scopes oauth2 scope * @param scopes oauth2 scope
* @memberof Configuration * @memberof Configuration
*/ */
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
/** /**
* override base path * override base path
* *

View File

@ -16,7 +16,7 @@ export interface ConfigurationParameters {
apiKey?: string | ((name: string) => string); apiKey?: string | ((name: string) => string);
username?: string; username?: string;
password?: string; password?: string;
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
basePath?: string; basePath?: string;
baseOptions?: any; baseOptions?: any;
} }
@ -48,7 +48,7 @@ export class Configuration {
* @param scopes oauth2 scope * @param scopes oauth2 scope
* @memberof Configuration * @memberof Configuration
*/ */
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
/** /**
* override base path * override base path
* *

View File

@ -16,7 +16,7 @@ export interface ConfigurationParameters {
apiKey?: string | ((name: string) => string); apiKey?: string | ((name: string) => string);
username?: string; username?: string;
password?: string; password?: string;
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
basePath?: string; basePath?: string;
baseOptions?: any; baseOptions?: any;
} }
@ -48,7 +48,7 @@ export class Configuration {
* @param scopes oauth2 scope * @param scopes oauth2 scope
* @memberof Configuration * @memberof Configuration
*/ */
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
/** /**
* override base path * override base path
* *

View File

@ -16,7 +16,7 @@ export interface ConfigurationParameters {
apiKey?: string | ((name: string) => string); apiKey?: string | ((name: string) => string);
username?: string; username?: string;
password?: string; password?: string;
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
basePath?: string; basePath?: string;
baseOptions?: any; baseOptions?: any;
} }
@ -48,7 +48,7 @@ export class Configuration {
* @param scopes oauth2 scope * @param scopes oauth2 scope
* @memberof Configuration * @memberof Configuration
*/ */
accessToken?: string | ((name: string, scopes?: string[]) => string); accessToken?: string | ((name?: string, scopes?: string[]) => string);
/** /**
* override base path * override base path
* *

View File

@ -131,7 +131,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -131,7 +131,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -131,7 +131,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -131,7 +131,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -131,7 +131,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -23,7 +23,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -23,7 +23,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -23,7 +23,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {

View File

@ -23,7 +23,7 @@ export interface ConfigurationParameters {
username?: string; // parameter for basic security username?: string; // parameter for basic security
password?: string; // parameter for basic security password?: string; // parameter for basic security
apiKey?: string | ((name: string) => string); // parameter for apiKey security apiKey?: string | ((name: string) => string); // parameter for apiKey security
accessToken?: string | ((name: string, scopes?: string[]) => string); // parameter for oauth2 security accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
} }
export class Configuration { export class Configuration {