This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Inherit OBI types from 'shared' lib in Visual Editor #1108
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
683c955
resolve #1107
yeze322 b77da09
Merge branch 'master' into zeye/uni-types
a-b-r-o-w-n a9b90e6
remove 3 outdated types, extract virtual types out
yeze322 fdd4dc6
Merge branch 'zeye/uni-types' of https://github.com/Microsoft/BotFram…
yeze322 0d437e8
remove appearances of outdated schema types
yeze322 50816c1
const => enum
yeze322 3188306
Merge branch 'master' into zeye/uni-types
yeze322 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
84 changes: 18 additions & 66 deletions
84
Composer/packages/extensions/visual-designer/src/constants/ObiTypes.ts
This file contains hidden or 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 |
|---|---|---|
| @@ -1,68 +1,20 @@ | ||
| export const ObiTypes = { | ||
| // dialogs | ||
| AdaptiveDialog: 'Microsoft.AdaptiveDialog', | ||
|
|
||
| // recognizers | ||
| RegexRecognizer: 'Microsoft.RegexRecognizer', | ||
| LuisRecognizer: 'Microsoft.LuisRecognizer', | ||
| MultiLanguageRecognizer: 'Microsoft.MultiLanguageRecognizer', | ||
| QnARecognizer: 'Microsoft.QnARecognizer', | ||
|
|
||
| // events | ||
| OnUnknownIntent: 'Microsoft.OnUnknownIntent', | ||
| OnIntent: 'Microsoft.OnIntent', | ||
| OnEvent: 'Microsoft.OnEvent', | ||
| OnConversationUpdateActivity: 'Microsoft.OnConversationUpdateActivity', | ||
|
|
||
| // steps | ||
| BeginDialog: 'Microsoft.BeginDialog', | ||
| SendActivity: 'Microsoft.SendActivity', | ||
|
|
||
| InitProperty: 'Microsoft.InitProperty', | ||
| SetProperty: 'Microsoft.SetProperty', | ||
| EditArray: 'Microsoft.EditArray', | ||
| SaveEntity: 'Microsoft.SaveEntity', | ||
| DeleteProperty: 'Microsoft.DeleteProperty', | ||
|
|
||
| IfCondition: 'Microsoft.IfCondition', | ||
| SwitchCondition: 'Microsoft.SwitchCondition', | ||
| Foreach: 'Microsoft.Foreach', | ||
| ForeachPage: 'Microsoft.ForeachPage', | ||
|
|
||
| AttachmentInput: 'Microsoft.AttachmentInput', | ||
| ChoiceInput: 'Microsoft.ChoiceInput', | ||
| ConfirmInput: 'Microsoft.ConfirmInput', | ||
| DateTimeInput: 'Microsoft.DateTimeInput', | ||
| NumberInput: 'Microsoft.NumberInput', | ||
| OAuthInput: 'Microsoft.OAuthInput', | ||
| TextInput: 'Microsoft.TextInput', | ||
| import { SDKTypes } from 'shared'; | ||
|
|
||
| enum VirtualElementTypes { | ||
| RuleGroup = 'VisualSDK.RuleGroup', | ||
| StepGroup = 'VisualSDK.StepGroup', | ||
| ChoiceDiamond = 'VisualSDK.ChoiceDiamond', | ||
| ConditionNode = 'VisualSDK.ConditionNode', | ||
| LoopIndicator = 'VisualSDK.LoopIndicator', | ||
| ForeachDetail = 'VisualSDK.ForeachDetail', | ||
| ForeachPageDetail = 'VisualSDK.ForeachPageDetail', | ||
| BotAsks = 'VisualSDK.BotAsks', | ||
| UserAnswers = 'VisualSDK.UserAnswers', | ||
| InvalidPromptBrick = 'VisualSDK.InvalidPromptBrick', | ||
| ChoiceInputDetail = 'VisualSDK.ChoiceInputDetail', | ||
| } | ||
|
|
||
| EndDialog: 'Microsoft.EndDialog', | ||
| CancelAllDialogs: 'Microsoft.CancelAllDialogs', | ||
| ReplaceDialog: 'Microsoft.ReplaceDialog', | ||
| RepeatDialog: 'Microsoft.RepeatDialog', | ||
| EndTurn: 'Microsoft.EndTurn', | ||
|
|
||
| EditActions: 'Microsoft.EditActions', | ||
|
|
||
| EmitEvent: 'Microsoft.EmitEvent', | ||
|
|
||
| HttpRequest: 'Microsoft.HttpRequest', | ||
| CodeStep: 'Microsoft.CodeStep', | ||
|
|
||
| LogAction: 'Microsoft.LogAction', | ||
| TraceActivity: 'Microsoft.TraceActivity', | ||
|
|
||
| // virtual | ||
| RuleGroup: 'VisualSDK.RuleGroup', | ||
| StepGroup: 'VisualSDK.StepGroup', | ||
| ChoiceDiamond: 'VisualSDK.ChoiceDiamond', | ||
| ConditionNode: 'VisualSDK.ConditionNode', | ||
| LoopIndicator: 'VisualSDK.LoopIndicator', | ||
| ForeachDetail: 'VisualSDK.ForeachDetail', | ||
| ForeachPageDetail: 'VisualSDK.ForeachPageDetail', | ||
| BotAsks: 'VisualSDK.BotAsks', | ||
| UserAnswers: 'VisualSDK.UserAnswers', | ||
| InvalidPromptBrick: 'VisualSDK.InvalidPromptBrick', | ||
| ChoiceInputDetail: 'VisualSDK.ChoiceInputDetail', | ||
| export const ObiTypes = { | ||
| ...SDKTypes, | ||
| ...VirtualElementTypes, | ||
| }; | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.