@comet/cms-api 9.0.0-canary-20251209132220 → 9.0.0-canary-20251211112608
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/lib/auth/guards/comet.guard.d.ts +2 -1
- package/lib/auth/guards/comet.guard.d.ts.map +1 -1
- package/lib/auth/guards/comet.guard.js +7 -3
- package/lib/auth/guards/comet.guard.js.map +1 -1
- package/lib/builds/build-templates.resolver.js +2 -2
- package/lib/builds/build-templates.resolver.js.map +1 -1
- package/lib/builds/builds.resolver.js +2 -2
- package/lib/builds/builds.resolver.js.map +1 -1
- package/lib/common/guards/cdn.guard.d.ts +2 -1
- package/lib/common/guards/cdn.guard.d.ts.map +1 -1
- package/lib/common/guards/cdn.guard.js +9 -3
- package/lib/common/guards/cdn.guard.js.map +1 -1
- package/lib/cron-jobs/cron-jobs.resolver.js +2 -2
- package/lib/cron-jobs/cron-jobs.resolver.js.map +1 -1
- package/lib/cron-jobs/cron-jobs.service.d.ts.map +1 -1
- package/lib/cron-jobs/cron-jobs.service.js +3 -2
- package/lib/cron-jobs/cron-jobs.service.js.map +1 -1
- package/lib/cron-jobs/dto/cron-job.object.d.ts +1 -0
- package/lib/cron-jobs/dto/cron-job.object.d.ts.map +1 -1
- package/lib/cron-jobs/dto/cron-job.object.js +4 -0
- package/lib/cron-jobs/dto/cron-job.object.js.map +1 -1
- package/lib/cron-jobs/jobs.resolver.js +2 -2
- package/lib/cron-jobs/jobs.resolver.js.map +1 -1
- package/lib/file-uploads/dto/file-upload.body.d.ts +4 -0
- package/lib/file-uploads/dto/file-upload.body.d.ts.map +1 -0
- package/lib/file-uploads/dto/file-upload.body.js +25 -0
- package/lib/file-uploads/dto/file-upload.body.js.map +1 -0
- package/lib/file-uploads/entities/file-upload.entity.d.ts +1 -0
- package/lib/file-uploads/entities/file-upload.entity.d.ts.map +1 -1
- package/lib/file-uploads/entities/file-upload.entity.js +9 -1
- package/lib/file-uploads/entities/file-upload.entity.js.map +1 -1
- package/lib/file-uploads/file-upload-expiration.subscriber.d.ts +12 -0
- package/lib/file-uploads/file-upload-expiration.subscriber.d.ts.map +1 -0
- package/lib/file-uploads/file-upload-expiration.subscriber.js +50 -0
- package/lib/file-uploads/file-upload-expiration.subscriber.js.map +1 -0
- package/lib/file-uploads/file-uploads-upload.controller.d.ts.map +1 -1
- package/lib/file-uploads/file-uploads-upload.controller.js +5 -3
- package/lib/file-uploads/file-uploads-upload.controller.js.map +1 -1
- package/lib/file-uploads/file-uploads.config.d.ts +8 -0
- package/lib/file-uploads/file-uploads.config.d.ts.map +1 -1
- package/lib/file-uploads/file-uploads.module.d.ts.map +1 -1
- package/lib/file-uploads/file-uploads.module.js +7 -1
- package/lib/file-uploads/file-uploads.module.js.map +1 -1
- package/lib/file-uploads/file-uploads.service.d.ts +8 -3
- package/lib/file-uploads/file-uploads.service.d.ts.map +1 -1
- package/lib/file-uploads/file-uploads.service.js +49 -6
- package/lib/file-uploads/file-uploads.service.js.map +1 -1
- package/lib/importer/data-streams/data-stream.d.ts +10 -0
- package/lib/importer/data-streams/data-stream.d.ts.map +1 -0
- package/lib/importer/data-streams/data-stream.js +7 -0
- package/lib/importer/data-streams/data-stream.js.map +1 -0
- package/lib/importer/data-streams/file-data-stream.d.ts +22 -0
- package/lib/importer/data-streams/file-data-stream.d.ts.map +1 -0
- package/lib/importer/data-streams/file-data-stream.js +16 -0
- package/lib/importer/data-streams/file-data-stream.js.map +1 -0
- package/lib/importer/data-streams/local-file-data-stream.d.ts +18 -0
- package/lib/importer/data-streams/local-file-data-stream.d.ts.map +1 -0
- package/lib/importer/data-streams/local-file-data-stream.js +99 -0
- package/lib/importer/data-streams/local-file-data-stream.js.map +1 -0
- package/lib/importer/decorators/csv-column.decorator.d.ts +35 -0
- package/lib/importer/decorators/csv-column.decorator.d.ts.map +1 -0
- package/lib/importer/decorators/csv-column.decorator.js +63 -0
- package/lib/importer/decorators/csv-column.decorator.js.map +1 -0
- package/lib/importer/import-target.interface.d.ts +6 -0
- package/lib/importer/import-target.interface.d.ts.map +1 -0
- package/lib/importer/import-target.interface.js +3 -0
- package/lib/importer/import-target.interface.js.map +1 -0
- package/lib/importer/importer-input.type.d.ts +4 -0
- package/lib/importer/importer-input.type.d.ts.map +1 -0
- package/lib/importer/importer-input.type.js +3 -0
- package/lib/importer/importer-input.type.js.map +1 -0
- package/lib/importer/pipes/end.pipe.d.ts +14 -0
- package/lib/importer/pipes/end.pipe.d.ts.map +1 -0
- package/lib/importer/pipes/end.pipe.js +19 -0
- package/lib/importer/pipes/end.pipe.js.map +1 -0
- package/lib/importer/pipes/importer-pipe.type.d.ts +19 -0
- package/lib/importer/pipes/importer-pipe.type.d.ts.map +1 -0
- package/lib/importer/pipes/importer-pipe.type.js +3 -0
- package/lib/importer/pipes/importer-pipe.type.js.map +1 -0
- package/lib/importer/pipes/parsers/csv-parser-and-transform.composite-pipe.d.ts +13 -0
- package/lib/importer/pipes/parsers/csv-parser-and-transform.composite-pipe.d.ts.map +1 -0
- package/lib/importer/pipes/parsers/csv-parser-and-transform.composite-pipe.js +22 -0
- package/lib/importer/pipes/parsers/csv-parser-and-transform.composite-pipe.js.map +1 -0
- package/lib/importer/pipes/parsers/csv-parser.pipe.d.ts +24 -0
- package/lib/importer/pipes/parsers/csv-parser.pipe.d.ts.map +1 -0
- package/lib/importer/pipes/parsers/csv-parser.pipe.js +98 -0
- package/lib/importer/pipes/parsers/csv-parser.pipe.js.map +1 -0
- package/lib/importer/pipes/parsers/data-transformer.pipe.d.ts +19 -0
- package/lib/importer/pipes/parsers/data-transformer.pipe.d.ts.map +1 -0
- package/lib/importer/pipes/parsers/data-transformer.pipe.js +51 -0
- package/lib/importer/pipes/parsers/data-transformer.pipe.js.map +1 -0
- package/lib/importer/pipes/parsers/data-validator.pipe.d.ts +15 -0
- package/lib/importer/pipes/parsers/data-validator.pipe.d.ts.map +1 -0
- package/lib/importer/pipes/parsers/data-validator.pipe.js +61 -0
- package/lib/importer/pipes/parsers/data-validator.pipe.js.map +1 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +16 -2
- package/lib/index.js.map +1 -1
- package/lib/kubernetes/{prevent-local-invocation.guard.d.ts → kubernetes-authentication.guard.d.ts} +2 -2
- package/lib/kubernetes/kubernetes-authentication.guard.d.ts.map +1 -0
- package/lib/kubernetes/{prevent-local-invocation.guard.js → kubernetes-authentication.guard.js} +10 -10
- package/lib/kubernetes/kubernetes-authentication.guard.js.map +1 -0
- package/lib/kubernetes/kubernetes.module.d.ts +8 -2
- package/lib/kubernetes/kubernetes.module.d.ts.map +1 -1
- package/lib/kubernetes/kubernetes.module.js.map +1 -1
- package/lib/kubernetes/kubernetes.service.d.ts +2 -1
- package/lib/kubernetes/kubernetes.service.d.ts.map +1 -1
- package/lib/kubernetes/kubernetes.service.js +25 -17
- package/lib/kubernetes/kubernetes.service.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20251013081751.d.ts +5 -0
- package/lib/mikro-orm/migrations/Migration20251013081751.d.ts.map +1 -0
- package/lib/mikro-orm/migrations/Migration20251013081751.js +22 -0
- package/lib/mikro-orm/migrations/Migration20251013081751.js.map +1 -0
- package/lib/mikro-orm/mikro-orm.module.d.ts.map +1 -1
- package/lib/mikro-orm/mikro-orm.module.js +2 -0
- package/lib/mikro-orm/mikro-orm.module.js.map +1 -1
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/lib/user-permissions/auth/user-permissions.guard.d.ts +2 -1
- package/lib/user-permissions/auth/user-permissions.guard.d.ts.map +1 -1
- package/lib/user-permissions/auth/user-permissions.guard.js +18 -8
- package/lib/user-permissions/auth/user-permissions.guard.js.map +1 -1
- package/lib/warnings/warning-checker.command.d.ts.map +1 -1
- package/lib/warnings/warning-checker.command.js +9 -11
- package/lib/warnings/warning-checker.command.js.map +1 -1
- package/package.json +16 -14
- package/lib/kubernetes/prevent-local-invocation.guard.d.ts.map +0 -1
- package/lib/kubernetes/prevent-local-invocation.guard.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanActivate, ExecutionContext } from "@nestjs/common";
|
|
1
|
+
import { CanActivate, ExecutionContext, Logger } from "@nestjs/common";
|
|
2
2
|
import { Reflector } from "@nestjs/core";
|
|
3
3
|
import { UserPermissionsService } from "../../user-permissions/user-permissions.service";
|
|
4
4
|
import { AuthServiceInterface } from "../util/auth-service.interface";
|
|
@@ -6,6 +6,7 @@ export declare class CometAuthGuard implements CanActivate {
|
|
|
6
6
|
private reflector;
|
|
7
7
|
private readonly service;
|
|
8
8
|
private readonly authServices;
|
|
9
|
+
protected readonly logger: Logger;
|
|
9
10
|
constructor(reflector: Reflector, service: UserPermissionsService, authServices: AuthServiceInterface[]);
|
|
10
11
|
private getRequest;
|
|
11
12
|
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comet.guard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/comet.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"comet.guard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/comet.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAsB,MAAM,EAAyB,MAAM,gBAAgB,CAAC;AAClH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAGzF,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gCAAgC,CAAC;AAEzF,qBACa,cAAe,YAAW,WAAW;IAI1C,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACO,OAAO,CAAC,QAAQ,CAAC,YAAY;IALhE,SAAS,CAAC,QAAQ,CAAC,MAAM,SAAmC;gBAGhD,SAAS,EAAE,SAAS,EACX,OAAO,EAAE,sBAAsB,EACA,YAAY,EAAE,oBAAoB,EAAE;IAGxF,OAAO,CAAC,UAAU;IAMZ,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;YA8ChD,0BAA0B;IAQxC,OAAO,CAAC,uBAAuB;CASlC"}
|
|
@@ -20,6 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
+
var CometAuthGuard_1;
|
|
23
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
25
|
exports.CometAuthGuard = void 0;
|
|
25
26
|
const common_1 = require("@nestjs/common");
|
|
@@ -28,11 +29,12 @@ const graphql_1 = require("@nestjs/graphql");
|
|
|
28
29
|
const user_permissions_service_1 = require("../../user-permissions/user-permissions.service");
|
|
29
30
|
const disable_comet_guards_decorator_1 = require("../decorators/disable-comet-guards.decorator");
|
|
30
31
|
const auth_service_interface_1 = require("../util/auth-service.interface");
|
|
31
|
-
let CometAuthGuard = class CometAuthGuard {
|
|
32
|
+
let CometAuthGuard = CometAuthGuard_1 = class CometAuthGuard {
|
|
32
33
|
constructor(reflector, service, authServices) {
|
|
33
34
|
this.reflector = reflector;
|
|
34
35
|
this.service = service;
|
|
35
36
|
this.authServices = authServices;
|
|
37
|
+
this.logger = new common_1.Logger(CometAuthGuard_1.name);
|
|
36
38
|
}
|
|
37
39
|
getRequest(context) {
|
|
38
40
|
return context.getType().toString() === "graphql"
|
|
@@ -51,8 +53,10 @@ let CometAuthGuard = class CometAuthGuard {
|
|
|
51
53
|
return true;
|
|
52
54
|
}
|
|
53
55
|
const result = yield this.getAuthenticatedUserResult(request);
|
|
54
|
-
if (!result)
|
|
56
|
+
if (!result) {
|
|
57
|
+
this.logger.debug(`No AuthService could authenticate the user for ${context.getClass().name}::${context.getHandler().name}().`);
|
|
55
58
|
return false;
|
|
59
|
+
}
|
|
56
60
|
if ("authenticationError" in result)
|
|
57
61
|
throw new common_1.UnauthorizedException(result.authenticationError);
|
|
58
62
|
if ("systemUser" in result) {
|
|
@@ -106,7 +110,7 @@ let CometAuthGuard = class CometAuthGuard {
|
|
|
106
110
|
}
|
|
107
111
|
};
|
|
108
112
|
exports.CometAuthGuard = CometAuthGuard;
|
|
109
|
-
exports.CometAuthGuard = CometAuthGuard = __decorate([
|
|
113
|
+
exports.CometAuthGuard = CometAuthGuard = CometAuthGuard_1 = __decorate([
|
|
110
114
|
(0, common_1.Injectable)(),
|
|
111
115
|
__param(2, (0, common_1.Inject)("COMET_AUTH_SERVICES")),
|
|
112
116
|
__metadata("design:paramtypes", [core_1.Reflector,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comet.guard.js","sourceRoot":"","sources":["../../../src/auth/guards/comet.guard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comet.guard.js","sourceRoot":"","sources":["../../../src/auth/guards/comet.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAkH;AAClH,uCAAyC;AACzC,6CAAsE;AAKtE,8FAAyF;AAEzF,iGAAiG;AACjG,2EAAyF;AAGlF,IAAM,cAAc,sBAApB,MAAM,cAAc;IAGvB,YACY,SAAoB,EACX,OAA+B,EACjB,YAAqD;QAF5E,cAAS,GAAT,SAAS,CAAW;QACX,YAAO,GAAP,OAAO,CAAwB;QACA,iBAAY,GAAZ,YAAY,CAAwB;QALrE,WAAM,GAAG,IAAI,eAAM,CAAC,gBAAc,CAAC,IAAI,CAAC,CAAC;IAMzD,CAAC;IAEI,UAAU,CAAC,OAAyB;QACxC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,SAAS;YAC7C,CAAC,CAAC,6BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC,GAAG;YACtD,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,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U,CAAC,OAAO,EAAE,CAAC;YAClC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YACxC,OAAO,UAAU,KAAK,OAAO,IAAI,UAAU,KAAK,UAAU,CAAC;QAC/D,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AA9EY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAOJ,WAAA,IAAA,eAAM,EAAC,qBAAqB,CAAC,CAAA;qCAFX,gBAAS;QACF,iDAAsB;GAL3C,cAAc,CA8E1B"}
|
|
@@ -26,7 +26,7 @@ const common_1 = require("@nestjs/common");
|
|
|
26
26
|
const graphql_1 = require("@nestjs/graphql");
|
|
27
27
|
const get_current_user_decorator_1 = require("../auth/decorators/get-current-user.decorator");
|
|
28
28
|
const kubernetes_constants_1 = require("../kubernetes/kubernetes.constants");
|
|
29
|
-
const
|
|
29
|
+
const kubernetes_authentication_guard_1 = require("../kubernetes/kubernetes-authentication.guard");
|
|
30
30
|
const required_permission_decorator_1 = require("../user-permissions/decorators/required-permission.decorator");
|
|
31
31
|
const current_user_1 = require("../user-permissions/dto/current-user");
|
|
32
32
|
const build_templates_service_1 = require("./build-templates.service");
|
|
@@ -61,7 +61,7 @@ exports.BuildTemplatesResolver = BuildTemplatesResolver = __decorate([
|
|
|
61
61
|
(0, graphql_1.Resolver)(() => build_template_object_1.BuildTemplateObject),
|
|
62
62
|
(0, required_permission_decorator_1.RequiredPermission)(["builds"], { skipScopeCheck: true }) // Scopes are checked in Code
|
|
63
63
|
,
|
|
64
|
-
(0, common_1.UseGuards)(
|
|
64
|
+
(0, common_1.UseGuards)(kubernetes_authentication_guard_1.KubernetesAuthenticationGuard),
|
|
65
65
|
__metadata("design:paramtypes", [build_templates_service_1.BuildTemplatesService])
|
|
66
66
|
], BuildTemplatesResolver);
|
|
67
67
|
//# sourceMappingURL=build-templates.resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-templates.resolver.js","sourceRoot":"","sources":["../../src/builds/build-templates.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAAkD;AAElD,8FAA+E;AAC/E,6EAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"build-templates.resolver.js","sourceRoot":"","sources":["../../src/builds/build-templates.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAAkD;AAElD,8FAA+E;AAC/E,6EAAsE;AACtE,mGAA8F;AAC9F,gHAAkG;AAClG,uEAAmE;AACnE,uEAAkE;AAClE,uEAAkE;AAK3D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAGvE,cAAc,CAAmB,IAAiB;;YACpD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;YACzF,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;gBAAC,OAAA,CAAC;oBACrC,EAAE,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,GAAa;oBACnC,IAAI,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAc;oBACtC,KAAK,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,WAAW,0CAAG,uCAAgB,CAAC;iBAC3D,CAAC,CAAA;aAAA,CAAC,CAAC;QACR,CAAC;KAAA;CACJ,CAAA;AAZY,wDAAsB;AAIzB;IADL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,2CAAmB,CAAC,CAAC;IACb,WAAA,IAAA,2CAAc,GAAE,CAAA;;qCAAO,0BAAW;;4DAOvD;iCAXQ,sBAAsB;IAHlC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;IACnC,IAAA,kDAAkB,EAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,6BAA6B;;IACtF,IAAA,kBAAS,EAAC,+DAA6B,CAAC;qCAEe,+CAAqB;GADhE,sBAAsB,CAYlC"}
|
|
@@ -27,7 +27,7 @@ const graphql_1 = require("@nestjs/graphql");
|
|
|
27
27
|
const get_current_user_decorator_1 = require("../auth/decorators/get-current-user.decorator");
|
|
28
28
|
const kubernetes_constants_1 = require("../kubernetes/kubernetes.constants");
|
|
29
29
|
const kubernetes_service_1 = require("../kubernetes/kubernetes.service");
|
|
30
|
-
const
|
|
30
|
+
const kubernetes_authentication_guard_1 = require("../kubernetes/kubernetes-authentication.guard");
|
|
31
31
|
const required_permission_decorator_1 = require("../user-permissions/decorators/required-permission.decorator");
|
|
32
32
|
const current_user_1 = require("../user-permissions/dto/current-user");
|
|
33
33
|
const user_permissions_constants_1 = require("../user-permissions/user-permissions.constants");
|
|
@@ -100,7 +100,7 @@ exports.BuildsResolver = BuildsResolver = __decorate([
|
|
|
100
100
|
(0, graphql_1.Resolver)(() => build_object_1.Build),
|
|
101
101
|
(0, required_permission_decorator_1.RequiredPermission)(["builds"], { skipScopeCheck: true }) // Scopes are checked in code
|
|
102
102
|
,
|
|
103
|
-
(0, common_1.UseGuards)(
|
|
103
|
+
(0, common_1.UseGuards)(kubernetes_authentication_guard_1.KubernetesAuthenticationGuard),
|
|
104
104
|
__param(2, (0, common_1.Inject)(user_permissions_constants_1.ACCESS_CONTROL_SERVICE)),
|
|
105
105
|
__metadata("design:paramtypes", [kubernetes_service_1.KubernetesService,
|
|
106
106
|
builds_service_1.BuildsService, Object])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builds.resolver.js","sourceRoot":"","sources":["../../src/builds/builds.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAAmD;AACnD,6CAAkE;AAElE,8FAA+E;AAC/E,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A6B;;IACtF,IAAA,kBAAS,EAAC,+DAA6B,CAAC;IAKhC,WAAA,IAAA,eAAM,EAAC,mDAAsB,CAAC,CAAA;qCAFK,sCAAiB;QACrB,8BAAa;GAHxC,cAAc,CAsC1B"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CanActivate, ExecutionContext } from "@nestjs/common";
|
|
1
|
+
import { CanActivate, ExecutionContext, Logger } from "@nestjs/common";
|
|
2
2
|
import { Request } from "express";
|
|
3
3
|
export declare class CdnGuard implements CanActivate {
|
|
4
4
|
private headerName;
|
|
5
5
|
private headerValue;
|
|
6
|
+
protected readonly logger: Logger;
|
|
6
7
|
constructor({ headerName, headerValue }: {
|
|
7
8
|
headerName: string;
|
|
8
9
|
headerValue: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn.guard.d.ts","sourceRoot":"","sources":["../../../src/common/guards/cdn.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAc,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"cdn.guard.d.ts","sourceRoot":"","sources":["../../../src/common/guards/cdn.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAc,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,qBACa,QAAS,YAAW,WAAW;IACxC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,WAAW,CAAS;IAC5B,SAAS,CAAC,QAAQ,CAAC,MAAM,SAA6B;gBAE1C,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE;IAKpF,OAAO,CAAC,iBAAiB;IAKzB,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO;IAM9C,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO;CAclD"}
|
|
@@ -8,12 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var CdnGuard_1;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CdnGuard = void 0;
|
|
13
14
|
const common_1 = require("@nestjs/common");
|
|
14
15
|
const graphql_1 = require("@nestjs/graphql");
|
|
15
|
-
let CdnGuard = class CdnGuard {
|
|
16
|
+
let CdnGuard = CdnGuard_1 = class CdnGuard {
|
|
16
17
|
constructor({ headerName, headerValue }) {
|
|
18
|
+
this.logger = new common_1.Logger(CdnGuard_1.name);
|
|
17
19
|
this.headerName = headerName;
|
|
18
20
|
this.headerValue = headerValue;
|
|
19
21
|
}
|
|
@@ -32,11 +34,15 @@ let CdnGuard = class CdnGuard {
|
|
|
32
34
|
// Internal requests (e.g. BFF) are allowed
|
|
33
35
|
return true;
|
|
34
36
|
}
|
|
35
|
-
|
|
37
|
+
if (request.header(this.headerName) === this.headerValue) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
this.logger.debug(`Header "${this.headerName}" either missing or invalid.`);
|
|
41
|
+
return false;
|
|
36
42
|
}
|
|
37
43
|
};
|
|
38
44
|
exports.CdnGuard = CdnGuard;
|
|
39
|
-
exports.CdnGuard = CdnGuard = __decorate([
|
|
45
|
+
exports.CdnGuard = CdnGuard = CdnGuard_1 = __decorate([
|
|
40
46
|
(0, common_1.Injectable)(),
|
|
41
47
|
__metadata("design:paramtypes", [Object])
|
|
42
48
|
], CdnGuard);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn.guard.js","sourceRoot":"","sources":["../../../src/common/guards/cdn.guard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":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QAAQ;IADpB,IAAA,mBAAU,GAAE;;GACA,QAAQ,CAmCpB"}
|
|
@@ -30,7 +30,7 @@ const skip_build_decorator_1 = require("../builds/skip-build.decorator");
|
|
|
30
30
|
const job_status_enum_1 = require("../kubernetes/job-status.enum");
|
|
31
31
|
const kubernetes_constants_1 = require("../kubernetes/kubernetes.constants");
|
|
32
32
|
const kubernetes_service_1 = require("../kubernetes/kubernetes.service");
|
|
33
|
-
const
|
|
33
|
+
const kubernetes_authentication_guard_1 = require("../kubernetes/kubernetes-authentication.guard");
|
|
34
34
|
const required_permission_decorator_1 = require("../user-permissions/decorators/required-permission.decorator");
|
|
35
35
|
const current_user_1 = require("../user-permissions/dto/current-user");
|
|
36
36
|
const user_permissions_constants_1 = require("../user-permissions/user-permissions.constants");
|
|
@@ -132,7 +132,7 @@ __decorate([
|
|
|
132
132
|
exports.CronJobsResolver = CronJobsResolver = __decorate([
|
|
133
133
|
(0, graphql_1.Resolver)(() => cron_job_object_1.CronJob),
|
|
134
134
|
(0, required_permission_decorator_1.RequiredPermission)(["cronJobs"], { skipScopeCheck: true }),
|
|
135
|
-
(0, common_1.UseGuards)(
|
|
135
|
+
(0, common_1.UseGuards)(kubernetes_authentication_guard_1.KubernetesAuthenticationGuard),
|
|
136
136
|
__param(3, (0, common_1.Inject)(user_permissions_constants_1.ACCESS_CONTROL_SERVICE)),
|
|
137
137
|
__metadata("design:paramtypes", [kubernetes_service_1.KubernetesService,
|
|
138
138
|
cron_jobs_service_1.CronJobsService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-jobs.resolver.js","sourceRoot":"","sources":["../../src/cron-jobs/cron-jobs.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAmD;AACnD,6CAAwF;AAExF,8FAA+E;AAC/E,iEAA2D;AAC3D,yEAA2D;AAC3D,mEAAoE;AACpE,6EAAoE;AACpE,yEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"c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DAO1C;2BAjEQ,gBAAgB;IAH5B,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,yBAAO,CAAC;IACvB,IAAA,kDAAkB,EAAC,CAAC,UAAU,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;IAC1D,IAAA,kBAAS,EAAC,+DAA6B,CAAC;IAMhC,WAAA,IAAA,eAAM,EAAC,mDAAsB,CAAC,CAAA;qCAHK,sCAAiB;QACnB,mCAAe;QACnB,0BAAW;GAJpC,gBAAgB,CAkE5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-jobs.service.d.ts","sourceRoot":"","sources":["../../src/cron-jobs/cron-jobs.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBACa,eAAe;IACxB,2CAA2C,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"cron-jobs.service.d.ts","sourceRoot":"","sources":["../../src/cron-jobs/cron-jobs.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBACa,eAAe;IACxB,2CAA2C,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;CAW3E"}
|
|
@@ -11,14 +11,15 @@ const common_1 = require("@nestjs/common");
|
|
|
11
11
|
const kubernetes_constants_1 = require("../kubernetes/kubernetes.constants");
|
|
12
12
|
let CronJobsService = class CronJobsService {
|
|
13
13
|
convertKubernetesCronJobToCronJobObjectType(cronJob) {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
15
15
|
// Props are set if read from kubernetes, so we can safely cast them
|
|
16
16
|
return {
|
|
17
17
|
id: (_a = cronJob.metadata) === null || _a === void 0 ? void 0 : _a.uid,
|
|
18
18
|
name: (_b = cronJob.metadata) === null || _b === void 0 ? void 0 : _b.name,
|
|
19
19
|
label: (_d = (_c = cronJob.metadata) === null || _c === void 0 ? void 0 : _c.annotations) === null || _d === void 0 ? void 0 : _d[kubernetes_constants_1.LABEL_ANNOTATION],
|
|
20
20
|
schedule: (_e = cronJob.spec) === null || _e === void 0 ? void 0 : _e.schedule,
|
|
21
|
-
|
|
21
|
+
suspended: (_f = cronJob.spec) === null || _f === void 0 ? void 0 : _f.suspend,
|
|
22
|
+
lastScheduledAt: (_g = cronJob.status) === null || _g === void 0 ? void 0 : _g.lastScheduleTime,
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-jobs.service.js","sourceRoot":"","sources":["../../src/cron-jobs/cron-jobs.service.ts"],"names":[],"mappings":";;;;;;;;;AACA,2CAA4C;AAE5C,6EAAsE;AAI/D,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,2CAA2C,CAAC,OAAkB;;QAC1D,oEAAoE;QACpE,OAAO;YACH,EAAE,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,GAAa;YACnC,IAAI,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAc;YACtC,KAAK,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,WAAW,0CAAG,uCAAgB,CAAC;YACxD,QAAQ,EAAE,MAAA,OAAO,CAAC,IAAI,0CAAE,QAAkB;YAC1C,eAAe,EAAE,MAAA,OAAO,CAAC,MAAM,0CAAE,gBAAgB;SACpD,CAAC;IACN,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"cron-jobs.service.js","sourceRoot":"","sources":["../../src/cron-jobs/cron-jobs.service.ts"],"names":[],"mappings":";;;;;;;;;AACA,2CAA4C;AAE5C,6EAAsE;AAI/D,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,2CAA2C,CAAC,OAAkB;;QAC1D,oEAAoE;QACpE,OAAO;YACH,EAAE,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,GAAa;YACnC,IAAI,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAc;YACtC,KAAK,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,WAAW,0CAAG,uCAAgB,CAAC;YACxD,QAAQ,EAAE,MAAA,OAAO,CAAC,IAAI,0CAAE,QAAkB;YAC1C,SAAS,EAAE,MAAA,OAAO,CAAC,IAAI,0CAAE,OAAkB;YAC3C,eAAe,EAAE,MAAA,OAAO,CAAC,MAAM,0CAAE,gBAAgB;SACpD,CAAC;IACN,CAAC;CACJ,CAAA;AAZY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;GACA,eAAe,CAY3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-job.object.d.ts","sourceRoot":"","sources":["../../../src/cron-jobs/dto/cron-job.object.ts"],"names":[],"mappings":"AAIA,qBACa,OAAO;IAEhB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,eAAe,CAAC,EAAE,IAAI,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"cron-job.object.d.ts","sourceRoot":"","sources":["../../../src/cron-jobs/dto/cron-job.object.ts"],"names":[],"mappings":"AAIA,qBACa,OAAO;IAEhB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,OAAO,CAAC;IAGnB,eAAe,CAAC,EAAE,IAAI,CAAC;CAC1B"}
|
|
@@ -31,6 +31,10 @@ __decorate([
|
|
|
31
31
|
(0, graphql_1.Field)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], CronJob.prototype, "schedule", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, graphql_1.Field)(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], CronJob.prototype, "suspended", void 0);
|
|
34
38
|
__decorate([
|
|
35
39
|
(0, graphql_1.Field)({ nullable: true }),
|
|
36
40
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-job.object.js","sourceRoot":"","sources":["../../../src/cron-jobs/dto/cron-job.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AAExD,gFAAyE;AAGlE,IAAM,OAAO,GAAb,MAAM,OAAO;
|
|
1
|
+
{"version":3,"file":"cron-job.object.js","sourceRoot":"","sources":["../../../src/cron-jobs/dto/cron-job.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AAExD,gFAAyE;AAGlE,IAAM,OAAO,GAAb,MAAM,OAAO;CAkBnB,CAAA;AAlBY,0BAAO;AAEhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;mCACL;AAGX;IADC,IAAA,eAAK,GAAE;;qCACK;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,oCAAoC,uCAAgB,kDAAkD,EAAE,CAAC;;sCAChI;AAGf;IADC,IAAA,eAAK,GAAE;;yCACS;AAGjB;IADC,IAAA,eAAK,GAAE;;0CACW;AAGnB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;gDAAC;kBAjBd,OAAO;IADnB,IAAA,oBAAU,EAAC,mBAAmB,CAAC;GACnB,OAAO,CAkBnB"}
|
|
@@ -26,7 +26,7 @@ const common_1 = require("@nestjs/common");
|
|
|
26
26
|
const graphql_1 = require("@nestjs/graphql");
|
|
27
27
|
const get_current_user_decorator_1 = require("../auth/decorators/get-current-user.decorator");
|
|
28
28
|
const kubernetes_service_1 = require("../kubernetes/kubernetes.service");
|
|
29
|
-
const
|
|
29
|
+
const kubernetes_authentication_guard_1 = require("../kubernetes/kubernetes-authentication.guard");
|
|
30
30
|
const required_permission_decorator_1 = require("../user-permissions/decorators/required-permission.decorator");
|
|
31
31
|
const current_user_1 = require("../user-permissions/dto/current-user");
|
|
32
32
|
const user_permissions_constants_1 = require("../user-permissions/user-permissions.constants");
|
|
@@ -98,7 +98,7 @@ __decorate([
|
|
|
98
98
|
exports.JobsResolver = JobsResolver = __decorate([
|
|
99
99
|
(0, graphql_1.Resolver)(() => job_object_1.Job),
|
|
100
100
|
(0, required_permission_decorator_1.RequiredPermission)(["cronJobs"], { skipScopeCheck: true }),
|
|
101
|
-
(0, common_1.UseGuards)(
|
|
101
|
+
(0, common_1.UseGuards)(kubernetes_authentication_guard_1.KubernetesAuthenticationGuard),
|
|
102
102
|
__param(2, (0, common_1.Inject)(user_permissions_constants_1.ACCESS_CONTROL_SERVICE)),
|
|
103
103
|
__metadata("design:paramtypes", [kubernetes_service_1.KubernetesService,
|
|
104
104
|
jobs_service_1.JobsService, Object])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.resolver.js","sourceRoot":"","sources":["../../src/cron-jobs/jobs.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAmD;AACnD,6CAAwD;AAExD,8FAA+E;AAC/E,yEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"jobs.resolver.js","sourceRoot":"","sources":["../../src/cron-jobs/jobs.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAmD;AACnD,6CAAwD;AAExD,8FAA+E;AAC/E,yEAAqE;AACrE,mGAA8F;AAC9F,gHAAkG;AAClG,uEAAmE;AACnE,+FAAwF;AAExF,iDAAuC;AACvC,iDAA6C;AAKtC,IAAM,YAA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IAC1D,IAAA,kBAAS,EAAC,+DAA6B,CAAC;IAKhC,WAAA,IAAA,eAAM,EAAC,mDAAsB,CAAC,CAAA;qCAFK,sCAAiB;QACvB,0BAAW;GAHpC,YAAY,CAwCxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-upload.body.d.ts","sourceRoot":"","sources":["../../../src/file-uploads/dto/file-upload.body.ts"],"names":[],"mappings":"AAKA,qBAAa,cAAc;IAIvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FileUploadBody = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_undefinable_1 = require("../../common/validators/is-undefinable");
|
|
16
|
+
class FileUploadBody {
|
|
17
|
+
}
|
|
18
|
+
exports.FileUploadBody = FileUploadBody;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsInt)(),
|
|
21
|
+
(0, is_undefinable_1.IsUndefinable)(),
|
|
22
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], FileUploadBody.prototype, "expiresIn", void 0);
|
|
25
|
+
//# sourceMappingURL=file-upload.body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-upload.body.js","sourceRoot":"","sources":["../../../src/file-uploads/dto/file-upload.body.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAwC;AAExC,2EAAuE;AAEvE,MAAa,cAAc;CAK1B;AALD,wCAKC;AADG;IAHC,IAAA,uBAAK,GAAE;IACP,IAAA,8BAAa,GAAE;IACf,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iDACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload.entity.d.ts","sourceRoot":"","sources":["../../../src/file-uploads/entities/file-upload.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA6B,aAAa,EAAwB,MAAM,uBAAuB,CAAC;AAInH,qBAEa,UAAW,SAAQ,UAAU;IACtC,CAAC,aAAa,CAAC,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;IAI5C,EAAE,EAAE,MAAM,CAAU;IAIpB,IAAI,EAAE,MAAM,CAAC;IAIb,IAAI,EAAE,MAAM,CAAC;IAIb,QAAQ,EAAE,MAAM,CAAC;IAKjB,WAAW,EAAE,MAAM,CAAC;IAMpB,SAAS,EAAE,IAAI,CAAc;IAO7B,SAAS,EAAE,IAAI,CAAc;
|
|
1
|
+
{"version":3,"file":"file-upload.entity.d.ts","sourceRoot":"","sources":["../../../src/file-uploads/entities/file-upload.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA6B,aAAa,EAAwB,MAAM,uBAAuB,CAAC;AAInH,qBAEa,UAAW,SAAQ,UAAU;IACtC,CAAC,aAAa,CAAC,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;IAI5C,EAAE,EAAE,MAAM,CAAU;IAIpB,IAAI,EAAE,MAAM,CAAC;IAIb,IAAI,EAAE,MAAM,CAAC;IAIb,QAAQ,EAAE,MAAM,CAAC;IAKjB,WAAW,EAAE,MAAM,CAAC;IAMpB,SAAS,EAAE,IAAI,CAAc;IAO7B,SAAS,EAAE,IAAI,CAAc;IAO7B,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -17,7 +17,7 @@ let FileUpload = class FileUpload extends postgresql_1.BaseEntity {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
19
|
this.id = (0, uuid_1.v4)();
|
|
20
|
-
this.createdAt = new Date();
|
|
20
|
+
this.createdAt = new Date();
|
|
21
21
|
this.updatedAt = new Date();
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -63,6 +63,14 @@ __decorate([
|
|
|
63
63
|
}),
|
|
64
64
|
__metadata("design:type", Date)
|
|
65
65
|
], FileUpload.prototype, "updatedAt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, graphql_1.Field)({ nullable: true, description: "The date and time the file will be deleted. If undefined, the file will never be deleted." }),
|
|
68
|
+
(0, postgresql_1.Property)({
|
|
69
|
+
columnType: "timestamp with time zone",
|
|
70
|
+
nullable: true,
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], FileUpload.prototype, "expiresAt", void 0);
|
|
66
74
|
exports.FileUpload = FileUpload = __decorate([
|
|
67
75
|
(0, graphql_1.ObjectType)("FileUpload"),
|
|
68
76
|
(0, postgresql_1.Entity)({ tableName: "CometFileUpload" })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload.entity.js","sourceRoot":"","sources":["../../../src/file-uploads/entities/file-upload.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAmH;AACnH,6CAA6D;AAC7D,+BAAkC;AAI3B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,uBAAU;IA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;IACP,IAAA,qBAAQ,EAAC;QACN,UAAU,EAAE,0BAA0B;QACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;KAC7B,CAAC;8BACS,IAAI;6CAAc;AAO7B;IALC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,2FAA2F,EAAE,CAAC;IACnI,IAAA,qBAAQ,EAAC;QACN,UAAU,EAAE,0BAA0B;QACtC,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACU,IAAI;6CAAC;qBA1CR,UAAU;IAFtB,IAAA,oBAAU,EAAC,YAAY,CAAC;IACxB,IAAA,mBAAM,EAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;GAC5B,UAAU,CA2CtB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EntityName, EventArgs, EventSubscriber } from "@mikro-orm/core";
|
|
2
|
+
import { EntityManager } from "@mikro-orm/postgresql";
|
|
3
|
+
import { FileUpload } from "./entities/file-upload.entity";
|
|
4
|
+
import { FileUploadsService } from "./file-uploads.service";
|
|
5
|
+
export declare class FileUploadExpirationSubscriber implements EventSubscriber {
|
|
6
|
+
private readonly entityManager;
|
|
7
|
+
private readonly fileUploadsService;
|
|
8
|
+
constructor(entityManager: EntityManager, fileUploadsService: FileUploadsService);
|
|
9
|
+
getSubscribedEntities(): EntityName<FileUpload>[];
|
|
10
|
+
onLoad(args: EventArgs<FileUpload>): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=file-upload-expiration.subscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-upload-expiration.subscriber.d.ts","sourceRoot":"","sources":["../../src/file-uploads/file-upload-expiration.subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBACa,8BAA+B,YAAW,eAAe;IAE9D,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBADlB,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB;IAK3D,qBAAqB,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE;IAI3C,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAM3D"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.FileUploadExpirationSubscriber = void 0;
|
|
22
|
+
const postgresql_1 = require("@mikro-orm/postgresql");
|
|
23
|
+
const common_1 = require("@nestjs/common");
|
|
24
|
+
const file_upload_entity_1 = require("./entities/file-upload.entity");
|
|
25
|
+
const file_uploads_service_1 = require("./file-uploads.service");
|
|
26
|
+
let FileUploadExpirationSubscriber = class FileUploadExpirationSubscriber {
|
|
27
|
+
constructor(entityManager, fileUploadsService) {
|
|
28
|
+
this.entityManager = entityManager;
|
|
29
|
+
this.fileUploadsService = fileUploadsService;
|
|
30
|
+
entityManager.getEventManager().registerSubscriber(this);
|
|
31
|
+
}
|
|
32
|
+
getSubscribedEntities() {
|
|
33
|
+
return [file_upload_entity_1.FileUpload];
|
|
34
|
+
}
|
|
35
|
+
onLoad(args) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (args.entity.expiresAt && args.entity.expiresAt < new Date()) {
|
|
38
|
+
yield this.fileUploadsService.delete(args.entity);
|
|
39
|
+
yield this.entityManager.flush();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.FileUploadExpirationSubscriber = FileUploadExpirationSubscriber;
|
|
45
|
+
exports.FileUploadExpirationSubscriber = FileUploadExpirationSubscriber = __decorate([
|
|
46
|
+
(0, common_1.Injectable)(),
|
|
47
|
+
__metadata("design:paramtypes", [postgresql_1.EntityManager,
|
|
48
|
+
file_uploads_service_1.FileUploadsService])
|
|
49
|
+
], FileUploadExpirationSubscriber);
|
|
50
|
+
//# sourceMappingURL=file-upload-expiration.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-upload-expiration.subscriber.js","sourceRoot":"","sources":["../../src/file-uploads/file-upload-expiration.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,sDAAsD;AACtD,2CAA4C;AAE5C,sEAA2D;AAC3D,iEAA4D;AAGrD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACvC,YACqB,aAA4B,EAC5B,kBAAsC;QADtC,kBAAa,GAAb,aAAa,CAAe;QAC5B,uBAAkB,GAAlB,kBAAkB,CAAoB;QAEvD,aAAa,CAAC,eAAe,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED,qBAAqB;QACjB,OAAO,CAAC,+BAAU,CAAC,CAAC;IACxB,CAAC;IAEK,MAAM,CAAC,IAA2B;;YACpC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;gBAC9D,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBAClD,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YACrC,CAAC;QACL,CAAC;KAAA;CACJ,CAAA;AAlBY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,mBAAU,GAAE;qCAG2B,0BAAa;QACR,yCAAkB;GAHlD,8BAA8B,CAkB1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploads-upload.controller.d.ts","sourceRoot":"","sources":["../../src/file-uploads/file-uploads-upload.controller.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"file-uploads-upload.controller.d.ts","sourceRoot":"","sources":["../../src/file-uploads/file-uploads-upload.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAkC,IAAI,EAAiC,MAAM,gBAAgB,CAAC;AAiBrG,wBAAgB,iCAAiC,CAAC,OAAO,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC,OAAO,CAAC,CA8C7F"}
|
|
@@ -27,6 +27,7 @@ const common_1 = require("@nestjs/common");
|
|
|
27
27
|
const rimraf_1 = require("rimraf");
|
|
28
28
|
const disable_comet_guards_decorator_1 = require("../auth/decorators/disable-comet-guards.decorator");
|
|
29
29
|
const required_permission_decorator_1 = require("../user-permissions/decorators/required-permission.decorator");
|
|
30
|
+
const file_upload_body_1 = require("./dto/file-upload.body");
|
|
30
31
|
const file_uploads_constants_1 = require("./file-uploads.constants");
|
|
31
32
|
const file_uploads_service_1 = require("./file-uploads.service");
|
|
32
33
|
const file_uploads_file_interceptor_1 = require("./file-uploads-file.interceptor");
|
|
@@ -37,9 +38,9 @@ function createFileUploadsUploadController(options) {
|
|
|
37
38
|
this.entityManager = entityManager;
|
|
38
39
|
this.config = config;
|
|
39
40
|
}
|
|
40
|
-
upload(file) {
|
|
41
|
+
upload(file, body) {
|
|
41
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const fileUpload = yield this.fileUploadsService.upload(file);
|
|
43
|
+
const fileUpload = yield this.fileUploadsService.upload(file, body.expiresIn);
|
|
43
44
|
yield this.entityManager.flush();
|
|
44
45
|
try {
|
|
45
46
|
yield (0, rimraf_1.rimraf)(file.path);
|
|
@@ -59,8 +60,9 @@ function createFileUploadsUploadController(options) {
|
|
|
59
60
|
(0, common_1.Post)("upload"),
|
|
60
61
|
(0, common_1.UseInterceptors)((0, file_uploads_file_interceptor_1.FileUploadsFileInterceptor)()),
|
|
61
62
|
__param(0, (0, common_1.UploadedFile)()),
|
|
63
|
+
__param(1, (0, common_1.Body)()),
|
|
62
64
|
__metadata("design:type", Function),
|
|
63
|
-
__metadata("design:paramtypes", [Object]),
|
|
65
|
+
__metadata("design:paramtypes", [Object, file_upload_body_1.FileUploadBody]),
|
|
64
66
|
__metadata("design:returntype", Promise)
|
|
65
67
|
], BaseFileUploadsUploadController.prototype, "upload", null);
|
|
66
68
|
BaseFileUploadsUploadController = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploads-upload.controller.js","sourceRoot":"","sources":["../../src/file-uploads/file-uploads-upload.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"file-uploads-upload.controller.js","sourceRoot":"","sources":["../../src/file-uploads/file-uploads-upload.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBA,8EA8CC;AAhED,sDAAsD;AACtD,2CAAqG;AACrG,mCAAgC;AAEhC,sGAAuF;AAEvF,gHAAkG;AAClG,6DAAwD;AAGxD,qEAA+D;AAC/D,iEAA4D;AAC5D,mFAA6E;AAM7E,SAAgB,iCAAiC,CAAC,OAA4B;IAC1E,IACM,+BAA+B,GADrC,MACM,+BAA+B;QACjC,YACqB,kBAAsC,EACtC,aAA4B,EACC,MAAyB;YAFtD,uBAAkB,GAAlB,kBAAkB,CAAoB;YACtC,kBAAa,GAAb,aAAa,CAAe;YACC,WAAM,GAAN,MAAM,CAAmB;QACxE,CAAC;QAIE,MAAM,CAAiB,IAAqB,EAAU,IAAoB;;gBAC5E,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;gBAE9E,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;gBAEjC,IAAI,CAAC;oBACD,MAAM,IAAA,eAAM,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,CAAC,KAAK,CAAC,4CAA4C,EAAE,KAAK,CAAC,CAAC;gBACvE,CAAC;gBAED,IAAI,WAA+B,CAAC;gBAEpC,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;oBACvB,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;gBACxE,CAAC;gBAED,uCACO,UAAU,KACb,WAAW,IACb;YACN,CAAC;SAAA;KACJ,CAAA;IAtBS;QAFL,IAAA,aAAI,EAAC,QAAQ,CAAC;QACd,IAAA,wBAAe,EAAC,IAAA,0DAA0B,GAAE,CAAC;QAChC,WAAA,IAAA,qBAAY,GAAE,CAAA;QAAyB,WAAA,IAAA,aAAI,GAAE,CAAA;;iDAAO,iCAAc;;iEAqB/E;IA9BC,+BAA+B;QADpC,IAAA,mBAAU,EAAC,cAAc,CAAC;QAKlB,WAAA,IAAA,eAAM,EAAC,4CAAmB,CAAC,CAAA;yCAFS,yCAAkB;YACvB,0BAAa;OAH/C,+BAA+B,CA+BpC;IAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,+BAA+B;SAAG,CAAA;QAA5E,iCAAiC;YADtC,IAAA,mDAAkB,GAAE;WACf,iCAAiC,CAA2C;QAElF,OAAO,iCAAiC,CAAC;IAC7C,CAAC;IAGD,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,+BAA+B;KAAG,CAAA;IAA7E,kCAAkC;QADvC,IAAA,kDAAkB,EAAC,aAAa,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;OACtD,kCAAkC,CAA2C;IAEnF,OAAO,kCAAkC,CAAC;AAC9C,CAAC"}
|
|
@@ -2,6 +2,14 @@ export interface FileUploadsConfig {
|
|
|
2
2
|
directory: string;
|
|
3
3
|
maxFileSize: number;
|
|
4
4
|
acceptedMimeTypes: string[];
|
|
5
|
+
/**
|
|
6
|
+
* Allows setting an expiration duration, after this duration the file will be deleted.
|
|
7
|
+
* The duration is in seconds.
|
|
8
|
+
* Leaving it undefined means the file will never be deleted.
|
|
9
|
+
*
|
|
10
|
+
* @default undefined
|
|
11
|
+
*/
|
|
12
|
+
expiresIn?: number;
|
|
5
13
|
upload?: {
|
|
6
14
|
public: boolean;
|
|
7
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploads.config.d.ts","sourceRoot":"","sources":["../../src/file-uploads/file-uploads.config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAE;QACL,MAAM,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,QAAQ,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf;;;;;WAKG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAClC,CAAC;CACL"}
|
|
1
|
+
{"version":3,"file":"file-uploads.config.d.ts","sourceRoot":"","sources":["../../src/file-uploads/file-uploads.config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE;QACL,MAAM,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,QAAQ,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf;;;;;WAKG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAClC,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploads.module.d.ts","sourceRoot":"","sources":["../../src/file-uploads/file-uploads.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"file-uploads.module.d.ts","sourceRoot":"","sources":["../../src/file-uploads/file-uploads.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AAOzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAO1D,qBAEa,iBAAiB;IAC1B,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,aAAa;CA6C7D"}
|