@darraghor/nest-backend-libs 2.23.1 → 2.24.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/authorization/authz.module.js +40 -0
- package/dist/authorization/authz.module.js.map +1 -0
- package/dist/{authz → authorization/config}/AuthConfigurationService.d.ts +1 -1
- package/dist/{authz → authorization/config}/AuthConfigurationService.js +12 -15
- package/dist/authorization/config/AuthConfigurationService.js.map +1 -0
- package/dist/authorization/config/AuthConfigurationVariables.js +6 -0
- package/dist/authorization/config/AuthConfigurationVariables.js.map +1 -0
- package/dist/{authz → authorization/guards}/ApiKeyAuthGuard.js +5 -8
- package/dist/authorization/guards/ApiKeyAuthGuard.js.map +1 -0
- package/dist/{authz → authorization/guards}/ClaimsAuthorisationGuard.js +6 -9
- package/dist/authorization/guards/ClaimsAuthorisationGuard.js.map +1 -0
- package/dist/{authz → authorization/guards}/DefaultAuthGuard.js +5 -8
- package/dist/authorization/guards/DefaultAuthGuard.js.map +1 -0
- package/dist/authorization/guards/MandatoryUserClaims.decorator.js +4 -0
- package/dist/authorization/guards/MandatoryUserClaims.decorator.js.map +1 -0
- package/dist/{authz → authorization}/isOwnerOrThrow.js +3 -7
- package/dist/authorization/isOwnerOrThrow.js.map +1 -0
- package/dist/authorization/models/AccessToken.js +2 -0
- package/dist/authorization/models/AccessToken.js.map +1 -0
- package/dist/{authz → authorization/models}/RequestWithUser.d.ts +1 -1
- package/dist/authorization/models/RequestWithUser.js +2 -0
- package/dist/authorization/models/RequestWithUser.js.map +1 -0
- package/dist/authorization/models/SuperUserClaims.js +6 -0
- package/dist/authorization/models/SuperUserClaims.js.map +1 -0
- package/dist/{authz → authorization/services}/UserValidation.service.d.ts +6 -8
- package/dist/{authz → authorization/services}/UserValidation.service.js +67 -52
- package/dist/authorization/services/UserValidation.service.js.map +1 -0
- package/dist/{authz → authorization/strategies}/apikeystrategy.d.ts +2 -2
- package/dist/{authz → authorization/strategies}/apikeystrategy.js +8 -11
- package/dist/authorization/strategies/apikeystrategy.js.map +1 -0
- package/dist/{authz → authorization/strategies}/authzstrategy.d.ts +4 -4
- package/dist/{authz → authorization/strategies}/authzstrategy.js +15 -18
- package/dist/authorization/strategies/authzstrategy.js.map +1 -0
- package/dist/authzclient/AuthClientConfigurationService.d.ts +1 -1
- package/dist/authzclient/AuthClientConfigurationService.js +10 -13
- package/dist/authzclient/AuthClientConfigurationService.js.map +1 -1
- package/dist/authzclient/AuthClientConfigurationVariables.js +2 -4
- package/dist/authzclient/AuthClientConfigurationVariables.js.map +1 -1
- package/dist/authzclient/AuthzClientProvider.d.ts +3 -3
- package/dist/authzclient/AuthzClientProvider.js +6 -8
- package/dist/authzclient/AuthzClientProvider.js.map +1 -1
- package/dist/authzclient/UserProfile.dto.js +1 -5
- package/dist/authzclient/UserProfile.dto.js.map +1 -1
- package/dist/authzclient/authz-client.module.js +13 -19
- package/dist/authzclient/authz-client.module.js.map +1 -1
- package/dist/authzclient/authz.service.d.ts +2 -2
- package/dist/authzclient/authz.service.js +6 -10
- package/dist/authzclient/authz.service.js.map +1 -1
- package/dist/cli/cli.js +4 -29
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/commands/WriteApiClientCommand.js +6 -13
- package/dist/cli/commands/WriteApiClientCommand.js.map +1 -1
- package/dist/configuration/ValidatedConfigurationService.js +5 -8
- package/dist/configuration/ValidatedConfigurationService.js.map +1 -1
- package/dist/core-config/CoreConfig.module.js +9 -15
- package/dist/core-config/CoreConfig.module.js.map +1 -1
- package/dist/core-config/CoreConfigurationService.d.ts +2 -1
- package/dist/core-config/CoreConfigurationService.js +33 -27
- package/dist/core-config/CoreConfigurationService.js.map +1 -1
- package/dist/core-config/CoreConfigurationVariables.d.ts +2 -0
- package/dist/core-config/CoreConfigurationVariables.js +3 -4
- package/dist/core-config/CoreConfigurationVariables.js.map +1 -1
- package/dist/database-postgres/PostgresDatabase.module.js +11 -14
- package/dist/database-postgres/PostgresDatabase.module.js.map +1 -1
- package/dist/database-postgres/PostgresDatabaseConfigurationService.js +5 -8
- package/dist/database-postgres/PostgresDatabaseConfigurationService.js.map +1 -1
- package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js +7 -13
- package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js.map +1 -1
- package/dist/database-postgres/PostrgresMigrationsHelper.js +6 -11
- package/dist/database-postgres/PostrgresMigrationsHelper.js.map +1 -1
- package/dist/database-sqlite/SqliteDatabase.module.js +11 -14
- package/dist/database-sqlite/SqliteDatabase.module.js.map +1 -1
- package/dist/database-sqlite/SqliteDatabaseConfigurationService.js +5 -8
- package/dist/database-sqlite/SqliteDatabaseConfigurationService.js.map +1 -1
- package/dist/database-sqlite/SqliteMigrationsHelper.js +6 -11
- package/dist/database-sqlite/SqliteMigrationsHelper.js.map +1 -1
- package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js +8 -14
- package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js.map +1 -1
- package/dist/health/Health.controller.js +15 -18
- package/dist/health/Health.controller.js.map +1 -1
- package/dist/health/Health.module.js +8 -11
- package/dist/health/Health.module.js.map +1 -1
- package/dist/index.d.ts +48 -24
- package/dist/index.js +54 -58
- package/dist/index.js.map +1 -1
- package/dist/invitations/InvitationConfigurationService.d.ts +1 -1
- package/dist/invitations/InvitationConfigurationService.js +10 -13
- package/dist/invitations/InvitationConfigurationService.js.map +1 -1
- package/dist/invitations/InvitationConfigurationVariables.js +2 -4
- package/dist/invitations/InvitationConfigurationVariables.js.map +1 -1
- package/dist/invitations/dto/create-invitation.dto.js +5 -9
- package/dist/invitations/dto/create-invitation.dto.js.map +1 -1
- package/dist/invitations/entities/invitation.entity.d.ts +3 -2
- package/dist/invitations/entities/invitation.entity.js +33 -36
- package/dist/invitations/entities/invitation.entity.js.map +1 -1
- package/dist/invitations/invitation.controller.d.ts +4 -4
- package/dist/invitations/invitation.controller.js +21 -24
- package/dist/invitations/invitation.controller.js.map +1 -1
- package/dist/invitations/invitation.module.js +21 -27
- package/dist/invitations/invitation.module.js.map +1 -1
- package/dist/invitations/invitation.service.d.ts +7 -7
- package/dist/invitations/invitation.service.js +34 -37
- package/dist/invitations/invitation.service.js.map +1 -1
- package/dist/logger/LoggingConfigurationService.d.ts +1 -1
- package/dist/logger/LoggingConfigurationService.js +16 -19
- package/dist/logger/LoggingConfigurationService.js.map +1 -1
- package/dist/logger/LoggingConfigurationVariables.js +2 -4
- package/dist/logger/LoggingConfigurationVariables.js.map +1 -1
- package/dist/logger/logger.module.js +10 -16
- package/dist/logger/logger.module.js.map +1 -1
- package/dist/organisation/dto/RolesEnum.js +2 -5
- package/dist/organisation/dto/RolesEnum.js.map +1 -1
- package/dist/organisation/dto/create-organisation.dto.d.ts +1 -1
- package/dist/organisation/dto/create-organisation.dto.js +7 -11
- package/dist/organisation/dto/create-organisation.dto.js.map +1 -1
- package/dist/organisation/dto/update-organisation.dto.d.ts +1 -1
- package/dist/organisation/dto/update-organisation.dto.js +3 -7
- package/dist/organisation/dto/update-organisation.dto.js.map +1 -1
- package/dist/organisation/entities/member-role.entity.d.ts +3 -2
- package/dist/organisation/entities/member-role.entity.js +20 -23
- package/dist/organisation/entities/member-role.entity.js.map +1 -1
- package/dist/organisation/entities/organisation.entity.d.ts +2 -2
- package/dist/organisation/entities/organisation.entity.js +28 -31
- package/dist/organisation/entities/organisation.entity.js.map +1 -1
- package/dist/organisation/organisation.controller.d.ts +5 -5
- package/dist/organisation/organisation.controller.js +30 -33
- package/dist/organisation/organisation.controller.js.map +1 -1
- package/dist/organisation/organisation.module.js +18 -21
- package/dist/organisation/organisation.module.js.map +1 -1
- package/dist/organisation/organisation.service.d.ts +3 -3
- package/dist/organisation/organisation.service.js +21 -24
- package/dist/organisation/organisation.service.js.map +1 -1
- package/dist/organisation-memberships/dtos/create-membership-dto.js +4 -8
- package/dist/organisation-memberships/dtos/create-membership-dto.js.map +1 -1
- package/dist/organisation-memberships/entities/organisation-membership.entity.d.ts +4 -4
- package/dist/organisation-memberships/entities/organisation-membership.entity.js +40 -43
- package/dist/organisation-memberships/entities/organisation-membership.entity.js.map +1 -1
- package/dist/organisation-memberships/organisation-memberships.controller.d.ts +6 -6
- package/dist/organisation-memberships/organisation-memberships.controller.js +29 -32
- package/dist/organisation-memberships/organisation-memberships.controller.js.map +1 -1
- package/dist/organisation-memberships/organisation-memberships.module.js +16 -19
- package/dist/organisation-memberships/organisation-memberships.module.js.map +1 -1
- package/dist/organisation-memberships/organisation-memberships.service.d.ts +3 -3
- package/dist/organisation-memberships/organisation-memberships.service.js +20 -23
- package/dist/organisation-memberships/organisation-memberships.service.js.map +1 -1
- package/dist/organisation-subscriptions/all-subscriptions.controller.d.ts +2 -2
- package/dist/organisation-subscriptions/all-subscriptions.controller.js +16 -17
- package/dist/organisation-subscriptions/all-subscriptions.controller.js.map +1 -1
- package/dist/organisation-subscriptions/entities/organisation-subscription.entity.d.ts +3 -2
- package/dist/organisation-subscriptions/entities/organisation-subscription.entity.js +40 -43
- package/dist/organisation-subscriptions/entities/organisation-subscription.entity.js.map +1 -1
- package/dist/organisation-subscriptions/models/fulfillSubscriptionDto.js +25 -29
- package/dist/organisation-subscriptions/models/fulfillSubscriptionDto.js.map +1 -1
- package/dist/organisation-subscriptions/organisation-subscriptions.controller.d.ts +5 -5
- package/dist/organisation-subscriptions/organisation-subscriptions.controller.js +27 -31
- package/dist/organisation-subscriptions/organisation-subscriptions.controller.js.map +1 -1
- package/dist/organisation-subscriptions/organisation-subscriptions.module.js +18 -21
- package/dist/organisation-subscriptions/organisation-subscriptions.module.js.map +1 -1
- package/dist/organisation-subscriptions/organisation-subscriptions.service.d.ts +4 -4
- package/dist/organisation-subscriptions/organisation-subscriptions.service.js +21 -24
- package/dist/organisation-subscriptions/organisation-subscriptions.service.js.map +1 -1
- package/dist/payment-sessions/payment-session.controller.d.ts +3 -3
- package/dist/payment-sessions/payment-session.controller.js +17 -18
- package/dist/payment-sessions/payment-session.controller.js.map +1 -1
- package/dist/payment-sessions/payment-session.entity.js +14 -17
- package/dist/payment-sessions/payment-session.entity.js.map +1 -1
- package/dist/payment-sessions/payment-session.module.js +11 -14
- package/dist/payment-sessions/payment-session.module.js.map +1 -1
- package/dist/payment-sessions/payment-session.service.d.ts +1 -1
- package/dist/payment-sessions/payment-session.service.js +8 -11
- package/dist/payment-sessions/payment-session.service.js.map +1 -1
- package/dist/root-app/SwaggerGen.d.ts +1 -1
- package/dist/root-app/SwaggerGen.js +14 -20
- package/dist/root-app/SwaggerGen.js.map +1 -1
- package/dist/root-app/app.controller.d.ts +2 -2
- package/dist/root-app/app.controller.js +16 -19
- package/dist/root-app/app.controller.js.map +1 -1
- package/dist/root-app/app.service.js +3 -6
- package/dist/root-app/app.service.js.map +1 -1
- package/dist/root-app/core-app.module.js +51 -45
- package/dist/root-app/core-app.module.js.map +1 -1
- package/dist/root-app/models/QueueItemDto.js +7 -11
- package/dist/root-app/models/QueueItemDto.js.map +1 -1
- package/dist/root-app/models/boolean-result.js +3 -7
- package/dist/root-app/models/boolean-result.js.map +1 -1
- package/dist/root-app/notfound.interceptor.js +6 -9
- package/dist/root-app/notfound.interceptor.js.map +1 -1
- package/dist/runningCommandLine/CliCommandService.js +7 -13
- package/dist/runningCommandLine/CliCommandService.js.map +1 -1
- package/dist/runningCommandLine/RunningCommandLine.module.js +7 -10
- package/dist/runningCommandLine/RunningCommandLine.module.js.map +1 -1
- package/dist/smtp-email-client/EmailConfigurationService.d.ts +1 -1
- package/dist/smtp-email-client/EmailConfigurationService.js +24 -27
- package/dist/smtp-email-client/EmailConfigurationService.js.map +1 -1
- package/dist/smtp-email-client/EmailConfigurationVariables.js +2 -4
- package/dist/smtp-email-client/EmailConfigurationVariables.js.map +1 -1
- package/dist/smtp-email-client/EmailTransporterProvider.d.ts +1 -1
- package/dist/smtp-email-client/EmailTransporterProvider.js +5 -8
- package/dist/smtp-email-client/EmailTransporterProvider.js.map +1 -1
- package/dist/smtp-email-client/email-client.service.d.ts +2 -2
- package/dist/smtp-email-client/email-client.service.js +13 -16
- package/dist/smtp-email-client/email-client.service.js.map +1 -1
- package/dist/smtp-email-client/email.controller.d.ts +3 -3
- package/dist/smtp-email-client/email.controller.js +24 -25
- package/dist/smtp-email-client/email.controller.js.map +1 -1
- package/dist/smtp-email-client/email.entity.js +32 -35
- package/dist/smtp-email-client/email.entity.js.map +1 -1
- package/dist/smtp-email-client/smtp-email-client.module.js +22 -28
- package/dist/smtp-email-client/smtp-email-client.module.js.map +1 -1
- package/dist/smtp-email-client/smtp-email-handler.d.ts +2 -2
- package/dist/smtp-email-client/smtp-email-handler.js +18 -21
- package/dist/smtp-email-client/smtp-email-handler.js.map +1 -1
- package/dist/stripe-client/StripeClientConfigurationService.d.ts +1 -1
- package/dist/stripe-client/StripeClientConfigurationService.js +14 -17
- package/dist/stripe-client/StripeClientConfigurationService.js.map +1 -1
- package/dist/stripe-client/StripeClientProvider.d.ts +1 -1
- package/dist/stripe-client/StripeClientProvider.js +5 -11
- package/dist/stripe-client/StripeClientProvider.js.map +1 -1
- package/dist/stripe-client/StripeConfigurationVariables.js +2 -4
- package/dist/stripe-client/StripeConfigurationVariables.js.map +1 -1
- package/dist/stripe-client/controllers/stripe-checkout-controller.d.ts +4 -4
- package/dist/stripe-client/controllers/stripe-checkout-controller.js +17 -20
- package/dist/stripe-client/controllers/stripe-checkout-controller.js.map +1 -1
- package/dist/stripe-client/controllers/stripe-customer-portal-controller.d.ts +4 -4
- package/dist/stripe-client/controllers/stripe-customer-portal-controller.js +18 -21
- package/dist/stripe-client/controllers/stripe-customer-portal-controller.js.map +1 -1
- package/dist/stripe-client/controllers/stripe-events-controller.d.ts +3 -3
- package/dist/stripe-client/controllers/stripe-events-controller.js +20 -21
- package/dist/stripe-client/controllers/stripe-events-controller.js.map +1 -1
- package/dist/stripe-client/controllers/stripe-unauthenticated-checkout-controller.d.ts +3 -3
- package/dist/stripe-client/controllers/stripe-unauthenticated-checkout-controller.js +13 -16
- package/dist/stripe-client/controllers/stripe-unauthenticated-checkout-controller.js.map +1 -1
- package/dist/stripe-client/controllers/stripe-webhook-controller.d.ts +2 -2
- package/dist/stripe-client/controllers/stripe-webhook-controller.js +27 -28
- package/dist/stripe-client/controllers/stripe-webhook-controller.js.map +1 -1
- package/dist/stripe-client/entities/stripe-checkout-event.entity.js +19 -22
- package/dist/stripe-client/entities/stripe-checkout-event.entity.js.map +1 -1
- package/dist/stripe-client/models/StripeCheckoutLineItem.js +7 -11
- package/dist/stripe-client/models/StripeCheckoutLineItem.js.map +1 -1
- package/dist/stripe-client/models/StripeCheckoutSessionRequestDto.d.ts +1 -1
- package/dist/stripe-client/models/StripeCheckoutSessionRequestDto.js +17 -21
- package/dist/stripe-client/models/StripeCheckoutSessionRequestDto.js.map +1 -1
- package/dist/stripe-client/models/StripeCheckoutSessionResponseDto.js +4 -8
- package/dist/stripe-client/models/StripeCheckoutSessionResponseDto.js.map +1 -1
- package/dist/stripe-client/models/StripeCustomerPortalRequestDto.js +9 -13
- package/dist/stripe-client/models/StripeCustomerPortalRequestDto.js.map +1 -1
- package/dist/stripe-client/models/StripeCustomerPortalResponseDto.js +3 -7
- package/dist/stripe-client/models/StripeCustomerPortalResponseDto.js.map +1 -1
- package/dist/stripe-client/models/UrlResponseDto.js +1 -5
- package/dist/stripe-client/models/UrlResponseDto.js.map +1 -1
- package/dist/stripe-client/services/queued-payment-event.handler.d.ts +3 -3
- package/dist/stripe-client/services/queued-payment-event.handler.js +22 -28
- package/dist/stripe-client/services/queued-payment-event.handler.js.map +1 -1
- package/dist/stripe-client/services/stripe-checkout.service.d.ts +9 -9
- package/dist/stripe-client/services/stripe-checkout.service.js +20 -26
- package/dist/stripe-client/services/stripe-checkout.service.js.map +1 -1
- package/dist/stripe-client/services/stripe-webhook-handler.service.d.ts +1 -1
- package/dist/stripe-client/services/stripe-webhook-handler.service.js +12 -18
- package/dist/stripe-client/services/stripe-webhook-handler.service.js.map +1 -1
- package/dist/stripe-client/stripe-account.module.js +37 -43
- package/dist/stripe-client/stripe-account.module.js.map +1 -1
- package/dist/testing/preRun.js +1 -3
- package/dist/testing/preRun.js.map +1 -1
- package/dist/twitter-client/TwitterClientConfigurationService.d.ts +1 -1
- package/dist/twitter-client/TwitterClientConfigurationService.js +16 -19
- package/dist/twitter-client/TwitterClientConfigurationService.js.map +1 -1
- package/dist/twitter-client/TwitterClientProvider.d.ts +2 -2
- package/dist/twitter-client/TwitterClientProvider.js +5 -8
- package/dist/twitter-client/TwitterClientProvider.js.map +1 -1
- package/dist/twitter-client/TwitterConfigurationVariables.js +2 -4
- package/dist/twitter-client/TwitterConfigurationVariables.js.map +1 -1
- package/dist/twitter-client/services/twitter-client.service.d.ts +1 -1
- package/dist/twitter-client/services/twitter-client.service.js +6 -10
- package/dist/twitter-client/services/twitter-client.service.js.map +1 -1
- package/dist/twitter-client/twitter-account.module.js +14 -20
- package/dist/twitter-client/twitter-account.module.js.map +1 -1
- package/dist/user-api-key/CreateApiKeyDto.js +6 -9
- package/dist/user-api-key/CreateApiKeyDto.js.map +1 -1
- package/dist/user-api-key/user-apikey.controller.d.ts +5 -5
- package/dist/user-api-key/user-apikey.controller.js +30 -35
- package/dist/user-api-key/user-apikey.controller.js.map +1 -1
- package/dist/user-api-key/user-apikey.module.js +11 -14
- package/dist/user-api-key/user-apikey.module.js.map +1 -1
- package/dist/user-api-key/user-apikey.service.d.ts +1 -1
- package/dist/user-api-key/user-apikey.service.js +14 -17
- package/dist/user-api-key/user-apikey.service.js.map +1 -1
- package/dist/user-api-key/userApiKey.entity.d.ts +3 -2
- package/dist/user-api-key/userApiKey.entity.js +22 -25
- package/dist/user-api-key/userApiKey.entity.js.map +1 -1
- package/dist/user-internal/dto/create-user.dto.js +1 -5
- package/dist/user-internal/dto/create-user.dto.js.map +1 -1
- package/dist/user-internal/dto/update-user.dto.d.ts +1 -1
- package/dist/user-internal/dto/update-user.dto.js +3 -7
- package/dist/user-internal/dto/update-user.dto.js.map +1 -1
- package/dist/user-internal/dto/userResponseDto.d.ts +1 -1
- package/dist/user-internal/dto/userResponseDto.js +21 -25
- package/dist/user-internal/dto/userResponseDto.js.map +1 -1
- package/dist/user-internal/entities/user.entity.d.ts +2 -2
- package/dist/user-internal/entities/user.entity.js +47 -50
- package/dist/user-internal/entities/user.entity.js.map +1 -1
- package/dist/user-internal/user-internal.module.js +11 -12
- package/dist/user-internal/user-internal.module.js.map +1 -1
- package/dist/{user-external → user-internal}/user.controller.d.ts +6 -6
- package/dist/{user-external → user-internal}/user.controller.js +38 -38
- package/dist/user-internal/user.controller.js.map +1 -0
- package/dist/user-internal/user.service.d.ts +3 -3
- package/dist/user-internal/user.service.js +12 -15
- package/dist/user-internal/user.service.js.map +1 -1
- package/package.json +8 -2
- package/dist/authz/AccessToken.js +0 -3
- package/dist/authz/AccessToken.js.map +0 -1
- package/dist/authz/ApiKeyAuthGuard.js.map +0 -1
- package/dist/authz/AuthConfigurationService.js.map +0 -1
- package/dist/authz/AuthConfigurationVariables.js +0 -8
- package/dist/authz/AuthConfigurationVariables.js.map +0 -1
- package/dist/authz/ClaimsAuthorisationGuard.js.map +0 -1
- package/dist/authz/DefaultAuthGuard.js.map +0 -1
- package/dist/authz/MandatoryUserClaims.decorator.js +0 -8
- package/dist/authz/MandatoryUserClaims.decorator.js.map +0 -1
- package/dist/authz/RequestWithUser.js +0 -3
- package/dist/authz/RequestWithUser.js.map +0 -1
- package/dist/authz/SuperUserClaims.js +0 -9
- package/dist/authz/SuperUserClaims.js.map +0 -1
- package/dist/authz/UserValidation.service.js.map +0 -1
- package/dist/authz/apikeystrategy.js.map +0 -1
- package/dist/authz/authz.module.js +0 -48
- package/dist/authz/authz.module.js.map +0 -1
- package/dist/authz/authzstrategy.js.map +0 -1
- package/dist/authz/index.d.ts +0 -10
- package/dist/authz/index.js +0 -22
- package/dist/authz/index.js.map +0 -1
- package/dist/authz/isOwnerOrThrow.js.map +0 -1
- package/dist/invitations/index.d.ts +0 -4
- package/dist/invitations/index.js +0 -12
- package/dist/invitations/index.js.map +0 -1
- package/dist/organisation/index.d.ts +0 -1
- package/dist/organisation/index.js +0 -6
- package/dist/organisation/index.js.map +0 -1
- package/dist/organisation-memberships/index.d.ts +0 -2
- package/dist/organisation-memberships/index.js +0 -8
- package/dist/organisation-memberships/index.js.map +0 -1
- package/dist/organisation-subscriptions/index.d.ts +0 -3
- package/dist/organisation-subscriptions/index.js +0 -10
- package/dist/organisation-subscriptions/index.js.map +0 -1
- package/dist/stripe-client/index.d.ts +0 -7
- package/dist/stripe-client/index.js +0 -18
- package/dist/stripe-client/index.js.map +0 -1
- package/dist/user-api-key/index.d.ts +0 -3
- package/dist/user-api-key/index.js +0 -10
- package/dist/user-api-key/index.js.map +0 -1
- package/dist/user-external/index.d.ts +0 -1
- package/dist/user-external/index.js +0 -6
- package/dist/user-external/index.js.map +0 -1
- package/dist/user-external/user-external.module.d.ts +0 -2
- package/dist/user-external/user-external.module.js +0 -22
- package/dist/user-external/user-external.module.js.map +0 -1
- package/dist/user-external/user.controller.js.map +0 -1
- package/dist/user-internal/index.d.ts +0 -2
- package/dist/user-internal/index.js +0 -8
- package/dist/user-internal/index.js.map +0 -1
- /package/dist/{authz → authorization}/authz.module.d.ts +0 -0
- /package/dist/{authz → authorization/config}/AuthConfigurationVariables.d.ts +0 -0
- /package/dist/{authz → authorization/guards}/ApiKeyAuthGuard.d.ts +0 -0
- /package/dist/{authz → authorization/guards}/ClaimsAuthorisationGuard.d.ts +0 -0
- /package/dist/{authz → authorization/guards}/DefaultAuthGuard.d.ts +0 -0
- /package/dist/{authz → authorization/guards}/MandatoryUserClaims.decorator.d.ts +0 -0
- /package/dist/{authz → authorization}/isOwnerOrThrow.d.ts +0 -0
- /package/dist/{authz → authorization/models}/AccessToken.d.ts +0 -0
- /package/dist/{authz → authorization/models}/SuperUserClaims.d.ts +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,14 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PaymentSessionReferenceController = void 0;
|
|
16
13
|
/* eslint-disable sonarjs/no-duplicate-string */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
import { Controller, Request, UseGuards, Get } from "@nestjs/common";
|
|
15
|
+
import { ApiBearerAuth, ApiOkResponse, ApiTags } from "@nestjs/swagger";
|
|
16
|
+
import { PaymentSessionService } from "./payment-session.service.js";
|
|
17
|
+
import { PaymentSessionReference } from "./payment-session.entity.js";
|
|
18
|
+
import { ClaimsAuthorisationGuard } from "../authorization/guards/ClaimsAuthorisationGuard.js";
|
|
19
|
+
import { DefaultAuthGuard } from "../authorization/guards/DefaultAuthGuard.js";
|
|
20
|
+
import { MandatoryUserClaims } from "../authorization/guards/MandatoryUserClaims.decorator.js";
|
|
22
21
|
let PaymentSessionReferenceController = class PaymentSessionReferenceController {
|
|
23
22
|
paymentReferenceService;
|
|
24
23
|
constructor(paymentReferenceService) {
|
|
@@ -31,20 +30,20 @@ let PaymentSessionReferenceController = class PaymentSessionReferenceController
|
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
32
|
__decorate([
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
__param(0,
|
|
33
|
+
MandatoryUserClaims("read:all"),
|
|
34
|
+
Get(),
|
|
35
|
+
ApiOkResponse({ type: [PaymentSessionReference] }),
|
|
36
|
+
__param(0, Request()),
|
|
38
37
|
__metadata("design:type", Function),
|
|
39
38
|
__metadata("design:paramtypes", [Object]),
|
|
40
39
|
__metadata("design:returntype", Promise)
|
|
41
40
|
], PaymentSessionReferenceController.prototype, "findAll", null);
|
|
42
41
|
PaymentSessionReferenceController = __decorate([
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
__metadata("design:paramtypes", [
|
|
42
|
+
UseGuards(DefaultAuthGuard, ClaimsAuthorisationGuard),
|
|
43
|
+
ApiBearerAuth(),
|
|
44
|
+
Controller("payment-reference"),
|
|
45
|
+
ApiTags("Payment references"),
|
|
46
|
+
__metadata("design:paramtypes", [PaymentSessionService])
|
|
48
47
|
], PaymentSessionReferenceController);
|
|
49
|
-
|
|
48
|
+
export { PaymentSessionReferenceController };
|
|
50
49
|
//# sourceMappingURL=payment-session.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-session.controller.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment-session.controller.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAgD;AAChD,OAAO,EAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAC,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,gBAAgB,EAAC,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAMtF,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,mBAAmB,CAAC,UAAU,CAAC;IAC/B,GAAG,EAAE;IACL,aAAa,CAAC,EAAC,IAAI,EAAE,CAAC,uBAAuB,CAAC,EAAC,CAAC;IAG5C,WAAA,OAAO,EAAE,CAAA;;;;gEAGb;AAbQ,iCAAiC;IAJ7C,SAAS,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IACrD,aAAa,EAAE;IACf,UAAU,CAAC,mBAAmB,CAAC;IAC/B,OAAO,CAAC,oBAAoB,CAAC;qCAGoB,qBAAqB;GAF1D,iCAAiC,CAc7C;SAdY,iCAAiC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,10 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
10
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
11
|
+
import { Column, CreateDateColumn, Entity, Generated, Index, PrimaryGeneratedColumn, } from "typeorm";
|
|
15
12
|
let PaymentSessionReference = class PaymentSessionReference {
|
|
16
13
|
id;
|
|
17
14
|
uuid;
|
|
@@ -20,35 +17,35 @@ let PaymentSessionReference = class PaymentSessionReference {
|
|
|
20
17
|
userUuid;
|
|
21
18
|
};
|
|
22
19
|
__decorate([
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
PrimaryGeneratedColumn(),
|
|
21
|
+
ApiProperty(),
|
|
25
22
|
__metadata("design:type", Number)
|
|
26
23
|
], PaymentSessionReference.prototype, "id", void 0);
|
|
27
24
|
__decorate([
|
|
28
|
-
|
|
25
|
+
Column("uuid", {
|
|
29
26
|
name: "uuid",
|
|
30
27
|
default: () => "uuid_generate_v4()",
|
|
31
28
|
}),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
Generated("uuid"),
|
|
30
|
+
ApiProperty(),
|
|
31
|
+
Index(),
|
|
35
32
|
__metadata("design:type", String)
|
|
36
33
|
], PaymentSessionReference.prototype, "uuid", void 0);
|
|
37
34
|
__decorate([
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
CreateDateColumn(),
|
|
36
|
+
ApiProperty(),
|
|
40
37
|
__metadata("design:type", Date)
|
|
41
38
|
], PaymentSessionReference.prototype, "createdDate", void 0);
|
|
42
39
|
__decorate([
|
|
43
|
-
|
|
40
|
+
Column({ nullable: true }),
|
|
44
41
|
__metadata("design:type", String)
|
|
45
42
|
], PaymentSessionReference.prototype, "organisationUuid", void 0);
|
|
46
43
|
__decorate([
|
|
47
|
-
|
|
44
|
+
Column(),
|
|
48
45
|
__metadata("design:type", String)
|
|
49
46
|
], PaymentSessionReference.prototype, "userUuid", void 0);
|
|
50
47
|
PaymentSessionReference = __decorate([
|
|
51
|
-
|
|
48
|
+
Entity()
|
|
52
49
|
], PaymentSessionReference);
|
|
53
|
-
|
|
50
|
+
export { PaymentSessionReference };
|
|
54
51
|
//# sourceMappingURL=payment-session.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-session.entity.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment-session.entity.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACH,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,KAAK,EACL,sBAAsB,GACzB,MAAM,SAAS,CAAC;AAGV,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAGhC,EAAE,CAAU;IASL,IAAI,CAAU;IAIrB,WAAW,CAAQ;IAGnB,gBAAgB,CAAU;IAG1B,QAAQ,CAAU;CACrB,CAAA;AAtBG;IAAC,sBAAsB,EAAE;IACxB,WAAW,EAAE;;mDACF;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;IACb,KAAK,EAAE;;qDACa;AAErB;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACA,IAAI;4DAAC;AAEnB;IAAC,MAAM,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;iEACC;AAE1B;IAAC,MAAM,EAAE;;yDACS;AAtBT,uBAAuB;IADnC,MAAM,EAAE;GACI,uBAAuB,CAuBnC;SAvBY,uBAAuB"}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
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;
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const payment_session_service_1 = require("./payment-session.service");
|
|
14
|
-
const payment_session_controller_1 = require("./payment-session.controller");
|
|
7
|
+
import { Module } from "@nestjs/common";
|
|
8
|
+
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
9
|
+
import { PaymentSessionReference } from "./payment-session.entity.js";
|
|
10
|
+
import { PaymentSessionService } from "./payment-session.service.js";
|
|
11
|
+
import { PaymentSessionReferenceController } from "./payment-session.controller.js";
|
|
15
12
|
let PaymentSessionModule = class PaymentSessionModule {
|
|
16
13
|
};
|
|
17
14
|
PaymentSessionModule = __decorate([
|
|
18
|
-
|
|
19
|
-
imports: [
|
|
20
|
-
providers: [
|
|
21
|
-
exports: [
|
|
22
|
-
controllers: [
|
|
15
|
+
Module({
|
|
16
|
+
imports: [TypeOrmModule.forFeature([PaymentSessionReference])],
|
|
17
|
+
providers: [PaymentSessionService],
|
|
18
|
+
exports: [PaymentSessionService],
|
|
19
|
+
controllers: [PaymentSessionReferenceController],
|
|
23
20
|
})
|
|
24
21
|
], PaymentSessionModule);
|
|
25
|
-
|
|
22
|
+
export { PaymentSessionModule };
|
|
26
23
|
//# sourceMappingURL=payment-session.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-session.module.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment-session.module.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAC,iCAAiC,EAAC,MAAM,iCAAiC,CAAC;AAQ3E,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IANhC,MAAM,CAAC;QACJ,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC;QAC9D,SAAS,EAAE,CAAC,qBAAqB,CAAC;QAClC,OAAO,EAAE,CAAC,qBAAqB,CAAC;QAChC,WAAW,EAAE,CAAC,iCAAiC,CAAC;KACnD,CAAC;GACW,oBAAoB,CAAG;SAAvB,oBAAoB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Repository } from "typeorm";
|
|
2
|
-
import { PaymentSessionReference } from "./payment-session.entity";
|
|
2
|
+
import { PaymentSessionReference } from "./payment-session.entity.js";
|
|
3
3
|
export declare class PaymentSessionService {
|
|
4
4
|
private paymentReferenceRepository;
|
|
5
5
|
constructor(paymentReferenceRepository: Repository<PaymentSessionReference>);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,13 +10,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PaymentSessionService = void 0;
|
|
16
13
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import { Injectable } from "@nestjs/common";
|
|
15
|
+
import { InjectRepository } from "@nestjs/typeorm";
|
|
16
|
+
import { Repository } from "typeorm";
|
|
17
|
+
import { PaymentSessionReference } from "./payment-session.entity.js";
|
|
21
18
|
let PaymentSessionService = class PaymentSessionService {
|
|
22
19
|
paymentReferenceRepository;
|
|
23
20
|
constructor(paymentReferenceRepository) {
|
|
@@ -46,9 +43,9 @@ let PaymentSessionService = class PaymentSessionService {
|
|
|
46
43
|
}
|
|
47
44
|
};
|
|
48
45
|
PaymentSessionService = __decorate([
|
|
49
|
-
|
|
50
|
-
__param(0,
|
|
51
|
-
__metadata("design:paramtypes", [
|
|
46
|
+
Injectable(),
|
|
47
|
+
__param(0, InjectRepository(PaymentSessionReference)),
|
|
48
|
+
__metadata("design:paramtypes", [Repository])
|
|
52
49
|
], PaymentSessionService);
|
|
53
|
-
|
|
50
|
+
export { PaymentSessionService };
|
|
54
51
|
//# sourceMappingURL=payment-session.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-session.service.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment-session.service.js","sourceRoot":"","sources":["../../src/payment-sessions/payment-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyD;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AAG7D,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,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CAAC,CAAC;QAEH,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AApCY,qBAAqB;IADjC,UAAU,EAAE;IAGJ,WAAA,gBAAgB,CAAC,uBAAuB,CAAC,CAAA;qCACN,UAAU;GAHzC,qBAAqB,CAoCjC;SApCY,qBAAqB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INestApplication } from "@nestjs/common";
|
|
2
|
-
import { CoreConfigurationService } from "../core-config/CoreConfigurationService";
|
|
2
|
+
import { CoreConfigurationService } from "../core-config/CoreConfigurationService.js";
|
|
3
3
|
export declare class SwaggerGen {
|
|
4
4
|
private config;
|
|
5
5
|
constructor(config: CoreConfigurationService);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,41 +7,36 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
10
|
var SwaggerGen_1;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const child_process_1 = require("child_process");
|
|
21
|
-
const CoreConfigurationService_1 = require("../core-config/CoreConfigurationService");
|
|
11
|
+
import { Injectable, Logger } from "@nestjs/common";
|
|
12
|
+
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
|
|
13
|
+
import fs from "fs";
|
|
14
|
+
import { spawn } from "child_process";
|
|
15
|
+
import { CoreConfigurationService } from "../core-config/CoreConfigurationService.js";
|
|
22
16
|
/* istanbul ignore next */
|
|
23
17
|
let SwaggerGen = SwaggerGen_1 = class SwaggerGen {
|
|
24
18
|
config;
|
|
25
19
|
constructor(config) {
|
|
26
20
|
this.config = config;
|
|
27
21
|
}
|
|
28
|
-
logger = new
|
|
22
|
+
logger = new Logger(SwaggerGen_1.name);
|
|
29
23
|
generate(app, pathToSave) {
|
|
30
24
|
if (!this.config.shouldGenerateSwagger) {
|
|
31
25
|
this.logger.log("Skipping swagger model generation for this environment");
|
|
32
26
|
return;
|
|
33
27
|
}
|
|
34
|
-
const config = new
|
|
28
|
+
const config = new DocumentBuilder()
|
|
35
29
|
.addBearerAuth()
|
|
36
30
|
.setTitle(this.config.appTitle)
|
|
37
31
|
.setDescription("Describes the backend api")
|
|
38
32
|
.build();
|
|
39
|
-
const document =
|
|
40
|
-
|
|
33
|
+
const document = SwaggerModule.createDocument(app, config);
|
|
34
|
+
SwaggerModule.setup("swagger", app, document);
|
|
41
35
|
// tslint:disable-next-line: non-literal-fs-path
|
|
42
|
-
|
|
36
|
+
fs.writeFileSync(pathToSave, JSON.stringify(document, undefined, 2));
|
|
43
37
|
this.logger.log(`Wrote swagger api doc to ${pathToSave}`);
|
|
44
38
|
if (this.config.shouldAutomaticallyInstallApiModels) {
|
|
45
|
-
const modelGenerator =
|
|
39
|
+
const modelGenerator = spawn("./node_modules/@darraghor/nest-backend-libs/dist/open-api-generation/generate.sh", {
|
|
46
40
|
stdio: ["ignore", "ignore", "inherit"],
|
|
47
41
|
shell: true,
|
|
48
42
|
});
|
|
@@ -53,10 +47,10 @@ let SwaggerGen = SwaggerGen_1 = class SwaggerGen {
|
|
|
53
47
|
}
|
|
54
48
|
};
|
|
55
49
|
SwaggerGen = SwaggerGen_1 = __decorate([
|
|
56
|
-
|
|
50
|
+
Injectable()
|
|
57
51
|
// eslint-disable-next-line @darraghor/nestjs-typed/injectable-should-be-provided
|
|
58
52
|
,
|
|
59
|
-
__metadata("design:paramtypes", [
|
|
53
|
+
__metadata("design:paramtypes", [CoreConfigurationService])
|
|
60
54
|
], SwaggerGen);
|
|
61
|
-
|
|
55
|
+
export { SwaggerGen };
|
|
62
56
|
//# sourceMappingURL=SwaggerGen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwaggerGen.js","sourceRoot":"","sources":["../../src/root-app/SwaggerGen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SwaggerGen.js","sourceRoot":"","sources":["../../src/root-app/SwaggerGen.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AACpC,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AAEpF,0BAA0B;AAGnB,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACC;IAApB,YAAoB,MAAgC;QAAhC,WAAM,GAAN,MAAM,CAA0B;IAAG,CAAC;IACvC,MAAM,GAAG,IAAI,MAAM,CAAC,YAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,QAAQ,CAAC,GAAqB,EAAE,UAAkB;QACrD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE;YACpC,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,wDAAwD,CAC3D,CAAC;YACF,OAAO;SACV;QACD,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE;aAC/B,aAAa,EAAE;aACf,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;aAC9B,cAAc,CAAC,2BAA2B,CAAC;aAC3C,KAAK,EAAE,CAAC;QACb,MAAM,QAAQ,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC3D,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QAE9C,gDAAgD;QAChD,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,UAAU,EAAE,CAAC,CAAC;QAC1D,IAAI,IAAI,CAAC,MAAM,CAAC,mCAAmC,EAAE;YACjD,MAAM,cAAc,GAAG,KAAK,CACxB,kFAAkF,EAClF;gBACI,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC;gBACtC,KAAK,EAAE,IAAI;aACd,CACJ,CAAC;YAEF,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;gBAC3B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC;SACN;IACL,CAAC;CACJ,CAAA;AAnCY,UAAU;IAFtB,UAAU,EAAE;IACb,iFAAiF;;qCAEjD,wBAAwB;GAD3C,UAAU,CAmCtB;SAnCY,UAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestWithUser } from "../
|
|
2
|
-
import { AppService } from "./app.service";
|
|
1
|
+
import { RequestWithUser } from "../authorization/models/RequestWithUser.js";
|
|
2
|
+
import { AppService } from "./app.service.js";
|
|
3
3
|
export declare class AppController {
|
|
4
4
|
private readonly appService;
|
|
5
5
|
private readonly logger;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -12,15 +11,13 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
13
|
var AppController_1;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
20
|
-
const app_service_1 = require("./app.service");
|
|
14
|
+
import { Controller, Get, UseGuards, Request, Logger } from "@nestjs/common";
|
|
15
|
+
import { AuthGuard } from "@nestjs/passport";
|
|
16
|
+
import { ApiBearerAuth, ApiOkResponse, ApiTags } from "@nestjs/swagger";
|
|
17
|
+
import { AppService } from "./app.service.js";
|
|
21
18
|
let AppController = AppController_1 = class AppController {
|
|
22
19
|
appService;
|
|
23
|
-
logger = new
|
|
20
|
+
logger = new Logger(AppController_1.name);
|
|
24
21
|
constructor(appService) {
|
|
25
22
|
this.appService = appService;
|
|
26
23
|
}
|
|
@@ -35,26 +32,26 @@ let AppController = AppController_1 = class AppController {
|
|
|
35
32
|
}
|
|
36
33
|
};
|
|
37
34
|
__decorate([
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
Get(),
|
|
36
|
+
ApiOkResponse({ type: String }),
|
|
40
37
|
__metadata("design:type", Function),
|
|
41
38
|
__metadata("design:paramtypes", []),
|
|
42
39
|
__metadata("design:returntype", String)
|
|
43
40
|
], AppController.prototype, "getHello", null);
|
|
44
41
|
__decorate([
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
__param(0,
|
|
42
|
+
UseGuards(AuthGuard("jwt")),
|
|
43
|
+
ApiBearerAuth(),
|
|
44
|
+
Get("authorise"),
|
|
45
|
+
ApiOkResponse({ type: String }),
|
|
46
|
+
__param(0, Request()),
|
|
50
47
|
__metadata("design:type", Function),
|
|
51
48
|
__metadata("design:paramtypes", [Object]),
|
|
52
49
|
__metadata("design:returntype", String)
|
|
53
50
|
], AppController.prototype, "getHelloAuthorized", null);
|
|
54
51
|
AppController = AppController_1 = __decorate([
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
__metadata("design:paramtypes", [
|
|
52
|
+
Controller(),
|
|
53
|
+
ApiTags("Application Support"),
|
|
54
|
+
__metadata("design:paramtypes", [AppService])
|
|
58
55
|
], AppController);
|
|
59
|
-
|
|
56
|
+
export { AppController };
|
|
60
57
|
//# sourceMappingURL=app.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../../src/root-app/app.controller.ts"],"names":[],"mappings":"
|
|
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,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAEtE,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,EAAE,CAAC;IACtC,CAAC;IAMD,kBAAkB,CAAY,OAAwB;QAClD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC9C,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QAC/C,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ,CAAA;AAhBG;IAAC,GAAG,EAAE;IACL,aAAa,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;;;6CAG7B;AAED;IAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC3B,aAAa,EAAE;IACf,GAAG,CAAC,WAAW,CAAC;IAChB,aAAa,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;IACV,WAAA,OAAO,EAAE,CAAA;;;;uDAK5B;AAnBQ,aAAa;IAFzB,UAAU,EAAE;IACZ,OAAO,CAAC,qBAAqB,CAAC;qCAGc,UAAU;GAF1C,aAAa,CAoBzB;SApBY,aAAa"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
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;
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
exports.AppService = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
7
|
+
import { Injectable } from "@nestjs/common";
|
|
11
8
|
let AppService = class AppService {
|
|
12
9
|
getHello() {
|
|
13
10
|
return "Healthy and running";
|
|
14
11
|
}
|
|
15
12
|
};
|
|
16
13
|
AppService = __decorate([
|
|
17
|
-
|
|
14
|
+
Injectable()
|
|
18
15
|
], AppService);
|
|
19
|
-
|
|
16
|
+
export { AppService };
|
|
20
17
|
//# sourceMappingURL=app.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.service.js","sourceRoot":"","sources":["../../src/root-app/app.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.service.js","sourceRoot":"","sources":["../../src/root-app/app.service.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAGnC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACnB,QAAQ;QACJ,OAAO,qBAAqB,CAAC;IACjC,CAAC;CACJ,CAAA;AAJY,UAAU;IADtB,UAAU,EAAE;GACA,UAAU,CAItB;SAJY,UAAU"}
|
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
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;
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CoreModule = void 0;
|
|
13
7
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
14
8
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
15
9
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
10
|
+
import "reflect-metadata";
|
|
11
|
+
import helmet from "helmet";
|
|
12
|
+
import { ClassSerializerInterceptor, Global, Module, ValidationPipe, } from "@nestjs/common";
|
|
13
|
+
import { Logger, LoggerModule } from "nestjs-pino";
|
|
14
|
+
import { AppController } from "./app.controller.js";
|
|
15
|
+
import { AppService } from "./app.service.js";
|
|
16
|
+
import { SwaggerGen } from "./SwaggerGen.js";
|
|
17
|
+
import { NestFactory, Reflector } from "@nestjs/core";
|
|
18
|
+
import { CoreConfigurationService } from "../core-config/CoreConfigurationService.js";
|
|
19
|
+
import { CoreConfigModule } from "../core-config/CoreConfig.module.js";
|
|
20
|
+
import { ConfigModule } from "@nestjs/config";
|
|
21
|
+
import { BullModule } from "@nestjs/bull";
|
|
22
|
+
import { HealthModule } from "../health/Health.module.js";
|
|
23
|
+
import { LoggerModule as LoggingConfigModule } from "../logger/logger.module.js";
|
|
24
|
+
import { LoggingConfigurationService } from "../logger/LoggingConfigurationService.js";
|
|
25
|
+
import { AuthzModule } from "../authorization/authz.module.js";
|
|
26
|
+
import { DevtoolsModule } from "@nestjs/devtools-integration";
|
|
32
27
|
let CoreModule = class CoreModule {
|
|
33
28
|
static initApplication(
|
|
34
29
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,@typescript-eslint/no-explicit-any
|
|
@@ -37,26 +32,26 @@ let CoreModule = class CoreModule {
|
|
|
37
32
|
options) {
|
|
38
33
|
void (async () => {
|
|
39
34
|
try {
|
|
40
|
-
const app = await
|
|
35
|
+
const app = await NestFactory.create(rootModule, {
|
|
41
36
|
bodyParser: true,
|
|
42
37
|
rawBody: true,
|
|
43
38
|
bufferLogs: true,
|
|
44
39
|
});
|
|
45
|
-
const loggerService = app.get(
|
|
46
|
-
const configService = app.get(
|
|
40
|
+
const loggerService = app.get(Logger);
|
|
41
|
+
const configService = app.get(CoreConfigurationService);
|
|
47
42
|
app.useLogger(loggerService);
|
|
48
43
|
app.flushLogs();
|
|
49
|
-
app.use((
|
|
44
|
+
app.use(helmet());
|
|
50
45
|
app.enableCors({ origin: configService.frontEndAppUrl });
|
|
51
|
-
app.useGlobalPipes(new
|
|
46
|
+
app.useGlobalPipes(new ValidationPipe({
|
|
52
47
|
transform: true,
|
|
53
48
|
skipMissingProperties: false,
|
|
54
49
|
whitelist: true,
|
|
55
50
|
forbidNonWhitelisted: true,
|
|
56
51
|
forbidUnknownValues: true,
|
|
57
52
|
}));
|
|
58
|
-
app.useGlobalInterceptors(new
|
|
59
|
-
const swaggerGen = app.get(
|
|
53
|
+
app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector)));
|
|
54
|
+
const swaggerGen = app.get(SwaggerGen);
|
|
60
55
|
swaggerGen.generate(app, "open-api/swagger.json");
|
|
61
56
|
loggerService.log(`will listen on port ${configService.webPort} (DEV: http://localhost:${configService.webPort} )`);
|
|
62
57
|
loggerService.log(`swagger will be available at (DEV: http://localhost:${configService.webPort}/swagger )`);
|
|
@@ -75,13 +70,13 @@ let CoreModule = class CoreModule {
|
|
|
75
70
|
}
|
|
76
71
|
};
|
|
77
72
|
CoreModule = __decorate([
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
Global(),
|
|
74
|
+
Module({
|
|
80
75
|
imports: [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
imports: [
|
|
84
|
-
inject: [
|
|
76
|
+
ConfigModule.forRoot({ cache: true }),
|
|
77
|
+
LoggerModule.forRootAsync({
|
|
78
|
+
imports: [LoggingConfigModule],
|
|
79
|
+
inject: [LoggingConfigurationService],
|
|
85
80
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
86
81
|
useFactory: async (config) => {
|
|
87
82
|
return {
|
|
@@ -94,9 +89,20 @@ CoreModule = __decorate([
|
|
|
94
89
|
};
|
|
95
90
|
},
|
|
96
91
|
}),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
imports: [
|
|
92
|
+
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
|
+
BullModule.forRootAsync({
|
|
105
|
+
imports: [CoreConfigModule],
|
|
100
106
|
useFactory: async (configService
|
|
101
107
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
102
108
|
) => {
|
|
@@ -111,15 +117,15 @@ CoreModule = __decorate([
|
|
|
111
117
|
},
|
|
112
118
|
};
|
|
113
119
|
},
|
|
114
|
-
inject: [
|
|
120
|
+
inject: [CoreConfigurationService],
|
|
115
121
|
}),
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
HealthModule,
|
|
123
|
+
AuthzModule,
|
|
118
124
|
],
|
|
119
|
-
controllers: [
|
|
120
|
-
providers: [
|
|
121
|
-
exports: [
|
|
125
|
+
controllers: [AppController],
|
|
126
|
+
providers: [AppService, SwaggerGen],
|
|
127
|
+
exports: [SwaggerGen, BullModule, LoggerModule, AuthzModule],
|
|
122
128
|
})
|
|
123
129
|
], CoreModule);
|
|
124
|
-
|
|
130
|
+
export { CoreModule };
|
|
125
131
|
//# sourceMappingURL=core-app.module.js.map
|