@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.
21 lines (20 loc) • 758 B
TypeScript
import { type Collection } from 'mongodb';
declare class PCGIDBTicketingClass {
SalesEntity: 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.
*/
getPcgidbTicketingConnectionString(): 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 pcgidbTicketing: PCGIDBTicketingClass;
export {};