fix issues in core
This commit is contained in:
@@ -13,8 +13,9 @@ import type { Logger } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import { Result } from '@core/shared/application/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import type { SponsorableEntityType } from '../../domain/entities/SponsorshipRequest';
|
||||
|
||||
export type SponsorshipEntityType = 'season' | 'league' | 'team';
|
||||
export type SponsorshipEntityType = SponsorableEntityType;
|
||||
|
||||
export type GetEntitySponsorshipPricingInput = {
|
||||
entityType: SponsorshipEntityType;
|
||||
@@ -23,11 +24,10 @@ export type GetEntitySponsorshipPricingInput = {
|
||||
|
||||
export type SponsorshipPricingTier = {
|
||||
name: string;
|
||||
price: SponsorshipPricing['mainSlot'] extends SponsorshipSlotConfig
|
||||
? SponsorshipSlotConfig['price']
|
||||
: SponsorshipPricing['secondarySlots'] extends SponsorshipSlotConfig
|
||||
? SponsorshipSlotConfig['price']
|
||||
: never;
|
||||
price: {
|
||||
amount: number;
|
||||
currency: string;
|
||||
};
|
||||
benefits: string[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user