-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ActionType } from './actionType'; | ||
import { OrganizationType } from './organizationType'; | ||
|
||
export enum RecipeCategory { | ||
publishPaymentUrl = 'publishPaymentUrl' | ||
} | ||
export enum StepIdentifier { | ||
entryTran = 'entryTran', | ||
execTran = 'execTran' | ||
} | ||
export interface IHowToDirection { | ||
typeOf: 'HowToDirection'; | ||
beforeMedia: any; | ||
afterMedia: any; | ||
// text: string; | ||
} | ||
export interface IHowToStep { | ||
typeOf: 'HowToStep'; | ||
identifier: StepIdentifier; | ||
itemListElement: IHowToDirection[]; | ||
} | ||
export interface IHowToSection { | ||
typeOf: 'HowToSection'; | ||
itemListElement: IHowToStep[]; | ||
} | ||
export interface IRecipe { | ||
project: { id: string; typeOf: OrganizationType.Project }; | ||
typeOf: 'Recipe'; | ||
recipeCategory: RecipeCategory; | ||
step: IHowToSection[]; | ||
recipeFor: { id: string; typeOf: ActionType }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay'; | ||
import * as RecipeFactory from '../recipe'; | ||
|
||
export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection { | ||
beforeMedia: IEntryTranArgs; | ||
afterMedia: IEntryTranResult; | ||
} | ||
export interface IDirectionExecTran extends RecipeFactory.IHowToDirection { | ||
beforeMedia: IExecTranArgs; | ||
afterMedia: IExecTranResult | IExecTran3dsResult; | ||
} | ||
export interface IStepEntryTran extends RecipeFactory.IHowToStep { | ||
identifier: RecipeFactory.StepIdentifier.entryTran; | ||
itemListElement: [IDirectionEntryTran]; | ||
} | ||
export interface IStepExecTran extends RecipeFactory.IHowToStep { | ||
identifier: RecipeFactory.StepIdentifier.execTran; | ||
itemListElement: [IDirectionExecTran]; | ||
} | ||
export type IHowToStep = IStepEntryTran | IStepExecTran; | ||
export interface IHowToSection { | ||
typeOf: 'HowToSection'; | ||
itemListElement: IHowToStep[]; | ||
} | ||
export interface IRecipe extends RecipeFactory.IRecipe { | ||
recipeCategory: RecipeFactory.RecipeCategory.publishPaymentUrl; | ||
step: IHowToSection[]; | ||
} |