@proofkit/fmodata
Version:
FileMaker OData API client
75 lines (68 loc) • 1.62 kB
text/typescript
// Barrel file - exports all public API from the client folder
export { BaseTable, defineBaseTable } from "./client/base-table";
export {
TableOccurrence,
createTableOccurrence,
defineTableOccurrence,
} from "./client/table-occurrence";
export { FMServerConnection } from "./client/filemaker-odata";
// Type-only exports for TypeScript declaration file portability
// Users get these instances from the builder pattern, not by direct instantiation
export type { Database } from "./client/database";
export type { EntitySet } from "./client/entity-set";
export type {
SchemaManager,
Field,
StringField,
NumericField,
DateField,
TimeField,
TimestampField,
ContainerField,
} from "./client/schema-manager";
// Utility types for type annotations
export type {
Result,
InferSchemaType,
InsertData,
UpdateData,
ODataRecordMetadata,
Metadata,
} from "./types";
// Filter types
export type {
Filter,
TypedFilter,
FieldFilter,
StringOperators,
NumberOperators,
BooleanOperators,
DateOperators,
LogicalFilter,
} from "./filter-types";
// Re-export ffetch errors
export {
TimeoutError,
AbortError,
NetworkError,
RetryLimitError,
CircuitOpenError,
} from "@fetchkit/ffetch";
// Export our errors
export {
FMODataError,
HTTPError,
ODataError,
SchemaLockedError,
ValidationError,
ResponseStructureError,
RecordCountMismatchError,
isHTTPError,
isValidationError,
isODataError,
isSchemaLockedError,
isResponseStructureError,
isRecordCountMismatchError,
isFMODataError,
} from "./errors";
export type { FMODataErrorType } from "./errors";