@mtgame/core 0.0.40 → 0.0.42
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/feedback.js +3 -1
- package/esm5/api/feedback-api.js +10 -1
- package/esm5/models/feedback.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/feedback.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2275,6 +2275,8 @@ var Feedback = /** @class */ (function () {
|
|
|
2275
2275
|
theme: 'theme',
|
|
2276
2276
|
message: 'message',
|
|
2277
2277
|
files: 'files',
|
|
2278
|
+
email: 'email',
|
|
2279
|
+
captcha: 'captcha',
|
|
2278
2280
|
},
|
|
2279
2281
|
relation: {
|
|
2280
2282
|
files: File
|
|
@@ -2298,6 +2300,15 @@ var FeedbackApi = /** @class */ (function () {
|
|
|
2298
2300
|
});
|
|
2299
2301
|
});
|
|
2300
2302
|
};
|
|
2303
|
+
FeedbackApi.prototype.sendLeagueFeedback = function (leagueId, data) {
|
|
2304
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2305
|
+
return __generator(this, function (_a) {
|
|
2306
|
+
return [2 /*return*/, this.httpClient.post(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/feedback/", Feedback.toBack(data))
|
|
2307
|
+
.pipe(map(function (response) { return Feedback.toFront(response); }))
|
|
2308
|
+
.toPromise()];
|
|
2309
|
+
});
|
|
2310
|
+
});
|
|
2311
|
+
};
|
|
2301
2312
|
FeedbackApi.ctorParameters = function () { return [
|
|
2302
2313
|
{ type: HttpClient },
|
|
2303
2314
|
{ type: ConfigService }
|