stripe-experiment-sync 1.0.9-beta.1765909347 → 1.0.10

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/cli/index.js CHANGED
@@ -5,12 +5,12 @@ import {
5
5
  migrateCommand,
6
6
  syncCommand,
7
7
  uninstallCommand
8
- } from "../chunk-DBJCCGXP.js";
9
- import "../chunk-2CYYWBTD.js";
10
- import "../chunk-SI3VFP3M.js";
8
+ } from "../chunk-FZQ4B7VZ.js";
9
+ import "../chunk-62FKHVHJ.js";
10
+ import "../chunk-AHNO3EMD.js";
11
11
  import {
12
12
  package_default
13
- } from "../chunk-3W3CERIG.js";
13
+ } from "../chunk-VEEV6P4R.js";
14
14
 
15
15
  // src/cli/index.ts
16
16
  import { Command } from "commander";
@@ -21,12 +21,11 @@ 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)").option("--sigma", "Sync Sigma data (requires Sigma access in Stripe API key)").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)").action(async (options) => {
25
25
  await syncCommand({
26
26
  stripeKey: options.stripeKey,
27
27
  ngrokToken: options.ngrokToken,
28
- databaseUrl: options.databaseUrl,
29
- enableSigmaSync: options.sigma
28
+ databaseUrl: options.databaseUrl
30
29
  });
31
30
  });
32
31
  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) => {
@@ -42,12 +41,17 @@ var supabase = program.command("supabase").description("Supabase Edge Functions
42
41
  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(
43
42
  "--package-version <version>",
44
43
  "Package version to install (e.g., 1.0.8-beta.1, defaults to latest)"
44
+ ).option(
45
+ "--worker-interval <seconds>",
46
+ "Worker interval in seconds (defaults to 60)",
47
+ (val) => parseInt(val, 10)
45
48
  ).action(async (options) => {
46
49
  await installCommand({
47
50
  supabaseAccessToken: options.token,
48
51
  supabaseProjectRef: options.project,
49
52
  stripeKey: options.stripeKey,
50
- packageVersion: options.packageVersion
53
+ packageVersion: options.packageVersion,
54
+ workerInterval: options.workerInterval
51
55
  });
52
56
  });
53
57
  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) => {