UNPKG

969 BTypeScriptView Raw
1import type { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types';
2export type OrganizationInvitationProps = {
3 sys: MetaSysProps & {
4 organizationMembership: {
5 sys: MetaLinkProps;
6 };
7 user: Record<string, any> | null;
8 invitationUrl: string;
9 status: string;
10 };
11 firstName: string;
12 lastName: string;
13 email: string;
14 role: string;
15};
16export type CreateOrganizationInvitationProps = Omit<OrganizationInvitationProps, 'sys'>;
17export interface OrganizationInvitation extends OrganizationInvitationProps, DefaultElements<OrganizationInvitationProps> {
18}
19/**
20 * @private
21 * @param makeRequest - function to make requests via an adapter
22 * @param data - Raw invitation data
23 * @return {OrganizationInvitation} Wrapped Inviation data
24 */
25export declare function wrapOrganizationInvitation(_makeRequest: MakeRequest, data: OrganizationInvitationProps): OrganizationInvitation;