@mtgame/core 0.0.39 → 0.0.41
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/api/feedback-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +11 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/feedback-api.js +8 -1
- package/esm2015/models/league-news.js +3 -1
- package/esm5/api/feedback-api.js +10 -1
- package/esm5/models/league-news.js +3 -1
- package/fesm2015/mtgame-core.js +9 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +11 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/league-news.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/feedback-api.d.ts
CHANGED
|
@@ -2511,6 +2511,15 @@
|
|
|
2511
2511
|
});
|
|
2512
2512
|
});
|
|
2513
2513
|
};
|
|
2514
|
+
FeedbackApi.prototype.sendLeagueFeedback = function (leagueId, data) {
|
|
2515
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2516
|
+
return __generator(this, function (_a) {
|
|
2517
|
+
return [2 /*return*/, this.httpClient.post(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/feedback/", Feedback.toBack(data))
|
|
2518
|
+
.pipe(operators.map(function (response) { return Feedback.toFront(response); }))
|
|
2519
|
+
.toPromise()];
|
|
2520
|
+
});
|
|
2521
|
+
});
|
|
2522
|
+
};
|
|
2514
2523
|
FeedbackApi.ctorParameters = function () { return [
|
|
2515
2524
|
{ type: http.HttpClient },
|
|
2516
2525
|
{ type: ConfigService }
|
|
@@ -3082,6 +3091,7 @@
|
|
|
3082
3091
|
detail_text: 'detailText',
|
|
3083
3092
|
picture: 'picture',
|
|
3084
3093
|
cover: 'cover',
|
|
3094
|
+
mobile_picture: 'mobilePicture',
|
|
3085
3095
|
is_main: 'isMain',
|
|
3086
3096
|
tournaments: 'tournaments',
|
|
3087
3097
|
},
|
|
@@ -3089,6 +3099,7 @@
|
|
|
3089
3099
|
datetime: DateTimeField,
|
|
3090
3100
|
picture: File,
|
|
3091
3101
|
cover: File,
|
|
3102
|
+
mobilePicture: File,
|
|
3092
3103
|
tournaments: listField(Tournament)
|
|
3093
3104
|
}
|
|
3094
3105
|
})
|