@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.
- package/api/media-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +14 -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/media-api.js +4 -1
- package/esm2015/models/file.js +8 -1
- package/esm5/api/media-api.js +4 -1
- package/esm5/models/file.js +12 -1
- package/fesm2015/mtgame-core.js +10 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +14 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/file.d.ts +4 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -371,6 +371,16 @@ var File = /** @class */ (function () {
|
|
|
371
371
|
enumerable: true,
|
|
372
372
|
configurable: true
|
|
373
373
|
});
|
|
374
|
+
Object.defineProperty(File.prototype, "path", {
|
|
375
|
+
get: function () {
|
|
376
|
+
return this.resizedPath || this._path;
|
|
377
|
+
},
|
|
378
|
+
set: function (filePath) {
|
|
379
|
+
this._path = filePath;
|
|
380
|
+
},
|
|
381
|
+
enumerable: true,
|
|
382
|
+
configurable: true
|
|
383
|
+
});
|
|
374
384
|
File.toFront = function (data) {
|
|
375
385
|
return null;
|
|
376
386
|
};
|
|
@@ -390,6 +400,7 @@ var File = /** @class */ (function () {
|
|
|
390
400
|
name: 'name',
|
|
391
401
|
original_name: 'originalName',
|
|
392
402
|
path: 'path',
|
|
403
|
+
resized_path: 'resizedPath',
|
|
393
404
|
mime_type: 'mimeType',
|
|
394
405
|
size: 'size',
|
|
395
406
|
engine: 'engine',
|
|
@@ -5304,6 +5315,9 @@ var MediaApi = /** @class */ (function () {
|
|
|
5304
5315
|
if (filters.sort) {
|
|
5305
5316
|
params = params.set('sort', filters.sort);
|
|
5306
5317
|
}
|
|
5318
|
+
if (filters.teamId) {
|
|
5319
|
+
params = params.set('team_id', filters.teamId.toString());
|
|
5320
|
+
}
|
|
5307
5321
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/media/", { params: params, observe: 'response' })
|
|
5308
5322
|
.pipe(map(function (response) { return ({
|
|
5309
5323
|
total: +response.headers.get('X-Page-Count'),
|