stripe-experiment-sync 1.0.8 → 1.0.9-beta.1765909347
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/dist/{chunk-J7BH3XD6.js → chunk-2CYYWBTD.js} +486 -27
- package/dist/{chunk-CKWVW2JK.js → chunk-3W3CERIG.js} +3 -1
- package/dist/{chunk-YH6KRZDQ.js → chunk-DBJCCGXP.js} +28 -10
- package/dist/{chunk-X2OQQCC2.js → chunk-SI3VFP3M.js} +16 -5
- package/dist/cli/index.cjs +534 -45
- package/dist/cli/index.js +9 -8
- package/dist/cli/lib.cjs +529 -41
- package/dist/cli/lib.d.cts +2 -0
- package/dist/cli/lib.d.ts +2 -0
- package/dist/cli/lib.js +4 -4
- package/dist/index.cjs +490 -27
- package/dist/index.d.cts +107 -4
- package/dist/index.d.ts +107 -4
- package/dist/index.js +6 -2
- package/dist/migrations/0059_sigma_subscription_item_change_events_v2_beta.sql +61 -0
- package/dist/migrations/0060_sigma_exchange_rates_from_usd.sql +38 -0
- package/dist/supabase/index.cjs +18 -5
- package/dist/supabase/index.js +2 -2
- package/package.json +3 -1
package/dist/cli/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
migrateCommand,
|
|
6
6
|
syncCommand,
|
|
7
7
|
uninstallCommand
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-DBJCCGXP.js";
|
|
9
|
+
import "../chunk-2CYYWBTD.js";
|
|
10
|
+
import "../chunk-SI3VFP3M.js";
|
|
11
11
|
import {
|
|
12
12
|
package_default
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-3W3CERIG.js";
|
|
14
14
|
|
|
15
15
|
// src/cli/index.ts
|
|
16
16
|
import { Command } from "commander";
|
|
@@ -21,11 +21,12 @@ program.command("migrate").description("Run database migrations only").option("-
|
|
|
21
21
|
databaseUrl: options.databaseUrl
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
|
-
program.command("start").description("Start Stripe sync").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").option("--ngrok-token <token>", "ngrok auth token (or NGROK_AUTH_TOKEN env)").option("--database-url <url>", "Postgres DATABASE_URL (or DATABASE_URL env)").action(async (options) => {
|
|
24
|
+
program.command("start").description("Start Stripe sync").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").option("--ngrok-token <token>", "ngrok auth token (or NGROK_AUTH_TOKEN env)").option("--database-url <url>", "Postgres DATABASE_URL (or DATABASE_URL env)").option("--sigma", "Sync Sigma data (requires Sigma access in Stripe API key)").action(async (options) => {
|
|
25
25
|
await syncCommand({
|
|
26
26
|
stripeKey: options.stripeKey,
|
|
27
27
|
ngrokToken: options.ngrokToken,
|
|
28
|
-
databaseUrl: options.databaseUrl
|
|
28
|
+
databaseUrl: options.databaseUrl,
|
|
29
|
+
enableSigmaSync: options.sigma
|
|
29
30
|
});
|
|
30
31
|
});
|
|
31
32
|
program.command("backfill <entityName>").description("Backfill a specific entity type from Stripe (e.g., customer, invoice, product)").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").option("--database-url <url>", "Postgres DATABASE_URL (or DATABASE_URL env)").action(async (entityName, options) => {
|
|
@@ -39,14 +40,14 @@ program.command("backfill <entityName>").description("Backfill a specific entity
|
|
|
39
40
|
});
|
|
40
41
|
var supabase = program.command("supabase").description("Supabase Edge Functions commands");
|
|
41
42
|
supabase.command("install").description("Install Stripe sync to Supabase Edge Functions").option("--token <token>", "Supabase access token (or SUPABASE_ACCESS_TOKEN env)").option("--project <ref>", "Supabase project ref (or SUPABASE_PROJECT_REF env)").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").option(
|
|
42
|
-
"--version <version>",
|
|
43
|
+
"--package-version <version>",
|
|
43
44
|
"Package version to install (e.g., 1.0.8-beta.1, defaults to latest)"
|
|
44
45
|
).action(async (options) => {
|
|
45
46
|
await installCommand({
|
|
46
47
|
supabaseAccessToken: options.token,
|
|
47
48
|
supabaseProjectRef: options.project,
|
|
48
49
|
stripeKey: options.stripeKey,
|
|
49
|
-
packageVersion: options.
|
|
50
|
+
packageVersion: options.packageVersion
|
|
50
51
|
});
|
|
51
52
|
});
|
|
52
53
|
supabase.command("uninstall").description("Uninstall Stripe sync from Supabase Edge Functions").option("--token <token>", "Supabase access token (or SUPABASE_ACCESS_TOKEN env)").option("--project <ref>", "Supabase project ref (or SUPABASE_PROJECT_REF env)").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").action(async (options) => {
|