33/**
44 * Hostinger API
55 *
6- * API Version: 0.0.6
6+ * API Version: 0.0.7
77 *
88 * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99 * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1010 */
1111
1212
1313export interface ConfigurationParameters {
14- apiKey ?: string | Promise < string > | ( ( name : string ) => string ) | ( ( name : string ) => Promise < string > ) ;
15- username ?: string ;
16- password ?: string ;
1714 accessToken ?: string | Promise < string > | ( ( name ?: string , scopes ?: string [ ] ) => string ) | ( ( name ?: string , scopes ?: string [ ] ) => Promise < string > ) ;
1815 basePath ?: string ;
19- serverIndex ?: number ;
2016 baseOptions ?: any ;
2117 formDataCtor ?: new ( ) => any ;
2218}
2319
2420export class Configuration {
25- /**
26- * parameter for apiKey security
27- * @param name security name
28- * @memberof Configuration
29- */
30- apiKey ?: string | Promise < string > | ( ( name : string ) => string ) | ( ( name : string ) => Promise < string > ) ;
31- /**
32- * parameter for basic security
33- *
34- * @type {string }
35- * @memberof Configuration
36- */
37- username ?: string ;
38- /**
39- * parameter for basic security
40- *
41- * @type {string }
42- * @memberof Configuration
43- */
44- password ?: string ;
45- /**
46- * parameter for oauth2 security
47- * @param name security name
48- * @param scopes oauth2 scope
49- * @memberof Configuration
50- */
5121 accessToken ?: string | Promise < string > | ( ( name ?: string , scopes ?: string [ ] ) => string ) | ( ( name ?: string , scopes ?: string [ ] ) => Promise < string > ) ;
5222 /**
5323 * override base path
@@ -62,13 +32,6 @@ export class Configuration {
6232 * @type {number }
6333 * @memberof Configuration
6434 */
65- serverIndex ?: number ;
66- /**
67- * base options for axios calls
68- *
69- * @type {any }
70- * @memberof Configuration
71- */
7235 baseOptions ?: any ;
7336 /**
7437 * The FormData constructor that will be used to create multipart form data
@@ -80,16 +43,12 @@ export class Configuration {
8043 formDataCtor ?: new ( ) => any ;
8144
8245 constructor ( param : ConfigurationParameters = { } ) {
83- this . apiKey = param . apiKey ;
84- this . username = param . username ;
85- this . password = param . password ;
8646 this . accessToken = param . accessToken ;
8747 this . basePath = param . basePath ;
88- this . serverIndex = param . serverIndex ;
8948 this . baseOptions = {
9049 ...param . baseOptions ,
9150 headers : {
92- 'User-Agent' : "hostinger-api-typescript/0.0.7 " ,
51+ 'User-Agent' : "hostinger-api-typescript/0.0.2 " ,
9352 ...param . baseOptions ?. headers ,
9453 } ,
9554 } ;
0 commit comments