stripe-experiment-sync 1.0.21 → 1.0.23
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/README.md +23 -14
- package/dist/{chunk-G26S5D5J.js → chunk-5TSB2P3P.js} +241 -28
- package/dist/{chunk-OWZ4QNLS.js → chunk-5VGSSPW3.js} +8 -3
- package/dist/chunk-H7FT5PGN.js +52657 -0
- package/dist/chunk-K22YTC4W.js +52136 -0
- package/dist/cli/index.cjs +2086 -2776
- package/dist/cli/index.js +52 -7
- package/dist/cli/lib.cjs +1986 -2784
- package/dist/cli/lib.d.cts +12 -1
- package/dist/cli/lib.d.ts +12 -1
- package/dist/cli/lib.js +6 -4
- package/dist/index.cjs +6509 -2691
- package/dist/index.d.cts +329 -314
- package/dist/index.d.ts +329 -314
- package/dist/index.js +12 -4
- package/dist/migrations/0064_add_created_gte_lte.sql +13 -0
- package/dist/migrations/0065_add_created_lte_to_pk.sql +15 -0
- package/dist/migrations/0066_rate_limits.sql +43 -0
- package/dist/migrations/0067_add_priority_to_sync_obj_runs.sql +10 -0
- package/dist/migrations/0068_sync_obj_progress_view.sql +23 -0
- package/dist/supabase/functions/sigma-data-worker/index.js +238 -0
- package/dist/supabase/functions/stripe-setup/index.js +52137 -0
- package/dist/{chunk-ECLPGCY6.js → supabase/functions/stripe-webhook/index.js} +1840 -3149
- package/dist/supabase/functions/stripe-worker/index.js +47090 -0
- package/dist/supabase/index.cjs +52287 -100
- package/dist/supabase/index.d.cts +22 -14
- package/dist/supabase/index.d.ts +22 -14
- package/dist/supabase/index.js +6 -2
- package/package.json +8 -3
- package/dist/chunk-3KTFUZTY.js +0 -477
package/dist/cli/lib.d.cts
CHANGED
|
@@ -22,8 +22,10 @@ interface DeployOptions {
|
|
|
22
22
|
stripeKey?: string;
|
|
23
23
|
packageVersion?: string;
|
|
24
24
|
workerInterval?: number;
|
|
25
|
+
syncInterval?: number;
|
|
25
26
|
supabaseManagementUrl?: string;
|
|
26
27
|
enableSigma?: boolean;
|
|
28
|
+
rateLimit?: number;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -41,6 +43,15 @@ declare function migrateCommand(options: CliOptions): Promise<void>;
|
|
|
41
43
|
* - Webhook mode: Uses ngrok tunnel + Express server (when NGROK_AUTH_TOKEN is provided)
|
|
42
44
|
*/
|
|
43
45
|
declare function syncCommand(options: CliOptions): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Full resync command - uses reconciliation to skip if a successful run
|
|
48
|
+
* completed within the given interval, otherwise re-syncs everything from Stripe.
|
|
49
|
+
*/
|
|
50
|
+
declare function fullSyncCommand(options: CliOptions & {
|
|
51
|
+
interval?: number;
|
|
52
|
+
workerCount?: number;
|
|
53
|
+
rateLimit?: number;
|
|
54
|
+
}): Promise<void>;
|
|
44
55
|
/**
|
|
45
56
|
* Install command - installs Stripe sync Edge Functions to Supabase.
|
|
46
57
|
* 1. Validates Supabase project access
|
|
@@ -71,4 +82,4 @@ interface NgrokTunnel {
|
|
|
71
82
|
*/
|
|
72
83
|
declare function createTunnel(port: number, authToken: string): Promise<NgrokTunnel>;
|
|
73
84
|
|
|
74
|
-
export { type CliOptions, type Config, type DeployOptions, type NgrokTunnel, backfillCommand, createTunnel, installCommand, loadConfig, migrateCommand, syncCommand, uninstallCommand };
|
|
85
|
+
export { type CliOptions, type Config, type DeployOptions, type NgrokTunnel, backfillCommand, createTunnel, fullSyncCommand, installCommand, loadConfig, migrateCommand, syncCommand, uninstallCommand };
|
package/dist/cli/lib.d.ts
CHANGED
|
@@ -22,8 +22,10 @@ interface DeployOptions {
|
|
|
22
22
|
stripeKey?: string;
|
|
23
23
|
packageVersion?: string;
|
|
24
24
|
workerInterval?: number;
|
|
25
|
+
syncInterval?: number;
|
|
25
26
|
supabaseManagementUrl?: string;
|
|
26
27
|
enableSigma?: boolean;
|
|
28
|
+
rateLimit?: number;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -41,6 +43,15 @@ declare function migrateCommand(options: CliOptions): Promise<void>;
|
|
|
41
43
|
* - Webhook mode: Uses ngrok tunnel + Express server (when NGROK_AUTH_TOKEN is provided)
|
|
42
44
|
*/
|
|
43
45
|
declare function syncCommand(options: CliOptions): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Full resync command - uses reconciliation to skip if a successful run
|
|
48
|
+
* completed within the given interval, otherwise re-syncs everything from Stripe.
|
|
49
|
+
*/
|
|
50
|
+
declare function fullSyncCommand(options: CliOptions & {
|
|
51
|
+
interval?: number;
|
|
52
|
+
workerCount?: number;
|
|
53
|
+
rateLimit?: number;
|
|
54
|
+
}): Promise<void>;
|
|
44
55
|
/**
|
|
45
56
|
* Install command - installs Stripe sync Edge Functions to Supabase.
|
|
46
57
|
* 1. Validates Supabase project access
|
|
@@ -71,4 +82,4 @@ interface NgrokTunnel {
|
|
|
71
82
|
*/
|
|
72
83
|
declare function createTunnel(port: number, authToken: string): Promise<NgrokTunnel>;
|
|
73
84
|
|
|
74
|
-
export { type CliOptions, type Config, type DeployOptions, type NgrokTunnel, backfillCommand, createTunnel, installCommand, loadConfig, migrateCommand, syncCommand, uninstallCommand };
|
|
85
|
+
export { type CliOptions, type Config, type DeployOptions, type NgrokTunnel, backfillCommand, createTunnel, fullSyncCommand, installCommand, loadConfig, migrateCommand, syncCommand, uninstallCommand };
|
package/dist/cli/lib.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
backfillCommand,
|
|
3
3
|
createTunnel,
|
|
4
|
+
fullSyncCommand,
|
|
4
5
|
installCommand,
|
|
5
6
|
loadConfig,
|
|
6
7
|
migrateCommand,
|
|
7
8
|
syncCommand,
|
|
8
9
|
uninstallCommand
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-5TSB2P3P.js";
|
|
11
|
+
import "../chunk-K22YTC4W.js";
|
|
12
|
+
import "../chunk-H7FT5PGN.js";
|
|
13
|
+
import "../chunk-5VGSSPW3.js";
|
|
13
14
|
export {
|
|
14
15
|
backfillCommand,
|
|
15
16
|
createTunnel,
|
|
17
|
+
fullSyncCommand,
|
|
16
18
|
installCommand,
|
|
17
19
|
loadConfig,
|
|
18
20
|
migrateCommand,
|