Module "api/mapping/goalTest"
Functions
goalTest
-
Parameters
-
name: string
-
-
-
Parameters
Returns Promise<boolean>
-
Default value pushTest: PushTest = AnyPush
isGoal
- isGoal(options?: { data?: string | RegExp; name?: string | RegExp; output?: string | RegExp; pushTest?: PushTest; state?: SdmGoalState }): GoalTest
-
Parameters
-
Default value options: { data?: string | RegExp; name?: string | RegExp; output?: string | RegExp; pushTest?: PushTest; state?: SdmGoalState } = {}
-
Optional data?: string | RegExp
-
Optional name?: string | RegExp
-
Optional output?: string | RegExp
-
Optional pushTest?: PushTest
-
matchStringOrRegexp
- matchStringOrRegexp(pattern: string | RegExp, toMatch: string): boolean
-
Parameters
-
pattern: string | RegExp
-
toMatch: string
Returns boolean
wrapPredicateMapping
-
Type parameters
Parameters
wrapTest
-
Type parameters
Parameters
Wrap a PushTest to make sure it doesn't get the chance to match on goal planning based on goal events