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.

24 lines (23 loc) 1.01 kB
import { MongoCollectionClass } from '../../mongo-collection.js'; import { CreateValidationDto, UpdateValidationDto, Validation } from '@tmlmobilidade/types'; import { IndexDescription } from 'mongodb'; import { z } from 'zod'; declare class ValidationsClass extends MongoCollectionClass<Validation, CreateValidationDto, UpdateValidationDto> { private static _instance; protected createSchema: z.ZodSchema; protected updateSchema: z.ZodSchema; private constructor(); static getInstance(): Promise<ValidationsClass>; /** * Finds Validation documents by agency ID. * * @param id - The agency ID to search for * @returns A promise that resolves to an array of matching documents */ findByAgencyId(id: string): Promise<import("mongodb").WithId<Validation>[]>; protected getCollectionIndexes(): IndexDescription[]; protected getCollectionName(): string; protected getEnvName(): string; } export declare const validations: ValidationsClass; export {};