@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.
@@ -6,4 +6,5 @@ export declare class FeedbackApi {
6
6
  private configService;
7
7
  constructor(httpClient: HttpClient, configService: ConfigService);
8
8
  sendFeedback(data: any): Promise<Feedback>;
9
+ sendLeagueFeedback(leagueId: number, data: any): Promise<Feedback>;
9
10
  }
@@ -2488,6 +2488,8 @@
2488
2488
  theme: 'theme',
2489
2489
  message: 'message',
2490
2490
  files: 'files',
2491
+ email: 'email',
2492
+ captcha: 'captcha',
2491
2493
  },
2492
2494
  relation: {
2493
2495
  files: File
@@ -2511,6 +2513,15 @@
2511
2513
  });
2512
2514
  });
2513
2515
  };
2516
+ FeedbackApi.prototype.sendLeagueFeedback = function (leagueId, data) {
2517
+ return __awaiter(this, void 0, void 0, function () {
2518
+ return __generator(this, function (_a) {
2519
+ return [2 /*return*/, this.httpClient.post(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/feedback/", Feedback.toBack(data))
2520
+ .pipe(operators.map(function (response) { return Feedback.toFront(response); }))
2521
+ .toPromise()];
2522
+ });
2523
+ });
2524
+ };
2514
2525
  FeedbackApi.ctorParameters = function () { return [
2515
2526
  { type: http.HttpClient },
2516
2527
  { type: ConfigService }