External module "rest/membership"
Functions
Const deleteMembershipForUser
- deleteMembershipForUser(tokenUserId: number, membershipId: number, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: number
-
membershipId: number
-
Returns Promise<void>
Const getMembershipDetailsForUser
- getMembershipDetailsForUser(userId: number, membershipId: number): Promise<any>
-
Parameters
-
userId: number
-
membershipId: number
Returns Promise<any>
Const inviteMemberToOrganization
- inviteMemberToOrganization(userId: number, organizationId: number, newMemberName: string, newMemberEmail: string, role: MembershipRole, locals: Locals): Promise<void>
-
Parameters
-
userId: number
-
organizationId: number
-
newMemberName: string
-
newMemberEmail: string
-
-
Returns Promise<void>
Const updateMembershipForUser
- updateMembershipForUser(userId: number, membershipId: number, data: KeyValue, locals: Locals): Promise<void>
-
Parameters
-
userId: number
-
membershipId: number
-
-
Returns Promise<void>