SudoSOS Back-end API / events / EventShiftController
Class: EventShiftController ​
Deprecated ​
Events are out of scope for SudoSOS. Delete from 01/11/2026.
Extends ​
Constructors ​
Constructor ​
new EventShiftController(options): EventShiftController;Create a new user controller instance.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
options | BaseControllerOptions | The options passed to the base controller. |
Returns ​
EventShiftController
Overrides ​
Properties ​
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
roleManager | protected | RoleManager | A reference to the role manager passed in the base controller options. | BaseController.roleManager |
specification | public | SwaggerSpecification | A reference to the swagger specification passed in the base controller options. | BaseController.specification |
Methods ​
createShift() ​
createShift(req, res): Promise<void>;POST /eventshifts
Parameters ​
| Parameter | Type |
|---|---|
req | RequestWithToken |
res | Response |
Returns ​
Promise<void>
200 - Created event shift
Tags ​
events - Operations of the event controller
Operation Id ​
createEventShift
Security ​
JWT
Deprecated ​
Events are out of scope for SudoSOS. Delete from 01/11/2026.
deleteShift() ​
deleteShift(req, res): Promise<void>;DELETE /eventshifts/
Parameters ​
| Parameter | Type |
|---|---|
req | RequestWithToken |
res | Response |
Returns ​
Promise<void>
204 - Success
Tags ​
events - Operations of the event controller
Operation Id ​
deleteEventShift
Security ​
JWT
Deprecated ​
Events are out of scope for SudoSOS. Delete from 01/11/2026.
getAllShifts() ​
getAllShifts(req, res): Promise<void>;GET /eventshifts
Parameters ​
| Parameter | Type |
|---|---|
req | RequestWithToken |
res | Response |
Returns ​
Promise<void>
200 - All existing event shifts
Tags ​
events - Operations of the event controller
Operation Id ​
getAllEventShifts
Security ​
JWT
Deprecated ​
Events are out of scope for SudoSOS. Delete from 01/11/2026.
getPolicy() ​
getPolicy(): Policy;Gets the policy defined by child classes. This policy includes all routes that the controller accepts, the authorization middleware, and the final handler function for every route.
Returns ​
The policy of this controller.
Overrides ​
getRouter() ​
getRouter(): Router;Returns ​
Router
the router used by this controller.
Inherited from ​
getShiftSelectedCount() ​
getShiftSelectedCount(req, res): Promise<void>;GET /eventshifts/{id}/counts
Parameters ​
| Parameter | Type |
|---|---|
req | RequestWithToken |
res | Response |
Returns ​
Promise<void>
200 - All existing event shifts
Tags ​
events - Operations of the event controller
Operation Id ​
getEventShiftCount
Security ​
JWT
Deprecated ​
Events are out of scope for SudoSOS. Delete from 01/11/2026.
updateShift() ​
updateShift(req, res): Promise<void>;PATCH /eventshifts/
Parameters ​
| Parameter | Type |
|---|---|
req | RequestWithToken |
res | Response |
Returns ​
Promise<void>
200 - Created event shift
Tags ​
events - Operations of the event controller
Operation Id ​
updateEventShift
Security ​
JWT
Deprecated ​
Events are out of scope for SudoSOS. Delete from 01/11/2026.