Skip to main content

Interface: VocabLookup

Defined in: src/intents/core-wrappers.ts:88

Minimal vocabulary lookup interface required by core-wrappers.

Remarks​

Compatible with the full VocabularyService from the vocabulary module. Declared inline to avoid a hard dependency on the (potentially unimplemented) vocabulary barrel.

Example​

const vocab: VocabLookup = {
getFieldSelector: vi.fn().mockResolvedValue({ id: 'vendorInput' }),
};

Methods​

getFieldSelector()​

getFieldSelector(term, domain?): Promise<UI5Selector | undefined>

Defined in: src/intents/core-wrappers.ts:96

Resolves a human-readable business term to a UI5 selector.

Parameters​

term​

string

Business field name (e.g. 'Vendor', 'Material').

domain?​

string

Optional SAP domain scope (e.g. 'procurement').

Returns​

Promise<UI5Selector | undefined>

The matching UI5Selector, or undefined when the term is unknown.