@opra/sqb
Version:
Opra SQB adapter package
22 lines (21 loc) • 901 B
TypeScript
import type { OpraFilter } from '@opra/common';
import type { ExecutionContext } from '@opra/core';
import { type Repository } from '@sqb/connect';
import _prepareFilter from './adapter-utils/prepare-filter.js';
export declare namespace SQBAdapter {
type Id = string | number | boolean | Date;
type IdOrIds = Id | Record<string, Id>;
type FilterInput = OpraFilter.Expression | Repository.FindManyOptions['filter'] | string | undefined;
/**
* @deprecated Use prepareFilter instead
*/
const parseFilter: typeof _prepareFilter;
const prepareFilter: typeof _prepareFilter;
interface TransformedRequest {
method: 'create' | 'delete' | 'deleteMany' | 'get' | 'replace' | 'findMany' | 'update' | 'updateMany';
key?: any;
data?: any;
options: any;
}
function parseRequest(context: ExecutionContext): Promise<TransformedRequest>;
}