@donotdev/functions 0.0.20 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/guidelines/FUNCTIONS.md +9 -0
- package/guidelines/VERCEL.md +260 -0
- package/lib/firebase/auth/getCustomClaims.d.ts +2 -2
- package/lib/firebase/auth/getUserAuthStatus.d.ts +2 -2
- package/lib/firebase/auth/index.d.ts +1 -1
- package/lib/firebase/auth/removeCustomClaims.d.ts +2 -2
- package/lib/firebase/auth/setCustomClaims.d.ts +2 -2
- package/lib/firebase/baseFunction.d.ts +1 -1
- package/lib/firebase/billing/cancelSubscription.d.ts +1 -1
- package/lib/firebase/billing/changePlan.d.ts +1 -1
- package/lib/firebase/billing/createCheckoutSession.d.ts +10 -13
- package/lib/firebase/billing/createCustomerPortal.d.ts +1 -1
- package/lib/firebase/billing/index.d.ts +1 -1
- package/lib/firebase/billing/refreshSubscriptionStatus.d.ts +2 -2
- package/lib/firebase/config/constants.d.ts +4 -4
- package/lib/firebase/config/index.d.ts +1 -1
- package/lib/firebase/crud/aggregate.d.ts +2 -2
- package/lib/firebase/crud/delete.d.ts +1 -1
- package/lib/firebase/crud/get.d.ts +1 -1
- package/lib/firebase/crud/index.d.ts +1 -1
- package/lib/firebase/crud/update.d.ts +1 -1
- package/lib/firebase/helpers/githubAccessHelper.d.ts +3 -3
- package/lib/firebase/helpers/githubTeamAccessHelper.d.ts +2 -2
- package/lib/firebase/helpers/index.d.ts +1 -1
- package/lib/firebase/index.d.ts +1 -1
- package/lib/firebase/index.js +3 -3
- package/lib/firebase/index.js.map +4 -4
- package/lib/firebase/oauth/disconnect.d.ts +1 -1
- package/lib/firebase/oauth/exchangeToken.d.ts +1 -1
- package/lib/firebase/oauth/getConnections.d.ts +1 -1
- package/lib/firebase/oauth/githubAccess.d.ts +6 -6
- package/lib/firebase/oauth/index.d.ts +1 -1
- package/lib/firebase/oauth/refreshToken.d.ts +1 -1
- package/lib/firebase/scheduled/index.d.ts +1 -1
- package/lib/shared/ai/classifyAIError.d.ts +35 -0
- package/lib/shared/ai/costTracker.d.ts +20 -0
- package/lib/shared/ai/createAIRoute.d.ts +20 -0
- package/lib/shared/ai/index.d.ts +6 -0
- package/lib/shared/ai/resolveModelTier.d.ts +14 -0
- package/lib/shared/billing/createCheckout.d.ts +11 -5
- package/lib/shared/billing/helpers/index.d.ts +1 -1
- package/lib/shared/billing/helpers/subscriptionManagement.d.ts +3 -3
- package/lib/shared/billing/helpers/updateUserSubscription.d.ts +4 -4
- package/lib/shared/billing/idempotency.d.ts +2 -2
- package/lib/shared/billing/index.d.ts +1 -1
- package/lib/shared/billing/webhookHandler.d.ts +1 -1
- package/lib/shared/email/createEmailRoute.d.ts +30 -0
- package/lib/shared/email/index.d.ts +3 -0
- package/lib/shared/email/provider.d.ts +30 -0
- package/lib/shared/email/resendProvider.d.ts +22 -0
- package/lib/shared/errorHandling.d.ts +1 -1
- package/lib/shared/firebase.d.ts +7 -7
- package/lib/shared/github.d.ts +16 -11
- package/lib/shared/index.d.ts +3 -1
- package/lib/shared/index.js +4 -3
- package/lib/shared/index.js.map +4 -4
- package/lib/shared/logger.d.ts +8 -6
- package/lib/shared/metadata.d.ts +3 -3
- package/lib/shared/oauth/exchangeToken.d.ts +3 -2
- package/lib/shared/oauth/grantAccess.d.ts +3 -2
- package/lib/shared/oauth/index.d.ts +1 -1
- package/lib/shared/schema.d.ts +2 -2
- package/lib/shared/utils/detectFirestore.d.ts +3 -3
- package/lib/shared/utils/external/date.d.ts +2 -2
- package/lib/shared/utils/external/index.d.ts +1 -1
- package/lib/shared/utils/external/references.d.ts +1 -1
- package/lib/shared/utils/external/subscription.d.ts +5 -5
- package/lib/shared/utils/firebaseHelpers.d.ts +2 -2
- package/lib/shared/utils/functionWrapper.d.ts +4 -4
- package/lib/shared/utils/index.d.ts +1 -1
- package/lib/shared/utils/internal/auth.d.ts +4 -4
- package/lib/shared/utils/internal/idempotency.d.ts +3 -2
- package/lib/shared/utils/internal/index.d.ts +1 -1
- package/lib/shared/utils/internal/monitoring.d.ts +7 -7
- package/lib/shared/utils/internal/rateLimiter.d.ts +5 -5
- package/lib/shared/utils/internal/validation.d.ts +4 -4
- package/lib/shared/utils/schemaValidation.d.ts +6 -6
- package/lib/shared/utils/validation.d.ts +9 -9
- package/lib/shared/utils/vercelHelpers.d.ts +2 -2
- package/lib/shared/utils.d.ts +19 -19
- package/lib/shared/validation.d.ts +2 -2
- package/lib/supabase/ai/createAIFunction.d.ts +30 -0
- package/lib/supabase/auth/deleteAccount.d.ts +1 -1
- package/lib/supabase/auth/getCustomClaims.d.ts +1 -1
- package/lib/supabase/auth/getUserAuthStatus.d.ts +1 -1
- package/lib/supabase/auth/removeCustomClaims.d.ts +1 -1
- package/lib/supabase/auth/setCustomClaims.d.ts +12 -4
- package/lib/supabase/baseFunction.d.ts +2 -2
- package/lib/supabase/billing/cancelSubscription.d.ts +1 -1
- package/lib/supabase/billing/changePlan.d.ts +2 -2
- package/lib/supabase/billing/createCheckoutSession.d.ts +1 -1
- package/lib/supabase/billing/createCustomerPortal.d.ts +1 -1
- package/lib/supabase/billing/refreshSubscriptionStatus.d.ts +1 -1
- package/lib/supabase/crud/aggregate.d.ts +2 -1
- package/lib/supabase/crud/create.d.ts +2 -1
- package/lib/supabase/crud/delete.d.ts +1 -0
- package/lib/supabase/crud/get.d.ts +2 -1
- package/lib/supabase/crud/index.d.ts +1 -1
- package/lib/supabase/crud/list.d.ts +2 -1
- package/lib/supabase/crud/update.d.ts +2 -1
- package/lib/supabase/edgeFunction.d.ts +56 -0
- package/lib/supabase/email/createEmailFunction.d.ts +31 -0
- package/lib/supabase/helpers/authProvider.d.ts +2 -2
- package/lib/supabase/index.d.ts +11 -2
- package/lib/supabase/index.js +3 -2
- package/lib/supabase/index.js.map +4 -4
- package/lib/supabase/oauth/disconnect.d.ts +13 -0
- package/lib/supabase/oauth/exchangeToken.d.ts +13 -0
- package/lib/supabase/oauth/getConnections.d.ts +13 -0
- package/lib/supabase/oauth/index.d.ts +12 -0
- package/lib/supabase/oauth/refreshToken.d.ts +13 -0
- package/lib/supabase/utils/idempotency.d.ts +1 -1
- package/lib/supabase/utils/monitoring.d.ts +1 -1
- package/lib/supabase/utils/rateLimiter.d.ts +1 -1
- package/lib/vercel/api/ai/chat.d.ts +29 -0
- package/lib/vercel/api/ai/index.d.ts +1 -0
- package/lib/vercel/api/auth/index.d.ts +1 -1
- package/lib/vercel/api/billing/cancel.d.ts +1 -1
- package/lib/vercel/api/billing/change-plan.d.ts +1 -1
- package/lib/vercel/api/billing/create-checkout-session.d.ts +1 -1
- package/lib/vercel/api/billing/index.d.ts +1 -1
- package/lib/vercel/api/billing/refresh-subscription-status.d.ts +1 -1
- package/lib/vercel/api/billing/webhook-handler.d.ts +2 -2
- package/lib/vercel/api/config/constants.d.ts +9 -9
- package/lib/vercel/api/config/firebase-admin.d.ts +2 -2
- package/lib/vercel/api/config/index.d.ts +1 -1
- package/lib/vercel/api/crud/index.d.ts +1 -1
- package/lib/vercel/api/index.d.ts +2 -1
- package/lib/vercel/api/index.js +3 -2
- package/lib/vercel/api/index.js.map +4 -4
- package/lib/vercel/api/oauth/check-github-access.d.ts +1 -1
- package/lib/vercel/api/oauth/grant-github-access.d.ts +1 -1
- package/lib/vercel/api/oauth/index.d.ts +1 -1
- package/lib/vercel/api/oauth/revoke-github-access.d.ts +1 -1
- package/lib/vercel/api/utils/cors.d.ts +4 -4
- package/lib/vercel/baseFunction.d.ts +2 -2
- package/package.json +38 -5
- package/src/firebase/auth/getCustomClaims.ts +3 -3
- package/src/firebase/auth/getUserAuthStatus.ts +3 -3
- package/src/firebase/auth/index.ts +1 -1
- package/src/firebase/auth/removeCustomClaims.ts +3 -3
- package/src/firebase/auth/setCustomClaims.ts +70 -69
- package/src/firebase/baseFunction.ts +2 -2
- package/src/firebase/billing/cancelSubscription.ts +3 -3
- package/src/firebase/billing/changePlan.ts +3 -3
- package/src/firebase/billing/createCheckoutSession.ts +79 -187
- package/src/firebase/billing/createCustomerPortal.ts +1 -1
- package/src/firebase/billing/healthCheck.ts +1 -1
- package/src/firebase/billing/index.d.ts +11 -11
- package/src/firebase/billing/index.ts +1 -1
- package/src/firebase/billing/refreshSubscriptionStatus.ts +3 -3
- package/src/firebase/billing/webhookHandler.ts +1 -1
- package/src/firebase/config/constants.ts +4 -4
- package/src/firebase/config/index.ts +1 -1
- package/src/firebase/config/secrets.ts +1 -1
- package/src/firebase/crud/aggregate.ts +2 -2
- package/src/firebase/crud/create.ts +2 -2
- package/src/firebase/crud/delete.ts +3 -3
- package/src/firebase/crud/get.ts +1 -1
- package/src/firebase/crud/index.ts +1 -1
- package/src/firebase/crud/list.ts +1 -1
- package/src/firebase/crud/update.ts +2 -2
- package/src/firebase/helpers/githubAccessHelper.ts +4 -4
- package/src/firebase/helpers/githubTeamAccessHelper.ts +3 -3
- package/src/firebase/helpers/index.ts +1 -1
- package/src/firebase/index.d.ts +9 -9
- package/src/firebase/index.ts +1 -1
- package/src/firebase/oauth/disconnect.ts +2 -2
- package/src/firebase/oauth/exchangeToken.ts +6 -6
- package/src/firebase/oauth/getConnections.ts +2 -2
- package/src/firebase/oauth/githubAccess.ts +10 -10
- package/src/firebase/oauth/index.ts +1 -1
- package/src/firebase/oauth/refreshToken.ts +6 -6
- package/src/firebase/registerCrudFunctions.ts +1 -1
- package/src/firebase/scheduled/checkExpiredSubscriptions.ts +1 -1
- package/src/firebase/scheduled/index.ts +1 -1
- package/src/shared/__tests__/auth.test.ts +46 -0
- package/src/shared/__tests__/errorHandling.test.ts +66 -1
- package/src/shared/__tests__/firebase.test.ts +293 -0
- package/src/shared/__tests__/internalValidation.test.ts +190 -0
- package/src/shared/__tests__/metadata.test.ts +66 -0
- package/src/shared/__tests__/schema.test.ts +219 -0
- package/src/shared/__tests__/schemaValidation.test.ts +72 -0
- package/src/shared/__tests__/subscription.test.ts +45 -0
- package/src/shared/__tests__/utils.test.ts +281 -0
- package/src/shared/__tests__/validation-env.test.ts +73 -0
- package/src/shared/ai/__tests__/costTracker.test.ts +121 -0
- package/src/shared/ai/classifyAIError.ts +163 -0
- package/src/shared/ai/costTracker.ts +51 -0
- package/src/shared/ai/createAIRoute.ts +397 -0
- package/src/shared/ai/index.ts +8 -0
- package/src/shared/ai/resolveModelTier.ts +58 -0
- package/src/shared/billing/__tests__/createCheckout.test.ts +1 -1
- package/src/shared/billing/__tests__/webhookHandler.test.ts +1 -1
- package/src/shared/billing/createCheckout.ts +156 -11
- package/src/shared/billing/helpers/index.ts +1 -1
- package/src/shared/billing/helpers/subscriptionManagement.ts +13 -4
- package/src/shared/billing/helpers/updateUserSubscription.ts +4 -4
- package/src/shared/billing/idempotency.ts +9 -4
- package/src/shared/billing/index.ts +1 -1
- package/src/shared/billing/webhookHandler.ts +7 -7
- package/src/shared/email/createEmailRoute.ts +81 -0
- package/src/shared/email/index.ts +5 -0
- package/src/shared/email/provider.ts +31 -0
- package/src/shared/email/resendProvider.ts +56 -0
- package/src/shared/errorHandling.ts +12 -6
- package/src/shared/firebase.ts +7 -7
- package/src/shared/github.ts +49 -11
- package/src/shared/index.d.ts +9 -9
- package/src/shared/index.ts +3 -1
- package/src/shared/logger.ts +10 -8
- package/src/shared/metadata.ts +3 -3
- package/src/shared/oauth/__tests__/exchangeToken.test.ts +1 -1
- package/src/shared/oauth/exchangeToken.ts +3 -2
- package/src/shared/oauth/grantAccess.ts +3 -2
- package/src/shared/oauth/index.ts +1 -1
- package/src/shared/schema.ts +4 -4
- package/src/shared/utils/__tests__/functionWrapper.test.ts +1 -1
- package/src/shared/utils/detectFirestore.ts +3 -3
- package/src/shared/utils/external/date.ts +5 -5
- package/src/shared/utils/external/index.ts +1 -1
- package/src/shared/utils/external/references.ts +2 -2
- package/src/shared/utils/external/subscription.ts +5 -5
- package/src/shared/utils/firebaseHelpers.ts +3 -3
- package/src/shared/utils/functionWrapper.ts +4 -4
- package/src/shared/utils/index.ts +1 -1
- package/src/shared/utils/internal/auth.ts +7 -7
- package/src/shared/utils/internal/firebase.ts +1 -1
- package/src/shared/utils/internal/idempotency.ts +4 -3
- package/src/shared/utils/internal/index.ts +1 -1
- package/src/shared/utils/internal/monitoring.ts +8 -8
- package/src/shared/utils/internal/rateLimiter.ts +12 -9
- package/src/shared/utils/internal/validation.ts +5 -5
- package/src/shared/utils/schemaValidation.ts +6 -6
- package/src/shared/utils/validation.ts +10 -10
- package/src/shared/utils/vercelHelpers.ts +3 -3
- package/src/shared/utils.ts +19 -19
- package/src/shared/validation.ts +3 -3
- package/src/supabase/ai/createAIFunction.ts +75 -0
- package/src/supabase/auth/deleteAccount.ts +2 -2
- package/src/supabase/auth/getCustomClaims.ts +2 -2
- package/src/supabase/auth/getUserAuthStatus.ts +2 -2
- package/src/supabase/auth/removeCustomClaims.ts +38 -2
- package/src/supabase/auth/setCustomClaims.ts +66 -5
- package/src/supabase/baseFunction.ts +29 -5
- package/src/supabase/billing/cancelSubscription.ts +2 -2
- package/src/supabase/billing/changePlan.ts +8 -3
- package/src/supabase/billing/createCheckoutSession.ts +18 -4
- package/src/supabase/billing/createCustomerPortal.ts +2 -2
- package/src/supabase/billing/refreshSubscriptionStatus.ts +2 -2
- package/src/supabase/crud/aggregate.ts +2 -1
- package/src/supabase/crud/create.ts +2 -1
- package/src/supabase/crud/delete.ts +2 -1
- package/src/supabase/crud/get.ts +2 -1
- package/src/supabase/crud/index.ts +1 -1
- package/src/supabase/crud/list.ts +2 -1
- package/src/supabase/crud/update.ts +2 -1
- package/src/supabase/edgeFunction.ts +195 -0
- package/src/supabase/email/createEmailFunction.ts +75 -0
- package/src/supabase/helpers/authProvider.ts +2 -2
- package/src/supabase/index.ts +22 -2
- package/src/supabase/oauth/disconnect.ts +104 -0
- package/src/supabase/oauth/exchangeToken.ts +183 -0
- package/src/supabase/oauth/getConnections.ts +85 -0
- package/src/supabase/oauth/index.ts +15 -0
- package/src/supabase/oauth/refreshToken.ts +130 -0
- package/src/supabase/registerCrudFunctions.ts +30 -42
- package/src/supabase/utils/idempotency.ts +7 -3
- package/src/supabase/utils/monitoring.ts +1 -1
- package/src/supabase/utils/rateLimiter.ts +1 -1
- package/src/vercel/api/ai/chat.ts +77 -0
- package/src/vercel/api/ai/index.ts +1 -0
- package/src/vercel/api/auth/get-custom-claims.ts +1 -1
- package/src/vercel/api/auth/get-user-auth-status.ts +1 -1
- package/src/vercel/api/auth/index.ts +1 -1
- package/src/vercel/api/auth/remove-custom-claims.ts +1 -1
- package/src/vercel/api/auth/set-custom-claims.ts +2 -4
- package/src/vercel/api/billing/cancel.ts +3 -3
- package/src/vercel/api/billing/change-plan.ts +3 -3
- package/src/vercel/api/billing/create-checkout-session.ts +30 -7
- package/src/vercel/api/billing/customer-portal.ts +1 -1
- package/src/vercel/api/billing/index.ts +1 -1
- package/src/vercel/api/billing/refresh-subscription-status.ts +1 -1
- package/src/vercel/api/billing/webhook-handler.ts +11 -4
- package/src/vercel/api/config/constants.ts +9 -9
- package/src/vercel/api/config/firebase-admin.ts +3 -3
- package/src/vercel/api/config/index.ts +1 -1
- package/src/vercel/api/crud/create.ts +1 -1
- package/src/vercel/api/crud/delete.ts +1 -1
- package/src/vercel/api/crud/get.ts +1 -1
- package/src/vercel/api/crud/index.ts +1 -1
- package/src/vercel/api/crud/list.ts +1 -1
- package/src/vercel/api/crud/update.ts +1 -1
- package/src/vercel/api/index.d.ts +1 -1
- package/src/vercel/api/index.ts +2 -1
- package/src/vercel/api/oauth/check-github-access.ts +3 -3
- package/src/vercel/api/oauth/exchange-token.ts +25 -2
- package/src/vercel/api/oauth/grant-github-access.ts +3 -3
- package/src/vercel/api/oauth/index.ts +1 -1
- package/src/vercel/api/oauth/revoke-github-access.ts +1 -1
- package/src/vercel/api/utils/cors.ts +10 -4
- package/src/vercel/baseFunction.ts +2 -2
package/LICENSE.md
CHANGED
|
@@ -8,7 +8,7 @@ Copyright © 2025 Ambroise Park Consulting. All rights reserved.
|
|
|
8
8
|
|
|
9
9
|
## 1. DEFINITIONS
|
|
10
10
|
|
|
11
|
-
**1.1 "Framework"** means the DoNotDev commercial software packages (excluding @donotdev/cli and @donotdev/
|
|
11
|
+
**1.1 "Framework"** means the DoNotDev commercial software packages (excluding @donotdev/cli, @donotdev/components, @donotdev/expo, and @donotdev/templates, which are licensed under MIT), including all compiled JavaScript files, TypeScript definition files, and associated documentation.
|
|
12
12
|
|
|
13
13
|
**1.2 "License Key"** means the unique alphanumeric key provided to you upon purchase, required to suppress watermarks and unlock full Framework functionality.
|
|
14
14
|
|
|
@@ -231,12 +231,12 @@ Ambroise Park Consulting has no obligation to provide support, updates, or maint
|
|
|
231
231
|
|
|
232
232
|
Questions about licensing or compliance:
|
|
233
233
|
|
|
234
|
-
**Email:**
|
|
234
|
+
**Email:** contact@donotdev.com
|
|
235
235
|
**Website:** donotdev.com
|
|
236
236
|
|
|
237
237
|
---
|
|
238
238
|
|
|
239
239
|
**END OF LICENSE AGREEMENT**
|
|
240
240
|
|
|
241
|
-
**DoNotDev Framework License
|
|
241
|
+
**DoNotDev Framework License v1.0**
|
|
242
242
|
Ambroise Park Consulting – 2025
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Functions
|
|
2
|
+
|
|
3
|
+
**This guide has been merged into provider-specific guides.**
|
|
4
|
+
|
|
5
|
+
- **Firebase Cloud Functions** - See the Firebase guideline, Cloud Functions section
|
|
6
|
+
- **Supabase Edge Functions** - See the Supabase guideline, Edge Functions section
|
|
7
|
+
- **Vercel Functions** - See the Vercel guideline, Vercel Functions section
|
|
8
|
+
|
|
9
|
+
Each provider guide covers function setup, CRUD registration, custom functions, import rules, and deployment for that stack.
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# Vercel (Hosting & Functions)
|
|
2
|
+
|
|
3
|
+
**Deploy your frontend (and optionally serverless functions) to Vercel. Works with any backend (Firebase, Supabase, or both).**
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Architecture
|
|
8
|
+
|
|
9
|
+
Vercel serves your built Vite or Next.js app on a global CDN. It can also run **Vercel Functions** (serverless API routes).
|
|
10
|
+
|
|
11
|
+
**Vercel as hosting only** (backend elsewhere):
|
|
12
|
+
- **Firebase** - Cloud Functions + Firestore + Auth + Storage
|
|
13
|
+
- **Supabase** - Edge Functions + PostgreSQL + Auth + Storage
|
|
14
|
+
|
|
15
|
+
**Vercel as hosting + functions** (alongside a backend):
|
|
16
|
+
- Vercel Functions handle API routes (`/api/*`)
|
|
17
|
+
- Combine with Firebase/Supabase for auth + database
|
|
18
|
+
|
|
19
|
+
The framework scaffolds `vercel.json` with CSP headers, rewrites, and caching rules.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 1: Create Vercel Project
|
|
24
|
+
|
|
25
|
+
1. Create a [Vercel](https://vercel.com) account
|
|
26
|
+
2. Import your Git repo from the Vercel Dashboard
|
|
27
|
+
3. Set the **Root Directory** to `apps/<your-app>` (or leave blank if monorepo auto-detected)
|
|
28
|
+
4. Set **Framework Preset** to Vite (or Next.js if using Next)
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Step 2: Add Credentials
|
|
33
|
+
|
|
34
|
+
**Secret (shared across apps):** add to `.dndev.secrets` at project root:
|
|
35
|
+
|
|
36
|
+
```env
|
|
37
|
+
VERCEL_TOKEN=your_vercel_token
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Per-app (public):** add to `apps/<your-app>/.env`:
|
|
41
|
+
|
|
42
|
+
```env
|
|
43
|
+
VERCEL_PROJECT_ID=your_project_id
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Team/Pro accounts only** - add to `apps/<your-app>/.env`:
|
|
47
|
+
|
|
48
|
+
```env
|
|
49
|
+
VERCEL_ORG_ID=your_team_id
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
> **Hobby/free accounts: Do NOT set `VERCEL_ORG_ID`.** Setting it on a hobby account causes 403 Forbidden errors. If you're unsure, run `dndev setup` - it detects your account type automatically.
|
|
53
|
+
|
|
54
|
+
**Where to find them:**
|
|
55
|
+
|
|
56
|
+
| Variable | Where | File | Required? |
|
|
57
|
+
|----------|-------|------|-----------|
|
|
58
|
+
| `VERCEL_TOKEN` | [vercel.com/account/tokens](https://vercel.com/account/tokens) - scope to your team | `.dndev.secrets` | Always |
|
|
59
|
+
| `VERCEL_PROJECT_ID` | Vercel Dashboard > Your Project > Settings > General > **Project ID** | `apps/<app>/.env` | Always |
|
|
60
|
+
| `VERCEL_ORG_ID` | Vercel Dashboard > Settings > General > **Team ID** | `apps/<app>/.env` | Team/Pro only |
|
|
61
|
+
|
|
62
|
+
That's it. No `vercel login`, no `vercel link`, no interactive prompts. Run `dndev setup` to validate everything.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Step 3: Set App Environment Variables
|
|
67
|
+
|
|
68
|
+
In **Vercel Dashboard > Project > Settings > Environment Variables**, add your app's env vars:
|
|
69
|
+
|
|
70
|
+
**If using Firebase:**
|
|
71
|
+
- `VITE_FIREBASE_API_KEY`
|
|
72
|
+
- `VITE_FIREBASE_PROJECT_ID`
|
|
73
|
+
- `VITE_FIREBASE_AUTH_DOMAIN`
|
|
74
|
+
- `VITE_FIREBASE_STORAGE_BUCKET`
|
|
75
|
+
- `VITE_FIREBASE_MESSAGING_SENDER_ID`
|
|
76
|
+
- `VITE_FIREBASE_APP_ID`
|
|
77
|
+
|
|
78
|
+
**If using Supabase:**
|
|
79
|
+
- `VITE_SUPABASE_URL`
|
|
80
|
+
- `VITE_SUPABASE_PUBLIC_KEY`
|
|
81
|
+
|
|
82
|
+
**Common (all backends):**
|
|
83
|
+
- `VITE_DONOTDEV_LICENSE_KEY`
|
|
84
|
+
- `VITE_STRIPE_PUBLISHABLE_KEY` (if using billing)
|
|
85
|
+
|
|
86
|
+
**Server-side (Vercel Functions only):**
|
|
87
|
+
- `STRIPE_SECRET_KEY` (if using billing)
|
|
88
|
+
- `SUPABASE_SERVICE_ROLE_KEY` (if using Supabase)
|
|
89
|
+
|
|
90
|
+
For Next.js apps, replace the `VITE_` prefix with `NEXT_PUBLIC_` (same var names, different prefix).
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Step 4: Deploy
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
dndev deploy
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
That's it. The CLI reads your credentials from `.dndev.secrets` and `.env` and deploys to production.
|
|
101
|
+
|
|
102
|
+
**Option B - Git push (auto-deploy)**
|
|
103
|
+
|
|
104
|
+
If your repo is connected to Vercel, pushing to your branch auto-deploys:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
git push origin main
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Vercel Functions (Optional)
|
|
113
|
+
|
|
114
|
+
The framework provides helpers for Vercel Functions via `@donotdev/functions/vercel`. Place your API routes in `pages/api/` (Next.js) or `api/` (Vite).
|
|
115
|
+
|
|
116
|
+
### Custom Functions
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
// pages/api/product-details.ts
|
|
120
|
+
import * as v from 'valibot';
|
|
121
|
+
import { createVercelBaseFunction } from '@donotdev/functions/vercel';
|
|
122
|
+
|
|
123
|
+
const schema = v.object({ productId: v.string() });
|
|
124
|
+
|
|
125
|
+
export default createVercelBaseFunction(
|
|
126
|
+
'POST',
|
|
127
|
+
schema,
|
|
128
|
+
'get_product_details',
|
|
129
|
+
async (req, res, data, { uid }) => {
|
|
130
|
+
// data is validated, uid is the authenticated user
|
|
131
|
+
const product = await getProduct(data.productId);
|
|
132
|
+
return res.status(200).json(product);
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Auth, rate limiting, schema validation, and metrics - all included by default.
|
|
138
|
+
|
|
139
|
+
### Pre-built Endpoints
|
|
140
|
+
|
|
141
|
+
The framework ships ready-made API handlers:
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
// pages/api/auth/claims.ts
|
|
145
|
+
import { setCustomClaims } from '@donotdev/functions/vercel';
|
|
146
|
+
export default setCustomClaims;
|
|
147
|
+
|
|
148
|
+
// pages/api/billing/checkout.ts
|
|
149
|
+
import { createCheckoutSession } from '@donotdev/functions/vercel';
|
|
150
|
+
import { billingConfig } from '../../../config/billing';
|
|
151
|
+
export default createCheckoutSession(billingConfig);
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Available: auth (claims, status, delete account), billing (checkout, cancel, portal, change plan), OAuth (token exchange, access grants).
|
|
155
|
+
|
|
156
|
+
### When to use Vercel Functions vs Firebase/Supabase functions
|
|
157
|
+
|
|
158
|
+
- **Vercel Functions:** API routes, webhooks, third-party proxies - especially in Next.js apps
|
|
159
|
+
- **Firebase Cloud Functions:** Firestore triggers, heavy backend logic tied to Firebase
|
|
160
|
+
- **Supabase Edge Functions:** Database triggers, logic tied to Supabase
|
|
161
|
+
|
|
162
|
+
**Server secrets** for Vercel Functions go in Vercel Dashboard > Environment Variables (not `VITE_*` or `NEXT_PUBLIC_*` prefixed - those are exposed to the browser).
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Environment Variables
|
|
167
|
+
|
|
168
|
+
| File | What Goes Here | Loaded By |
|
|
169
|
+
|------|---------------|-----------|
|
|
170
|
+
| `.dndev.secrets` | `VERCEL_TOKEN` (gitignored) | `dndev deploy` |
|
|
171
|
+
| `apps/<app>/.env` | Public keys + `VERCEL_ORG_ID`, `VERCEL_PROJECT_ID` | Vite/Next.js + `dndev deploy` |
|
|
172
|
+
| `apps/<app>/.env.production` | Production overrides | Vite/Next.js (build --mode production) |
|
|
173
|
+
| Vercel Dashboard | All production env vars (client + server) | Vercel runtime |
|
|
174
|
+
|
|
175
|
+
**Client vars** (browser-safe): `VITE_*` or `NEXT_PUBLIC_*` prefix.
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Local Development
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
dndev dev
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
The app runs locally, talking to your backend (Firebase or Supabase) directly.
|
|
186
|
+
|
|
187
|
+
For local function emulation:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
dndev emu start
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Auth Redirect URLs (Supabase)
|
|
196
|
+
|
|
197
|
+
After deploying, configure Supabase so OAuth (Google, GitHub, etc.) redirects back to your Vercel URL instead of `localhost`.
|
|
198
|
+
|
|
199
|
+
**Supabase Dashboard > Authentication > URL Configuration:**
|
|
200
|
+
|
|
201
|
+
| Setting | Value |
|
|
202
|
+
|---------|-------|
|
|
203
|
+
| **Site URL** | Your production URL (e.g., `https://myapp.vercel.app`) |
|
|
204
|
+
| **Redirect URLs** | Add all deployment URLs where auth should work |
|
|
205
|
+
|
|
206
|
+
**Redirect URLs to add:**
|
|
207
|
+
|
|
208
|
+
- `http://localhost:5173` - local Vite dev
|
|
209
|
+
- `http://localhost:3000` - local Next.js dev
|
|
210
|
+
- `https://myapp.vercel.app` - production
|
|
211
|
+
- `https://*-yourteam.vercel.app` - Vercel preview deploys (wildcard)
|
|
212
|
+
- `https://mycustomdomain.com` - custom domain (if applicable)
|
|
213
|
+
|
|
214
|
+
> **Site URL is the fallback.** If the `redirectTo` sent by your app doesn't match any entry in Redirect URLs, Supabase falls back to Site URL. If Site URL is `localhost:3000`, your deployed app will redirect to localhost after OAuth. **Always set Site URL to production.**
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Custom Domain
|
|
219
|
+
|
|
220
|
+
1. Vercel Dashboard > Settings > Domains
|
|
221
|
+
2. Add your domain
|
|
222
|
+
3. Update DNS records as instructed by Vercel
|
|
223
|
+
4. If using Firebase Auth: update your `FIREBASE_AUTH_DOMAIN` env var to your custom domain
|
|
224
|
+
5. If using Supabase Auth: add your custom domain to **Supabase Dashboard > Authentication > Redirect URLs** and update **Site URL**
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Troubleshooting
|
|
229
|
+
|
|
230
|
+
**"Missing Vercel credentials"**
|
|
231
|
+
- Check `VERCEL_TOKEN` is in `.dndev.secrets` at project root
|
|
232
|
+
- Check `VERCEL_PROJECT_ID` is in `apps/<app>/.env`
|
|
233
|
+
- Run `dndev setup` to validate
|
|
234
|
+
|
|
235
|
+
**"403 Forbidden" / "token does not have access"**
|
|
236
|
+
- Hobby/free account? Remove `VERCEL_ORG_ID` from `apps/<app>/.env` - hobby accounts don't use team IDs
|
|
237
|
+
- Team account? Ensure the token is scoped to the correct team at https://vercel.com/account/tokens
|
|
238
|
+
|
|
239
|
+
**"401 Unauthorized" / "token is invalid or expired"**
|
|
240
|
+
- Generate a new token at https://vercel.com/account/tokens and update `.dndev.secrets`
|
|
241
|
+
|
|
242
|
+
**"404 project not found"**
|
|
243
|
+
- Check `VERCEL_PROJECT_ID` matches the Project ID in Vercel Dashboard > Project > Settings > General
|
|
244
|
+
|
|
245
|
+
**"Build fails on Vercel"**
|
|
246
|
+
- Check Root Directory is set to your app directory
|
|
247
|
+
- Ensure `package.json` has correct `build` script
|
|
248
|
+
- Check all `VITE_*` env vars are set in Vercel Dashboard
|
|
249
|
+
|
|
250
|
+
**"CORS error"**
|
|
251
|
+
- Vercel handles CORS for same-origin requests automatically
|
|
252
|
+
- For cross-origin: CSP headers in `vercel.json` are pre-configured for your backend
|
|
253
|
+
|
|
254
|
+
**".env values not loading"**
|
|
255
|
+
- Vercel only reads env vars from its Dashboard, not from `.env` files
|
|
256
|
+
- Make sure all required vars are set in Vercel Dashboard > Environment Variables
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
**Token in `.dndev.secrets` + IDs in `.env` > `dndev deploy` > done.**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Get custom claims Firebase function
|
|
3
3
|
* @description Firebase callable function for retrieving custom user claims
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -17,7 +17,7 @@ type GetCustomClaimsResponse = {
|
|
|
17
17
|
* Gets user's custom claims
|
|
18
18
|
* Base function handles all common concerns automatically
|
|
19
19
|
*
|
|
20
|
-
* @version 0.0
|
|
20
|
+
* @version 0.1.0
|
|
21
21
|
* @since 0.0.1
|
|
22
22
|
* @author AMBROISE PARK Consulting
|
|
23
23
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Get user auth status Firebase function
|
|
3
3
|
* @description Firebase callable function for retrieving user authentication status
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -21,7 +21,7 @@ export type GetUserAuthStatusResponse = {
|
|
|
21
21
|
* Gets user authentication status
|
|
22
22
|
* Base function handles all common concerns automatically
|
|
23
23
|
*
|
|
24
|
-
* @version 0.0
|
|
24
|
+
* @version 0.1.0
|
|
25
25
|
* @since 0.0.1
|
|
26
26
|
* @author AMBROISE PARK Consulting
|
|
27
27
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Remove custom claims Firebase function
|
|
3
3
|
* @description Firebase callable function for removing custom user claims
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -20,7 +20,7 @@ export type RemoveCustomClaimsResponse = {
|
|
|
20
20
|
* Removes user's custom claims
|
|
21
21
|
* Base function handles all common concerns automatically
|
|
22
22
|
*
|
|
23
|
-
* @version 0.0
|
|
23
|
+
* @version 0.1.0
|
|
24
24
|
* @since 0.0.1
|
|
25
25
|
* @author AMBROISE PARK Consulting
|
|
26
26
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Set custom claims Firebase function
|
|
3
3
|
* @description Firebase callable function for setting custom user claims
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -26,7 +26,7 @@ export interface SetCustomClaimsOptions {
|
|
|
26
26
|
* Sets custom claims for a user, restricted to allowed keys.
|
|
27
27
|
* Consumers MUST specify which claim keys are self-assignable.
|
|
28
28
|
*
|
|
29
|
-
* @version 0.0
|
|
29
|
+
* @version 0.1.0
|
|
30
30
|
* @since 0.0.1
|
|
31
31
|
* @author AMBROISE PARK Consulting
|
|
32
32
|
*/
|
|
@@ -15,7 +15,7 @@ import type { CallableRequest, CallableOptions } from 'firebase-functions/v2/htt
|
|
|
15
15
|
* @param businessLogic - The actual business logic to execute
|
|
16
16
|
* @param requiredRole - Minimum role required (default: 'user' for backwards compatibility)
|
|
17
17
|
*
|
|
18
|
-
* @version 0.0
|
|
18
|
+
* @version 0.1.0
|
|
19
19
|
* @since 0.0.1
|
|
20
20
|
* @author AMBROISE PARK Consulting
|
|
21
21
|
*/
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Create checkout session Firebase function
|
|
3
|
+
* @description Firebase callable function for creating Stripe checkout sessions.
|
|
4
|
+
* Delegates to shared createCheckoutAlgorithm (SSOT).
|
|
5
|
+
*
|
|
6
|
+
* @version 0.2.0
|
|
7
|
+
* @since 0.0.1
|
|
8
|
+
* @author AMBROISE PARK Consulting
|
|
9
|
+
*/
|
|
1
10
|
import type { CreateCheckoutSessionRequest, StripeBackConfig } from '@donotdev/core/server';
|
|
2
11
|
import type { CallableFunction } from 'firebase-functions/v2/https';
|
|
3
12
|
/**
|
|
4
13
|
* Create Firebase function for checkout session creation
|
|
5
|
-
*
|
|
6
|
-
* @param billingConfig - Billing configuration with product definitions
|
|
7
|
-
* @returns Firebase function for checkout session creation
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* const createCheckout = createCheckoutSession(billingConfig);
|
|
11
|
-
* const result = await createCheckout({
|
|
12
|
-
* priceId: 'price_xxx',
|
|
13
|
-
* userId: 'user123',
|
|
14
|
-
* metadata: { billingConfigKey: 'early_bird' }
|
|
15
|
-
* });
|
|
16
|
-
* window.location.href = result.data.sessionUrl;
|
|
17
14
|
*/
|
|
18
15
|
export declare function createCheckoutSession(billingConfig: StripeBackConfig): CallableFunction<CreateCheckoutSessionRequest, Promise<{
|
|
19
16
|
sessionId: string;
|
|
20
|
-
sessionUrl: string;
|
|
17
|
+
sessionUrl: string | null;
|
|
21
18
|
}>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Refresh subscription status Firebase function
|
|
3
3
|
* @description Firebase callable function for refreshing user subscription status
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -12,7 +12,7 @@ import type { RefreshSubscriptionRequest } from '@donotdev/core/server';
|
|
|
12
12
|
* Refreshes user's subscription status from Stripe
|
|
13
13
|
* Base function handles all common concerns automatically
|
|
14
14
|
*
|
|
15
|
-
* @version 0.0
|
|
15
|
+
* @version 0.1.0
|
|
16
16
|
* @since 0.0.1
|
|
17
17
|
* @author AMBROISE PARK Consulting
|
|
18
18
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Firebase Functions configuration constants
|
|
3
3
|
* @description DRY configuration for regions, timeouts, and other function settings
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -53,7 +53,7 @@ export declare const CRUD_READ_CONFIG: {
|
|
|
53
53
|
/**
|
|
54
54
|
* Available Firebase regions for reference
|
|
55
55
|
*
|
|
56
|
-
* @version 0.0
|
|
56
|
+
* @version 0.1.0
|
|
57
57
|
* @since 0.0.1
|
|
58
58
|
* @author AMBROISE PARK Consulting
|
|
59
59
|
*/
|
|
@@ -74,7 +74,7 @@ export declare const AVAILABLE_REGIONS: {
|
|
|
74
74
|
/**
|
|
75
75
|
* Environment validation
|
|
76
76
|
*
|
|
77
|
-
* @version 0.0
|
|
77
|
+
* @version 0.1.0
|
|
78
78
|
* @since 0.0.1
|
|
79
79
|
* @author AMBROISE PARK Consulting
|
|
80
80
|
*/
|
|
@@ -82,7 +82,7 @@ export declare const validateEnvironment: () => void;
|
|
|
82
82
|
/**
|
|
83
83
|
* Type for Firebase region keys
|
|
84
84
|
*
|
|
85
|
-
* @version 0.0
|
|
85
|
+
* @version 0.1.0
|
|
86
86
|
* @since 0.0.1
|
|
87
87
|
* @author AMBROISE PARK Consulting
|
|
88
88
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @description Provides a reusable implementation for computing aggregations on Firestore collections.
|
|
4
4
|
* Returns only computed metrics, never raw data - optimized for analytics dashboards.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
@@ -84,7 +84,7 @@ export interface AggregateConfig {
|
|
|
84
84
|
* // }
|
|
85
85
|
* ```
|
|
86
86
|
*
|
|
87
|
-
* @version 0.0
|
|
87
|
+
* @version 0.1.0
|
|
88
88
|
* @since 0.0.1
|
|
89
89
|
* @author AMBROISE PARK Consulting
|
|
90
90
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Generic function to retrieve a single entity.
|
|
3
3
|
* @description Provides a reusable implementation for retrieving documents from Firestore with visibility filtering.
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Grant GitHub repository access to a user (helper function)
|
|
3
3
|
* Can be called directly from other functions
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -14,7 +14,7 @@ export declare function grantGitHubAccessHelper(userId: string, githubUsername:
|
|
|
14
14
|
* Get custom claims for a user (helper function)
|
|
15
15
|
* Can be called directly from other functions
|
|
16
16
|
*
|
|
17
|
-
* @version 0.0
|
|
17
|
+
* @version 0.1.0
|
|
18
18
|
* @since 0.0.1
|
|
19
19
|
* @author AMBROISE PARK Consulting
|
|
20
20
|
*/
|
|
@@ -23,7 +23,7 @@ export declare function getCustomClaimsHelper(userId: string, claimKeys?: string
|
|
|
23
23
|
* Set custom claims for a user (helper function)
|
|
24
24
|
* Can be called directly from other functions
|
|
25
25
|
*
|
|
26
|
-
* @version 0.0
|
|
26
|
+
* @version 0.1.0
|
|
27
27
|
* @since 0.0.1
|
|
28
28
|
* @author AMBROISE PARK Consulting
|
|
29
29
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Grant GitHub team access to a user (helper function)
|
|
3
3
|
* Can be called directly from other functions
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -14,7 +14,7 @@ export declare function grantGitHubTeamAccessHelper(userId: string, githubUserna
|
|
|
14
14
|
* Revoke GitHub team access from a user (helper function)
|
|
15
15
|
* Can be called directly from other functions
|
|
16
16
|
*
|
|
17
|
-
* @version 0.0
|
|
17
|
+
* @version 0.1.0
|
|
18
18
|
* @since 0.0.1
|
|
19
19
|
* @author AMBROISE PARK Consulting
|
|
20
20
|
*/
|