@alneas/data-access API リファレンス
@alneas/data-access API リファレンス
Section titled “@alneas/data-access API リファレンス”FUNCTION normalizePopulateOptions
Section titled “FUNCTION normalizePopulateOptions”【未翻訳】Normalizes PopulateOptions (including legacy field name support).
export function normalizePopulateOptions(p: PopulateOptions):引数 (Parameters)
Section titled “引数 (Parameters)”| 引数 | 型 | 必須 | 説明 |
|---|---|---|---|
p |
PopulateOptions |
必須 |
戻り値 (Returns)
Section titled “戻り値 (Returns)”- Type:
{ collection: string; localRef: string; foreignRef: string; as: string; unwind: boolean; }
TYPE FetchLike
Section titled “TYPE FetchLike”【未翻訳】Standard fetch call signature; custom transports need no runtime-specific helper properties.
type FetchLikeTYPE Filter
Section titled “TYPE Filter”【未翻訳】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 FilterTYPE DocType
Section titled “TYPE DocType”【未翻訳】regional-edi document type. Used for filtering and validation by doc_type.
type DocTypeINTERFACE QueryOptions
Section titled “INTERFACE QueryOptions”【未翻訳】Search query options.
interface QueryOptionsINTERFACE PopulateOptions
Section titled “INTERFACE PopulateOptions”【未翻訳】Configuration for populating related data. Field names are based on regional-edi terminology.
interface PopulateOptionsINTERFACE DataAccessAdapter
Section titled “INTERFACE DataAccessAdapter”【未翻訳】Abstract adapter interface for data access.
interface DataAccessAdapterINTERFACE OperationResult
Section titled “INTERFACE OperationResult”【未翻訳】Represents outcome details of a database operation.
interface OperationResultINTERFACE SearchableSelectOption
Section titled “INTERFACE SearchableSelectOption”【未翻訳】Represents a single search candidate option.
interface SearchableSelectOptionINTERFACE HeaderMapping
Section titled “INTERFACE HeaderMapping”【未翻訳】Definition for mapping a CSV column to a database field.
interface HeaderMappingINTERFACE UploadProgress
Section titled “INTERFACE UploadProgress”【未翻訳】Represents upload progress and results.
interface UploadProgressFUNCTION getAdapterCacheScope
Section titled “FUNCTION getAdapterCacheScope”【未翻訳】Opaque, runtime-local identity; never derives cache keys from credentials or user data.
export function getAdapterCacheScope(adapter: object &引数 (Parameters)
Section titled “引数 (Parameters)”| 引数 | 型 | 必須 | 説明 |
|---|---|---|---|
adapter |
object & { readonly cacheScope?: string; } |
必須 |
戻り値 (Returns)
Section titled “戻り値 (Returns)”- Type:
string