Skip to content

Bvps 533 access request status update time and update by #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/build/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ const models: TsoaRoute.Models = {
"requestStatus": {"ref":"requestStatusType","required":true},
"rejectionReason": {"dataType":"string","required":true},
"createdAt": {"dataType":"string","required":true},
"updatedAt": {"dataType":"string","required":true},
"updatedBy": {"dataType":"string","required":true},
},
"additionalProperties": false,
},
Expand Down
10 changes: 9 additions & 1 deletion src/build/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"updatedBy": {
"type": "string"
}
},
"required": [
Expand All @@ -272,7 +278,9 @@
"requestReason",
"requestStatus",
"rejectionReason",
"createdAt"
"createdAt",
"updatedAt",
"updatedBy"
],
"type": "object",
"additionalProperties": false
Expand Down
2 changes: 2 additions & 0 deletions src/db/AccessRequest.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ export async function getRequestList(
requestReason: true,
rejectionReason: true,
createdAt: true,
updatedBy: true,
updatedAt: true,
},
where: where ? where : undefined,
order: { createdAt: 'ASC' as FindOptionsOrderValue },
Expand Down
8 changes: 8 additions & 0 deletions src/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ export interface accessRequestResponseBody {
"firstName": "John",
"lastName": "Doe",
"createdAt": ""2023-08-24T15:06:27.269Z",
"updatedAt": "2023-10-30T03:40:41.166Z",
"updatedBy": null,
"requestReason": "To get access to site",
"rejectionReason": "Information needed"
}
Expand All @@ -498,6 +500,8 @@ export interface accessRequest {
requestReason: string;
rejectionReason: string;
createdAt: string;
updatedAt: string;
updatedBy: string;
}

/**
Expand All @@ -515,6 +519,8 @@ export interface accessRequest {
"lastName": "Doe",
"requestStatus": "NotGranted",
"createdAt": ""2023-08-24T15:06:27.269Z",
"updatedAt": "2023-10-30T03:40:41.166Z",
"updatedBy": null,
"requestReason": "To get access to site",
"rejectionReason": "Information needed"
}
Expand All @@ -533,6 +539,8 @@ export interface accessRequestList {
requestStatus: requestStatusType;
rejectionReason: string;
createdAt: string;
updatedAt: string;
updatedBy: string;
}

/**
Expand Down