@tmlmobilidade/interfaces
Version:
This package provides SDK-style connectors for interacting with databases (e.g., stops, plans, rides, alerts) and external providers (e.g., authentication, storage). It simplifies data access and integration across projects.
19 lines (18 loc) • 747 B
TypeScript
export declare const SAMS_VEHICLE_SEARCH_REGEX: RegExp;
export declare const SAMS_DEVICE_SEARCH_REGEX: RegExp;
/**
* Parses a sams vehicle search string (e.g., "v:123,456").
* Returns a deduplicated array of vehicle IDs as numbers.
* Returns an empty array if the pattern does not match.
*
* @param searchRaw - The raw vehicle search string
*/
export declare function parseSamsVehicleSearch(searchRaw: string): number[];
/**
* Parses a sams device search string (e.g., "d:DEVICE1,DEVICE2").
* Returns a deduplicated array of device IDs as strings.
* Returns an empty array if the pattern does not match.
*
* @param searchRaw - The raw device search string
*/
export declare function parseSamsDeviceSearch(searchRaw: string): string[];