Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Separated service namespaces from module entry points #1197

Merged
merged 1 commit into from
Mar 25, 2021
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
33 changes: 7 additions & 26 deletions etc/firebase-admin.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ export namespace app {
}
}

// @public
export function applicationDefault(httpAgent?: Agent): Credential;

// @public
export interface AppOptions {
// Warning: (ae-forgotten-export) The symbol "Credential" needs to be exported by the entry point default-namespace.d.ts
credential?: Credential;
databaseAuthVariableOverride?: object | null;
databaseURL?: string;
Expand Down Expand Up @@ -274,20 +272,15 @@ export namespace auth {
export type UserRecord = UserRecord;
}

// @public
export function cert(serviceAccountPathOrObject: string | ServiceAccount, httpAgent?: Agent): Credential;

// @public
export interface Credential {
getAccessToken(): Promise<GoogleOAuthAccessToken>;
}

// @public (undocumented)
export namespace credential {
export type Credential = Credential;
const applicationDefault: typeof applicationDefault;
const cert: typeof cert;
const refreshToken: typeof refreshToken;
const // Warning: (ae-forgotten-export) The symbol "applicationDefault" needs to be exported by the entry point default-namespace.d.ts
applicationDefault: typeof applicationDefault;
const // Warning: (ae-forgotten-export) The symbol "cert" needs to be exported by the entry point default-namespace.d.ts
cert: typeof cert;
const // Warning: (ae-forgotten-export) The symbol "refreshToken" needs to be exported by the entry point default-namespace.d.ts
refreshToken: typeof refreshToken;
}

// @public
Expand Down Expand Up @@ -316,9 +309,6 @@ export namespace database {
const ServerValue: rtdb.ServerValue;
}

// @public
export function deleteApp(app: App): Promise<void>;

// @public
export interface FirebaseArrayIndexError {
error: FirebaseError;
Expand Down Expand Up @@ -369,12 +359,6 @@ export namespace firestore {
import setLogFunction = _firestore.setLogFunction;
}

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

// @public (undocumented)
export function getApps(): App[];

// @public
export interface GoogleOAuthAccessToken {
// (undocumented)
Expand Down Expand Up @@ -618,9 +602,6 @@ export namespace projectManagement {
export type ShaCertificate = ShaCertificate;
}

// @public
export function refreshToken(refreshTokenPathOrObject: string | object, httpAgent?: Agent): Credential;

// @public
export function remoteConfig(app?: App): remoteConfig.RemoteConfig;

Expand Down
109 changes: 0 additions & 109 deletions etc/firebase-admin.auth.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,115 +28,6 @@ export class Auth extends BaseAuth {
tenantManager(): TenantManager;
}

// @public
export function auth(app?: App): auth.Auth;

// @public (undocumented)
export namespace auth {
// (undocumented)
export type ActionCodeSettings = ActionCodeSettings;
// (undocumented)
export type Auth = Auth;
// (undocumented)
export type AuthFactorType = AuthFactorType;
// (undocumented)
export type AuthProviderConfig = AuthProviderConfig;
// (undocumented)
export type AuthProviderConfigFilter = AuthProviderConfigFilter;
// (undocumented)
export type BaseAuth = BaseAuth;
// (undocumented)
export type CreateMultiFactorInfoRequest = CreateMultiFactorInfoRequest;
// (undocumented)
export type CreatePhoneMultiFactorInfoRequest = CreatePhoneMultiFactorInfoRequest;
// (undocumented)
export type CreateRequest = CreateRequest;
// (undocumented)
export type CreateTenantRequest = CreateTenantRequest;
// (undocumented)
export type DecodedIdToken = DecodedIdToken;
// (undocumented)
export type DeleteUsersResult = DeleteUsersResult;
// (undocumented)
export type EmailIdentifier = EmailIdentifier;
// (undocumented)
export type EmailSignInProviderConfig = EmailSignInProviderConfig;
// (undocumented)
export type GetUsersResult = GetUsersResult;
// (undocumented)
export type HashAlgorithmType = HashAlgorithmType;
// (undocumented)
export type ListProviderConfigResults = ListProviderConfigResults;
// (undocumented)
export type ListTenantsResult = ListTenantsResult;
// (undocumented)
export type ListUsersResult = ListUsersResult;
// (undocumented)
export type MultiFactorConfig = MultiFactorConfig;
// (undocumented)
export type MultiFactorConfigState = MultiFactorConfigState;
// (undocumented)
export type MultiFactorCreateSettings = MultiFactorCreateSettings;
// (undocumented)
export type MultiFactorInfo = MultiFactorInfo;
// (undocumented)
export type MultiFactorSettings = MultiFactorSettings;
// (undocumented)
export type MultiFactorUpdateSettings = MultiFactorUpdateSettings;
// (undocumented)
export type OIDCAuthProviderConfig = OIDCAuthProviderConfig;
// (undocumented)
export type OIDCUpdateAuthProviderRequest = OIDCUpdateAuthProviderRequest;
// (undocumented)
export type PhoneIdentifier = PhoneIdentifier;
// (undocumented)
export type PhoneMultiFactorInfo = PhoneMultiFactorInfo;
// (undocumented)
export type ProviderIdentifier = ProviderIdentifier;
// (undocumented)
export type SAMLAuthProviderConfig = SAMLAuthProviderConfig;
// (undocumented)
export type SAMLUpdateAuthProviderRequest = SAMLUpdateAuthProviderRequest;
// (undocumented)
export type SessionCookieOptions = SessionCookieOptions;
// (undocumented)
export type Tenant = Tenant;
// (undocumented)
export type TenantAwareAuth = TenantAwareAuth;
// (undocumented)
export type TenantManager = TenantManager;
// (undocumented)
export type UidIdentifier = UidIdentifier;
// (undocumented)
export type UpdateAuthProviderRequest = UpdateAuthProviderRequest;
// (undocumented)
export type UpdateMultiFactorInfoRequest = UpdateMultiFactorInfoRequest;
// (undocumented)
export type UpdatePhoneMultiFactorInfoRequest = UpdatePhoneMultiFactorInfoRequest;
// (undocumented)
export type UpdateRequest = UpdateRequest;
// (undocumented)
export type UpdateTenantRequest = UpdateTenantRequest;
// (undocumented)
export type UserIdentifier = UserIdentifier;
// (undocumented)
export type UserImportOptions = UserImportOptions;
// (undocumented)
export type UserImportRecord = UserImportRecord;
// (undocumented)
export type UserImportResult = UserImportResult;
// (undocumented)
export type UserInfo = UserInfo;
// (undocumented)
export type UserMetadata = UserMetadata;
// (undocumented)
export type UserMetadataRequest = UserMetadataRequest;
// (undocumented)
export type UserProviderRequest = UserProviderRequest;
// (undocumented)
export type UserRecord = UserRecord;
}

// @public
export type AuthFactorType = 'phone';

Expand Down
28 changes: 2 additions & 26 deletions etc/firebase-admin.database.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,15 @@ export interface Database extends FirebaseDatabase {
setRules(source: string | Buffer | object): Promise<void>;
}

// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
//
// @public
export function database(app?: App): database.Database;

// @public (undocumented)
export namespace database {
// (undocumented)
export type Database = Database;
// (undocumented)
export type DataSnapshot = rtdb.DataSnapshot;
// (undocumented)
export type EventType = rtdb.EventType;
// (undocumented)
export type OnDisconnect = rtdb.OnDisconnect;
// (undocumented)
export type Query = rtdb.Query;
// (undocumented)
export type Reference = rtdb.Reference;
// (undocumented)
export type ThenableReference = rtdb.ThenableReference;
const // (undocumented)
enableLogging: typeof rtdb.enableLogging;
const ServerValue: rtdb.ServerValue;
}

export { DataSnapshot }

// @public
export const enableLogging: typeof rtdb.enableLogging;

export { EventType }

// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
//
// @public
export function getDatabase(app?: App): Database;

Expand Down
40 changes: 2 additions & 38 deletions etc/firebase-admin.firestore.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,48 +57,12 @@ export { FieldValue }

export { Firestore }

// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export function firestore(app?: App): _firestore.Firestore;

// @public (undocumented)
export namespace firestore {
import v1beta1 = _firestore.v1beta1;
import v1 = _firestore.v1;
import BulkWriter = _firestore.BulkWriter;
import BulkWriterOptions = _firestore.BulkWriterOptions;
import CollectionGroup = _firestore.CollectionGroup;
import CollectionReference = _firestore.CollectionReference;
import DocumentChangeType = _firestore.DocumentChangeType;
import DocumentData = _firestore.DocumentData;
import DocumentReference = _firestore.DocumentReference;
import DocumentSnapshot = _firestore.DocumentSnapshot;
import FieldPath = _firestore.FieldPath;
import FieldValue = _firestore.FieldValue;
import Firestore = _firestore.Firestore;
import FirestoreDataConverter = _firestore.FirestoreDataConverter;
import GeoPoint = _firestore.GeoPoint;
import GrpcStatus = _firestore.GrpcStatus;
import Precondition = _firestore.Precondition;
import Query = _firestore.Query;
import QueryDocumentSnapshot = _firestore.QueryDocumentSnapshot;
import QueryPartition = _firestore.QueryPartition;
import QuerySnapshot = _firestore.QuerySnapshot;
import ReadOptions = _firestore.ReadOptions;
import Settings = _firestore.Settings;
import Timestamp = _firestore.Timestamp;
import Transaction = _firestore.Transaction;
import UpdateData = _firestore.UpdateData;
import WriteBatch = _firestore.WriteBatch;
import WriteResult = _firestore.WriteResult;
import setLogFunction = _firestore.setLogFunction;
}

export { FirestoreDataConverter }

export { GeoPoint }

// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export function getFirestore(app?: App): _firestore.Firestore;

Expand Down
9 changes: 0 additions & 9 deletions etc/firebase-admin.instance-id.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ export class InstanceId {
deleteInstanceId(instanceId: string): Promise<void>;
}

// @public
export function instanceId(app?: App): instanceId.InstanceId;

// @public (undocumented)
export namespace instanceId {
// (undocumented)
export type InstanceId = InstanceId;
}


// (No @packageDocumentation comment for this package)

Expand Down
25 changes: 0 additions & 25 deletions etc/firebase-admin.machine-learning.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,6 @@ export class MachineLearning {
updateModel(modelId: string, model: ModelOptions): Promise<Model>;
}

// @public
export function machineLearning(app?: App): machineLearning.MachineLearning;

// @public (undocumented)
export namespace machineLearning {
// (undocumented)
export type AutoMLTfliteModelOptions = AutoMLTfliteModelOptions;
// (undocumented)
export type GcsTfliteModelOptions = GcsTfliteModelOptions;
// (undocumented)
export type ListModelsOptions = ListModelsOptions;
// (undocumented)
export type ListModelsResult = ListModelsResult;
// (undocumented)
export type MachineLearning = MachineLearning;
// (undocumented)
export type Model = Model;
// (undocumented)
export type ModelOptions = ModelOptions;
// (undocumented)
export type ModelOptionsBase = ModelOptionsBase;
// (undocumented)
export type TFLiteModel = TFLiteModel;
}

// @public
export class Model {
get createTime(): string;
Expand Down
Loading