@mtgame/core 0.0.75 → 0.0.77

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.
@@ -14,6 +14,7 @@ export interface GameMediaFilters {
14
14
  export interface MediaFilters {
15
15
  mediaType?: 'photo' | 'video' | 'live_video';
16
16
  sort?: string;
17
+ teamId?: number;
17
18
  }
18
19
  export declare class MediaApi {
19
20
  private httpClient;
@@ -584,6 +584,16 @@
584
584
  enumerable: true,
585
585
  configurable: true
586
586
  });
587
+ Object.defineProperty(File.prototype, "path", {
588
+ get: function () {
589
+ return this.resizedPath || this._path;
590
+ },
591
+ set: function (filePath) {
592
+ this._path = filePath;
593
+ },
594
+ enumerable: true,
595
+ configurable: true
596
+ });
587
597
  File.toFront = function (data) {
588
598
  return null;
589
599
  };
@@ -603,6 +613,7 @@
603
613
  name: 'name',
604
614
  original_name: 'originalName',
605
615
  path: 'path',
616
+ resized_path: 'resizedPath',
606
617
  mime_type: 'mimeType',
607
618
  size: 'size',
608
619
  engine: 'engine',
@@ -5517,6 +5528,9 @@
5517
5528
  if (filters.sort) {
5518
5529
  params = params.set('sort', filters.sort);
5519
5530
  }
5531
+ if (filters.teamId) {
5532
+ params = params.set('team_id', filters.teamId.toString());
5533
+ }
5520
5534
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/media/", { params: params, observe: 'response' })
5521
5535
  .pipe(operators.map(function (response) { return ({
5522
5536
  total: +response.headers.get('X-Page-Count'),