@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.
22 lines (21 loc) • 803 B
TypeScript
import { type Collection } from 'mongodb';
declare class PCGIDBValidationsClass {
LocationEntity: Collection;
ValidationEntity: Collection;
/**
* Establishes a connection to the Mongo database and initializes the collection.
* @throws If connection fails.
*/
connect(): Promise<void>;
/**
* Sets up an SSH Tunnel, if required, and returns the appropriate database URL.
* @throws If required environment variables are missing or if the tunnel setup fails.
*/
getPcgidbValidationsConnectionString(): Promise<string>;
}
/**
* @deprecated This should not be used anymore. Only inside the `apex` module
* and then you should use the services provided by the local package.
*/
export declare const pcgidbValidations: PCGIDBValidationsClass;
export {};