@darraghor/nest-backend-libs 2.24.0 → 2.26.0
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/dist/cli/cli.js +3 -3
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/commands/WriteApiClientCommand.js +2 -3
- package/dist/cli/commands/WriteApiClientCommand.js.map +1 -1
- package/dist/core-config/CoreConfigurationService.d.ts +1 -1
- package/dist/core-config/CoreConfigurationService.js +9 -9
- package/dist/core-config/CoreConfigurationService.js.map +1 -1
- package/dist/core-config/CoreConfigurationVariables.d.ts +2 -2
- package/dist/core-config/CoreConfigurationVariables.js +1 -1
- package/dist/core-config/CoreConfigurationVariables.js.map +1 -1
- package/dist/database-postgres/PostgresDatabase.module.js +1 -2
- package/dist/database-postgres/PostgresDatabase.module.js.map +1 -1
- package/dist/database-sqlite/SqliteDatabase.module.js +1 -2
- package/dist/database-sqlite/SqliteDatabase.module.js.map +1 -1
- package/dist/invitations/entities/invitation.entity.d.ts +0 -1
- package/dist/invitations/entities/invitation.entity.js +1 -7
- package/dist/invitations/entities/invitation.entity.js.map +1 -1
- package/dist/organisation-memberships/entities/organisation-membership.entity.d.ts +2 -1
- package/dist/organisation-memberships/entities/organisation-membership.entity.js +10 -3
- package/dist/organisation-memberships/entities/organisation-membership.entity.js.map +1 -1
- package/dist/root-app/app.controller.d.ts +1 -0
- package/dist/root-app/app.controller.js +23 -3
- package/dist/root-app/app.controller.js.map +1 -1
- package/dist/root-app/core-app.module.js +2 -14
- package/dist/root-app/core-app.module.js.map +1 -1
- package/dist/user-api-key/userApiKey.entity.js +1 -0
- package/dist/user-api-key/userApiKey.entity.js.map +1 -1
- package/dist/user-internal/dto/userResponseDto.d.ts +2 -0
- package/dist/user-internal/dto/userResponseDto.js +6 -0
- package/dist/user-internal/dto/userResponseDto.js.map +1 -1
- package/dist/user-internal/entities/user.entity.js +3 -0
- package/dist/user-internal/entities/user.entity.js.map +1 -1
- package/package.json +1 -2
package/dist/cli/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "reflect-metadata";
|
|
3
|
-
import
|
|
4
|
-
import { WriteApiClientCommand } from "./commands/WriteApiClientCommand";
|
|
5
|
-
void yargs
|
|
3
|
+
import yargs from "yargs";
|
|
4
|
+
import { WriteApiClientCommand } from "./commands/WriteApiClientCommand.js";
|
|
5
|
+
void yargs(process.argv.slice(2))
|
|
6
6
|
.usage("Usage: $0 <command> [options]")
|
|
7
7
|
.command(new WriteApiClientCommand())
|
|
8
8
|
.recommendCommands()
|
package/dist/cli/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":";AACA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":";AACA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,qBAAqB,EAAC,MAAM,qCAAqC,CAAC;AAE1E,KAAK,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC5B,KAAK,CAAC,+BAA+B,CAAC;KACtC,OAAO,CAAC,IAAI,qBAAqB,EAAE,CAAC;KACpC,iBAAiB,EAAE;KACnB,aAAa,CAAC,CAAC,CAAC;KAChB,MAAM,EAAE;KACR,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC;KACrB,IAAI,CAAC,GAAG,CAAC;KACT,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { exec } from "child_process";
|
|
|
2
2
|
// eslint-disable-next-line unicorn/import-style
|
|
3
3
|
import util from "util";
|
|
4
4
|
import path from "path";
|
|
5
|
+
import url from "url";
|
|
5
6
|
export class WriteApiClientCommand {
|
|
6
7
|
command = "api:write-client";
|
|
7
8
|
describe = "Generates a new api client and installs it into frontend and integration test apps.";
|
|
@@ -44,9 +45,7 @@ export class WriteApiClientCommand {
|
|
|
44
45
|
];
|
|
45
46
|
// if i ever use modules later
|
|
46
47
|
// const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
47
|
-
const scriptPath = path.join(
|
|
48
|
-
// eslint-disable-next-line unicorn/prefer-module
|
|
49
|
-
__dirname, "../../open-api-generation/generate.sh");
|
|
48
|
+
const scriptPath = path.join(path.dirname(url.fileURLToPath(import.meta.url)), "../../open-api-generation/generate.sh");
|
|
50
49
|
const result = await execPromise(`${scriptPath} ${commandArguments.join(" ")}`);
|
|
51
50
|
console.log(result.stdout);
|
|
52
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,gDAAgD;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,gDAAgD;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,KAAK,CAAC;AAYtB,MAAM,OAAO,qBAAqB;IAG9B,OAAO,GAAG,kBAAkB,CAAC;IAC7B,QAAQ,GACJ,qFAAqF,CAAC;IAE1F,yDAAyD;IACzD,OAAO,CAAC,IAAgB;QACpB,OAAO,IAAI;aACN,MAAM,CAAC,GAAG,EAAE;YACT,IAAI,EAA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|
|
6
6
|
get shouldGenerateSwagger(): boolean;
|
|
7
7
|
get shouldAutomaticallyInstallApiModels(): boolean;
|
|
8
8
|
get shouldUseNestCors(): boolean;
|
|
9
|
-
get shouldUseDevtools(): boolean;
|
|
10
9
|
get webPort(): number;
|
|
11
10
|
get appTitle(): string;
|
|
12
11
|
get frontEndAppUrl(): string;
|
|
12
|
+
get marketingAppUrl(): string;
|
|
13
13
|
get nodeEnv(): string;
|
|
14
14
|
get bullQueueHost(): string;
|
|
15
15
|
}
|
|
@@ -28,9 +28,6 @@ let CoreConfigurationService = class CoreConfigurationService extends ValidatedC
|
|
|
28
28
|
get shouldUseNestCors() {
|
|
29
29
|
return (this.configService.get("core.shouldUseNestCors") === "true");
|
|
30
30
|
}
|
|
31
|
-
get shouldUseDevtools() {
|
|
32
|
-
return (this.configService.get("core.shouldUseDevtools") === "true");
|
|
33
|
-
}
|
|
34
31
|
get webPort() {
|
|
35
32
|
return Number.parseInt(this.configService.get("core.webPort"), 10);
|
|
36
33
|
}
|
|
@@ -40,6 +37,9 @@ let CoreConfigurationService = class CoreConfigurationService extends ValidatedC
|
|
|
40
37
|
get frontEndAppUrl() {
|
|
41
38
|
return this.configService.get("core.frontEndAppUrl");
|
|
42
39
|
}
|
|
40
|
+
get marketingAppUrl() {
|
|
41
|
+
return this.configService.get("core.marketingAppUrl");
|
|
42
|
+
}
|
|
43
43
|
get nodeEnv() {
|
|
44
44
|
return this.configService.get("core.nodeEnv");
|
|
45
45
|
}
|
|
@@ -65,12 +65,6 @@ __decorate([
|
|
|
65
65
|
__metadata("design:type", Boolean),
|
|
66
66
|
__metadata("design:paramtypes", [])
|
|
67
67
|
], CoreConfigurationService.prototype, "shouldUseNestCors", null);
|
|
68
|
-
__decorate([
|
|
69
|
-
IsDefined(),
|
|
70
|
-
IsBoolean(),
|
|
71
|
-
__metadata("design:type", Boolean),
|
|
72
|
-
__metadata("design:paramtypes", [])
|
|
73
|
-
], CoreConfigurationService.prototype, "shouldUseDevtools", null);
|
|
74
68
|
__decorate([
|
|
75
69
|
IsDefined(),
|
|
76
70
|
IsInt(),
|
|
@@ -89,6 +83,12 @@ __decorate([
|
|
|
89
83
|
__metadata("design:type", String),
|
|
90
84
|
__metadata("design:paramtypes", [])
|
|
91
85
|
], CoreConfigurationService.prototype, "frontEndAppUrl", null);
|
|
86
|
+
__decorate([
|
|
87
|
+
IsDefined(),
|
|
88
|
+
IsString(),
|
|
89
|
+
__metadata("design:type", String),
|
|
90
|
+
__metadata("design:paramtypes", [])
|
|
91
|
+
], CoreConfigurationService.prototype, "marketingAppUrl", null);
|
|
92
92
|
__decorate([
|
|
93
93
|
IsDefined(),
|
|
94
94
|
IsString(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreConfigurationService.js","sourceRoot":"","sources":["../../src/core-config/CoreConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6DAA6D;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,6BAA6B,EAAC,MAAM,mDAAmD,CAAC;AAGzF,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,6BAA6B;IACnD;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,qBAAqB;QACrB,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,4BAA4B,CAAC;YAC5D,MAAM,CACT,CAAC;IACN,CAAC;IAED,IAEI,mCAAmC;QACnC,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAClB,0CAA0C,CAC7C,KAAK,MAAM,CACf,CAAC;IACN,CAAC;IAED,IAEI,iBAAiB;QACjB,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,KAAK,MAAM,CACtE,CAAC;IACN,CAAC;IAED,IAEI,
|
|
1
|
+
{"version":3,"file":"CoreConfigurationService.js","sourceRoot":"","sources":["../../src/core-config/CoreConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6DAA6D;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,6BAA6B,EAAC,MAAM,mDAAmD,CAAC;AAGzF,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,6BAA6B;IACnD;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,qBAAqB;QACrB,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,4BAA4B,CAAC;YAC5D,MAAM,CACT,CAAC;IACN,CAAC;IAED,IAEI,mCAAmC;QACnC,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAClB,0CAA0C,CAC7C,KAAK,MAAM,CACf,CAAC;IACN,CAAC;IAED,IAEI,iBAAiB;QACjB,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,KAAK,MAAM,CACtE,CAAC;IACN,CAAC;IAED,IAEI,OAAO;QACP,OAAO,MAAM,CAAC,QAAQ,CAClB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,cAAc,CAAE,EAC/C,EAAE,CACL,CAAC;IACN,CAAC;IAED,IAEI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,eAAe,CAAE,CAAC;IAC5D,CAAC;IAED,IAEI,cAAc;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,qBAAqB,CAAE,CAAC;IAClE,CAAC;IACD,IAEI,eAAe;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,sBAAsB,CAAE,CAAC;IACnE,CAAC;IAED,IAEI,OAAO;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,cAAc,CAAE,CAAC;IAC3D,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAE,CAAC;IACjE,CAAC;CACJ,CAAA;AAhEG;IAAC,SAAS,EAAE;IACX,SAAS,EAAE;;;qEAMX;AAED;IAAC,SAAS,EAAE;IACX,SAAS,EAAE;;;mFAOX;AAED;IAAC,SAAS,EAAE;IACX,SAAS,EAAE;;;iEAKX;AAED;IAAC,SAAS,EAAE;IACX,KAAK,EAAE;;;uDAMP;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;wDAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;8DAGV;AACD;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;+DAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;uDAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;6DAGV;AApEQ,wBAAwB;IADpC,UAAU,EAAE;qCAE0B,aAAa;GADvC,wBAAwB,CAqEpC;SArEY,wBAAwB"}
|
|
@@ -4,21 +4,21 @@ declare const _default: (() => {
|
|
|
4
4
|
webPort: string | undefined;
|
|
5
5
|
nodeEnv: string | undefined;
|
|
6
6
|
frontEndAppUrl: string | undefined;
|
|
7
|
+
marketingAppUrl: string | undefined;
|
|
7
8
|
shouldUseNestCors: string | undefined;
|
|
8
9
|
shouldAutomaticallyInstallApiModels: string | undefined;
|
|
9
10
|
appTitle: string | undefined;
|
|
10
11
|
bullQueueHost: string | undefined;
|
|
11
|
-
shouldUseDevtools: string | undefined;
|
|
12
12
|
}) & import("@nestjs/config").ConfigFactoryKeyHost<{
|
|
13
13
|
loggerName: string | undefined;
|
|
14
14
|
shouldGenerateSwagger: string | undefined;
|
|
15
15
|
webPort: string | undefined;
|
|
16
16
|
nodeEnv: string | undefined;
|
|
17
17
|
frontEndAppUrl: string | undefined;
|
|
18
|
+
marketingAppUrl: string | undefined;
|
|
18
19
|
shouldUseNestCors: string | undefined;
|
|
19
20
|
shouldAutomaticallyInstallApiModels: string | undefined;
|
|
20
21
|
appTitle: string | undefined;
|
|
21
22
|
bullQueueHost: string | undefined;
|
|
22
|
-
shouldUseDevtools: string | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
export default _default;
|
|
@@ -5,10 +5,10 @@ export default registerAs("core", () => ({
|
|
|
5
5
|
webPort: process.env.WEB_PORT,
|
|
6
6
|
nodeEnv: process.env.NODE_ENV,
|
|
7
7
|
frontEndAppUrl: process.env.FRONTEND_APP_URL,
|
|
8
|
+
marketingAppUrl: process.env.MARKETING_APP_URL,
|
|
8
9
|
shouldUseNestCors: process.env.ENABLE_NEST_CORS,
|
|
9
10
|
shouldAutomaticallyInstallApiModels: process.env.AUTO_INSTALL_API_MODELS,
|
|
10
11
|
appTitle: process.env.APP_TITLE,
|
|
11
12
|
bullQueueHost: process.env.REDIS_URL,
|
|
12
|
-
shouldUseDevtools: process.env.ENABLE_DEVTOOLS,
|
|
13
13
|
}));
|
|
14
14
|
//# sourceMappingURL=CoreConfigurationVariables.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreConfigurationVariables.js","sourceRoot":"","sources":["../../src/core-config/CoreConfigurationVariables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,eAAe,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;IACnC,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IACnD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ;IAC7B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ;IAC7B,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IAC5C,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IAC/C,mCAAmC,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB;IACxE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;IAC/B,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"CoreConfigurationVariables.js","sourceRoot":"","sources":["../../src/core-config/CoreConfigurationVariables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,eAAe,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;IACnC,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IACnD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ;IAC7B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ;IAC7B,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IAC5C,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;IAC9C,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IAC/C,mCAAmC,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB;IACxE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;IAC/B,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -4,14 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
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;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { Module } from "@nestjs/common";
|
|
8
8
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
9
9
|
import { DatabaseConfigurationService } from "./PostgresDatabaseConfigurationService.js";
|
|
10
10
|
import { PostgresTypeOrmConfigurationProvider } from "./PostgresTypeOrmConfigurationProvider.js";
|
|
11
11
|
let PostgresDatabaseModule = class PostgresDatabaseModule {
|
|
12
12
|
};
|
|
13
13
|
PostgresDatabaseModule = __decorate([
|
|
14
|
-
Global(),
|
|
15
14
|
Module({
|
|
16
15
|
imports: [
|
|
17
16
|
TypeOrmModule.forRootAsync({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostgresDatabase.module.js","sourceRoot":"","sources":["../../src/database-postgres/PostgresDatabase.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"PostgresDatabase.module.js","sourceRoot":"","sources":["../../src/database-postgres/PostgresDatabase.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,4BAA4B,EAAC,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAC,oCAAoC,EAAC,MAAM,2CAA2C,CAAC;AAYxF,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAAG,CAAA;AAAzB,sBAAsB;IAVlC,MAAM,CAAC;QACJ,OAAO,EAAE;YACL,aAAa,CAAC,YAAY,CAAC;gBACvB,UAAU,EAAE,GAAG,EAAE,CACb,oCAAoC,CAAC,oBAAoB,EAAE;aAClE,CAAC;SACL;QACD,OAAO,EAAE,CAAC,4BAA4B,EAAE,aAAa,CAAC;QACtD,SAAS,EAAE,CAAC,4BAA4B,CAAC;KAC5C,CAAC;GACW,sBAAsB,CAAG;SAAzB,sBAAsB"}
|
|
@@ -4,14 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
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;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { Module } from "@nestjs/common";
|
|
8
8
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
9
9
|
import { SqliteDatabaseConfigurationService } from "./SqliteDatabaseConfigurationService.js";
|
|
10
10
|
import { SqliteTypeOrmConfigurationProvider } from "./SqliteTypeOrmConfigurationProvider.js";
|
|
11
11
|
let SqliteDatabaseModule = class SqliteDatabaseModule {
|
|
12
12
|
};
|
|
13
13
|
SqliteDatabaseModule = __decorate([
|
|
14
|
-
Global(),
|
|
15
14
|
Module({
|
|
16
15
|
imports: [
|
|
17
16
|
TypeOrmModule.forRootAsync({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqliteDatabase.module.js","sourceRoot":"","sources":["../../src/database-sqlite/SqliteDatabase.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"SqliteDatabase.module.js","sourceRoot":"","sources":["../../src/database-sqlite/SqliteDatabase.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,kCAAkC,EAAC,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAC,kCAAkC,EAAC,MAAM,yCAAyC,CAAC;AAYpF,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IAVhC,MAAM,CAAC;QACJ,OAAO,EAAE;YACL,aAAa,CAAC,YAAY,CAAC;gBACvB,UAAU,EAAE,GAAG,EAAE,CACb,kCAAkC,CAAC,oBAAoB,EAAE;aAChE,CAAC;SACL;QACD,OAAO,EAAE,CAAC,kCAAkC,EAAE,aAAa,CAAC;QAC5D,SAAS,EAAE,CAAC,kCAAkC,CAAC;KAClD,CAAC;GACW,oBAAoB,CAAG;SAAvB,oBAAoB"}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { OrganisationMembership } from "../../organisation-memberships/entities/organisation-membership.entity.js";
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
12
12
|
import { Type } from "class-transformer";
|
|
13
|
-
import { Column, CreateDateColumn, DeleteDateColumn, Entity, Generated, OneToOne, PrimaryGeneratedColumn,
|
|
13
|
+
import { Column, CreateDateColumn, DeleteDateColumn, Entity, Generated, OneToOne, PrimaryGeneratedColumn, UpdateDateColumn, } from "typeorm";
|
|
14
14
|
let Invitation = class Invitation {
|
|
15
15
|
id;
|
|
16
16
|
uuid;
|
|
@@ -20,7 +20,6 @@ let Invitation = class Invitation {
|
|
|
20
20
|
expiresOn;
|
|
21
21
|
acceptedOn;
|
|
22
22
|
organisationMembership;
|
|
23
|
-
organisationMembershipId;
|
|
24
23
|
createdDate;
|
|
25
24
|
updateDate;
|
|
26
25
|
deletedDate;
|
|
@@ -70,11 +69,6 @@ __decorate([
|
|
|
70
69
|
OneToOne(() => OrganisationMembership),
|
|
71
70
|
__metadata("design:type", Object)
|
|
72
71
|
], Invitation.prototype, "organisationMembership", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
ApiProperty(),
|
|
75
|
-
RelationId((invitation) => invitation.organisationMembership),
|
|
76
|
-
__metadata("design:type", Number)
|
|
77
|
-
], Invitation.prototype, "organisationMembershipId", void 0);
|
|
78
72
|
__decorate([
|
|
79
73
|
CreateDateColumn(),
|
|
80
74
|
ApiProperty(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitation.entity.js","sourceRoot":"","sources":["../../../src/invitations/entities/invitation.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,2EAA2E,CAAC;AACjH,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EACH,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,sBAAsB,EAEtB,
|
|
1
|
+
{"version":3,"file":"invitation.entity.js","sourceRoot":"","sources":["../../../src/invitations/entities/invitation.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,2EAA2E,CAAC;AACjH,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EACH,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,sBAAsB,EAEtB,gBAAgB,GACnB,MAAM,SAAS,CAAC;AAGV,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGnB,EAAE,CAAU;IAQL,IAAI,CAAU;IAIrB,SAAS,CAAU;IAInB,YAAY,CAAU;IAItB,gBAAgB,CAAQ;IAIxB,SAAS,CAAQ;IAIjB,UAAU,CAAQ;IAKlB,sBAAsB,CAAoC;IAI1D,WAAW,CAAQ;IAInB,UAAU,CAAQ;IAIlB,WAAW,CAAQ;CACtB,CAAA;AAhDG;IAAC,sBAAsB,EAAE;IACxB,WAAW,EAAE;;sCACF;AAEZ;IAAC,MAAM,CAAC,MAAM,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB;KACtC,CAAC;IACD,SAAS,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE;;wCACO;AAErB;IAAC,MAAM,EAAE;IACR,WAAW,EAAE;;6CACK;AAEnB;IAAC,MAAM,EAAE;IACR,WAAW,EAAE;;gDACQ;AAEtB;IAAC,MAAM,EAAE;IACR,WAAW,EAAE;8BACK,IAAI;oDAAC;AAExB;IAAC,MAAM,EAAE;IACR,WAAW,EAAE;8BACF,IAAI;6CAAC;AAEjB;IAAC,MAAM,EAAE;IACR,mBAAmB,EAAE;8BACT,IAAI;8CAAC;AAElB;IAAC,WAAW,EAAE;IACb,IAAI,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;IAClC,QAAQ,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;;0DACmB;AAE1D;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACA,IAAI;+CAAC;AAEnB;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACD,IAAI;8CAAC;AAElB;IAAC,gBAAgB,EAAE;IAClB,mBAAmB,EAAE;8BACR,IAAI;+CAAC;AAhDV,UAAU;IADtB,MAAM,EAAE;GACI,UAAU,CAiDtB;SAjDY,UAAU"}
|
|
@@ -8,8 +8,9 @@ export declare class OrganisationMembership {
|
|
|
8
8
|
user: User;
|
|
9
9
|
userId: number;
|
|
10
10
|
organisation: Organisation;
|
|
11
|
-
invitation?: Invitation;
|
|
12
11
|
organisationId: number;
|
|
12
|
+
invitation?: Invitation;
|
|
13
|
+
invitationId: number;
|
|
13
14
|
roles: MembershipRole[];
|
|
14
15
|
createdDate: Date;
|
|
15
16
|
updateDate: Date;
|
|
@@ -20,8 +20,9 @@ let OrganisationMembership = class OrganisationMembership {
|
|
|
20
20
|
user;
|
|
21
21
|
userId;
|
|
22
22
|
organisation;
|
|
23
|
-
invitation;
|
|
24
23
|
organisationId;
|
|
24
|
+
invitation;
|
|
25
|
+
invitationId;
|
|
25
26
|
roles;
|
|
26
27
|
createdDate;
|
|
27
28
|
updateDate;
|
|
@@ -68,6 +69,12 @@ __decorate([
|
|
|
68
69
|
}),
|
|
69
70
|
__metadata("design:type", Organisation)
|
|
70
71
|
], OrganisationMembership.prototype, "organisation", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Column(),
|
|
74
|
+
ApiProperty(),
|
|
75
|
+
RelationId((membership) => membership.organisation),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], OrganisationMembership.prototype, "organisationId", void 0);
|
|
71
78
|
__decorate([
|
|
72
79
|
OneToOne(() => Invitation, (inv) => inv.organisationMembership, {
|
|
73
80
|
eager: true,
|
|
@@ -80,9 +87,9 @@ __decorate([
|
|
|
80
87
|
__decorate([
|
|
81
88
|
Column(),
|
|
82
89
|
ApiProperty(),
|
|
83
|
-
RelationId((membership) => membership.
|
|
90
|
+
RelationId((membership) => membership.invitation),
|
|
84
91
|
__metadata("design:type", Number)
|
|
85
|
-
], OrganisationMembership.prototype, "
|
|
92
|
+
], OrganisationMembership.prototype, "invitationId", void 0);
|
|
86
93
|
__decorate([
|
|
87
94
|
ApiProperty({ type: () => MembershipRole, isArray: true })
|
|
88
95
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organisation-membership.entity.js","sourceRoot":"","sources":["../../../src/organisation-memberships/entities/organisation-membership.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EACH,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,KAAK,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,sBAAsB,EACtB,UAAU,EACV,gBAAgB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,UAAU,EAAC,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,YAAY,EAAC,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAC,IAAI,EAAC,MAAM,6CAA6C,CAAC;AAG1D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAG/B,EAAE,CAAU;IASL,IAAI,CAAU;IAMrB,IAAI,CAAQ;IAKL,MAAM,CAAU;IAMvB,YAAY,CAAgB;
|
|
1
|
+
{"version":3,"file":"organisation-membership.entity.js","sourceRoot":"","sources":["../../../src/organisation-memberships/entities/organisation-membership.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EACH,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,KAAK,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,sBAAsB,EACtB,UAAU,EACV,gBAAgB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,UAAU,EAAC,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,YAAY,EAAC,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAC,IAAI,EAAC,MAAM,6CAA6C,CAAC;AAG1D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAG/B,EAAE,CAAU;IASL,IAAI,CAAU;IAMrB,IAAI,CAAQ;IAKL,MAAM,CAAU;IAMvB,YAAY,CAAgB;IAKrB,cAAc,CAAU;IAQ/B,UAAU,CAAc;IAKjB,YAAY,CA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E,EAAE,CAAC,GAAG,CAAC,sBAAsB,EAAE;QAC7D,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;KAChC,CAAC;IACD,UAAU,EAAE;8BACA,UAAU;0DAAC;AAExB;IAAC,MAAM,EAAE;IACR,WAAW,EAAE;IACb,UAAU,CAAC,CAAC,UAAkC,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;;4DAC7C;AAE7B;IAAC,WAAW,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;IACzD,+DAA+D;;IAC9D,SAAS,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE;QACxD,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,IAAI,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC;;qDACF;AAEzB;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACA,IAAI;2DAAC;AAEnB;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACD,IAAI;0DAAC;AAElB;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACA,IAAI;2DAAC;AAMb;IAHL,SAAS,EAAE;IACX,WAAW,EAAE;IACb,WAAW,EAAE;;;;wDAKb;AA9EQ,sBAAsB;IADlC,MAAM,EAAE;GACI,sBAAsB,CA+ElC;SA/EY,sBAAsB"}
|
|
@@ -11,9 +11,12 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
13
|
var AppController_1;
|
|
14
|
+
/* eslint-disable sonarjs/no-identical-functions */
|
|
14
15
|
import { Controller, Get, UseGuards, Request, Logger } from "@nestjs/common";
|
|
15
|
-
import { AuthGuard } from "@nestjs/passport";
|
|
16
16
|
import { ApiBearerAuth, ApiOkResponse, ApiTags } from "@nestjs/swagger";
|
|
17
|
+
import { ClaimsAuthorisationGuard } from "../authorization/guards/ClaimsAuthorisationGuard.js";
|
|
18
|
+
import { DefaultAuthGuard } from "../authorization/guards/DefaultAuthGuard.js";
|
|
19
|
+
import { MandatoryUserClaims } from "../index.js";
|
|
17
20
|
import { AppService } from "./app.service.js";
|
|
18
21
|
let AppController = AppController_1 = class AppController {
|
|
19
22
|
appService;
|
|
@@ -30,6 +33,12 @@ let AppController = AppController_1 = class AppController {
|
|
|
30
33
|
this.logger.log("request user", stringifyUser);
|
|
31
34
|
return testString;
|
|
32
35
|
}
|
|
36
|
+
getHelloSuperAdmin(request) {
|
|
37
|
+
const testString = this.appService.getHello();
|
|
38
|
+
const stringifyUser = JSON.stringify(request.user);
|
|
39
|
+
this.logger.log("request user", stringifyUser);
|
|
40
|
+
return testString;
|
|
41
|
+
}
|
|
33
42
|
};
|
|
34
43
|
__decorate([
|
|
35
44
|
Get(),
|
|
@@ -39,15 +48,26 @@ __decorate([
|
|
|
39
48
|
__metadata("design:returntype", String)
|
|
40
49
|
], AppController.prototype, "getHello", null);
|
|
41
50
|
__decorate([
|
|
42
|
-
UseGuards(
|
|
51
|
+
UseGuards(DefaultAuthGuard),
|
|
43
52
|
ApiBearerAuth(),
|
|
44
|
-
Get("
|
|
53
|
+
Get("is-authorised"),
|
|
45
54
|
ApiOkResponse({ type: String }),
|
|
46
55
|
__param(0, Request()),
|
|
47
56
|
__metadata("design:type", Function),
|
|
48
57
|
__metadata("design:paramtypes", [Object]),
|
|
49
58
|
__metadata("design:returntype", String)
|
|
50
59
|
], AppController.prototype, "getHelloAuthorized", null);
|
|
60
|
+
__decorate([
|
|
61
|
+
UseGuards(DefaultAuthGuard, ClaimsAuthorisationGuard),
|
|
62
|
+
ApiBearerAuth(),
|
|
63
|
+
MandatoryUserClaims("read:all"),
|
|
64
|
+
Get("is-super-admin"),
|
|
65
|
+
ApiOkResponse({ type: String }),
|
|
66
|
+
__param(0, Request()),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", [Object]),
|
|
69
|
+
__metadata("design:returntype", String)
|
|
70
|
+
], AppController.prototype, "getHelloSuperAdmin", null);
|
|
51
71
|
AppController = AppController_1 = __decorate([
|
|
52
72
|
Controller(),
|
|
53
73
|
ApiTags("Application Support"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../../src/root-app/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../../src/root-app/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAmD;AACnD,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,gBAAgB,EAAC,MAAM,6CAA6C,CAAC;AAE7E,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAIrC,IAAM,aAAa,qBAAnB,MAAM,aAAa;IAEO;IADZ,MAAM,GAAG,IAAI,MAAM,CAAC,eAAa,CAAC,IAAI,CAAC,CAAC;IACzD,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAIvD,QAAQ;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,EAA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+9,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
10
10
|
import "reflect-metadata";
|
|
11
11
|
import helmet from "helmet";
|
|
12
|
-
import { ClassSerializerInterceptor,
|
|
12
|
+
import { ClassSerializerInterceptor, Module, ValidationPipe, } from "@nestjs/common";
|
|
13
13
|
import { Logger, LoggerModule } from "nestjs-pino";
|
|
14
14
|
import { AppController } from "./app.controller.js";
|
|
15
15
|
import { AppService } from "./app.service.js";
|
|
@@ -23,7 +23,6 @@ import { HealthModule } from "../health/Health.module.js";
|
|
|
23
23
|
import { LoggerModule as LoggingConfigModule } from "../logger/logger.module.js";
|
|
24
24
|
import { LoggingConfigurationService } from "../logger/LoggingConfigurationService.js";
|
|
25
25
|
import { AuthzModule } from "../authorization/authz.module.js";
|
|
26
|
-
import { DevtoolsModule } from "@nestjs/devtools-integration";
|
|
27
26
|
let CoreModule = class CoreModule {
|
|
28
27
|
static initApplication(
|
|
29
28
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,@typescript-eslint/no-explicit-any
|
|
@@ -36,6 +35,7 @@ let CoreModule = class CoreModule {
|
|
|
36
35
|
bodyParser: true,
|
|
37
36
|
rawBody: true,
|
|
38
37
|
bufferLogs: true,
|
|
38
|
+
snapshot: true,
|
|
39
39
|
});
|
|
40
40
|
const loggerService = app.get(Logger);
|
|
41
41
|
const configService = app.get(CoreConfigurationService);
|
|
@@ -70,7 +70,6 @@ let CoreModule = class CoreModule {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
CoreModule = __decorate([
|
|
73
|
-
Global(),
|
|
74
73
|
Module({
|
|
75
74
|
imports: [
|
|
76
75
|
ConfigModule.forRoot({ cache: true }),
|
|
@@ -90,17 +89,6 @@ CoreModule = __decorate([
|
|
|
90
89
|
},
|
|
91
90
|
}),
|
|
92
91
|
CoreConfigModule,
|
|
93
|
-
DevtoolsModule.registerAsync({
|
|
94
|
-
imports: [CoreConfigModule],
|
|
95
|
-
inject: [CoreConfigurationService],
|
|
96
|
-
useFactory: async (configService
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
98
|
-
) => {
|
|
99
|
-
return {
|
|
100
|
-
http: configService.shouldUseDevtools,
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
}),
|
|
104
92
|
BullModule.forRootAsync({
|
|
105
93
|
imports: [CoreConfigModule],
|
|
106
94
|
useFactory: async (configService
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-app.module.js","sourceRoot":"","sources":["../../src/root-app/core-app.module.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,+DAA+D;AAC/D,4DAA4D;AAC5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACH,0BAA0B,
|
|
1
|
+
{"version":3,"file":"core-app.module.js","sourceRoot":"","sources":["../../src/root-app/core-app.module.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,+DAA+D;AAC/D,4DAA4D;AAC5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACH,0BAA0B,EAE1B,MAAM,EAEN,cAAc,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,cAAc,CAAC;AACpD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAC,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AACrE,OAAO,E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ClB,WAAW,EAAE;8BACA,IAAI;+CAAC;AAEnB;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACD,IAAI;8CAAC;AAElB;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACA,IAAI;+CAAC;AArCV,UAAU;IADtB,MAAM,EAAE;GACI,UAAU,CAsCtB;SAtCY,UAAU"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrganisationMembership } from "../../organisation-memberships/entities/organisation-membership.entity.js";
|
|
2
|
+
import { UserApiKey } from "../../user-api-key/userApiKey.entity.js";
|
|
2
3
|
export declare class UserDto {
|
|
3
4
|
isSuper: boolean;
|
|
4
5
|
id: number;
|
|
@@ -13,6 +14,7 @@ export declare class UserDto {
|
|
|
13
14
|
auth0UserId?: string;
|
|
14
15
|
username?: string;
|
|
15
16
|
memberships: OrganisationMembership[];
|
|
17
|
+
apiKeys: UserApiKey[];
|
|
16
18
|
createdDate: Date;
|
|
17
19
|
updateDate: Date;
|
|
18
20
|
deletedDate: Date;
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
11
|
import { Column } from "typeorm";
|
|
12
12
|
import { OrganisationMembership } from "../../organisation-memberships/entities/organisation-membership.entity.js";
|
|
13
|
+
import { UserApiKey } from "../../user-api-key/userApiKey.entity.js";
|
|
13
14
|
export class UserDto {
|
|
14
15
|
isSuper;
|
|
15
16
|
id;
|
|
@@ -24,6 +25,7 @@ export class UserDto {
|
|
|
24
25
|
auth0UserId;
|
|
25
26
|
username;
|
|
26
27
|
memberships;
|
|
28
|
+
apiKeys;
|
|
27
29
|
createdDate;
|
|
28
30
|
updateDate;
|
|
29
31
|
deletedDate;
|
|
@@ -81,6 +83,10 @@ __decorate([
|
|
|
81
83
|
ApiProperty({ type: () => OrganisationMembership, isArray: true }),
|
|
82
84
|
__metadata("design:type", Array)
|
|
83
85
|
], UserDto.prototype, "memberships", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
ApiProperty({ type: () => UserApiKey, isArray: true }),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], UserDto.prototype, "apiKeys", void 0);
|
|
84
90
|
__decorate([
|
|
85
91
|
ApiProperty(),
|
|
86
92
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userResponseDto.js","sourceRoot":"","sources":["../../../src/user-internal/dto/userResponseDto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAC,sBAAsB,EAAC,MAAM,2EAA2E,CAAC;
|
|
1
|
+
{"version":3,"file":"userResponseDto.js","sourceRoot":"","sources":["../../../src/user-internal/dto/userResponseDto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAC,sBAAsB,EAAC,MAAM,2EAA2E,CAAC;AACjH,OAAO,EAAC,UAAU,EAAC,MAAM,yCAAyC,CAAC;AAEnE,MAAM,OAAO,OAAO;IAEhB,OAAO,CAAW;IAGlB,EAAE,CAAU;IAGZ,KAAK,CAAU;IAGR,IAAI,CAAU;IAGrB,aAAa,CAAW;IAIxB,OAAO,CAAW;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,SAAS,CAAU;IAGnB,OAAO,CAAU;IAGjB,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,WAAW,CAA4B;IAGvC,OAAO,CAAgB;IAGvB,WAAW,CAAQ;IAGnB,UAAU,CAAQ;IAGlB,WAAW,CAAQ;CACtB;AAnDG;IAAC,WAAW,EAAE;;wCACI;AAElB;IAAC,WAAW,EAAE;;mCACF;AAEZ;IAAC,WAAW,EAAE;;sCACC;AAEf;IAAC,WAAW,EAAE;;qCACO;AAErB;IAAC,WAAW,EAAE;;8CACU;AAExB;IAAC,WAAW,EAAE;IACb,MAAM,CAAC,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;;wCACP;AAElB;IAAC,mBAAmB,EAAE;;qCACR;AAEd;IAAC,mBAAmB,EAAE;;2CACF;AAEpB;IAAC,mBAAmB,EAAE;;0CACH;AAEnB;IAAC,mBAAmB,EAAE;;wCACL;AAEjB;IAAC,mBAAmB,EAAE;;4CACD;AAErB;IAAC,mBAAmB,EAAE;;yCACJ;AAElB;IAAC,WAAW,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;4CAC1B;AAEvC;IAAC,WAAW,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;wCAC9B;AAEvB;IAAC,WAAW,EAAE;8BACA,IAAI;4CAAC;AAEnB;IAAC,WAAW,EAAE;8BACD,IAAI;2CAAC;AAElB;IAAC,WAAW,EAAE;8BACA,IAAI;4CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/user-internal/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EACH,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,KAAK,EACL,SAAS,EACT,sBAAsB,EACtB,gBAAgB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,sBAAsB,EAAC,MAA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
{
|
|
2
2
|
"name": "@darraghor/nest-backend-libs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"description": "Some helpers for personal projects in nestjs",
|
|
6
6
|
"homepage": "https://github.com/darraghoriordan/nest-backend-libs",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"@nestjs/common": "^9.3.9",
|
|
64
64
|
"@nestjs/config": "^2.3.1",
|
|
65
65
|
"@nestjs/core": "^9.3.9",
|
|
66
|
-
"@nestjs/devtools-integration": "0.1.3",
|
|
67
66
|
"@nestjs/microservices": "9.3.9",
|
|
68
67
|
"@nestjs/passport": "^9.0.3",
|
|
69
68
|
"@nestjs/platform-express": "^9.3.9",
|