-
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.
collection names constant object generation
- Loading branch information
1 parent
71897b7
commit b750e97
Showing
4 changed files
with
71 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
export const InputFileArg = '--input' | ||
export const OutputDirArg = '--outputDir' | ||
export const InputFileArg = '--input'; | ||
export const OutputDirArg = '--outputDir'; | ||
|
||
export const InputFileSortArg = '-i'; | ||
export const OutputDirSortArg = '-o'; | ||
|
||
export const AllPTTArgs = [ | ||
InputFileArg, | ||
InputFileSortArg, | ||
OutputDirArg, | ||
OutputDirSortArg | ||
] | ||
InputFileArg, | ||
InputFileSortArg, | ||
OutputDirArg, | ||
OutputDirSortArg, | ||
]; | ||
|
||
export const ValueDoesNotExistIndex = -1; | ||
|
||
export const ExportInterfaceToken = 'export interface' | ||
export const ExpandRelationToken = 'expand' | ||
export const ExportInterfaceToken = 'export interface'; | ||
export const ExpandRelationToken = 'expand'; | ||
export const ExportConstantObjectForCollectionNames = | ||
'export const Collections ='; |
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 |
---|---|---|
@@ -1,38 +1,52 @@ | ||
export interface Users { | ||
name?: string; | ||
avatar?: string; | ||
expand: {}; | ||
role: "student" | "teacher" | "departmentAdmin" | "collegeAdmin" | "guest"; | ||
code: string; | ||
expand: { | ||
department?: Departments; | ||
"colleges(admin)"?: Colleges[]; | ||
"departments(admin)"?: Departments[]; | ||
"attendances(student)"?: Attendances[]; | ||
}; | ||
} | ||
export interface Colleges { | ||
name?: string; | ||
code?: string; | ||
name: string; | ||
code: string; | ||
expand: { | ||
field: Test; | ||
"departments(_college)": Departments; | ||
admin?: Users; | ||
"departments(college)"?: Departments[]; | ||
}; | ||
} | ||
export interface Departments { | ||
name?: string; | ||
code?: string; | ||
name: string; | ||
code: string; | ||
expand: { | ||
_college: Colleges; | ||
"test(department)": Test; | ||
admin?: Users; | ||
college?: Colleges; | ||
"users(department)"?: Users[]; | ||
"classes(department)"?: Classes[]; | ||
}; | ||
} | ||
export interface Test { | ||
field?: boolean; | ||
field1?: "one" | "two" | "three"; | ||
field2?: any; | ||
field3?: string; | ||
export interface Classes { | ||
name: string; | ||
code: string; | ||
expand: { | ||
department: Departments; | ||
"colleges(field)": Colleges; | ||
department?: Departments; | ||
"attendances(class)"?: Attendances[]; | ||
}; | ||
} | ||
export interface AllFields { | ||
field?: number; | ||
field1?: string; | ||
field2?: Date; | ||
field3?: any; | ||
expand: {}; | ||
export interface Attendances { | ||
present?: boolean; | ||
expand: { | ||
class?: Classes; | ||
student?: Users; | ||
}; | ||
} | ||
export const Collections = { | ||
Users: "users", | ||
Colleges: "colleges", | ||
Departments: "departments", | ||
Classes: "classes", | ||
Attendances: "attendances", | ||
}; |