-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathindex.ts
More file actions
99 lines (97 loc) · 2.57 KB
/
index.ts
File metadata and controls
99 lines (97 loc) · 2.57 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import {
handleWebhookUserCreatedOrUpdated,
userGetById,
userGetExternalAccountId,
userGetOAuthToken,
userSubscriptionUpdate,
} from './integrations/clerk/steps.js';
import { imageUpload } from './integrations/cloudinary/steps.js';
import {
addMemberToServer,
discordUpdateUserRole,
getDiscordMemberId,
messageSend,
updateUserRole,
} from './integrations/discord/steps.js';
import {
bookableDatesGet,
calendarEventList,
eventsGetUnbookedDates,
hostFreeBusy,
sheetRowAppend,
tokenGenerate,
} from './integrations/google/steps.js';
import {
getCurrentActiveHackathon,
hackathonSubmissionCreate,
personAssociateWithHackathon,
personAssociateWithHackathonSubmission,
personGetByClerkId,
personUpdateDetails,
personUpdateSubscription,
personUpsert,
} from './integrations/sanity/steps.js';
import {
handleStripeSubscriptionUpdatedWebhook,
handleWebhookStripeSubscriptionCompleted,
retrieveStripeProduct,
retrieveStripeSubscription,
} from './integrations/stripe/steps.js';
import {
handleHackathonSubmission,
handleLWJIntake,
handleUpdateUserProfile,
handleWDCIntakeSubmit,
} from './integrations/website/steps.js';
import { tagSubscriber } from './integrations/kit/steps.js';
export { inngest } from './client.js';
/**
* The `any` here is to avoid TS7056
*
* Because there are so many functions here, we end up triggering this error:
*
* > error TS7056: The inferred type of this node exceeds the maximum length the
* > compiler will serialize. An explicit type annotation is needed.
*
* Since this is only exported for use in the Inngest endpoint (which we don’t
* interact with directly and therefore don’t need type checking for), we can
* get away with shenanigans like these.
*
* @see https://github.com/colinhacks/zod/issues/1040
*/
export const functions: any[] = [
handleWebhookUserCreatedOrUpdated,
userGetById,
userGetExternalAccountId,
userGetOAuthToken,
userSubscriptionUpdate,
imageUpload,
addMemberToServer,
discordUpdateUserRole,
getDiscordMemberId,
messageSend,
updateUserRole,
bookableDatesGet,
calendarEventList,
eventsGetUnbookedDates,
hostFreeBusy,
sheetRowAppend,
tokenGenerate,
getCurrentActiveHackathon,
hackathonSubmissionCreate,
personAssociateWithHackathon,
personAssociateWithHackathonSubmission,
personGetByClerkId,
personUpdateDetails,
personUpdateSubscription,
personUpsert,
handleStripeSubscriptionUpdatedWebhook,
handleWebhookStripeSubscriptionCompleted,
retrieveStripeProduct,
retrieveStripeSubscription,
handleHackathonSubmission,
handleLWJIntake,
handleUpdateUserProfile,
handleWDCIntakeSubmit,
tagSubscriber,
];