Skip to content

SudoSOS Back-end API / events / EventShiftController

Class: EventShiftController ​

Deprecated ​

Events are out of scope for SudoSOS. Delete from 01/11/2026.

Extends ​

Constructors ​

Constructor ​

ts
new EventShiftController(options): EventShiftController;

Create a new user controller instance.

Parameters ​

ParameterTypeDescription
optionsBaseControllerOptionsThe options passed to the base controller.

Returns ​

EventShiftController

Overrides ​

BaseController.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
roleManagerprotectedRoleManagerA reference to the role manager passed in the base controller options.BaseController.roleManager
specificationpublicSwaggerSpecificationA reference to the swagger specification passed in the base controller options.BaseController.specification

Methods ​

createShift() ​

ts
createShift(req, res): Promise<void>;

POST /eventshifts

Parameters ​

ParameterType
reqRequestWithToken
resResponse

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() ​

ts
deleteShift(req, res): Promise<void>;

DELETE /eventshifts/

Parameters ​

ParameterType
reqRequestWithToken
resResponse

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() ​

ts
getAllShifts(req, res): Promise<void>;

GET /eventshifts

Parameters ​

ParameterType
reqRequestWithToken
resResponse

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() ​

ts
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 ​

Policy

The policy of this controller.

Overrides ​

BaseController.getPolicy


getRouter() ​

ts
getRouter(): Router;

Returns ​

Router

the router used by this controller.

Inherited from ​

BaseController.getRouter


getShiftSelectedCount() ​

ts
getShiftSelectedCount(req, res): Promise<void>;

GET /eventshifts/{id}/counts

Parameters ​

ParameterType
reqRequestWithToken
resResponse

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() ​

ts
updateShift(req, res): Promise<void>;

PATCH /eventshifts/

Parameters ​

ParameterType
reqRequestWithToken
resResponse

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.