forked from Code-4-Community/scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from Code-4-Community/gi-43-post-application-f…
…inal GI-43 POST NEW APPLICATION
- Loading branch information
Showing
5 changed files
with
104 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export type NewApplicationInput = { | ||
appId: number; // Optional if auto-generated | ||
userId: number; | ||
siteId: number; | ||
names: string[]; // Array with empty string by default if not provided | ||
status: ApplicationStatus; // Defaults to "PENDING" | ||
dateApplied: string; // Defaults to an ISO string if not provided | ||
isFirstApplication: boolean; | ||
}; | ||
|
||
export enum ApplicationStatus { | ||
APPROVED = 'Approved', | ||
PENDING = 'Pending', | ||
DENIED = 'Denied', | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters