@smartico/public-api 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Missions/UserAchievement.d.ts +1 -0
- package/dist/SmarticoAPI.d.ts +1 -0
- package/dist/WSAPI/WSAPI.d.ts +3 -1
- package/dist/index.js +46 -28
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +20 -13
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +13 -1
- package/package.json +1 -1
- package/src/Level/GetLevelMapResponse.ts +1 -1
- package/src/Missions/UserAchievement.ts +2 -1
- package/src/SmarticoAPI.ts +15 -12
- package/src/WSAPI/WSAPI.ts +7 -1
package/src/WSAPI/WSAPI.ts
CHANGED
|
@@ -10,7 +10,7 @@ export class WSAPI {
|
|
|
10
10
|
constructor(private api: SmarticoAPI) {
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
/** Returns
|
|
13
|
+
/** Returns information about current user */
|
|
14
14
|
public async getUserProfile(): Promise<TUserProfile> {
|
|
15
15
|
if (this.api.tracker) {
|
|
16
16
|
const o: TUserProfile = Object.assign({}, this.api.tracker.userPublicProps);
|
|
@@ -31,4 +31,10 @@ export class WSAPI {
|
|
|
31
31
|
return this.api.missionsGetItemsT(null);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/** Returns all the badges available the current user */
|
|
35
|
+
public async getBadges(): Promise<TMissionOrBadge[]> {
|
|
36
|
+
return this.api.missionsGetItemsT(null);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
34
40
|
}
|