@raideno/convex-stripe 0.1.0 → 0.1.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/dist/server.js +15 -17
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -2839,23 +2839,21 @@ var SyncAllImplementation = defineActionImplementation({
|
|
|
2839
2839
|
args: v32.object({}),
|
|
2840
2840
|
name: "sync",
|
|
2841
2841
|
handler: async (context, args, configuration) => {
|
|
2842
|
-
|
|
2843
|
-
configuration.sync.
|
|
2844
|
-
configuration.sync.
|
|
2845
|
-
configuration.sync.
|
|
2846
|
-
configuration.sync.
|
|
2847
|
-
configuration.sync.
|
|
2848
|
-
configuration.sync.
|
|
2849
|
-
|
|
2850
|
-
configuration.sync.
|
|
2851
|
-
configuration.sync.
|
|
2852
|
-
configuration.sync.
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
configuration.sync.convex_stripe_payment_intents ? PaymentIntentsSyncImplementation.handler(context, args, configuration) : null
|
|
2858
|
-
]);
|
|
2842
|
+
const syncs = [
|
|
2843
|
+
configuration.sync.convex_stripe_customers && CustomersSyncImplementation,
|
|
2844
|
+
configuration.sync.convex_stripe_coupons && CouponsSyncImplementation,
|
|
2845
|
+
configuration.sync.convex_stripe_payouts && PayoutsSyncImplementation,
|
|
2846
|
+
configuration.sync.convex_stripe_prices && PricesSyncImplementation,
|
|
2847
|
+
configuration.sync.convex_stripe_products && ProductsSyncImplementation,
|
|
2848
|
+
configuration.sync.convex_stripe_promotion_codes && PromotionCodesSyncImplementation,
|
|
2849
|
+
configuration.sync.convex_stripe_subscriptions && SubscriptionsSyncImplementation,
|
|
2850
|
+
configuration.sync.convex_stripe_refunds && RefundsSyncImplementation,
|
|
2851
|
+
configuration.sync.convex_stripe_checkout_sessions && CheckoutSessionsSyncImplementation,
|
|
2852
|
+
configuration.sync.convex_stripe_payment_intents && PaymentIntentsSyncImplementation
|
|
2853
|
+
];
|
|
2854
|
+
for (const sync of syncs) {
|
|
2855
|
+
if (sync) await sync.handler(context, {}, configuration);
|
|
2856
|
+
}
|
|
2859
2857
|
}
|
|
2860
2858
|
});
|
|
2861
2859
|
|