File tree 7 files changed +36
-1
lines changed
7 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/backend ' : minor
3
+ ---
4
+
5
+ Add waitlist entry types
6
+ - ` WaitlistEntryJSON `
7
+ - ` WaitlistEntryWebhookEvent `
8
+
9
+ Update ` WebhookEvent ` to include ` WaitlistEntryWebhookEvent `
Original file line number Diff line number Diff line change
1
+ ---
2
+ " @clerk/nextjs " : patch
3
+ ---
4
+
5
+ Re-export ` WaitlistEntryJSON ` from ` @clerk/nextjs/server ` .
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export const ObjectType = {
34
34
SignUpAttempt : 'sign_up_attempt' ,
35
35
SmsMessage : 'sms_message' ,
36
36
User : 'user' ,
37
+ WaitlistEntry : 'waitlist_entry' ,
37
38
Web3Wallet : 'web3_wallet' ,
38
39
Token : 'token' ,
39
40
TotalCount : 'total_count' ,
@@ -382,6 +383,17 @@ export interface VerificationJSON extends ClerkResourceJSON {
382
383
message ?: string | null ;
383
384
}
384
385
386
+ export interface WaitlistEntryJSON extends ClerkResourceJSON {
387
+ created_at : number ;
388
+ email_address : string ;
389
+ id : string ;
390
+ invitation : InvitationJSON | null ;
391
+ is_locked : boolean ;
392
+ object : typeof ObjectType . WaitlistEntry ;
393
+ status : string ;
394
+ updated_at : number ;
395
+ }
396
+
385
397
export interface Web3WalletJSON extends ClerkResourceJSON {
386
398
object : typeof ObjectType . Web3Wallet ;
387
399
web3_wallet : string ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type {
10
10
SessionJSON ,
11
11
SMSMessageJSON ,
12
12
UserJSON ,
13
+ WaitlistEntryJSON ,
13
14
} from './JSON' ;
14
15
15
16
type Webhook < EvtType , Data > = { type : EvtType ; object : 'event' ; data : Data } ;
@@ -52,6 +53,8 @@ export type PermissionWebhookEvent = Webhook<
52
53
PermissionJSON
53
54
> ;
54
55
56
+ export type WaitlistEntryWebhookEvent = Webhook < 'waitlistEntry.created' | 'waitlistEntry.updated' , WaitlistEntryJSON > ;
57
+
55
58
export type WebhookEvent =
56
59
| UserWebhookEvent
57
60
| SessionWebhookEvent
@@ -62,6 +65,7 @@ export type WebhookEvent =
62
65
| OrganizationMembershipWebhookEvent
63
66
| OrganizationInvitationWebhookEvent
64
67
| RoleWebhookEvent
65
- | PermissionWebhookEvent ;
68
+ | PermissionWebhookEvent
69
+ | WaitlistEntryWebhookEvent ;
66
70
67
71
export type WebhookEventType = WebhookEvent [ 'type' ] ;
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ export type {
46
46
SessionWebhookEvent ,
47
47
SMSWebhookEvent ,
48
48
UserWebhookEvent ,
49
+ WaitlistEntryWebhookEvent ,
49
50
WebhookEvent ,
50
51
WebhookEventType ,
51
52
} from './Webhooks' ;
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export type {
80
80
SMSMessageJSON ,
81
81
UserJSON ,
82
82
VerificationJSON ,
83
+ WaitlistEntryJSON ,
83
84
Web3WalletJSON ,
84
85
DeletedObjectJSON ,
85
86
PaginatedResponseJSON ,
@@ -126,6 +127,7 @@ export type {
126
127
SessionWebhookEvent ,
127
128
SMSWebhookEvent ,
128
129
UserWebhookEvent ,
130
+ WaitlistEntryWebhookEvent ,
129
131
WebhookEvent ,
130
132
WebhookEventType ,
131
133
} from './api/resources/Webhooks' ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export type {
20
20
SessionJSON ,
21
21
SMSMessageJSON ,
22
22
UserJSON ,
23
+ WaitlistEntryJSON ,
23
24
WebhookEvent ,
24
25
WebhookEventType ,
25
26
UserWebhookEvent ,
@@ -32,6 +33,7 @@ export type {
32
33
RoleWebhookEvent ,
33
34
SessionWebhookEvent ,
34
35
SMSWebhookEvent ,
36
+ WaitlistEntryWebhookEvent ,
35
37
} from '@clerk/backend' ;
36
38
37
39
/**
You can’t perform that action at this time.
0 commit comments