diff --git a/apps/backend/src/app.module.ts b/apps/backend/src/app.module.ts index f2349a7..77d354f 100644 --- a/apps/backend/src/app.module.ts +++ b/apps/backend/src/app.module.ts @@ -9,7 +9,7 @@ import { PaymentVerificationModule } from './payment-verification/payment-verifi import { SuperTokenAccountingModule } from './super-token-accounting/super-token-accounting.module'; import { SuperfluidStripeConverterModule } from './superfluid-stripe-converter/superfluid-stripe-converter.module'; import { HealthModule } from './health/health.module'; -import { registerStripeModule } from './stripeModuleConfig'; +import { registerStripeModule } from './stripe-module-config'; const registerConfigModule = () => ConfigModule.forRoot({ @@ -24,7 +24,7 @@ const registerBullModule = () => host: configService.getOrThrow('REDIS_HOST'), port: configService.getOrThrow('REDIS_PORT'), password: configService.get('REDIS_PASSWORD'), - username: configService.get('REDIS_USER') + username: configService.get('REDIS_USER'), }, defaultJobOptions: { attempts: 3, diff --git a/apps/backend/src/checkout-session/checkout-session.module.ts b/apps/backend/src/checkout-session/checkout-session.module.ts index 8b0410a..c3c9ba6 100644 --- a/apps/backend/src/checkout-session/checkout-session.module.ts +++ b/apps/backend/src/checkout-session/checkout-session.module.ts @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common'; import { CheckoutSessionController } from './checkout-session.controller'; import { CheckoutSessionProcesser } from './checkout-session.processer'; import { registerQueueModule } from './checkout-session.queue'; -import { registerStripeModule } from 'src/stripeModuleConfig'; +import { registerStripeModule } from 'src/stripe-module-config'; import { SuperfluidStripeConverterModule } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.module'; @Module({ diff --git a/apps/backend/src/checkout-session/checkout-session.processer.ts b/apps/backend/src/checkout-session/checkout-session.processer.ts index 499f78e..4b12e45 100644 --- a/apps/backend/src/checkout-session/checkout-session.processer.ts +++ b/apps/backend/src/checkout-session/checkout-session.processer.ts @@ -6,7 +6,7 @@ import { InjectStripeClient } from '@golevelup/nestjs-stripe'; import Stripe from 'stripe'; import { AddressSchema, CreateSessionData } from './checkout-session.controller'; import { SuperfluidStripeConverterService } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.service'; -import { DEFAULT_PAGING } from 'src/stripeModuleConfig'; +import { DEFAULT_PAGING } from 'src/stripe-module-config'; import { z } from 'zod'; export const CHECKOUT_SESSION_JOB_NAME = 'checkout-session'; diff --git a/apps/backend/src/payment-verification/payment-verification.module.ts b/apps/backend/src/payment-verification/payment-verification.module.ts index dc8587b..536dea3 100644 --- a/apps/backend/src/payment-verification/payment-verification.module.ts +++ b/apps/backend/src/payment-verification/payment-verification.module.ts @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common'; import { PaymentVerificationProcessor } from './payment-verification.processor'; import { PaymentVerificationService } from './payment-verification.service'; import { registerQueueModules } from './payment-verification.queue'; -import { registerStripeModule } from 'src/stripeModuleConfig'; +import { registerStripeModule } from 'src/stripe-module-config'; import { SuperTokenAccountingModule } from 'src/super-token-accounting/super-token-accounting.module'; import { SuperfluidStripeConverterModule } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.module'; diff --git a/apps/backend/src/payment-verification/payment-verification.processor.ts b/apps/backend/src/payment-verification/payment-verification.processor.ts index e45270f..20a0915 100644 --- a/apps/backend/src/payment-verification/payment-verification.processor.ts +++ b/apps/backend/src/payment-verification/payment-verification.processor.ts @@ -6,13 +6,13 @@ import Stripe from 'stripe'; import _ from 'lodash'; import { SuperTokenAccountingService } from 'src/super-token-accounting/super-token-accounting.service'; import { SuperfluidStripeConverterService } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.service'; -import { DEFAULT_PAGING } from 'src/stripeModuleConfig'; +import { DEFAULT_PAGING } from 'src/stripe-module-config'; import { SuperfluidStripeSubscriptionsMetadata, SuperfluidStripeSubscriptionsMetadataSchema, } from 'src/checkout-session/checkout-session.processer'; import stringify from 'safe-stable-stringify'; -import { currencyDecimalMapping } from 'src/currencies'; +import { currencyDecimalMapping } from 'src/stripe-currencies'; import { formatUnits } from 'viem'; export const PAYMENT_VERIFICATION_JOB_NAME = 'verify-customer-invoice-payments-by-super-token'; diff --git a/apps/backend/src/currencies.ts b/apps/backend/src/stripe-currencies.ts similarity index 100% rename from apps/backend/src/currencies.ts rename to apps/backend/src/stripe-currencies.ts diff --git a/apps/backend/src/stripe-listener/stripe-listener.module.ts b/apps/backend/src/stripe-listener/stripe-listener.module.ts index 8359db0..13d7204 100644 --- a/apps/backend/src/stripe-listener/stripe-listener.module.ts +++ b/apps/backend/src/stripe-listener/stripe-listener.module.ts @@ -6,7 +6,7 @@ import { InjectQueue } from '@nestjs/bullmq'; import { Queue } from 'bullmq'; import { StripeModule } from '@golevelup/nestjs-stripe'; import { PaymentVerificationModule } from 'src/payment-verification/payment-verification.module'; -import { registerStripeModule } from 'src/stripeModuleConfig'; +import { registerStripeModule } from 'src/stripe-module-config'; @Module({ imports: [registerQueueModule(), registerStripeModule(), PaymentVerificationModule], diff --git a/apps/backend/src/stripe-listener/stripe-listener.processor.ts b/apps/backend/src/stripe-listener/stripe-listener.processor.ts index dad7a0e..a7f7a11 100644 --- a/apps/backend/src/stripe-listener/stripe-listener.processor.ts +++ b/apps/backend/src/stripe-listener/stripe-listener.processor.ts @@ -6,7 +6,7 @@ import { InjectStripeClient } from '@golevelup/nestjs-stripe'; import Stripe from 'stripe'; import { PAYMENT_VERIFICATION_JOB_NAME } from 'src/payment-verification/payment-verification.processor'; import { PaymentVerificationService } from 'src/payment-verification/payment-verification.service'; -import { DEFAULT_PAGING } from 'src/stripeModuleConfig'; +import { DEFAULT_PAGING } from 'src/stripe-module-config'; export const STRIPE_LISTENER_JOB_NAME = 'poll-new-invoices'; diff --git a/apps/backend/src/stripeModuleConfig.ts b/apps/backend/src/stripe-module-config.ts similarity index 100% rename from apps/backend/src/stripeModuleConfig.ts rename to apps/backend/src/stripe-module-config.ts diff --git a/apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/ChainToSuperTokenReceiverMap.ts b/apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/chain-to-super-token-receiver-map.ts similarity index 100% rename from apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/ChainToSuperTokenReceiverMap.ts rename to apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/chain-to-super-token-receiver-map.ts diff --git a/apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/StripeCurrencyToSuperTokenMap.ts b/apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/stripe-currency-to-super-token-map.ts similarity index 100% rename from apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/StripeCurrencyToSuperTokenMap.ts rename to apps/backend/src/superfluid-stripe-converter/price-conversion-strategy/stripe-currency-to-super-token-map.ts diff --git a/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.controller.spec.ts b/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.controller.spec.ts index 527111f..17e4f0c 100644 --- a/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.controller.spec.ts +++ b/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.controller.spec.ts @@ -9,7 +9,9 @@ describe('SuperfluidStripeConverterController', () => { controllers: [SuperfluidStripeConverterController], }).compile(); - controller = module.get(SuperfluidStripeConverterController); + controller = module.get( + SuperfluidStripeConverterController, + ); }); it('should be defined', () => { diff --git a/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.module.ts b/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.module.ts index 633ac19..07b872a 100644 --- a/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.module.ts +++ b/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.module.ts @@ -1,7 +1,7 @@ import { Module } from '@nestjs/common'; import { SuperfluidStripeConverterController } from './superfluid-stripe-converter.controller'; import { SuperfluidStripeConverterService } from './superfluid-stripe-converter.service'; -import { registerStripeModule } from 'src/stripeModuleConfig'; +import { registerStripeModule } from 'src/stripe-module-config'; @Module({ imports: [registerStripeModule()], diff --git a/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.service.ts b/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.service.ts index 5c64770..4ef55e5 100644 --- a/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.service.ts +++ b/apps/backend/src/superfluid-stripe-converter/superfluid-stripe-converter.service.ts @@ -3,13 +3,13 @@ import Stripe from 'stripe'; import { ChainToSuperTokenReceiverMap, defaultChainToSuperTokenReceiverMap, -} from './price-conversion-strategy/ChainToSuperTokenReceiverMap'; +} from './price-conversion-strategy/chain-to-super-token-receiver-map'; import { StripeCurrencyToSuperTokenMap, defaultStripeCurrencyToSuperTokenMap, -} from './price-conversion-strategy/StripeCurrencyToSuperTokenMap'; +} from './price-conversion-strategy/stripe-currency-to-super-token-map'; import { ChainId, PaymentOption, ProductDetails, WidgetProps } from '@superfluid-finance/widget'; -import { currencyDecimalMapping } from 'src/currencies'; +import { currencyDecimalMapping } from 'src/stripe-currencies'; import { formatUnits } from 'viem'; type Input = { diff --git a/apps/backend/tsconfig.json b/apps/backend/tsconfig.json index 8e54ba3..60a08f3 100644 --- a/apps/backend/tsconfig.json +++ b/apps/backend/tsconfig.json @@ -12,6 +12,7 @@ "baseUrl": "./", "incremental": true, "skipLibCheck": true, - "strictNullChecks": true + "strictNullChecks": true, + "forceConsistentCasingInFileNames": true } } \ No newline at end of file