Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | 1x | export interface BaseAPIOrganisation { id: string; name: string; url: string; } export interface OrgSource { short_code: string; name: string; url: string; owner: string; owner_type: string; owner_url: string; } export interface OrgCollection { id: string; name: string; url: string; owner: string; owner_type: string; owner_url: string; } export interface APIOrganisation extends BaseAPIOrganisation { type: string; uuid: string; company: string; website: string; location: string; public_access: string; extras: Extras | null; members_url: string; sources_url: string; collections_url: string; members: number; public_collections: number; public_sources: number; created_on: string; created_by: string; updated_on: string; updated_by: string; } export interface Extras { source?: string; } export interface Organisation { id: string; name: string; company?: string; website?: string; location?: string; extras?: Extras | null; public_access?: string; } export interface EditableOrganisationFields { name: string; company?: string; website?: string; location?: string; extras?: Extras | null; public_access?: string; } export interface OrganisationState { organisation: APIOrganisation; organisations: { items: APIOrganisation[]; responseMeta?: any }[]; meta?: any; newOrganisation?: APIOrganisation; editedOrganisation?: APIOrganisation; orgSources?: OrgSource[]; orgCollections?: OrgCollection[]; orgMembers?: OrgMember[]; showAddMemberDialog: boolean; showDeleteMemberDialog?: string; showOnlyVerified: boolean; } export interface OrgMember { username: string; name?: string; url?: string; } export const apiOrgToOrganisation = ( apiOrganisation?: APIOrganisation ): APIOrganisation | undefined => { if (!apiOrganisation) return apiOrganisation; }; |