@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
6
6
exports . Application = void 0 ;
7
7
const node_fetch_1 = __importDefault ( require ( "node-fetch" ) ) ; // import node-fetch
8
- const allocationMethods_1 = __importDefault ( require ( "./methods/allocationMethods" ) ) ;
9
- const databaseMethods_1 = __importDefault ( require ( "./methods/databaseMethods" ) ) ;
10
- const nestMethods_1 = __importDefault ( require ( "./methods/nestMethods" ) ) ;
11
- const nodeMethods_1 = __importDefault ( require ( "./methods/nodeMethods" ) ) ;
12
- const serverMethods_1 = __importDefault ( require ( "./methods/serverMethods" ) ) ;
13
- const userMethods_1 = __importDefault ( require ( "./methods/userMethods" ) ) ;
8
+ const allocationMethods_1 = require ( "./methods/allocationMethods" ) ;
9
+ const databaseMethods_1 = require ( "./methods/databaseMethods" ) ;
10
+ const nestMethods_1 = require ( "./methods/nestMethods" ) ;
11
+ const nodeMethods_1 = require ( "./methods/nodeMethods" ) ;
12
+ const serverMethods_1 = require ( "./methods/serverMethods" ) ;
13
+ const userMethods_1 = require ( "./methods/userMethods" ) ;
14
14
class Application {
15
15
/**
16
16
* @param host - Panels address
@@ -26,7 +26,7 @@ class Application {
26
26
this . host = host ;
27
27
if ( ! fast )
28
28
this . testAPI ( ) ;
29
- const servermethods = new serverMethods_1 . default ( host , key ) ;
29
+ const servermethods = new serverMethods_1 . serverMethods ( host , key ) ;
30
30
this . getAllServers = servermethods . getAllServers ;
31
31
this . getServerInfo = servermethods . getServerInfo ;
32
32
this . createServer = servermethods . createServer ;
@@ -38,31 +38,31 @@ class Application {
38
38
this . editServerDetails = servermethods . editServerDetails ;
39
39
this . editServerBuild = servermethods . editServerBuild ;
40
40
this . editServerStartup = servermethods . editServerStartup ;
41
- const nestmethods = new nestMethods_1 . default ( host , key ) ;
41
+ const nestmethods = new nestMethods_1 . nestMethods ( host , key ) ;
42
42
this . getAllNests = nestmethods . getAllNests ;
43
43
this . getNestInfo = nestmethods . getNestInfo ;
44
44
this . getAllNestEggs = nestmethods . getAllNestEggs ;
45
45
this . getEggInfo = nestmethods . getEggInfo ;
46
- const databasemethods = new databaseMethods_1 . default ( host , key ) ;
46
+ const databasemethods = new databaseMethods_1 . databaseMethods ( host , key ) ;
47
47
this . getServersDatabases = databasemethods . getServersDatabases ;
48
48
this . getServersDatabaseInfo = databasemethods . getServersDatabaseInfo ;
49
49
this . createDatabase = databasemethods . createDatabase ;
50
50
this . resetDatabasePassword = databasemethods . resetDatabasePassword ;
51
51
this . deleteDatabase = databasemethods . deleteDatabase ;
52
- const usermethods = new userMethods_1 . default ( host , key ) ;
52
+ const usermethods = new userMethods_1 . userMethods ( host , key ) ;
53
53
this . getAllUsers = usermethods . getAllUsers ;
54
54
this . getUserInfo = usermethods . getUserInfo ;
55
55
this . createUser = usermethods . createUser ;
56
56
this . editUser = usermethods . editUser ;
57
57
this . deleteUser = usermethods . deleteUser ;
58
- const nodemethods = new nodeMethods_1 . default ( host , key ) ;
58
+ const nodemethods = new nodeMethods_1 . nodeMethods ( host , key ) ;
59
59
this . getAllNodes = nodemethods . getAllNodes ;
60
60
this . getNodeInfo = nodemethods . getNodeInfo ;
61
61
this . getNodeConfig = nodemethods . getNodeConfig ;
62
62
this . createNode = nodemethods . createNode ;
63
63
this . editNode = nodemethods . editNode ;
64
64
this . deleteNode = nodemethods . deleteNode ;
65
- const allocationmethods = new allocationMethods_1 . default ( host , key ) ;
65
+ const allocationmethods = new allocationMethods_1 . allocationMethods ( host , key ) ;
66
66
this . getAllAllocations = allocationmethods . getAllAllocations ;
67
67
this . createAllocation = allocationmethods . createAllocation ;
68
68
this . deleteAllocation = allocationmethods . deleteAllocation ;
0 commit comments