@wireapp/api-client
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -17,2 +17,3 @@ "use strict"; | ||
var UserAPI_1 = require("../user/UserAPI"); | ||
var TeamAPI_1 = require("../team/TeamAPI"); | ||
var WebSocketClient_1 = require("../tcp/WebSocketClient"); | ||
@@ -34,2 +35,5 @@ var WireAPIClient = (function (_super) { | ||
}; | ||
_this.team = { | ||
api: undefined | ||
}; | ||
_this.client.http = new HttpClient_1.default(urls.rest); | ||
@@ -39,2 +43,3 @@ _this.client.ws = new WebSocketClient_1.default(urls.ws); | ||
_this.user.api = new UserAPI_1.default(_this.client.http); | ||
_this.team.api = new TeamAPI_1.default(_this.client.http); | ||
return _this; | ||
@@ -41,0 +46,0 @@ } |
@@ -44,3 +44,3 @@ { | ||
}, | ||
"version": "0.0.12" | ||
"version": "0.0.13" | ||
} |
@@ -7,2 +7,3 @@ import * as WebSocket from 'ws'; | ||
import UserAPI from '../user/UserAPI'; | ||
import TeamAPI from '../team/TeamAPI'; | ||
import WebSocketClient from '../tcp/WebSocketClient'; | ||
@@ -24,2 +25,6 @@ | ||
public team: { api: TeamAPI } = { | ||
api: undefined | ||
}; | ||
public static TOPIC = { | ||
@@ -37,2 +42,3 @@ WEB_SOCKET_MESSAGE: 'WireAPIClient.TOPIC.WEB_SOCKET_MESSAGE' | ||
this.user.api = new UserAPI(this.client.http); | ||
this.team.api = new TeamAPI(this.client.http); | ||
} | ||
@@ -39,0 +45,0 @@ |
626059
68
4194