feat: add go users exporter
This commit is contained in:
		
							parent
							
								
									6388e3127d
								
							
						
					
					
						commit
						41e620ad03
					
				
					 7 changed files with 629 additions and 7 deletions
				
			
		|  | @ -1,13 +1,49 @@ | |||
| export type User = { | ||||
| export type PartialUser = { | ||||
| 	id: string; | ||||
| 	username: string; | ||||
| 	display_name: string | null; | ||||
| 	display_name?: string | null; | ||||
| 	avatar_url?: string | null; | ||||
| }; | ||||
| 
 | ||||
| export type User = PartialUser & { | ||||
| 	bio: string | null; | ||||
| 	member_title: string | null; | ||||
| 	avatar_url: string | null; | ||||
| 	links: string[]; | ||||
| 	names: FieldEntry[]; | ||||
| 	pronouns: Pronoun[]; | ||||
| 	fields: Field[]; | ||||
| }; | ||||
| 
 | ||||
| export type UserWithMembers = User & { members: PartialMember[] }; | ||||
| 
 | ||||
| export type UserWithHiddenFields = User & { | ||||
| 	auth_methods?: unknown[]; | ||||
| 	member_list_hidden: boolean; | ||||
| 	last_active: string; | ||||
| }; | ||||
| 
 | ||||
| export type UserSettings = { | ||||
| 	dark_mode: boolean | null; | ||||
| }; | ||||
| 
 | ||||
| export type PartialMember = { | ||||
| 	id: string; | ||||
| 	name: string; | ||||
| 	display_name: string | null; | ||||
| 	bio: string | null; | ||||
| 	avatar_url: string | null; | ||||
| 	names: FieldEntry[]; | ||||
| 	pronouns: Pronoun[]; | ||||
| }; | ||||
| 
 | ||||
| export type FieldEntry = { | ||||
| 	value: string; | ||||
| 	status: string; | ||||
| }; | ||||
| 
 | ||||
| export type Pronoun = FieldEntry & { display_text: string | null }; | ||||
| 
 | ||||
| export type Field = { | ||||
| 	name: string; | ||||
| 	entries: FieldEntry[]; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue