-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add all missed interfaces (#538)
- Loading branch information
1 parent
6b208c7
commit 81cf16f
Showing
26 changed files
with
105 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { BaseModel } from "./base"; | ||
|
||
export interface ChannelParameterInterface extends BaseModel {} |
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,4 @@ | ||
import type { Collection } from "./collection"; | ||
import type { ChannelParameterInterface } from "./channel-parameter"; | ||
|
||
export interface ChannelParametersInterface extends Collection<ChannelParameterInterface> {} |
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,3 @@ | ||
import type { BaseModel } from "./base"; | ||
|
||
export interface ChannelInterface extends BaseModel {} |
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,4 @@ | ||
import type { Collection } from "./collection"; | ||
import type { ChannelInterface } from "./channel"; | ||
|
||
export interface ChannelsInterface extends Collection<ChannelInterface> {} |
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 type { BaseModel } from './base'; | ||
import type { Collection } from './collection'; | ||
import type { ServersInterface } from './servers'; | ||
import type { ChannelsInterface } from './channels'; | ||
import type { OperationsInterface } from './operations'; | ||
import type { OperationsTraitsInterface } from './operation-traits'; | ||
import type { MessagesInterface } from './messages'; | ||
import type { MessagesTraitsInterface } from './message-traits'; | ||
import type { SchemasInterface } from './schemas'; | ||
import type { ChannelParametersInterface } from './channel-parameters'; | ||
import type { ServerVariablesInterface } from './server-variables'; | ||
import type { CorrelationIdInterface } from './correlation-id'; | ||
import type { BindingsInterface } from './bindings'; | ||
import type { ExtensionsMixinInterface } from './mixins'; | ||
|
||
export interface Components extends BaseModel, ExtensionsMixinInterface { | ||
servers(): ServersInterface; | ||
channels(): ChannelsInterface; | ||
operations(): OperationsInterface; | ||
messages(): MessagesInterface; | ||
schemas(): SchemasInterface; | ||
channelParameters(): ChannelParametersInterface; | ||
serverVariables(): ServerVariablesInterface; | ||
operationTraits(): OperationsTraitsInterface; | ||
messageTraits(): MessagesTraitsInterface; | ||
correlationIds(): Collection<CorrelationIdInterface>; | ||
securitySchemes(): any; // TODO: Fix type after merging Souvik PR | ||
serverBindings(): Collection<BindingsInterface>; | ||
channelBindings(): Collection<BindingsInterface>; | ||
operationBindings(): Collection<BindingsInterface>; | ||
messageBindings(): Collection<BindingsInterface>; | ||
} |
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,3 @@ | ||
import type { BaseModel } from "./base"; | ||
|
||
export interface CorrelationIdInterface extends BaseModel {} |
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,3 @@ | ||
import type { BaseModel } from "./base"; | ||
|
||
export interface MessageExample extends BaseModel {} |
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,3 @@ | ||
import type { BaseModel } from "./base"; | ||
|
||
export interface MessageTraitInterface extends BaseModel {} |
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,4 @@ | ||
import type { Collection } from "./collection"; | ||
import type { MessageTraitInterface } from "./message-trait"; | ||
|
||
export interface MessagesTraitsInterface extends Collection<MessageTraitInterface> {} |
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,4 @@ | ||
import type { BaseModel } from "./base"; | ||
import type { MessageTraitInterface } from "./message-trait"; | ||
|
||
export interface MessageInterface extends BaseModel, MessageTraitInterface {} |
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,4 @@ | ||
import type { Collection } from "./collection"; | ||
import type { MessageInterface } from "./message"; | ||
|
||
export interface MessagesInterface extends Collection<MessageInterface> {} |
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,3 @@ | ||
import type { BaseModel } from "./base"; | ||
|
||
export interface OperationTraitInterface extends BaseModel {} |
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,4 @@ | ||
import type { Collection } from "./collection"; | ||
import type { OperationTraitInterface } from "./operation-trait"; | ||
|
||
export interface OperationsTraitsInterface extends Collection<OperationTraitInterface> {} |
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,4 @@ | ||
import type { BaseModel } from "./base"; | ||
import type { OperationTraitInterface } from "./operation-trait"; | ||
|
||
export interface OperationInterface extends BaseModel, OperationTraitInterface {} |
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,4 @@ | ||
import type { Collection } from "./collection"; | ||
import type { OperationInterface } from "./operation"; | ||
|
||
export interface OperationsInterface extends Collection<OperationInterface> {} |
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,3 @@ | ||
import type { BaseModel } from "./base"; | ||
|
||
export interface SchemaInterface extends BaseModel {} |
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,4 @@ | ||
import type { Collection } from "./collection"; | ||
import type { SchemaInterface } from "./schema"; | ||
|
||
export interface SchemasInterface extends Collection<SchemaInterface> {} |
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,11 +1,11 @@ | ||
import {BaseModel} from './base'; | ||
import { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; | ||
import type { BaseModel } from './base'; | ||
import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; | ||
|
||
export interface ServerVariableInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { | ||
id(): string; | ||
hasDefaultValue(): boolean; | ||
defaultValue(): string | undefined; | ||
hasAllowedValue(): boolean; | ||
allowedValue(): any[] | ||
examples(): Array<string> | ||
} | ||
id(): string; | ||
hasDefaultValue(): boolean; | ||
defaultValue(): string | undefined; | ||
hasAllowedValue(): boolean; | ||
allowedValue(): Array<string>; | ||
examples(): Array<string>; | ||
} |
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,4 +1,4 @@ | ||
import { Collection } from './collection'; | ||
import { ServerVariableInterface } from './server-variable'; | ||
import type { Collection } from './collection'; | ||
import type { ServerVariableInterface } from './server-variable'; | ||
|
||
export interface ServerVariablesInterface extends Collection<ServerVariableInterface> { } |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Collection } from "./collection"; | ||
import {ServerInterface} from "./server"; | ||
import type { Collection } from "./collection"; | ||
import type { ServerInterface } from "./server"; | ||
|
||
export interface ServersInterface extends Collection<ServerInterface> {} |
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