1 | (function (global, factory) {
|
2 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/fire'), require('rxjs'), require('rxjs/operators'), require('@angular/core'), require('@angular/fire/auth'), require('@angular/fire/app'), require('firebase/app'), require('@angular/fire/app-check'), require('rxfire/firestore'), require('firebase/firestore')) :
|
3 | typeof define === 'function' && define.amd ? define('@angular/fire/firestore', ['exports', '@angular/fire', 'rxjs', 'rxjs/operators', '@angular/core', '@angular/fire/auth', '@angular/fire/app', 'firebase/app', '@angular/fire/app-check', 'rxfire/firestore', 'firebase/firestore'], factory) :
|
4 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.angular = global.angular || {}, global.angular.fire = global.angular.fire || {}, global.angular.fire.firestore = {}), global.angular.fire, global.rxjs, global.rxjs.operators, global.ng.core, global.angular.fire.auth, global.angular.fire.app, global.app$1, global.angular.fire['app-check'], global['rxfire-firestore'], global['firebase-firestore']));
|
5 | }(this, (function (exports, fire, rxjs, operators, i0, auth, app, app$1, appCheck, firestore$1, firestore) { 'use strict';
|
6 |
|
7 | function _interopNamespace(e) {
|
8 | if (e && e.__esModule) return e;
|
9 | var n = Object.create(null);
|
10 | if (e) {
|
11 | Object.keys(e).forEach(function (k) {
|
12 | if (k !== 'default') {
|
13 | var d = Object.getOwnPropertyDescriptor(e, k);
|
14 | Object.defineProperty(n, k, d.get ? d : {
|
15 | enumerable: true,
|
16 | get: function () {
|
17 | return e[k];
|
18 | }
|
19 | });
|
20 | }
|
21 | });
|
22 | }
|
23 | n['default'] = e;
|
24 | return Object.freeze(n);
|
25 | }
|
26 |
|
27 | var i0__namespace = _interopNamespace(i0);
|
28 |
|
29 | var Firestore = (function () {
|
30 | function Firestore(firestore) {
|
31 | return firestore;
|
32 | }
|
33 | return Firestore;
|
34 | }());
|
35 | var FIRESTORE_PROVIDER_NAME = 'firestore';
|
36 | var FirestoreInstances = (function () {
|
37 | function FirestoreInstances() {
|
38 | return fire.ɵgetAllInstancesOf(FIRESTORE_PROVIDER_NAME);
|
39 | }
|
40 | return FirestoreInstances;
|
41 | }());
|
42 | var firestoreInstance$ = rxjs.timer(0, 300).pipe(operators.concatMap(function () { return rxjs.from(fire.ɵgetAllInstancesOf(FIRESTORE_PROVIDER_NAME)); }), operators.distinct());
|
43 |
|
44 | |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 | var extendStatics = function (d, b) {
|
60 | extendStatics = Object.setPrototypeOf ||
|
61 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
62 | function (d, b) { for (var p in b)
|
63 | if (Object.prototype.hasOwnProperty.call(b, p))
|
64 | d[p] = b[p]; };
|
65 | return extendStatics(d, b);
|
66 | };
|
67 | function __extends(d, b) {
|
68 | if (typeof b !== "function" && b !== null)
|
69 | throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
70 | extendStatics(d, b);
|
71 | function __() { this.constructor = d; }
|
72 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
73 | }
|
74 | var __assign = function () {
|
75 | __assign = Object.assign || function __assign(t) {
|
76 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
77 | s = arguments[i];
|
78 | for (var p in s)
|
79 | if (Object.prototype.hasOwnProperty.call(s, p))
|
80 | t[p] = s[p];
|
81 | }
|
82 | return t;
|
83 | };
|
84 | return __assign.apply(this, arguments);
|
85 | };
|
86 | function __rest(s, e) {
|
87 | var t = {};
|
88 | for (var p in s)
|
89 | if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
90 | t[p] = s[p];
|
91 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
92 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
93 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
94 | t[p[i]] = s[p[i]];
|
95 | }
|
96 | return t;
|
97 | }
|
98 | function __decorate(decorators, target, key, desc) {
|
99 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
100 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
101 | r = Reflect.decorate(decorators, target, key, desc);
|
102 | else
|
103 | for (var i = decorators.length - 1; i >= 0; i--)
|
104 | if (d = decorators[i])
|
105 | r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
106 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
107 | }
|
108 | function __param(paramIndex, decorator) {
|
109 | return function (target, key) { decorator(target, key, paramIndex); };
|
110 | }
|
111 | function __metadata(metadataKey, metadataValue) {
|
112 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
113 | return Reflect.metadata(metadataKey, metadataValue);
|
114 | }
|
115 | function __awaiter(thisArg, _arguments, P, generator) {
|
116 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
117 | return new (P || (P = Promise))(function (resolve, reject) {
|
118 | function fulfilled(value) { try {
|
119 | step(generator.next(value));
|
120 | }
|
121 | catch (e) {
|
122 | reject(e);
|
123 | } }
|
124 | function rejected(value) { try {
|
125 | step(generator["throw"](value));
|
126 | }
|
127 | catch (e) {
|
128 | reject(e);
|
129 | } }
|
130 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
131 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
132 | });
|
133 | }
|
134 | function __generator(thisArg, body) {
|
135 | var _ = { label: 0, sent: function () { if (t[0] & 1)
|
136 | throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
137 | return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
138 | function verb(n) { return function (v) { return step([n, v]); }; }
|
139 | function step(op) {
|
140 | if (f)
|
141 | throw new TypeError("Generator is already executing.");
|
142 | while (_)
|
143 | try {
|
144 | if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
145 | return t;
|
146 | if (y = 0, t)
|
147 | op = [op[0] & 2, t.value];
|
148 | switch (op[0]) {
|
149 | case 0:
|
150 | case 1:
|
151 | t = op;
|
152 | break;
|
153 | case 4:
|
154 | _.label++;
|
155 | return { value: op[1], done: false };
|
156 | case 5:
|
157 | _.label++;
|
158 | y = op[1];
|
159 | op = [0];
|
160 | continue;
|
161 | case 7:
|
162 | op = _.ops.pop();
|
163 | _.trys.pop();
|
164 | continue;
|
165 | default:
|
166 | if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
167 | _ = 0;
|
168 | continue;
|
169 | }
|
170 | if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
171 | _.label = op[1];
|
172 | break;
|
173 | }
|
174 | if (op[0] === 6 && _.label < t[1]) {
|
175 | _.label = t[1];
|
176 | t = op;
|
177 | break;
|
178 | }
|
179 | if (t && _.label < t[2]) {
|
180 | _.label = t[2];
|
181 | _.ops.push(op);
|
182 | break;
|
183 | }
|
184 | if (t[2])
|
185 | _.ops.pop();
|
186 | _.trys.pop();
|
187 | continue;
|
188 | }
|
189 | op = body.call(thisArg, _);
|
190 | }
|
191 | catch (e) {
|
192 | op = [6, e];
|
193 | y = 0;
|
194 | }
|
195 | finally {
|
196 | f = t = 0;
|
197 | }
|
198 | if (op[0] & 5)
|
199 | throw op[1];
|
200 | return { value: op[0] ? op[1] : void 0, done: true };
|
201 | }
|
202 | }
|
203 | var __createBinding = Object.create ? (function (o, m, k, k2) {
|
204 | if (k2 === undefined)
|
205 | k2 = k;
|
206 | Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
207 | }) : (function (o, m, k, k2) {
|
208 | if (k2 === undefined)
|
209 | k2 = k;
|
210 | o[k2] = m[k];
|
211 | });
|
212 | function __exportStar(m, o) {
|
213 | for (var p in m)
|
214 | if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
215 | __createBinding(o, m, p);
|
216 | }
|
217 | function __values(o) {
|
218 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
219 | if (m)
|
220 | return m.call(o);
|
221 | if (o && typeof o.length === "number")
|
222 | return {
|
223 | next: function () {
|
224 | if (o && i >= o.length)
|
225 | o = void 0;
|
226 | return { value: o && o[i++], done: !o };
|
227 | }
|
228 | };
|
229 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
230 | }
|
231 | function __read(o, n) {
|
232 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
233 | if (!m)
|
234 | return o;
|
235 | var i = m.call(o), r, ar = [], e;
|
236 | try {
|
237 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
238 | ar.push(r.value);
|
239 | }
|
240 | catch (error) {
|
241 | e = { error: error };
|
242 | }
|
243 | finally {
|
244 | try {
|
245 | if (r && !r.done && (m = i["return"]))
|
246 | m.call(i);
|
247 | }
|
248 | finally {
|
249 | if (e)
|
250 | throw e.error;
|
251 | }
|
252 | }
|
253 | return ar;
|
254 | }
|
255 |
|
256 | function __spread() {
|
257 | for (var ar = [], i = 0; i < arguments.length; i++)
|
258 | ar = ar.concat(__read(arguments[i]));
|
259 | return ar;
|
260 | }
|
261 |
|
262 | function __spreadArrays() {
|
263 | for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
264 | s += arguments[i].length;
|
265 | for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
266 | for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
267 | r[k] = a[j];
|
268 | return r;
|
269 | }
|
270 | function __spreadArray(to, from) {
|
271 | for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
272 | to[j] = from[i];
|
273 | return to;
|
274 | }
|
275 | function __await(v) {
|
276 | return this instanceof __await ? (this.v = v, this) : new __await(v);
|
277 | }
|
278 | function __asyncGenerator(thisArg, _arguments, generator) {
|
279 | if (!Symbol.asyncIterator)
|
280 | throw new TypeError("Symbol.asyncIterator is not defined.");
|
281 | var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
282 | return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
283 | function verb(n) { if (g[n])
|
284 | i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
285 | function resume(n, v) { try {
|
286 | step(g[n](v));
|
287 | }
|
288 | catch (e) {
|
289 | settle(q[0][3], e);
|
290 | } }
|
291 | function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
292 | function fulfill(value) { resume("next", value); }
|
293 | function reject(value) { resume("throw", value); }
|
294 | function settle(f, v) { if (f(v), q.shift(), q.length)
|
295 | resume(q[0][0], q[0][1]); }
|
296 | }
|
297 | function __asyncDelegator(o) {
|
298 | var i, p;
|
299 | return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
300 | function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
301 | }
|
302 | function __asyncValues(o) {
|
303 | if (!Symbol.asyncIterator)
|
304 | throw new TypeError("Symbol.asyncIterator is not defined.");
|
305 | var m = o[Symbol.asyncIterator], i;
|
306 | return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
307 | function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
308 | function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
309 | }
|
310 | function __makeTemplateObject(cooked, raw) {
|
311 | if (Object.defineProperty) {
|
312 | Object.defineProperty(cooked, "raw", { value: raw });
|
313 | }
|
314 | else {
|
315 | cooked.raw = raw;
|
316 | }
|
317 | return cooked;
|
318 | }
|
319 | ;
|
320 | var __setModuleDefault = Object.create ? (function (o, v) {
|
321 | Object.defineProperty(o, "default", { enumerable: true, value: v });
|
322 | }) : function (o, v) {
|
323 | o["default"] = v;
|
324 | };
|
325 | function __importStar(mod) {
|
326 | if (mod && mod.__esModule)
|
327 | return mod;
|
328 | var result = {};
|
329 | if (mod != null)
|
330 | for (var k in mod)
|
331 | if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
332 | __createBinding(result, mod, k);
|
333 | __setModuleDefault(result, mod);
|
334 | return result;
|
335 | }
|
336 | function __importDefault(mod) {
|
337 | return (mod && mod.__esModule) ? mod : { default: mod };
|
338 | }
|
339 | function __classPrivateFieldGet(receiver, state, kind, f) {
|
340 | if (kind === "a" && !f)
|
341 | throw new TypeError("Private accessor was defined without a getter");
|
342 | if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
343 | throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
344 | return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
345 | }
|
346 | function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
347 | if (kind === "m")
|
348 | throw new TypeError("Private method is not writable");
|
349 | if (kind === "a" && !f)
|
350 | throw new TypeError("Private accessor was defined without a setter");
|
351 | if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
352 | throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
353 | return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
354 | }
|
355 |
|
356 | var PROVIDED_FIRESTORE_INSTANCES = new i0.InjectionToken('angularfire2.firestore-instances');
|
357 | function defaultFirestoreInstanceFactory(provided, defaultApp) {
|
358 | var defaultFirestore = fire.ɵgetDefaultInstanceOf(FIRESTORE_PROVIDER_NAME, provided, defaultApp);
|
359 | return defaultFirestore && new Firestore(defaultFirestore);
|
360 | }
|
361 | function firestoreInstanceFactory(fn) {
|
362 | return function (zone, injector) {
|
363 | var firestore = zone.runOutsideAngular(function () { return fn(injector); });
|
364 | return new Firestore(firestore);
|
365 | };
|
366 | }
|
367 | var FIRESTORE_INSTANCES_PROVIDER = {
|
368 | provide: FirestoreInstances,
|
369 | deps: [
|
370 | [new i0.Optional(), PROVIDED_FIRESTORE_INSTANCES],
|
371 | ]
|
372 | };
|
373 | var DEFAULT_FIRESTORE_INSTANCE_PROVIDER = {
|
374 | provide: Firestore,
|
375 | useFactory: defaultFirestoreInstanceFactory,
|
376 | deps: [
|
377 | [new i0.Optional(), PROVIDED_FIRESTORE_INSTANCES],
|
378 | app.FirebaseApp,
|
379 | ]
|
380 | };
|
381 | var FirestoreModule = (function () {
|
382 | function FirestoreModule() {
|
383 | app$1.registerVersion('angularfire', fire.VERSION.full, 'fst');
|
384 | }
|
385 | return FirestoreModule;
|
386 | }());
|
387 | FirestoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: FirestoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
388 | FirestoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: FirestoreModule });
|
389 | FirestoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: FirestoreModule, providers: [
|
390 | DEFAULT_FIRESTORE_INSTANCE_PROVIDER,
|
391 | FIRESTORE_INSTANCES_PROVIDER,
|
392 | ] });
|
393 | i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: FirestoreModule, decorators: [{
|
394 | type: i0.NgModule,
|
395 | args: [{
|
396 | providers: [
|
397 | DEFAULT_FIRESTORE_INSTANCE_PROVIDER,
|
398 | FIRESTORE_INSTANCES_PROVIDER,
|
399 | ]
|
400 | }]
|
401 | }], ctorParameters: function () { return []; } });
|
402 | function provideFirestore(fn) {
|
403 | var deps = [];
|
404 | for (var _i = 1; _i < arguments.length; _i++) {
|
405 | deps[_i - 1] = arguments[_i];
|
406 | }
|
407 | return {
|
408 | ngModule: FirestoreModule,
|
409 | providers: [{
|
410 | provide: PROVIDED_FIRESTORE_INSTANCES,
|
411 | useFactory: firestoreInstanceFactory(fn),
|
412 | multi: true,
|
413 | deps: __spreadArray([
|
414 | i0.NgZone,
|
415 | i0.Injector,
|
416 | fire.ɵAngularFireSchedulers,
|
417 | app.FirebaseApps,
|
418 |
|
419 | [new i0.Optional(), auth.AuthInstances],
|
420 | [new i0.Optional(), appCheck.AppCheckInstances]
|
421 | ], __read(deps))
|
422 | }]
|
423 | };
|
424 | }
|
425 |
|
426 |
|
427 | var collectionChanges = fire.ɵzoneWrap(firestore$1.collectionChanges, true);
|
428 | var collectionSnapshots = fire.ɵzoneWrap(firestore$1.collection, true);
|
429 | var sortedChanges = fire.ɵzoneWrap(firestore$1.sortedChanges, true);
|
430 | var auditTrail = fire.ɵzoneWrap(firestore$1.auditTrail, true);
|
431 | var collectionData = fire.ɵzoneWrap(firestore$1.collectionData, true);
|
432 | var docSnapshots = fire.ɵzoneWrap(firestore$1.doc, true);
|
433 | var docData = fire.ɵzoneWrap(firestore$1.docData, true);
|
434 | var snapToData = fire.ɵzoneWrap(firestore$1.snapToData, true);
|
435 | var fromRef = fire.ɵzoneWrap(firestore$1.fromRef, true);
|
436 |
|
437 |
|
438 | var addDoc = fire.ɵzoneWrap(firestore.addDoc, true);
|
439 | var arrayRemove = fire.ɵzoneWrap(firestore.arrayRemove, true);
|
440 | var arrayUnion = fire.ɵzoneWrap(firestore.arrayUnion, true);
|
441 | var clearIndexedDbPersistence = fire.ɵzoneWrap(firestore.clearIndexedDbPersistence, true);
|
442 | var collection = fire.ɵzoneWrap(firestore.collection, true);
|
443 | var collectionGroup = fire.ɵzoneWrap(firestore.collectionGroup, true);
|
444 | var connectFirestoreEmulator = fire.ɵzoneWrap(firestore.connectFirestoreEmulator, true);
|
445 | var deleteDoc = fire.ɵzoneWrap(firestore.deleteDoc, true);
|
446 | var deleteField = fire.ɵzoneWrap(firestore.deleteField, true);
|
447 | var disableNetwork = fire.ɵzoneWrap(firestore.disableNetwork, true);
|
448 | var doc = fire.ɵzoneWrap(firestore.doc, true);
|
449 | var documentId = fire.ɵzoneWrap(firestore.documentId, true);
|
450 | var enableIndexedDbPersistence = fire.ɵzoneWrap(firestore.enableIndexedDbPersistence, true);
|
451 | var enableMultiTabIndexedDbPersistence = fire.ɵzoneWrap(firestore.enableMultiTabIndexedDbPersistence, true);
|
452 | var enableNetwork = fire.ɵzoneWrap(firestore.enableNetwork, true);
|
453 | var endAt = fire.ɵzoneWrap(firestore.endAt, true);
|
454 | var endBefore = fire.ɵzoneWrap(firestore.endBefore, true);
|
455 | var getDoc = fire.ɵzoneWrap(firestore.getDoc, true);
|
456 | var getDocFromCache = fire.ɵzoneWrap(firestore.getDocFromCache, true);
|
457 | var getDocFromServer = fire.ɵzoneWrap(firestore.getDocFromServer, true);
|
458 | var getDocs = fire.ɵzoneWrap(firestore.getDocs, true);
|
459 | var getDocsFromCache = fire.ɵzoneWrap(firestore.getDocsFromCache, true);
|
460 | var getDocsFromServer = fire.ɵzoneWrap(firestore.getDocsFromServer, true);
|
461 | var getFirestore = fire.ɵzoneWrap(firestore.getFirestore, true);
|
462 | var increment = fire.ɵzoneWrap(firestore.increment, true);
|
463 | var initializeFirestore = fire.ɵzoneWrap(firestore.initializeFirestore, true);
|
464 | var limit = fire.ɵzoneWrap(firestore.limit, true);
|
465 | var limitToLast = fire.ɵzoneWrap(firestore.limitToLast, true);
|
466 | var loadBundle = fire.ɵzoneWrap(firestore.loadBundle, true);
|
467 | var namedQuery = fire.ɵzoneWrap(firestore.namedQuery, true);
|
468 | var onSnapshot = fire.ɵzoneWrap(firestore.onSnapshot, true);
|
469 | var onSnapshotsInSync = fire.ɵzoneWrap(firestore.onSnapshotsInSync, true);
|
470 | var orderBy = fire.ɵzoneWrap(firestore.orderBy, true);
|
471 | var query = fire.ɵzoneWrap(firestore.query, true);
|
472 | var queryEqual = fire.ɵzoneWrap(firestore.queryEqual, true);
|
473 | var refEqual = fire.ɵzoneWrap(firestore.refEqual, true);
|
474 | var runTransaction = fire.ɵzoneWrap(firestore.runTransaction, true);
|
475 | var serverTimestamp = fire.ɵzoneWrap(firestore.serverTimestamp, true);
|
476 | var setDoc = fire.ɵzoneWrap(firestore.setDoc, true);
|
477 | var setLogLevel = fire.ɵzoneWrap(firestore.setLogLevel, true);
|
478 | var snapshotEqual = fire.ɵzoneWrap(firestore.snapshotEqual, true);
|
479 | var startAfter = fire.ɵzoneWrap(firestore.startAfter, true);
|
480 | var startAt = fire.ɵzoneWrap(firestore.startAt, true);
|
481 | var terminate = fire.ɵzoneWrap(firestore.terminate, true);
|
482 | var updateDoc = fire.ɵzoneWrap(firestore.updateDoc, true);
|
483 | var waitForPendingWrites = fire.ɵzoneWrap(firestore.waitForPendingWrites, true);
|
484 | var where = fire.ɵzoneWrap(firestore.where, true);
|
485 | var writeBatch = fire.ɵzoneWrap(firestore.writeBatch, true);
|
486 |
|
487 | |
488 |
|
489 |
|
490 |
|
491 | exports.Firestore = Firestore;
|
492 | exports.FirestoreInstances = FirestoreInstances;
|
493 | exports.FirestoreModule = FirestoreModule;
|
494 | exports.addDoc = addDoc;
|
495 | exports.arrayRemove = arrayRemove;
|
496 | exports.arrayUnion = arrayUnion;
|
497 | exports.auditTrail = auditTrail;
|
498 | exports.clearIndexedDbPersistence = clearIndexedDbPersistence;
|
499 | exports.collection = collection;
|
500 | exports.collectionChanges = collectionChanges;
|
501 | exports.collectionData = collectionData;
|
502 | exports.collectionGroup = collectionGroup;
|
503 | exports.collectionSnapshots = collectionSnapshots;
|
504 | exports.connectFirestoreEmulator = connectFirestoreEmulator;
|
505 | exports.deleteDoc = deleteDoc;
|
506 | exports.deleteField = deleteField;
|
507 | exports.disableNetwork = disableNetwork;
|
508 | exports.doc = doc;
|
509 | exports.docData = docData;
|
510 | exports.docSnapshots = docSnapshots;
|
511 | exports.documentId = documentId;
|
512 | exports.enableIndexedDbPersistence = enableIndexedDbPersistence;
|
513 | exports.enableMultiTabIndexedDbPersistence = enableMultiTabIndexedDbPersistence;
|
514 | exports.enableNetwork = enableNetwork;
|
515 | exports.endAt = endAt;
|
516 | exports.endBefore = endBefore;
|
517 | exports.firestoreInstance$ = firestoreInstance$;
|
518 | exports.fromRef = fromRef;
|
519 | exports.getDoc = getDoc;
|
520 | exports.getDocFromCache = getDocFromCache;
|
521 | exports.getDocFromServer = getDocFromServer;
|
522 | exports.getDocs = getDocs;
|
523 | exports.getDocsFromCache = getDocsFromCache;
|
524 | exports.getDocsFromServer = getDocsFromServer;
|
525 | exports.getFirestore = getFirestore;
|
526 | exports.increment = increment;
|
527 | exports.initializeFirestore = initializeFirestore;
|
528 | exports.limit = limit;
|
529 | exports.limitToLast = limitToLast;
|
530 | exports.loadBundle = loadBundle;
|
531 | exports.namedQuery = namedQuery;
|
532 | exports.onSnapshot = onSnapshot;
|
533 | exports.onSnapshotsInSync = onSnapshotsInSync;
|
534 | exports.orderBy = orderBy;
|
535 | exports.provideFirestore = provideFirestore;
|
536 | exports.query = query;
|
537 | exports.queryEqual = queryEqual;
|
538 | exports.refEqual = refEqual;
|
539 | exports.runTransaction = runTransaction;
|
540 | exports.serverTimestamp = serverTimestamp;
|
541 | exports.setDoc = setDoc;
|
542 | exports.setLogLevel = setLogLevel;
|
543 | exports.snapToData = snapToData;
|
544 | exports.snapshotEqual = snapshotEqual;
|
545 | exports.sortedChanges = sortedChanges;
|
546 | exports.startAfter = startAfter;
|
547 | exports.startAt = startAt;
|
548 | exports.terminate = terminate;
|
549 | exports.updateDoc = updateDoc;
|
550 | exports.waitForPendingWrites = waitForPendingWrites;
|
551 | exports.where = where;
|
552 | exports.writeBatch = writeBatch;
|
553 | Object.keys(firestore).forEach(function (k) {
|
554 | if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
555 | enumerable: true,
|
556 | get: function () {
|
557 | return firestore[k];
|
558 | }
|
559 | });
|
560 | });
|
561 |
|
562 | Object.defineProperty(exports, '__esModule', { value: true });
|
563 |
|
564 | })));
|
565 |
|