@paymentsdb/sync-engine 0.0.1 → 0.0.3

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-ATMQZPFA.js";
4
4
 
5
5
  // src/supabase/supabase.ts
6
6
  import { SupabaseManagementAPI } from "supabase-management-js";
@@ -1,12 +1,14 @@
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.2",
5
5
  private: false,
6
6
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
7
7
  type: "module",
8
8
  main: "./dist/index.cjs",
9
- bin: "./dist/cli/index.js",
9
+ bin: {
10
+ "sync-engine": "./dist/cli/index.js"
11
+ },
10
12
  exports: {
11
13
  ".": {
12
14
  types: "./dist/index.d.ts",
@@ -79,7 +81,8 @@ var package_default = {
79
81
  "database",
80
82
  "typescript"
81
83
  ],
82
- author: "Stripe <https://stripe.com/>"
84
+ author: "PaymentsDB <https://paymentsdb.com/>",
85
+ license: "Apache-2.0"
83
86
  };
84
87
 
85
88
  export {
@@ -2,11 +2,11 @@ import {
2
2
  StripeSync,
3
3
  createStripeWebSocketClient,
4
4
  runMigrations
5
- } from "./chunk-3OQVG44L.js";
5
+ } from "./chunk-IMZLSEZY.js";
6
6
  import {
7
7
  install,
8
8
  uninstall
9
- } from "./chunk-TYAHH7EW.js";
9
+ } from "./chunk-4DX3CQZ6.js";
10
10
 
11
11
  // src/cli/config.ts
12
12
  import dotenv from "dotenv";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./chunk-CMGFQCD7.js";
3
+ } from "./chunk-ATMQZPFA.js";
4
4
 
5
5
  // src/stripeSync.ts
6
6
  import Stripe3 from "stripe";
@@ -32,13 +32,15 @@ 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.2",
37
37
  private: false,
38
38
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
39
39
  type: "module",
40
40
  main: "./dist/index.cjs",
41
- bin: "./dist/cli/index.js",
41
+ bin: {
42
+ "sync-engine": "./dist/cli/index.js"
43
+ },
42
44
  exports: {
43
45
  ".": {
44
46
  types: "./dist/index.d.ts",
@@ -111,7 +113,8 @@ var package_default = {
111
113
  "database",
112
114
  "typescript"
113
115
  ],
114
- author: "Stripe <https://stripe.com/>"
116
+ author: "PaymentsDB <https://paymentsdb.com/>",
117
+ license: "Apache-2.0"
115
118
  };
116
119
 
117
120
  // 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-FEW6TDVA.js";
9
+ import "../chunk-IMZLSEZY.js";
10
+ import "../chunk-4DX3CQZ6.js";
11
11
  import {
12
12
  package_default
13
- } from "../chunk-CMGFQCD7.js";
13
+ } from "../chunk-ATMQZPFA.js";
14
14
 
15
15
  // src/cli/index.ts
16
16
  import { Command } from "commander";
package/dist/cli/lib.cjs CHANGED
@@ -116,13 +116,15 @@ 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.2",
121
121
  private: false,
122
122
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
123
123
  type: "module",
124
124
  main: "./dist/index.cjs",
125
- bin: "./dist/cli/index.js",
125
+ bin: {
126
+ "sync-engine": "./dist/cli/index.js"
127
+ },
126
128
  exports: {
127
129
  ".": {
128
130
  types: "./dist/index.d.ts",
@@ -195,7 +197,8 @@ var package_default = {
195
197
  "database",
196
198
  "typescript"
197
199
  ],
198
- author: "Stripe <https://stripe.com/>"
200
+ author: "PaymentsDB <https://paymentsdb.com/>",
201
+ license: "Apache-2.0"
199
202
  };
200
203
 
201
204
  // 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-FEW6TDVA.js";
10
+ import "../chunk-IMZLSEZY.js";
11
+ import "../chunk-4DX3CQZ6.js";
12
+ import "../chunk-ATMQZPFA.js";
13
13
  export {
14
14
  backfillCommand,
15
15
  createTunnel,
package/dist/index.cjs CHANGED
@@ -45,13 +45,15 @@ 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.2",
50
50
  private: false,
51
51
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
52
52
  type: "module",
53
53
  main: "./dist/index.cjs",
54
- bin: "./dist/cli/index.js",
54
+ bin: {
55
+ "sync-engine": "./dist/cli/index.js"
56
+ },
55
57
  exports: {
56
58
  ".": {
57
59
  types: "./dist/index.d.ts",
@@ -124,7 +126,8 @@ var package_default = {
124
126
  "database",
125
127
  "typescript"
126
128
  ],
127
- author: "Stripe <https://stripe.com/>"
129
+ author: "PaymentsDB <https://paymentsdb.com/>",
130
+ license: "Apache-2.0"
128
131
  };
129
132
 
130
133
  // 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-IMZLSEZY.js";
9
+ import "./chunk-ATMQZPFA.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,13 +53,15 @@ 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.2",
58
58
  private: false,
59
59
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
60
60
  type: "module",
61
61
  main: "./dist/index.cjs",
62
- bin: "./dist/cli/index.js",
62
+ bin: {
63
+ "sync-engine": "./dist/cli/index.js"
64
+ },
63
65
  exports: {
64
66
  ".": {
65
67
  types: "./dist/index.d.ts",
@@ -132,7 +134,8 @@ var package_default = {
132
134
  "database",
133
135
  "typescript"
134
136
  ],
135
- author: "Stripe <https://stripe.com/>"
137
+ author: "PaymentsDB <https://paymentsdb.com/>",
138
+ license: "Apache-2.0"
136
139
  };
137
140
 
138
141
  // 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-4DX3CQZ6.js";
13
+ import "../chunk-ATMQZPFA.js";
14
14
  export {
15
15
  INSTALLATION_ERROR_SUFFIX,
16
16
  INSTALLATION_INSTALLED_SUFFIX,
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@paymentsdb/sync-engine",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "description": "Stripe Sync Engine to sync Stripe data to Postgres",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
8
- "bin": "./dist/cli/index.js",
8
+ "bin": {
9
+ "sync-engine": "./dist/cli/index.js"
10
+ },
9
11
  "exports": {
10
12
  ".": {
11
13
  "types": "./dist/index.d.ts",