UNPKG

@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) 864 B
import { MongoCollectionClass } from '../../mongo-collection.js'; import { Alert, CreateAlertDto, UpdateAlertDto } from '@tmlmobilidade/types'; import { IndexDescription } from 'mongodb'; import { z } from 'zod'; declare class AlertsClass extends MongoCollectionClass<Alert, CreateAlertDto, UpdateAlertDto> { private static _instance; protected createSchema: z.ZodSchema; protected updateSchema: z.ZodSchema; private constructor(); static getInstance(): Promise<AlertsClass>; findByMunicipalityId(municipality_id: string): Promise<import("mongodb").WithId<Alert>[]>; findByTitle(title: string): Promise<import("mongodb").WithId<Alert> | null>; protected getCollectionIndexes(): IndexDescription[]; protected getCollectionName(): string; protected getEnvName(): string; } export declare const alerts: AlertsClass; export {};