@darraghor/nest-backend-libs 2.18.16 → 2.18.18

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.
Files changed (70) hide show
  1. package/dist/authz/ClaimsAuthorisationGuard.d.ts +1 -2
  2. package/dist/authz/ClaimsAuthorisationGuard.js +6 -11
  3. package/dist/authz/ClaimsAuthorisationGuard.js.map +1 -1
  4. package/dist/authz/authzstrategy.d.ts +1 -2
  5. package/dist/authz/authzstrategy.js +5 -10
  6. package/dist/authz/authzstrategy.js.map +1 -1
  7. package/dist/authzclient/authz.service.d.ts +2 -3
  8. package/dist/authzclient/authz.service.js +7 -12
  9. package/dist/authzclient/authz.service.js.map +1 -1
  10. package/dist/index.d.ts +1 -2
  11. package/dist/index.js +1 -6
  12. package/dist/index.js.map +1 -1
  13. package/dist/logger/LoggingConfigurationService.d.ts +1 -0
  14. package/dist/logger/LoggingConfigurationService.js +9 -0
  15. package/dist/logger/LoggingConfigurationService.js.map +1 -1
  16. package/dist/logger/LoggingConfigurationVariables.d.ts +2 -0
  17. package/dist/logger/LoggingConfigurationVariables.js +1 -0
  18. package/dist/logger/LoggingConfigurationVariables.js.map +1 -1
  19. package/dist/logger/logger.module.js +2 -8
  20. package/dist/logger/logger.module.js.map +1 -1
  21. package/dist/organisation-subscriptions/organisation-subscriptions.service.d.ts +2 -3
  22. package/dist/organisation-subscriptions/organisation-subscriptions.service.js +8 -13
  23. package/dist/organisation-subscriptions/organisation-subscriptions.service.js.map +1 -1
  24. package/dist/payment-sessions/payment-session.controller.d.ts +8 -0
  25. package/dist/payment-sessions/payment-session.controller.js +50 -0
  26. package/dist/payment-sessions/payment-session.controller.js.map +1 -0
  27. package/dist/payment-sessions/payment-session.module.js +2 -1
  28. package/dist/payment-sessions/payment-session.module.js.map +1 -1
  29. package/dist/payment-sessions/payment-session.service.d.ts +1 -0
  30. package/dist/payment-sessions/payment-session.service.js +3 -0
  31. package/dist/payment-sessions/payment-session.service.js.map +1 -1
  32. package/dist/person/person.service.d.ts +2 -3
  33. package/dist/person/person.service.js +5 -10
  34. package/dist/person/person.service.js.map +1 -1
  35. package/dist/root-app/SwaggerGen.d.ts +2 -3
  36. package/dist/root-app/SwaggerGen.js +6 -8
  37. package/dist/root-app/SwaggerGen.js.map +1 -1
  38. package/dist/root-app/app.controller.d.ts +1 -2
  39. package/dist/root-app/app.controller.js +6 -11
  40. package/dist/root-app/app.controller.js.map +1 -1
  41. package/dist/root-app/core-app.module.js +17 -6
  42. package/dist/root-app/core-app.module.js.map +1 -1
  43. package/dist/runningCommandLine/CliCommandService.d.ts +0 -2
  44. package/dist/runningCommandLine/CliCommandService.js +5 -12
  45. package/dist/runningCommandLine/CliCommandService.js.map +1 -1
  46. package/dist/smtp-email-client/email-client.service.d.ts +2 -3
  47. package/dist/smtp-email-client/email-client.service.js +9 -14
  48. package/dist/smtp-email-client/email-client.service.js.map +1 -1
  49. package/dist/smtp-email-client/smtp-email-handler.d.ts +1 -2
  50. package/dist/smtp-email-client/smtp-email-handler.js +6 -10
  51. package/dist/smtp-email-client/smtp-email-handler.js.map +1 -1
  52. package/dist/stripe-client/services/queued-payment-event.handler.d.ts +2 -3
  53. package/dist/stripe-client/services/queued-payment-event.handler.js +10 -15
  54. package/dist/stripe-client/services/queued-payment-event.handler.js.map +1 -1
  55. package/dist/stripe-client/services/stripe-checkout.service.d.ts +2 -3
  56. package/dist/stripe-client/services/stripe-checkout.service.js +7 -9
  57. package/dist/stripe-client/services/stripe-checkout.service.js.map +1 -1
  58. package/dist/stripe-client/services/stripe-webhook-handler.service.d.ts +2 -3
  59. package/dist/stripe-client/services/stripe-webhook-handler.service.js +7 -9
  60. package/dist/stripe-client/services/stripe-webhook-handler.service.js.map +1 -1
  61. package/dist/twitter-client/services/twitter-client.service.d.ts +2 -3
  62. package/dist/twitter-client/services/twitter-client.service.js +7 -12
  63. package/dist/twitter-client/services/twitter-client.service.js.map +1 -1
  64. package/package.json +3 -2
  65. package/dist/logger/CoreLoggerService.d.ts +0 -12
  66. package/dist/logger/CoreLoggerService.js +0 -57
  67. package/dist/logger/CoreLoggerService.js.map +0 -1
  68. package/dist/logger/LoggingInterceptor.d.ts +0 -7
  69. package/dist/logger/LoggingInterceptor.js +0 -52
  70. package/dist/logger/LoggingInterceptor.js.map +0 -1
@@ -1,10 +1,9 @@
1
1
  import { CanActivate, ExecutionContext } from "@nestjs/common";
2
2
  import { Observable } from "rxjs";
3
3
  import { Reflector } from "@nestjs/core";
4
- import CoreLoggerService from "../logger/CoreLoggerService";
5
4
  export declare class ClaimsAuthorisationGuard implements CanActivate {
6
5
  private readonly reflector;
7
6
  private readonly logger;
8
- constructor(reflector: Reflector, logger: CoreLoggerService);
7
+ constructor(reflector: Reflector);
9
8
  canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean>;
10
9
  }
@@ -8,20 +8,16 @@ 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 __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
11
+ var ClaimsAuthorisationGuard_1;
14
12
  Object.defineProperty(exports, "__esModule", { value: true });
15
13
  exports.ClaimsAuthorisationGuard = void 0;
16
14
  const common_1 = require("@nestjs/common");
17
15
  const core_1 = require("@nestjs/core");
18
- const CoreLoggerService_1 = __importDefault(require("../logger/CoreLoggerService"));
19
- let ClaimsAuthorisationGuard = class ClaimsAuthorisationGuard {
16
+ let ClaimsAuthorisationGuard = ClaimsAuthorisationGuard_1 = class ClaimsAuthorisationGuard {
20
17
  reflector;
21
- logger;
22
- constructor(reflector, logger) {
18
+ logger = new common_1.Logger(ClaimsAuthorisationGuard_1.name);
19
+ constructor(reflector) {
23
20
  this.reflector = reflector;
24
- this.logger = logger;
25
21
  }
26
22
  canActivate(context) {
27
23
  try {
@@ -44,10 +40,9 @@ let ClaimsAuthorisationGuard = class ClaimsAuthorisationGuard {
44
40
  }
45
41
  }
46
42
  };
47
- ClaimsAuthorisationGuard = __decorate([
43
+ ClaimsAuthorisationGuard = ClaimsAuthorisationGuard_1 = __decorate([
48
44
  (0, common_1.Injectable)(),
49
- __metadata("design:paramtypes", [core_1.Reflector,
50
- CoreLoggerService_1.default])
45
+ __metadata("design:paramtypes", [core_1.Reflector])
51
46
  ], ClaimsAuthorisationGuard);
52
47
  exports.ClaimsAuthorisationGuard = ClaimsAuthorisationGuard;
53
48
  //# sourceMappingURL=ClaimsAuthorisationGuard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClaimsAuthorisationGuard.js","sourceRoot":"","sources":["../../src/authz/ClaimsAuthorisationGuard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AAEzE,uCAAuC;AAEvC,oFAA4D;AAGrD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAEZ;IACA;IAFrB,YACqB,SAAoB,EACpB,MAAyB;QADzB,cAAS,GAAT,SAAS,CAAW;QACpB,WAAM,GAAN,MAAM,CAAmB;IAC3C,CAAC;IAEJ,WAAW,CACP,OAAyB;QAEzB,IAAI;YACA,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CACvC,qBAAqB,EACrB,OAAO,CAAC,UAAU,EAAE,CACvB,CAAC;YAEF,MAAM,WAAW,GAAG,OAAO;iBACtB,YAAY,EAAE;iBACd,UAAU,EAAmB,CAAC;YACnC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;YAE9B,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE;gBACpD,OAAO,IAAI,CAAC;aACf;YAED,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBAC5B,OAAO,KAAK,CAAC;aAChB;YACD,OAAO,gBAAgB,CAAC,KAAK,CAA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CAAC,WAAW,CAAC,QAAQ,CAAC,eAAe,CAAC,CAC7C,CAAC;SACL;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;YACjD,OAAO,KAAK,CAAC;SAChB;IACL,CAAC;CACJ,CAAA;AAlCY,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAI+B,gBAAS;GAHxC,wBAAwB,CAkCpC;AAlCY,4DAAwB"}
@@ -3,13 +3,12 @@ import { PersonService } from "../person/person.service";
3
3
  import { AccessToken } from "./AccessToken";
4
4
  import { Request } from "express";
5
5
  import { AuthConfigurationService } from "./AuthConfigurationService";
6
- import CoreLoggerService from "../logger/CoreLoggerService";
7
6
  import { RequestPerson } from "./RequestWithUser";
8
7
  declare const JwtStrategy_base: new (...args: any[]) => Strategy;
9
8
  export declare class JwtStrategy extends JwtStrategy_base {
10
9
  private readonly personService;
11
10
  private readonly logger;
12
- constructor(personService: PersonService, logger: CoreLoggerService, config: AuthConfigurationService);
11
+ constructor(personService: PersonService, config: AuthConfigurationService);
13
12
  validate(request: Request, payload: AccessToken): Promise<RequestPerson | undefined>;
14
13
  }
15
14
  export {};
@@ -8,9 +8,7 @@ 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 __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
11
+ var JwtStrategy_1;
14
12
  Object.defineProperty(exports, "__esModule", { value: true });
15
13
  exports.JwtStrategy = void 0;
16
14
  const common_1 = require("@nestjs/common");
@@ -19,13 +17,12 @@ const passport_jwt_1 = require("passport-jwt");
19
17
  const jwks_rsa_1 = require("jwks-rsa");
20
18
  const person_service_1 = require("../person/person.service");
21
19
  const AuthConfigurationService_1 = require("./AuthConfigurationService");
22
- const CoreLoggerService_1 = __importDefault(require("../logger/CoreLoggerService"));
23
- let JwtStrategy = class JwtStrategy extends (0, passport_1.PassportStrategy)(passport_jwt_1.Strategy) {
20
+ let JwtStrategy = JwtStrategy_1 = class JwtStrategy extends (0, passport_1.PassportStrategy)(passport_jwt_1.Strategy) {
24
21
  personService;
25
- logger;
26
22
  // eslint-disable-next-line @typescript-eslint/naming-convention
27
23
  // private readonly _config: AuthConfigurationService;
28
- constructor(personService, logger, config) {
24
+ logger = new common_1.Logger(JwtStrategy_1.name);
25
+ constructor(personService, config) {
29
26
  super({
30
27
  secretOrKeyProvider: (0, jwks_rsa_1.passportJwtSecret)({
31
28
  cache: true,
@@ -41,7 +38,6 @@ let JwtStrategy = class JwtStrategy extends (0, passport_1.PassportStrategy)(pas
41
38
  algorithms: ["RS256"],
42
39
  });
43
40
  this.personService = personService;
44
- this.logger = logger;
45
41
  }
46
42
  async validate(request, payload) {
47
43
  const rawAccessToken = passport_jwt_1.ExtractJwt.fromAuthHeaderAsBearerToken()(request);
@@ -56,10 +52,9 @@ let JwtStrategy = class JwtStrategy extends (0, passport_1.PassportStrategy)(pas
56
52
  return rp;
57
53
  }
58
54
  };
59
- JwtStrategy = __decorate([
55
+ JwtStrategy = JwtStrategy_1 = __decorate([
60
56
  (0, common_1.Injectable)(),
61
57
  __metadata("design:paramtypes", [person_service_1.PersonService,
62
- CoreLoggerService_1.default,
63
58
  AuthConfigurationService_1.AuthConfigurationService])
64
59
  ], JwtStrategy);
65
60
  exports.JwtStrategy = JwtStrategy;
@@ -1 +1 @@
1
- {"version":3,"file":"authzstrategy.js","sourceRoot":"","sources":["../../src/authz/authzstrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0C;AAC1C,+CAAkD;AAClD,+CAAkD;AAClD,uCAA2C;AAC3C,6DAAuD;AAGvD,yEAAoE;AACpE,oFAA4D;AAIrD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,IAAA,2BA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QAED,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,YAAY,CACtD,OAAO,EACP,cAAc,CACjB,CAAC;QAEF,MAAM,eAAe,GAAG,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE,EAAC,CAAC;QACjE,2DAA2D;QAC3D,MAAM,EAAE,GAAG,EAAC,GAAG,YAAY,EAAE,GAAG,eAAe,EAAkB,CAAC;QAClE,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AA7CY,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAM2B,8BAAa;QACrC,mDAAwB;GAN3B,WAAW,CA6CvB;AA7CY,kCAAW"}
@@ -1,9 +1,8 @@
1
1
  import { AuthenticationClient } from "auth0";
2
- import CoreLoggerService from "../logger/CoreLoggerService";
3
2
  import { UserProfile } from "./UserProfile.dto";
4
3
  export declare class AuthZClientService {
5
- private readonly logger;
6
4
  private readonly auth0Client;
7
- constructor(logger: CoreLoggerService, auth0Client: AuthenticationClient);
5
+ private readonly logger;
6
+ constructor(auth0Client: AuthenticationClient);
8
7
  getUser(accessToken: string): Promise<UserProfile | undefined>;
9
8
  }
@@ -11,19 +11,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
14
+ var AuthZClientService_1;
17
15
  Object.defineProperty(exports, "__esModule", { value: true });
18
16
  exports.AuthZClientService = void 0;
19
17
  const common_1 = require("@nestjs/common");
20
18
  const auth0_1 = require("auth0");
21
- const CoreLoggerService_1 = __importDefault(require("../logger/CoreLoggerService"));
22
- let AuthZClientService = class AuthZClientService {
23
- logger;
19
+ let AuthZClientService = AuthZClientService_1 = class AuthZClientService {
24
20
  auth0Client;
25
- constructor(logger, auth0Client) {
26
- this.logger = logger;
21
+ logger = new common_1.Logger(AuthZClientService_1.name);
22
+ constructor(auth0Client) {
27
23
  this.auth0Client = auth0Client;
28
24
  }
29
25
  async getUser(accessToken) {
@@ -37,11 +33,10 @@ let AuthZClientService = class AuthZClientService {
37
33
  return undefined;
38
34
  }
39
35
  };
40
- AuthZClientService = __decorate([
36
+ AuthZClientService = AuthZClientService_1 = __decorate([
41
37
  (0, common_1.Injectable)(),
42
- __param(1, (0, common_1.Inject)("AuthzClient")),
43
- __metadata("design:paramtypes", [CoreLoggerService_1.default,
44
- auth0_1.AuthenticationClient])
38
+ __param(0, (0, common_1.Inject)("AuthzClient")),
39
+ __metadata("design:paramtypes", [auth0_1.AuthenticationClient])
45
40
  ], AuthZClientService);
46
41
  exports.AuthZClientService = AuthZClientService;
47
42
  //# sourceMappingURL=authz.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authz.service.js","sourceRoot":"","sources":["../../src/authzclient/authz.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAkD;AAClD,iCAA2C;AAC3C,oFAA4D;AAGrD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEN;IAEA;IAHrB,YACqB,MAAyB,EAEzB,WAAiC;QAFjC,WAAM,GAAN,MAAM,CAAmB;QAEzB,gBAAW,GAAX,WAAW,CAAsB;IACnD,CAAC;IAEG,KAAK,CAAC,OAAO,CAChB,WAAmB;QAEnB,IAAI;YACA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,EAAE,WAAW,CAAC,CAAC;YAElE,OAAO,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CACrC,WAAW,CACd,CAAyB,CAAC;SAC9B;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;SAC9D;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ,CAAA;AArBY,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCADG,2BAAiB;QAEZ,4BAAoB;GAJ7C,kBAAkB,CAqB9B;AArBY,gDAAkB"}
1
+ {"version":3,"file":"authz.service.js","sourceRoot":"","sources":["../../src/authzclient/authz.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA0D;AAC1D,iCAA2C;AAGpC,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAIN;IAHJ,MAAM,GAAG,IAAI,eAAM,CAAC,oBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9D,YAEqB,WAAiC;QAAjC,gBAAW,GAAX,WAAW,CAAsB;IACnD,CAAC;IAEG,KAAK,CAAC,OAAO,CAChB,WAAmB;QAEnB,IAAI;YACA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,EAAE,WAAW,CAAC,CAAC;YAElE,OAAO,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CACrC,WAAW,CACd,CAAyB,CAAC;SAC9B;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;SAC9D;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ,CAAA;AArBY,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCACQ,4BAAoB;GAJ7C,kBAAkB,CAqB9B;AArBY,gDAAkB"}
package/dist/index.d.ts CHANGED
@@ -9,13 +9,12 @@ import { PostgresTypeOrmConfigurationProvider } from "./database-postgres/Postgr
9
9
  import { SqliteDatabaseModule } from "./database-sqlite/SqliteDatabase.module";
10
10
  import { SqliteDatabaseConfigurationService } from "./database-sqlite/SqliteDatabaseConfigurationService";
11
11
  import { SmtpEmailClient } from "./smtp-email-client/email-client.service";
12
- import CoreLoggerService from "./logger/CoreLoggerService";
13
12
  import { CoreModule } from "./root-app/core-app.module";
14
13
  import { SwaggerGen } from "./root-app/SwaggerGen";
15
14
  import { TwitterClientService } from "./twitter-client/services/twitter-client.service";
16
15
  import { CoreConfigModule } from "./core-config/CoreConfig.module";
17
16
  import { CliCommandService } from "./runningCommandLine/CliCommandService";
18
- export { CoreLoggerService, CoreConfigurationService, SmtpEmailClientModule, CoreModule, CoreConfigModule, SwaggerGen, PostgresDatabaseModule as DatabaseModule, PostgresTypeOrmConfigurationProvider as TypeOrmConfigurationProvider, SmtpEmailClient, ValidatedConfigurationService, SqliteDatabaseModule, SqliteDatabaseConfigurationService, TwitterClientService, TwitterAccountModule, EUploadMimeType, RunningCommandLineModule, CliCommandService, };
17
+ export { CoreConfigurationService, SmtpEmailClientModule, CoreModule, CoreConfigModule, SwaggerGen, PostgresDatabaseModule as DatabaseModule, PostgresTypeOrmConfigurationProvider as TypeOrmConfigurationProvider, SmtpEmailClient, ValidatedConfigurationService, SqliteDatabaseModule, SqliteDatabaseConfigurationService, TwitterClientService, TwitterAccountModule, EUploadMimeType, RunningCommandLineModule, CliCommandService, };
19
18
  export * from "./stripe-client/index";
20
19
  export * from "./organisation-memberships/index";
21
20
  export * from "./organisation-subscriptions/index";
package/dist/index.js CHANGED
@@ -13,11 +13,8 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
16
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.CliCommandService = exports.RunningCommandLineModule = exports.EUploadMimeType = exports.TwitterAccountModule = exports.TwitterClientService = exports.SqliteDatabaseConfigurationService = exports.SqliteDatabaseModule = exports.ValidatedConfigurationService = exports.SmtpEmailClient = exports.TypeOrmConfigurationProvider = exports.DatabaseModule = exports.SwaggerGen = exports.CoreConfigModule = exports.CoreModule = exports.SmtpEmailClientModule = exports.CoreConfigurationService = exports.CoreLoggerService = void 0;
17
+ exports.CliCommandService = exports.RunningCommandLineModule = exports.EUploadMimeType = exports.TwitterAccountModule = exports.TwitterClientService = exports.SqliteDatabaseConfigurationService = exports.SqliteDatabaseModule = exports.ValidatedConfigurationService = exports.SmtpEmailClient = exports.TypeOrmConfigurationProvider = exports.DatabaseModule = exports.SwaggerGen = exports.CoreConfigModule = exports.CoreModule = exports.SmtpEmailClientModule = exports.CoreConfigurationService = void 0;
21
18
  /* eslint-disable unicorn/prefer-export-from */
22
19
  const RunningCommandLine_module_1 = require("./runningCommandLine/RunningCommandLine.module");
23
20
  Object.defineProperty(exports, "RunningCommandLineModule", { enumerable: true, get: function () { return RunningCommandLine_module_1.RunningCommandLineModule; } });
@@ -41,8 +38,6 @@ const SqliteDatabaseConfigurationService_1 = require("./database-sqlite/SqliteDa
41
38
  Object.defineProperty(exports, "SqliteDatabaseConfigurationService", { enumerable: true, get: function () { return SqliteDatabaseConfigurationService_1.SqliteDatabaseConfigurationService; } });
42
39
  const email_client_service_1 = require("./smtp-email-client/email-client.service");
43
40
  Object.defineProperty(exports, "SmtpEmailClient", { enumerable: true, get: function () { return email_client_service_1.SmtpEmailClient; } });
44
- const CoreLoggerService_1 = __importDefault(require("./logger/CoreLoggerService"));
45
- exports.CoreLoggerService = CoreLoggerService_1.default;
46
41
  const core_app_module_1 = require("./root-app/core-app.module");
47
42
  Object.defineProperty(exports, "CoreModule", { enumerable: true, get: function () { return core_app_module_1.CoreModule; } });
48
43
  const SwaggerGen_1 = require("./root-app/SwaggerGen");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,8FAAwF;AAmCpF,yGAnCI,oDAAwB,OAmCJ;AAlC5B,oF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,yGAbI,mDAAwB,OAaJ;AAZ5B,yFAAmF;AAiBrD,+FAjBtB,gDAAsB,OAiBc;AAhB5C,mHAA8G;AAiBlE,6GAjBpC,2EAAoC,OAiB4B;AAhBxE,mFAA6E;AAmBzE,qGAnBI,4CAAoB,OAmBJ;AAlBxB,6GAAwG;AAmBpG,mHAnBI,uEAAkC,OAmBJ;AAlBtC,mFAAyE;AAerE,gGAfI,sCAAe,OAeJ;AAdnB,gEAAsD;AASlD,2FATI,4BAAU,OASJ;AARd,sDAAiD;AAU7C,2FAVI,uBAAU,OAUJ;AATd,6FAAsF;AAgBlF,qGAhBI,6CAAoB,OAgBJ;AAfxB,uEAAiE;AAO7D,iGAPI,oCAAgB,OAOJ;AANpB,8EAAyE;AAkBrE,kGAlBI,qCAAiB,OAkBJ;AAGrB,wDAAsC;AACtC,mEAAiD;AACjD,qEAAmD;AACnD,uDAAqC;AACrC,gDAA8B;AAC9B,sDAAoC;AACpC,iDAA+B"}
@@ -5,4 +5,5 @@ export declare class LoggingConfigurationService extends ValidatedConfigurationS
5
5
  constructor(configService: ConfigService);
6
6
  get shouldLogForDevelopment(): boolean;
7
7
  get loggerName(): string;
8
+ get minLevel(): string;
8
9
  }
@@ -27,6 +27,9 @@ let LoggingConfigurationService = class LoggingConfigurationService extends Vali
27
27
  return (this.configService.get("logging.loggerName") ||
28
28
  "DefaultLogger");
29
29
  }
30
+ get minLevel() {
31
+ return (this.configService.get("logging.loggerMinLevel") || "debug");
32
+ }
30
33
  };
31
34
  __decorate([
32
35
  (0, class_validator_1.IsDefined)(),
@@ -40,6 +43,12 @@ __decorate([
40
43
  __metadata("design:type", String),
41
44
  __metadata("design:paramtypes", [])
42
45
  ], LoggingConfigurationService.prototype, "loggerName", null);
46
+ __decorate([
47
+ (0, class_validator_1.IsString)(),
48
+ (0, class_validator_1.IsOptional)(),
49
+ __metadata("design:type", String),
50
+ __metadata("design:paramtypes", [])
51
+ ], LoggingConfigurationService.prototype, "minLevel", null);
43
52
  LoggingConfigurationService = __decorate([
44
53
  (0, common_1.Injectable)(),
45
54
  __metadata("design:paramtypes", [config_1.ConfigService])
@@ -1 +1 @@
1
- {"version":3,"file":"LoggingConfigurationService.js","sourceRoot":"","sources":["../../src/logger/LoggingConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C,2CAA6C;AAC7C,qDAA+D;AAC/D,kGAA6F;AAGtF,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,6DAA6B;IACtD;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,uBAAuB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,iBAAiB,CAAC,KAAK,KAAK,CAAC;IACvE,CAAC;IAED,IAEI,UAAU;QACV,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAC;YACpD,eAAe,CAClB,CAAC;IACN,CAAC;CACJ,CAAA;AAdG;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,2BAAS,GAAE;;;0EAGX;AAED;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,GAAE;;;6DAMX;AAlBQ,2BAA2B;IADvC,IAAA,mBAAU,GAAE;qCAE0B,sBAAa;GADvC,2BAA2B,CAmBvC;AAnBY,kEAA2B"}
1
+ {"version":3,"file":"LoggingConfigurationService.js","sourceRoot":"","sources":["../../src/logger/LoggingConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C,2CAA6C;AAC7C,qDAA2E;AAC3E,kGAA6F;AAGtF,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,6DAA6B;IACtD;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,uBAAuB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,iBAAiB,CAAC,KAAK,KAAK,CAAC;IACvE,CAAC;IAED,IAEI,UAAU;QACV,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAC;YACpD,eAAe,CAClB,CAAC;IACN,CAAC;IAED,IAEI,QAAQ;QACR,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,IAAI,OAAO,CACtE,CAAC;IACN,CAAC;CACJ,CAAA;AAtBG;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,2BAAS,GAAE;;;0EAGX;AAED;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,GAAE;;;6DAMX;AAED;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;;2DAKZ;AA1BQ,2BAA2B;IADvC,IAAA,mBAAU,GAAE;qCAE0B,sBAAa;GADvC,2BAA2B,CA2BvC;AA3BY,kEAA2B"}
@@ -1,8 +1,10 @@
1
1
  declare const _default: (() => {
2
2
  nodeEnv: string | undefined;
3
3
  loggerName: string | undefined;
4
+ loggerMinLevel: string | undefined;
4
5
  }) & import("@nestjs/config").ConfigFactoryKeyHost<{
5
6
  nodeEnv: string | undefined;
6
7
  loggerName: string | undefined;
8
+ loggerMinLevel: string | undefined;
7
9
  }>;
8
10
  export default _default;
@@ -4,5 +4,6 @@ const config_1 = require("@nestjs/config");
4
4
  exports.default = (0, config_1.registerAs)("logging", () => ({
5
5
  nodeEnv: process.env.NODE_ENV,
6
6
  loggerName: process.env.LOGGER_NAME,
7
+ loggerMinLevel: process.env.LOGGER_MIN_LEVEL,
7
8
  }));
8
9
  //# sourceMappingURL=LoggingConfigurationVariables.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoggingConfigurationVariables.js","sourceRoot":"","sources":["../../src/logger/LoggingConfigurationVariables.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAE1C,kBAAe,IAAA,mBAAU,EAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ;IAC7B,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;CACtC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"LoggingConfigurationVariables.js","sourceRoot":"","sources":["../../src/logger/LoggingConfigurationVariables.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAE1C,kBAAe,IAAA,mBAAU,EAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ;IAC7B,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;IACnC,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;CAC/C,CAAC,CAAC,CAAC"}
@@ -12,22 +12,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.LoggerModule = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
14
  const config_1 = require("@nestjs/config");
15
- const CoreLoggerService_1 = __importDefault(require("./CoreLoggerService"));
16
15
  const LoggingConfigurationService_1 = require("./LoggingConfigurationService");
17
16
  const LoggingConfigurationVariables_1 = __importDefault(require("./LoggingConfigurationVariables"));
18
- const LoggingInterceptor_1 = require("./LoggingInterceptor");
19
17
  let LoggerModule = class LoggerModule {
20
18
  };
21
19
  LoggerModule = __decorate([
22
20
  (0, common_1.Global)(),
23
21
  (0, common_1.Module)({
24
22
  imports: [config_1.ConfigModule.forFeature(LoggingConfigurationVariables_1.default)],
25
- providers: [
26
- LoggingConfigurationService_1.LoggingConfigurationService,
27
- CoreLoggerService_1.default,
28
- LoggingInterceptor_1.LoggingInterceptor,
29
- ],
30
- exports: [CoreLoggerService_1.default, LoggingInterceptor_1.LoggingInterceptor],
23
+ providers: [LoggingConfigurationService_1.LoggingConfigurationService],
24
+ exports: [LoggingConfigurationService_1.LoggingConfigurationService],
31
25
  })
32
26
  ], LoggerModule);
33
27
  exports.LoggerModule = LoggerModule;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.module.js","sourceRoot":"","sources":["../../src/logger/logger.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA8C;AAC9C,2CAA4C;AAC5C,4EAAoD;AACpD,+EAA0E;AAC1E,oGAA8D;AAC9D,6DAAwD;AAYjD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,YAAY;IAVxB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,qBAAY,CAAC,UAAU,CAAC,uCAAe,CAAC,CAAC;QACnD,SAAS,EAAE;YACP,yDAA2B;YAC3B,2BAAiB;YACjB,uCAAkB;SACrB;QACD,OAAO,EAAE,CAAC,2BAAiB,EAAE,uCAAkB,CAAC;KACnD,CAAC;GACW,YAAY,CAAG;AAAf,oCAAY"}
1
+ {"version":3,"file":"logger.module.js","sourceRoot":"","sources":["../../src/logger/logger.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA8C;AAC9C,2CAA4C;AAC5C,+EAA0E;AAC1E,oGAA8D;AAQvD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,YAAY;IANxB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,qBAAY,CAAC,UAAU,CAAC,uCAAe,CAAC,CAAC;QACnD,SAAS,EAAE,CAAC,yDAA2B,CAAC;QACxC,OAAO,EAAE,CAAC,yDAA2B,CAAC;KACzC,CAAC;GACW,YAAY,CAAG;AAAf,oCAAY"}
@@ -1,15 +1,14 @@
1
1
  import { Repository } from "typeorm";
2
- import CoreLoggerService from "../logger/CoreLoggerService";
3
2
  import { Organisation } from "../organisation/entities/organisation.entity";
4
3
  import { PaymentSessionService } from "../payment-sessions/payment-session.service";
5
4
  import { OrganisationSubscriptionRecord } from "./entities/organisation-subscription.entity";
6
5
  import { SaveOrganisationSubscriptionRecordDto } from "./models/fulfillSubscriptionDto";
7
6
  export declare class OrganisationSubscriptionService {
8
- private readonly logger;
9
7
  private orgRepo;
10
8
  private orgSubRepository;
11
9
  private readonly paymentSessionService;
12
- constructor(logger: CoreLoggerService, orgRepo: Repository<Organisation>, orgSubRepository: Repository<OrganisationSubscriptionRecord>, paymentSessionService: PaymentSessionService);
10
+ private readonly logger;
11
+ constructor(orgRepo: Repository<Organisation>, orgSubRepository: Repository<OrganisationSubscriptionRecord>, paymentSessionService: PaymentSessionService);
13
12
  private notFoundMessage;
14
13
  findAllForOwnerOfOrg(orgUuid: string, currentUserId: number): Promise<OrganisationSubscriptionRecord[]>;
15
14
  findAllForOrg(orgUuid: string): Promise<OrganisationSubscriptionRecord[]>;
@@ -11,26 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
14
+ var OrganisationSubscriptionService_1;
17
15
  Object.defineProperty(exports, "__esModule", { value: true });
18
16
  exports.OrganisationSubscriptionService = void 0;
19
17
  const common_1 = require("@nestjs/common");
20
18
  const typeorm_1 = require("@nestjs/typeorm");
21
19
  const typeorm_2 = require("typeorm");
22
- const CoreLoggerService_1 = __importDefault(require("../logger/CoreLoggerService"));
23
20
  const RolesEnum_1 = require("../organisation/dto/RolesEnum");
24
21
  const organisation_entity_1 = require("../organisation/entities/organisation.entity");
25
22
  const payment_session_service_1 = require("../payment-sessions/payment-session.service");
26
23
  const organisation_subscription_entity_1 = require("./entities/organisation-subscription.entity");
27
- let OrganisationSubscriptionService = class OrganisationSubscriptionService {
28
- logger;
24
+ let OrganisationSubscriptionService = OrganisationSubscriptionService_1 = class OrganisationSubscriptionService {
29
25
  orgRepo;
30
26
  orgSubRepository;
31
27
  paymentSessionService;
32
- constructor(logger, orgRepo, orgSubRepository, paymentSessionService) {
33
- this.logger = logger;
28
+ logger = new common_1.Logger(OrganisationSubscriptionService_1.name);
29
+ constructor(orgRepo, orgSubRepository, paymentSessionService) {
34
30
  this.orgRepo = orgRepo;
35
31
  this.orgSubRepository = orgSubRepository;
36
32
  this.paymentSessionService = paymentSessionService;
@@ -134,12 +130,11 @@ let OrganisationSubscriptionService = class OrganisationSubscriptionService {
134
130
  result.affected > 0);
135
131
  }
136
132
  };
137
- OrganisationSubscriptionService = __decorate([
133
+ OrganisationSubscriptionService = OrganisationSubscriptionService_1 = __decorate([
138
134
  (0, common_1.Injectable)(),
139
- __param(1, (0, typeorm_1.InjectRepository)(organisation_entity_1.Organisation)),
140
- __param(2, (0, typeorm_1.InjectRepository)(organisation_subscription_entity_1.OrganisationSubscriptionRecord)),
141
- __metadata("design:paramtypes", [CoreLoggerService_1.default,
142
- typeorm_2.Repository,
135
+ __param(0, (0, typeorm_1.InjectRepository)(organisation_entity_1.Organisation)),
136
+ __param(1, (0, typeorm_1.InjectRepository)(organisation_subscription_entity_1.OrganisationSubscriptionRecord)),
137
+ __metadata("design:paramtypes", [typeorm_2.Repository,
143
138
  typeorm_2.Repository,
144
139
  payment_session_service_1.PaymentSessionService])
145
140
  ], OrganisationSubscriptionService);
@@ -1 +1 @@
1
- {"version":3,"file":"organisation-subscriptions.service.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA6D;AAC7D,6CAAiD;AACjD,qCAAmC;AACnC,oFAA4D;AAC5D,6DAAoD;AACpD,sFAA0E;AAC1E,yFAAkF;AAClF,kGAA2F;AAIpF,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAEnB;IAET;IAEA;IACS;IANrB,YACqB,MAAyB,EAElC,OAAiC,EAEjC,gBAA4D,EACnD,qBAA4C;QAL5C,WAAM,GAAN,MAAM,CAAmB;QAElC,YAAO,GAA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C,sBAAsB,CAAC;YACrC,oBAAoB,CAAC,0BAA0B;gBAC3C,SAAS,CAAC,0BAA0B,CAAC;YACzC,oBAAoB,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;YACvD,oBAAoB,CAAC,kBAAkB;gBACnC,SAAS,CAAC,kBAAkB,CAAC;YAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC3C,oBAAoB,CACvB,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACxB;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe;QACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;YAC9C,IAAI,EAAE,OAAO;SAChB,CAAC,CAAC;QAEH,OAAO,CACH,MAAM,CAAC,QAAQ,KAAK,SAAS;YAC7B,MAAM,CAAC,QAAQ,KAAK,IAAI;YACxB,MAAM,CAAC,QAAQ,GAAG,CAAC,CACtB,CAAC;IACN,CAAC;CACJ,CAAA;AAnJY,+BAA+B;IAD3C,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,0BAAgB,EAAC,kCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,iEAA8B,CAAC,CAAA;qCAHxB,2BAAiB;QAEzB,oBAAU;QAED,oBAAU;QACI,+CAAqB;GAPxD,+BAA+B,CAmJ3C;AAnJY,0EAA+B"}
1
+ {"version":3,"file":"organisation-subscriptions.service.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,6CAAiD;AACjD,qCAAmC;AACnC,6DAAoD;AACpD,sFAA0E;AAC1E,yFAAkF;AAClF,kGAA2F;AAIpF,IAAM,+BAA+B,uCAArC,MAAM,+BAA+B;IAI5B;IAEA;IACS;IANJ,MAAM,GAAG,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uB,CAAC;YACtC,oBAAoB,CAAC,iBAAiB;gBAClC,SAAS,CAAC,iBAAiB,CAAC;YAChC,oBAAoB,CAAC,sBAAsB;gBACvC,SAAS,CAAC,sBAAsB,CAAC;YACrC,oBAAoB,CAAC,0BAA0B;gBAC3C,SAAS,CAAC,0BAA0B,CAAC;YACzC,oBAAoB,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;YACvD,oBAAoB,CAAC,kBAAkB;gBACnC,SAAS,CAAC,kBAAkB,CAAC;YAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC3C,oBAAoB,CACvB,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACxB;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe;QACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;YAC9C,IAAI,EAAE,OAAO;SAChB,CAAC,CAAC;QAEH,OAAO,CACH,MAAM,CAAC,QAAQ,KAAK,SAAS;YAC7B,MAAM,CAAC,QAAQ,KAAK,IAAI;YACxB,MAAM,CAAC,QAAQ,GAAG,CAAC,CACtB,CAAC;IACN,CAAC;CACJ,CAAA;AAnJY,+BAA+B;IAD3C,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,0BAAgB,EAAC,kCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,iEAA8B,CAAC,CAAA;qCADhC,oBAAU;QAED,oBAAU;QACI,+CAAqB;GAPxD,+BAA+B,CAmJ3C;AAnJY,0EAA+B"}
@@ -0,0 +1,8 @@
1
+ import { RequestWithUser } from "../authz/RequestWithUser";
2
+ import { PaymentSessionService } from "./payment-session.service";
3
+ import { PaymentSessionReference } from "./payment-session.entity";
4
+ export declare class PaymentSessionReferenceController {
5
+ private readonly paymentReferenceService;
6
+ constructor(paymentReferenceService: PaymentSessionService);
7
+ findAll(request: RequestWithUser): Promise<PaymentSessionReference[]>;
8
+ }
@@ -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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PaymentSessionReferenceController = void 0;
16
+ /* eslint-disable sonarjs/no-duplicate-string */
17
+ const common_1 = require("@nestjs/common");
18
+ const swagger_1 = require("@nestjs/swagger");
19
+ const authz_1 = require("../authz");
20
+ const payment_session_service_1 = require("./payment-session.service");
21
+ const payment_session_entity_1 = require("./payment-session.entity");
22
+ let PaymentSessionReferenceController = class PaymentSessionReferenceController {
23
+ paymentReferenceService;
24
+ constructor(paymentReferenceService) {
25
+ this.paymentReferenceService = paymentReferenceService;
26
+ }
27
+ async findAll(
28
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
29
+ request) {
30
+ return this.paymentReferenceService.findAll();
31
+ }
32
+ };
33
+ __decorate([
34
+ (0, authz_1.MandatoryUserClaims)("read:all"),
35
+ (0, common_1.Get)(),
36
+ (0, swagger_1.ApiOkResponse)({ type: [payment_session_entity_1.PaymentSessionReference] }),
37
+ __param(0, (0, common_1.Request)()),
38
+ __metadata("design:type", Function),
39
+ __metadata("design:paramtypes", [Object]),
40
+ __metadata("design:returntype", Promise)
41
+ ], PaymentSessionReferenceController.prototype, "findAll", null);
42
+ PaymentSessionReferenceController = __decorate([
43
+ (0, common_1.UseGuards)(authz_1.DefaultAuthGuard, authz_1.ClaimsAuthorisationGuard),
44
+ (0, swagger_1.ApiBearerAuth)(),
45
+ (0, common_1.Controller)("payment-reference"),
46
+ (0, swagger_1.ApiTags)("Payment references"),
47
+ __metadata("design:paramtypes", [payment_session_service_1.PaymentSessionService])
48
+ ], PaymentSessionReferenceController);
49
+ exports.PaymentSessionReferenceController = PaymentSessionReferenceController;
50
+ //# sourceMappingURL=payment-session.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-session.controller.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,2CAAmE;AACnE,6CAAsE;AAEtE,oCAIkB;AAClB,uEAAgE;AAChE,qEAAiE;AAM1D,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAErB;IADrB,YACqB,uBAA8C;QAA9C,4BAAuB,GAAvB,uBAAuB,CAAuB;IAChE,CAAC;IAKE,AAAN,KAAK,CAAC,OAAO;IACT,6DAA6D;IAClD,OAAwB;QAEnC,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,CAAC;IAClD,CAAC;CACJ,CAAA;AANS;IAHL,IAAA,2BAAmB,EAAC,UAAU,CAAC;IAC/B,IAAA,YAAG,GAAE;IACL,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,CAAC,gDAAuB,CAAC,EAAC,CAAC;IAG5C,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;gEAGb;AAbQ,iCAAiC;IAJ7C,IAAA,kBAAS,EAAC,wBAAgB,EAAE,gCAAwB,CAAC;IACrD,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,mBAAmB,CAAC;IAC/B,IAAA,iBAAO,EAAC,oBAAoB,CAAC;qCAGoB,+CAAqB;GAF1D,iCAAiC,CAc7C;AAdY,8EAAiC"}
@@ -12,6 +12,7 @@ const core_app_module_1 = require("../root-app/core-app.module");
12
12
  const typeorm_1 = require("@nestjs/typeorm");
13
13
  const payment_session_entity_1 = require("./payment-session.entity");
14
14
  const payment_session_service_1 = require("./payment-session.service");
15
+ const payment_session_controller_1 = require("./payment-session.controller");
15
16
  let PaymentSessionModule = class PaymentSessionModule {
16
17
  };
17
18
  PaymentSessionModule = __decorate([
@@ -19,7 +20,7 @@ PaymentSessionModule = __decorate([
19
20
  imports: [typeorm_1.TypeOrmModule.forFeature([payment_session_entity_1.PaymentSessionReference]), core_app_module_1.CoreModule],
20
21
  providers: [payment_session_service_1.PaymentSessionService],
21
22
  exports: [payment_session_service_1.PaymentSessionService],
22
- controllers: [],
23
+ controllers: [payment_session_controller_1.PaymentSessionReferenceController],
23
24
  })
24
25
  ], PaymentSessionModule);
25
26
  exports.PaymentSessionModule = PaymentSessionModule;
@@ -1 +1 @@
1
- {"version":3,"file":"payment-session.module.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,iEAAuD;AACvD,6CAA8C;AAC9C,qEAAiE;AACjE,uEAAgE;AAQzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IANhC,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,gDAAuB,CAAC,CAAC,EAAE,4BAAU,CAAC;QAC1E,SAAS,EAAE,CAAC,+CAAqB,CAAC;QAClC,OAAO,EAAE,CAAC,+CAAqB,CAAC;QAChC,WAAW,EAAE,EAAE;KAClB,CAAC;GACW,oBAAoB,CAAG;AAAvB,oDAAoB"}
1
+ {"version":3,"file":"payment-session.module.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,iEAAuD;AACvD,6CAA8C;AAC9C,qEAAiE;AACjE,uEAAgE;AAChE,6EAA+E;AAQxE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IANhC,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,gDAAuB,CAAC,CAAC,EAAE,4BAAU,CAAC;QAC1E,SAAS,EAAE,CAAC,+CAAqB,CAAC;QAClC,OAAO,EAAE,CAAC,+CAAqB,CAAC;QAChC,WAAW,EAAE,CAAC,8DAAiC,CAAC;KACnD,CAAC;GACW,oBAAoB,CAAG;AAAvB,oDAAoB"}
@@ -3,6 +3,7 @@ import { PaymentSessionReference } from "./payment-session.entity";
3
3
  export declare class PaymentSessionService {
4
4
  private paymentReferenceRepository;
5
5
  constructor(paymentReferenceRepository: Repository<PaymentSessionReference>);
6
+ findAll(): Promise<PaymentSessionReference[]>;
6
7
  findSessionByUuid(uuid: string): Promise<PaymentSessionReference | undefined>;
7
8
  createSession(parameters: {
8
9
  organisationUuid?: string;
@@ -23,6 +23,9 @@ let PaymentSessionService = class PaymentSessionService {
23
23
  constructor(paymentReferenceRepository) {
24
24
  this.paymentReferenceRepository = paymentReferenceRepository;
25
25
  }
26
+ async findAll() {
27
+ return await this.paymentReferenceRepository.find();
28
+ }
26
29
  async findSessionByUuid(uuid) {
27
30
  const result = await this.paymentReferenceRepository.findOne({
28
31
  where: {
@@ -1 +1 @@
1
- {"version":3,"file":"payment-session.service.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0C;AAC1C,6CAAiD;AACjD,qCAAmC;AACnC,qEAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAGlB;IAFZ,YAEY,0BAA+D;QAA/D,+BAA0B,GAA1B,0BAA0B,CAAqC;IACxE,CAAC;IAEJ,KAAK,CAAC,iBAAiB,CACnB,IAAY;QAEZ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE;gBACH,IAAI;aACP;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,EAAE;YACT,OAAO,SAAS,CAAC;SACpB;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,UAGnB;QACG,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC;YAC5D,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;YAC7C,UAAU,EAAE,UAAU,CAAC,UAAU;SACpC,CAAC,CAAC;QAEH,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AAhCY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,0BAAgB,EAAC,gDAAuB,CAAC,CAAA;qCACN,oBAAU;GAHzC,qBAAqB,CAgCjC;AAhCY,sDAAqB"}
1
+ {"version":3,"file":"payment-session.service.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0C;AAC1C,6CAAiD;AACjD,qCAAmC;AACnC,qEAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAGlB;IAFZ,YAEY,0BAA+D;QAA/D,+BAA0B,GAA1B,0BAA0B,CAAqC;IACxE,CAAC;IAEJ,KAAK,CAAC,OAAO;QACT,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,iBAAiB,CACnB,IAAY;QAEZ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE;gBACH,IAAI;aACP;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,EAAE;YACT,OAAO,SAAS,CAAC;SACpB;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,UAGnB;QACG,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC;YAC5D,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;YAC7C,UAAU,EAAE,UAAU,CAAC,UAAU;SACpC,CAAC,CAAC;QAEH,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AApCY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,0BAAgB,EAAC,gDAAuB,CAAC,CAAA;qCACN,oBAAU;GAHzC,qBAAqB,CAoCjC;AApCY,sDAAqB"}
@@ -3,14 +3,13 @@ import { AccessToken } from "../authz/AccessToken";
3
3
  import { RequestPerson } from "../authz/RequestWithUser";
4
4
  import { AuthZClientService } from "../authzclient/authz.service";
5
5
  import { UserProfile } from "../authzclient/UserProfile.dto";
6
- import CoreLoggerService from "../logger/CoreLoggerService";
7
6
  import { UpdatePersonDto } from "./dto/update-person.dto";
8
7
  import { Person } from "./entities/person.entity";
9
8
  export declare class PersonService {
10
9
  private repository;
11
- private logger;
12
10
  private authzClient;
13
- constructor(repository: Repository<Person>, logger: CoreLoggerService, authzClient: AuthZClientService);
11
+ private readonly logger;
12
+ constructor(repository: Repository<Person>, authzClient: AuthZClientService);
14
13
  getAuth0User(payload: AccessToken, rawAccessToken: string): Promise<UserProfile | undefined>;
15
14
  validateUser(payload: AccessToken, rawAccessToken: string): Promise<Person | undefined>;
16
15
  updatePersonFromAuth0(person: Person, auth0User: UserProfile): Promise<Person>;