@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-app.module.js","sourceRoot":"","sources":["../../src/root-app/core-app.module.ts"],"names":[],"mappings":"
|
|
1
|
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pB,aAAa,CAAC,aAAa,IAAI,mBAAmB,CACrD,CAAC;oBACF,OAAO;wBACH,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ,CAAC,QAAQ;4BACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;4BAC3B,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;4BAC3B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;4BAC3B,oBAAoB,EAAE,CAAC;yBAC1B;qBACJ,CAAC;gBACN,CAAC;gBACD,MAAM,EAAE,CAAC,wBAAwB,CAAC;aACrC,CAAC;YACF,YAAY;YACZ,WAAW;SACd;QACD,WAAW,EAAE,CAAC,aAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;QACnC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,CAAC;KAC/D,CAAC;GACW,UAAU,CAyDtB;SAzDY,UAAU"}
|
|
@@ -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
|
-
class QueueItemDto {
|
|
10
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
|
+
export class QueueItemDto {
|
|
15
12
|
id;
|
|
16
13
|
queueDateLocal;
|
|
17
14
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
@@ -21,24 +18,23 @@ class QueueItemDto {
|
|
|
21
18
|
failReason;
|
|
22
19
|
}
|
|
23
20
|
__decorate([
|
|
24
|
-
|
|
21
|
+
ApiProperty(),
|
|
25
22
|
__metadata("design:type", String)
|
|
26
23
|
], QueueItemDto.prototype, "id", void 0);
|
|
27
24
|
__decorate([
|
|
28
|
-
|
|
25
|
+
ApiProperty(),
|
|
29
26
|
__metadata("design:type", Date)
|
|
30
27
|
], QueueItemDto.prototype, "queueDateLocal", void 0);
|
|
31
28
|
__decorate([
|
|
32
|
-
|
|
29
|
+
ApiProperty(),
|
|
33
30
|
__metadata("design:type", String)
|
|
34
31
|
], QueueItemDto.prototype, "result", void 0);
|
|
35
32
|
__decorate([
|
|
36
|
-
|
|
33
|
+
ApiProperty(),
|
|
37
34
|
__metadata("design:type", String)
|
|
38
35
|
], QueueItemDto.prototype, "data", void 0);
|
|
39
36
|
__decorate([
|
|
40
|
-
|
|
37
|
+
ApiPropertyOptional(),
|
|
41
38
|
__metadata("design:type", String)
|
|
42
39
|
], QueueItemDto.prototype, "failReason", void 0);
|
|
43
|
-
exports.QueueItemDto = QueueItemDto;
|
|
44
40
|
//# sourceMappingURL=QueueItemDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueueItemDto.js","sourceRoot":"","sources":["../../../src/root-app/models/QueueItemDto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueueItemDto.js","sourceRoot":"","sources":["../../../src/root-app/models/QueueItemDto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEjE,MAAM,OAAO,YAAY;IAErB,EAAE,CAAU;IAEZ,cAAc,CAAQ;IACtB,mEAAmE;IAEnE,MAAM,CAAU;IAChB,mEAAmE;IAEnE,IAAI,CAAU;IAEd,UAAU,CAAU;CACvB;AAZG;IAAC,WAAW,EAAE;;wCACF;AACZ;IAAC,WAAW,EAAE;8BACG,IAAI;oDAAC;AAEtB;IAAC,WAAW,EAAE;;4CACE;AAEhB;IAAC,WAAW,EAAE;;0CACA;AACd;IAAC,mBAAmB,EAAE;;gDACF"}
|
|
@@ -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,15 +7,12 @@ 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
|
-
class BooleanResult {
|
|
10
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
11
|
+
export class BooleanResult {
|
|
15
12
|
result;
|
|
16
13
|
}
|
|
17
14
|
__decorate([
|
|
18
|
-
|
|
15
|
+
ApiProperty(),
|
|
19
16
|
__metadata("design:type", Boolean)
|
|
20
17
|
], BooleanResult.prototype, "result", void 0);
|
|
21
|
-
exports.BooleanResult = BooleanResult;
|
|
22
18
|
//# sourceMappingURL=boolean-result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-result.js","sourceRoot":"","sources":["../../../src/root-app/models/boolean-result.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean-result.js","sourceRoot":"","sources":["../../../src/root-app/models/boolean-result.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAa;IAEtB,MAAM,CAAW;CACpB;AAFG;IAAC,WAAW,EAAE;;6CACG"}
|
|
@@ -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,26 +7,24 @@ 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 common_1 = require("@nestjs/common");
|
|
14
|
-
const operators_1 = require("rxjs/operators");
|
|
10
|
+
import { Injectable, NotFoundException, } from "@nestjs/common";
|
|
11
|
+
import { tap } from "rxjs/operators";
|
|
15
12
|
let NotFoundInterceptor = class NotFoundInterceptor {
|
|
16
13
|
errorMessage;
|
|
17
14
|
constructor(errorMessage) {
|
|
18
15
|
this.errorMessage = errorMessage;
|
|
19
16
|
}
|
|
20
17
|
intercept(context, stream$) {
|
|
21
|
-
return stream$.handle().pipe(
|
|
18
|
+
return stream$.handle().pipe(tap((data) => {
|
|
22
19
|
if (data === undefined) {
|
|
23
|
-
throw new
|
|
20
|
+
throw new NotFoundException(this.errorMessage);
|
|
24
21
|
}
|
|
25
22
|
}));
|
|
26
23
|
}
|
|
27
24
|
};
|
|
28
25
|
NotFoundInterceptor = __decorate([
|
|
29
|
-
|
|
26
|
+
Injectable(),
|
|
30
27
|
__metadata("design:paramtypes", [String])
|
|
31
28
|
], NotFoundInterceptor);
|
|
32
|
-
|
|
29
|
+
export { NotFoundInterceptor };
|
|
33
30
|
//# sourceMappingURL=notfound.interceptor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notfound.interceptor.js","sourceRoot":"","sources":["../../src/root-app/notfound.interceptor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notfound.interceptor.js","sourceRoot":"","sources":["../../src/root-app/notfound.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,UAAU,EAGV,iBAAiB,GAEpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AAG5B,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACR;IAApB,YAAoB,YAAoB;QAApB,iBAAY,GAAZ,YAAY,CAAQ;IAAG,CAAC;IAE5C,SAAS,CACL,OAAyB,EACzB,OAAoB;QAEpB,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CACxB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACT,IAAI,IAAI,KAAK,SAAS,EAAE;gBACpB,MAAM,IAAI,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aAClD;QACL,CAAC,CAAC,CACL,CAAC;IACN,CAAC;CACJ,CAAA;AAfY,mBAAmB;IAD/B,UAAU,EAAE;;GACA,mBAAmB,CAe/B;SAfY,mBAAmB"}
|
|
@@ -1,23 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
7
|
var CliCommandService_1;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const common_1 = require("@nestjs/common");
|
|
15
|
-
const child_process_1 = require("child_process");
|
|
8
|
+
import { Injectable, Logger } from "@nestjs/common";
|
|
9
|
+
import { exec } from "child_process";
|
|
16
10
|
// eslint-disable-next-line unicorn/import-style
|
|
17
|
-
|
|
18
|
-
const execPromise =
|
|
11
|
+
import util from "util";
|
|
12
|
+
const execPromise = util.promisify(exec);
|
|
19
13
|
let CliCommandService = CliCommandService_1 = class CliCommandService {
|
|
20
|
-
logger = new
|
|
14
|
+
logger = new Logger(CliCommandService_1.name);
|
|
21
15
|
async execAsPromised(command, commandArguments, cwd, shell) {
|
|
22
16
|
this.logger.warn(`Executing cli command '${command}' in '${cwd}'`);
|
|
23
17
|
this.logger.warn("Note: Do NOT allow user input as parameters for 'execAsPromised' as inputs are not sanitised and a hacker could take over your system.");
|
|
@@ -29,7 +23,7 @@ let CliCommandService = CliCommandService_1 = class CliCommandService {
|
|
|
29
23
|
}
|
|
30
24
|
};
|
|
31
25
|
CliCommandService = CliCommandService_1 = __decorate([
|
|
32
|
-
|
|
26
|
+
Injectable()
|
|
33
27
|
], CliCommandService);
|
|
34
|
-
|
|
28
|
+
export { CliCommandService };
|
|
35
29
|
//# sourceMappingURL=CliCommandService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CliCommandService.js","sourceRoot":"","sources":["../../src/runningCommandLine/CliCommandService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CliCommandService.js","sourceRoot":"","sources":["../../src/runningCommandLine/CliCommandService.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,gDAAgD;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAGlC,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IACT,MAAM,GAAG,IAAI,MAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAEtD,KAAK,CAAC,cAAc,CACvB,OAAe,EACf,gBAA0B,EAC1B,GAAW,EACX,KAAc;QAEd,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,OAAO,SAAS,GAAG,GAAG,CAAC,CAAC;QACnE,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,wIAAwI,CAC3I,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,WAAW,CAC5B,GAAG,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAC1C;YACI,KAAK,EAAE,KAAK,IAAI,WAAW;YAC3B,GAAG;SACN,CACJ,CAAC;QAEF,OAAO,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;CACJ,CAAA;AAvBY,iBAAiB;IAD7B,UAAU,EAAE;GACA,iBAAiB,CAuB7B;SAvBY,iBAAiB"}
|
|
@@ -1,24 +1,21 @@
|
|
|
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
|
-
require("reflect-metadata");
|
|
12
|
-
const CliCommandService_1 = require("./CliCommandService");
|
|
7
|
+
import { Module } from "@nestjs/common";
|
|
8
|
+
import "reflect-metadata";
|
|
9
|
+
import { CliCommandService } from "./CliCommandService.js";
|
|
13
10
|
let RunningCommandLineModule = class RunningCommandLineModule {
|
|
14
11
|
};
|
|
15
12
|
RunningCommandLineModule = __decorate([
|
|
16
|
-
|
|
13
|
+
Module({
|
|
17
14
|
imports: [],
|
|
18
|
-
providers: [
|
|
19
|
-
exports: [
|
|
15
|
+
providers: [CliCommandService],
|
|
16
|
+
exports: [CliCommandService],
|
|
20
17
|
controllers: [],
|
|
21
18
|
})
|
|
22
19
|
], RunningCommandLineModule);
|
|
23
|
-
|
|
20
|
+
export { RunningCommandLineModule };
|
|
24
21
|
//# sourceMappingURL=RunningCommandLine.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunningCommandLine.module.js","sourceRoot":"","sources":["../../src/runningCommandLine/RunningCommandLine.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RunningCommandLine.module.js","sourceRoot":"","sources":["../../src/runningCommandLine/RunningCommandLine.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAQlD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,wBAAwB;IANpC,MAAM,CAAC;QACJ,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,CAAC,iBAAiB,CAAC;QAC9B,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,WAAW,EAAE,EAAE;KAClB,CAAC;GACW,wBAAwB,CAAG;SAA3B,wBAAwB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigService } from "@nestjs/config";
|
|
2
|
-
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService";
|
|
2
|
+
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
|
|
3
3
|
export declare class EmailConfigurationService extends ValidatedConfigurationService {
|
|
4
4
|
private configService;
|
|
5
5
|
constructor(configService: ConfigService);
|
|
@@ -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,14 +7,12 @@ 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EmailConfigurationService = void 0;
|
|
13
10
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
let EmailConfigurationService = class EmailConfigurationService extends
|
|
11
|
+
import { Injectable } from "@nestjs/common";
|
|
12
|
+
import { ConfigService } from "@nestjs/config";
|
|
13
|
+
import { IsBoolean, IsDefined, IsInt, IsString } from "class-validator";
|
|
14
|
+
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
|
|
15
|
+
let EmailConfigurationService = class EmailConfigurationService extends ValidatedConfigurationService {
|
|
19
16
|
configService;
|
|
20
17
|
constructor(configService) {
|
|
21
18
|
super();
|
|
@@ -48,56 +45,56 @@ let EmailConfigurationService = class EmailConfigurationService extends Validate
|
|
|
48
45
|
}
|
|
49
46
|
};
|
|
50
47
|
__decorate([
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
IsDefined(),
|
|
49
|
+
IsBoolean(),
|
|
53
50
|
__metadata("design:type", Boolean),
|
|
54
51
|
__metadata("design:paramtypes", [])
|
|
55
52
|
], EmailConfigurationService.prototype, "isEmailSyncSendEnabled", null);
|
|
56
53
|
__decorate([
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
IsDefined(),
|
|
55
|
+
IsString(),
|
|
59
56
|
__metadata("design:type", String),
|
|
60
57
|
__metadata("design:paramtypes", [])
|
|
61
58
|
], EmailConfigurationService.prototype, "extraEmailBcc", null);
|
|
62
59
|
__decorate([
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
IsDefined(),
|
|
61
|
+
IsString(),
|
|
65
62
|
__metadata("design:type", String),
|
|
66
63
|
__metadata("design:paramtypes", [])
|
|
67
64
|
], EmailConfigurationService.prototype, "emailPassword", null);
|
|
68
65
|
__decorate([
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
IsDefined(),
|
|
67
|
+
IsString(),
|
|
71
68
|
__metadata("design:type", String),
|
|
72
69
|
__metadata("design:paramtypes", [])
|
|
73
70
|
], EmailConfigurationService.prototype, "smtpHost", null);
|
|
74
71
|
__decorate([
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
IsDefined(),
|
|
73
|
+
IsInt(),
|
|
77
74
|
__metadata("design:type", Number),
|
|
78
75
|
__metadata("design:paramtypes", [])
|
|
79
76
|
], EmailConfigurationService.prototype, "smtpPort", null);
|
|
80
77
|
__decorate([
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
IsDefined(),
|
|
79
|
+
IsString(),
|
|
83
80
|
__metadata("design:type", String),
|
|
84
81
|
__metadata("design:paramtypes", [])
|
|
85
82
|
], EmailConfigurationService.prototype, "emailUsername", null);
|
|
86
83
|
__decorate([
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
IsDefined(),
|
|
85
|
+
IsString(),
|
|
89
86
|
__metadata("design:type", String),
|
|
90
87
|
__metadata("design:paramtypes", [])
|
|
91
88
|
], EmailConfigurationService.prototype, "senderEmailAddress", null);
|
|
92
89
|
__decorate([
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
IsDefined(),
|
|
91
|
+
IsString(),
|
|
95
92
|
__metadata("design:type", String),
|
|
96
93
|
__metadata("design:paramtypes", [])
|
|
97
94
|
], EmailConfigurationService.prototype, "senderName", null);
|
|
98
95
|
EmailConfigurationService = __decorate([
|
|
99
|
-
|
|
100
|
-
__metadata("design:paramtypes", [
|
|
96
|
+
Injectable(),
|
|
97
|
+
__metadata("design:paramtypes", [ConfigService])
|
|
101
98
|
], EmailConfigurationService);
|
|
102
|
-
|
|
99
|
+
export { EmailConfigurationService };
|
|
103
100
|
//# sourceMappingURL=EmailConfigurationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailConfigurationService.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmailConfigurationService.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6DAA6D;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,6BAA6B,EAAC,MAAM,mDAAmD,CAAC;AAGzF,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,6BAA6B;IACpD;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,sBAAsB;QACtB,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,8BAA8B,CAAC;YAC9D,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0DrC;SA1DY,yBAAyB"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const config_1 = require("@nestjs/config");
|
|
4
|
-
exports.default = (0, config_1.registerAs)("email", () => ({
|
|
1
|
+
import { registerAs } from "@nestjs/config";
|
|
2
|
+
export default registerAs("email", () => ({
|
|
5
3
|
extraEmailBcc: process.env.EXTRA_EMAIL_BCC,
|
|
6
4
|
senderName: process.env.EMAIL_SENDER_NAME,
|
|
7
5
|
senderEmailAddress: process.env.EMAIL_SENDER_ADDRESS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailConfigurationVariables.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationVariables.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmailConfigurationVariables.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationVariables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,eAAe,UAAU,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IACtC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;IAC1C,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;IACzC,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;IACpD,sBAAsB,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB;IAC3D,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC7C,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC7C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;IACrC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Transporter } from "nodemailer";
|
|
2
|
-
import { EmailConfigurationService } from "./EmailConfigurationService";
|
|
2
|
+
import { EmailConfigurationService } from "./EmailConfigurationService.js";
|
|
3
3
|
export declare const EmailTransporterProvider: {
|
|
4
4
|
provide: string;
|
|
5
5
|
useFactory: (config: EmailConfigurationService) => Transporter;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const nodemailer_1 = require("nodemailer");
|
|
5
|
-
const EmailConfigurationService_1 = require("./EmailConfigurationService");
|
|
6
|
-
exports.EmailTransporterProvider = {
|
|
1
|
+
import { createTransport } from "nodemailer";
|
|
2
|
+
import { EmailConfigurationService } from "./EmailConfigurationService.js";
|
|
3
|
+
export const EmailTransporterProvider = {
|
|
7
4
|
provide: "SmtpEmailTransporter",
|
|
8
5
|
useFactory: (config) => {
|
|
9
|
-
return
|
|
6
|
+
return createTransport({
|
|
10
7
|
host: config.smtpHost,
|
|
11
8
|
port: config.smtpPort,
|
|
12
9
|
secure: config.smtpPort === 465 ? true : false,
|
|
@@ -17,6 +14,6 @@ exports.EmailTransporterProvider = {
|
|
|
17
14
|
},
|
|
18
15
|
});
|
|
19
16
|
},
|
|
20
|
-
inject: [
|
|
17
|
+
inject: [EmailConfigurationService],
|
|
21
18
|
};
|
|
22
19
|
//# sourceMappingURL=EmailTransporterProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTransporterProvider.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailTransporterProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmailTransporterProvider.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailTransporterProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AAEzE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,OAAO,EAAE,sBAAsB;IAC/B,UAAU,EAAE,CAAC,MAAiC,EAAe,EAAE;QAC3D,OAAO,eAAe,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC,QAAQ;YACrB,IAAI,EAAE,MAAM,CAAC,QAAQ;YACrB,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;YAC9C,mEAAmE;YACnE,IAAI,EAAE;gBACF,IAAI,EAAE,MAAM,CAAC,aAAa;gBAC1B,IAAI,EAAE,MAAM,CAAC,aAAa;aAC7B;SACJ,CAAC,CAAC;IACP,CAAC;IACD,MAAM,EAAE,CAAC,yBAAyB,CAAC;CACtC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Queue } from "bull";
|
|
2
2
|
import { Transporter } from "nodemailer";
|
|
3
3
|
import { Repository } from "typeorm";
|
|
4
|
-
import { Email } from "./email.entity";
|
|
5
|
-
import { EmailConfigurationService } from "./EmailConfigurationService";
|
|
4
|
+
import { Email } from "./email.entity.js";
|
|
5
|
+
import { EmailConfigurationService } from "./EmailConfigurationService.js";
|
|
6
6
|
export declare class SmtpEmailClient {
|
|
7
7
|
private emailRepository;
|
|
8
8
|
private smtpEmailTransporter;
|
|
@@ -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,20 +11,18 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
13
|
var SmtpEmailClient_1;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const email_entity_1 = require("./email.entity");
|
|
22
|
-
const EmailConfigurationService_1 = require("./EmailConfigurationService");
|
|
14
|
+
import { InjectQueue } from "@nestjs/bull";
|
|
15
|
+
import { Inject, Injectable, Logger } from "@nestjs/common";
|
|
16
|
+
import { InjectRepository } from "@nestjs/typeorm";
|
|
17
|
+
import { Repository } from "typeorm";
|
|
18
|
+
import { Email } from "./email.entity.js";
|
|
19
|
+
import { EmailConfigurationService } from "./EmailConfigurationService.js";
|
|
23
20
|
let SmtpEmailClient = SmtpEmailClient_1 = class SmtpEmailClient {
|
|
24
21
|
emailRepository;
|
|
25
22
|
smtpEmailTransporter;
|
|
26
23
|
queue;
|
|
27
24
|
config;
|
|
28
|
-
logger = new
|
|
25
|
+
logger = new Logger(SmtpEmailClient_1.name);
|
|
29
26
|
constructor(emailRepository, smtpEmailTransporter, queue, config) {
|
|
30
27
|
this.emailRepository = emailRepository;
|
|
31
28
|
this.smtpEmailTransporter = smtpEmailTransporter;
|
|
@@ -59,11 +56,11 @@ let SmtpEmailClient = SmtpEmailClient_1 = class SmtpEmailClient {
|
|
|
59
56
|
}
|
|
60
57
|
};
|
|
61
58
|
SmtpEmailClient = SmtpEmailClient_1 = __decorate([
|
|
62
|
-
|
|
63
|
-
__param(0,
|
|
64
|
-
__param(1,
|
|
65
|
-
__param(2,
|
|
66
|
-
__metadata("design:paramtypes", [
|
|
59
|
+
Injectable(),
|
|
60
|
+
__param(0, InjectRepository(Email)),
|
|
61
|
+
__param(1, Inject("SmtpEmailTransporter")),
|
|
62
|
+
__param(2, InjectQueue("smtp-emails")),
|
|
63
|
+
__metadata("design:paramtypes", [Repository, Object, Object, EmailConfigurationService])
|
|
67
64
|
], SmtpEmailClient);
|
|
68
|
-
|
|
65
|
+
export { SmtpEmailClient };
|
|
69
66
|
//# sourceMappingURL=email-client.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-client.service.js","sourceRoot":"","sources":["../../src/smtp-email-client/email-client.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-client.service.js","sourceRoot":"","sources":["../../src/smtp-email-client/email-client.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,EAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AAGlE,IAAM,eAAe,uBAArB,MAAM,eAAe;IAIZ;IAEA;IAEA;IACA;IARK,MAAM,GAAG,IAAI,MAAM,CAAC,iBAAe,CAAC,IAAI,CAAC,CAAC;IAC3D,YAEY,eAAkC,EAElC,oBAAiC,EAEjC,KAAY,EACZ,MAAiC;QALjC,oBAAe,GAAf,eAAe,CAAmB;QAElC,yBAAoB,GAApB,oBAAoB,CAAa;QAEjC,UAAK,GAAL,KAAK,CAAO;QACZ,WAAM,GAAN,MAAM,CAA2B;IAC1C,CAAC;IAEG,KAAK,CAAC,MAAM;QACf,wGAAwG;QACxG,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,QAAQ,CACjB,EAAY,EACZ,KAAe,EACf,OAAe,EACf,aAAqB,EACrB,aAAsB,EACtB,QAAiB;QAEjB,IAAI,CAAC,aAAa,IAAI,CAAC,QAAQ,EAAE;YAC7B,MAAM,IAAI,KAAK,CACX,2DAA2D,CAC9D,CAAC;SACL;QACD,MAAM,0BAA0B,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChD,MAAM,2BAA2B,GAAG;YAChC,GAAG,KAAK;YACR,IAAI,CAAC,MAAM,CAAC,aAAa;SAC5B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;QAE5C,oEAAoE;QACpE,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC1B,oEAAoE;QACpE,KAAK,CAAC,QAAQ,GAAG,aAAa,CAAC;QAC/B,KAAK,CAAC,KAAK,GAAG,2BAA2B,CAAC;QAC1C,KAAK,CAAC,EAAE,GAAG,0BAA0B,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QACxB,KAAK,CAAC,OAAO,GAAG,aAAa,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,yCAAyC,KAAK,CAAC,OAAO,EAAE,CAC3D,CAAC;QACF,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACJ,CAAA;AAlDY,eAAe;IAD3B,UAAU,EAAE;IAIJ,WAAA,gBAAgB,CAAC,KAAK,CAAC,CAAA;IAEvB,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,WAAW,CAAC,aAAa,CAAC,CAAA;qCAHF,UAAU,kBAKnB,yBAAyB;GATpC,eAAe,CAkD3B;SAlDY,eAAe"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Queue } from "bull";
|
|
2
|
-
import { BooleanResult } from "../root-app/models/boolean-result";
|
|
3
|
-
import { QueueItemDto } from "../root-app/models/QueueItemDto";
|
|
4
|
-
import { SmtpEmailClient } from "./email-client.service";
|
|
2
|
+
import { BooleanResult } from "../root-app/models/boolean-result.js";
|
|
3
|
+
import { QueueItemDto } from "../root-app/models/QueueItemDto.js";
|
|
4
|
+
import { SmtpEmailClient } from "./email-client.service.js";
|
|
5
5
|
export declare class EmailClientController {
|
|
6
6
|
private readonly service;
|
|
7
7
|
private queue;
|
|
@@ -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,15 +10,15 @@ 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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
import { InjectQueue } from "@nestjs/bull";
|
|
14
|
+
import { Controller, Get, UseGuards } from "@nestjs/common";
|
|
15
|
+
import { ApiBearerAuth, ApiOkResponse, ApiTags } from "@nestjs/swagger";
|
|
16
|
+
import { ClaimsAuthorisationGuard } from "../authorization/guards/ClaimsAuthorisationGuard.js";
|
|
17
|
+
import { DefaultAuthGuard } from "../authorization/guards/DefaultAuthGuard.js";
|
|
18
|
+
import { MandatoryUserClaims } from "../authorization/guards/MandatoryUserClaims.decorator.js";
|
|
19
|
+
import { BooleanResult } from "../root-app/models/boolean-result.js";
|
|
20
|
+
import { QueueItemDto } from "../root-app/models/QueueItemDto.js";
|
|
21
|
+
import { SmtpEmailClient } from "./email-client.service.js";
|
|
23
22
|
let EmailClientController = class EmailClientController {
|
|
24
23
|
service;
|
|
25
24
|
queue;
|
|
@@ -68,37 +67,37 @@ let EmailClientController = class EmailClientController {
|
|
|
68
67
|
}
|
|
69
68
|
};
|
|
70
69
|
__decorate([
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
Get("verify"),
|
|
71
|
+
ApiOkResponse({ type: BooleanResult }),
|
|
73
72
|
__metadata("design:type", Function),
|
|
74
73
|
__metadata("design:paramtypes", []),
|
|
75
74
|
__metadata("design:returntype", Promise)
|
|
76
75
|
], EmailClientController.prototype, "verify", null);
|
|
77
76
|
__decorate([
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
MandatoryUserClaims("read:all"),
|
|
78
|
+
Get("peekalljobs"),
|
|
79
|
+
ApiOkResponse({ type: [QueueItemDto] }),
|
|
81
80
|
__metadata("design:type", Function),
|
|
82
81
|
__metadata("design:paramtypes", []),
|
|
83
82
|
__metadata("design:returntype", Promise)
|
|
84
83
|
], EmailClientController.prototype, "peekQueueJobs", null);
|
|
85
84
|
__decorate([
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
MandatoryUserClaims("read:all"),
|
|
86
|
+
Get("peekfailedjobs")
|
|
88
87
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
89
88
|
,
|
|
90
|
-
|
|
89
|
+
ApiOkResponse({ type: [QueueItemDto] }),
|
|
91
90
|
__metadata("design:type", Function),
|
|
92
91
|
__metadata("design:paramtypes", []),
|
|
93
92
|
__metadata("design:returntype", Promise)
|
|
94
93
|
], EmailClientController.prototype, "peekFailedQueueJobs", null);
|
|
95
94
|
EmailClientController = __decorate([
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
__param(1,
|
|
101
|
-
__metadata("design:paramtypes", [
|
|
95
|
+
UseGuards(DefaultAuthGuard, ClaimsAuthorisationGuard),
|
|
96
|
+
ApiBearerAuth(),
|
|
97
|
+
ApiTags("Email-client"),
|
|
98
|
+
Controller("email-client"),
|
|
99
|
+
__param(1, InjectQueue("smtp-emails")),
|
|
100
|
+
__metadata("design:paramtypes", [SmtpEmailClient, Object])
|
|
102
101
|
], EmailClientController);
|
|
103
|
-
|
|
102
|
+
export { EmailClientController };
|
|
104
103
|
//# sourceMappingURL=email.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.controller.js","sourceRoot":"","sources":["../../src/smtp-email-client/email.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email.controller.js","sourceRoot":"","sources":["../../src/smtp-email-client/email.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,gBAAgB,EAAC,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,aAAa,EAAC,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAMnD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAET;IAET;IAHZ,YACqB,OAAwB,EAEjC,KAAY;QAFH,YAAO,GAAP,OAAO,CAAiB;QAEjC,UAAK,GAAL,KAAK,CAAO;IACrB,CAAC;IAIE,AAAN,KAAK,CAAC,MAAM;QACR,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC;IAC1B,CAAC;IAKK,AAAN,KAAK,CAAC,aAAa;QACf,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAClC,SAAS;YACT,QAAQ;YACR,SAAS;YACT,WAAW;YACX,QAAQ;YACR,QAAQ;SACX,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACpB,OAAO;gBACH,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC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