default: { accept: ( organization: { id: string }, user: { id: string }, ) => Promise<void>; add: ( user: { id: string }, organization: { name: string }, ) => Promise<INewOrganization>; decline: ( organization: { id: string }, user: { id: string }, ) => Promise<void>; del: (organization: { id: string }) => Promise<void>; get: <T extends TOrganizationGet>( id: string, data: T, ) => Promise<undefined | IOrganizationGet<T>>; getAll: <T extends TOrganizationGet>( data: T, ) => Promise<IOrganizationGet<T>[]>; getByUser: <T extends TOrganizationGet>( user: { id: string }, data: T, ) => Promise<IOrganizationWithData<T>[]>; getWithData: <T extends TOrganizationGet>( id: string, data: T, ) => Promise<undefined | IOrganizationWithData<T>>; quit: (organization: { id: string }, user: { id: string }) => Promise<void>; update: ( organization: { id: string }, data: any[], ownerId?: string, ) => Promise<void>;} = ... Type declaration
accept: (organization: { id: string }, user: { id: string }) => Promise<void>
add: (
user: { id: string },
organization: { name: string },
) => Promise<INewOrganization>
decline: (organization: { id: string }, user: { id: string }) => Promise<void>
del: (organization: { id: string }) => Promise<void>
quit: (organization: { id: string }, user: { id: string }) => Promise<void>
update: (organization: { id: string }, data: any[], ownerId?: string) => Promise<void>