forked from clerk/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserOrganizationInvitation.ts
More file actions
36 lines (33 loc) · 1.09 KB
/
Copy pathuserOrganizationInvitation.ts
File metadata and controls
36 lines (33 loc) · 1.09 KB
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
import type { OrganizationInvitationStatus } from './organizationInvitation';
import type { OrganizationCustomRoleKey } from './organizationMembership';
import type { ClerkResource } from './resource';
declare global {
/**
* If you want to provide custom types for the organizationInvitation.publicMetadata
* object, simply redeclare this rule in the global namespace.
* Every organizationInvitation object will use the provided type.
*/
interface UserOrganizationInvitationPublicMetadata {
[k: string]: unknown;
}
interface UserOrganizationInvitationPrivateMetadata {
[k: string]: unknown;
}
}
export interface UserOrganizationInvitationResource extends ClerkResource {
id: string;
emailAddress: string;
publicOrganizationData: {
hasImage: boolean;
imageUrl: string;
name: string;
id: string;
slug: string | null;
};
publicMetadata: UserOrganizationInvitationPublicMetadata;
role: OrganizationCustomRoleKey;
status: OrganizationInvitationStatus;
createdAt: Date;
updatedAt: Date;
accept: () => Promise<UserOrganizationInvitationResource>;
}