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.

21 lines (20 loc) 815 B
import { MongoCollectionClass } from '../../mongo-collection.js'; import { CreateSessionDto, Session, UpdateSessionDto } from '@tmlmobilidade/types'; import { IndexDescription, UpdateResult } from 'mongodb'; import { z } from 'zod'; declare class SessionsClass extends MongoCollectionClass<Session, CreateSessionDto, UpdateSessionDto> { private static _instance; protected createSchema: z.ZodSchema; protected updateSchema: z.ZodSchema; private constructor(); static getInstance(): Promise<SessionsClass>; /** * Disable Update Many */ updateMany(): Promise<UpdateResult<Session>>; protected getCollectionIndexes(): IndexDescription[]; protected getCollectionName(): string; protected getEnvName(): string; } export declare const sessions: SessionsClass; export {};