@darraghor/nest-backend-libs 3.12.4 → 4.0.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/dist/authorization/authz.module.d.ts +4 -0
- package/dist/authorization/authz.module.js +31 -20
- package/dist/authorization/authz.module.js.map +1 -1
- package/dist/authorization/authz.options.d.ts +12 -0
- package/dist/authorization/authz.options.js +2 -0
- package/dist/authorization/authz.options.js.map +1 -0
- package/dist/authorization/config/AuthConfigurationService.d.ts +3 -3
- package/dist/authorization/config/AuthConfigurationService.js +13 -17
- package/dist/authorization/config/AuthConfigurationService.js.map +1 -1
- package/dist/authzclient/AuthClientConfigurationService.d.ts +3 -3
- package/dist/authzclient/AuthClientConfigurationService.js +12 -9
- package/dist/authzclient/AuthClientConfigurationService.js.map +1 -1
- package/dist/authzclient/authz-client.module.d.ts +4 -0
- package/dist/authzclient/authz-client.module.js +27 -14
- package/dist/authzclient/authz-client.module.js.map +1 -1
- package/dist/authzclient/authz-client.options.d.ts +11 -0
- package/dist/authzclient/authz-client.options.js +2 -0
- package/dist/authzclient/authz-client.options.js.map +1 -0
- package/dist/core-config/CoreConfig.module.d.ts +4 -0
- package/dist/core-config/CoreConfig.module.js +24 -9
- package/dist/core-config/CoreConfig.module.js.map +1 -1
- package/dist/core-config/CoreConfigurationService.d.ts +4 -3
- package/dist/core-config/CoreConfigurationService.js +22 -17
- package/dist/core-config/CoreConfigurationService.js.map +1 -1
- package/dist/core-config/core-config.options.d.ts +27 -0
- package/dist/core-config/core-config.options.js +2 -0
- package/dist/core-config/core-config.options.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/invitations/InvitationConfigurationService.d.ts +3 -3
- package/dist/invitations/InvitationConfigurationService.js +11 -8
- package/dist/invitations/InvitationConfigurationService.js.map +1 -1
- package/dist/invitations/invitation.module.d.ts +4 -0
- package/dist/invitations/invitation.module.js +34 -16
- package/dist/invitations/invitation.module.js.map +1 -1
- package/dist/invitations/invitation.options.d.ts +10 -0
- package/dist/invitations/invitation.options.js +2 -0
- package/dist/invitations/invitation.options.js.map +1 -0
- package/dist/logger/LoggingConfigurationService.d.ts +3 -3
- package/dist/logger/LoggingConfigurationService.js +14 -11
- package/dist/logger/LoggingConfigurationService.js.map +1 -1
- package/dist/logger/logger.module.d.ts +4 -0
- package/dist/logger/logger.module.js +24 -9
- package/dist/logger/logger.module.js.map +1 -1
- package/dist/logger/logger.options.d.ts +13 -0
- package/dist/logger/logger.options.js +2 -0
- package/dist/logger/logger.options.js.map +1 -0
- package/dist/root-app/core-app.module.d.ts +10 -2
- package/dist/root-app/core-app.module.js +94 -69
- package/dist/root-app/core-app.module.js.map +1 -1
- package/dist/smtp-email-client/EmailConfigurationService.d.ts +3 -3
- package/dist/smtp-email-client/EmailConfigurationService.js +18 -16
- package/dist/smtp-email-client/EmailConfigurationService.js.map +1 -1
- package/dist/smtp-email-client/smtp-email-client.module.d.ts +4 -0
- package/dist/smtp-email-client/smtp-email-client.module.js +34 -21
- package/dist/smtp-email-client/smtp-email-client.module.js.map +1 -1
- package/dist/smtp-email-client/smtp-email-client.options.d.ts +17 -0
- package/dist/smtp-email-client/smtp-email-client.options.js +2 -0
- package/dist/smtp-email-client/smtp-email-client.options.js.map +1 -0
- package/dist/stripe-client/StripeClientConfigurationService.d.ts +3 -3
- package/dist/stripe-client/StripeClientConfigurationService.js +13 -10
- package/dist/stripe-client/StripeClientConfigurationService.js.map +1 -1
- package/dist/stripe-client/stripe-account.module.d.ts +4 -0
- package/dist/stripe-client/stripe-account.module.js +50 -39
- package/dist/stripe-client/stripe-account.module.js.map +1 -1
- package/dist/stripe-client/stripe-account.options.d.ts +12 -0
- package/dist/stripe-client/stripe-account.options.js +2 -0
- package/dist/stripe-client/stripe-account.options.js.map +1 -0
- package/dist/twitter-client/TwitterClientConfigurationService.d.ts +3 -3
- package/dist/twitter-client/TwitterClientConfigurationService.js +14 -11
- package/dist/twitter-client/TwitterClientConfigurationService.js.map +1 -1
- package/dist/twitter-client/twitter-account.module.d.ts +4 -0
- package/dist/twitter-client/twitter-account.module.js +26 -14
- package/dist/twitter-client/twitter-account.module.js.map +1 -1
- package/dist/twitter-client/twitter-account.options.d.ts +13 -0
- package/dist/twitter-client/twitter-account.options.js +2 -0
- package/dist/twitter-client/twitter-account.options.js.map +1 -0
- package/package.json +1 -1
- package/dist/authorization/config/AuthConfigurationVariables.d.ts +0 -10
- package/dist/authorization/config/AuthConfigurationVariables.js +0 -7
- package/dist/authorization/config/AuthConfigurationVariables.js.map +0 -1
- package/dist/authzclient/AuthClientConfigurationVariables.d.ts +0 -8
- package/dist/authzclient/AuthClientConfigurationVariables.js +0 -6
- package/dist/authzclient/AuthClientConfigurationVariables.js.map +0 -1
- package/dist/core-config/CoreConfigurationVariables.d.ts +0 -26
- package/dist/core-config/CoreConfigurationVariables.js +0 -15
- package/dist/core-config/CoreConfigurationVariables.js.map +0 -1
- package/dist/invitations/InvitationConfigurationVariables.d.ts +0 -6
- package/dist/invitations/InvitationConfigurationVariables.js +0 -5
- package/dist/invitations/InvitationConfigurationVariables.js.map +0 -1
- package/dist/logger/LoggingConfigurationVariables.d.ts +0 -12
- package/dist/logger/LoggingConfigurationVariables.js +0 -8
- package/dist/logger/LoggingConfigurationVariables.js.map +0 -1
- package/dist/smtp-email-client/EmailConfigurationVariables.d.ts +0 -20
- package/dist/smtp-email-client/EmailConfigurationVariables.js +0 -12
- package/dist/smtp-email-client/EmailConfigurationVariables.js.map +0 -1
- package/dist/stripe-client/StripeConfigurationVariables.d.ts +0 -10
- package/dist/stripe-client/StripeConfigurationVariables.js +0 -7
- package/dist/stripe-client/StripeConfigurationVariables.js.map +0 -1
- package/dist/twitter-client/TwitterConfigurationVariables.d.ts +0 -12
- package/dist/twitter-client/TwitterConfigurationVariables.js +0 -8
- package/dist/twitter-client/TwitterConfigurationVariables.js.map +0 -1
|
@@ -4,36 +4,47 @@ 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
|
+
var AuthzModule_1;
|
|
7
8
|
import { Module } from "@nestjs/common";
|
|
8
9
|
import { PassportModule } from "@nestjs/passport";
|
|
9
10
|
import { AuthConfigurationService } from "./config/AuthConfigurationService.js";
|
|
10
11
|
import { JwtStrategy } from "./strategies/authzstrategy.js";
|
|
11
|
-
import configVariables from "./config/AuthConfigurationVariables.js";
|
|
12
|
-
import { ConfigModule } from "@nestjs/config";
|
|
13
12
|
import { UserValidationService } from "./services/UserValidation.service.js";
|
|
14
13
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
15
14
|
import { User } from "../user/entities/user.entity.js";
|
|
16
|
-
import { AuthzClientModule } from "../authzclient/authz-client.module.js";
|
|
17
15
|
import { ApiKeyStrategy } from "./strategies/apikeystrategy.js";
|
|
18
16
|
import { Invitation } from "../invitations/entities/invitation.entity.js";
|
|
19
|
-
|
|
17
|
+
import { AUTHZ_MODULE_OPTIONS, } from "./authz.options.js";
|
|
18
|
+
let AuthzModule = AuthzModule_1 = class AuthzModule {
|
|
19
|
+
static forRoot() {
|
|
20
|
+
throw new Error("AuthzModule.forRoot() is not supported. Use forRootAsync() instead.");
|
|
21
|
+
}
|
|
22
|
+
static forRootAsync(options) {
|
|
23
|
+
return {
|
|
24
|
+
module: AuthzModule_1,
|
|
25
|
+
global: options.isGlobal ?? false,
|
|
26
|
+
imports: [
|
|
27
|
+
...(options.imports || []),
|
|
28
|
+
PassportModule.register({ defaultStrategy: "jwt" }),
|
|
29
|
+
TypeOrmModule.forFeature([User, Invitation]),
|
|
30
|
+
],
|
|
31
|
+
providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: AUTHZ_MODULE_OPTIONS,
|
|
34
|
+
useFactory: options.useFactory,
|
|
35
|
+
inject: options.inject || [],
|
|
36
|
+
},
|
|
37
|
+
ApiKeyStrategy,
|
|
38
|
+
AuthConfigurationService,
|
|
39
|
+
JwtStrategy,
|
|
40
|
+
UserValidationService,
|
|
41
|
+
],
|
|
42
|
+
exports: [AuthConfigurationService, PassportModule],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
20
45
|
};
|
|
21
|
-
AuthzModule = __decorate([
|
|
22
|
-
Module({
|
|
23
|
-
imports: [
|
|
24
|
-
AuthzClientModule,
|
|
25
|
-
ConfigModule.forFeature(configVariables),
|
|
26
|
-
PassportModule.register({ defaultStrategy: "jwt" }),
|
|
27
|
-
TypeOrmModule.forFeature([User, Invitation]),
|
|
28
|
-
],
|
|
29
|
-
providers: [
|
|
30
|
-
ApiKeyStrategy,
|
|
31
|
-
AuthConfigurationService,
|
|
32
|
-
JwtStrategy,
|
|
33
|
-
UserValidationService,
|
|
34
|
-
],
|
|
35
|
-
exports: [AuthConfigurationService, PassportModule],
|
|
36
|
-
})
|
|
46
|
+
AuthzModule = AuthzModule_1 = __decorate([
|
|
47
|
+
Module({})
|
|
37
48
|
], AuthzModule);
|
|
38
49
|
export { AuthzModule };
|
|
39
50
|
//# sourceMappingURL=authz.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz.module.js","sourceRoot":"","sources":["../../src/authorization/authz.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authz.module.js","sourceRoot":"","sources":["../../src/authorization/authz.module.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAgB,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,wBAAwB,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAC,MAAM,iCAAiC,CAAC;AACrD,OAAO,EAAC,cAAc,EAAC,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EACH,oBAAoB,GAEvB,MAAM,oBAAoB,CAAC;AAGrB,IAAM,WAAW,mBAAjB,MAAM,WAAW;IACpB,MAAM,CAAC,OAAO;QACV,MAAM,IAAI,KAAK,CACX,qEAAqE,CACxE,CAAC;IACN,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,OAAgC;QAChD,OAAO;YACH,MAAM,EAAE,aAAW;YACnB,MAAM,EAAE,OAAO,CAAC,QAAQ,IAAI,KAAK;YACjC,OAAO,EAAE;gBACL,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;gBAC1B,cAAc,CAAC,QAAQ,CAAC,EAAC,eAAe,EAAE,KAAK,EAAC,CAAC;gBACjD,aAAa,CAAC,UAAU,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;aAC/C;YACD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,oBAAoB;oBAC7B,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE;iBAC/B;gBACD,cAAc;gBACd,wBAAwB;gBACxB,WAAW;gBACX,qBAAqB;aACxB;YACD,OAAO,EAAE,CAAC,wBAAwB,EAAE,cAAc,CAAC;SACtD,CAAC;IACN,CAAC;CACJ,CAAA;AA9BY,WAAW;IADvB,MAAM,CAAC,EAAE,CAAC;GACE,WAAW,CA8BvB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ModuleMetadata } from "@nestjs/common";
|
|
2
|
+
export declare const AUTHZ_MODULE_OPTIONS: unique symbol;
|
|
3
|
+
export interface AuthzModuleOptions {
|
|
4
|
+
auth0Audience: string;
|
|
5
|
+
auth0Domain: string;
|
|
6
|
+
superUserIds: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface AuthzModuleAsyncOptions extends Pick<ModuleMetadata, "imports"> {
|
|
9
|
+
useFactory: (...args: any[]) => Promise<AuthzModuleOptions> | AuthzModuleOptions;
|
|
10
|
+
inject?: any[];
|
|
11
|
+
isGlobal?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authz.options.js","sourceRoot":"","sources":["../../src/authorization/authz.options.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigService } from "@nestjs/config";
|
|
2
1
|
import { ValidatedConfigurationService } from "../../configuration/ValidatedConfigurationService.js";
|
|
2
|
+
import { AuthzModuleOptions } from "../authz.options.js";
|
|
3
3
|
export declare class AuthConfigurationService extends ValidatedConfigurationService {
|
|
4
|
-
private
|
|
5
|
-
constructor(
|
|
4
|
+
private options;
|
|
5
|
+
constructor(options: AuthzModuleOptions);
|
|
6
6
|
get auth0Audience(): string;
|
|
7
7
|
get auth0Domain(): string;
|
|
8
8
|
get superUserIds(): string[];
|
|
@@ -7,32 +7,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Inject, Injectable } from "@nestjs/common";
|
|
13
14
|
import { IsArray, IsDefined, IsString } from "class-validator";
|
|
14
15
|
import { ValidatedConfigurationService } from "../../configuration/ValidatedConfigurationService.js";
|
|
16
|
+
import { AUTHZ_MODULE_OPTIONS } from "../authz.options.js";
|
|
15
17
|
let AuthConfigurationService = class AuthConfigurationService extends ValidatedConfigurationService {
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
+
options;
|
|
19
|
+
constructor(options) {
|
|
18
20
|
super();
|
|
19
|
-
this.
|
|
21
|
+
this.options = options;
|
|
20
22
|
}
|
|
21
23
|
get auth0Audience() {
|
|
22
|
-
return this.
|
|
24
|
+
return this.options.auth0Audience;
|
|
23
25
|
}
|
|
24
26
|
get auth0Domain() {
|
|
25
|
-
return this.
|
|
27
|
+
return this.options.auth0Domain;
|
|
26
28
|
}
|
|
27
29
|
get superUserIds() {
|
|
28
|
-
|
|
29
|
-
if (ids === undefined) {
|
|
30
|
-
return [];
|
|
31
|
-
}
|
|
32
|
-
return ids
|
|
33
|
-
.split(",")
|
|
34
|
-
.map((id) => id.trim())
|
|
35
|
-
.filter((id) => id !== "");
|
|
30
|
+
return this.options.superUserIds;
|
|
36
31
|
}
|
|
37
32
|
};
|
|
38
33
|
__decorate([
|
|
@@ -55,7 +50,8 @@ __decorate([
|
|
|
55
50
|
], AuthConfigurationService.prototype, "superUserIds", null);
|
|
56
51
|
AuthConfigurationService = __decorate([
|
|
57
52
|
Injectable(),
|
|
58
|
-
|
|
53
|
+
__param(0, Inject(AUTHZ_MODULE_OPTIONS)),
|
|
54
|
+
__metadata("design:paramtypes", [Object])
|
|
59
55
|
], AuthConfigurationService);
|
|
60
56
|
export { AuthConfigurationService };
|
|
61
57
|
//# sourceMappingURL=AuthConfigurationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthConfigurationService.js","sourceRoot":"","sources":["../../../src/authorization/config/AuthConfigurationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthConfigurationService.js","sourceRoot":"","sources":["../../../src/authorization/config/AuthConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAC,6BAA6B,EAAC,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAC,oBAAoB,EAAqB,MAAM,qBAAqB,CAAC;AAGtE,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,6BAA6B;IAG3D;IAFZ,YAEY,OAA2B;QAEnC,KAAK,EAAE,CAAC;QAFA,YAAO,GAAP,OAAO,CAAoB;IAGvC,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;IACtC,CAAC;IAED,IAEI,WAAW;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACpC,CAAC;IAED,IAEI,YAAY;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IACrC,CAAC;CACJ,CAAA;AAjBG;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;6DAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;2DAGV;AAED;IAAC,SAAS,EAAE;IACX,OAAO,EAAE;;;4DAGT;AAxBQ,wBAAwB;IADpC,UAAU,EAAE;IAGJ,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;;GAFxB,wBAAwB,CAyBpC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigService } from "@nestjs/config";
|
|
2
1
|
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
|
|
2
|
+
import { AuthzClientModuleOptions } from "./authz-client.options.js";
|
|
3
3
|
export declare class AuthClientConfigurationService extends ValidatedConfigurationService {
|
|
4
|
-
private
|
|
5
|
-
constructor(
|
|
4
|
+
private options;
|
|
5
|
+
constructor(options: AuthzClientModuleOptions);
|
|
6
6
|
get auth0Domain(): string;
|
|
7
7
|
get auth0ClientId(): string;
|
|
8
8
|
}
|
|
@@ -7,22 +7,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Inject, Injectable } from "@nestjs/common";
|
|
13
14
|
import { IsDefined, IsString } from "class-validator";
|
|
14
15
|
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
|
|
16
|
+
import { AUTHZ_CLIENT_MODULE_OPTIONS, } from "./authz-client.options.js";
|
|
15
17
|
let AuthClientConfigurationService = class AuthClientConfigurationService extends ValidatedConfigurationService {
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
+
options;
|
|
19
|
+
constructor(options) {
|
|
18
20
|
super();
|
|
19
|
-
this.
|
|
21
|
+
this.options = options;
|
|
20
22
|
}
|
|
21
23
|
get auth0Domain() {
|
|
22
|
-
return this.
|
|
24
|
+
return this.options.auth0Domain;
|
|
23
25
|
}
|
|
24
26
|
get auth0ClientId() {
|
|
25
|
-
return this.
|
|
27
|
+
return this.options.auth0ClientId;
|
|
26
28
|
}
|
|
27
29
|
};
|
|
28
30
|
__decorate([
|
|
@@ -39,7 +41,8 @@ __decorate([
|
|
|
39
41
|
], AuthClientConfigurationService.prototype, "auth0ClientId", null);
|
|
40
42
|
AuthClientConfigurationService = __decorate([
|
|
41
43
|
Injectable(),
|
|
42
|
-
|
|
44
|
+
__param(0, Inject(AUTHZ_CLIENT_MODULE_OPTIONS)),
|
|
45
|
+
__metadata("design:paramtypes", [Object])
|
|
43
46
|
], AuthClientConfigurationService);
|
|
44
47
|
export { AuthClientConfigurationService };
|
|
45
48
|
//# sourceMappingURL=AuthClientConfigurationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthClientConfigurationService.js","sourceRoot":"","sources":["../../src/authzclient/AuthClientConfigurationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthClientConfigurationService.js","sourceRoot":"","sources":["../../src/authzclient/AuthClientConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAC,6BAA6B,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,EACH,2BAA2B,GAE9B,MAAM,2BAA2B,CAAC;AAG5B,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,6BAA6B;IAGjE;IAFZ,YAEY,OAAiC;QAEzC,KAAK,EAAE,CAAC;QAFA,YAAO,GAAP,OAAO,CAA0B;IAG7C,CAAC;IAED,IAEI,WAAW;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACpC,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;IACtC,CAAC;CACJ,CAAA;AAXG;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;iEAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;mEAGV;AAlBQ,8BAA8B;IAD1C,UAAU,EAAE;IAGJ,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;;GAF/B,8BAA8B,CAmB1C"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { DynamicModule } from "@nestjs/common";
|
|
2
|
+
import { AuthzClientModuleAsyncOptions } from "./authz-client.options.js";
|
|
1
3
|
export declare class AuthzClientModule {
|
|
4
|
+
static forRoot(): never;
|
|
5
|
+
static forRootAsync(options: AuthzClientModuleAsyncOptions): DynamicModule;
|
|
2
6
|
}
|
|
@@ -4,26 +4,39 @@ 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
|
+
var AuthzClientModule_1;
|
|
7
8
|
import { Module } from "@nestjs/common";
|
|
8
9
|
import { AuthClientConfigurationService } from "./AuthClientConfigurationService.js";
|
|
9
10
|
import { AuthZClientService } from "./authz.service.js";
|
|
10
|
-
import configVariables from "./AuthClientConfigurationVariables.js";
|
|
11
|
-
import { ConfigModule } from "@nestjs/config";
|
|
12
11
|
import { AuthzClientProvider as AuthZClientProvider } from "./AuthzClientProvider.js";
|
|
13
12
|
import { AuthzUserInfoProvider } from "./AuthzUserInfoProvider.js";
|
|
14
|
-
|
|
13
|
+
import { AUTHZ_CLIENT_MODULE_OPTIONS, } from "./authz-client.options.js";
|
|
14
|
+
let AuthzClientModule = AuthzClientModule_1 = class AuthzClientModule {
|
|
15
|
+
static forRoot() {
|
|
16
|
+
throw new Error("AuthzClientModule.forRoot() is not supported. Use forRootAsync() instead.");
|
|
17
|
+
}
|
|
18
|
+
static forRootAsync(options) {
|
|
19
|
+
return {
|
|
20
|
+
module: AuthzClientModule_1,
|
|
21
|
+
global: options.isGlobal ?? false,
|
|
22
|
+
imports: [...(options.imports || [])],
|
|
23
|
+
providers: [
|
|
24
|
+
{
|
|
25
|
+
provide: AUTHZ_CLIENT_MODULE_OPTIONS,
|
|
26
|
+
useFactory: options.useFactory,
|
|
27
|
+
inject: options.inject || [],
|
|
28
|
+
},
|
|
29
|
+
AuthClientConfigurationService,
|
|
30
|
+
AuthZClientProvider,
|
|
31
|
+
AuthZClientService,
|
|
32
|
+
AuthzUserInfoProvider,
|
|
33
|
+
],
|
|
34
|
+
exports: [AuthZClientService],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
15
37
|
};
|
|
16
|
-
AuthzClientModule = __decorate([
|
|
17
|
-
Module({
|
|
18
|
-
imports: [ConfigModule.forFeature(configVariables)],
|
|
19
|
-
providers: [
|
|
20
|
-
AuthClientConfigurationService,
|
|
21
|
-
AuthZClientProvider,
|
|
22
|
-
AuthZClientService,
|
|
23
|
-
AuthzUserInfoProvider,
|
|
24
|
-
],
|
|
25
|
-
exports: [AuthZClientService],
|
|
26
|
-
})
|
|
38
|
+
AuthzClientModule = AuthzClientModule_1 = __decorate([
|
|
39
|
+
Module({})
|
|
27
40
|
], AuthzClientModule);
|
|
28
41
|
export { AuthzClientModule };
|
|
29
42
|
//# sourceMappingURL=authz-client.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-client.module.js","sourceRoot":"","sources":["../../src/authzclient/authz-client.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authz-client.module.js","sourceRoot":"","sources":["../../src/authzclient/authz-client.module.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAgB,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAC,8BAA8B,EAAC,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAC,mBAAmB,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACH,2BAA2B,GAE9B,MAAM,2BAA2B,CAAC;AAG5B,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAC1B,MAAM,CAAC,OAAO;QACV,MAAM,IAAI,KAAK,CACX,2EAA2E,CAC9E,CAAC;IACN,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,OAAsC;QACtD,OAAO;YACH,MAAM,EAAE,mBAAiB;YACzB,MAAM,EAAE,OAAO,CAAC,QAAQ,IAAI,KAAK;YACjC,OAAO,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YACrC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,2BAA2B;oBACpC,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE;iBAC/B;gBACD,8BAA8B;gBAC9B,mBAAmB;gBACnB,kBAAkB;gBAClB,qBAAqB;aACxB;YACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;IACN,CAAC;CACJ,CAAA;AA1BY,iBAAiB;IAD7B,MAAM,CAAC,EAAE,CAAC;GACE,iBAAiB,CA0B7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ModuleMetadata } from "@nestjs/common";
|
|
2
|
+
export declare const AUTHZ_CLIENT_MODULE_OPTIONS: unique symbol;
|
|
3
|
+
export interface AuthzClientModuleOptions {
|
|
4
|
+
auth0Domain: string;
|
|
5
|
+
auth0ClientId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AuthzClientModuleAsyncOptions extends Pick<ModuleMetadata, "imports"> {
|
|
8
|
+
useFactory: (...args: any[]) => Promise<AuthzClientModuleOptions> | AuthzClientModuleOptions;
|
|
9
|
+
inject?: any[];
|
|
10
|
+
isGlobal?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authz-client.options.js","sourceRoot":"","sources":["../../src/authzclient/authz-client.options.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAC7C,6BAA6B,CAChC,CAAC"}
|
|
@@ -4,18 +4,33 @@ 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
|
+
var CoreConfigModule_1;
|
|
7
8
|
import { Module } from "@nestjs/common";
|
|
8
|
-
import { ConfigModule } from "@nestjs/config";
|
|
9
9
|
import { CoreConfigurationService } from "./CoreConfigurationService.js";
|
|
10
|
-
import
|
|
11
|
-
let CoreConfigModule = class CoreConfigModule {
|
|
10
|
+
import { CORE_MODULE_OPTIONS, } from "./core-config.options.js";
|
|
11
|
+
let CoreConfigModule = CoreConfigModule_1 = class CoreConfigModule {
|
|
12
|
+
static forRoot() {
|
|
13
|
+
throw new Error("CoreConfigModule.forRoot() is not supported. Use forRootAsync() instead.");
|
|
14
|
+
}
|
|
15
|
+
static forRootAsync(options) {
|
|
16
|
+
return {
|
|
17
|
+
module: CoreConfigModule_1,
|
|
18
|
+
global: options.isGlobal ?? true,
|
|
19
|
+
imports: [...(options.imports || [])],
|
|
20
|
+
providers: [
|
|
21
|
+
{
|
|
22
|
+
provide: CORE_MODULE_OPTIONS,
|
|
23
|
+
useFactory: options.useFactory,
|
|
24
|
+
inject: options.inject || [],
|
|
25
|
+
},
|
|
26
|
+
CoreConfigurationService,
|
|
27
|
+
],
|
|
28
|
+
exports: [CoreConfigurationService, CORE_MODULE_OPTIONS],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
12
31
|
};
|
|
13
|
-
CoreConfigModule = __decorate([
|
|
14
|
-
Module({
|
|
15
|
-
imports: [ConfigModule.forFeature(configVariables)],
|
|
16
|
-
exports: [CoreConfigurationService],
|
|
17
|
-
providers: [CoreConfigurationService],
|
|
18
|
-
})
|
|
32
|
+
CoreConfigModule = CoreConfigModule_1 = __decorate([
|
|
33
|
+
Module({})
|
|
19
34
|
], CoreConfigModule);
|
|
20
35
|
export { CoreConfigModule };
|
|
21
36
|
//# sourceMappingURL=CoreConfig.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreConfig.module.js","sourceRoot":"","sources":["../../src/core-config/CoreConfig.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoreConfig.module.js","sourceRoot":"","sources":["../../src/core-config/CoreConfig.module.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAgB,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAC,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACH,mBAAmB,GAEtB,MAAM,0BAA0B,CAAC;AAG3B,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IACzB,MAAM,CAAC,OAAO;QACV,MAAM,IAAI,KAAK,CACX,0EAA0E,CAC7E,CAAC;IACN,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,OAA+B;QAC/C,OAAO;YACH,MAAM,EAAE,kBAAgB;YACxB,MAAM,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;YAChC,OAAO,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YACrC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,mBAAmB;oBAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE;iBAC/B;gBACD,wBAAwB;aAC3B;YACD,OAAO,EAAE,CAAC,wBAAwB,EAAE,mBAAmB,CAAC;SAC3D,CAAC;IACN,CAAC;CACJ,CAAA;AAvBY,gBAAgB;IAD5B,MAAM,CAAC,EAAE,CAAC;GACE,gBAAgB,CAuB5B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigService } from "@nestjs/config";
|
|
2
1
|
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
|
|
2
|
+
import { CoreModuleOptions, HelmetOptions } from "./core-config.options.js";
|
|
3
3
|
export declare class CoreConfigurationService extends ValidatedConfigurationService {
|
|
4
|
-
private
|
|
5
|
-
constructor(
|
|
4
|
+
private options;
|
|
5
|
+
constructor(options: CoreModuleOptions);
|
|
6
6
|
get shouldGenerateSwagger(): boolean;
|
|
7
7
|
get shouldAutomaticallyInstallApiModels(): boolean;
|
|
8
8
|
get shouldUseNestCors(): boolean;
|
|
@@ -12,4 +12,5 @@ export declare class CoreConfigurationService extends ValidatedConfigurationServ
|
|
|
12
12
|
get nodeEnv(): string;
|
|
13
13
|
get bullQueueHost(): string;
|
|
14
14
|
get globalPrefix(): string | undefined;
|
|
15
|
+
get helmetOptions(): HelmetOptions | false | undefined;
|
|
15
16
|
}
|
|
@@ -7,50 +7,54 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Inject, Injectable } from "@nestjs/common";
|
|
13
14
|
import { IsBoolean, IsDefined, IsInt, IsOptional, IsString, } from "class-validator";
|
|
14
15
|
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
|
|
16
|
+
import { CORE_MODULE_OPTIONS, } from "./core-config.options.js";
|
|
15
17
|
let CoreConfigurationService = class CoreConfigurationService extends ValidatedConfigurationService {
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
+
options;
|
|
19
|
+
constructor(options) {
|
|
18
20
|
super();
|
|
19
|
-
this.
|
|
21
|
+
this.options = options;
|
|
20
22
|
}
|
|
21
23
|
get shouldGenerateSwagger() {
|
|
22
|
-
return
|
|
23
|
-
"true");
|
|
24
|
+
return this.options.shouldGenerateSwagger;
|
|
24
25
|
}
|
|
25
26
|
get shouldAutomaticallyInstallApiModels() {
|
|
26
|
-
return
|
|
27
|
+
return this.options.shouldAutomaticallyInstallApiModels;
|
|
27
28
|
}
|
|
28
29
|
get shouldUseNestCors() {
|
|
29
|
-
return
|
|
30
|
+
return this.options.shouldUseNestCors;
|
|
30
31
|
}
|
|
31
32
|
get webPort() {
|
|
32
|
-
return
|
|
33
|
+
return this.options.webPort;
|
|
33
34
|
}
|
|
34
35
|
get appTitle() {
|
|
35
|
-
return this.
|
|
36
|
+
return this.options.appTitle;
|
|
36
37
|
}
|
|
37
38
|
get frontEndAppUrl() {
|
|
38
|
-
return this.
|
|
39
|
+
return this.options.frontEndAppUrl;
|
|
39
40
|
}
|
|
40
41
|
get nodeEnv() {
|
|
41
|
-
return this.
|
|
42
|
+
return this.options.nodeEnv;
|
|
42
43
|
}
|
|
43
44
|
get bullQueueHost() {
|
|
44
|
-
return this.
|
|
45
|
+
return this.options.bullQueueHost;
|
|
45
46
|
}
|
|
46
47
|
get globalPrefix() {
|
|
47
|
-
const raw = this.
|
|
48
|
+
const raw = this.options.globalPrefix;
|
|
48
49
|
if (!raw) {
|
|
49
50
|
return undefined;
|
|
50
51
|
}
|
|
51
52
|
// Normalize: remove leading/trailing slashes
|
|
52
53
|
return raw.replace(/^\/+|\/+$/g, "");
|
|
53
54
|
}
|
|
55
|
+
get helmetOptions() {
|
|
56
|
+
return this.options.helmetOptions;
|
|
57
|
+
}
|
|
54
58
|
};
|
|
55
59
|
__decorate([
|
|
56
60
|
IsDefined(),
|
|
@@ -108,7 +112,8 @@ __decorate([
|
|
|
108
112
|
], CoreConfigurationService.prototype, "globalPrefix", null);
|
|
109
113
|
CoreConfigurationService = __decorate([
|
|
110
114
|
Injectable(),
|
|
111
|
-
|
|
115
|
+
__param(0, Inject(CORE_MODULE_OPTIONS)),
|
|
116
|
+
__metadata("design:paramtypes", [Object])
|
|
112
117
|
], CoreConfigurationService);
|
|
113
118
|
export { CoreConfigurationService };
|
|
114
119
|
//# sourceMappingURL=CoreConfigurationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreConfigurationService.js","sourceRoot":"","sources":["../../src/core-config/CoreConfigurationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoreConfigurationService.js","sourceRoot":"","sources":["../../src/core-config/CoreConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,EACH,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,QAAQ,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,6BAA6B,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,EACH,mBAAmB,GAGtB,MAAM,0BAA0B,CAAC;AAG3B,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,6BAA6B;IAG3D;IAFZ,YAEY,OAA0B;QAElC,KAAK,EAAE,CAAC;QAFA,YAAO,GAAP,OAAO,CAAmB;IAGtC,CAAC;IAED,IAEI,qBAAqB;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC;IAC9C,CAAC;IAED,IAEI,mCAAmC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAmC,CAAC;IAC5D,CAAC;IAED,IAEI,iBAAiB;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAC1C,CAAC;IAED,IAEI,OAAO;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,IAEI,QAAQ;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IACjC,CAAC;IAED,IAEI,cAAc;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;IACvC,CAAC;IAED,IAEI,OAAO;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;IACtC,CAAC;IAED,IAEI,YAAY;QACZ,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,GAAG,EAAE,CAAC;YACP,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,6CAA6C;QAC7C,OAAO,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;IACtC,CAAC;CACJ,CAAA;AA9DG;IAAC,SAAS,EAAE;IACX,SAAS,EAAE;;;qEAGX;AAED;IAAC,SAAS,EAAE;IACX,SAAS,EAAE;;;mFAGX;AAED;IAAC,SAAS,EAAE;IACX,SAAS,EAAE;;;iEAGX;AAED;IAAC,SAAS,EAAE;IACX,KAAK,EAAE;;;uDAGP;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;wDAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;8DAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;uDAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;6DAGV;AAED;IAAC,QAAQ,EAAE;IACV,UAAU,EAAE;;;4DAQZ;AAjEQ,wBAAwB;IADpC,UAAU,EAAE;IAGJ,WAAA,MAAM,CAAC,mBAAmB,CAAC,CAAA;;GAFvB,wBAAwB,CAsEpC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ModuleMetadata } from "@nestjs/common";
|
|
2
|
+
import type { HelmetOptions } from "helmet";
|
|
3
|
+
export type { HelmetOptions } from "helmet";
|
|
4
|
+
export declare const CORE_MODULE_OPTIONS: unique symbol;
|
|
5
|
+
export interface CoreModuleOptions {
|
|
6
|
+
webPort: number;
|
|
7
|
+
appTitle: string;
|
|
8
|
+
frontEndAppUrl: string;
|
|
9
|
+
nodeEnv: string;
|
|
10
|
+
bullQueueHost: string;
|
|
11
|
+
shouldGenerateSwagger: boolean;
|
|
12
|
+
shouldAutomaticallyInstallApiModels: boolean;
|
|
13
|
+
shouldUseNestCors: boolean;
|
|
14
|
+
globalPrefix?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional Helmet configuration. Passed directly to helmet().
|
|
17
|
+
* If not provided, Helmet runs with default options.
|
|
18
|
+
* Set to false to disable Helmet entirely (not recommended).
|
|
19
|
+
* @see https://helmetjs.github.io/
|
|
20
|
+
*/
|
|
21
|
+
helmetOptions?: HelmetOptions | false;
|
|
22
|
+
}
|
|
23
|
+
export interface CoreModuleAsyncOptions extends Pick<ModuleMetadata, "imports"> {
|
|
24
|
+
useFactory: (...args: any[]) => Promise<CoreModuleOptions> | CoreModuleOptions;
|
|
25
|
+
inject?: any[];
|
|
26
|
+
isGlobal?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-config.options.js","sourceRoot":"","sources":["../../src/core-config/core-config.options.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -56,3 +56,22 @@ export { Organisation } from "./organisation/entities/organisation.entity.js";
|
|
|
56
56
|
export { OrganisationMembership } from "./organisation-memberships/entities/organisation-membership.entity.js";
|
|
57
57
|
export { MembershipRole } from "./organisation/entities/member-role.entity.js";
|
|
58
58
|
export { Roles } from "./organisation/dto/RolesEnum.js";
|
|
59
|
+
export { AuthzClientModule } from "./authzclient/authz-client.module.js";
|
|
60
|
+
export { LoggerModule } from "./logger/logger.module.js";
|
|
61
|
+
export { LoggingConfigurationService } from "./logger/LoggingConfigurationService.js";
|
|
62
|
+
export type { CoreModuleOptions, CoreModuleAsyncOptions, HelmetOptions, } from "./core-config/core-config.options.js";
|
|
63
|
+
export { CORE_MODULE_OPTIONS } from "./core-config/core-config.options.js";
|
|
64
|
+
export type { LoggerModuleOptions, LoggerModuleAsyncOptions, } from "./logger/logger.options.js";
|
|
65
|
+
export { LOGGER_MODULE_OPTIONS } from "./logger/logger.options.js";
|
|
66
|
+
export type { AuthzModuleOptions, AuthzModuleAsyncOptions, } from "./authorization/authz.options.js";
|
|
67
|
+
export { AUTHZ_MODULE_OPTIONS } from "./authorization/authz.options.js";
|
|
68
|
+
export type { AuthzClientModuleOptions, AuthzClientModuleAsyncOptions, } from "./authzclient/authz-client.options.js";
|
|
69
|
+
export { AUTHZ_CLIENT_MODULE_OPTIONS } from "./authzclient/authz-client.options.js";
|
|
70
|
+
export type { StripeModuleOptions, StripeModuleAsyncOptions, } from "./stripe-client/stripe-account.options.js";
|
|
71
|
+
export { STRIPE_MODULE_OPTIONS } from "./stripe-client/stripe-account.options.js";
|
|
72
|
+
export type { SmtpEmailModuleOptions, SmtpEmailModuleAsyncOptions, } from "./smtp-email-client/smtp-email-client.options.js";
|
|
73
|
+
export { SMTP_EMAIL_MODULE_OPTIONS } from "./smtp-email-client/smtp-email-client.options.js";
|
|
74
|
+
export type { TwitterModuleOptions, TwitterModuleAsyncOptions, } from "./twitter-client/twitter-account.options.js";
|
|
75
|
+
export { TWITTER_MODULE_OPTIONS } from "./twitter-client/twitter-account.options.js";
|
|
76
|
+
export type { InvitationModuleOptions, InvitationModuleAsyncOptions, } from "./invitations/invitation.options.js";
|
|
77
|
+
export { INVITATION_MODULE_OPTIONS } from "./invitations/invitation.options.js";
|
package/dist/index.js
CHANGED
|
@@ -60,4 +60,17 @@ export { Organisation } from "./organisation/entities/organisation.entity.js";
|
|
|
60
60
|
export { OrganisationMembership } from "./organisation-memberships/entities/organisation-membership.entity.js";
|
|
61
61
|
export { MembershipRole } from "./organisation/entities/member-role.entity.js";
|
|
62
62
|
export { Roles } from "./organisation/dto/RolesEnum.js";
|
|
63
|
+
// authz client
|
|
64
|
+
export { AuthzClientModule } from "./authzclient/authz-client.module.js";
|
|
65
|
+
// logger
|
|
66
|
+
export { LoggerModule } from "./logger/logger.module.js";
|
|
67
|
+
export { LoggingConfigurationService } from "./logger/LoggingConfigurationService.js";
|
|
68
|
+
export { CORE_MODULE_OPTIONS } from "./core-config/core-config.options.js";
|
|
69
|
+
export { LOGGER_MODULE_OPTIONS } from "./logger/logger.options.js";
|
|
70
|
+
export { AUTHZ_MODULE_OPTIONS } from "./authorization/authz.options.js";
|
|
71
|
+
export { AUTHZ_CLIENT_MODULE_OPTIONS } from "./authzclient/authz-client.options.js";
|
|
72
|
+
export { STRIPE_MODULE_OPTIONS } from "./stripe-client/stripe-account.options.js";
|
|
73
|
+
export { SMTP_EMAIL_MODULE_OPTIONS } from "./smtp-email-client/smtp-email-client.options.js";
|
|
74
|
+
export { TWITTER_MODULE_OPTIONS } from "./twitter-client/twitter-account.options.js";
|
|
75
|
+
export { INVITATION_MODULE_OPTIONS } from "./invitations/invitation.options.js";
|
|
63
76
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAC,oBAAoB,EAAC,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,6BAA6B,EAAC,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAC,wBAAwB,EAAC,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAC,sBAAsB,EAAC,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAC,oCAAoC,EAAC,MAAM,6DAA6D,CAAC;AACjH,OAAO,EAAC,oBAAoB,EAAC,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAC,kCAAkC,EAAC,MAAM,yDAAyD,CAAC;AAC3G,OAAO,E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