firebase-admin 10.0.0 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/core.d.ts +1 -1
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +1 -1
- package/lib/app/credential-factory.js +1 -1
- package/lib/app/credential-internal.d.ts +1 -1
- package/lib/app/credential-internal.js +2 -1
- package/lib/app/credential.d.ts +1 -1
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +1 -1
- package/lib/app/firebase-app.js +4 -1
- package/lib/app/firebase-namespace.d.ts +1 -1
- package/lib/app/firebase-namespace.js +1 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +1 -1
- package/lib/app/lifecycle.js +1 -1
- package/lib/app-check/app-check-api-client-internal.d.ts +1 -1
- package/lib/app-check/app-check-api-client-internal.js +1 -1
- package/lib/app-check/app-check-api.d.ts +1 -1
- package/lib/app-check/app-check-api.js +1 -1
- package/lib/app-check/app-check-namespace.d.ts +1 -1
- package/lib/app-check/app-check-namespace.js +1 -1
- package/lib/app-check/app-check.d.ts +1 -1
- package/lib/app-check/app-check.js +1 -1
- package/lib/app-check/index.d.ts +1 -1
- package/lib/app-check/index.js +1 -1
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +2 -4
- package/lib/app-check/token-verifier.d.ts +1 -1
- package/lib/app-check/token-verifier.js +1 -2
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +1 -1
- package/lib/auth/auth-api-request.d.ts +1 -1
- package/lib/auth/auth-api-request.js +6 -4
- package/lib/auth/auth-config.d.ts +1 -1
- package/lib/auth/auth-config.js +1 -1
- package/lib/auth/auth-namespace.d.ts +4 -2
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/auth.js +1 -1
- package/lib/auth/base-auth.d.ts +5 -3
- package/lib/auth/base-auth.js +12 -2
- package/lib/auth/identifier.d.ts +1 -1
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +2 -2
- package/lib/auth/index.js +1 -1
- package/lib/auth/tenant-manager.d.ts +1 -1
- package/lib/auth/tenant-manager.js +1 -1
- package/lib/auth/tenant.d.ts +1 -1
- package/lib/auth/tenant.js +1 -1
- package/lib/auth/token-generator.d.ts +1 -1
- package/lib/auth/token-generator.js +2 -2
- package/lib/auth/token-verifier.d.ts +70 -1
- package/lib/auth/token-verifier.js +54 -7
- package/lib/auth/user-import-builder.d.ts +1 -1
- package/lib/auth/user-import-builder.js +1 -1
- package/lib/auth/user-record.d.ts +1 -1
- package/lib/auth/user-record.js +1 -1
- package/lib/credential/index.d.ts +1 -1
- package/lib/credential/index.js +1 -1
- package/lib/database/database-namespace.d.ts +1 -1
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +1 -1
- package/lib/database/database.js +1 -1
- package/lib/database/index.d.ts +1 -1
- package/lib/database/index.js +2 -1
- package/lib/default-namespace.d.ts +1 -1
- package/lib/default-namespace.js +1 -1
- package/lib/esm/firestore/index.js +1 -0
- package/lib/firebase-namespace-api.d.ts +1 -1
- package/lib/firebase-namespace-api.js +1 -1
- package/lib/firestore/firestore-internal.d.ts +1 -1
- package/lib/firestore/firestore-internal.js +1 -1
- package/lib/firestore/firestore-namespace.d.ts +6 -1
- package/lib/firestore/firestore-namespace.js +2 -1
- package/lib/firestore/index.d.ts +2 -2
- package/lib/firestore/index.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +1 -1
- package/lib/installations/index.js +1 -1
- package/lib/installations/installations-namespace.d.ts +1 -1
- package/lib/installations/installations-namespace.js +1 -1
- package/lib/installations/installations-request-handler.d.ts +1 -1
- package/lib/installations/installations-request-handler.js +1 -1
- package/lib/installations/installations.d.ts +1 -1
- package/lib/installations/installations.js +1 -1
- package/lib/instance-id/index.d.ts +1 -1
- package/lib/instance-id/index.js +1 -1
- package/lib/instance-id/instance-id-namespace.d.ts +1 -1
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +1 -1
- package/lib/instance-id/instance-id.js +1 -1
- package/lib/machine-learning/index.d.ts +1 -1
- package/lib/machine-learning/index.js +1 -1
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +1 -1
- package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
- package/lib/machine-learning/machine-learning-namespace.js +1 -1
- package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
- package/lib/machine-learning/machine-learning-utils.js +1 -1
- package/lib/machine-learning/machine-learning.d.ts +1 -1
- package/lib/machine-learning/machine-learning.js +1 -1
- package/lib/messaging/batch-request-internal.d.ts +1 -1
- package/lib/messaging/batch-request-internal.js +1 -1
- package/lib/messaging/index.d.ts +1 -1
- package/lib/messaging/index.js +1 -1
- package/lib/messaging/messaging-api-request-internal.d.ts +1 -1
- package/lib/messaging/messaging-api-request-internal.js +1 -1
- package/lib/messaging/messaging-api.d.ts +1 -1
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +1 -1
- package/lib/messaging/messaging-errors-internal.js +1 -1
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +1 -1
- package/lib/messaging/messaging-namespace.d.ts +1 -1
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +1 -1
- package/lib/messaging/messaging.js +1 -2
- package/lib/project-management/android-app.d.ts +1 -1
- package/lib/project-management/android-app.js +1 -1
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/index.d.ts +1 -1
- package/lib/project-management/index.js +1 -1
- package/lib/project-management/ios-app.d.ts +1 -1
- package/lib/project-management/ios-app.js +1 -1
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
- package/lib/project-management/project-management-api-request-internal.js +1 -1
- package/lib/project-management/project-management-namespace.d.ts +1 -1
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +1 -1
- package/lib/project-management/project-management.js +1 -1
- package/lib/remote-config/index.d.ts +1 -1
- package/lib/remote-config/index.js +1 -1
- package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
- package/lib/remote-config/remote-config-api-client-internal.js +1 -1
- package/lib/remote-config/remote-config-api.d.ts +1 -1
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +1 -1
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +1 -1
- package/lib/remote-config/remote-config.js +1 -1
- package/lib/security-rules/index.d.ts +1 -1
- package/lib/security-rules/index.js +1 -1
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +1 -1
- package/lib/security-rules/security-rules-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-internal.js +1 -1
- package/lib/security-rules/security-rules-namespace.d.ts +1 -1
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +1 -1
- package/lib/security-rules/security-rules.js +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/index.js +1 -1
- package/lib/storage/storage-namespace.d.ts +1 -1
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +1 -1
- package/lib/storage/storage.js +1 -1
- package/lib/utils/api-request.d.ts +1 -1
- package/lib/utils/api-request.js +1 -1
- package/lib/utils/crypto-signer.d.ts +1 -1
- package/lib/utils/crypto-signer.js +1 -1
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +1 -1
- package/lib/utils/error.d.ts +5 -1
- package/lib/utils/error.js +7 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/jwt.d.ts +1 -1
- package/lib/utils/jwt.js +1 -1
- package/lib/utils/validator.d.ts +1 -1
- package/lib/utils/validator.js +1 -1
- package/package.json +15 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v10.
|
|
1
|
+
/*! firebase-admin v10.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2018 Google Inc.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.createSessionCookieVerifier = exports.createIdTokenVerifier = exports.FirebaseTokenVerifier = exports.SESSION_COOKIE_INFO = exports.ID_TOKEN_INFO = void 0;
|
|
19
|
+
exports.createSessionCookieVerifier = exports.createAuthBlockingTokenVerifier = exports.createIdTokenVerifier = exports.FirebaseTokenVerifier = exports.SESSION_COOKIE_INFO = exports.AUTH_BLOCKING_TOKEN_INFO = exports.ID_TOKEN_INFO = void 0;
|
|
20
20
|
var error_1 = require("../utils/error");
|
|
21
21
|
var util = require("../utils/index");
|
|
22
22
|
var validator = require("../utils/validator");
|
|
@@ -41,6 +41,18 @@ exports.ID_TOKEN_INFO = {
|
|
|
41
41
|
shortName: 'ID token',
|
|
42
42
|
expiredErrorCode: error_1.AuthClientErrorCode.ID_TOKEN_EXPIRED,
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* User facing token information related to the Firebase Auth Blocking token.
|
|
46
|
+
*
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
exports.AUTH_BLOCKING_TOKEN_INFO = {
|
|
50
|
+
url: 'https://cloud.google.com/identity-platform/docs/blocking-functions',
|
|
51
|
+
verifyApiName: '_verifyAuthBlockingToken()',
|
|
52
|
+
jwtName: 'Firebase Auth Blocking token',
|
|
53
|
+
shortName: 'Auth Blocking token',
|
|
54
|
+
expiredErrorCode: error_1.AuthClientErrorCode.AUTH_BLOCKING_TOKEN_EXPIRED,
|
|
55
|
+
};
|
|
44
56
|
/**
|
|
45
57
|
* User facing token information related to the Firebase session cookie.
|
|
46
58
|
*
|
|
@@ -115,6 +127,26 @@ var FirebaseTokenVerifier = /** @class */ (function () {
|
|
|
115
127
|
return decodedIdToken;
|
|
116
128
|
});
|
|
117
129
|
};
|
|
130
|
+
/** @alpha */
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
132
|
+
FirebaseTokenVerifier.prototype._verifyAuthBlockingToken = function (jwtToken, isEmulator, audience) {
|
|
133
|
+
var _this = this;
|
|
134
|
+
if (!validator.isString(jwtToken)) {
|
|
135
|
+
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_ARGUMENT, "First argument to " + this.tokenInfo.verifyApiName + " must be a " + this.tokenInfo.jwtName + " string.");
|
|
136
|
+
}
|
|
137
|
+
return this.ensureProjectId()
|
|
138
|
+
.then(function (projectId) {
|
|
139
|
+
if (typeof audience === 'undefined') {
|
|
140
|
+
audience = projectId + ".cloudfunctions.net/";
|
|
141
|
+
}
|
|
142
|
+
return _this.decodeAndVerify(jwtToken, projectId, isEmulator, audience);
|
|
143
|
+
})
|
|
144
|
+
.then(function (decoded) {
|
|
145
|
+
var decodedAuthBlockingToken = decoded.payload;
|
|
146
|
+
decodedAuthBlockingToken.uid = decodedAuthBlockingToken.sub;
|
|
147
|
+
return decodedAuthBlockingToken;
|
|
148
|
+
});
|
|
149
|
+
};
|
|
118
150
|
FirebaseTokenVerifier.prototype.ensureProjectId = function () {
|
|
119
151
|
var _this = this;
|
|
120
152
|
return util.findProjectId(this.app)
|
|
@@ -126,11 +158,11 @@ var FirebaseTokenVerifier = /** @class */ (function () {
|
|
|
126
158
|
return Promise.resolve(projectId);
|
|
127
159
|
});
|
|
128
160
|
};
|
|
129
|
-
FirebaseTokenVerifier.prototype.decodeAndVerify = function (token, projectId, isEmulator) {
|
|
161
|
+
FirebaseTokenVerifier.prototype.decodeAndVerify = function (token, projectId, isEmulator, audience) {
|
|
130
162
|
var _this = this;
|
|
131
163
|
return this.safeDecode(token)
|
|
132
164
|
.then(function (decodedToken) {
|
|
133
|
-
_this.verifyContent(decodedToken, projectId, isEmulator);
|
|
165
|
+
_this.verifyContent(decodedToken, projectId, isEmulator, audience);
|
|
134
166
|
return _this.verifySignature(token, isEmulator)
|
|
135
167
|
.then(function () { return decodedToken; });
|
|
136
168
|
});
|
|
@@ -157,7 +189,7 @@ var FirebaseTokenVerifier = /** @class */ (function () {
|
|
|
157
189
|
* @param projectId - The Firebase Project Id.
|
|
158
190
|
* @param isEmulator - Whether the token is an Emulator token.
|
|
159
191
|
*/
|
|
160
|
-
FirebaseTokenVerifier.prototype.verifyContent = function (fullDecodedToken, projectId, isEmulator) {
|
|
192
|
+
FirebaseTokenVerifier.prototype.verifyContent = function (fullDecodedToken, projectId, isEmulator, audience) {
|
|
161
193
|
var header = fullDecodedToken && fullDecodedToken.header;
|
|
162
194
|
var payload = fullDecodedToken && fullDecodedToken.payload;
|
|
163
195
|
var projectIdMatchMessage = " Make sure the " + this.tokenInfo.shortName + " comes from the same " +
|
|
@@ -177,7 +209,7 @@ var FirebaseTokenVerifier = /** @class */ (function () {
|
|
|
177
209
|
(this.tokenInfo.shortName + ", but was given a legacy custom token.");
|
|
178
210
|
}
|
|
179
211
|
else {
|
|
180
|
-
errorMessage =
|
|
212
|
+
errorMessage = this.tokenInfo.jwtName + " has no \"kid\" claim.";
|
|
181
213
|
}
|
|
182
214
|
errorMessage += verifyJwtTokenDocsMessage;
|
|
183
215
|
}
|
|
@@ -185,7 +217,11 @@ var FirebaseTokenVerifier = /** @class */ (function () {
|
|
|
185
217
|
errorMessage = this.tokenInfo.jwtName + " has incorrect algorithm. Expected \"" + jwt_1.ALGORITHM_RS256 + '" but got ' +
|
|
186
218
|
'"' + header.alg + '".' + verifyJwtTokenDocsMessage;
|
|
187
219
|
}
|
|
188
|
-
else if (payload.aud
|
|
220
|
+
else if (typeof audience !== 'undefined' && !payload.aud.includes(audience)) {
|
|
221
|
+
errorMessage = this.tokenInfo.jwtName + " has incorrect \"aud\" (audience) claim. Expected \"" +
|
|
222
|
+
audience + '" but got "' + payload.aud + '".' + verifyJwtTokenDocsMessage;
|
|
223
|
+
}
|
|
224
|
+
else if (typeof audience === 'undefined' && payload.aud !== projectId) {
|
|
189
225
|
errorMessage = this.tokenInfo.jwtName + " has incorrect \"aud\" (audience) claim. Expected \"" +
|
|
190
226
|
projectId + '" but got "' + payload.aud + '".' + projectIdMatchMessage +
|
|
191
227
|
verifyJwtTokenDocsMessage;
|
|
@@ -258,6 +294,17 @@ function createIdTokenVerifier(app) {
|
|
|
258
294
|
return new FirebaseTokenVerifier(CLIENT_CERT_URL, 'https://securetoken.google.com/', exports.ID_TOKEN_INFO, app);
|
|
259
295
|
}
|
|
260
296
|
exports.createIdTokenVerifier = createIdTokenVerifier;
|
|
297
|
+
/**
|
|
298
|
+
* Creates a new FirebaseTokenVerifier to verify Firebase Auth Blocking tokens.
|
|
299
|
+
*
|
|
300
|
+
* @internal
|
|
301
|
+
* @param app - Firebase app instance.
|
|
302
|
+
* @returns FirebaseTokenVerifier
|
|
303
|
+
*/
|
|
304
|
+
function createAuthBlockingTokenVerifier(app) {
|
|
305
|
+
return new FirebaseTokenVerifier(CLIENT_CERT_URL, 'https://securetoken.google.com/', exports.AUTH_BLOCKING_TOKEN_INFO, app);
|
|
306
|
+
}
|
|
307
|
+
exports.createAuthBlockingTokenVerifier = createAuthBlockingTokenVerifier;
|
|
261
308
|
/**
|
|
262
309
|
* Creates a new FirebaseTokenVerifier to verify Firebase session cookies.
|
|
263
310
|
*
|
package/lib/auth/user-record.js
CHANGED
package/lib/credential/index.js
CHANGED
package/lib/database/database.js
CHANGED
package/lib/database/index.d.ts
CHANGED
package/lib/database/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v10.
|
|
1
|
+
/*! firebase-admin v10.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2020 Google Inc.
|
|
@@ -30,6 +30,7 @@ exports.enableLogging = standalone_1.enableLogging;
|
|
|
30
30
|
* {@link https://firebase.google.com/docs/reference/js/firebase.database.ServerValue | ServerValue}
|
|
31
31
|
* constant from the `@firebase/database` package.
|
|
32
32
|
*/
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
33
34
|
exports.ServerValue = standalone_1.ServerValue;
|
|
34
35
|
/**
|
|
35
36
|
* Gets the {@link Database} service for the default
|
package/lib/default-namespace.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import mod from "../../firestore/index.js";
|
|
2
2
|
|
|
3
3
|
export const BulkWriter = mod.BulkWriter;
|
|
4
|
+
export const BundleBuilder = mod.BundleBuilder;
|
|
4
5
|
export const CollectionGroup = mod.CollectionGroup;
|
|
5
6
|
export const CollectionReference = mod.CollectionReference;
|
|
6
7
|
export const DocumentReference = mod.DocumentReference;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v10.
|
|
1
|
+
/*! firebase-admin v10.1.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2021 Google Inc.
|
|
4
4
|
*
|
|
@@ -22,8 +22,10 @@ export declare namespace firestore {
|
|
|
22
22
|
export import v1 = _firestore.v1;
|
|
23
23
|
export import BulkWriter = _firestore.BulkWriter;
|
|
24
24
|
export import BulkWriterOptions = _firestore.BulkWriterOptions;
|
|
25
|
+
export import BundleBuilder = _firestore.BundleBuilder;
|
|
25
26
|
export import CollectionGroup = _firestore.CollectionGroup;
|
|
26
27
|
export import CollectionReference = _firestore.CollectionReference;
|
|
28
|
+
export import DocumentChange = _firestore.DocumentChange;
|
|
27
29
|
export import DocumentChangeType = _firestore.DocumentChangeType;
|
|
28
30
|
export import DocumentData = _firestore.DocumentData;
|
|
29
31
|
export import DocumentReference = _firestore.DocumentReference;
|
|
@@ -34,6 +36,7 @@ export declare namespace firestore {
|
|
|
34
36
|
export import FirestoreDataConverter = _firestore.FirestoreDataConverter;
|
|
35
37
|
export import GeoPoint = _firestore.GeoPoint;
|
|
36
38
|
export import GrpcStatus = _firestore.GrpcStatus;
|
|
39
|
+
export import OrderByDirection = _firestore.OrderByDirection;
|
|
37
40
|
export import Precondition = _firestore.Precondition;
|
|
38
41
|
export import Query = _firestore.Query;
|
|
39
42
|
export import QueryDocumentSnapshot = _firestore.QueryDocumentSnapshot;
|
|
@@ -41,9 +44,11 @@ export declare namespace firestore {
|
|
|
41
44
|
export import QuerySnapshot = _firestore.QuerySnapshot;
|
|
42
45
|
export import ReadOptions = _firestore.ReadOptions;
|
|
43
46
|
export import Settings = _firestore.Settings;
|
|
47
|
+
export import SetOptions = _firestore.SetOptions;
|
|
44
48
|
export import Timestamp = _firestore.Timestamp;
|
|
45
49
|
export import Transaction = _firestore.Transaction;
|
|
46
50
|
export import UpdateData = _firestore.UpdateData;
|
|
51
|
+
export import WhereFilterOp = _firestore.WhereFilterOp;
|
|
47
52
|
export import WriteBatch = _firestore.WriteBatch;
|
|
48
53
|
export import WriteResult = _firestore.WriteResult;
|
|
49
54
|
export import setLogFunction = _firestore.setLogFunction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v10.
|
|
1
|
+
/*! firebase-admin v10.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2021 Google Inc.
|
|
@@ -26,6 +26,7 @@ var firestore;
|
|
|
26
26
|
firestore.v1beta1 = _firestore.v1beta1;
|
|
27
27
|
firestore.v1 = _firestore.v1;
|
|
28
28
|
firestore.BulkWriter = _firestore.BulkWriter;
|
|
29
|
+
firestore.BundleBuilder = _firestore.BundleBuilder;
|
|
29
30
|
firestore.CollectionGroup = _firestore.CollectionGroup;
|
|
30
31
|
firestore.CollectionReference = _firestore.CollectionReference;
|
|
31
32
|
firestore.DocumentReference = _firestore.DocumentReference;
|
package/lib/firestore/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v10.
|
|
1
|
+
/*! firebase-admin v10.1.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2020 Google Inc.
|
|
4
4
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
import { Firestore } from '@google-cloud/firestore';
|
|
23
23
|
import { App } from '../app';
|
|
24
|
-
export { BulkWriter, BulkWriterOptions, CollectionGroup, CollectionReference, DocumentChangeType, DocumentData, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreDataConverter, GeoPoint, GrpcStatus, Precondition, Query, QueryDocumentSnapshot, QueryPartition, QuerySnapshot, ReadOptions, Settings, Timestamp, Transaction, UpdateData, WriteBatch, WriteResult, v1, setLogFunction, } from '@google-cloud/firestore';
|
|
24
|
+
export { BulkWriter, BulkWriterOptions, BundleBuilder, CollectionGroup, CollectionReference, DocumentChange, DocumentChangeType, DocumentData, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreDataConverter, GeoPoint, GrpcStatus, OrderByDirection, Precondition, Query, QueryDocumentSnapshot, QueryPartition, QuerySnapshot, ReadOptions, Settings, SetOptions, Timestamp, Transaction, UpdateData, WhereFilterOp, WriteBatch, WriteResult, v1, setLogFunction, } from '@google-cloud/firestore';
|
|
25
25
|
/**
|
|
26
26
|
* Gets the {@link https://googleapis.dev/nodejs/firestore/latest/Firestore.html | Firestore}
|
|
27
27
|
* service for the default app or a given app.
|
package/lib/firestore/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v10.
|
|
1
|
+
/*! firebase-admin v10.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2020 Google Inc.
|
|
@@ -21,6 +21,7 @@ var app_1 = require("../app");
|
|
|
21
21
|
var firestore_internal_1 = require("./firestore-internal");
|
|
22
22
|
var firestore_1 = require("@google-cloud/firestore");
|
|
23
23
|
Object.defineProperty(exports, "BulkWriter", { enumerable: true, get: function () { return firestore_1.BulkWriter; } });
|
|
24
|
+
Object.defineProperty(exports, "BundleBuilder", { enumerable: true, get: function () { return firestore_1.BundleBuilder; } });
|
|
24
25
|
Object.defineProperty(exports, "CollectionGroup", { enumerable: true, get: function () { return firestore_1.CollectionGroup; } });
|
|
25
26
|
Object.defineProperty(exports, "CollectionReference", { enumerable: true, get: function () { return firestore_1.CollectionReference; } });
|
|
26
27
|
Object.defineProperty(exports, "DocumentReference", { enumerable: true, get: function () { return firestore_1.DocumentReference; } });
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/instance-id/index.js
CHANGED
package/lib/messaging/index.d.ts
CHANGED
package/lib/messaging/index.js
CHANGED