@triveria/wallet / Exports / Configuration
Class: Configuration
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Configuration(param?
): Configuration
Parameters
Name | Type |
---|---|
param | ConfigurationParameters |
Returns
Defined in
Properties
accessToken
• Optional
accessToken: string
| Promise
<string
> | (name?
: string
, scopes?
: string
[]) => string
| (name?
: string
, scopes?
: string
[]) => Promise
<string
>
parameter for oauth2 security
Param
security name
Param
oauth2 scope
Memberof
Configuration
Defined in
apiKey
• Optional
apiKey: string
| Promise
<string
> | (name
: string
) => string
| (name
: string
) => Promise
<string
>
parameter for apiKey security
Param
security name
Memberof
Configuration
Defined in
baseOptions
• Optional
baseOptions: any
base options for axios calls
Memberof
Configuration
Defined in
basePath
• Optional
basePath: string
override base path
Memberof
Configuration
Defined in
formDataCtor
• Optional
formDataCtor: () => any
The FormData constructor that will be used to create multipart form data requests. You can inject this here so that execution environments that do not support the FormData class can still run the generated client.
Type declaration
• new formDataCtor(): any
The FormData constructor that will be used to create multipart form data requests. You can inject this here so that execution environments that do not support the FormData class can still run the generated client.
Returns
any
Defined in
password
• Optional
password: string
parameter for basic security
Memberof
Configuration
Defined in
serverIndex
• Optional
serverIndex: number
override server index
Memberof
Configuration
Defined in
username
• Optional
username: string
parameter for basic security
Memberof
Configuration
Defined in
Methods
isJsonMime
▸ isJsonMime(mime
): boolean
Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json
Parameters
Name | Type | Description |
---|---|---|
mime | string | MIME (Multipurpose Internet Mail Extensions) |
Returns
boolean
True if the given MIME is JSON, false otherwise.