Skip to content

Commit

Permalink
Removes unknown from connectorsAPI.updateConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
lasryaric committed Apr 4, 2024
1 parent 9108216 commit cc965a4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions types/src/connectors/api_handlers/connector_configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ import * as t from "io-ts";

import { WebCrawlerConfigurationType } from "../webcrawler";

export const UpdateConnectorConfigurationTypeSchema = t.type({
configuration: t.unknown,
});

export type UpdateConnectorConfigurationType = t.TypeOf<
typeof UpdateConnectorConfigurationTypeSchema
>;

export const WebCrawlerConfigurationTypeSchema = t.type({
url: t.string,
depth: t.union([
Expand Down Expand Up @@ -41,3 +33,11 @@ export type ConnectorConfigurations = {
confluence: null;
intercom: null;
};

export const UpdateConnectorConfigurationTypeSchema = t.type({
configuration: t.union([WebCrawlerConfigurationTypeSchema, t.null]),
});

export type UpdateConnectorConfigurationType = t.TypeOf<
typeof UpdateConnectorConfigurationTypeSchema
>;

0 comments on commit cc965a4

Please sign in to comment.