updated sse supporting react-openapi
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
export type FilterMode = "client" | "server";
|
||||
|
||||
export interface ResourceConfiguration {
|
||||
filterOptions?: {
|
||||
mode?: FilterMode;
|
||||
};
|
||||
}
|
||||
|
||||
export interface SpecConfiguration {
|
||||
specUrl: string;
|
||||
baseApiUrl?: string;
|
||||
title?: string;
|
||||
getToken?: () => string | null;
|
||||
resourceConfig?: Record<string, ResourceConfiguration>;
|
||||
}
|
||||
|
||||
export interface ValidationMessage {
|
||||
@@ -19,6 +28,7 @@ export interface ResourceRelationship {
|
||||
export interface ResourceConfig {
|
||||
name: string;
|
||||
schemaName: string;
|
||||
displayName: string;
|
||||
path: string;
|
||||
primaryKey: string;
|
||||
displayFormat: string;
|
||||
@@ -38,6 +48,7 @@ export interface ResourceConfig {
|
||||
defaultLimit: number;
|
||||
} | null;
|
||||
relationships: ResourceRelationship[];
|
||||
streaming?: boolean;
|
||||
}
|
||||
|
||||
export interface FieldConfig {
|
||||
|
||||
Reference in New Issue
Block a user