コンテンツにスキップ

@alneas/data-access API リファレンス

@alneas/data-access API リファレンス

Section titled “@alneas/data-access API リファレンス”

【未翻訳】Normalizes PopulateOptions (including legacy field name support).

export function normalizePopulateOptions(p: PopulateOptions):
引数 型 必須 説明
p PopulateOptions 必須
  • Type: { collection: string; localRef: string; foreignRef: string; as: string; unwind: boolean; }

【未翻訳】Standard fetch call signature; custom transports need no runtime-specific helper properties.

type FetchLike

【未翻訳】Filter criteria for record retrieval.

Filter operators align with regional-edi x-rules:

  • $eq (eq): Equals
  • $neq (neq): Not equals
  • $lt (lt), $lte (lte): Less than / Less than or equal to
  • $gt (gt), $gte (gte): Greater than / Greater than or equal to
  • $in (in): Included in array
  • $nin (nin): Not included in array
  • $regex: Regular expression match
type Filter

【未翻訳】regional-edi document type. Used for filtering and validation by doc_type.

type DocType

【未翻訳】Search query options.

interface QueryOptions

【未翻訳】Configuration for populating related data. Field names are based on regional-edi terminology.

interface PopulateOptions

【未翻訳】Abstract adapter interface for data access.

interface DataAccessAdapter

【未翻訳】Represents outcome details of a database operation.

interface OperationResult

【未翻訳】Represents a single search candidate option.

interface SearchableSelectOption

【未翻訳】Definition for mapping a CSV column to a database field.

interface HeaderMapping

【未翻訳】Represents upload progress and results.

interface UploadProgress

【未翻訳】Opaque, runtime-local identity; never derives cache keys from credentials or user data.

export function getAdapterCacheScope(adapter: object &
引数 型 必須 説明
adapter object & { readonly cacheScope?: string; } 必須
  • Type: string