import type { MMMappedErpResourceRow } from "./types/mm-response-interfaces.js"; /** * One row from `GET /mes/settings/machine-settings`. Field names follow the MES mapping service; * see {@link mapMesMachineSettingsToMappedErpResourceRows} for how each field maps to the SDK. */ export interface MesMachineSettingRow { laborTicketEnabled?: boolean; laborResourceId?: string | null; /** * ERP resource ids this machine can be scheduled as (in addition to {@link laborResourceId} for labor). */ scheduledAs?: ReadonlyArray | null; machineRef?: number | string | null; name?: string | null; type?: string | null; machineGroupId?: string | number | null; isResourceGroup?: boolean; } /** * `GET {mmApiBaseUrl}/mes/settings/machine-settings` — returns a JSON array of machine rows * (auth: bearer `mmApiAuthToken`). * * Requires `mmApiBaseUrl` and `mmApiAuthToken` in {@link CoreConfiguration}. Throws if either is * missing, if the response body is not a JSON array, or if the HTTP request fails. * Used by labor import allowlists and mapped-resource helpers on `MMApiClient`. */ export declare function fetchMesMachineSettingsRows(): Promise; /** * Collects every non-empty {@link MesMachineSettingRow.laborResourceId} and every entry in * {@link MesMachineSettingRow.scheduledAs} across **all** machine-settings rows, deduped * case-insensitively (first-seen casing preserved). Does not filter on `laborTicketEnabled`. * Non-array `scheduledAs` is ignored. */ export declare function collectMesSchedulableErpResourceIds(rows: ReadonlyArray): string[]; /** * Loads machine-settings and returns {@link collectMesSchedulableErpResourceIds}. * Same configuration and failure behavior as {@link fetchMesMachineSettingsRows}. */ export declare function fetchMesSchedulableErpResourceIds(): Promise; /** * Maps machine-settings rows to {@link MMMappedErpResourceRow} for connectors. * Emits one row per MES machine that has both a finite `machineRef` and a non-empty * `laborResourceId` (ERP labor resource mapping). Optional display / group fields pass through when present. */ export declare function mapMesMachineSettingsToMappedErpResourceRows(rows: ReadonlyArray): MMMappedErpResourceRow[]; //# sourceMappingURL=mes-machine-settings.d.ts.map