-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove action and channel fields from Operation Trait Object (#674)
- Loading branch information
1 parent
6de1923
commit 2590f56
Showing
11 changed files
with
94 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
import type { BaseModel } from './base'; | ||
import type { ChannelsInterface } from './channels'; | ||
import type { OperationAction } from './operation'; | ||
import type { SecurityRequirements } from './security-requirements'; | ||
import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; | ||
|
||
export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { | ||
id(): string | undefined; | ||
hasId(): boolean; | ||
action(): OperationAction | undefined; | ||
isSend(): boolean; | ||
isReceive(): boolean; | ||
id(): string | undefined; | ||
hasSummary(): boolean; | ||
summary(): string | undefined; | ||
security(): SecurityRequirements[]; | ||
channels(): ChannelsInterface; | ||
} |
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import type { BaseModel } from './base'; | ||
import type { MessagesInterface } from './messages'; | ||
import type { OperationTraitsInterface } from './operation-traits'; | ||
import type { OperationTraitInterface } from './operation-trait'; | ||
import type { ChannelsInterface } from './channels'; | ||
import type { ServersInterface } from './servers'; | ||
import type { MessagesInterface } from './messages'; | ||
|
||
export type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; | ||
|
||
export interface OperationInterface extends BaseModel, OperationTraitInterface { | ||
action(): OperationAction; | ||
isSend(): boolean; | ||
isReceive(): boolean; | ||
servers(): ServersInterface; | ||
channels(): ChannelsInterface | ||
messages(): MessagesInterface; | ||
traits(): OperationTraitsInterface; | ||
} |
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
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