@raideno/convex-stripe 0.2.7 → 0.2.8

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/index.d.ts CHANGED
@@ -1608,12 +1608,12 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration,
1608
1608
  * Run this manually or on deploy to keep Stripe in sync with your config.
1609
1609
  */
1610
1610
  sync: RegisteredAction<"internal", {
1611
+ catalog?: boolean | undefined;
1611
1612
  webhooks?: {
1612
1613
  account?: boolean | undefined;
1613
1614
  connect?: boolean | undefined;
1614
1615
  } | undefined;
1615
1616
  portal?: boolean | undefined;
1616
- unstable_catalog?: boolean | undefined;
1617
1617
  tables: boolean | {
1618
1618
  withConnect?: boolean | undefined;
1619
1619
  };
package/dist/server.js CHANGED
@@ -8285,9 +8285,7 @@ const SyncPortalImplementation = defineActionImplementation({
8285
8285
  );
8286
8286
  return;
8287
8287
  }
8288
- await stripe.billingPortal.configurations.create(
8289
- configuration.sync.portal
8290
- );
8288
+ await stripe.billingPortal.configurations.create(configuration.sync.portal);
8291
8289
  console.info(
8292
8290
  "[STRIPE SYNC PORTAL](Created) Default billing portal configuration created."
8293
8291
  );
@@ -9606,19 +9604,13 @@ const SyncImplementation = defineActionImplementation({
9606
9604
  })
9607
9605
  ),
9608
9606
  portal: v.optional(v.boolean()),
9609
- unstable_catalog: v.optional(v.boolean())
9607
+ catalog: v.optional(v.boolean())
9610
9608
  }),
9611
9609
  name: "sync",
9612
- handler: async (context, {
9613
- tables,
9614
- webhooks,
9615
- // TODO: enable catalog and portal setup for accounts as well, except if enabling it on root enables it on sub accounts too
9616
- portal,
9617
- unstable_catalog
9618
- }, configuration, options) => {
9610
+ handler: async (context, { tables, webhooks, portal, catalog }, configuration, options) => {
9619
9611
  const tasks = [
9620
9612
  [
9621
- Boolean(unstable_catalog),
9613
+ Boolean(catalog),
9622
9614
  () => SyncCatalogImplementation.handler(
9623
9615
  context,
9624
9616
  {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raideno/convex-stripe",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Easy stripe billing for convex apps.",
5
5
  "keywords": [
6
6
  "billing",