UNPKG

@jd-data-limited/easy-fm

Version:

easy-fm is a Node.js module that allows you to interact with a [FileMaker database stored](https://www.claris.com/filemaker/) on a [FileMaker server](https://www.claris.com/filemaker/server/). This module interacts with your server using the [FileMaker

26 lines (25 loc) 860 B
import { PortalRecord } from './portalRecord.js'; import { type RecordFieldsMap } from '../layouts/recordFieldsMap.js'; import { type PortalBase } from './portalBase.js'; import { type LayoutRecord } from './layoutRecord.js'; /** * Represents a portal. * * @template T - The type of RecordFieldsMap. * @class * @implements {PortalBase<T>} */ export declare class Portal<T extends RecordFieldsMap> implements PortalBase<T> { readonly record: LayoutRecord<any>; readonly name: string; records: Array<PortalRecord<T>>; constructor(record: LayoutRecord<any>, name: string); /** * Add a new record to the portal * @function create * @async * @summary Creates a new record. * @returns {Promise<PortalRecord<T>>} A Promise that resolves to the newly created record. */ create(): Promise<PortalRecord<T>>; }