@stemy/backend 3.2.4 → 3.3.1
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/stemy-backend.umd.js +194 -117
- package/bundles/stemy-backend.umd.js.map +1 -1
- package/bundles/stemy-backend.umd.min.js +1 -1
- package/bundles/stemy-backend.umd.min.js.map +1 -1
- package/common-types.d.ts +6 -27
- package/esm2015/common-types.js +1 -1
- package/esm2015/public_api.js +2 -1
- package/esm2015/requests/asset-image-params.js +70 -0
- package/esm2015/rest-controllers/assets.controller.js +5 -4
- package/esm2015/services/asset-processor.js +1 -1
- package/esm2015/services/assets.js +1 -1
- package/esm2015/services/entities/lazy-asset.js +1 -1
- package/esm2015/services/gallery.js +1 -1
- package/esm2015/services/job-manager.js +1 -1
- package/esm2015/services/mongo-connector.js +2 -4
- package/esm2015/services/template-renderer.js +1 -1
- package/esm2015/utilities/di-container.js +1 -1
- package/esm2015/utils.js +15 -11
- package/fesm2015/stemy-backend.js +187 -116
- package/fesm2015/stemy-backend.js.map +1 -1
- package/package.json +8 -8
- package/public_api.d.ts +2 -1
- package/requests/asset-image-params.d.ts +12 -0
- package/rest-controllers/assets.controller.d.ts +5 -4
- package/services/template-renderer.d.ts +1 -1
- package/stemy-backend.metadata.json +1 -1
- package/utils.d.ts +15 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('path'), require('body-parser'), require('jsonwebtoken'), require('tsyringe'), require('routing-controllers'), require('socket-controllers'), require('routing-controllers-openapi'), require('class-transformer/storage'), require('class-validator'), require('class-validator-jsonschema'), require('child_process'), require('crypto'), require('rxjs'), require('rxjs/internal/util/canReportError'), require('fs'), require('mongoose'), require('mongoose/lib/utils'), require('stream'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@stemy/backend', ['exports', 'path', 'body-parser', 'jsonwebtoken', 'tsyringe', 'routing-controllers', 'socket-controllers', 'routing-controllers-openapi', 'class-transformer/storage', 'class-validator', 'class-validator-jsonschema', 'child_process', 'crypto', 'rxjs', 'rxjs/internal/util/canReportError', 'fs', 'mongoose', 'mongoose/lib/utils', 'stream', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.stemy = global.stemy || {}, global.stemy.backend = {}), global.path, global["body-parser"], global.jsonwebtoken, global.tsyringe, global["routing-controllers"], global["socket-controllers"], global["routing-controllers-openapi"], global["class-transformer/storage"], global["class-validator"], global["class-validator-jsonschema"], global.child_process, global.crypto, global.rxjs, global.rxjs["internal/util/canReportError"], global.fs, global.mongoose, global["mongoose-lib-utils"], global.stream, global.
|
|
5
|
-
})(this, (function (exports, path, bodyParser, jsonwebtoken, tsyringe, routingControllers, socketControllers, routingControllersOpenapi, storage, classValidator, classValidatorJsonschema, child_process, crypto, rxjs, canReportError, fs, mongoose, utils, stream,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('path'), require('body-parser'), require('jsonwebtoken'), require('tsyringe'), require('routing-controllers'), require('socket-controllers'), require('routing-controllers-openapi'), require('class-transformer/storage'), require('class-validator'), require('class-validator-jsonschema'), require('child_process'), require('crypto'), require('rxjs'), require('rxjs/internal/util/canReportError'), require('fs'), require('mongodb'), require('mongoose'), require('mongoose/lib/utils'), require('stream'), require('sharp'), require('bson'), require('fontkit'), require('file-type'), require('axios'), require('dotenv'), require('node-cron'), require('zeromq'), require('rxjs/operators'), require('http'), require('express'), require('socket.io'), require('uuid'), require('nodemailer'), require('handlebars'), require('bcrypt'), require('moment')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@stemy/backend', ['exports', 'path', 'body-parser', 'jsonwebtoken', 'tsyringe', 'routing-controllers', 'socket-controllers', 'routing-controllers-openapi', 'class-transformer/storage', 'class-validator', 'class-validator-jsonschema', 'child_process', 'crypto', 'rxjs', 'rxjs/internal/util/canReportError', 'fs', 'mongodb', 'mongoose', 'mongoose/lib/utils', 'stream', 'sharp', 'bson', 'fontkit', 'file-type', 'axios', 'dotenv', 'node-cron', 'zeromq', 'rxjs/operators', 'http', 'express', 'socket.io', 'uuid', 'nodemailer', 'handlebars', 'bcrypt', 'moment'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.stemy = global.stemy || {}, global.stemy.backend = {}), global.path, global["body-parser"], global.jsonwebtoken, global.tsyringe, global["routing-controllers"], global["socket-controllers"], global["routing-controllers-openapi"], global["class-transformer/storage"], global["class-validator"], global["class-validator-jsonschema"], global.child_process, global.crypto, global.rxjs, global.rxjs["internal/util/canReportError"], global.fs, global.mongodb, global.mongoose, global["mongoose-lib-utils"], global.stream, global.sharp, global.bson, global.fontkit, global["file-type"], global.axios, global.dotenv, global["node-cron"], global.zeromq, global.rxjs.operators, global.http, global.express, global.socket.io, global.uuid, global.nodemailer, global.handlebars, global.bcrypt, global.moment));
|
|
5
|
+
})(this, (function (exports, path, bodyParser, jsonwebtoken, tsyringe, routingControllers, socketControllers, routingControllersOpenapi, storage, classValidator, classValidatorJsonschema, child_process, crypto, rxjs, canReportError, fs, mongodb, mongoose, utils, stream, sharp_, bson, fontKit_, fileType, axios, dotenv, nodeCron, zeromq, operators, http, express_, socket_io, uuid, nodemailer, Handlebars, bcrypt, moment) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
return t;
|
|
89
89
|
}
|
|
90
|
-
function __decorate$
|
|
90
|
+
function __decorate$z(decorators, target, key, desc) {
|
|
91
91
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
92
92
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
93
93
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
function __param$9(paramIndex, decorator) {
|
|
101
101
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
102
102
|
}
|
|
103
|
-
function __metadata$
|
|
103
|
+
function __metadata$r(metadataKey, metadataValue) {
|
|
104
104
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
105
105
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
106
106
|
}
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
sortAggregation = !sortField ? [] : [{
|
|
678
678
|
$sort: (_a = {}, _a[sortField] = sortField == params.sort ? 1 : -1, _a)
|
|
679
679
|
}];
|
|
680
|
-
return [4 /*yield*/, model.aggregate(
|
|
680
|
+
return [4 /*yield*/, model.aggregate(__spreadArray(__spreadArray(__spreadArray([], __read(aggregations)), __read(sortAggregation)), [
|
|
681
681
|
{
|
|
682
682
|
$group: {
|
|
683
683
|
_id: "results",
|
|
@@ -1003,9 +1003,9 @@
|
|
|
1003
1003
|
return routingControllers.createParamDecorator({
|
|
1004
1004
|
required: false,
|
|
1005
1005
|
value: function (action) { return __awaiter$w(_this, void 0, void 0, function () {
|
|
1006
|
-
var req, token, id, query, doc,
|
|
1007
|
-
return __generator(this, function (
|
|
1008
|
-
switch (
|
|
1006
|
+
var req, token, id, query, doc, e_4;
|
|
1007
|
+
return __generator(this, function (_a) {
|
|
1008
|
+
switch (_a.label) {
|
|
1009
1009
|
case 0:
|
|
1010
1010
|
req = action.request;
|
|
1011
1011
|
token = req.header("x-" + paramName + "-token");
|
|
@@ -1016,28 +1016,29 @@
|
|
|
1016
1016
|
query = !token
|
|
1017
1017
|
? model.findById(id)
|
|
1018
1018
|
: model.findOne({ token: token });
|
|
1019
|
-
|
|
1019
|
+
doc = null;
|
|
1020
|
+
if (!isFunction(extraCheck)) return [3 /*break*/, 5];
|
|
1021
|
+
_a.label = 1;
|
|
1020
1022
|
case 1:
|
|
1021
|
-
|
|
1023
|
+
_a.trys.push([1, 3, , 4]);
|
|
1024
|
+
return [4 /*yield*/, valueToPromise(extraCheck(query, action))];
|
|
1025
|
+
case 2:
|
|
1026
|
+
doc = _a.sent();
|
|
1027
|
+
return [3 /*break*/, 4];
|
|
1028
|
+
case 3:
|
|
1029
|
+
e_4 = _a.sent();
|
|
1030
|
+
throw new routingControllers.BadRequestError(modelName + " check error: " + (e_4.message || e_4));
|
|
1031
|
+
case 4: return [3 /*break*/, 7];
|
|
1032
|
+
case 5: return [4 /*yield*/, query];
|
|
1033
|
+
case 6:
|
|
1034
|
+
doc = _a.sent();
|
|
1035
|
+
_a.label = 7;
|
|
1036
|
+
case 7:
|
|
1022
1037
|
if (!doc) {
|
|
1023
1038
|
throw new routingControllers.HttpError(404, !token
|
|
1024
1039
|
? modelName + " could not be found with id: " + id
|
|
1025
1040
|
: modelName + " could not be found with token: " + token);
|
|
1026
1041
|
}
|
|
1027
|
-
if (!isFunction(extraCheck)) return [3 /*break*/, 5];
|
|
1028
|
-
_c.label = 2;
|
|
1029
|
-
case 2:
|
|
1030
|
-
_c.trys.push([2, 4, , 5]);
|
|
1031
|
-
_a = action.request;
|
|
1032
|
-
_b = paramName;
|
|
1033
|
-
return [4 /*yield*/, valueToPromise(extraCheck(query, action))];
|
|
1034
|
-
case 3:
|
|
1035
|
-
_a[_b] = (_c.sent()) || doc;
|
|
1036
|
-
return [2 /*return*/, action.request[paramName]];
|
|
1037
|
-
case 4:
|
|
1038
|
-
e_4 = _c.sent();
|
|
1039
|
-
throw new routingControllers.BadRequestError(modelName + " check error: " + (e_4.message || e_4));
|
|
1040
|
-
case 5:
|
|
1041
1042
|
action.request[paramName] = doc;
|
|
1042
1043
|
return [2 /*return*/, doc];
|
|
1043
1044
|
}
|
|
@@ -1058,7 +1059,9 @@
|
|
|
1058
1059
|
if (Array.isArray(value)) {
|
|
1059
1060
|
return value.map(idToString);
|
|
1060
1061
|
}
|
|
1061
|
-
return value instanceof
|
|
1062
|
+
return value instanceof mongodb.ObjectId || value instanceof mongoose.Types.ObjectId
|
|
1063
|
+
? value.toHexString()
|
|
1064
|
+
: (isString(value) ? value : value || null);
|
|
1062
1065
|
}
|
|
1063
1066
|
function createTransformer(transform) {
|
|
1064
1067
|
return function (doc, ret, options) {
|
|
@@ -1321,7 +1324,7 @@
|
|
|
1321
1324
|
return ("" + str).replace(/[&\/\\#, +()$~%.@'":*?<>{}]/g, to);
|
|
1322
1325
|
}
|
|
1323
1326
|
|
|
1324
|
-
var __decorate$
|
|
1327
|
+
var __decorate$y = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
1325
1328
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1326
1329
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1327
1330
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1362,7 +1365,7 @@
|
|
|
1362
1365
|
};
|
|
1363
1366
|
return IsFile;
|
|
1364
1367
|
}());
|
|
1365
|
-
exports.IsFile = __decorate$
|
|
1368
|
+
exports.IsFile = __decorate$y([
|
|
1366
1369
|
classValidator.ValidatorConstraint()
|
|
1367
1370
|
], exports.IsFile);
|
|
1368
1371
|
exports.IsObjectId = /** @class */ (function () {
|
|
@@ -1374,7 +1377,7 @@
|
|
|
1374
1377
|
};
|
|
1375
1378
|
return IsObjectId;
|
|
1376
1379
|
}());
|
|
1377
|
-
exports.IsObjectId = __decorate$
|
|
1380
|
+
exports.IsObjectId = __decorate$y([
|
|
1378
1381
|
classValidator.ValidatorConstraint()
|
|
1379
1382
|
], exports.IsObjectId);
|
|
1380
1383
|
|
|
@@ -1436,7 +1439,7 @@
|
|
|
1436
1439
|
return Parameter;
|
|
1437
1440
|
}());
|
|
1438
1441
|
|
|
1439
|
-
var __decorate$
|
|
1442
|
+
var __decorate$x = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
1440
1443
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1441
1444
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1442
1445
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1595,12 +1598,12 @@
|
|
|
1595
1598
|
};
|
|
1596
1599
|
return AssetProcessor;
|
|
1597
1600
|
}());
|
|
1598
|
-
exports.AssetProcessor = AssetProcessor_1 = __decorate$
|
|
1601
|
+
exports.AssetProcessor = AssetProcessor_1 = __decorate$x([
|
|
1599
1602
|
tsyringe.injectable(),
|
|
1600
1603
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped)
|
|
1601
1604
|
], exports.AssetProcessor);
|
|
1602
1605
|
|
|
1603
|
-
var __decorate$
|
|
1606
|
+
var __decorate$w = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
1604
1607
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1605
1608
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1606
1609
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1610,7 +1613,7 @@
|
|
|
1610
1613
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1611
1614
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1612
1615
|
};
|
|
1613
|
-
var __metadata$
|
|
1616
|
+
var __metadata$q = (this && this.__metadata) || function (k, v) {
|
|
1614
1617
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1615
1618
|
return Reflect.metadata(k, v);
|
|
1616
1619
|
};
|
|
@@ -1652,14 +1655,14 @@
|
|
|
1652
1655
|
};
|
|
1653
1656
|
return Configuration;
|
|
1654
1657
|
}());
|
|
1655
|
-
exports.Configuration = __decorate$
|
|
1658
|
+
exports.Configuration = __decorate$w([
|
|
1656
1659
|
tsyringe.injectable(),
|
|
1657
1660
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
1658
1661
|
__param$8(0, tsyringe.injectAll(PARAMETER)),
|
|
1659
|
-
__metadata$
|
|
1662
|
+
__metadata$q("design:paramtypes", [Array])
|
|
1660
1663
|
], exports.Configuration);
|
|
1661
1664
|
|
|
1662
|
-
var __decorate$
|
|
1665
|
+
var __decorate$v = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
1663
1666
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1664
1667
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1665
1668
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1669,7 +1672,7 @@
|
|
|
1669
1672
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1670
1673
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1671
1674
|
};
|
|
1672
|
-
var __metadata$
|
|
1675
|
+
var __metadata$p = (this && this.__metadata) || function (k, v) {
|
|
1673
1676
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1674
1677
|
return Reflect.metadata(k, v);
|
|
1675
1678
|
};
|
|
@@ -1732,9 +1735,7 @@
|
|
|
1732
1735
|
return [4 /*yield*/, mongoose.connect(this.configuration.resolve("mongoUri"), {
|
|
1733
1736
|
dbName: this.configuration.resolve("mongoDb"),
|
|
1734
1737
|
user: this.configuration.resolve("mongoUser"),
|
|
1735
|
-
pass: this.configuration.resolve("mongoPassword")
|
|
1736
|
-
useNewUrlParser: true,
|
|
1737
|
-
useUnifiedTopology: true
|
|
1738
|
+
pass: this.configuration.resolve("mongoPassword")
|
|
1738
1739
|
})];
|
|
1739
1740
|
case 1:
|
|
1740
1741
|
_a.conn = (_b.sent()).connection;
|
|
@@ -1747,10 +1748,10 @@
|
|
|
1747
1748
|
};
|
|
1748
1749
|
return MongoConnector;
|
|
1749
1750
|
}());
|
|
1750
|
-
exports.MongoConnector = __decorate$
|
|
1751
|
+
exports.MongoConnector = __decorate$v([
|
|
1751
1752
|
tsyringe.injectable(),
|
|
1752
1753
|
tsyringe.singleton(),
|
|
1753
|
-
__metadata$
|
|
1754
|
+
__metadata$p("design:paramtypes", [exports.Configuration])
|
|
1754
1755
|
], exports.MongoConnector);
|
|
1755
1756
|
|
|
1756
1757
|
var __awaiter$t = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -2006,7 +2007,7 @@
|
|
|
2006
2007
|
return TempAsset;
|
|
2007
2008
|
}());
|
|
2008
2009
|
|
|
2009
|
-
var __decorate$
|
|
2010
|
+
var __decorate$u = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2010
2011
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2011
2012
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2012
2013
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2016,7 +2017,7 @@
|
|
|
2016
2017
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2017
2018
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2018
2019
|
};
|
|
2019
|
-
var __metadata$
|
|
2020
|
+
var __metadata$o = (this && this.__metadata) || function (k, v) {
|
|
2020
2021
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2021
2022
|
return Reflect.metadata(k, v);
|
|
2022
2023
|
};
|
|
@@ -2282,10 +2283,10 @@
|
|
|
2282
2283
|
};
|
|
2283
2284
|
return Assets;
|
|
2284
2285
|
}());
|
|
2285
|
-
exports.Assets = __decorate$
|
|
2286
|
+
exports.Assets = __decorate$u([
|
|
2286
2287
|
tsyringe.injectable(),
|
|
2287
2288
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
2288
|
-
__metadata$
|
|
2289
|
+
__metadata$o("design:paramtypes", [exports.MongoConnector, exports.AssetProcessor])
|
|
2289
2290
|
], exports.Assets);
|
|
2290
2291
|
|
|
2291
2292
|
var __awaiter$p = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -2446,7 +2447,7 @@
|
|
|
2446
2447
|
return LazyAsset;
|
|
2447
2448
|
}(BaseEntity));
|
|
2448
2449
|
|
|
2449
|
-
var __decorate$
|
|
2450
|
+
var __decorate$t = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2450
2451
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2451
2452
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2452
2453
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2456,7 +2457,7 @@
|
|
|
2456
2457
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2457
2458
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2458
2459
|
};
|
|
2459
|
-
var __metadata$
|
|
2460
|
+
var __metadata$n = (this && this.__metadata) || function (k, v) {
|
|
2460
2461
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2461
2462
|
return Reflect.metadata(k, v);
|
|
2462
2463
|
};
|
|
@@ -2712,11 +2713,11 @@
|
|
|
2712
2713
|
};
|
|
2713
2714
|
return JobManager;
|
|
2714
2715
|
}());
|
|
2715
|
-
exports.JobManager = __decorate$
|
|
2716
|
+
exports.JobManager = __decorate$t([
|
|
2716
2717
|
tsyringe.injectable(),
|
|
2717
2718
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
2718
2719
|
__param$7(1, tsyringe.inject(DI_CONTAINER)), __param$7(2, tsyringe.injectAll(JOB)),
|
|
2719
|
-
__metadata$
|
|
2720
|
+
__metadata$n("design:paramtypes", [exports.Configuration, Object, Array])
|
|
2720
2721
|
], exports.JobManager);
|
|
2721
2722
|
|
|
2722
2723
|
var __awaiter$n = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -3118,7 +3119,7 @@
|
|
|
3118
3119
|
return SubProgress;
|
|
3119
3120
|
}());
|
|
3120
3121
|
|
|
3121
|
-
var __decorate$
|
|
3122
|
+
var __decorate$s = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3122
3123
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3123
3124
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3124
3125
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3128,7 +3129,7 @@
|
|
|
3128
3129
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3129
3130
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3130
3131
|
};
|
|
3131
|
-
var __metadata$
|
|
3132
|
+
var __metadata$m = (this && this.__metadata) || function (k, v) {
|
|
3132
3133
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3133
3134
|
return Reflect.metadata(k, v);
|
|
3134
3135
|
};
|
|
@@ -3291,13 +3292,13 @@
|
|
|
3291
3292
|
};
|
|
3292
3293
|
return Progresses;
|
|
3293
3294
|
}());
|
|
3294
|
-
exports.Progresses = __decorate$
|
|
3295
|
+
exports.Progresses = __decorate$s([
|
|
3295
3296
|
tsyringe.injectable(),
|
|
3296
3297
|
tsyringe.singleton(),
|
|
3297
|
-
__metadata$
|
|
3298
|
+
__metadata$m("design:paramtypes", [exports.MongoConnector, exports.JobManager])
|
|
3298
3299
|
], exports.Progresses);
|
|
3299
3300
|
|
|
3300
|
-
var __decorate$
|
|
3301
|
+
var __decorate$r = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3301
3302
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3302
3303
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3303
3304
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3307,7 +3308,7 @@
|
|
|
3307
3308
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3308
3309
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3309
3310
|
};
|
|
3310
|
-
var __metadata$
|
|
3311
|
+
var __metadata$l = (this && this.__metadata) || function (k, v) {
|
|
3311
3312
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3312
3313
|
return Reflect.metadata(k, v);
|
|
3313
3314
|
};
|
|
@@ -3404,16 +3405,16 @@
|
|
|
3404
3405
|
};
|
|
3405
3406
|
return LazyAssets;
|
|
3406
3407
|
}());
|
|
3407
|
-
exports.LazyAssets = __decorate$
|
|
3408
|
+
exports.LazyAssets = __decorate$r([
|
|
3408
3409
|
tsyringe.injectable(),
|
|
3409
3410
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3410
|
-
__metadata$
|
|
3411
|
+
__metadata$l("design:paramtypes", [exports.MongoConnector,
|
|
3411
3412
|
exports.Assets,
|
|
3412
3413
|
exports.Progresses,
|
|
3413
3414
|
exports.JobManager])
|
|
3414
3415
|
], exports.LazyAssets);
|
|
3415
3416
|
|
|
3416
|
-
var __decorate$
|
|
3417
|
+
var __decorate$q = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3417
3418
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3418
3419
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3419
3420
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3423,7 +3424,7 @@
|
|
|
3423
3424
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3424
3425
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3425
3426
|
};
|
|
3426
|
-
var __metadata$
|
|
3427
|
+
var __metadata$k = (this && this.__metadata) || function (k, v) {
|
|
3427
3428
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3428
3429
|
return Reflect.metadata(k, v);
|
|
3429
3430
|
};
|
|
@@ -3483,13 +3484,13 @@
|
|
|
3483
3484
|
};
|
|
3484
3485
|
return AssetResolver;
|
|
3485
3486
|
}());
|
|
3486
|
-
exports.AssetResolver = __decorate$
|
|
3487
|
+
exports.AssetResolver = __decorate$q([
|
|
3487
3488
|
tsyringe.injectable(),
|
|
3488
3489
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3489
|
-
__metadata$
|
|
3490
|
+
__metadata$k("design:paramtypes", [exports.Assets, exports.LazyAssets])
|
|
3490
3491
|
], exports.AssetResolver);
|
|
3491
3492
|
|
|
3492
|
-
var __decorate$
|
|
3493
|
+
var __decorate$p = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3493
3494
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3494
3495
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3495
3496
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3499,7 +3500,7 @@
|
|
|
3499
3500
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3500
3501
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3501
3502
|
};
|
|
3502
|
-
var __metadata$
|
|
3503
|
+
var __metadata$j = (this && this.__metadata) || function (k, v) {
|
|
3503
3504
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3504
3505
|
return Reflect.metadata(k, v);
|
|
3505
3506
|
};
|
|
@@ -3520,13 +3521,13 @@
|
|
|
3520
3521
|
});
|
|
3521
3522
|
return BackendProvider;
|
|
3522
3523
|
}());
|
|
3523
|
-
exports.BackendProvider = __decorate$
|
|
3524
|
+
exports.BackendProvider = __decorate$p([
|
|
3524
3525
|
tsyringe.injectable(),
|
|
3525
3526
|
tsyringe.singleton(),
|
|
3526
|
-
__metadata$
|
|
3527
|
+
__metadata$j("design:paramtypes", [])
|
|
3527
3528
|
], exports.BackendProvider);
|
|
3528
3529
|
|
|
3529
|
-
var __decorate$
|
|
3530
|
+
var __decorate$o = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3530
3531
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3531
3532
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3532
3533
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3574,12 +3575,12 @@
|
|
|
3574
3575
|
};
|
|
3575
3576
|
return CacheProcessor;
|
|
3576
3577
|
}());
|
|
3577
|
-
exports.CacheProcessor = __decorate$
|
|
3578
|
+
exports.CacheProcessor = __decorate$o([
|
|
3578
3579
|
tsyringe.injectable(),
|
|
3579
3580
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped)
|
|
3580
3581
|
], exports.CacheProcessor);
|
|
3581
3582
|
|
|
3582
|
-
var __decorate$
|
|
3583
|
+
var __decorate$n = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3583
3584
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3584
3585
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3585
3586
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3589,7 +3590,7 @@
|
|
|
3589
3590
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3590
3591
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3591
3592
|
};
|
|
3592
|
-
var __metadata$
|
|
3593
|
+
var __metadata$i = (this && this.__metadata) || function (k, v) {
|
|
3593
3594
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3594
3595
|
return Reflect.metadata(k, v);
|
|
3595
3596
|
};
|
|
@@ -3734,13 +3735,13 @@
|
|
|
3734
3735
|
};
|
|
3735
3736
|
return Cache;
|
|
3736
3737
|
}());
|
|
3737
|
-
exports.Cache = __decorate$
|
|
3738
|
+
exports.Cache = __decorate$n([
|
|
3738
3739
|
tsyringe.injectable(),
|
|
3739
3740
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3740
|
-
__metadata$
|
|
3741
|
+
__metadata$i("design:paramtypes", [exports.MongoConnector, exports.Configuration, exports.CacheProcessor])
|
|
3741
3742
|
], exports.Cache);
|
|
3742
3743
|
|
|
3743
|
-
var __decorate$
|
|
3744
|
+
var __decorate$m = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3744
3745
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3745
3746
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3746
3747
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3782,12 +3783,12 @@
|
|
|
3782
3783
|
};
|
|
3783
3784
|
return EndpointProvider;
|
|
3784
3785
|
}());
|
|
3785
|
-
exports.EndpointProvider = __decorate$
|
|
3786
|
+
exports.EndpointProvider = __decorate$m([
|
|
3786
3787
|
tsyringe.injectable(),
|
|
3787
3788
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped)
|
|
3788
3789
|
], exports.EndpointProvider);
|
|
3789
3790
|
|
|
3790
|
-
var __decorate$
|
|
3791
|
+
var __decorate$l = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3791
3792
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3792
3793
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3793
3794
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3797,7 +3798,7 @@
|
|
|
3797
3798
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3798
3799
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3799
3800
|
};
|
|
3800
|
-
var __metadata$
|
|
3801
|
+
var __metadata$h = (this && this.__metadata) || function (k, v) {
|
|
3801
3802
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3802
3803
|
return Reflect.metadata(k, v);
|
|
3803
3804
|
};
|
|
@@ -3869,11 +3870,11 @@
|
|
|
3869
3870
|
};
|
|
3870
3871
|
return Fixtures;
|
|
3871
3872
|
}());
|
|
3872
|
-
exports.Fixtures = __decorate$
|
|
3873
|
+
exports.Fixtures = __decorate$l([
|
|
3873
3874
|
tsyringe.injectable(),
|
|
3874
3875
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3875
3876
|
__param$6(0, tsyringe.injectAll(FIXTURE)),
|
|
3876
|
-
__metadata$
|
|
3877
|
+
__metadata$h("design:paramtypes", [Array])
|
|
3877
3878
|
], exports.Fixtures);
|
|
3878
3879
|
|
|
3879
3880
|
var __awaiter$f = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -3950,7 +3951,7 @@
|
|
|
3950
3951
|
return GalleryImage;
|
|
3951
3952
|
}());
|
|
3952
3953
|
|
|
3953
|
-
var __decorate$
|
|
3954
|
+
var __decorate$k = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3954
3955
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3955
3956
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3956
3957
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3960,7 +3961,7 @@
|
|
|
3960
3961
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3961
3962
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3962
3963
|
};
|
|
3963
|
-
var __metadata$
|
|
3964
|
+
var __metadata$g = (this && this.__metadata) || function (k, v) {
|
|
3964
3965
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3965
3966
|
return Reflect.metadata(k, v);
|
|
3966
3967
|
};
|
|
@@ -3983,13 +3984,13 @@
|
|
|
3983
3984
|
};
|
|
3984
3985
|
return GalleryCache;
|
|
3985
3986
|
}());
|
|
3986
|
-
exports.GalleryCache = __decorate$
|
|
3987
|
+
exports.GalleryCache = __decorate$k([
|
|
3987
3988
|
tsyringe.injectable(),
|
|
3988
3989
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3989
|
-
__metadata$
|
|
3990
|
+
__metadata$g("design:paramtypes", [])
|
|
3990
3991
|
], exports.GalleryCache);
|
|
3991
3992
|
|
|
3992
|
-
var __decorate$
|
|
3993
|
+
var __decorate$j = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3993
3994
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3994
3995
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3995
3996
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3999,7 +4000,7 @@
|
|
|
3999
4000
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4000
4001
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4001
4002
|
};
|
|
4002
|
-
var __metadata$
|
|
4003
|
+
var __metadata$f = (this && this.__metadata) || function (k, v) {
|
|
4003
4004
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4004
4005
|
return Reflect.metadata(k, v);
|
|
4005
4006
|
};
|
|
@@ -4148,13 +4149,13 @@
|
|
|
4148
4149
|
};
|
|
4149
4150
|
return Gallery;
|
|
4150
4151
|
}());
|
|
4151
|
-
exports.Gallery = __decorate$
|
|
4152
|
+
exports.Gallery = __decorate$j([
|
|
4152
4153
|
tsyringe.injectable(),
|
|
4153
4154
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
4154
|
-
__metadata$
|
|
4155
|
+
__metadata$f("design:paramtypes", [exports.Configuration, exports.GalleryCache])
|
|
4155
4156
|
], exports.Gallery);
|
|
4156
4157
|
|
|
4157
|
-
var __decorate$
|
|
4158
|
+
var __decorate$i = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4158
4159
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4159
4160
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4160
4161
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4164,7 +4165,7 @@
|
|
|
4164
4165
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4165
4166
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4166
4167
|
};
|
|
4167
|
-
var __metadata$
|
|
4168
|
+
var __metadata$e = (this && this.__metadata) || function (k, v) {
|
|
4168
4169
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4169
4170
|
return Reflect.metadata(k, v);
|
|
4170
4171
|
};
|
|
@@ -4235,13 +4236,13 @@
|
|
|
4235
4236
|
};
|
|
4236
4237
|
return IdGenerator;
|
|
4237
4238
|
}());
|
|
4238
|
-
exports.IdGenerator = __decorate$
|
|
4239
|
+
exports.IdGenerator = __decorate$i([
|
|
4239
4240
|
tsyringe.injectable(),
|
|
4240
4241
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
4241
|
-
__metadata$
|
|
4242
|
+
__metadata$e("design:paramtypes", [exports.Configuration])
|
|
4242
4243
|
], exports.IdGenerator);
|
|
4243
4244
|
|
|
4244
|
-
var __decorate$
|
|
4245
|
+
var __decorate$h = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4245
4246
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4246
4247
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4247
4248
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4251,7 +4252,7 @@
|
|
|
4251
4252
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4252
4253
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4253
4254
|
};
|
|
4254
|
-
var __metadata$
|
|
4255
|
+
var __metadata$d = (this && this.__metadata) || function (k, v) {
|
|
4255
4256
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4256
4257
|
return Reflect.metadata(k, v);
|
|
4257
4258
|
};
|
|
@@ -4268,13 +4269,13 @@
|
|
|
4268
4269
|
};
|
|
4269
4270
|
return TranslationProvider;
|
|
4270
4271
|
}());
|
|
4271
|
-
exports.TranslationProvider = __decorate$
|
|
4272
|
+
exports.TranslationProvider = __decorate$h([
|
|
4272
4273
|
tsyringe.injectable(),
|
|
4273
4274
|
tsyringe.singleton(),
|
|
4274
|
-
__metadata$
|
|
4275
|
+
__metadata$d("design:paramtypes", [exports.Configuration])
|
|
4275
4276
|
], exports.TranslationProvider);
|
|
4276
4277
|
|
|
4277
|
-
var __decorate$
|
|
4278
|
+
var __decorate$g = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4278
4279
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4279
4280
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4280
4281
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4284,7 +4285,7 @@
|
|
|
4284
4285
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4285
4286
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4286
4287
|
};
|
|
4287
|
-
var __metadata$
|
|
4288
|
+
var __metadata$c = (this && this.__metadata) || function (k, v) {
|
|
4288
4289
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4289
4290
|
return Reflect.metadata(k, v);
|
|
4290
4291
|
};
|
|
@@ -4378,13 +4379,13 @@
|
|
|
4378
4379
|
};
|
|
4379
4380
|
return Translator;
|
|
4380
4381
|
}());
|
|
4381
|
-
exports.Translator = __decorate$
|
|
4382
|
+
exports.Translator = __decorate$g([
|
|
4382
4383
|
tsyringe.injectable(),
|
|
4383
4384
|
tsyringe.singleton(),
|
|
4384
|
-
__metadata$
|
|
4385
|
+
__metadata$c("design:paramtypes", [exports.TranslationProvider])
|
|
4385
4386
|
], exports.Translator);
|
|
4386
4387
|
|
|
4387
|
-
var __decorate$
|
|
4388
|
+
var __decorate$f = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4388
4389
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4389
4390
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4390
4391
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4394,7 +4395,7 @@
|
|
|
4394
4395
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4395
4396
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4396
4397
|
};
|
|
4397
|
-
var __metadata$
|
|
4398
|
+
var __metadata$b = (this && this.__metadata) || function (k, v) {
|
|
4398
4399
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4399
4400
|
return Reflect.metadata(k, v);
|
|
4400
4401
|
};
|
|
@@ -4527,13 +4528,13 @@
|
|
|
4527
4528
|
};
|
|
4528
4529
|
return TemplateRenderer;
|
|
4529
4530
|
}());
|
|
4530
|
-
exports.TemplateRenderer = __decorate$
|
|
4531
|
+
exports.TemplateRenderer = __decorate$f([
|
|
4531
4532
|
tsyringe.injectable(),
|
|
4532
4533
|
tsyringe.singleton(),
|
|
4533
|
-
__metadata$
|
|
4534
|
+
__metadata$b("design:paramtypes", [exports.Translator, exports.Configuration])
|
|
4534
4535
|
], exports.TemplateRenderer);
|
|
4535
4536
|
|
|
4536
|
-
var __decorate$
|
|
4537
|
+
var __decorate$e = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4537
4538
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4538
4539
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4539
4540
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4543,7 +4544,7 @@
|
|
|
4543
4544
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4544
4545
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4545
4546
|
};
|
|
4546
|
-
var __metadata$
|
|
4547
|
+
var __metadata$a = (this && this.__metadata) || function (k, v) {
|
|
4547
4548
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4548
4549
|
return Reflect.metadata(k, v);
|
|
4549
4550
|
};
|
|
@@ -4610,13 +4611,13 @@
|
|
|
4610
4611
|
};
|
|
4611
4612
|
return MailSender;
|
|
4612
4613
|
}());
|
|
4613
|
-
exports.MailSender = __decorate$
|
|
4614
|
+
exports.MailSender = __decorate$e([
|
|
4614
4615
|
tsyringe.injectable(),
|
|
4615
4616
|
tsyringe.singleton(),
|
|
4616
|
-
__metadata$
|
|
4617
|
+
__metadata$a("design:paramtypes", [exports.Configuration, exports.TemplateRenderer])
|
|
4617
4618
|
], exports.MailSender);
|
|
4618
4619
|
|
|
4619
|
-
var __decorate$
|
|
4620
|
+
var __decorate$d = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4620
4621
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4621
4622
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4622
4623
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4626,7 +4627,7 @@
|
|
|
4626
4627
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4627
4628
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4628
4629
|
};
|
|
4629
|
-
var __metadata$
|
|
4630
|
+
var __metadata$9 = (this && this.__metadata) || function (k, v) {
|
|
4630
4631
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4631
4632
|
return Reflect.metadata(k, v);
|
|
4632
4633
|
};
|
|
@@ -4740,13 +4741,13 @@
|
|
|
4740
4741
|
};
|
|
4741
4742
|
return MemoryCache;
|
|
4742
4743
|
}());
|
|
4743
|
-
exports.MemoryCache = __decorate$
|
|
4744
|
+
exports.MemoryCache = __decorate$d([
|
|
4744
4745
|
tsyringe.injectable(),
|
|
4745
4746
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
4746
|
-
__metadata$
|
|
4747
|
+
__metadata$9("design:paramtypes", [exports.Cache])
|
|
4747
4748
|
], exports.MemoryCache);
|
|
4748
4749
|
|
|
4749
|
-
var __decorate$
|
|
4750
|
+
var __decorate$c = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4750
4751
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4751
4752
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4752
4753
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4821,11 +4822,86 @@
|
|
|
4821
4822
|
};
|
|
4822
4823
|
return UserManager;
|
|
4823
4824
|
}());
|
|
4824
|
-
exports.UserManager = __decorate$
|
|
4825
|
+
exports.UserManager = __decorate$c([
|
|
4825
4826
|
tsyringe.injectable(),
|
|
4826
4827
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped)
|
|
4827
4828
|
], exports.UserManager);
|
|
4828
4829
|
|
|
4830
|
+
var __decorate$b = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4831
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4832
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4833
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
4834
|
+
else
|
|
4835
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
4836
|
+
if (d = decorators[i])
|
|
4837
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4838
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4839
|
+
};
|
|
4840
|
+
var __metadata$8 = (this && this.__metadata) || function (k, v) {
|
|
4841
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4842
|
+
return Reflect.metadata(k, v);
|
|
4843
|
+
};
|
|
4844
|
+
var AssetImageParams = /** @class */ (function () {
|
|
4845
|
+
function AssetImageParams() {
|
|
4846
|
+
this.rotation = 0;
|
|
4847
|
+
this.canvasScaleX = 1;
|
|
4848
|
+
this.canvasScaleY = 1;
|
|
4849
|
+
this.scaleX = 1;
|
|
4850
|
+
this.scaleY = 1;
|
|
4851
|
+
this.lazy = false;
|
|
4852
|
+
this.crop = false;
|
|
4853
|
+
this.cropBefore = false;
|
|
4854
|
+
this.cropAfter = false;
|
|
4855
|
+
}
|
|
4856
|
+
return AssetImageParams;
|
|
4857
|
+
}());
|
|
4858
|
+
__decorate$b([
|
|
4859
|
+
classValidator.Min(-360),
|
|
4860
|
+
classValidator.Max(360),
|
|
4861
|
+
classValidator.IsOptional(),
|
|
4862
|
+
__metadata$8("design:type", Number)
|
|
4863
|
+
], AssetImageParams.prototype, "rotation", void 0);
|
|
4864
|
+
__decorate$b([
|
|
4865
|
+
classValidator.Min(0.0001),
|
|
4866
|
+
classValidator.IsOptional(),
|
|
4867
|
+
__metadata$8("design:type", Number)
|
|
4868
|
+
], AssetImageParams.prototype, "canvasScaleX", void 0);
|
|
4869
|
+
__decorate$b([
|
|
4870
|
+
classValidator.Min(0.0001),
|
|
4871
|
+
classValidator.IsOptional(),
|
|
4872
|
+
__metadata$8("design:type", Number)
|
|
4873
|
+
], AssetImageParams.prototype, "canvasScaleY", void 0);
|
|
4874
|
+
__decorate$b([
|
|
4875
|
+
classValidator.Min(0.0001),
|
|
4876
|
+
classValidator.IsOptional(),
|
|
4877
|
+
__metadata$8("design:type", Number)
|
|
4878
|
+
], AssetImageParams.prototype, "scaleX", void 0);
|
|
4879
|
+
__decorate$b([
|
|
4880
|
+
classValidator.Min(0.0001),
|
|
4881
|
+
classValidator.IsOptional(),
|
|
4882
|
+
__metadata$8("design:type", Number)
|
|
4883
|
+
], AssetImageParams.prototype, "scaleY", void 0);
|
|
4884
|
+
__decorate$b([
|
|
4885
|
+
classValidator.IsBoolean(),
|
|
4886
|
+
classValidator.IsOptional(),
|
|
4887
|
+
__metadata$8("design:type", Boolean)
|
|
4888
|
+
], AssetImageParams.prototype, "lazy", void 0);
|
|
4889
|
+
__decorate$b([
|
|
4890
|
+
classValidator.IsBoolean(),
|
|
4891
|
+
classValidator.IsOptional(),
|
|
4892
|
+
__metadata$8("design:type", Boolean)
|
|
4893
|
+
], AssetImageParams.prototype, "crop", void 0);
|
|
4894
|
+
__decorate$b([
|
|
4895
|
+
classValidator.IsBoolean(),
|
|
4896
|
+
classValidator.IsOptional(),
|
|
4897
|
+
__metadata$8("design:type", Boolean)
|
|
4898
|
+
], AssetImageParams.prototype, "cropBefore", void 0);
|
|
4899
|
+
__decorate$b([
|
|
4900
|
+
classValidator.IsBoolean(),
|
|
4901
|
+
classValidator.IsOptional(),
|
|
4902
|
+
__metadata$8("design:type", Boolean)
|
|
4903
|
+
], AssetImageParams.prototype, "cropAfter", void 0);
|
|
4904
|
+
|
|
4829
4905
|
var __decorate$a = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4830
4906
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4831
4907
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
@@ -5047,14 +5123,14 @@
|
|
|
5047
5123
|
routingControllers.Get("/image/:id/:rotation"),
|
|
5048
5124
|
__param$5(0, routingControllers.Param("id")), __param$5(1, routingControllers.QueryParams()), __param$5(2, routingControllers.Res()), __param$5(3, routingControllers.Param("rotation")),
|
|
5049
5125
|
__metadata$7("design:type", Function),
|
|
5050
|
-
__metadata$7("design:paramtypes", [String,
|
|
5126
|
+
__metadata$7("design:paramtypes", [String, AssetImageParams, Object, Number]),
|
|
5051
5127
|
__metadata$7("design:returntype", Promise)
|
|
5052
5128
|
], AssetsController.prototype, "getImageRotation", null);
|
|
5053
5129
|
__decorate$a([
|
|
5054
5130
|
routingControllers.Get("/image/:id"),
|
|
5055
5131
|
__param$5(0, routingControllers.Param("id")), __param$5(1, routingControllers.QueryParams()), __param$5(2, routingControllers.Res()),
|
|
5056
5132
|
__metadata$7("design:type", Function),
|
|
5057
|
-
__metadata$7("design:paramtypes", [String,
|
|
5133
|
+
__metadata$7("design:paramtypes", [String, AssetImageParams, Object]),
|
|
5058
5134
|
__metadata$7("design:returntype", Promise)
|
|
5059
5135
|
], AssetsController.prototype, "getImage", null);
|
|
5060
5136
|
__decorate$a([
|
|
@@ -5068,7 +5144,7 @@
|
|
|
5068
5144
|
routingControllers.Get("/by-name/image/:name"),
|
|
5069
5145
|
__param$5(0, routingControllers.Param("name")), __param$5(1, routingControllers.QueryParams()), __param$5(2, routingControllers.Res()),
|
|
5070
5146
|
__metadata$7("design:type", Function),
|
|
5071
|
-
__metadata$7("design:paramtypes", [String,
|
|
5147
|
+
__metadata$7("design:paramtypes", [String, AssetImageParams, Object]),
|
|
5072
5148
|
__metadata$7("design:returntype", Promise)
|
|
5073
5149
|
], AssetsController.prototype, "getImageByName", null);
|
|
5074
5150
|
AssetsController = __decorate$a([
|
|
@@ -6195,7 +6271,7 @@
|
|
|
6195
6271
|
});
|
|
6196
6272
|
});
|
|
6197
6273
|
// Add other providers
|
|
6198
|
-
allProviders.push.apply(allProviders,
|
|
6274
|
+
allProviders.push.apply(allProviders, __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(fixtureTypes)), __read(fixtureProviders)), __read(paramProviders)), __read(jobProviders)), __read(restOptions.middlewares)), __read(restOptions.controllers)), __read(socketOptions.middlewares)), __read(socketOptions.controllers)), __read(providers)), [{
|
|
6199
6275
|
provide: EXPRESS,
|
|
6200
6276
|
useFactory: function (container) {
|
|
6201
6277
|
return container.resolve(exports.BackendProvider).express;
|
|
@@ -6334,6 +6410,7 @@
|
|
|
6334
6410
|
* Generated bundle index. Do not edit.
|
|
6335
6411
|
*/
|
|
6336
6412
|
|
|
6413
|
+
exports.AssetImageParams = AssetImageParams;
|
|
6337
6414
|
exports.DI_CONTAINER = DI_CONTAINER;
|
|
6338
6415
|
exports.EXPRESS = EXPRESS;
|
|
6339
6416
|
exports.FIXTURE = FIXTURE;
|