spaps-sdk 0.1.0 → 1.0.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/.env.example +23 -0
- package/README.md +579 -103
- package/admin-utils.ts +243 -0
- package/dist/index.js +886 -134
- package/dist/index.mjs +876 -121
- package/package.json +34 -40
- package/dist/index.d.mts +0 -82
- package/dist/index.d.ts +0 -82
package/.env.example
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Sweet Potato SDK Environment Variables
|
|
2
|
+
|
|
3
|
+
# API Configuration (REQUIRED)
|
|
4
|
+
# For development, use localhost
|
|
5
|
+
SPAPS_API_URL=http://localhost:3456
|
|
6
|
+
# For production (when available)
|
|
7
|
+
# SPAPS_API_URL=https://api.sweetpotato.dev
|
|
8
|
+
|
|
9
|
+
# Your API Key (REQUIRED)
|
|
10
|
+
# Get from https://dashboard.sweetpotato.dev (production)
|
|
11
|
+
# Or use 'test_key_local_dev_only' for local development
|
|
12
|
+
SPAPS_API_KEY=test_key_local_dev_only
|
|
13
|
+
|
|
14
|
+
# Optional: Stripe Keys (for server-side operations only)
|
|
15
|
+
# STRIPE_PUBLISHABLE_KEY=pk_test_xxxxx
|
|
16
|
+
# STRIPE_SECRET_KEY=sk_test_xxxxx
|
|
17
|
+
|
|
18
|
+
# Optional: Webhook Secret (for receiving webhooks)
|
|
19
|
+
# WEBHOOK_SECRET=whsec_xxxxx
|
|
20
|
+
|
|
21
|
+
# Optional: Admin Credentials (NEVER expose to clients)
|
|
22
|
+
# ADMIN_EMAIL=admin@example.com
|
|
23
|
+
# ADMIN_PASSWORD=secure_password_here
|