import type { GMOFactory } from '@gmopg/factory'; import { IHowToDirection as IBaseHowToDirection, IHowToSection as IBaseHowToSection, IHowToStep as IBaseHowToStep, IRecipe as IBaseRecipe, RecipeCategory, StepIdentifier } from '../recipe'; export type IOptionalSiteArgs = GMOFactory.service.credit.IOptionalSiteArgs; export type ISearchTradeArgs = GMOFactory.service.credit.ISearchTradeArgs & IOptionalSiteArgs; export type ISearchTradeResult = GMOFactory.service.credit.ISearchTradeResult; export type IAlterTranArgs = GMOFactory.service.credit.IAlterTranArgs & IOptionalSiteArgs; export type IAlterTranResult = GMOFactory.service.credit.IAlterTranResult; export interface IDirectionSearchTrade extends IBaseHowToDirection { beforeMedia?: ISearchTradeArgs; afterMedia?: ISearchTradeResult; } export interface IDirectionAlterTran extends IBaseHowToDirection { beforeMedia?: IAlterTranArgs; afterMedia?: IAlterTranResult; } export interface IStepSearchTrade extends IBaseHowToStep { identifier: StepIdentifier.searchTrade; itemListElement: [IDirectionSearchTrade]; } export interface IStepAlterTran extends IBaseHowToStep { identifier: StepIdentifier.alterTran; itemListElement: [IDirectionAlterTran]; } export interface IHowToSection extends IBaseHowToSection { itemListElement: [IStepSearchTrade, IStepAlterTran]; } export interface IRecipe extends IBaseRecipe { recipeCategory: RecipeCategory.payCreditCard; step: IHowToSection[]; }