@checkfirst/nestjs-outlook
Version:
An opinionated NestJS module for Microsoft Outlook integration that provides easy access to Microsoft Graph API for emails, calendars, and more.
18 lines (17 loc) • 825 B
TypeScript
export declare function delay(ms: number): Promise<void>;
export declare function isNonRetryableError(error: unknown): boolean;
export declare function is410Error(error: unknown): boolean;
export declare function is429Error(error: unknown): boolean;
export declare function is404Error(error: unknown): boolean;
export declare function isNetworkError(error: unknown): boolean;
export declare function isServerError(error: unknown): boolean;
export declare function extractRetryAfterSeconds(error: unknown): number | null;
export declare function retryWithBackoff<T>(operation: () => Promise<T>, options?: {
maxRetries?: number;
retryDelayMs?: number;
retryCount?: number;
logger?: {
warn: (message: string, context?: Record<string, unknown>) => void;
};
operationName?: string;
}): Promise<T>;