refactor(search): persist provider in global config
This commit is contained in:
parent
48f8b5de98
commit
ccad83549d
38 changed files with 736 additions and 589 deletions
|
|
@ -76,15 +76,10 @@ export type Method = typeof Method.Type
|
|||
export const Inputs = Schema.Record(Schema.String, Schema.String).annotate({ identifier: "Integration.Inputs" })
|
||||
export type Inputs = typeof Inputs.Type
|
||||
|
||||
export interface SearchCapability extends Schema.Schema.Type<typeof SearchCapability> {}
|
||||
export const SearchCapability = Schema.Struct({
|
||||
type: Schema.Literal("search"),
|
||||
export interface Search extends Schema.Schema.Type<typeof Search> {}
|
||||
export const Search = Schema.Struct({
|
||||
connection: Schema.Literals(["optional", "required"]),
|
||||
selected: Schema.Boolean,
|
||||
}).annotate({ identifier: "Integration.SearchCapability" })
|
||||
|
||||
export const Capability = SearchCapability
|
||||
export type Capability = SearchCapability
|
||||
}).annotate({ identifier: "Integration.Search" })
|
||||
|
||||
const Updated = ephemeral({
|
||||
type: "integration.updated",
|
||||
|
|
@ -106,7 +101,7 @@ export class Info extends Schema.Class<Info>("Integration.Info")({
|
|||
id: ID,
|
||||
name: Schema.String,
|
||||
methods: Schema.Array(Method),
|
||||
capabilities: Schema.Array(Capability),
|
||||
search: optional(Search),
|
||||
connections: Schema.Array(Connection.Info),
|
||||
}) {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue