@mtgame/core 0.1.61 → 0.1.63
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/bundles/mtgame-core.umd.js +16 -4
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/organization.js +12 -2
- package/esm2015/models/tournament.js +2 -1
- package/esm2015/utils/component-destroyed.js +6 -5
- package/fesm2015/mtgame-core.js +17 -5
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/organization.d.ts +8 -0
- package/models/tournament.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1315,6 +1315,11 @@
|
|
|
1315
1315
|
})
|
|
1316
1316
|
], exports.Team);
|
|
1317
1317
|
|
|
1318
|
+
exports.OrganizationStatuses = void 0;
|
|
1319
|
+
(function (OrganizationStatuses) {
|
|
1320
|
+
OrganizationStatuses[OrganizationStatuses["open"] = 1] = "open";
|
|
1321
|
+
OrganizationStatuses[OrganizationStatuses["blocked"] = 2] = "blocked";
|
|
1322
|
+
})(exports.OrganizationStatuses || (exports.OrganizationStatuses = {}));
|
|
1318
1323
|
exports.Organization = /** @class */ (function (_super) {
|
|
1319
1324
|
__extends(Organization, _super);
|
|
1320
1325
|
function Organization() {
|
|
@@ -1336,9 +1341,14 @@
|
|
|
1336
1341
|
id: 'id',
|
|
1337
1342
|
owner_id: 'ownerId',
|
|
1338
1343
|
owner: 'owner',
|
|
1344
|
+
status: 'status',
|
|
1345
|
+
name: 'name',
|
|
1346
|
+
phone: 'phone',
|
|
1347
|
+
email: 'email',
|
|
1339
1348
|
},
|
|
1340
1349
|
relation: {
|
|
1341
1350
|
owner: exports.User,
|
|
1351
|
+
status: enumField(exports.OrganizationStatuses)
|
|
1342
1352
|
}
|
|
1343
1353
|
})
|
|
1344
1354
|
], exports.Organization);
|
|
@@ -1679,6 +1689,7 @@
|
|
|
1679
1689
|
team_third: 'teamThird',
|
|
1680
1690
|
season: 'season',
|
|
1681
1691
|
season_id: 'seasonId',
|
|
1692
|
+
game_price: 'gamePrice',
|
|
1682
1693
|
},
|
|
1683
1694
|
relation: {
|
|
1684
1695
|
logo: exports.File,
|
|
@@ -9945,13 +9956,14 @@
|
|
|
9945
9956
|
}
|
|
9946
9957
|
function UntilDestroy(cmpType) {
|
|
9947
9958
|
var original = cmpType.prototype.ngOnDestroy;
|
|
9948
|
-
cmpType.prototype.__componentDestroyed$ = new Subject.Subject();
|
|
9949
9959
|
cmpType.prototype.__decoratorApplied = true;
|
|
9950
9960
|
cmpType.prototype.ngOnDestroy = function () {
|
|
9951
|
-
this.__componentDestroyed$.next();
|
|
9952
|
-
this.__componentDestroyed$.complete();
|
|
9953
|
-
delete this.__componentDestroyed$;
|
|
9954
9961
|
original.call(this);
|
|
9962
|
+
if (this.__componentDestroyed$) {
|
|
9963
|
+
this.__componentDestroyed$.next();
|
|
9964
|
+
this.__componentDestroyed$.complete();
|
|
9965
|
+
delete this.__componentDestroyed$;
|
|
9966
|
+
}
|
|
9955
9967
|
};
|
|
9956
9968
|
}
|
|
9957
9969
|
function getDef(type) {
|