/** * Known MM work order status values. * * Serves as implicit documentation of the values in use; the MM API accepts free-form * status strings and this list is expected to grow, so the SDK does not enforce it. * Compare via {@link normalizeMMStatus} (case-insensitive, whitespace/underscore tolerant). * * Connectors should send these exact values. `CLOSED` is deliberately absent: MM has no * such state — use `COMPLETED`. */ export declare enum MMWorkOrderStatus { RELEASED = "RELEASED", NOT_RELEASED = "NOT RELEASED", COMPLETED = "COMPLETED", PENDING = "PENDING", CANCELLED = "CANCELLED", ACTIVE = "ACTIVE", /** Set by work order reconciliation when a job no longer exists / is active in the ERP. */ DELETED = "DELETED" } /** * Known MM work order operation status values. * * Same contract as {@link MMWorkOrderStatus}: documentation, not enforcement. This is the * vocabulary every SDK-based connector already uses (a 2026-08 sweep found only cosmetic * deviations — casing, `NOT_RELEASED`, `CANCELED` — which {@link normalizeMMStatus} folds * into these values). * * Note: MM production-schedule sync only considers operations with status `RELEASED` or * `ACTIVE` and no `closedDate` — the same set work order operation reconciliation treats * as deletion candidates. */ export declare enum MMWorkOrderOperationStatus { RELEASED = "RELEASED", NOT_RELEASED = "NOT RELEASED", ACTIVE = "ACTIVE", /** Also written by the SDK's labor-ticket sync when an operator closes the operation. */ COMPLETED = "COMPLETED", CANCELLED = "CANCELLED", /** * Set by reconciliation when the operation no longer exists / is active in the ERP, or * when its parent work order was marked DELETED. */ DELETED = "DELETED" } /** * A work order status: one of the known {@link MMWorkOrderStatus} values, or any string * (the MM API is free-form). The `string & {}` form keeps the enum members visible in * editor completion and type hints while still accepting arbitrary strings. */ export type MMWorkOrderStatusValue = MMWorkOrderStatus | (string & {}); /** See {@link MMWorkOrderStatusValue}; the work order operation counterpart. */ export type MMWorkOrderOperationStatusValue = MMWorkOrderOperationStatus | (string & {}); /** * Canonical form of an MM work order / work order operation status for comparisons: * trimmed, uppercased, `_` and repeated whitespace collapsed to single spaces, and the * `CANCELED` spelling folded into `CANCELLED`. `null`/`undefined` → `""`. * * Compare normalized values against the enum members (which are already canonical); * never send the normalized value back to MM in place of the connector's own value. */ export declare const normalizeMMStatus: (status: string | null | undefined) => string; export declare enum ERPObjType { RESOURCES = 0, PARTS = 1, PART_OPERATION = 2, WORK_ORDERS = 3, WORK_ORDER_OPERATIONS = 4, PERSONS = 5, REASONS = 6, LABOR_TICKETS = 7 } export interface ERPPagination { count: number; limit: number; nextPage: string | undefined; previousPage: string | undefined; offset?: number; } export interface ERPResponse { data: Record[]; paging: ERPPagination; } export type ERPObject = Record; //# sourceMappingURL=erp-types.d.ts.map