import { ConfigService } from '@nestjs/config'; import { LabTeamMember } from 'itlab-functions'; import { AuthenticationModuleOptions } from '../../../authentication'; import { BaseHttpService } from '../../base-http.service'; import { FetchMemberOptionsDtoV1 } from './fetch-member-options.dto.v1.type'; /** * TeamService * * Service client responsible for interacting with the Team microservice. * Extends `BaseHttpService` to inherit: * - Environment-sensitive URL resolution (internal vs. external). * - Secure inter-service authentication. * - Structured logging for traceability of outbound requests. * * Why this pattern? * - Ensures all outbound calls follow a unified configuration and logging structure. * - Promotes strong typing and maintainable HTTP logic. * - Makes service interactions predictable and debuggable across environments. */ export declare class TeamService extends BaseHttpService { /** * Constructs an Team service client instance. * * @param {AuthenticationModuleOptions} authenticationOptions - Injected authentication configuration. * @param {ConfigService} configService - NestJS ConfigService for environment detection. */ constructor(authenticationOptions: AuthenticationModuleOptions, configService: ConfigService); /** * Retrieves a single member entry by its MongoDB identifier. * * This method gracefully handles downstream failures by logging * and returning `undefined` instead of throwing. * * @param {string} memberId - Unique MongoDB identifier of the member. * @param {FetchMemberOptionsDtoV1} [options] - Optional query parameters for filtering or projection. * @returns {Promise} Resolves to an Member or `undefined` on failure. */ fetchMemberV1(memberId: string, options?: FetchMemberOptionsDtoV1): Promise; /** * Retrieves a collection of member entries. * * Useful for batch lookups or paginated listings. * Returns an empty array if the downstream service call fails. * * @param {FetchMemberOptionsDtoV1} [options] - Optional filter options for narrowing results. * @returns {Promise} Resolves to a list of members, or an empty array if none found. */ fetchMemberCollectionV1(options?: FetchMemberOptionsDtoV1): Promise; }