managarten/services/mana-core-auth/src/referrals/referrals.module.ts
Till-JS a6cc0b83aa fix(manacore): auth flow and dashboard widget API fixes
Auth fixes:
- Update fetchInterceptor skip patterns for ManaCore auth endpoints
- Fix URL matching to compare full origins instead of partial matches
- Update token manager state after successful login
- Remove Supabase session dependency from layouts
- Use authStore for auth state in route layouts

Dashboard fixes:
- Add network error detection in base-client to prevent infinite retries
- Update all 9 dashboard widgets to not retry on service unavailable
- Add /api/v1 prefix to all backend service URLs (chat, calendar, contacts, todo, zitare, picture, manadeck)

Commands:
- Add dev:manacore:backends to start all 9 dashboard backends
- Add dev:manacore:full to start web + all backends together
- Update COMMANDS.md with new commands and backend port table

Auth service:
- Fix TypeScript error: crossApp → cross_app in referrals schema

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-07 14:44:58 +01:00

24 lines
862 B
TypeScript

/**
* Referrals Module
*
* NestJS module for the referral system.
* Provides services for:
* - Referral code management
* - Referral tracking and stage progression
* - Tier calculation and bonus multipliers
*/
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ReferralsController } from './referrals.controller';
import { ReferralCodeService } from './services/referral-code.service';
import { ReferralTierService } from './services/referral-tier.service';
import { ReferralTrackingService } from './services/referral-tracking.service';
@Module({
imports: [ConfigModule],
controllers: [ReferralsController],
providers: [ReferralCodeService, ReferralTierService, ReferralTrackingService],
exports: [ReferralCodeService, ReferralTierService, ReferralTrackingService],
})
export class ReferralsModule {}