Skip to content

SudoSOS Back-end API / internal/controllers / InactiveAdministrativeCostController

Class: InactiveAdministrativeCostController ​

The BaseController class is responsible for:

  • Storing route definitions.
  • Generating router objects based on the policy.

Extends ​

Constructors ​

Constructor ​

ts
new InactiveAdministrativeCostController(options): InactiveAdministrativeCostController;

Creates a new InactiveAdministrativeCost controller instance

Parameters ​

ParameterTypeDescription
optionsBaseControllerOptionsThe options passed to the base controller.

Returns ​

InactiveAdministrativeCostController

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 ​

checkInactiveUsers() ​

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

GET /inactive-administrative-costs/eligible-users

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - List of eligible users

Operation Id ​

getInactiveAdministrativeCostsEligibleUsers

Tags ​

inactiveAdministrativeCosts - Operations of the inactive administrative cost controller

Security ​

JWT


createInactiveAdministrativeCost() ​

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

POST /inactive-administrative-costs

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - The created inactive administrative cost entity

Operation Id ​

createInactiveAdministrativeCosts

Tags ​

inactiveAdministrativeCosts - Operations of the inactive administrative cost controller

Security ​

JWT


deleteInactiveAdministrativeCost() ​

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

DELETE /inactive-administrative-costs/

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

404 - Invoice not found

Operation Id ​

deleteInactiveAdministrativeCost

Tags ​

inactiveAdministrativeCosts - Operations of the inactive administrative cost controller

Security ​

JWT


getAllInactiveAdministrativeCosts() ​

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

GET /inactive-administrative-costs

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - All existing inactive administrative costs

Operation Id ​

getAllInactiveAdministrativeCosts

Tags ​

inactiveAdministrativeCosts - Operations of the invoices controller

Security ​

JWT


getInactiveAdministrativeCostReport() ​

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

GET /inactive-administrative-costs/report

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - The requested report

Operation Id ​

getInactiveAdministrativeCostReport

Tags ​

inactiveAdministrativeCosts - Operations of the inactive administrative cost controller

Security ​

JWT


getInactiveAdministrativeCostReportPdf() ​

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

GET /inactive-administrative-costs/report/pdf

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - The requested report - application/pdf

Operation Id ​

getInactiveAdministrativeCostReportPdf

Tags ​

inactiveAdministrativeCosts - Operations of the inactive administrative cost controller

Security ​

JWT


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


getSingleInactiveAdministrativeCost() ​

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

GET /inactive-administrative-costs/

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - All existing inactive administrative cost

Operation Id ​

getInactiveAdministrativeCosts

Tags ​

inactiveAdministrativeCosts - Operations of the invoices controller

Security ​

JWT


handoutInactiveAdministrativeCost() ​

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

POST /inactive-administrative-costs/handout

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

204 - Success

Operation Id ​

handoutInactiveAdministrativeCostsUsers

Tags ​

inactiveAdministrativeCosts - Operations of the inactive administrative cost controller

Security ​

JWT


notifyInactiveUsers() ​

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

POST /inactive-administrative-costs/notify

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

204 - Success

Operation Id ​

notifyInactiveAdministrativeCostsUsers

Tags ​

inactiveAdministrativeCosts - Operations of the inactive administrative cost controller

Security ​

JWT