@stemy/backend 3.2.6 → 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 +191 -112
- package/bundles/stemy-backend.umd.js.map +1 -1
- package/common-types.d.ts +2 -2
- 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/utils.js +15 -11
- package/fesm2015/stemy-backend.js +186 -113
- package/fesm2015/stemy-backend.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/requests/asset-image-params.d.ts +12 -0
- package/rest-controllers/assets.controller.d.ts +5 -4
- package/stemy-backend.metadata.json +1 -1
- package/utils.d.ts +2 -3
|
@@ -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
|
}
|
|
@@ -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
|
};
|
|
@@ -1745,10 +1748,10 @@
|
|
|
1745
1748
|
};
|
|
1746
1749
|
return MongoConnector;
|
|
1747
1750
|
}());
|
|
1748
|
-
exports.MongoConnector = __decorate$
|
|
1751
|
+
exports.MongoConnector = __decorate$v([
|
|
1749
1752
|
tsyringe.injectable(),
|
|
1750
1753
|
tsyringe.singleton(),
|
|
1751
|
-
__metadata$
|
|
1754
|
+
__metadata$p("design:paramtypes", [exports.Configuration])
|
|
1752
1755
|
], exports.MongoConnector);
|
|
1753
1756
|
|
|
1754
1757
|
var __awaiter$t = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -2004,7 +2007,7 @@
|
|
|
2004
2007
|
return TempAsset;
|
|
2005
2008
|
}());
|
|
2006
2009
|
|
|
2007
|
-
var __decorate$
|
|
2010
|
+
var __decorate$u = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2008
2011
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2009
2012
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2010
2013
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2014,7 +2017,7 @@
|
|
|
2014
2017
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2015
2018
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2016
2019
|
};
|
|
2017
|
-
var __metadata$
|
|
2020
|
+
var __metadata$o = (this && this.__metadata) || function (k, v) {
|
|
2018
2021
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2019
2022
|
return Reflect.metadata(k, v);
|
|
2020
2023
|
};
|
|
@@ -2280,10 +2283,10 @@
|
|
|
2280
2283
|
};
|
|
2281
2284
|
return Assets;
|
|
2282
2285
|
}());
|
|
2283
|
-
exports.Assets = __decorate$
|
|
2286
|
+
exports.Assets = __decorate$u([
|
|
2284
2287
|
tsyringe.injectable(),
|
|
2285
2288
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
2286
|
-
__metadata$
|
|
2289
|
+
__metadata$o("design:paramtypes", [exports.MongoConnector, exports.AssetProcessor])
|
|
2287
2290
|
], exports.Assets);
|
|
2288
2291
|
|
|
2289
2292
|
var __awaiter$p = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -2444,7 +2447,7 @@
|
|
|
2444
2447
|
return LazyAsset;
|
|
2445
2448
|
}(BaseEntity));
|
|
2446
2449
|
|
|
2447
|
-
var __decorate$
|
|
2450
|
+
var __decorate$t = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2448
2451
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2449
2452
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2450
2453
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2454,7 +2457,7 @@
|
|
|
2454
2457
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2455
2458
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2456
2459
|
};
|
|
2457
|
-
var __metadata$
|
|
2460
|
+
var __metadata$n = (this && this.__metadata) || function (k, v) {
|
|
2458
2461
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2459
2462
|
return Reflect.metadata(k, v);
|
|
2460
2463
|
};
|
|
@@ -2710,11 +2713,11 @@
|
|
|
2710
2713
|
};
|
|
2711
2714
|
return JobManager;
|
|
2712
2715
|
}());
|
|
2713
|
-
exports.JobManager = __decorate$
|
|
2716
|
+
exports.JobManager = __decorate$t([
|
|
2714
2717
|
tsyringe.injectable(),
|
|
2715
2718
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
2716
2719
|
__param$7(1, tsyringe.inject(DI_CONTAINER)), __param$7(2, tsyringe.injectAll(JOB)),
|
|
2717
|
-
__metadata$
|
|
2720
|
+
__metadata$n("design:paramtypes", [exports.Configuration, Object, Array])
|
|
2718
2721
|
], exports.JobManager);
|
|
2719
2722
|
|
|
2720
2723
|
var __awaiter$n = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -3116,7 +3119,7 @@
|
|
|
3116
3119
|
return SubProgress;
|
|
3117
3120
|
}());
|
|
3118
3121
|
|
|
3119
|
-
var __decorate$
|
|
3122
|
+
var __decorate$s = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3120
3123
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3121
3124
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3122
3125
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3126,7 +3129,7 @@
|
|
|
3126
3129
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3127
3130
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3128
3131
|
};
|
|
3129
|
-
var __metadata$
|
|
3132
|
+
var __metadata$m = (this && this.__metadata) || function (k, v) {
|
|
3130
3133
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3131
3134
|
return Reflect.metadata(k, v);
|
|
3132
3135
|
};
|
|
@@ -3289,13 +3292,13 @@
|
|
|
3289
3292
|
};
|
|
3290
3293
|
return Progresses;
|
|
3291
3294
|
}());
|
|
3292
|
-
exports.Progresses = __decorate$
|
|
3295
|
+
exports.Progresses = __decorate$s([
|
|
3293
3296
|
tsyringe.injectable(),
|
|
3294
3297
|
tsyringe.singleton(),
|
|
3295
|
-
__metadata$
|
|
3298
|
+
__metadata$m("design:paramtypes", [exports.MongoConnector, exports.JobManager])
|
|
3296
3299
|
], exports.Progresses);
|
|
3297
3300
|
|
|
3298
|
-
var __decorate$
|
|
3301
|
+
var __decorate$r = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3299
3302
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3300
3303
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3301
3304
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3305,7 +3308,7 @@
|
|
|
3305
3308
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3306
3309
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3307
3310
|
};
|
|
3308
|
-
var __metadata$
|
|
3311
|
+
var __metadata$l = (this && this.__metadata) || function (k, v) {
|
|
3309
3312
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3310
3313
|
return Reflect.metadata(k, v);
|
|
3311
3314
|
};
|
|
@@ -3402,16 +3405,16 @@
|
|
|
3402
3405
|
};
|
|
3403
3406
|
return LazyAssets;
|
|
3404
3407
|
}());
|
|
3405
|
-
exports.LazyAssets = __decorate$
|
|
3408
|
+
exports.LazyAssets = __decorate$r([
|
|
3406
3409
|
tsyringe.injectable(),
|
|
3407
3410
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3408
|
-
__metadata$
|
|
3411
|
+
__metadata$l("design:paramtypes", [exports.MongoConnector,
|
|
3409
3412
|
exports.Assets,
|
|
3410
3413
|
exports.Progresses,
|
|
3411
3414
|
exports.JobManager])
|
|
3412
3415
|
], exports.LazyAssets);
|
|
3413
3416
|
|
|
3414
|
-
var __decorate$
|
|
3417
|
+
var __decorate$q = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3415
3418
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3416
3419
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3417
3420
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3421,7 +3424,7 @@
|
|
|
3421
3424
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3422
3425
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3423
3426
|
};
|
|
3424
|
-
var __metadata$
|
|
3427
|
+
var __metadata$k = (this && this.__metadata) || function (k, v) {
|
|
3425
3428
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3426
3429
|
return Reflect.metadata(k, v);
|
|
3427
3430
|
};
|
|
@@ -3481,13 +3484,13 @@
|
|
|
3481
3484
|
};
|
|
3482
3485
|
return AssetResolver;
|
|
3483
3486
|
}());
|
|
3484
|
-
exports.AssetResolver = __decorate$
|
|
3487
|
+
exports.AssetResolver = __decorate$q([
|
|
3485
3488
|
tsyringe.injectable(),
|
|
3486
3489
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3487
|
-
__metadata$
|
|
3490
|
+
__metadata$k("design:paramtypes", [exports.Assets, exports.LazyAssets])
|
|
3488
3491
|
], exports.AssetResolver);
|
|
3489
3492
|
|
|
3490
|
-
var __decorate$
|
|
3493
|
+
var __decorate$p = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3491
3494
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3492
3495
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3493
3496
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3497,7 +3500,7 @@
|
|
|
3497
3500
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3498
3501
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3499
3502
|
};
|
|
3500
|
-
var __metadata$
|
|
3503
|
+
var __metadata$j = (this && this.__metadata) || function (k, v) {
|
|
3501
3504
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3502
3505
|
return Reflect.metadata(k, v);
|
|
3503
3506
|
};
|
|
@@ -3518,13 +3521,13 @@
|
|
|
3518
3521
|
});
|
|
3519
3522
|
return BackendProvider;
|
|
3520
3523
|
}());
|
|
3521
|
-
exports.BackendProvider = __decorate$
|
|
3524
|
+
exports.BackendProvider = __decorate$p([
|
|
3522
3525
|
tsyringe.injectable(),
|
|
3523
3526
|
tsyringe.singleton(),
|
|
3524
|
-
__metadata$
|
|
3527
|
+
__metadata$j("design:paramtypes", [])
|
|
3525
3528
|
], exports.BackendProvider);
|
|
3526
3529
|
|
|
3527
|
-
var __decorate$
|
|
3530
|
+
var __decorate$o = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3528
3531
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3529
3532
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3530
3533
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3572,12 +3575,12 @@
|
|
|
3572
3575
|
};
|
|
3573
3576
|
return CacheProcessor;
|
|
3574
3577
|
}());
|
|
3575
|
-
exports.CacheProcessor = __decorate$
|
|
3578
|
+
exports.CacheProcessor = __decorate$o([
|
|
3576
3579
|
tsyringe.injectable(),
|
|
3577
3580
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped)
|
|
3578
3581
|
], exports.CacheProcessor);
|
|
3579
3582
|
|
|
3580
|
-
var __decorate$
|
|
3583
|
+
var __decorate$n = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3581
3584
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3582
3585
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3583
3586
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3587,7 +3590,7 @@
|
|
|
3587
3590
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3588
3591
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3589
3592
|
};
|
|
3590
|
-
var __metadata$
|
|
3593
|
+
var __metadata$i = (this && this.__metadata) || function (k, v) {
|
|
3591
3594
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3592
3595
|
return Reflect.metadata(k, v);
|
|
3593
3596
|
};
|
|
@@ -3732,13 +3735,13 @@
|
|
|
3732
3735
|
};
|
|
3733
3736
|
return Cache;
|
|
3734
3737
|
}());
|
|
3735
|
-
exports.Cache = __decorate$
|
|
3738
|
+
exports.Cache = __decorate$n([
|
|
3736
3739
|
tsyringe.injectable(),
|
|
3737
3740
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3738
|
-
__metadata$
|
|
3741
|
+
__metadata$i("design:paramtypes", [exports.MongoConnector, exports.Configuration, exports.CacheProcessor])
|
|
3739
3742
|
], exports.Cache);
|
|
3740
3743
|
|
|
3741
|
-
var __decorate$
|
|
3744
|
+
var __decorate$m = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3742
3745
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3743
3746
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3744
3747
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3780,12 +3783,12 @@
|
|
|
3780
3783
|
};
|
|
3781
3784
|
return EndpointProvider;
|
|
3782
3785
|
}());
|
|
3783
|
-
exports.EndpointProvider = __decorate$
|
|
3786
|
+
exports.EndpointProvider = __decorate$m([
|
|
3784
3787
|
tsyringe.injectable(),
|
|
3785
3788
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped)
|
|
3786
3789
|
], exports.EndpointProvider);
|
|
3787
3790
|
|
|
3788
|
-
var __decorate$
|
|
3791
|
+
var __decorate$l = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3789
3792
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3790
3793
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3791
3794
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3795,7 +3798,7 @@
|
|
|
3795
3798
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3796
3799
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3797
3800
|
};
|
|
3798
|
-
var __metadata$
|
|
3801
|
+
var __metadata$h = (this && this.__metadata) || function (k, v) {
|
|
3799
3802
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3800
3803
|
return Reflect.metadata(k, v);
|
|
3801
3804
|
};
|
|
@@ -3867,11 +3870,11 @@
|
|
|
3867
3870
|
};
|
|
3868
3871
|
return Fixtures;
|
|
3869
3872
|
}());
|
|
3870
|
-
exports.Fixtures = __decorate$
|
|
3873
|
+
exports.Fixtures = __decorate$l([
|
|
3871
3874
|
tsyringe.injectable(),
|
|
3872
3875
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3873
3876
|
__param$6(0, tsyringe.injectAll(FIXTURE)),
|
|
3874
|
-
__metadata$
|
|
3877
|
+
__metadata$h("design:paramtypes", [Array])
|
|
3875
3878
|
], exports.Fixtures);
|
|
3876
3879
|
|
|
3877
3880
|
var __awaiter$f = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -3948,7 +3951,7 @@
|
|
|
3948
3951
|
return GalleryImage;
|
|
3949
3952
|
}());
|
|
3950
3953
|
|
|
3951
|
-
var __decorate$
|
|
3954
|
+
var __decorate$k = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3952
3955
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3953
3956
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3954
3957
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3958,7 +3961,7 @@
|
|
|
3958
3961
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3959
3962
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3960
3963
|
};
|
|
3961
|
-
var __metadata$
|
|
3964
|
+
var __metadata$g = (this && this.__metadata) || function (k, v) {
|
|
3962
3965
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3963
3966
|
return Reflect.metadata(k, v);
|
|
3964
3967
|
};
|
|
@@ -3981,13 +3984,13 @@
|
|
|
3981
3984
|
};
|
|
3982
3985
|
return GalleryCache;
|
|
3983
3986
|
}());
|
|
3984
|
-
exports.GalleryCache = __decorate$
|
|
3987
|
+
exports.GalleryCache = __decorate$k([
|
|
3985
3988
|
tsyringe.injectable(),
|
|
3986
3989
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
3987
|
-
__metadata$
|
|
3990
|
+
__metadata$g("design:paramtypes", [])
|
|
3988
3991
|
], exports.GalleryCache);
|
|
3989
3992
|
|
|
3990
|
-
var __decorate$
|
|
3993
|
+
var __decorate$j = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3991
3994
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3992
3995
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3993
3996
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3997,7 +4000,7 @@
|
|
|
3997
4000
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3998
4001
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3999
4002
|
};
|
|
4000
|
-
var __metadata$
|
|
4003
|
+
var __metadata$f = (this && this.__metadata) || function (k, v) {
|
|
4001
4004
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4002
4005
|
return Reflect.metadata(k, v);
|
|
4003
4006
|
};
|
|
@@ -4146,13 +4149,13 @@
|
|
|
4146
4149
|
};
|
|
4147
4150
|
return Gallery;
|
|
4148
4151
|
}());
|
|
4149
|
-
exports.Gallery = __decorate$
|
|
4152
|
+
exports.Gallery = __decorate$j([
|
|
4150
4153
|
tsyringe.injectable(),
|
|
4151
4154
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
4152
|
-
__metadata$
|
|
4155
|
+
__metadata$f("design:paramtypes", [exports.Configuration, exports.GalleryCache])
|
|
4153
4156
|
], exports.Gallery);
|
|
4154
4157
|
|
|
4155
|
-
var __decorate$
|
|
4158
|
+
var __decorate$i = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4156
4159
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4157
4160
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4158
4161
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4162,7 +4165,7 @@
|
|
|
4162
4165
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4163
4166
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4164
4167
|
};
|
|
4165
|
-
var __metadata$
|
|
4168
|
+
var __metadata$e = (this && this.__metadata) || function (k, v) {
|
|
4166
4169
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4167
4170
|
return Reflect.metadata(k, v);
|
|
4168
4171
|
};
|
|
@@ -4233,13 +4236,13 @@
|
|
|
4233
4236
|
};
|
|
4234
4237
|
return IdGenerator;
|
|
4235
4238
|
}());
|
|
4236
|
-
exports.IdGenerator = __decorate$
|
|
4239
|
+
exports.IdGenerator = __decorate$i([
|
|
4237
4240
|
tsyringe.injectable(),
|
|
4238
4241
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
4239
|
-
__metadata$
|
|
4242
|
+
__metadata$e("design:paramtypes", [exports.Configuration])
|
|
4240
4243
|
], exports.IdGenerator);
|
|
4241
4244
|
|
|
4242
|
-
var __decorate$
|
|
4245
|
+
var __decorate$h = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4243
4246
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4244
4247
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4245
4248
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4249,7 +4252,7 @@
|
|
|
4249
4252
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4250
4253
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4251
4254
|
};
|
|
4252
|
-
var __metadata$
|
|
4255
|
+
var __metadata$d = (this && this.__metadata) || function (k, v) {
|
|
4253
4256
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4254
4257
|
return Reflect.metadata(k, v);
|
|
4255
4258
|
};
|
|
@@ -4266,13 +4269,13 @@
|
|
|
4266
4269
|
};
|
|
4267
4270
|
return TranslationProvider;
|
|
4268
4271
|
}());
|
|
4269
|
-
exports.TranslationProvider = __decorate$
|
|
4272
|
+
exports.TranslationProvider = __decorate$h([
|
|
4270
4273
|
tsyringe.injectable(),
|
|
4271
4274
|
tsyringe.singleton(),
|
|
4272
|
-
__metadata$
|
|
4275
|
+
__metadata$d("design:paramtypes", [exports.Configuration])
|
|
4273
4276
|
], exports.TranslationProvider);
|
|
4274
4277
|
|
|
4275
|
-
var __decorate$
|
|
4278
|
+
var __decorate$g = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4276
4279
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4277
4280
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4278
4281
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4282,7 +4285,7 @@
|
|
|
4282
4285
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4283
4286
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4284
4287
|
};
|
|
4285
|
-
var __metadata$
|
|
4288
|
+
var __metadata$c = (this && this.__metadata) || function (k, v) {
|
|
4286
4289
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4287
4290
|
return Reflect.metadata(k, v);
|
|
4288
4291
|
};
|
|
@@ -4376,13 +4379,13 @@
|
|
|
4376
4379
|
};
|
|
4377
4380
|
return Translator;
|
|
4378
4381
|
}());
|
|
4379
|
-
exports.Translator = __decorate$
|
|
4382
|
+
exports.Translator = __decorate$g([
|
|
4380
4383
|
tsyringe.injectable(),
|
|
4381
4384
|
tsyringe.singleton(),
|
|
4382
|
-
__metadata$
|
|
4385
|
+
__metadata$c("design:paramtypes", [exports.TranslationProvider])
|
|
4383
4386
|
], exports.Translator);
|
|
4384
4387
|
|
|
4385
|
-
var __decorate$
|
|
4388
|
+
var __decorate$f = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4386
4389
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4387
4390
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4388
4391
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4392,7 +4395,7 @@
|
|
|
4392
4395
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4393
4396
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4394
4397
|
};
|
|
4395
|
-
var __metadata$
|
|
4398
|
+
var __metadata$b = (this && this.__metadata) || function (k, v) {
|
|
4396
4399
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4397
4400
|
return Reflect.metadata(k, v);
|
|
4398
4401
|
};
|
|
@@ -4525,13 +4528,13 @@
|
|
|
4525
4528
|
};
|
|
4526
4529
|
return TemplateRenderer;
|
|
4527
4530
|
}());
|
|
4528
|
-
exports.TemplateRenderer = __decorate$
|
|
4531
|
+
exports.TemplateRenderer = __decorate$f([
|
|
4529
4532
|
tsyringe.injectable(),
|
|
4530
4533
|
tsyringe.singleton(),
|
|
4531
|
-
__metadata$
|
|
4534
|
+
__metadata$b("design:paramtypes", [exports.Translator, exports.Configuration])
|
|
4532
4535
|
], exports.TemplateRenderer);
|
|
4533
4536
|
|
|
4534
|
-
var __decorate$
|
|
4537
|
+
var __decorate$e = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4535
4538
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4536
4539
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4537
4540
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4541,7 +4544,7 @@
|
|
|
4541
4544
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4542
4545
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4543
4546
|
};
|
|
4544
|
-
var __metadata$
|
|
4547
|
+
var __metadata$a = (this && this.__metadata) || function (k, v) {
|
|
4545
4548
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4546
4549
|
return Reflect.metadata(k, v);
|
|
4547
4550
|
};
|
|
@@ -4608,13 +4611,13 @@
|
|
|
4608
4611
|
};
|
|
4609
4612
|
return MailSender;
|
|
4610
4613
|
}());
|
|
4611
|
-
exports.MailSender = __decorate$
|
|
4614
|
+
exports.MailSender = __decorate$e([
|
|
4612
4615
|
tsyringe.injectable(),
|
|
4613
4616
|
tsyringe.singleton(),
|
|
4614
|
-
__metadata$
|
|
4617
|
+
__metadata$a("design:paramtypes", [exports.Configuration, exports.TemplateRenderer])
|
|
4615
4618
|
], exports.MailSender);
|
|
4616
4619
|
|
|
4617
|
-
var __decorate$
|
|
4620
|
+
var __decorate$d = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4618
4621
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4619
4622
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4620
4623
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4624,7 +4627,7 @@
|
|
|
4624
4627
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4625
4628
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4626
4629
|
};
|
|
4627
|
-
var __metadata$
|
|
4630
|
+
var __metadata$9 = (this && this.__metadata) || function (k, v) {
|
|
4628
4631
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4629
4632
|
return Reflect.metadata(k, v);
|
|
4630
4633
|
};
|
|
@@ -4738,13 +4741,13 @@
|
|
|
4738
4741
|
};
|
|
4739
4742
|
return MemoryCache;
|
|
4740
4743
|
}());
|
|
4741
|
-
exports.MemoryCache = __decorate$
|
|
4744
|
+
exports.MemoryCache = __decorate$d([
|
|
4742
4745
|
tsyringe.injectable(),
|
|
4743
4746
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped),
|
|
4744
|
-
__metadata$
|
|
4747
|
+
__metadata$9("design:paramtypes", [exports.Cache])
|
|
4745
4748
|
], exports.MemoryCache);
|
|
4746
4749
|
|
|
4747
|
-
var __decorate$
|
|
4750
|
+
var __decorate$c = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4748
4751
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4749
4752
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4750
4753
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4819,11 +4822,86 @@
|
|
|
4819
4822
|
};
|
|
4820
4823
|
return UserManager;
|
|
4821
4824
|
}());
|
|
4822
|
-
exports.UserManager = __decorate$
|
|
4825
|
+
exports.UserManager = __decorate$c([
|
|
4823
4826
|
tsyringe.injectable(),
|
|
4824
4827
|
tsyringe.scoped(tsyringe.Lifecycle.ContainerScoped)
|
|
4825
4828
|
], exports.UserManager);
|
|
4826
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
|
+
|
|
4827
4905
|
var __decorate$a = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4828
4906
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4829
4907
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
@@ -5045,14 +5123,14 @@
|
|
|
5045
5123
|
routingControllers.Get("/image/:id/:rotation"),
|
|
5046
5124
|
__param$5(0, routingControllers.Param("id")), __param$5(1, routingControllers.QueryParams()), __param$5(2, routingControllers.Res()), __param$5(3, routingControllers.Param("rotation")),
|
|
5047
5125
|
__metadata$7("design:type", Function),
|
|
5048
|
-
__metadata$7("design:paramtypes", [String,
|
|
5126
|
+
__metadata$7("design:paramtypes", [String, AssetImageParams, Object, Number]),
|
|
5049
5127
|
__metadata$7("design:returntype", Promise)
|
|
5050
5128
|
], AssetsController.prototype, "getImageRotation", null);
|
|
5051
5129
|
__decorate$a([
|
|
5052
5130
|
routingControllers.Get("/image/:id"),
|
|
5053
5131
|
__param$5(0, routingControllers.Param("id")), __param$5(1, routingControllers.QueryParams()), __param$5(2, routingControllers.Res()),
|
|
5054
5132
|
__metadata$7("design:type", Function),
|
|
5055
|
-
__metadata$7("design:paramtypes", [String,
|
|
5133
|
+
__metadata$7("design:paramtypes", [String, AssetImageParams, Object]),
|
|
5056
5134
|
__metadata$7("design:returntype", Promise)
|
|
5057
5135
|
], AssetsController.prototype, "getImage", null);
|
|
5058
5136
|
__decorate$a([
|
|
@@ -5066,7 +5144,7 @@
|
|
|
5066
5144
|
routingControllers.Get("/by-name/image/:name"),
|
|
5067
5145
|
__param$5(0, routingControllers.Param("name")), __param$5(1, routingControllers.QueryParams()), __param$5(2, routingControllers.Res()),
|
|
5068
5146
|
__metadata$7("design:type", Function),
|
|
5069
|
-
__metadata$7("design:paramtypes", [String,
|
|
5147
|
+
__metadata$7("design:paramtypes", [String, AssetImageParams, Object]),
|
|
5070
5148
|
__metadata$7("design:returntype", Promise)
|
|
5071
5149
|
], AssetsController.prototype, "getImageByName", null);
|
|
5072
5150
|
AssetsController = __decorate$a([
|
|
@@ -6332,6 +6410,7 @@
|
|
|
6332
6410
|
* Generated bundle index. Do not edit.
|
|
6333
6411
|
*/
|
|
6334
6412
|
|
|
6413
|
+
exports.AssetImageParams = AssetImageParams;
|
|
6335
6414
|
exports.DI_CONTAINER = DI_CONTAINER;
|
|
6336
6415
|
exports.EXPRESS = EXPRESS;
|
|
6337
6416
|
exports.FIXTURE = FIXTURE;
|