@raideno/convex-stripe 0.3.3 → 0.3.4

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/server.js CHANGED
@@ -2556,6 +2556,12 @@ class Logger {
2556
2556
  }
2557
2557
  }
2558
2558
  }
2559
+ const nullablestring = () => v.union(v.string(), v.null());
2560
+ const nullableboolean = () => v.union(v.boolean(), v.null());
2561
+ const nullablenumber = () => v.union(v.number(), v.null());
2562
+ const metadata = () => v.record(v.string(), v.union(v.string(), v.number(), v.null()));
2563
+ const optionalnullableobject = (object) => v.optional(v.union(v.object(object), v.null()));
2564
+ const optionalany = () => v.optional(v.any());
2559
2565
  const AccountStripeToConvex = (account) => {
2560
2566
  const object = {
2561
2567
  id: account.id,
@@ -5621,6 +5627,18 @@ const syncOnlyTables = (tables) => Object.fromEntries(
5621
5627
  tables.includes(table)
5622
5628
  ])
5623
5629
  );
5630
+ const allStripeTablesExcept = (tables) => Object.fromEntries(
5631
+ Object.entries(stripeTables).map(([table, definition]) => [
5632
+ table,
5633
+ !tables.includes(table) ? definition : void 0
5634
+ ])
5635
+ );
5636
+ const onlyStripeTables = (tables) => Object.fromEntries(
5637
+ Object.entries(stripeTables).map(([table, definition]) => [
5638
+ table,
5639
+ tables.includes(table) ? definition : void 0
5640
+ ])
5641
+ );
5624
5642
  const DEFAULT_CONFIGURATION = {
5625
5643
  stripe: {
5626
5644
  version: "2025-08-27.basil",
@@ -5760,12 +5778,6 @@ const normalizeOptions = (options) => {
5760
5778
  const defineActionCallableFunction = (spec) => spec;
5761
5779
  const defineActionImplementation = (spec) => spec;
5762
5780
  const defineMutationImplementation = (spec) => spec;
5763
- const nullablestring = () => v.union(v.string(), v.null());
5764
- const nullableboolean = () => v.union(v.boolean(), v.null());
5765
- const nullablenumber = () => v.union(v.number(), v.null());
5766
- const metadata = () => v.record(v.string(), v.union(v.string(), v.number(), v.null()));
5767
- const optionalnullableobject = (object) => v.optional(v.union(v.object(object), v.null()));
5768
- const optionalany = () => v.optional(v.any());
5769
5781
  async function deleteById(context, table, indexName, idField, idValue) {
5770
5782
  const existing = await context.db.query(table).withIndex(indexName, (q) => q.eq(idField, idValue)).unique();
5771
5783
  if (existing) {
@@ -5804,6 +5816,27 @@ async function insert(context, table, data) {
5804
5816
  lastSyncedAt: Date.now()
5805
5817
  });
5806
5818
  }
5819
+ async function wrapStoreOperation(promise, table) {
5820
+ try {
5821
+ return await promise;
5822
+ } catch (error) {
5823
+ if (error instanceof Error && (error.message.includes("Table") || error.message.includes("table")) && error.message.includes("not found")) {
5824
+ throw new Error(
5825
+ `
5826
+
5827
+ [Convex Stripe Error] Table "${table}" was not found in your Convex schema.
5828
+
5829
+ This happens when your 'sync.tables' configuration in 'convex/stripe.ts' includes a table that is not present in your 'convex/schema.ts'.
5830
+
5831
+ Please ensure that the arrays passed to 'syncOnlyTables'/'syncAllTablesExcept' match the arrays passed to 'onlyStripeTables'/'allStripeTablesExcept' exactly.
5832
+
5833
+ Original Error: ${error.message}
5834
+ `
5835
+ );
5836
+ }
5837
+ throw error;
5838
+ }
5839
+ }
5807
5840
  const StoreImplementation = defineMutationImplementation({
5808
5841
  name: "store",
5809
5842
  args: {
@@ -5844,12 +5877,15 @@ const StoreImplementation = defineMutationImplementation({
5844
5877
  const upsertIndexName = args.indexName;
5845
5878
  const upsertIdField = args.idField;
5846
5879
  const upsertData = args.data;
5847
- const _id = await upsert(
5848
- context,
5849
- table,
5850
- upsertIndexName,
5851
- upsertIdField,
5852
- upsertData
5880
+ const _id = await wrapStoreOperation(
5881
+ upsert(
5882
+ context,
5883
+ table,
5884
+ upsertIndexName,
5885
+ upsertIdField,
5886
+ upsertData
5887
+ ),
5888
+ table
5853
5889
  );
5854
5890
  if (configuration.callbacks && configuration.callbacks.afterChange)
5855
5891
  try {
@@ -5869,7 +5905,7 @@ const StoreImplementation = defineMutationImplementation({
5869
5905
  throw new Error('Missing "data" for insert');
5870
5906
  }
5871
5907
  const insertData = args.data;
5872
- const _id = await insert(context, table, insertData);
5908
+ const _id = await wrapStoreOperation(insert(context, table, insertData), table);
5873
5909
  if (configuration.callbacks && configuration.callbacks.afterChange)
5874
5910
  try {
5875
5911
  await configuration.callbacks.afterChange(
@@ -5896,12 +5932,15 @@ const StoreImplementation = defineMutationImplementation({
5896
5932
  const deleteByIdIndexName = args.indexName;
5897
5933
  const deleteByIdIdField = args.idField;
5898
5934
  const deleteByIdIdValue = args.idValue;
5899
- const _id = await deleteById(
5900
- context,
5901
- table,
5902
- deleteByIdIndexName,
5903
- deleteByIdIdField,
5904
- deleteByIdIdValue
5935
+ const _id = await wrapStoreOperation(
5936
+ deleteById(
5937
+ context,
5938
+ table,
5939
+ deleteByIdIndexName,
5940
+ deleteByIdIdField,
5941
+ deleteByIdIdValue
5942
+ ),
5943
+ table
5905
5944
  );
5906
5945
  if (configuration.callbacks && configuration.callbacks.afterChange)
5907
5946
  try {
@@ -5929,12 +5968,15 @@ const StoreImplementation = defineMutationImplementation({
5929
5968
  const selectOneIndexName = args.indexName;
5930
5969
  const selectOneField = args.field;
5931
5970
  const selectOneValue = args.value;
5932
- const doc = await selectOne(
5933
- context,
5934
- table,
5935
- selectOneIndexName,
5936
- selectOneField,
5937
- selectOneValue
5971
+ const doc = await wrapStoreOperation(
5972
+ selectOne(
5973
+ context,
5974
+ table,
5975
+ selectOneIndexName,
5976
+ selectOneField,
5977
+ selectOneValue
5978
+ ),
5979
+ table
5938
5980
  );
5939
5981
  return { doc };
5940
5982
  }
@@ -5942,11 +5984,11 @@ const StoreImplementation = defineMutationImplementation({
5942
5984
  if (args.id == null) {
5943
5985
  throw new Error('Missing "id" for selectById');
5944
5986
  }
5945
- const doc = await selectById(context, table, args.id);
5987
+ const doc = await wrapStoreOperation(selectById(context, table, args.id), table);
5946
5988
  return { doc };
5947
5989
  }
5948
5990
  case "selectAll": {
5949
- const docs = await selectAll(context, table);
5991
+ const docs = await wrapStoreOperation(selectAll(context, table), table);
5950
5992
  return { docs };
5951
5993
  }
5952
5994
  }
@@ -6053,10 +6095,6 @@ const CreateAccountReturnImplementation = defineRedirectHandler({
6053
6095
  handle: async (origin, context, data, configuration, options) => {
6054
6096
  }
6055
6097
  });
6056
- const __vite_glob_0_0$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6057
- __proto__: null,
6058
- CreateAccountReturnImplementation
6059
- }, Symbol.toStringTag, { value: "Module" }));
6060
6098
  const SubscriptionSyncImplementation = defineActionImplementation({
6061
6099
  args: v.object({
6062
6100
  customerId: v.string(),
@@ -6156,10 +6194,6 @@ const PayReturnImplementation = defineRedirectHandler({
6156
6194
  }
6157
6195
  }
6158
6196
  });
6159
- const __vite_glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6160
- __proto__: null,
6161
- PayReturnImplementation
6162
- }, Symbol.toStringTag, { value: "Module" }));
6163
6197
  const PortalReturnImplementation = defineRedirectHandler({
6164
6198
  origins: ["portal-return"],
6165
6199
  data: {
@@ -6194,10 +6228,6 @@ const PortalReturnImplementation = defineRedirectHandler({
6194
6228
  }
6195
6229
  }
6196
6230
  });
6197
- const __vite_glob_0_2$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6198
- __proto__: null,
6199
- PortalReturnImplementation
6200
- }, Symbol.toStringTag, { value: "Module" }));
6201
6231
  const SubscribeReturnImplementation = defineRedirectHandler({
6202
6232
  origins: ["subscribe-cancel", "subscribe-success", "subscribe-return"],
6203
6233
  data: {
@@ -6232,25 +6262,12 @@ const SubscribeReturnImplementation = defineRedirectHandler({
6232
6262
  }
6233
6263
  }
6234
6264
  });
6235
- const __vite_glob_0_3$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6236
- __proto__: null,
6265
+ const REDIRECT_HANDLERS = [
6266
+ CreateAccountReturnImplementation,
6267
+ PayReturnImplementation,
6268
+ PortalReturnImplementation,
6237
6269
  SubscribeReturnImplementation
6238
- }, Symbol.toStringTag, { value: "Module" }));
6239
- const HANDLERS_MODULES$2 = Object.values(
6240
- [
6241
- __vite_glob_0_0$2,
6242
- __vite_glob_0_1$2,
6243
- __vite_glob_0_2$2,
6244
- __vite_glob_0_3$2
6245
- ]
6246
- );
6247
- if (HANDLERS_MODULES$2.some((handler) => Object.keys(handler).length > 1))
6248
- throw new Error(
6249
- "Each redirect handler file should only have one export / default export"
6250
- );
6251
- const REDIRECT_HANDLERS = HANDLERS_MODULES$2.map(
6252
- (exports$1) => Object.values(exports$1)[0]
6253
- );
6270
+ ];
6254
6271
  if (REDIRECT_HANDLERS.some(
6255
6272
  (handler) => !["origins", "data", "handle"].every((key) => key in handler)
6256
6273
  ))
@@ -7161,10 +7178,6 @@ const AccountsSyncImplementation = defineActionImplementation({
7161
7178
  }
7162
7179
  }
7163
7180
  });
7164
- const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7165
- __proto__: null,
7166
- AccountsSyncImplementation
7167
- }, Symbol.toStringTag, { value: "Module" }));
7168
7181
  const BillingPortalConfigurationsSyncImplementation = defineActionImplementation({
7169
7182
  args: v.object({
7170
7183
  accountId: v.optional(v.string())
@@ -7202,10 +7215,6 @@ const BillingPortalConfigurationsSyncImplementation = defineActionImplementation
7202
7215
  }
7203
7216
  }
7204
7217
  });
7205
- const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7206
- __proto__: null,
7207
- BillingPortalConfigurationsSyncImplementation
7208
- }, Symbol.toStringTag, { value: "Module" }));
7209
7218
  const CapabilitiesSyncImplementation = defineActionImplementation({
7210
7219
  args: v.object({
7211
7220
  accountId: v.optional(v.string())
@@ -7243,10 +7252,6 @@ const CapabilitiesSyncImplementation = defineActionImplementation({
7243
7252
  }
7244
7253
  }
7245
7254
  });
7246
- const __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7247
- __proto__: null,
7248
- CapabilitiesSyncImplementation
7249
- }, Symbol.toStringTag, { value: "Module" }));
7250
7255
  const ChargesSyncImplementation = defineActionImplementation({
7251
7256
  args: v.object({
7252
7257
  accountId: v.optional(v.string())
@@ -7281,10 +7286,6 @@ const ChargesSyncImplementation = defineActionImplementation({
7281
7286
  }
7282
7287
  }
7283
7288
  });
7284
- const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7285
- __proto__: null,
7286
- ChargesSyncImplementation
7287
- }, Symbol.toStringTag, { value: "Module" }));
7288
7289
  const CheckoutSessionsSyncImplementation = defineActionImplementation({
7289
7290
  args: v.object({
7290
7291
  accountId: v.optional(v.string())
@@ -7319,10 +7320,6 @@ const CheckoutSessionsSyncImplementation = defineActionImplementation({
7319
7320
  }
7320
7321
  }
7321
7322
  });
7322
- const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7323
- __proto__: null,
7324
- CheckoutSessionsSyncImplementation
7325
- }, Symbol.toStringTag, { value: "Module" }));
7326
7323
  const CouponsSyncImplementation = defineActionImplementation({
7327
7324
  args: v.object({
7328
7325
  accountId: v.optional(v.string())
@@ -7357,10 +7354,6 @@ const CouponsSyncImplementation = defineActionImplementation({
7357
7354
  }
7358
7355
  }
7359
7356
  });
7360
- const __vite_glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7361
- __proto__: null,
7362
- CouponsSyncImplementation
7363
- }, Symbol.toStringTag, { value: "Module" }));
7364
7357
  const CreditNotesSyncImplementation = defineActionImplementation({
7365
7358
  args: v.object({
7366
7359
  accountId: v.optional(v.string())
@@ -7395,10 +7388,6 @@ const CreditNotesSyncImplementation = defineActionImplementation({
7395
7388
  }
7396
7389
  }
7397
7390
  });
7398
- const __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7399
- __proto__: null,
7400
- CreditNotesSyncImplementation
7401
- }, Symbol.toStringTag, { value: "Module" }));
7402
7391
  const CustomersSyncImplementation = defineActionImplementation({
7403
7392
  args: v.object({
7404
7393
  accountId: v.optional(v.string())
@@ -7439,10 +7428,6 @@ const CustomersSyncImplementation = defineActionImplementation({
7439
7428
  }
7440
7429
  }
7441
7430
  });
7442
- const __vite_glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7443
- __proto__: null,
7444
- CustomersSyncImplementation
7445
- }, Symbol.toStringTag, { value: "Module" }));
7446
7431
  const DisputesSyncImplementation = defineActionImplementation({
7447
7432
  args: v.object({
7448
7433
  accountId: v.optional(v.string())
@@ -7477,10 +7462,6 @@ const DisputesSyncImplementation = defineActionImplementation({
7477
7462
  }
7478
7463
  }
7479
7464
  });
7480
- const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7481
- __proto__: null,
7482
- DisputesSyncImplementation
7483
- }, Symbol.toStringTag, { value: "Module" }));
7484
7465
  const EarlyFraudWarningsSyncImplementation = defineActionImplementation({
7485
7466
  args: v.object({
7486
7467
  accountId: v.optional(v.string())
@@ -7515,10 +7496,6 @@ const EarlyFraudWarningsSyncImplementation = defineActionImplementation({
7515
7496
  }
7516
7497
  }
7517
7498
  });
7518
- const __vite_glob_0_9$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7519
- __proto__: null,
7520
- EarlyFraudWarningsSyncImplementation
7521
- }, Symbol.toStringTag, { value: "Module" }));
7522
7499
  const InvoicesSyncImplementation = defineActionImplementation({
7523
7500
  args: v.object({
7524
7501
  accountId: v.optional(v.string())
@@ -7560,10 +7537,6 @@ const InvoicesSyncImplementation = defineActionImplementation({
7560
7537
  }
7561
7538
  }
7562
7539
  });
7563
- const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7564
- __proto__: null,
7565
- InvoicesSyncImplementation
7566
- }, Symbol.toStringTag, { value: "Module" }));
7567
7540
  const PaymentIntentsSyncImplementation = defineActionImplementation({
7568
7541
  args: v.object({
7569
7542
  accountId: v.optional(v.string())
@@ -7598,10 +7571,6 @@ const PaymentIntentsSyncImplementation = defineActionImplementation({
7598
7571
  }
7599
7572
  }
7600
7573
  });
7601
- const __vite_glob_0_11$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7602
- __proto__: null,
7603
- PaymentIntentsSyncImplementation
7604
- }, Symbol.toStringTag, { value: "Module" }));
7605
7574
  const PaymentMethodsSyncImplementation = defineActionImplementation({
7606
7575
  args: v.object({
7607
7576
  accountId: v.optional(v.string())
@@ -7636,10 +7605,6 @@ const PaymentMethodsSyncImplementation = defineActionImplementation({
7636
7605
  }
7637
7606
  }
7638
7607
  });
7639
- const __vite_glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7640
- __proto__: null,
7641
- PaymentMethodsSyncImplementation
7642
- }, Symbol.toStringTag, { value: "Module" }));
7643
7608
  const PayoutsSyncImplementation = defineActionImplementation({
7644
7609
  args: v.object({
7645
7610
  accountId: v.optional(v.string())
@@ -7674,10 +7639,6 @@ const PayoutsSyncImplementation = defineActionImplementation({
7674
7639
  }
7675
7640
  }
7676
7641
  });
7677
- const __vite_glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7678
- __proto__: null,
7679
- PayoutsSyncImplementation
7680
- }, Symbol.toStringTag, { value: "Module" }));
7681
7642
  const PlansSyncImplementation = defineActionImplementation({
7682
7643
  args: v.object({
7683
7644
  accountId: v.optional(v.string())
@@ -7715,10 +7676,6 @@ const PlansSyncImplementation = defineActionImplementation({
7715
7676
  }
7716
7677
  }
7717
7678
  });
7718
- const __vite_glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7719
- __proto__: null,
7720
- PlansSyncImplementation
7721
- }, Symbol.toStringTag, { value: "Module" }));
7722
7679
  const PricesSyncImplementation = defineActionImplementation({
7723
7680
  args: v.object({
7724
7681
  accountId: v.optional(v.string())
@@ -7756,10 +7713,6 @@ const PricesSyncImplementation = defineActionImplementation({
7756
7713
  }
7757
7714
  }
7758
7715
  });
7759
- const __vite_glob_0_15$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7760
- __proto__: null,
7761
- PricesSyncImplementation
7762
- }, Symbol.toStringTag, { value: "Module" }));
7763
7716
  const ProductsSyncImplementation = defineActionImplementation({
7764
7717
  args: v.object({
7765
7718
  accountId: v.optional(v.string())
@@ -7810,10 +7763,6 @@ const ProductsSyncImplementation = defineActionImplementation({
7810
7763
  }
7811
7764
  }
7812
7765
  });
7813
- const __vite_glob_0_16$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7814
- __proto__: null,
7815
- ProductsSyncImplementation
7816
- }, Symbol.toStringTag, { value: "Module" }));
7817
7766
  const PromotionCodesSyncImplementation = defineActionImplementation({
7818
7767
  args: v.object({
7819
7768
  accountId: v.optional(v.string())
@@ -7848,10 +7797,6 @@ const PromotionCodesSyncImplementation = defineActionImplementation({
7848
7797
  }
7849
7798
  }
7850
7799
  });
7851
- const __vite_glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7852
- __proto__: null,
7853
- PromotionCodesSyncImplementation
7854
- }, Symbol.toStringTag, { value: "Module" }));
7855
7800
  const RefundsSyncImplementation = defineActionImplementation({
7856
7801
  args: v.object({
7857
7802
  accountId: v.optional(v.string())
@@ -7886,10 +7831,6 @@ const RefundsSyncImplementation = defineActionImplementation({
7886
7831
  }
7887
7832
  }
7888
7833
  });
7889
- const __vite_glob_0_18$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7890
- __proto__: null,
7891
- RefundsSyncImplementation
7892
- }, Symbol.toStringTag, { value: "Module" }));
7893
7834
  const ReviewsSyncImplementation = defineActionImplementation({
7894
7835
  args: v.object({
7895
7836
  accountId: v.optional(v.string())
@@ -7924,10 +7865,6 @@ const ReviewsSyncImplementation = defineActionImplementation({
7924
7865
  }
7925
7866
  }
7926
7867
  });
7927
- const __vite_glob_0_19$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7928
- __proto__: null,
7929
- ReviewsSyncImplementation
7930
- }, Symbol.toStringTag, { value: "Module" }));
7931
7868
  const SetupIntentsSyncImplementation = defineActionImplementation({
7932
7869
  args: v.object({
7933
7870
  accountId: v.optional(v.string())
@@ -7962,10 +7899,6 @@ const SetupIntentsSyncImplementation = defineActionImplementation({
7962
7899
  }
7963
7900
  }
7964
7901
  });
7965
- const __vite_glob_0_20$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7966
- __proto__: null,
7967
- SetupIntentsSyncImplementation
7968
- }, Symbol.toStringTag, { value: "Module" }));
7969
7902
  const SubscriptionSchedulesSyncImplementation = defineActionImplementation({
7970
7903
  args: v.object({
7971
7904
  accountId: v.optional(v.string())
@@ -8001,10 +7934,6 @@ const SubscriptionSchedulesSyncImplementation = defineActionImplementation({
8001
7934
  }
8002
7935
  }
8003
7936
  });
8004
- const __vite_glob_0_21$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8005
- __proto__: null,
8006
- SubscriptionSchedulesSyncImplementation
8007
- }, Symbol.toStringTag, { value: "Module" }));
8008
7937
  const SubscriptionsSyncImplementation = defineActionImplementation({
8009
7938
  args: v.object({
8010
7939
  accountId: v.optional(v.string())
@@ -8084,10 +8013,6 @@ const SubscriptionsSyncImplementation = defineActionImplementation({
8084
8013
  }
8085
8014
  }
8086
8015
  });
8087
- const __vite_glob_0_22$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8088
- __proto__: null,
8089
- SubscriptionsSyncImplementation
8090
- }, Symbol.toStringTag, { value: "Module" }));
8091
8016
  const TaxIdsSyncImplementation = defineActionImplementation({
8092
8017
  args: v.object({
8093
8018
  accountId: v.optional(v.string())
@@ -8122,10 +8047,6 @@ const TaxIdsSyncImplementation = defineActionImplementation({
8122
8047
  }
8123
8048
  }
8124
8049
  });
8125
- const __vite_glob_0_23$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8126
- __proto__: null,
8127
- TaxIdsSyncImplementation
8128
- }, Symbol.toStringTag, { value: "Module" }));
8129
8050
  const TransfersSyncImplementation = defineActionImplementation({
8130
8051
  args: v.object({
8131
8052
  accountId: v.optional(v.string())
@@ -8160,46 +8081,33 @@ const TransfersSyncImplementation = defineActionImplementation({
8160
8081
  }
8161
8082
  }
8162
8083
  });
8163
- const __vite_glob_0_24$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8164
- __proto__: null,
8084
+ const SYNC_HANDLERS = [
8085
+ AccountsSyncImplementation,
8086
+ BillingPortalConfigurationsSyncImplementation,
8087
+ CapabilitiesSyncImplementation,
8088
+ ChargesSyncImplementation,
8089
+ CheckoutSessionsSyncImplementation,
8090
+ CouponsSyncImplementation,
8091
+ CreditNotesSyncImplementation,
8092
+ CustomersSyncImplementation,
8093
+ DisputesSyncImplementation,
8094
+ EarlyFraudWarningsSyncImplementation,
8095
+ InvoicesSyncImplementation,
8096
+ PaymentIntentsSyncImplementation,
8097
+ PaymentMethodsSyncImplementation,
8098
+ PayoutsSyncImplementation,
8099
+ PlansSyncImplementation,
8100
+ PricesSyncImplementation,
8101
+ ProductsSyncImplementation,
8102
+ PromotionCodesSyncImplementation,
8103
+ RefundsSyncImplementation,
8104
+ ReviewsSyncImplementation,
8105
+ SetupIntentsSyncImplementation,
8106
+ SubscriptionSchedulesSyncImplementation,
8107
+ SubscriptionsSyncImplementation,
8108
+ TaxIdsSyncImplementation,
8165
8109
  TransfersSyncImplementation
8166
- }, Symbol.toStringTag, { value: "Module" }));
8167
- const HANDLERS_MODULES$1 = Object.values(
8168
- [
8169
- __vite_glob_0_0$1,
8170
- __vite_glob_0_1$1,
8171
- __vite_glob_0_2$1,
8172
- __vite_glob_0_3$1,
8173
- __vite_glob_0_4$1,
8174
- __vite_glob_0_5$1,
8175
- __vite_glob_0_6$1,
8176
- __vite_glob_0_7$1,
8177
- __vite_glob_0_8$1,
8178
- __vite_glob_0_9$1,
8179
- __vite_glob_0_10$1,
8180
- __vite_glob_0_11$1,
8181
- __vite_glob_0_12$1,
8182
- __vite_glob_0_13$1,
8183
- __vite_glob_0_14$1,
8184
- __vite_glob_0_15$1,
8185
- __vite_glob_0_16$1,
8186
- __vite_glob_0_17$1,
8187
- __vite_glob_0_18$1,
8188
- __vite_glob_0_19$1,
8189
- __vite_glob_0_20$1,
8190
- __vite_glob_0_21$1,
8191
- __vite_glob_0_22$1,
8192
- __vite_glob_0_23$1,
8193
- __vite_glob_0_24$1
8194
- ]
8195
- );
8196
- if (HANDLERS_MODULES$1.some((handler) => Object.keys(handler).length > 1))
8197
- throw new Error(
8198
- "Each sync handler file should only have one export / default export"
8199
- );
8200
- const SYNC_HANDLERS = HANDLERS_MODULES$1.map(
8201
- (exports$1) => Object.values(exports$1)[0]
8202
- );
8110
+ ];
8203
8111
  if (SYNC_HANDLERS.some(
8204
8112
  (handler) => !["handler", "name"].every((key) => key in handler)
8205
8113
  ))
@@ -8294,7 +8202,7 @@ const SyncPortalImplementation = defineActionImplementation({
8294
8202
  function defineWebhookHandler(handler) {
8295
8203
  return handler;
8296
8204
  }
8297
- const accounts_handler = defineWebhookHandler({
8205
+ const AccountsHandlerImplementation = defineWebhookHandler({
8298
8206
  events: [
8299
8207
  // "account.application.authorized",
8300
8208
  // "account.application.deauthorized",
@@ -8341,11 +8249,7 @@ const accounts_handler = defineWebhookHandler({
8341
8249
  }
8342
8250
  }
8343
8251
  });
8344
- const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8345
- __proto__: null,
8346
- default: accounts_handler
8347
- }, Symbol.toStringTag, { value: "Module" }));
8348
- const billingPortalConfiguration_handler = defineWebhookHandler({
8252
+ const BillingPortalConfigurationHandlerImplementation = defineWebhookHandler({
8349
8253
  events: [
8350
8254
  "billing_portal.configuration.created",
8351
8255
  "billing_portal.configuration.updated"
@@ -8379,11 +8283,7 @@ const billingPortalConfiguration_handler = defineWebhookHandler({
8379
8283
  }
8380
8284
  }
8381
8285
  });
8382
- const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8383
- __proto__: null,
8384
- default: billingPortalConfiguration_handler
8385
- }, Symbol.toStringTag, { value: "Module" }));
8386
- const capabilities_handler = defineWebhookHandler({
8286
+ const CapabilitiesHandlerImplementation = defineWebhookHandler({
8387
8287
  events: ["capability.updated"],
8388
8288
  handle: async (event, context, configuration, options) => {
8389
8289
  if (configuration.sync.tables.stripeAccounts !== true) return;
@@ -8411,11 +8311,7 @@ const capabilities_handler = defineWebhookHandler({
8411
8311
  }
8412
8312
  }
8413
8313
  });
8414
- const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8415
- __proto__: null,
8416
- default: capabilities_handler
8417
- }, Symbol.toStringTag, { value: "Module" }));
8418
- const charges_handler = defineWebhookHandler({
8314
+ const ChargesHandlerImplementation = defineWebhookHandler({
8419
8315
  events: [
8420
8316
  "charge.captured",
8421
8317
  "charge.expired",
@@ -8457,11 +8353,7 @@ const charges_handler = defineWebhookHandler({
8457
8353
  }
8458
8354
  }
8459
8355
  });
8460
- const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8461
- __proto__: null,
8462
- default: charges_handler
8463
- }, Symbol.toStringTag, { value: "Module" }));
8464
- const checkoutSessions_handler = defineWebhookHandler({
8356
+ const CheckoutSessionsHandlerImplementation = defineWebhookHandler({
8465
8357
  events: [
8466
8358
  "checkout.session.async_payment_failed",
8467
8359
  "checkout.session.async_payment_succeeded",
@@ -8497,11 +8389,7 @@ const checkoutSessions_handler = defineWebhookHandler({
8497
8389
  }
8498
8390
  }
8499
8391
  });
8500
- const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8501
- __proto__: null,
8502
- default: checkoutSessions_handler
8503
- }, Symbol.toStringTag, { value: "Module" }));
8504
- const coupons_handler = defineWebhookHandler({
8392
+ const CouponsHandlerImplementation = defineWebhookHandler({
8505
8393
  events: ["coupon.created", "coupon.updated", "coupon.deleted"],
8506
8394
  handle: async (event, context, configuration, options) => {
8507
8395
  if (configuration.sync.tables.stripeCoupons !== true) return;
@@ -8544,11 +8432,7 @@ const coupons_handler = defineWebhookHandler({
8544
8432
  }
8545
8433
  }
8546
8434
  });
8547
- const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8548
- __proto__: null,
8549
- default: coupons_handler
8550
- }, Symbol.toStringTag, { value: "Module" }));
8551
- const creditNotes_handler = defineWebhookHandler({
8435
+ const CreditNotesHandlerImplementation = defineWebhookHandler({
8552
8436
  events: ["credit_note.created", "credit_note.updated", "credit_note.voided"],
8553
8437
  handle: async (event, context, configuration, options) => {
8554
8438
  if (configuration.sync.tables.stripeCreditNotes !== true) return;
@@ -8578,11 +8462,7 @@ const creditNotes_handler = defineWebhookHandler({
8578
8462
  }
8579
8463
  }
8580
8464
  });
8581
- const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8582
- __proto__: null,
8583
- default: creditNotes_handler
8584
- }, Symbol.toStringTag, { value: "Module" }));
8585
- const customers_handler = defineWebhookHandler({
8465
+ const CustomersHandlerImplementation = defineWebhookHandler({
8586
8466
  events: ["customer.created", "customer.updated", "customer.deleted"],
8587
8467
  handle: async (event, context, configuration, options) => {
8588
8468
  if (configuration.sync.tables.stripeCustomers !== true) return;
@@ -8633,11 +8513,7 @@ const customers_handler = defineWebhookHandler({
8633
8513
  }
8634
8514
  }
8635
8515
  });
8636
- const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8637
- __proto__: null,
8638
- default: customers_handler
8639
- }, Symbol.toStringTag, { value: "Module" }));
8640
- const disputes_handler = defineWebhookHandler({
8516
+ const DisputesHandlerImplementation = defineWebhookHandler({
8641
8517
  events: [
8642
8518
  "charge.dispute.created",
8643
8519
  "charge.dispute.updated",
@@ -8675,11 +8551,7 @@ const disputes_handler = defineWebhookHandler({
8675
8551
  }
8676
8552
  }
8677
8553
  });
8678
- const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8679
- __proto__: null,
8680
- default: disputes_handler
8681
- }, Symbol.toStringTag, { value: "Module" }));
8682
- const earlyFraudWarnings_handler = defineWebhookHandler({
8554
+ const EarlyFraudWarningsHandlerImplementation = defineWebhookHandler({
8683
8555
  events: [
8684
8556
  "radar.early_fraud_warning.created",
8685
8557
  "radar.early_fraud_warning.updated"
@@ -8711,11 +8583,7 @@ const earlyFraudWarnings_handler = defineWebhookHandler({
8711
8583
  }
8712
8584
  }
8713
8585
  });
8714
- const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8715
- __proto__: null,
8716
- default: earlyFraudWarnings_handler
8717
- }, Symbol.toStringTag, { value: "Module" }));
8718
- const invoices_handler = defineWebhookHandler({
8586
+ const InvoicesHandlerImplementation = defineWebhookHandler({
8719
8587
  events: [
8720
8588
  "invoice.created",
8721
8589
  "invoice.deleted",
@@ -8782,11 +8650,7 @@ const invoices_handler = defineWebhookHandler({
8782
8650
  }
8783
8651
  }
8784
8652
  });
8785
- const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8786
- __proto__: null,
8787
- default: invoices_handler
8788
- }, Symbol.toStringTag, { value: "Module" }));
8789
- const mandates_handler = defineWebhookHandler({
8653
+ const MandatesHandlerImplementation = defineWebhookHandler({
8790
8654
  events: ["mandate.updated"],
8791
8655
  handle: async (event, context, configuration, options) => {
8792
8656
  if (configuration.sync.tables.stripeMandates !== true) return;
@@ -8814,11 +8678,7 @@ const mandates_handler = defineWebhookHandler({
8814
8678
  }
8815
8679
  }
8816
8680
  });
8817
- const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8818
- __proto__: null,
8819
- default: mandates_handler
8820
- }, Symbol.toStringTag, { value: "Module" }));
8821
- const paymentIntents_handler = defineWebhookHandler({
8681
+ const PaymentIntentsHandlerImplementation = defineWebhookHandler({
8822
8682
  events: [
8823
8683
  "payment_intent.created",
8824
8684
  "payment_intent.amount_capturable_updated",
@@ -8862,11 +8722,7 @@ const paymentIntents_handler = defineWebhookHandler({
8862
8722
  }
8863
8723
  }
8864
8724
  });
8865
- const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8866
- __proto__: null,
8867
- default: paymentIntents_handler
8868
- }, Symbol.toStringTag, { value: "Module" }));
8869
- const paymentMethods_handler = defineWebhookHandler({
8725
+ const PaymentMethodsHandlerImplementation = defineWebhookHandler({
8870
8726
  events: [
8871
8727
  "payment_method.attached",
8872
8728
  "payment_method.automatically_updated",
@@ -8902,11 +8758,7 @@ const paymentMethods_handler = defineWebhookHandler({
8902
8758
  }
8903
8759
  }
8904
8760
  });
8905
- const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8906
- __proto__: null,
8907
- default: paymentMethods_handler
8908
- }, Symbol.toStringTag, { value: "Module" }));
8909
- const payouts_handler = defineWebhookHandler({
8761
+ const PayoutsHandlerImplementation = defineWebhookHandler({
8910
8762
  events: [
8911
8763
  "payout.canceled",
8912
8764
  "payout.created",
@@ -8946,11 +8798,7 @@ const payouts_handler = defineWebhookHandler({
8946
8798
  }
8947
8799
  }
8948
8800
  });
8949
- const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8950
- __proto__: null,
8951
- default: payouts_handler
8952
- }, Symbol.toStringTag, { value: "Module" }));
8953
- const plans_handler = defineWebhookHandler({
8801
+ const PlansHandlerImplementation = defineWebhookHandler({
8954
8802
  events: ["plan.created", "plan.deleted", "plan.updated"],
8955
8803
  handle: async (event, context, configuration, options) => {
8956
8804
  if (configuration.sync.tables.stripePlans !== true) return;
@@ -8980,11 +8828,7 @@ const plans_handler = defineWebhookHandler({
8980
8828
  }
8981
8829
  }
8982
8830
  });
8983
- const __vite_glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8984
- __proto__: null,
8985
- default: plans_handler
8986
- }, Symbol.toStringTag, { value: "Module" }));
8987
- const prices_handler = defineWebhookHandler({
8831
+ const PricesHandlerImplementation = defineWebhookHandler({
8988
8832
  events: ["price.created", "price.updated", "price.deleted"],
8989
8833
  handle: async (event, context, configuration, options) => {
8990
8834
  if (configuration.sync.tables.stripePrices !== true) return;
@@ -9029,11 +8873,7 @@ const prices_handler = defineWebhookHandler({
9029
8873
  }
9030
8874
  }
9031
8875
  });
9032
- const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9033
- __proto__: null,
9034
- default: prices_handler
9035
- }, Symbol.toStringTag, { value: "Module" }));
9036
- const products_handler = defineWebhookHandler({
8876
+ const ProductsHandlerImplementation = defineWebhookHandler({
9037
8877
  events: ["product.created", "product.updated", "product.deleted"],
9038
8878
  handle: async (event, context, configuration, options) => {
9039
8879
  if (configuration.sync.tables.stripeProducts !== true) return;
@@ -9078,11 +8918,7 @@ const products_handler = defineWebhookHandler({
9078
8918
  }
9079
8919
  }
9080
8920
  });
9081
- const __vite_glob_0_17 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9082
- __proto__: null,
9083
- default: products_handler
9084
- }, Symbol.toStringTag, { value: "Module" }));
9085
- const promotionCodes_handler = defineWebhookHandler({
8921
+ const PromotionCodesHandlerImplementation = defineWebhookHandler({
9086
8922
  events: ["promotion_code.created", "promotion_code.updated"],
9087
8923
  handle: async (event, context, configuration, options) => {
9088
8924
  if (configuration.sync.tables.stripePromotionCodes !== true) return;
@@ -9111,11 +8947,7 @@ const promotionCodes_handler = defineWebhookHandler({
9111
8947
  }
9112
8948
  }
9113
8949
  });
9114
- const __vite_glob_0_18 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9115
- __proto__: null,
9116
- default: promotionCodes_handler
9117
- }, Symbol.toStringTag, { value: "Module" }));
9118
- const refunds_handler = defineWebhookHandler({
8950
+ const RefundsHandlerImplementation = defineWebhookHandler({
9119
8951
  events: [
9120
8952
  "refund.created",
9121
8953
  "refund.failed",
@@ -9150,11 +8982,7 @@ const refunds_handler = defineWebhookHandler({
9150
8982
  }
9151
8983
  }
9152
8984
  });
9153
- const __vite_glob_0_19 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9154
- __proto__: null,
9155
- default: refunds_handler
9156
- }, Symbol.toStringTag, { value: "Module" }));
9157
- const reviews_handler = defineWebhookHandler({
8985
+ const ReviewsHandlerImplementation = defineWebhookHandler({
9158
8986
  events: ["review.closed", "review.opened"],
9159
8987
  handle: async (event, context, configuration, options) => {
9160
8988
  if (configuration.sync.tables.stripeReviews !== true) return;
@@ -9183,11 +9011,7 @@ const reviews_handler = defineWebhookHandler({
9183
9011
  }
9184
9012
  }
9185
9013
  });
9186
- const __vite_glob_0_20 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9187
- __proto__: null,
9188
- default: reviews_handler
9189
- }, Symbol.toStringTag, { value: "Module" }));
9190
- const setupIntent_handler = defineWebhookHandler({
9014
+ const SetupIntentHandlerImplementation = defineWebhookHandler({
9191
9015
  events: [
9192
9016
  "setup_intent.canceled",
9193
9017
  "setup_intent.created",
@@ -9229,11 +9053,7 @@ const setupIntent_handler = defineWebhookHandler({
9229
9053
  }
9230
9054
  }
9231
9055
  });
9232
- const __vite_glob_0_21 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9233
- __proto__: null,
9234
- default: setupIntent_handler
9235
- }, Symbol.toStringTag, { value: "Module" }));
9236
- const subscriptionSchedules_handler = defineWebhookHandler({
9056
+ const SubscriptionSchedulesHandlerImplementation = defineWebhookHandler({
9237
9057
  events: [
9238
9058
  "subscription_schedule.aborted",
9239
9059
  "subscription_schedule.canceled",
@@ -9275,11 +9095,7 @@ const subscriptionSchedules_handler = defineWebhookHandler({
9275
9095
  }
9276
9096
  }
9277
9097
  });
9278
- const __vite_glob_0_22 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9279
- __proto__: null,
9280
- default: subscriptionSchedules_handler
9281
- }, Symbol.toStringTag, { value: "Module" }));
9282
- const subscriptions_handler = defineWebhookHandler({
9098
+ const SubscriptionsHandlerImplementation = defineWebhookHandler({
9283
9099
  events: [
9284
9100
  "customer.subscription.created",
9285
9101
  "customer.subscription.updated",
@@ -9324,11 +9140,7 @@ const subscriptions_handler = defineWebhookHandler({
9324
9140
  }
9325
9141
  }
9326
9142
  });
9327
- const __vite_glob_0_23 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9328
- __proto__: null,
9329
- default: subscriptions_handler
9330
- }, Symbol.toStringTag, { value: "Module" }));
9331
- const taxId_handler = defineWebhookHandler({
9143
+ const TaxIdHandlerImplementation = defineWebhookHandler({
9332
9144
  events: [
9333
9145
  "customer.tax_id.created",
9334
9146
  "customer.tax_id.deleted",
@@ -9362,11 +9174,7 @@ const taxId_handler = defineWebhookHandler({
9362
9174
  }
9363
9175
  }
9364
9176
  });
9365
- const __vite_glob_0_24 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9366
- __proto__: null,
9367
- default: taxId_handler
9368
- }, Symbol.toStringTag, { value: "Module" }));
9369
- const transfers_handler = defineWebhookHandler({
9177
+ const TransfersHandlerImplementation = defineWebhookHandler({
9370
9178
  events: [
9371
9179
  "transfer.created",
9372
9180
  "transfer.updated",
@@ -9402,47 +9210,34 @@ const transfers_handler = defineWebhookHandler({
9402
9210
  }
9403
9211
  }
9404
9212
  });
9405
- const __vite_glob_0_25 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9406
- __proto__: null,
9407
- default: transfers_handler
9408
- }, Symbol.toStringTag, { value: "Module" }));
9409
- const HANDLERS_MODULES = Object.values(
9410
- [
9411
- __vite_glob_0_0,
9412
- __vite_glob_0_1,
9413
- __vite_glob_0_2,
9414
- __vite_glob_0_3,
9415
- __vite_glob_0_4,
9416
- __vite_glob_0_5,
9417
- __vite_glob_0_6,
9418
- __vite_glob_0_7,
9419
- __vite_glob_0_8,
9420
- __vite_glob_0_9,
9421
- __vite_glob_0_10,
9422
- __vite_glob_0_11,
9423
- __vite_glob_0_12,
9424
- __vite_glob_0_13,
9425
- __vite_glob_0_14,
9426
- __vite_glob_0_15,
9427
- __vite_glob_0_16,
9428
- __vite_glob_0_17,
9429
- __vite_glob_0_18,
9430
- __vite_glob_0_19,
9431
- __vite_glob_0_20,
9432
- __vite_glob_0_21,
9433
- __vite_glob_0_22,
9434
- __vite_glob_0_23,
9435
- __vite_glob_0_24,
9436
- __vite_glob_0_25
9437
- ]
9438
- );
9439
- if (HANDLERS_MODULES.some((handler) => Object.keys(handler).length > 1))
9440
- throw new Error(
9441
- "Each webhook handler file should only have one export / default export"
9442
- );
9443
- const WEBHOOK_HANDLERS = HANDLERS_MODULES.map(
9444
- (exports$1) => Object.values(exports$1)[0]
9445
- );
9213
+ const WEBHOOK_HANDLERS = [
9214
+ AccountsHandlerImplementation,
9215
+ BillingPortalConfigurationHandlerImplementation,
9216
+ CapabilitiesHandlerImplementation,
9217
+ ChargesHandlerImplementation,
9218
+ CheckoutSessionsHandlerImplementation,
9219
+ CouponsHandlerImplementation,
9220
+ CreditNotesHandlerImplementation,
9221
+ CustomersHandlerImplementation,
9222
+ DisputesHandlerImplementation,
9223
+ EarlyFraudWarningsHandlerImplementation,
9224
+ InvoicesHandlerImplementation,
9225
+ MandatesHandlerImplementation,
9226
+ PaymentIntentsHandlerImplementation,
9227
+ PaymentMethodsHandlerImplementation,
9228
+ PayoutsHandlerImplementation,
9229
+ PlansHandlerImplementation,
9230
+ PricesHandlerImplementation,
9231
+ ProductsHandlerImplementation,
9232
+ PromotionCodesHandlerImplementation,
9233
+ RefundsHandlerImplementation,
9234
+ ReviewsHandlerImplementation,
9235
+ SetupIntentHandlerImplementation,
9236
+ SubscriptionSchedulesHandlerImplementation,
9237
+ SubscriptionsHandlerImplementation,
9238
+ TaxIdHandlerImplementation,
9239
+ TransfersHandlerImplementation
9240
+ ];
9446
9241
  if (WEBHOOK_HANDLERS.some(
9447
9242
  (handler) => !["handle", "events"].every((key) => key in handler)
9448
9243
  ))
@@ -9875,10 +9670,15 @@ const internalConvexStripe = (configuration_, options_) => {
9875
9670
  };
9876
9671
  export {
9877
9672
  Logger,
9673
+ REDIRECT_HANDLERS,
9674
+ SYNC_HANDLERS,
9675
+ WEBHOOK_HANDLERS,
9676
+ allStripeTablesExcept,
9878
9677
  buildSignedReturnUrl,
9879
9678
  defineRedirectHandler,
9880
9679
  defineWebhookHandler,
9881
9680
  internalConvexStripe,
9681
+ onlyStripeTables,
9882
9682
  stripeTables,
9883
9683
  syncAllTables,
9884
9684
  syncAllTablesExcept,