@paymentsdb/sync-engine 0.0.1 → 0.0.2

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./chunk-CMGFQCD7.js";
3
+ } from "./chunk-P3RP5RLG.js";
4
4
 
5
5
  // src/stripeSync.ts
6
6
  import Stripe3 from "stripe";
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
- name: "stripe-experiment-sync",
4
- version: "1.0.19",
3
+ name: "@paymentsdb/sync-engine",
4
+ version: "0.0.1",
5
5
  private: false,
6
6
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
7
7
  type: "module",
@@ -79,7 +79,8 @@ var package_default = {
79
79
  "database",
80
80
  "typescript"
81
81
  ],
82
- author: "Stripe <https://stripe.com/>"
82
+ author: "PaymentsDB <https://paymentsdb.com/>",
83
+ license: "Apache-2.0"
83
84
  };
84
85
 
85
86
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./chunk-CMGFQCD7.js";
3
+ } from "./chunk-P3RP5RLG.js";
4
4
 
5
5
  // src/supabase/supabase.ts
6
6
  import { SupabaseManagementAPI } from "supabase-management-js";
@@ -2,11 +2,11 @@ import {
2
2
  StripeSync,
3
3
  createStripeWebSocketClient,
4
4
  runMigrations
5
- } from "./chunk-3OQVG44L.js";
5
+ } from "./chunk-6ZCWQDN5.js";
6
6
  import {
7
7
  install,
8
8
  uninstall
9
- } from "./chunk-TYAHH7EW.js";
9
+ } from "./chunk-VFG6U6QD.js";
10
10
 
11
11
  // src/cli/config.ts
12
12
  import dotenv from "dotenv";
@@ -32,8 +32,8 @@ var import_commander = require("commander");
32
32
 
33
33
  // package.json
34
34
  var package_default = {
35
- name: "stripe-experiment-sync",
36
- version: "1.0.19",
35
+ name: "@paymentsdb/sync-engine",
36
+ version: "0.0.1",
37
37
  private: false,
38
38
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
39
39
  type: "module",
@@ -111,7 +111,8 @@ var package_default = {
111
111
  "database",
112
112
  "typescript"
113
113
  ],
114
- author: "Stripe <https://stripe.com/>"
114
+ author: "PaymentsDB <https://paymentsdb.com/>",
115
+ license: "Apache-2.0"
115
116
  };
116
117
 
117
118
  // src/cli/commands.ts
package/dist/cli/index.js CHANGED
@@ -5,12 +5,12 @@ import {
5
5
  migrateCommand,
6
6
  syncCommand,
7
7
  uninstallCommand
8
- } from "../chunk-J6VKHOSX.js";
9
- import "../chunk-3OQVG44L.js";
10
- import "../chunk-TYAHH7EW.js";
8
+ } from "../chunk-VPHVPIUM.js";
9
+ import "../chunk-6ZCWQDN5.js";
10
+ import "../chunk-VFG6U6QD.js";
11
11
  import {
12
12
  package_default
13
- } from "../chunk-CMGFQCD7.js";
13
+ } from "../chunk-P3RP5RLG.js";
14
14
 
15
15
  // src/cli/index.ts
16
16
  import { Command } from "commander";
package/dist/cli/lib.cjs CHANGED
@@ -116,8 +116,8 @@ async function loadConfig(options) {
116
116
 
117
117
  // package.json
118
118
  var package_default = {
119
- name: "stripe-experiment-sync",
120
- version: "1.0.19",
119
+ name: "@paymentsdb/sync-engine",
120
+ version: "0.0.1",
121
121
  private: false,
122
122
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
123
123
  type: "module",
@@ -195,7 +195,8 @@ var package_default = {
195
195
  "database",
196
196
  "typescript"
197
197
  ],
198
- author: "Stripe <https://stripe.com/>"
198
+ author: "PaymentsDB <https://paymentsdb.com/>",
199
+ license: "Apache-2.0"
199
200
  };
200
201
 
201
202
  // src/stripeSync.ts
package/dist/cli/lib.js CHANGED
@@ -6,10 +6,10 @@ import {
6
6
  migrateCommand,
7
7
  syncCommand,
8
8
  uninstallCommand
9
- } from "../chunk-J6VKHOSX.js";
10
- import "../chunk-3OQVG44L.js";
11
- import "../chunk-TYAHH7EW.js";
12
- import "../chunk-CMGFQCD7.js";
9
+ } from "../chunk-VPHVPIUM.js";
10
+ import "../chunk-6ZCWQDN5.js";
11
+ import "../chunk-VFG6U6QD.js";
12
+ import "../chunk-P3RP5RLG.js";
13
13
  export {
14
14
  backfillCommand,
15
15
  createTunnel,
package/dist/index.cjs CHANGED
@@ -45,8 +45,8 @@ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
45
45
 
46
46
  // package.json
47
47
  var package_default = {
48
- name: "stripe-experiment-sync",
49
- version: "1.0.19",
48
+ name: "@paymentsdb/sync-engine",
49
+ version: "0.0.1",
50
50
  private: false,
51
51
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
52
52
  type: "module",
@@ -124,7 +124,8 @@ var package_default = {
124
124
  "database",
125
125
  "typescript"
126
126
  ],
127
- author: "Stripe <https://stripe.com/>"
127
+ author: "PaymentsDB <https://paymentsdb.com/>",
128
+ license: "Apache-2.0"
128
129
  };
129
130
 
130
131
  // src/stripeSync.ts
package/dist/index.js CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  createStripeWebSocketClient,
6
6
  hashApiKey,
7
7
  runMigrations
8
- } from "./chunk-3OQVG44L.js";
9
- import "./chunk-CMGFQCD7.js";
8
+ } from "./chunk-6ZCWQDN5.js";
9
+ import "./chunk-P3RP5RLG.js";
10
10
  export {
11
11
  PostgresClient,
12
12
  StripeSync,
@@ -2,13 +2,13 @@
2
2
  -- Balance transactions represent funds moving through your Stripe account
3
3
 
4
4
  CREATE TABLE IF NOT EXISTS "stripe"."balance_transactions" (
5
- "id" text PRIMARY KEY,
6
5
  "_raw_data" jsonb NOT NULL,
7
6
  "_last_synced_at" timestamptz,
8
7
  "_updated_at" timestamptz DEFAULT now(),
9
8
  "_account_id" text NOT NULL,
10
9
 
11
- -- Generated columns from _raw_data
10
+ -- Generated columns from _raw_data (id must be generated for upsert to work)
11
+ "id" TEXT GENERATED ALWAYS AS ((_raw_data->>'id')::TEXT) STORED PRIMARY KEY,
12
12
  "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED,
13
13
  "amount" bigint GENERATED ALWAYS AS ((_raw_data->>'amount')::bigint) STORED,
14
14
  "available_on" integer GENERATED ALWAYS AS ((_raw_data->>'available_on')::integer) STORED,
@@ -53,8 +53,8 @@ var workerFunctionCode = stripe_worker_default;
53
53
 
54
54
  // package.json
55
55
  var package_default = {
56
- name: "stripe-experiment-sync",
57
- version: "1.0.19",
56
+ name: "@paymentsdb/sync-engine",
57
+ version: "0.0.1",
58
58
  private: false,
59
59
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
60
60
  type: "module",
@@ -132,7 +132,8 @@ var package_default = {
132
132
  "database",
133
133
  "typescript"
134
134
  ],
135
- author: "Stripe <https://stripe.com/>"
135
+ author: "PaymentsDB <https://paymentsdb.com/>",
136
+ license: "Apache-2.0"
136
137
  };
137
138
 
138
139
  // src/supabase/supabase.ts
@@ -9,8 +9,8 @@ import {
9
9
  uninstall,
10
10
  webhookFunctionCode,
11
11
  workerFunctionCode
12
- } from "../chunk-TYAHH7EW.js";
13
- import "../chunk-CMGFQCD7.js";
12
+ } from "../chunk-VFG6U6QD.js";
13
+ import "../chunk-P3RP5RLG.js";
14
14
  export {
15
15
  INSTALLATION_ERROR_SUFFIX,
16
16
  INSTALLATION_INSTALLED_SUFFIX,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paymentsdb/sync-engine",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "description": "Stripe Sync Engine to sync Stripe data to Postgres",
6
6
  "type": "module",