1+ import * as indexing from './indexing-types'
2+
13export enum AdapterOperator { //in velo-external-db-core
24 eq = 'eq' ,
35 gt = 'gt' ,
@@ -152,12 +154,6 @@ export interface ISchemaProvider {
152154 translateDbTypes ?( column : InputField | ResponseField | string ) : ResponseField | string
153155}
154156
155- export interface IIndexProvider {
156- list ( collectionName : string ) : Promise < DomainIndex [ ] >
157- create ( collectionName : string , index : DomainIndex ) : Promise < DomainIndex >
158- remove ( collectionName : string , indexName : string ) : Promise < void >
159- }
160-
161157export interface IBaseHttpError extends Error {
162158 status : number ;
163159}
@@ -178,7 +174,7 @@ export type ConnectionCleanUp = () => Promise<void> | void
178174export type DbProviders < T > = {
179175 dataProvider : IDataProvider
180176 schemaProvider : ISchemaProvider
181- indexProvider ?: IIndexProvider
177+ indexProvider ?: indexing . IIndexProvider
182178 databaseOperations : IDatabaseOperations
183179 connection : T
184180 cleanup : ConnectionCleanUp
@@ -255,19 +251,4 @@ export interface IImplementationResources {
255251 name : string
256252}
257253
258-
259- export interface DomainIndex {
260- name : string
261- columns : string [ ]
262- isUnique : boolean
263- caseInsensitive : boolean
264- order : 'ASC' | 'DESC'
265- status ?: DomainIndexStatus
266- error ?: any
267- }
268-
269- export enum DomainIndexStatus {
270- ACTIVE = 'ACTIVE' ,
271- BUILDING = 'BUILDING' ,
272- FAILED = 'FAILED'
273- }
254+ export * from './indexing-types'
0 commit comments