(dc): data-connector enhancements
This commit is contained in:
+6
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user