@paymentsdb/sync-engine 0.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/README.md +310 -0
- package/dist/chunk-3OQVG44L.js +4196 -0
- package/dist/chunk-CMGFQCD7.js +87 -0
- package/dist/chunk-J6VKHOSX.js +641 -0
- package/dist/chunk-TYAHH7EW.js +406 -0
- package/dist/cli/index.cjs +5371 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +72 -0
- package/dist/cli/lib.cjs +5337 -0
- package/dist/cli/lib.d.cts +73 -0
- package/dist/cli/lib.d.ts +73 -0
- package/dist/cli/lib.js +21 -0
- package/dist/index.cjs +4321 -0
- package/dist/index.d.cts +815 -0
- package/dist/index.d.ts +815 -0
- package/dist/index.js +17 -0
- package/dist/migrations/0000_initial_migration.sql +1 -0
- package/dist/migrations/0001_products.sql +17 -0
- package/dist/migrations/0002_customers.sql +23 -0
- package/dist/migrations/0003_prices.sql +34 -0
- package/dist/migrations/0004_subscriptions.sql +56 -0
- package/dist/migrations/0005_invoices.sql +77 -0
- package/dist/migrations/0006_charges.sql +43 -0
- package/dist/migrations/0007_coupons.sql +19 -0
- package/dist/migrations/0008_disputes.sql +17 -0
- package/dist/migrations/0009_events.sql +12 -0
- package/dist/migrations/0010_payouts.sql +30 -0
- package/dist/migrations/0011_plans.sql +25 -0
- package/dist/migrations/0012_add_updated_at.sql +108 -0
- package/dist/migrations/0013_add_subscription_items.sql +12 -0
- package/dist/migrations/0014_migrate_subscription_items.sql +26 -0
- package/dist/migrations/0015_add_customer_deleted.sql +2 -0
- package/dist/migrations/0016_add_invoice_indexes.sql +2 -0
- package/dist/migrations/0017_drop_charges_unavailable_columns.sql +6 -0
- package/dist/migrations/0018_setup_intents.sql +17 -0
- package/dist/migrations/0019_payment_methods.sql +12 -0
- package/dist/migrations/0020_disputes_payment_intent_created_idx.sql +3 -0
- package/dist/migrations/0021_payment_intent.sql +42 -0
- package/dist/migrations/0022_adjust_plans.sql +5 -0
- package/dist/migrations/0023_invoice_deleted.sql +1 -0
- package/dist/migrations/0024_subscription_schedules.sql +29 -0
- package/dist/migrations/0025_tax_ids.sql +14 -0
- package/dist/migrations/0026_credit_notes.sql +36 -0
- package/dist/migrations/0027_add_marketing_features_to_products.sql +2 -0
- package/dist/migrations/0028_early_fraud_warning.sql +22 -0
- package/dist/migrations/0029_reviews.sql +28 -0
- package/dist/migrations/0030_refunds.sql +29 -0
- package/dist/migrations/0031_add_default_price.sql +2 -0
- package/dist/migrations/0032_update_subscription_items.sql +3 -0
- package/dist/migrations/0033_add_last_synced_at.sql +85 -0
- package/dist/migrations/0034_remove_foreign_keys.sql +13 -0
- package/dist/migrations/0035_checkout_sessions.sql +77 -0
- package/dist/migrations/0036_checkout_session_line_items.sql +24 -0
- package/dist/migrations/0037_add_features.sql +18 -0
- package/dist/migrations/0038_active_entitlement.sql +20 -0
- package/dist/migrations/0039_add_paused_to_subscription_status.sql +1 -0
- package/dist/migrations/0040_managed_webhooks.sql +28 -0
- package/dist/migrations/0041_rename_managed_webhooks.sql +2 -0
- package/dist/migrations/0042_convert_to_jsonb_generated_columns.sql +1821 -0
- package/dist/migrations/0043_add_account_id.sql +49 -0
- package/dist/migrations/0044_make_account_id_required.sql +54 -0
- package/dist/migrations/0045_sync_status.sql +18 -0
- package/dist/migrations/0046_sync_status_per_account.sql +91 -0
- package/dist/migrations/0047_api_key_hashes.sql +12 -0
- package/dist/migrations/0048_rename_reserved_columns.sql +1253 -0
- package/dist/migrations/0049_remove_redundant_underscores_from_metadata_tables.sql +68 -0
- package/dist/migrations/0050_rename_id_to_match_stripe_api.sql +239 -0
- package/dist/migrations/0051_remove_webhook_uuid.sql +7 -0
- package/dist/migrations/0052_webhook_url_uniqueness.sql +7 -0
- package/dist/migrations/0053_sync_observability.sql +104 -0
- package/dist/migrations/0054_drop_sync_status.sql +5 -0
- package/dist/migrations/0055_bigint_money_columns.sql +72 -0
- package/dist/migrations/0056_sync_run_closed_at.sql +53 -0
- package/dist/migrations/0057_rename_sync_tables.sql +57 -0
- package/dist/migrations/0058_improve_sync_runs_status.sql +36 -0
- 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/migrations/0061_add_page_cursor.sql +3 -0
- package/dist/migrations/0062_balance_transactions.sql +42 -0
- package/dist/supabase/index.cjs +523 -0
- package/dist/supabase/index.d.cts +121 -0
- package/dist/supabase/index.d.ts +121 -0
- package/dist/supabase/index.js +26 -0
- package/package.json +83 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "stripe-experiment-sync",
|
|
4
|
+
version: "1.0.19",
|
|
5
|
+
private: false,
|
|
6
|
+
description: "Stripe Sync Engine to sync Stripe data to Postgres",
|
|
7
|
+
type: "module",
|
|
8
|
+
main: "./dist/index.cjs",
|
|
9
|
+
bin: "./dist/cli/index.js",
|
|
10
|
+
exports: {
|
|
11
|
+
".": {
|
|
12
|
+
types: "./dist/index.d.ts",
|
|
13
|
+
import: "./dist/index.js",
|
|
14
|
+
require: "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./supabase": {
|
|
17
|
+
types: "./dist/supabase/index.d.ts",
|
|
18
|
+
import: "./dist/supabase/index.js",
|
|
19
|
+
require: "./dist/supabase/index.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./cli": {
|
|
22
|
+
types: "./dist/cli/lib.d.ts",
|
|
23
|
+
import: "./dist/cli/lib.js",
|
|
24
|
+
require: "./dist/cli/lib.cjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
scripts: {
|
|
28
|
+
clean: "rimraf dist",
|
|
29
|
+
prebuild: "npm run clean",
|
|
30
|
+
build: "tsup src/index.ts src/supabase/index.ts src/cli/index.ts src/cli/lib.ts --format esm,cjs --dts --shims && cp -r src/database/migrations dist/migrations",
|
|
31
|
+
lint: "eslint src --ext .ts",
|
|
32
|
+
test: "vitest"
|
|
33
|
+
},
|
|
34
|
+
files: [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
dependencies: {
|
|
38
|
+
"@ngrok/ngrok": "^1.4.1",
|
|
39
|
+
chalk: "^5.3.0",
|
|
40
|
+
commander: "^12.1.0",
|
|
41
|
+
dotenv: "^16.4.7",
|
|
42
|
+
express: "^4.18.2",
|
|
43
|
+
inquirer: "^12.3.0",
|
|
44
|
+
papaparse: "5.4.1",
|
|
45
|
+
pg: "^8.16.3",
|
|
46
|
+
"pg-node-migrations": "0.0.8",
|
|
47
|
+
stripe: "^17.7.0",
|
|
48
|
+
"supabase-management-js": "^0.1.6",
|
|
49
|
+
ws: "^8.18.0",
|
|
50
|
+
yesql: "^7.0.0"
|
|
51
|
+
},
|
|
52
|
+
devDependencies: {
|
|
53
|
+
"@types/express": "^4.17.21",
|
|
54
|
+
"@types/inquirer": "^9.0.7",
|
|
55
|
+
"@types/node": "^24.10.1",
|
|
56
|
+
"@types/papaparse": "5.3.16",
|
|
57
|
+
"@types/pg": "^8.15.5",
|
|
58
|
+
"@types/ws": "^8.5.13",
|
|
59
|
+
"@types/yesql": "^4.1.4",
|
|
60
|
+
"@vitest/ui": "^4.0.9",
|
|
61
|
+
tsx: "^4.19.2",
|
|
62
|
+
vitest: "^3.2.4"
|
|
63
|
+
},
|
|
64
|
+
repository: {
|
|
65
|
+
type: "git",
|
|
66
|
+
url: "https://github.com/stripe-experiments/sync-engine.git"
|
|
67
|
+
},
|
|
68
|
+
homepage: "https://github.com/stripe-experiments/sync-engine#readme",
|
|
69
|
+
bugs: {
|
|
70
|
+
url: "https://github.com/stripe-experiments/sync-engine/issues"
|
|
71
|
+
},
|
|
72
|
+
keywords: [
|
|
73
|
+
"stripe",
|
|
74
|
+
"postgres",
|
|
75
|
+
"sync",
|
|
76
|
+
"webhooks",
|
|
77
|
+
"supabase",
|
|
78
|
+
"billing",
|
|
79
|
+
"database",
|
|
80
|
+
"typescript"
|
|
81
|
+
],
|
|
82
|
+
author: "Stripe <https://stripe.com/>"
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
package_default
|
|
87
|
+
};
|