Skip to content

Commit 0ed3e1c

Browse files
authored
fix: Separated service namespaces from module entry points (#1197)
1 parent 63be0d3 commit 0ed3e1c

38 files changed

+714
-982
lines changed

etc/firebase-admin.api.md

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ export namespace app {
4646
}
4747
}
4848

49-
// @public
50-
export function applicationDefault(httpAgent?: Agent): Credential;
51-
5249
// @public
5350
export interface AppOptions {
51+
// Warning: (ae-forgotten-export) The symbol "Credential" needs to be exported by the entry point default-namespace.d.ts
5452
credential?: Credential;
5553
databaseAuthVariableOverride?: object | null;
5654
databaseURL?: string;
@@ -274,20 +272,15 @@ export namespace auth {
274272
export type UserRecord = UserRecord;
275273
}
276274

277-
// @public
278-
export function cert(serviceAccountPathOrObject: string | ServiceAccount, httpAgent?: Agent): Credential;
279-
280-
// @public
281-
export interface Credential {
282-
getAccessToken(): Promise<GoogleOAuthAccessToken>;
283-
}
284-
285275
// @public (undocumented)
286276
export namespace credential {
287277
export type Credential = Credential;
288-
const applicationDefault: typeof applicationDefault;
289-
const cert: typeof cert;
290-
const refreshToken: typeof refreshToken;
278+
const // Warning: (ae-forgotten-export) The symbol "applicationDefault" needs to be exported by the entry point default-namespace.d.ts
279+
applicationDefault: typeof applicationDefault;
280+
const // Warning: (ae-forgotten-export) The symbol "cert" needs to be exported by the entry point default-namespace.d.ts
281+
cert: typeof cert;
282+
const // Warning: (ae-forgotten-export) The symbol "refreshToken" needs to be exported by the entry point default-namespace.d.ts
283+
refreshToken: typeof refreshToken;
291284
}
292285

293286
// @public
@@ -316,9 +309,6 @@ export namespace database {
316309
const ServerValue: rtdb.ServerValue;
317310
}
318311

319-
// @public
320-
export function deleteApp(app: App): Promise<void>;
321-
322312
// @public
323313
export interface FirebaseArrayIndexError {
324314
error: FirebaseError;
@@ -369,12 +359,6 @@ export namespace firestore {
369359
import setLogFunction = _firestore.setLogFunction;
370360
}
371361

372-
// @public (undocumented)
373-
export function getApp(name?: string): App;
374-
375-
// @public (undocumented)
376-
export function getApps(): App[];
377-
378362
// @public
379363
export interface GoogleOAuthAccessToken {
380364
// (undocumented)
@@ -618,9 +602,6 @@ export namespace projectManagement {
618602
export type ShaCertificate = ShaCertificate;
619603
}
620604

621-
// @public
622-
export function refreshToken(refreshTokenPathOrObject: string | object, httpAgent?: Agent): Credential;
623-
624605
// @public
625606
export function remoteConfig(app?: App): remoteConfig.RemoteConfig;
626607

etc/firebase-admin.auth.api.md

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -28,115 +28,6 @@ export class Auth extends BaseAuth {
2828
tenantManager(): TenantManager;
2929
}
3030

31-
// @public
32-
export function auth(app?: App): auth.Auth;
33-
34-
// @public (undocumented)
35-
export namespace auth {
36-
// (undocumented)
37-
export type ActionCodeSettings = ActionCodeSettings;
38-
// (undocumented)
39-
export type Auth = Auth;
40-
// (undocumented)
41-
export type AuthFactorType = AuthFactorType;
42-
// (undocumented)
43-
export type AuthProviderConfig = AuthProviderConfig;
44-
// (undocumented)
45-
export type AuthProviderConfigFilter = AuthProviderConfigFilter;
46-
// (undocumented)
47-
export type BaseAuth = BaseAuth;
48-
// (undocumented)
49-
export type CreateMultiFactorInfoRequest = CreateMultiFactorInfoRequest;
50-
// (undocumented)
51-
export type CreatePhoneMultiFactorInfoRequest = CreatePhoneMultiFactorInfoRequest;
52-
// (undocumented)
53-
export type CreateRequest = CreateRequest;
54-
// (undocumented)
55-
export type CreateTenantRequest = CreateTenantRequest;
56-
// (undocumented)
57-
export type DecodedIdToken = DecodedIdToken;
58-
// (undocumented)
59-
export type DeleteUsersResult = DeleteUsersResult;
60-
// (undocumented)
61-
export type EmailIdentifier = EmailIdentifier;
62-
// (undocumented)
63-
export type EmailSignInProviderConfig = EmailSignInProviderConfig;
64-
// (undocumented)
65-
export type GetUsersResult = GetUsersResult;
66-
// (undocumented)
67-
export type HashAlgorithmType = HashAlgorithmType;
68-
// (undocumented)
69-
export type ListProviderConfigResults = ListProviderConfigResults;
70-
// (undocumented)
71-
export type ListTenantsResult = ListTenantsResult;
72-
// (undocumented)
73-
export type ListUsersResult = ListUsersResult;
74-
// (undocumented)
75-
export type MultiFactorConfig = MultiFactorConfig;
76-
// (undocumented)
77-
export type MultiFactorConfigState = MultiFactorConfigState;
78-
// (undocumented)
79-
export type MultiFactorCreateSettings = MultiFactorCreateSettings;
80-
// (undocumented)
81-
export type MultiFactorInfo = MultiFactorInfo;
82-
// (undocumented)
83-
export type MultiFactorSettings = MultiFactorSettings;
84-
// (undocumented)
85-
export type MultiFactorUpdateSettings = MultiFactorUpdateSettings;
86-
// (undocumented)
87-
export type OIDCAuthProviderConfig = OIDCAuthProviderConfig;
88-
// (undocumented)
89-
export type OIDCUpdateAuthProviderRequest = OIDCUpdateAuthProviderRequest;
90-
// (undocumented)
91-
export type PhoneIdentifier = PhoneIdentifier;
92-
// (undocumented)
93-
export type PhoneMultiFactorInfo = PhoneMultiFactorInfo;
94-
// (undocumented)
95-
export type ProviderIdentifier = ProviderIdentifier;
96-
// (undocumented)
97-
export type SAMLAuthProviderConfig = SAMLAuthProviderConfig;
98-
// (undocumented)
99-
export type SAMLUpdateAuthProviderRequest = SAMLUpdateAuthProviderRequest;
100-
// (undocumented)
101-
export type SessionCookieOptions = SessionCookieOptions;
102-
// (undocumented)
103-
export type Tenant = Tenant;
104-
// (undocumented)
105-
export type TenantAwareAuth = TenantAwareAuth;
106-
// (undocumented)
107-
export type TenantManager = TenantManager;
108-
// (undocumented)
109-
export type UidIdentifier = UidIdentifier;
110-
// (undocumented)
111-
export type UpdateAuthProviderRequest = UpdateAuthProviderRequest;
112-
// (undocumented)
113-
export type UpdateMultiFactorInfoRequest = UpdateMultiFactorInfoRequest;
114-
// (undocumented)
115-
export type UpdatePhoneMultiFactorInfoRequest = UpdatePhoneMultiFactorInfoRequest;
116-
// (undocumented)
117-
export type UpdateRequest = UpdateRequest;
118-
// (undocumented)
119-
export type UpdateTenantRequest = UpdateTenantRequest;
120-
// (undocumented)
121-
export type UserIdentifier = UserIdentifier;
122-
// (undocumented)
123-
export type UserImportOptions = UserImportOptions;
124-
// (undocumented)
125-
export type UserImportRecord = UserImportRecord;
126-
// (undocumented)
127-
export type UserImportResult = UserImportResult;
128-
// (undocumented)
129-
export type UserInfo = UserInfo;
130-
// (undocumented)
131-
export type UserMetadata = UserMetadata;
132-
// (undocumented)
133-
export type UserMetadataRequest = UserMetadataRequest;
134-
// (undocumented)
135-
export type UserProviderRequest = UserProviderRequest;
136-
// (undocumented)
137-
export type UserRecord = UserRecord;
138-
}
139-
14031
// @public
14132
export type AuthFactorType = 'phone';
14233

etc/firebase-admin.database.api.md

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,15 @@ export interface Database extends FirebaseDatabase {
2121
setRules(source: string | Buffer | object): Promise<void>;
2222
}
2323

24-
// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
25-
//
26-
// @public
27-
export function database(app?: App): database.Database;
28-
29-
// @public (undocumented)
30-
export namespace database {
31-
// (undocumented)
32-
export type Database = Database;
33-
// (undocumented)
34-
export type DataSnapshot = rtdb.DataSnapshot;
35-
// (undocumented)
36-
export type EventType = rtdb.EventType;
37-
// (undocumented)
38-
export type OnDisconnect = rtdb.OnDisconnect;
39-
// (undocumented)
40-
export type Query = rtdb.Query;
41-
// (undocumented)
42-
export type Reference = rtdb.Reference;
43-
// (undocumented)
44-
export type ThenableReference = rtdb.ThenableReference;
45-
const // (undocumented)
46-
enableLogging: typeof rtdb.enableLogging;
47-
const ServerValue: rtdb.ServerValue;
48-
}
49-
5024
export { DataSnapshot }
5125

5226
// @public
5327
export const enableLogging: typeof rtdb.enableLogging;
5428

5529
export { EventType }
5630

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

etc/firebase-admin.firestore.api.md

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -57,48 +57,12 @@ export { FieldValue }
5757

5858
export { Firestore }
5959

60-
// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
61-
//
62-
// @public (undocumented)
63-
export function firestore(app?: App): _firestore.Firestore;
64-
65-
// @public (undocumented)
66-
export namespace firestore {
67-
import v1beta1 = _firestore.v1beta1;
68-
import v1 = _firestore.v1;
69-
import BulkWriter = _firestore.BulkWriter;
70-
import BulkWriterOptions = _firestore.BulkWriterOptions;
71-
import CollectionGroup = _firestore.CollectionGroup;
72-
import CollectionReference = _firestore.CollectionReference;
73-
import DocumentChangeType = _firestore.DocumentChangeType;
74-
import DocumentData = _firestore.DocumentData;
75-
import DocumentReference = _firestore.DocumentReference;
76-
import DocumentSnapshot = _firestore.DocumentSnapshot;
77-
import FieldPath = _firestore.FieldPath;
78-
import FieldValue = _firestore.FieldValue;
79-
import Firestore = _firestore.Firestore;
80-
import FirestoreDataConverter = _firestore.FirestoreDataConverter;
81-
import GeoPoint = _firestore.GeoPoint;
82-
import GrpcStatus = _firestore.GrpcStatus;
83-
import Precondition = _firestore.Precondition;
84-
import Query = _firestore.Query;
85-
import QueryDocumentSnapshot = _firestore.QueryDocumentSnapshot;
86-
import QueryPartition = _firestore.QueryPartition;
87-
import QuerySnapshot = _firestore.QuerySnapshot;
88-
import ReadOptions = _firestore.ReadOptions;
89-
import Settings = _firestore.Settings;
90-
import Timestamp = _firestore.Timestamp;
91-
import Transaction = _firestore.Transaction;
92-
import UpdateData = _firestore.UpdateData;
93-
import WriteBatch = _firestore.WriteBatch;
94-
import WriteResult = _firestore.WriteResult;
95-
import setLogFunction = _firestore.setLogFunction;
96-
}
97-
9860
export { FirestoreDataConverter }
9961

10062
export { GeoPoint }
10163

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

etc/firebase-admin.instance-id.api.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ export class InstanceId {
1717
deleteInstanceId(instanceId: string): Promise<void>;
1818
}
1919

20-
// @public
21-
export function instanceId(app?: App): instanceId.InstanceId;
22-
23-
// @public (undocumented)
24-
export namespace instanceId {
25-
// (undocumented)
26-
export type InstanceId = InstanceId;
27-
}
28-
2920

3021
// (No @packageDocumentation comment for this package)
3122

etc/firebase-admin.machine-learning.api.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,31 +52,6 @@ export class MachineLearning {
5252
updateModel(modelId: string, model: ModelOptions): Promise<Model>;
5353
}
5454

55-
// @public
56-
export function machineLearning(app?: App): machineLearning.MachineLearning;
57-
58-
// @public (undocumented)
59-
export namespace machineLearning {
60-
// (undocumented)
61-
export type AutoMLTfliteModelOptions = AutoMLTfliteModelOptions;
62-
// (undocumented)
63-
export type GcsTfliteModelOptions = GcsTfliteModelOptions;
64-
// (undocumented)
65-
export type ListModelsOptions = ListModelsOptions;
66-
// (undocumented)
67-
export type ListModelsResult = ListModelsResult;
68-
// (undocumented)
69-
export type MachineLearning = MachineLearning;
70-
// (undocumented)
71-
export type Model = Model;
72-
// (undocumented)
73-
export type ModelOptions = ModelOptions;
74-
// (undocumented)
75-
export type ModelOptionsBase = ModelOptionsBase;
76-
// (undocumented)
77-
export type TFLiteModel = TFLiteModel;
78-
}
79-
8055
// @public
8156
export class Model {
8257
get createTime(): string;

0 commit comments

Comments
 (0)