This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TheoDurr
reviewed
Oct 26, 2023
TheoDurr
reviewed
Oct 26, 2023
TheoDurr
reviewed
Oct 26, 2023
TheoDurr
suggested changes
Oct 26, 2023
(not supported by matrixes)
TheoDurr
previously approved these changes
Oct 26, 2023
TheoDurr
approved these changes
Oct 26, 2023
Juknum
added
the
status: approved
The issue has been verified and is ready to be worked on
label
Nov 2, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
status: approved
The issue has been verified and is ready to be worked on
type: feature
The issue is a request for new functionality including changes, enhancements, refactors, etc
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Implementation of most generics endpoints for the API.
Removed
multipart/form-data
requests in GraphQL.Added
Permissions
Decorators
@GuardPermissions
: Decorator to check if the request user has the required permissions to access the endpoint.@GuardSelfParam
: Decorator to check if the request user is the owner of the requested resource.@GuardSelfOrPermissions
: Decorator to check if the request user has the required permissions or if he is the owner of the requested resource.@GuardSubscribed
: Decorator to check if the request user is subscribed.@GuardSelfOrSubscribed
: Decorator to check if the request user is the owner of the requested resource or if he is subscribed.@GuardSelfOrSubscribed
: Decorator to check if the request user is the owner of the requested resource or if he is subscribed or if he has the required permissions.Permissions
src/exported/api/constants/perms.ts
file.PermissionsService
)Roles
RolesService
)revoked
field totrue
). This will revoke the role for all users that have it assigned.Authentification
Authorization
header.token
query parameter. This token is used to confirm the email address of the user.Logs
Promotions
Users
SUBSCRIBER
visibility group. This means that only subscribed users can access them (owner or admin can access them too, see Files section).Files
Translations
@nestjs/i18n
module and the translate serviceTranslateService
, the source files are in thesrc/i18n/en-US
folder.Example on how to add and use a translation
Swagger
http://localhost:3000/
.Linked PRs