(dc): data-connector enhancements

This commit is contained in:
Marcel Arndt
2025-06-05 15:24:23 +02:00
parent 44f627499a
commit 08e3b3247c
57 changed files with 3117 additions and 915 deletions
@@ -6,7 +6,7 @@ import {
} from './accounting-arg.types';
import { AccountingState } from './accounting-state';
import { AccountingValidationService } from './accounting-validation.service';
import { PaginatedTourObjectType } from './accounting.object-type';
import { PaginatedTourObjectType, TourCostBreakdownObjectType } from './accounting.object-type';
import { TourObjectType } from './tour.object-type';
@Resolver(() => TourObjectType)
@@ -28,6 +28,11 @@ export class AccountingValidationResolver {
return this.service.getAccountingStateMeta(accountingState);
}
@Query(() => TourCostBreakdownObjectType)
tourCostBreakdown(@Args('operationId') operationId: string) {
return this.service.getTourCostBreakdown(operationId)
}
@ResolveField(() => TicketObjectType, { nullable: true })
ticket(@Parent() tour: TourObjectType) {
return this.service.findTicketByTicketId(tour.ticketId);