@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,12 @@ 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
|
-
const StripeCustomerPortalResponseDto_1 = require("../models/StripeCustomerPortalResponseDto");
|
|
21
|
-
const StripeCustomerPortalRequestDto_1 = require("../models/StripeCustomerPortalRequestDto");
|
|
13
|
+
import { UseGuards, Controller, Post, Request, Body } from "@nestjs/common";
|
|
14
|
+
import { AuthGuard } from "@nestjs/passport";
|
|
15
|
+
import { ApiBearerAuth, ApiTags, ApiOkResponse } from "@nestjs/swagger";
|
|
16
|
+
import { StripeCheckoutService } from "./../services/stripe-checkout.service.js";
|
|
17
|
+
import { StripeCustomerPortalResponseDto } from "../models/StripeCustomerPortalResponseDto.js";
|
|
18
|
+
import { StripeCustomerPortalRequestDto } from "../models/StripeCustomerPortalRequestDto.js";
|
|
22
19
|
let StripeCustomerPortalController = class StripeCustomerPortalController {
|
|
23
20
|
stripeService;
|
|
24
21
|
constructor(stripeService) {
|
|
@@ -30,25 +27,25 @@ let StripeCustomerPortalController = class StripeCustomerPortalController {
|
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
29
|
__decorate([
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type:
|
|
30
|
+
UseGuards(AuthGuard("jwt")),
|
|
31
|
+
ApiBearerAuth(),
|
|
32
|
+
Post("customer-portal-session"),
|
|
33
|
+
ApiOkResponse({
|
|
34
|
+
type: StripeCustomerPortalResponseDto,
|
|
38
35
|
description: "The URL to the customer portal",
|
|
39
36
|
})
|
|
40
37
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
41
38
|
,
|
|
42
|
-
__param(0,
|
|
43
|
-
__param(1,
|
|
39
|
+
__param(0, Request()),
|
|
40
|
+
__param(1, Body()),
|
|
44
41
|
__metadata("design:type", Function),
|
|
45
|
-
__metadata("design:paramtypes", [Object,
|
|
42
|
+
__metadata("design:paramtypes", [Object, StripeCustomerPortalRequestDto]),
|
|
46
43
|
__metadata("design:returntype", Promise)
|
|
47
44
|
], StripeCustomerPortalController.prototype, "createCustomerPortalSession", null);
|
|
48
45
|
StripeCustomerPortalController = __decorate([
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
__metadata("design:paramtypes", [
|
|
46
|
+
Controller("payments/stripe"),
|
|
47
|
+
ApiTags("Payments"),
|
|
48
|
+
__metadata("design:paramtypes", [StripeCheckoutService])
|
|
52
49
|
], StripeCustomerPortalController);
|
|
53
|
-
|
|
50
|
+
export { StripeCustomerPortalController };
|
|
54
51
|
//# sourceMappingURL=stripe-customer-portal-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-customer-portal-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-customer-portal-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripe-customer-portal-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-customer-portal-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAE,OAAO,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAC,+BAA+B,EAAC,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAC,8BAA8B,EAAC,MAAM,6CAA6C,CAAC;AAIpF,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACV;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAU/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,2BAA2B,CAClB,OAAwB,EAC3B,IAAoC;QAE5C,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,2BAA2B,CACvD,IAAI,EACJ,OAAO,CAAC,IAAI,CACf,CAAC;IACN,CAAC;CACJ,CAAA;AATS;IARL,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC3B,aAAa,EAAE;IACf,IAAI,CAAC,yBAAyB,CAAC;IAC/B,aAAa,CAAC;QACX,IAAI,EAAE,+BAA+B;QACrC,WAAW,EAAE,gCAAgC;KAChD,CAAC;IACF,6DAA6D;;IAExD,WAAA,OAAO,EAAE,CAAA;IACT,WAAA,IAAI,EAAE,CAAA;;6CAAO,8BAA8B;;iFAM/C;AAnBQ,8BAA8B;IAF1C,UAAU,CAAC,iBAAiB,CAAC;IAC7B,OAAO,CAAC,UAAU,CAAC;qCAE4B,qBAAqB;GADxD,8BAA8B,CAoB1C;SApBY,8BAA8B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RequestWithUser } from "../../
|
|
2
|
-
import { StripeCheckoutService } from "../services/stripe-checkout.service";
|
|
3
|
-
import { StripeCheckoutEvent } from "../entities/stripe-checkout-event.entity";
|
|
1
|
+
import { RequestWithUser } from "../../authorization/models/RequestWithUser.js";
|
|
2
|
+
import { StripeCheckoutService } from "../services/stripe-checkout.service.js";
|
|
3
|
+
import { StripeCheckoutEvent } from "../entities/stripe-checkout-event.entity.js";
|
|
4
4
|
export type EventQuery = {
|
|
5
5
|
take: number;
|
|
6
6
|
skip: number;
|
|
@@ -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,13 @@ 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
|
-
|
|
13
|
+
import { UseGuards, Controller, Request, Get, Query } from "@nestjs/common";
|
|
14
|
+
import { ApiBearerAuth, ApiTags, ApiOkResponse, ApiQuery } from "@nestjs/swagger";
|
|
15
|
+
import { StripeCheckoutService } from "../services/stripe-checkout.service.js";
|
|
16
|
+
import { StripeCheckoutEvent } from "../entities/stripe-checkout-event.entity.js";
|
|
17
|
+
import { ClaimsAuthorisationGuard } from "../../authorization/guards/ClaimsAuthorisationGuard.js";
|
|
18
|
+
import { DefaultAuthGuard } from "../../authorization/guards/DefaultAuthGuard.js";
|
|
19
|
+
import { MandatoryUserClaims } from "../../authorization/guards/MandatoryUserClaims.decorator.js";
|
|
21
20
|
let StripeEventsController = class StripeEventsController {
|
|
22
21
|
stripeService;
|
|
23
22
|
constructor(stripeService) {
|
|
@@ -29,25 +28,25 @@ let StripeEventsController = class StripeEventsController {
|
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
__decorate([
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
MandatoryUserClaims("read:all"),
|
|
32
|
+
Get(),
|
|
33
|
+
ApiQuery({ name: "take", required: true, type: Number }),
|
|
34
|
+
ApiQuery({ name: "skip", required: true, type: Number }),
|
|
35
|
+
ApiOkResponse({ type: StripeCheckoutEvent, isArray: true })
|
|
37
36
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
37
|
,
|
|
39
|
-
__param(0,
|
|
40
|
-
__param(1,
|
|
38
|
+
__param(0, Request()),
|
|
39
|
+
__param(1, Query()),
|
|
41
40
|
__metadata("design:type", Function),
|
|
42
41
|
__metadata("design:paramtypes", [Object, Object]),
|
|
43
42
|
__metadata("design:returntype", Promise)
|
|
44
43
|
], StripeEventsController.prototype, "getLastEvents", null);
|
|
45
44
|
StripeEventsController = __decorate([
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
__metadata("design:paramtypes", [
|
|
45
|
+
UseGuards(DefaultAuthGuard, ClaimsAuthorisationGuard),
|
|
46
|
+
ApiBearerAuth(),
|
|
47
|
+
Controller("payments/stripe/events"),
|
|
48
|
+
ApiTags("Payments"),
|
|
49
|
+
__metadata("design:paramtypes", [StripeCheckoutService])
|
|
51
50
|
], StripeEventsController);
|
|
52
|
-
|
|
51
|
+
export { StripeEventsController };
|
|
53
52
|
//# sourceMappingURL=stripe-events-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-events-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-events-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripe-events-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-events-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAC,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAC,qBAAqB,EAAC,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAC,mBAAmB,EAAC,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAC,wBAAwB,EAAC,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAWzF,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACF;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAQ/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,aAAa,CACJ,OAAwB,EAC1B,KAAiB;QAE1B,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;CACJ,CAAA;AANS;IANL,mBAAmB,CAAC,UAAU,CAAC;IAC/B,GAAG,EAAE;IACL,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,CAAC;IACtD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,CAAC;IACtD,aAAa,CAAC,EAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;IAC1D,6DAA6D;;IAExD,WAAA,OAAO,EAAE,CAAA;IACT,WAAA,KAAK,EAAE,CAAA;;;;2DAGX;AAdQ,sBAAsB;IAJlC,SAAS,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IACrD,aAAa,EAAE;IACf,UAAU,CAAC,wBAAwB,CAAC;IACpC,OAAO,CAAC,UAAU,CAAC;qCAE4B,qBAAqB;GADxD,sBAAsB,CAelC;SAfY,sBAAsB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StripeCheckoutSessionRequestDto } from "./../models/StripeCheckoutSessionRequestDto";
|
|
2
|
-
import { StripeCheckoutService } from "./../services/stripe-checkout.service";
|
|
3
|
-
import { StripeCheckoutSessionResponseDto } from "./../models/StripeCheckoutSessionResponseDto";
|
|
1
|
+
import { StripeCheckoutSessionRequestDto } from "./../models/StripeCheckoutSessionRequestDto.js";
|
|
2
|
+
import { StripeCheckoutService } from "./../services/stripe-checkout.service.js";
|
|
3
|
+
import { StripeCheckoutSessionResponseDto } from "./../models/StripeCheckoutSessionResponseDto.js";
|
|
4
4
|
/**
|
|
5
5
|
* This controller creates checkout sessions for Stripe.
|
|
6
6
|
* It does not require the user to be logged in.
|
|
@@ -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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const stripe_checkout_service_1 = require("./../services/stripe-checkout.service");
|
|
20
|
-
const StripeCheckoutSessionResponseDto_1 = require("./../models/StripeCheckoutSessionResponseDto");
|
|
13
|
+
import { Controller, Post, Body } from "@nestjs/common";
|
|
14
|
+
import { ApiTags, ApiOkResponse } from "@nestjs/swagger";
|
|
15
|
+
import { StripeCheckoutSessionRequestDto } from "./../models/StripeCheckoutSessionRequestDto.js";
|
|
16
|
+
import { StripeCheckoutService } from "./../services/stripe-checkout.service.js";
|
|
17
|
+
import { StripeCheckoutSessionResponseDto } from "./../models/StripeCheckoutSessionResponseDto.js";
|
|
21
18
|
/**
|
|
22
19
|
* This controller creates checkout sessions for Stripe.
|
|
23
20
|
* It does not require the user to be logged in.
|
|
@@ -36,21 +33,21 @@ let StripeUnauthenticatedCheckoutController = class StripeUnauthenticatedCheckou
|
|
|
36
33
|
}
|
|
37
34
|
};
|
|
38
35
|
__decorate([
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
Post("checkout-session-unauthenticated"),
|
|
37
|
+
ApiOkResponse({ type: StripeCheckoutSessionResponseDto })
|
|
41
38
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42
39
|
,
|
|
43
|
-
__param(0,
|
|
40
|
+
__param(0, Body()),
|
|
44
41
|
__metadata("design:type", Function),
|
|
45
|
-
__metadata("design:paramtypes", [
|
|
42
|
+
__metadata("design:paramtypes", [StripeCheckoutSessionRequestDto]),
|
|
46
43
|
__metadata("design:returntype", Promise)
|
|
47
44
|
], StripeUnauthenticatedCheckoutController.prototype, "createCheckoutSession", null);
|
|
48
45
|
StripeUnauthenticatedCheckoutController = __decorate([
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
Controller("payments/stripe"),
|
|
47
|
+
ApiTags("Payments")
|
|
51
48
|
// eslint-disable-next-line @darraghor/nestjs-typed/injectable-should-be-provided
|
|
52
49
|
,
|
|
53
|
-
__metadata("design:paramtypes", [
|
|
50
|
+
__metadata("design:paramtypes", [StripeCheckoutService])
|
|
54
51
|
], StripeUnauthenticatedCheckoutController);
|
|
55
|
-
|
|
52
|
+
export { StripeUnauthenticatedCheckoutController };
|
|
56
53
|
//# sourceMappingURL=stripe-unauthenticated-checkout-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-unauthenticated-checkout-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-unauthenticated-checkout-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripe-unauthenticated-checkout-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-unauthenticated-checkout-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,OAAO,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAC,+BAA+B,EAAC,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAC,qBAAqB,EAAC,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAC,gCAAgC,EAAC,MAAM,iDAAiD,CAAC;AAEjG;;;;;;GAMG;AAII,IAAM,uCAAuC,GAA7C,MAAM,uCAAuC;IACnB;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAK/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,qBAAqB,CACf,gBAAiD;QAEzD,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IACtE,CAAC;CACJ,CAAA;AALS;IAHL,IAAI,CAAC,kCAAkC,CAAC;IACxC,aAAa,CAAC,EAAC,IAAI,EAAE,gCAAgC,EAAC,CAAC;IACxD,6DAA6D;;IAExD,WAAA,IAAI,EAAE,CAAA;;qCAAmB,+BAA+B;;oFAG5D;AAVQ,uCAAuC;IAHnD,UAAU,CAAC,iBAAiB,CAAC;IAC7B,OAAO,CAAC,UAAU,CAAC;IACpB,iFAAiF;;qCAEjC,qBAAqB;GADxD,uCAAuC,CAWnD;SAXY,uCAAuC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RawBodyRequest } from "@nestjs/common";
|
|
2
2
|
import { Queue } from "bull";
|
|
3
3
|
import { Request as ExpressRequest } from "express";
|
|
4
|
-
import { StripeWebhookHandler } from "./../services/stripe-webhook-handler.service";
|
|
5
|
-
import { QueueItemDto } from "../../root-app/models/QueueItemDto";
|
|
4
|
+
import { StripeWebhookHandler } from "./../services/stripe-webhook-handler.service.js";
|
|
5
|
+
import { QueueItemDto } from "../../root-app/models/QueueItemDto.js";
|
|
6
6
|
export declare class StripeWebhookController {
|
|
7
7
|
private readonly stripeWebhookService;
|
|
8
8
|
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,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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
import { InjectQueue } from "@nestjs/bull";
|
|
14
|
+
import { Controller, Get, Post, Req, UseGuards, } from "@nestjs/common";
|
|
15
|
+
import { ApiTags, ApiOkResponse, ApiBadRequestResponse, ApiBearerAuth, } from "@nestjs/swagger";
|
|
16
|
+
import { StripeWebhookHandler } from "./../services/stripe-webhook-handler.service.js";
|
|
17
|
+
import { QueueItemDto } from "../../root-app/models/QueueItemDto.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
|
/*
|
|
23
22
|
* This is a controller that is used to receive webhooks from Stripe.
|
|
24
23
|
* It is not used to send requests to Stripe.
|
|
@@ -73,43 +72,43 @@ let StripeWebhookController = class StripeWebhookController {
|
|
|
73
72
|
}
|
|
74
73
|
};
|
|
75
74
|
__decorate([
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
Post("webhook-receiver"),
|
|
76
|
+
ApiOkResponse(),
|
|
77
|
+
ApiBadRequestResponse()
|
|
79
78
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars, unicorn/prevent-abbreviations
|
|
80
79
|
,
|
|
81
|
-
__param(0,
|
|
80
|
+
__param(0, Req()),
|
|
82
81
|
__metadata("design:type", Function),
|
|
83
82
|
__metadata("design:paramtypes", [Object]),
|
|
84
83
|
__metadata("design:returntype", Promise)
|
|
85
84
|
], StripeWebhookController.prototype, "webhookReceiver", null);
|
|
86
85
|
__decorate([
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
UseGuards(DefaultAuthGuard, ClaimsAuthorisationGuard),
|
|
87
|
+
ApiBearerAuth(),
|
|
88
|
+
MandatoryUserClaims("read:all"),
|
|
89
|
+
Get("peekalljobs"),
|
|
90
|
+
ApiOkResponse({ type: [QueueItemDto] }),
|
|
92
91
|
__metadata("design:type", Function),
|
|
93
92
|
__metadata("design:paramtypes", []),
|
|
94
93
|
__metadata("design:returntype", Promise)
|
|
95
94
|
], StripeWebhookController.prototype, "peekQueueJobs", null);
|
|
96
95
|
__decorate([
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
UseGuards(DefaultAuthGuard, ClaimsAuthorisationGuard),
|
|
97
|
+
ApiBearerAuth(),
|
|
98
|
+
MandatoryUserClaims("read:all"),
|
|
99
|
+
Get("peekfailedjobs")
|
|
101
100
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
102
101
|
,
|
|
103
|
-
|
|
102
|
+
ApiOkResponse({ type: [QueueItemDto] }),
|
|
104
103
|
__metadata("design:type", Function),
|
|
105
104
|
__metadata("design:paramtypes", []),
|
|
106
105
|
__metadata("design:returntype", Promise)
|
|
107
106
|
], StripeWebhookController.prototype, "peekFailedQueueJobs", null);
|
|
108
107
|
StripeWebhookController = __decorate([
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
__param(1,
|
|
112
|
-
__metadata("design:paramtypes", [
|
|
108
|
+
Controller("payments/stripe"),
|
|
109
|
+
ApiTags("Payments"),
|
|
110
|
+
__param(1, InjectQueue("stripe-events")),
|
|
111
|
+
__metadata("design:paramtypes", [StripeWebhookHandler, Object])
|
|
113
112
|
], StripeWebhookController);
|
|
114
|
-
|
|
113
|
+
export { StripeWebhookController };
|
|
115
114
|
//# sourceMappingURL=stripe-webhook-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-webhook-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-webhook-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripe-webhook-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-webhook-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,EACH,UAAU,EACV,GAAG,EACH,IAAI,EAEJ,GAAG,EACH,SAAS,GACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACH,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,aAAa,GAChB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAC,oBAAoB,EAAC,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAC,wBAAwB,EAAC,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAEhG;;;;GAIG;AAGI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAEX;IAET;IAHZ,YACqB,oBAA0C,EAEnD,KAAY;QAFH,yBAAoB,GAApB,oBAAoB,CAAsB;QAEnD,UAAK,GAAL,KAAK,CAAO;IACrB,CAAC;IAEJ,4DAA4D;IAKtD,AADN,4FAA4F;IAC5F,KAAK,CAAC,eAAe,CAAQ,GAAmC;QAC5D,OAAO,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;IAOK,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,QAAQ,EAAE;gBACrB,cAAc,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,IAAI,CAAC,CAAC;gBAC9C,mEAAmE;gBACnE,MAAM,EAAE,GAAG,CAAC,WAAW;gBACvB,mEAAmE;gBACnE,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,UAAU,EAAE,GAAG,CAAC,YAAY;aAC/B,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAQK,AAAN,KAAK,CAAC,mBAAmB;QACrB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACpB,OAAO;gBACH,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE;gBACrB,cAAc,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,IAAI,CAAC,CAAC;gBAC9C,mEAAmE;gBACnE,MAAM,EAAE,GAAG,CAAC,WAAW;gBACvB,mEAAmE;gBACnE,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,UAAU,EAAE,GAAG,CAAC,YAAY;aAC/B,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AArDS;IAJL,IAAI,CAAC,kBAAkB,CAAC;IACxB,aAAa,EAAE;IACf,qBAAqB,EAAE;IACxB,4FAA4F;;IACrE,WAAA,GAAG,EAAE,CAAA;;;;8DAE3B;AAOK;IALL,SAAS,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IACrD,aAAa,EAAE;IACf,mBAAmB,CAAC,UAAU,CAAC;IAC/B,GAAG,CAAC,aAAa,CAAC;IAClB,aAAa,CAAC,EAAC,IAAI,EAAE,CAAC,YAAY,CAAC,EAAC,CAAC;;;;4DAsBrC;AAQK;IANL,SAAS,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IACrD,aAAa,EAAE;IACf,mBAAmB,CAAC,UAAU,CAAC;IAC/B,GAAG,CAAC,gBAAgB,CAAC;IACtB,mEAAmE;;IAClE,aAAa,CAAC,EAAC,IAAI,EAAE,CAAC,YAAY,CAAC,EAAC,CAAC;;;;kEAerC;AAhEQ,uBAAuB;IAFnC,UAAU,CAAC,iBAAiB,CAAC;IAC7B,OAAO,CAAC,UAAU,CAAC;IAIX,WAAA,WAAW,CAAC,eAAe,CAAC,CAAA;qCADU,oBAAoB;GAFtD,uBAAuB,CAiEnC;SAjEY,uBAAuB"}
|
|
@@ -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,11 +7,9 @@ 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
|
-
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
10
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
|
+
import { Exclude, Expose } from "class-transformer";
|
|
12
|
+
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, } from "typeorm";
|
|
16
13
|
let StripeCheckoutEvent = class StripeCheckoutEvent {
|
|
17
14
|
id;
|
|
18
15
|
createdDate;
|
|
@@ -26,44 +23,44 @@ let StripeCheckoutEvent = class StripeCheckoutEvent {
|
|
|
26
23
|
}
|
|
27
24
|
};
|
|
28
25
|
__decorate([
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
PrimaryGeneratedColumn(),
|
|
27
|
+
ApiProperty(),
|
|
31
28
|
__metadata("design:type", Number)
|
|
32
29
|
], StripeCheckoutEvent.prototype, "id", void 0);
|
|
33
30
|
__decorate([
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
CreateDateColumn(),
|
|
32
|
+
ApiProperty(),
|
|
36
33
|
__metadata("design:type", Date)
|
|
37
34
|
], StripeCheckoutEvent.prototype, "createdDate", void 0);
|
|
38
35
|
__decorate([
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
ApiPropertyOptional(),
|
|
37
|
+
Column({ nullable: true }),
|
|
41
38
|
__metadata("design:type", String)
|
|
42
39
|
], StripeCheckoutEvent.prototype, "clientReferenceId", void 0);
|
|
43
40
|
__decorate([
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
ApiProperty(),
|
|
42
|
+
Column(),
|
|
46
43
|
__metadata("design:type", String)
|
|
47
44
|
], StripeCheckoutEvent.prototype, "stripeSessionId", void 0);
|
|
48
45
|
__decorate([
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
ApiProperty(),
|
|
47
|
+
Column(),
|
|
51
48
|
__metadata("design:type", String)
|
|
52
49
|
], StripeCheckoutEvent.prototype, "stripeObjectType", void 0);
|
|
53
50
|
__decorate([
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
Exclude(),
|
|
52
|
+
Column("jsonb", { name: "stripeObject", nullable: false }),
|
|
56
53
|
__metadata("design:type", Object)
|
|
57
54
|
], StripeCheckoutEvent.prototype, "stripeData", void 0);
|
|
58
55
|
__decorate([
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
ApiProperty({ type: String, name: "stripeDataAsString" }),
|
|
57
|
+
Expose({ name: "stripeDataAsString" }),
|
|
61
58
|
__metadata("design:type", Function),
|
|
62
59
|
__metadata("design:paramtypes", []),
|
|
63
60
|
__metadata("design:returntype", String)
|
|
64
61
|
], StripeCheckoutEvent.prototype, "getStripeDataAsJsonString", null);
|
|
65
62
|
StripeCheckoutEvent = __decorate([
|
|
66
|
-
|
|
63
|
+
Entity()
|
|
67
64
|
], StripeCheckoutEvent);
|
|
68
|
-
|
|
65
|
+
export { StripeCheckoutEvent };
|
|
69
66
|
//# sourceMappingURL=stripe-checkout-event.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-checkout-event.entity.js","sourceRoot":"","sources":["../../../src/stripe-client/entities/stripe-checkout-event.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripe-checkout-event.entity.js","sourceRoot":"","sources":["../../../src/stripe-client/entities/stripe-checkout-event.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAC,OAAO,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EACH,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,sBAAsB,GACzB,MAAM,SAAS,CAAC;AAGV,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAG5B,EAAE,CAAU;IAIZ,WAAW,CAAQ;IAInB,iBAAiB,CAAU;IAI3B,eAAe,CAAU;IAIzB,gBAAgB,CAAU;IAI1B,UAAU,CAAM;IAEhB,6CAA6C;IAG7C,yBAAyB;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AA9BG;IAAC,sBAAsB,EAAE;IACxB,WAAW,EAAE;;+CACF;AAEZ;IAAC,gBAAgB,EAAE;IAClB,WAAW,EAAE;8BACA,IAAI;wDAAC;AAEnB;IAAC,mBAAmB,EAAE;IACrB,MAAM,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;8DACE;AAE3B;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;;4DACgB;AAEzB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;;6DACiB;AAE1B;IAAC,OAAO,EAAE;IACT,MAAM,CAAC,OAAO,EAAE,EAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;;uDACzC;AAGhB;IAAC,WAAW,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAC,CAAC;IACvD,MAAM,CAAC,EAAC,IAAI,EAAE,oBAAoB,EAAC,CAAC;;;;oEAGpC;AA9BQ,mBAAmB;IAD/B,MAAM,EAAE;GACI,mBAAmB,CA+B/B;SA/BY,mBAAmB"}
|
|
@@ -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,23 +7,20 @@ 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
|
-
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class StripeCheckoutLineItem {
|
|
10
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
11
|
+
import { IsInt, IsString } from "class-validator";
|
|
12
|
+
export class StripeCheckoutLineItem {
|
|
16
13
|
price;
|
|
17
14
|
quantity;
|
|
18
15
|
}
|
|
19
16
|
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
ApiProperty(),
|
|
18
|
+
IsString(),
|
|
22
19
|
__metadata("design:type", String)
|
|
23
20
|
], StripeCheckoutLineItem.prototype, "price", void 0);
|
|
24
21
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
ApiProperty(),
|
|
23
|
+
IsInt(),
|
|
27
24
|
__metadata("design:type", Number)
|
|
28
25
|
], StripeCheckoutLineItem.prototype, "quantity", void 0);
|
|
29
|
-
exports.StripeCheckoutLineItem = StripeCheckoutLineItem;
|
|
30
26
|
//# sourceMappingURL=StripeCheckoutLineItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StripeCheckoutLineItem.js","sourceRoot":"","sources":["../../../src/stripe-client/models/StripeCheckoutLineItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StripeCheckoutLineItem.js","sourceRoot":"","sources":["../../../src/stripe-client/models/StripeCheckoutLineItem.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAEhD,MAAM,OAAO,sBAAsB;IAG/B,KAAK,CAAU;IAIf,QAAQ,CAAU;CACrB;AAPG;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACI;AAEf;IAAC,WAAW,EAAE;IACb,KAAK,EAAE;;wDACU"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// this just exists to avoid having to import the stripe lib directly
|
|
3
2
|
// not sure if a great idea but let's see!
|
|
4
3
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -10,13 +9,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
9
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
10
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const StripeCheckoutLineItem_1 = require("./StripeCheckoutLineItem");
|
|
19
|
-
class StripeCheckoutSessionRequestDto {
|
|
12
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
13
|
+
import { Type } from "class-transformer";
|
|
14
|
+
import { IsArray, IsIn, IsOptional, IsString, ValidateNested, } from "class-validator";
|
|
15
|
+
import { StripeCheckoutLineItem } from "./StripeCheckoutLineItem.js";
|
|
16
|
+
export class StripeCheckoutSessionRequestDto {
|
|
20
17
|
organisationId;
|
|
21
18
|
lineItems;
|
|
22
19
|
// eslint-disable-next-line @darraghor/nestjs-typed/validated-non-primitive-property-needs-type-decorator
|
|
@@ -25,35 +22,34 @@ class StripeCheckoutSessionRequestDto {
|
|
|
25
22
|
cancelFrontendPath;
|
|
26
23
|
}
|
|
27
24
|
__decorate([
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
ApiPropertyOptional(),
|
|
26
|
+
IsOptional(),
|
|
30
27
|
__metadata("design:type", String)
|
|
31
28
|
], StripeCheckoutSessionRequestDto.prototype, "organisationId", void 0);
|
|
32
29
|
__decorate([
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
ApiProperty({ isArray: true, type: StripeCheckoutLineItem }),
|
|
31
|
+
IsArray(),
|
|
32
|
+
ValidateNested({ each: true }),
|
|
33
|
+
Type(() => StripeCheckoutLineItem),
|
|
37
34
|
__metadata("design:type", Array)
|
|
38
35
|
], StripeCheckoutSessionRequestDto.prototype, "lineItems", void 0);
|
|
39
36
|
__decorate([
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
ApiProperty({ type: String }),
|
|
38
|
+
IsIn(["subscription", "payment", "setup"]),
|
|
42
39
|
__metadata("design:type", String)
|
|
43
40
|
], StripeCheckoutSessionRequestDto.prototype, "mode", void 0);
|
|
44
41
|
__decorate([
|
|
45
|
-
|
|
42
|
+
ApiProperty({
|
|
46
43
|
description: "The URL to which Stripe should redirect the customer after payment. This is appended to the host configured in the StripeClientConfigurationService",
|
|
47
44
|
}),
|
|
48
|
-
|
|
45
|
+
IsString(),
|
|
49
46
|
__metadata("design:type", String)
|
|
50
47
|
], StripeCheckoutSessionRequestDto.prototype, "successFrontendPath", void 0);
|
|
51
48
|
__decorate([
|
|
52
|
-
|
|
49
|
+
ApiPropertyOptional({
|
|
53
50
|
description: "The URL to which Stripe should redirect the customer after payment cancellation. This is appended to the host configured in the StripeClientConfigurationService",
|
|
54
51
|
}),
|
|
55
|
-
|
|
52
|
+
IsOptional(),
|
|
56
53
|
__metadata("design:type", String)
|
|
57
54
|
], StripeCheckoutSessionRequestDto.prototype, "cancelFrontendPath", void 0);
|
|
58
|
-
exports.StripeCheckoutSessionRequestDto = StripeCheckoutSessionRequestDto;
|
|
59
55
|
//# sourceMappingURL=StripeCheckoutSessionRequestDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StripeCheckoutSessionRequestDto.js","sourceRoot":"","sources":["../../../src/stripe-client/models/StripeCheckoutSessionRequestDto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StripeCheckoutSessionRequestDto.js","sourceRoot":"","sources":["../../../src/stripe-client/models/StripeCheckoutSessionRequestDto.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,0CAA0C;;;;;;;;;;AAE1C,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EACH,OAAO,EACP,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AAEnE,MAAM,OAAO,+BAA+B;IAGxC,cAAc,CAAU;IAMxB,SAAS,CAA4B;IAErC,yGAAyG;IAGzG,IAAI,CAAwC;IAO5C,mBAAmB,CAAU;IAO7B,kBAAkB,CAAU;CAC/B;AA5BG;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;uEACW;AAExB;IAAC,WAAW,CAAC,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAC,CAAC;IAC1D,OAAO,EAAE;IACT,cAAc,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;IAC5B,IAAI,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;;kEACE;AAGrC;IAAC,WAAW,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;IAC3B,IAAI,CAAC,CAAC,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;;6DACC;AAE5C;IAAC,WAAW,CAAC;QACT,WAAW,EACP,qJAAqJ;KAC5J,CAAC;IACD,QAAQ,EAAE;;4EACkB;AAE7B;IAAC,mBAAmB,CAAC;QACjB,WAAW,EACP,kKAAkK;KACzK,CAAC;IACD,UAAU,EAAE;;2EACe"}
|