123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import { PrefixedFirebaseError } from '../utils/error';
- export interface Task {
- name?: string;
- scheduleTime?: string;
- dispatchDeadline?: string;
- httpRequest: {
- url: string;
- oidcToken?: {
- serviceAccountEmail: string;
- };
- body: string;
- headers: {
- [key: string]: string;
- };
- };
- }
- export declare const FUNCTIONS_ERROR_CODE_MAPPING: {
- [key: string]: FunctionsErrorCode;
- };
- export type FunctionsErrorCode = 'aborted' | 'invalid-argument' | 'invalid-credential' | 'internal-error' | 'failed-precondition' | 'permission-denied' | 'unauthenticated' | 'not-found' | 'unknown-error' | 'task-already-exists';
- export declare class FirebaseFunctionsError extends PrefixedFirebaseError {
- constructor(code: FunctionsErrorCode, message: string);
- }
|