UNPKG

@resin/pinejs

Version:

Pine.js is a sophisticated rules-driven API engine that enables you to define rules in a structured subset of English. Those rules are used in order for Pine.js to generate a database schema and the associated [OData](http://www.odata.org/) API. This make

19 lines (18 loc) 818 B
import type { Tx } from '../database-layer/db'; import type { Resolvable } from '../sbvr-api/common-types'; import type { Config, Model } from '../config-loader/config-loader'; import * as Bluebird from 'bluebird'; import { TypedError } from 'typed-error'; import * as sbvrUtils from '../sbvr-api/sbvr-utils'; declare type ApiRootModel = Model & { apiRoot: string; }; declare type SbvrUtils = typeof sbvrUtils; export declare type MigrationFn = (tx: Tx, sbvrUtils: SbvrUtils) => Resolvable<void>; export declare type Migration = string | MigrationFn; export declare class MigrationError extends TypedError { } export declare const postRun: (arg1: Tx, arg2: ApiRootModel) => Bluebird<void>; export declare const run: (arg1: Tx, arg2: ApiRootModel) => Bluebird<void>; export declare const config: Config; export {};