-
Notifications
You must be signed in to change notification settings - Fork 2
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 #210 from kbase/URO-208
URO-208: orcidlink main view
- Loading branch information
Showing
50 changed files
with
1,978 additions
and
236 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,73 @@ | ||
export interface ORCIDAuthPublic { | ||
expires_in: number; | ||
name: string; | ||
orcid: string; | ||
scope: string; | ||
} | ||
|
||
export interface LinkRecordPublic { | ||
created_at: number; | ||
expires_at: number; | ||
retires_at: number; | ||
username: string; | ||
orcid_auth: ORCIDAuthPublic; | ||
} | ||
|
||
export interface ORCIDAuthPublicNonOwner { | ||
orcid: string; | ||
name: string; | ||
} | ||
|
||
export interface LinkRecordPublicNonOwner { | ||
username: string; | ||
orcid_auth: ORCIDAuthPublicNonOwner; | ||
} | ||
|
||
// ORCID User Profile (our version) | ||
|
||
export interface Affiliation { | ||
name: string; | ||
role: string; | ||
startYear: string; | ||
endYear: string | null; | ||
} | ||
|
||
export interface ORCIDFieldGroupBase { | ||
private: boolean; | ||
} | ||
|
||
export interface ORCIDFieldGroupPrivate extends ORCIDFieldGroupBase { | ||
private: true; | ||
fields: null; | ||
} | ||
|
||
export interface ORCIDFieldGroupAccessible<T> extends ORCIDFieldGroupBase { | ||
private: false; | ||
fields: T; | ||
} | ||
|
||
export type ORCIDFieldGroup<T> = | ||
| ORCIDFieldGroupPrivate | ||
| ORCIDFieldGroupAccessible<T>; | ||
|
||
export interface ORCIDNameFieldGroup { | ||
firstName: string; | ||
lastName: string | null; | ||
creditName: string | null; | ||
} | ||
|
||
export interface ORCIDBiographyFieldGroup { | ||
bio: string; | ||
} | ||
|
||
export interface ORCIDEmailFieldGroup { | ||
emailAddresses: Array<string>; | ||
} | ||
|
||
export interface ORCIDProfile { | ||
orcidId: string; | ||
nameGroup: ORCIDFieldGroup<ORCIDNameFieldGroup>; | ||
biographyGroup: ORCIDFieldGroup<ORCIDBiographyFieldGroup>; | ||
emailGroup: ORCIDFieldGroup<ORCIDEmailFieldGroup>; | ||
employment: Array<Affiliation>; | ||
} |
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
Oops, something went wrong.