Adds type imports

This commit is contained in:
Mihovil Ilakovac 2025-02-20 18:11:25 +01:00
parent 77ad7a4969
commit e40c1e4cd3

View File

@ -2,21 +2,21 @@ import { type MiddlewareConfigFn, HttpError } from 'wasp/server';
import { type PaymentsWebhook } from 'wasp/server/api'; import { type PaymentsWebhook } from 'wasp/server/api';
import { type PrismaClient } from '@prisma/client'; import { type PrismaClient } from '@prisma/client';
import express from 'express'; import express from 'express';
import { Stripe } from 'stripe'; import type { Stripe } from 'stripe';
import { stripe } from './stripeClient'; import { stripe } from './stripeClient';
import { paymentPlans, PaymentPlanId, SubscriptionStatus, PaymentPlanEffect, PaymentPlan } from '../plans'; import { paymentPlans, PaymentPlanId, type SubscriptionStatus, type PaymentPlanEffect } from '../plans';
import { updateUserStripePaymentDetails } from './paymentDetails'; import { updateUserStripePaymentDetails } from './paymentDetails';
import { emailSender } from 'wasp/server/email'; import { emailSender } from 'wasp/server/email';
import { assertUnreachable } from '../../shared/utils'; import { assertUnreachable } from '../../shared/utils';
import { requireNodeEnvVar } from '../../server/utils'; import { requireNodeEnvVar } from '../../server/utils';
import { z } from 'zod'; import { z } from 'zod';
import { import {
InvoicePaidData,
parseWebhookPayload, parseWebhookPayload,
PaymentIntentSucceededData, type InvoicePaidData,
SessionCompletedData, type PaymentIntentSucceededData,
SubscriptionDeletedData, type SessionCompletedData,
SubscriptionUpdatedData, type SubscriptionDeletedData,
type SubscriptionUpdatedData,
} from './webhookPayload'; } from './webhookPayload';
import { UnhandledWebhookEventError } from '../errors'; import { UnhandledWebhookEventError } from '../errors';