mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 15:17:41 +00:00
Add Invite User Module and Update User and Space Entities
This commit introduces a new module for handling user invitations, including DTOs, entities, and repositories. It also updates the User and Space entities to include relationships with the new Invite User entities.
This commit is contained in:
@ -721,4 +721,24 @@ export class ControllerRoute {
|
||||
'This endpoint deletes a user’s subscription for device messages.';
|
||||
};
|
||||
};
|
||||
static INVITE_USER = class {
|
||||
public static readonly ROUTE = 'invite-user';
|
||||
static ACTIONS = class {
|
||||
public static readonly CREATE_USER_INVITATION_SUMMARY =
|
||||
'Create user invitation';
|
||||
|
||||
public static readonly CREATE_USER_INVITATION_DESCRIPTION =
|
||||
'This endpoint creates an invitation for a user to assign to role and spaces.';
|
||||
};
|
||||
};
|
||||
static PERMISSION = class {
|
||||
public static readonly ROUTE = 'permission';
|
||||
static ACTIONS = class {
|
||||
public static readonly GET_PERMISSION_BY_ROLE_SUMMARY =
|
||||
'Get permissions by role';
|
||||
|
||||
public static readonly GET_PERMISSION_BY_ROLE_DESCRIPTION =
|
||||
'This endpoint retrieves the permissions associated with a specific role.';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user