Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions etc/firebase-admin.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,14 @@ export namespace database {
const ServerValue: rtdb.ServerValue;
}

// @public
export interface ErrorInfo {
cause?: Error;
code: string;
httpResponse?: HttpResponse;
message: string;
}

// @public
export interface FirebaseArrayIndexError {
error: FirebaseError;
Expand All @@ -228,12 +236,19 @@ export interface FirebaseArrayIndexError {

// @public
export interface FirebaseError {
cause?: Error;
code: string;
httpResponse?: HttpResponse;
message: string;
stack?: string;
toJSON(): object;
}

// @public
export class FirebaseError extends Error implements FirebaseError {
constructor(errorInfo: ErrorInfo);
}

// @public (undocumented)
export function firestore(app?: App): _firestore.Firestore;

Expand Down Expand Up @@ -299,6 +314,15 @@ export interface GoogleOAuthAccessToken {
expires_in: number;
}

// @public
export interface HttpResponse {
data?: string | object;
headers: {
[key: string]: any;
};
status: number;
}

// @public (undocumented)
export function initializeApp(options?: AppOptions, name?: string): app.App;

Expand Down
11 changes: 11 additions & 0 deletions etc/firebase-admin.app-check.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export class AppCheck {
verifyToken(appCheckToken: string, options?: VerifyAppCheckTokenOptions): Promise<VerifyAppCheckTokenResponse>;
}

// @public
export type AppCheckErrorCode = 'aborted' | 'invalid-argument' | 'invalid-credential' | 'internal-error' | 'permission-denied' | 'unauthenticated' | 'not-found' | 'app-check-token-expired' | 'unknown-error';

// @public
export interface AppCheckToken {
token: string;
Expand All @@ -39,6 +42,14 @@ export interface DecodedAppCheckToken {
sub: string;
}

// Warning: (ae-forgotten-export) The symbol "PrefixedFirebaseError" needs to be exported by the entry point index.d.ts
//
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we can address (for both PrefixedFirebaseError and ErrorInfo? I think it is okay to ignore this but I am just double checking :)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ErrorInfo it's the same scenario we have for App. Where even though we export it commonly, api documenter wants it to be exported again from other paths where it is used in the definition. So i don't think we have good options other than exposing it from multiple paths.

For PrefixedFirebaseError this is technically internal logic and not exposed at all even though it's a middle step between FirebaseError and the service specific errors. Not sure if there is a way to exclude it from the docs.

// @public
export class FirebaseAppCheckError extends PrefixedFirebaseError {
// Warning: (ae-forgotten-export) The symbol "ErrorInfo" needs to be exported by the entry point index.d.ts
constructor(info: ErrorInfo, message?: string);
}

// @public
export function getAppCheck(app?: App): AppCheck;

Expand Down
25 changes: 25 additions & 0 deletions etc/firebase-admin.app.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,19 @@ export interface Credential {
// @public
export function deleteApp(app: App): Promise<void>;

// @public
export interface ErrorInfo {
cause?: Error;
code: string;
httpResponse?: HttpResponse;
message: string;
}

// Warning: (ae-forgotten-export) The symbol "PrefixedFirebaseError" needs to be exported by the entry point index.d.ts
//
// @public
export class FirebaseAppError extends PrefixedFirebaseError {
constructor(info: ErrorInfo, message?: string);
}

// @public
Expand All @@ -77,12 +86,19 @@ export interface FirebaseArrayIndexError {

// @public
export interface FirebaseError {
cause?: Error;
code: string;
httpResponse?: HttpResponse;
message: string;
stack?: string;
toJSON(): object;
}

// @public
export class FirebaseError extends Error implements FirebaseError {
constructor(errorInfo: ErrorInfo);
}

// @public
export function getApp(appName?: string): App;

Expand All @@ -97,6 +113,15 @@ export interface GoogleOAuthAccessToken {
expires_in: number;
}

// @public
export interface HttpResponse {
data?: string | object;
headers: {
[key: string]: any;
};
status: number;
}

// @public
export function initializeApp(options?: AppOptions, appName?: string): App;

Expand Down
Loading
Loading