From b065c0d2e45dfe579523d5865075dc9533bdf99d Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 5 Jul 2023 20:07:17 -0700 Subject: [PATCH 1/6] Trying to fix firestore-types --- e2e/package.json | 2 +- e2e/yarn.lock | 452 +++++++++++++++++++++++++---------------------- 2 files changed, 237 insertions(+), 217 deletions(-) diff --git a/e2e/package.json b/e2e/package.json index fb9ce38e63a..782d4a4a931 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -18,7 +18,7 @@ "author": "", "license": "ISC", "dependencies": { - "firebase": "9.19.1" + "firebase": "10.0.0-20230706020734" }, "devDependencies": { "@babel/core": "7.17.10", diff --git a/e2e/yarn.lock b/e2e/yarn.lock index 92b3439c7fa..1f024340dee 100644 --- a/e2e/yarn.lock +++ b/e2e/yarn.lock @@ -1825,15 +1825,15 @@ resolved "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.3.tgz#90420f9f9c6d3987f176a19a7d8e764271a2f55d" integrity sha512-Fxt+AfXgjMoin2maPIYzFZnQjAXjAL0PHscM5pRTtatFqB+vZxAM9tLp2Optnuw3QOQC40jTNeGYFOMvyf7v9g== -"@firebase/analytics-compat@0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@firebase/analytics-compat/-/analytics-compat-0.2.3.tgz#ed60472dcd2bfa3f2fa7a5478b63bb7aece652ed" - integrity sha512-HmvbB4GMgh8AUlIDIo/OuFENLCGRXxMvtOueK+m8+DcfqBvG+mkii0Mi9ovo0TnMM62cy3oBYG7PHdjIQNLSLA== +"@firebase/analytics-compat@0.2.6": + version "0.2.6" + resolved "https://registry.npmjs.org/@firebase/analytics-compat/-/analytics-compat-0.2.6.tgz#50063978c42f13eb800e037e96ac4b17236841f4" + integrity sha512-4MqpVLFkGK7NJf/5wPEEP7ePBJatwYpyjgJ+wQHQGHfzaCDgntOnl9rL2vbVGGKCnRqWtZDIWhctB86UWXaX2Q== dependencies: - "@firebase/analytics" "0.9.3" + "@firebase/analytics" "0.10.0" "@firebase/analytics-types" "0.8.0" - "@firebase/component" "0.6.3" - "@firebase/util" "1.9.2" + "@firebase/component" "0.6.4" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/analytics-types@0.8.0": @@ -1841,58 +1841,58 @@ resolved "https://registry.npmjs.org/@firebase/analytics-types/-/analytics-types-0.8.0.tgz#551e744a29adbc07f557306530a2ec86add6d410" integrity sha512-iRP+QKI2+oz3UAh4nPEq14CsEjrjD6a5+fuypjScisAh9kXKFvdJOZJDwk7kikLvWVLGEs9+kIUS4LPQV7VZVw== -"@firebase/analytics@0.9.3": - version "0.9.3" - resolved "https://registry.npmjs.org/@firebase/analytics/-/analytics-0.9.3.tgz#ae653a6c6bcd667efd1d3cc5207e3e621d737028" - integrity sha512-XdYHBi6RvHYVAHGyLxXX0uRPwZmGeqw1JuWS1rMEeRF/jvbxnrL81kcFAHZVRkEvG9bXAJgL2fX9wmDo3e622w== +"@firebase/analytics@0.10.0": + version "0.10.0" + resolved "https://registry.npmjs.org/@firebase/analytics/-/analytics-0.10.0.tgz#9c6986acd573c6c6189ffb52d0fd63c775db26d7" + integrity sha512-Locv8gAqx0e+GX/0SI3dzmBY5e9kjVDtD+3zCFLJ0tH2hJwuCAiL+5WkHuxKj92rqQj/rvkBUCfA1ewlX2hehg== dependencies: - "@firebase/component" "0.6.3" - "@firebase/installations" "0.6.3" + "@firebase/component" "0.6.4" + "@firebase/installations" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/app-check-compat@0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@firebase/app-check-compat/-/app-check-compat-0.3.3.tgz#a1d594ec722fa81f7e11977b407a187e8afdb19a" - integrity sha512-25AQ4W7WUL8OWas40GsABuNU622Dm1ojbfeZ03uKtLj5Af7FerJ25u7zkgm+11pc6rpr5v8E5oxEG9vmNRndEA== +"@firebase/app-check-compat@0.3.7": + version "0.3.7" + resolved "https://registry.npmjs.org/@firebase/app-check-compat/-/app-check-compat-0.3.7.tgz#e150f61d653a0f2043a34dcb995616a717161839" + integrity sha512-cW682AxsyP1G+Z0/P7pO/WT2CzYlNxoNe5QejVarW2o5ZxeWSSPAiVEwpEpQR/bUlUmdeWThYTMvBWaopdBsqw== dependencies: - "@firebase/app-check" "0.6.3" + "@firebase/app-check" "0.8.0" "@firebase/app-check-types" "0.5.0" - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/app-check-interop-types@0.2.0": - version "0.2.0" - resolved "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.2.0.tgz#9106270114ca4e7732457e8319333866a26285d8" - integrity sha512-+3PQIeX6/eiVK+x/yg8r6xTNR97fN7MahFDm+jiQmDjcyvSefoGuTTNQuuMScGyx3vYUBeZn+Cp9kC0yY/9uxQ== +"@firebase/app-check-interop-types@0.3.0": + version "0.3.0" + resolved "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.3.0.tgz#b27ea1397cb80427f729e4bbf3a562f2052955c4" + integrity sha512-xAxHPZPIgFXnI+vb4sbBjZcde7ZluzPPaSK7Lx3/nmuVk4TjZvnL8ONnkd4ERQKL8WePQySU+pRcWkh8rDf5Sg== "@firebase/app-check-types@0.5.0": version "0.5.0" resolved "https://registry.npmjs.org/@firebase/app-check-types/-/app-check-types-0.5.0.tgz#1b02826213d7ce6a1cf773c329b46ea1c67064f4" integrity sha512-uwSUj32Mlubybw7tedRzR24RP8M8JUVR3NPiMk3/Z4bCmgEKTlQBwMXrehDAZ2wF+TsBq0SN1c6ema71U/JPyQ== -"@firebase/app-check@0.6.3": - version "0.6.3" - resolved "https://registry.npmjs.org/@firebase/app-check/-/app-check-0.6.3.tgz#221060e5e0eac1e20ee724478b61e89ad6e8420a" - integrity sha512-T9f9ceFLs7x4D2T6whu5a6j7B3qPuYHiZHZxW6DkMh/FoMmRA4/q/HVyu01i9+LyJJx2Xdo6eCcj6ofs9YZjqA== +"@firebase/app-check@0.8.0": + version "0.8.0" + resolved "https://registry.npmjs.org/@firebase/app-check/-/app-check-0.8.0.tgz#b531ec40900af9c3cf1ec63de9094a0ddd733d6a" + integrity sha512-dRDnhkcaC2FspMiRK/Vbp+PfsOAEP6ZElGm9iGFJ9fDqHoPs0HOPn7dwpJ51lCFi1+2/7n5pRPGhqF/F03I97g== dependencies: - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/app-compat@0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.3.tgz#a31c823d415c041591ee8c355776cd5bca7ef6e2" - integrity sha512-sX6rD1KFX6K2CuCnQvc9jZLOgAFZ+sv2jKKahIl4SbTM561D682B8n4Jtx/SgDrvcTVTdb05g4NhZOws9hxYxA== +"@firebase/app-compat@0.2.13": + version "0.2.13" + resolved "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.13.tgz#c42d392f45f2c9fef1631cb3ae36d53296aa6407" + integrity sha512-j6ANZaWjeVy5zg6X7uiqh6lM6o3n3LD1+/SJFNs9V781xyryyZWXe+tmnWNWPkP086QfJoNkWN9pMQRqSG4vMg== dependencies: - "@firebase/app" "0.9.3" - "@firebase/component" "0.6.3" + "@firebase/app" "0.9.13" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/app-types@0.9.0": @@ -1900,26 +1900,26 @@ resolved "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.0.tgz#35b5c568341e9e263b29b3d2ba0e9cfc9ec7f01e" integrity sha512-AeweANOIo0Mb8GiYm3xhTEBVCmPwTYAu9Hcd2qSkLuga/6+j9b1Jskl5bpiSQWy9eJ/j5pavxj6eYogmnuzm+Q== -"@firebase/app@0.9.3": - version "0.9.3" - resolved "https://registry.npmjs.org/@firebase/app/-/app-0.9.3.tgz#6a9c9b2544fa9a50ad8f405355896c54339c228b" - integrity sha512-G79JUceVDaHRZ4WkA11GyVldVXhdyRJRwWVQFFvAAVfQJLvy2TA6lQjeUn28F6FmeUWxDGwPC30bxCRWq7Op8Q== +"@firebase/app@0.9.13": + version "0.9.13" + resolved "https://registry.npmjs.org/@firebase/app/-/app-0.9.13.tgz#b1d3ad63d52f235a0d70a9b4261cabb3a24690d7" + integrity sha512-GfiI1JxJ7ecluEmDjPzseRXk/PX31hS7+tjgBopL7XjB2hLUdR+0FTMXy2Q3/hXezypDvU6or7gVFizDESrkXw== dependencies: - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" - idb "7.0.1" + "@firebase/util" "1.9.3" + idb "7.1.1" tslib "^2.1.0" -"@firebase/auth-compat@0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.3.3.tgz#e52f654e3f14b81cecb2fe252e564778fbba0a47" - integrity sha512-9asUuGtkzUVELH3LYXdiom1nVVV9bqEPqzHohanoofHL/oVTNcHZ4AQ5CXjNATfb6c1WH32U+nEuPiYg26UUIw== +"@firebase/auth-compat@0.4.3-20230706020734": + version "0.4.3-20230706020734" + resolved "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.4.3-20230706020734.tgz#a4b8b4e6771b847ad172612a7026652377cbed67" + integrity sha512-/fpDjTyuZMPvum8yik2LY8e5AKmMTTVjYYPKFTHlJXQCTxXHLrGYU6cSZ8oDXuvCxbZvpx/DHdh8+BgSUx4ubA== dependencies: - "@firebase/auth" "0.21.3" + "@firebase/auth" "1.0.0-20230706020734" "@firebase/auth-types" "0.12.0" - "@firebase/component" "0.6.3" - "@firebase/util" "1.9.2" + "@firebase/component" "0.6.4" + "@firebase/util" "1.9.3" node-fetch "2.6.7" tslib "^2.1.0" @@ -1933,66 +1933,67 @@ resolved "https://registry.npmjs.org/@firebase/auth-types/-/auth-types-0.12.0.tgz#f28e1b68ac3b208ad02a15854c585be6da3e8e79" integrity sha512-pPwaZt+SPOshK8xNoiQlK5XIrS97kFYc3Rc7xmy373QsOJ9MmqXxLaYssP5Kcds4wd2qK//amx/c+A8O2fVeZA== -"@firebase/auth@0.21.3": - version "0.21.3" - resolved "https://registry.npmjs.org/@firebase/auth/-/auth-0.21.3.tgz#277a3bf4b09db1b5dd471970cecd844d1835dcbf" - integrity sha512-HPbcwgArLBVTowFcn4qaQr6LCx7BidI9yrQ5MRbQNv4PsgK/3UGpzCYaNPPbvgr9fe+0jNdJO+uC0+dk4xIzCQ== +"@firebase/auth@1.0.0-20230706020734": + version "1.0.0-20230706020734" + resolved "https://registry.npmjs.org/@firebase/auth/-/auth-1.0.0-20230706020734.tgz#9f5bd62a3d60ccdcfa388179f6e74271529093f4" + integrity sha512-oofvfZjFT/rnm7GwN5JNvxWP07YU2CWpy+bTQ8C33qVq5Ip/9gYkcgytPwOwZZjatuAgRnp5lq5hEbwMIN/THA== dependencies: - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" + "@react-native-async-storage/async-storage" "1.17.12" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/component@0.6.3": - version "0.6.3" - resolved "https://registry.npmjs.org/@firebase/component/-/component-0.6.3.tgz#2baea3fa37861eef314a612eba194b0ff7c7ac11" - integrity sha512-rnhq5SOsB5nuJphZF50iwqnBiuuyg9kdnlUn1rBrKfu7/cUVJZF5IG1cWrL0rXXyiZW1WBI/J2pmTvVO8dStGQ== +"@firebase/component@0.6.4": + version "0.6.4" + resolved "https://registry.npmjs.org/@firebase/component/-/component-0.6.4.tgz#8981a6818bd730a7554aa5e0516ffc9b1ae3f33d" + integrity sha512-rLMyrXuO9jcAUCaQXCMjCMUsWrba5fzHlNK24xz5j2W6A/SRmK8mZJ/hn7V0fViLbxC0lPMtrK1eYzk6Fg03jA== dependencies: - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/database-compat@0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-0.3.3.tgz#4668e32527f57c1dde6cb03f5fde81eb04503ad4" - integrity sha512-r+L9jTbvsnb7sD+xz6UKU39DgBWqB2pyjzPNdBeriGC9Ssa2MAZe0bIqjCQg51RRXYc/aa/zK1Q2/4uesZeVgQ== +"@firebase/database-compat@1.0.0-20230706020734": + version "1.0.0-20230706020734" + resolved "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-1.0.0-20230706020734.tgz#7c212a8ab20959e185b11ca9a4ca39e1548f0473" + integrity sha512-ZpgLuzZHMpOEzv1qPZCA7ZBkdPLbaArdnVT8apGnNBgFD0I5cKBbMvCVSQGZK433vaup4aC4Wgp3URlCXqp/pA== dependencies: - "@firebase/component" "0.6.3" - "@firebase/database" "0.14.3" - "@firebase/database-types" "0.10.3" + "@firebase/component" "0.6.4" + "@firebase/database" "1.0.0-20230706020734" + "@firebase/database-types" "1.0.0-20230706020734" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/database-types@0.10.3": - version "0.10.3" - resolved "https://registry.npmjs.org/@firebase/database-types/-/database-types-0.10.3.tgz#f057e150b8c2aff0c623162abef139ff5df9bfd2" - integrity sha512-Hu34CDhHYZsd2eielr0jeaWrTJk8Hz0nd7WsnYDnXtQX4i49ppgPesUzPdXVBdIBLJmT0ZZRvT7qWHknkOT+zg== +"@firebase/database-types@1.0.0-20230706020734": + version "1.0.0-20230706020734" + resolved "https://registry.npmjs.org/@firebase/database-types/-/database-types-1.0.0-20230706020734.tgz#d79cb842cec6f790377a1e04536d504a82baff58" + integrity sha512-fUZaomvpEVKtDGcLbobkE40yb/xk1dTr/0t7v+LOd2ZwiBB67bvsYZHBFjwpGVJN9BfeLcGSPCugpM468gdWgA== dependencies: "@firebase/app-types" "0.9.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" -"@firebase/database@0.14.3": - version "0.14.3" - resolved "https://registry.npmjs.org/@firebase/database/-/database-0.14.3.tgz#0ddd92e5eeef2dbebefd55ce78b39472a57dd5d3" - integrity sha512-J76W6N7JiVkLaAtPyjaGRkrsIu9pi6iZikuGGtGjqvV19vkn7oiL4Hbo5uTYCMd4waTUWoL9iI08eX184W+5GQ== +"@firebase/database@1.0.0-20230706020734": + version "1.0.0-20230706020734" + resolved "https://registry.npmjs.org/@firebase/database/-/database-1.0.0-20230706020734.tgz#a508e18a74d471bd2351e70566d45c9c6909890c" + integrity sha512-wzYnNeDusXhUiPaQh84ziP4XPW6xKhlBLg+0z0L51NY+da0nuOw607PFd9pdbHGLl0PbD49w0RpVRZXeWlIFMw== dependencies: "@firebase/auth-interop-types" "0.2.1" - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" faye-websocket "0.11.4" tslib "^2.1.0" -"@firebase/firestore-compat@0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.3.3.tgz#2fedc13e6242aa98a78cfb710242721d9822c1da" - integrity sha512-fMTsSC0s2cF5w2+JoB0dWD/o4kXtLrUCPGnZPuz4S0bqTN2t0vHr3gdAsQLtnadgwB78ACtinYmf4Udwx7TzDg== +"@firebase/firestore-compat@0.3.13-20230706020734": + version "0.3.13-20230706020734" + resolved "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.3.13-20230706020734.tgz#c110c0a350f212b32821b2e50f8e6201e449a2e8" + integrity sha512-je52GG6TTcRdo4PylBdouicC+LQOKNrUA6kwEfUoCtmGEFDdOtvic9zCqQXI+08+J1tI2hlRvmjenJ1d5SeRyg== dependencies: - "@firebase/component" "0.6.3" - "@firebase/firestore" "3.8.3" + "@firebase/component" "0.6.4" + "@firebase/firestore" "4.0.0-20230706020734" "@firebase/firestore-types" "2.5.1" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/firestore-types@2.5.1": @@ -2000,29 +2001,29 @@ resolved "https://registry.npmjs.org/@firebase/firestore-types/-/firestore-types-2.5.1.tgz#464b2ee057956599ca34de50eae957c30fdbabb7" integrity sha512-xG0CA6EMfYo8YeUxC8FeDzf6W3FX1cLlcAGBYV6Cku12sZRI81oWcu61RSKM66K6kUENP+78Qm8mvroBcm1whw== -"@firebase/firestore@3.8.3": - version "3.8.3" - resolved "https://registry.npmjs.org/@firebase/firestore/-/firestore-3.8.3.tgz#8305113b9535747f982b585b0dd72e85122b5b89" - integrity sha512-4xR3Mqj95bxHg3hZnz0O+LQrHkjq+siT2y+B9da6u68qJ8bzzT42JaFgd1vifhbBpVbBzpFaS2RuCq2E+kGv9g== +"@firebase/firestore@4.0.0-20230706020734": + version "4.0.0-20230706020734" + resolved "https://registry.npmjs.org/@firebase/firestore/-/firestore-4.0.0-20230706020734.tgz#f01afef786c174dea8c5fb77faa061803b34f2aa" + integrity sha512-8o8Rvf6gKHueM4Iah8Tfs7cHecahIOEGCLFLZviIsREnwFviBsM4zBSo5Y3difYHk8R//Q9v63qT7sspk7KA6g== dependencies: - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" - "@firebase/webchannel-wrapper" "0.9.0" + "@firebase/util" "1.9.3" + "@firebase/webchannel-wrapper" "0.10.1" "@grpc/grpc-js" "~1.7.0" "@grpc/proto-loader" "^0.6.13" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/functions-compat@0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@firebase/functions-compat/-/functions-compat-0.3.3.tgz#530c30b4dfea14e71657f780d2c281e16209aed7" - integrity sha512-UIAJ2gzNq0p/61cXqkpi9DnlQt0hdlGqgmL5an7KuJth2Iv5uGpKg/+OapAZxPuiUNZgTEyZDB7kNBHvnxWq5w== +"@firebase/functions-compat@0.3.5": + version "0.3.5" + resolved "https://registry.npmjs.org/@firebase/functions-compat/-/functions-compat-0.3.5.tgz#7a532d3a9764c6d5fbc1ec5541a989a704326647" + integrity sha512-uD4jwgwVqdWf6uc3NRKF8cSZ0JwGqSlyhPgackyUPe+GAtnERpS4+Vr66g0b3Gge0ezG4iyHo/EXW/Hjx7QhHw== dependencies: - "@firebase/component" "0.6.3" - "@firebase/functions" "0.9.3" + "@firebase/component" "0.6.4" + "@firebase/functions" "0.10.0" "@firebase/functions-types" "0.6.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/functions-types@0.6.0": @@ -2030,28 +2031,28 @@ resolved "https://registry.npmjs.org/@firebase/functions-types/-/functions-types-0.6.0.tgz#ccd7000dc6fc668f5acb4e6a6a042a877a555ef2" integrity sha512-hfEw5VJtgWXIRf92ImLkgENqpL6IWpYaXVYiRkFY1jJ9+6tIhWM7IzzwbevwIIud/jaxKVdRzD7QBWfPmkwCYw== -"@firebase/functions@0.9.3": - version "0.9.3" - resolved "https://registry.npmjs.org/@firebase/functions/-/functions-0.9.3.tgz#9ef33efcd38b0235e84ae472d9b51597efe3f871" - integrity sha512-tPJgYY2ROQSYuzvgxZRoHeDj+Ic07/bWHwaftgTriawtupmFOkt5iikuhJSJUhaOpFh9TB335OvCXJw1N+BIlQ== +"@firebase/functions@0.10.0": + version "0.10.0" + resolved "https://registry.npmjs.org/@firebase/functions/-/functions-0.10.0.tgz#c630ddf12cdf941c25bc8d554e30c3226cd560f6" + integrity sha512-2U+fMNxTYhtwSpkkR6WbBcuNMOVaI7MaH3cZ6UAeNfj7AgEwHwMIFLPpC13YNZhno219F0lfxzTAA0N62ndWzA== dependencies: - "@firebase/app-check-interop-types" "0.2.0" + "@firebase/app-check-interop-types" "0.3.0" "@firebase/auth-interop-types" "0.2.1" - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/messaging-interop-types" "0.2.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/installations-compat@0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@firebase/installations-compat/-/installations-compat-0.2.3.tgz#42b05f4e5204c354e0fa059378402bd47635e5bf" - integrity sha512-K9rKM/ym06lkpaKz7bMLxzHK/HEk65XfLJBV+dJkIuWeO0EqqC9VFGrpWAo0QmgC4BqbU58T6VBbzoJjb0gaFw== +"@firebase/installations-compat@0.2.4": + version "0.2.4" + resolved "https://registry.npmjs.org/@firebase/installations-compat/-/installations-compat-0.2.4.tgz#b5557c897b4cd3635a59887a8bf69c3731aaa952" + integrity sha512-LI9dYjp0aT9Njkn9U4JRrDqQ6KXeAmFbRC0E7jI7+hxl5YmRWysq5qgQl22hcWpTk+cm3es66d/apoDU/A9n6Q== dependencies: - "@firebase/component" "0.6.3" - "@firebase/installations" "0.6.3" + "@firebase/component" "0.6.4" + "@firebase/installations" "0.6.4" "@firebase/installations-types" "0.5.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/installations-types@0.5.0": @@ -2059,13 +2060,13 @@ resolved "https://registry.npmjs.org/@firebase/installations-types/-/installations-types-0.5.0.tgz#2adad64755cd33648519b573ec7ec30f21fb5354" integrity sha512-9DP+RGfzoI2jH7gY4SlzqvZ+hr7gYzPODrbzVD82Y12kScZ6ZpRg/i3j6rleto8vTFC8n6Len4560FnV1w2IRg== -"@firebase/installations@0.6.3": - version "0.6.3" - resolved "https://registry.npmjs.org/@firebase/installations/-/installations-0.6.3.tgz#b833cf12ac63666246a57100dbdd669fb76a23aa" - integrity sha512-20JFWm+tweNoRjRbz8/Y4I7O5pUJGZsFKCkLl1qNxfNYECSfrZUuozIDJDZC/MeVn5+kB9CwjThDlgQEPrfLdg== +"@firebase/installations@0.6.4": + version "0.6.4" + resolved "https://registry.npmjs.org/@firebase/installations/-/installations-0.6.4.tgz#20382e33e6062ac5eff4bede8e468ed4c367609e" + integrity sha512-u5y88rtsp7NYkCHC3ElbFBrPtieUybZluXyzl7+4BsIz4sqb4vSAuwHEUgCgCeaQhvsnxDEU6icly8U9zsJigA== dependencies: - "@firebase/component" "0.6.3" - "@firebase/util" "1.9.2" + "@firebase/component" "0.6.4" + "@firebase/util" "1.9.3" idb "7.0.1" tslib "^2.1.0" @@ -2076,14 +2077,14 @@ dependencies: tslib "^2.1.0" -"@firebase/messaging-compat@0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.3.tgz#2d222e4078643e49a708b61b6d0e51edc2bc73bd" - integrity sha512-MmuuohXV2YRzIoJmDngI5qqO/cF2q7SdAaw7k4r61W3ReJy7x4/rtqrIvwNVhM6X/X8NFGBbsYKsCfRHWjFdkg== +"@firebase/messaging-compat@0.2.4": + version "0.2.4" + resolved "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.4.tgz#323ca48deef77065b4fcda3cfd662c4337dffcfd" + integrity sha512-lyFjeUhIsPRYDPNIkYX1LcZMpoVbBWXX4rPl7c/rqc7G+EUea7IEtSt4MxTvh6fDfPuzLn7+FZADfscC+tNMfg== dependencies: - "@firebase/component" "0.6.3" - "@firebase/messaging" "0.12.3" - "@firebase/util" "1.9.2" + "@firebase/component" "0.6.4" + "@firebase/messaging" "0.12.4" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/messaging-interop-types@0.2.0": @@ -2091,28 +2092,28 @@ resolved "https://registry.npmjs.org/@firebase/messaging-interop-types/-/messaging-interop-types-0.2.0.tgz#6056f8904a696bf0f7fdcf5f2ca8f008e8f6b064" integrity sha512-ujA8dcRuVeBixGR9CtegfpU4YmZf3Lt7QYkcj693FFannwNuZgfAYaTmbJ40dtjB81SAu6tbFPL9YLNT15KmOQ== -"@firebase/messaging@0.12.3": - version "0.12.3" - resolved "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.12.3.tgz#3fd521e31deb9b81ec6316062deb1dcc8198d038" - integrity sha512-a3ZKcGDiV2sKmQDB56PpgL1yjFxXCtff2+v1grnAZZ4GnfNQ74t2EHCbmgY7xRX7ThzMqug54oxhuk4ur0MIoA== +"@firebase/messaging@0.12.4": + version "0.12.4" + resolved "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.12.4.tgz#ccb49df5ab97d5650c9cf5b8c77ddc34daafcfe0" + integrity sha512-6JLZct6zUaex4g7HI3QbzeUrg9xcnmDAPTWpkoMpd/GoSVWH98zDoWXMGrcvHeCAIsLpFMe4MPoZkJbrPhaASw== dependencies: - "@firebase/component" "0.6.3" - "@firebase/installations" "0.6.3" + "@firebase/component" "0.6.4" + "@firebase/installations" "0.6.4" "@firebase/messaging-interop-types" "0.2.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" idb "7.0.1" tslib "^2.1.0" -"@firebase/performance-compat@0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@firebase/performance-compat/-/performance-compat-0.2.3.tgz#f3939bedc2017a95772fde64a72e97fe4b184268" - integrity sha512-I3rqZsIhauXn4iApfj1ttKQdlti/r8OZBG4YK10vxKSdhAzTIDWDKEsdoCXvvKLwplcMv36sM3WPAPGQLqY5MQ== +"@firebase/performance-compat@0.2.4": + version "0.2.4" + resolved "https://registry.npmjs.org/@firebase/performance-compat/-/performance-compat-0.2.4.tgz#95cbf32057b5d9f0c75d804bc50e6ed3ba486274" + integrity sha512-nnHUb8uP9G8islzcld/k6Bg5RhX62VpbAb/Anj7IXs/hp32Eb2LqFPZK4sy3pKkBUO5wcrlRWQa6wKOxqlUqsg== dependencies: - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/performance" "0.6.3" + "@firebase/performance" "0.6.4" "@firebase/performance-types" "0.2.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/performance-types@0.2.0": @@ -2120,27 +2121,27 @@ resolved "https://registry.npmjs.org/@firebase/performance-types/-/performance-types-0.2.0.tgz#400685f7a3455970817136d9b48ce07a4b9562ff" integrity sha512-kYrbr8e/CYr1KLrLYZZt2noNnf+pRwDq2KK9Au9jHrBMnb0/C9X9yWSXmZkFt4UIdsQknBq8uBB7fsybZdOBTA== -"@firebase/performance@0.6.3": - version "0.6.3" - resolved "https://registry.npmjs.org/@firebase/performance/-/performance-0.6.3.tgz#663c468dc4d62b6e211938377e21a01854803646" - integrity sha512-NQmQN6Ete7i9jz1mzULJZEGvsOmwwdUy6vpqnhUxSFMYPnlBKjX+yypCUUJDDN5zff5+kfwSD1qCyUAaS0xWUA== +"@firebase/performance@0.6.4": + version "0.6.4" + resolved "https://registry.npmjs.org/@firebase/performance/-/performance-0.6.4.tgz#0ad766bfcfab4f386f4fe0bef43bbcf505015069" + integrity sha512-HfTn/bd8mfy/61vEqaBelNiNnvAbUtME2S25A67Nb34zVuCSCRIX4SseXY6zBnOFj3oLisaEqhVcJmVPAej67g== dependencies: - "@firebase/component" "0.6.3" - "@firebase/installations" "0.6.3" + "@firebase/component" "0.6.4" + "@firebase/installations" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/remote-config-compat@0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@firebase/remote-config-compat/-/remote-config-compat-0.2.3.tgz#b0c0ef9978186bc58b262a39b9a41ec1bf819df3" - integrity sha512-w/ZL03YgYaXq03xIRyJ5oPhXZi6iDsY/v0J9Y7I7SqxCYytEnHVrL9nvBqd9R94y5LRAVNPCLokJeeizaUz4VQ== +"@firebase/remote-config-compat@0.2.4": + version "0.2.4" + resolved "https://registry.npmjs.org/@firebase/remote-config-compat/-/remote-config-compat-0.2.4.tgz#1f494c81a6c9560b1f9ca1b4fbd4bbbe47cf4776" + integrity sha512-FKiki53jZirrDFkBHglB3C07j5wBpitAaj8kLME6g8Mx+aq7u9P7qfmuSRytiOItADhWUj7O1JIv7n9q87SuwA== dependencies: - "@firebase/component" "0.6.3" + "@firebase/component" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/remote-config" "0.4.3" + "@firebase/remote-config" "0.4.4" "@firebase/remote-config-types" "0.3.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/remote-config-types@0.3.0": @@ -2148,26 +2149,26 @@ resolved "https://registry.npmjs.org/@firebase/remote-config-types/-/remote-config-types-0.3.0.tgz#689900dcdb3e5c059e8499b29db393e4e51314b4" integrity sha512-RtEH4vdcbXZuZWRZbIRmQVBNsE7VDQpet2qFvq6vwKLBIQRQR5Kh58M4ok3A3US8Sr3rubYnaGqZSurCwI8uMA== -"@firebase/remote-config@0.4.3": - version "0.4.3" - resolved "https://registry.npmjs.org/@firebase/remote-config/-/remote-config-0.4.3.tgz#85c4934d093a4c7b8a336af70ada83e936347a2b" - integrity sha512-Q6d4jBWZoNt6SYq87bjtDGUHFkKwAmGnNjWyRjl14AZqE1ilgd9NZHmutharlYJ3LvxMsid80HdK5SgGEpIPfg== +"@firebase/remote-config@0.4.4": + version "0.4.4" + resolved "https://registry.npmjs.org/@firebase/remote-config/-/remote-config-0.4.4.tgz#6a496117054de58744bc9f382d2a6d1e14060c65" + integrity sha512-x1ioTHGX8ZwDSTOVp8PBLv2/wfwKzb4pxi0gFezS5GCJwbLlloUH4YYZHHS83IPxnua8b6l0IXUaWd0RgbWwzQ== dependencies: - "@firebase/component" "0.6.3" - "@firebase/installations" "0.6.3" + "@firebase/component" "0.6.4" + "@firebase/installations" "0.6.4" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/storage-compat@0.3.1": - version "0.3.1" - resolved "https://registry.npmjs.org/@firebase/storage-compat/-/storage-compat-0.3.1.tgz#b8536c3a435f8ce5eb07796ca10fda16896a9bae" - integrity sha512-6HaTvWsT5Yy3j4UpCZpMcFUYEkJ2XYWukdyTl02u6VjSBRLvkhOXPzEfMvgVWqhnF/rYVfPdjrZ904wk5OxtmQ== +"@firebase/storage-compat@0.3.2": + version "0.3.2" + resolved "https://registry.npmjs.org/@firebase/storage-compat/-/storage-compat-0.3.2.tgz#51a97170fd652a516f729f82b97af369e5a2f8d7" + integrity sha512-wvsXlLa9DVOMQJckbDNhXKKxRNNewyUhhbXev3t8kSgoCotd1v3MmqhKKz93ePhDnhHnDs7bYHy+Qa8dRY6BXw== dependencies: - "@firebase/component" "0.6.3" - "@firebase/storage" "0.11.1" + "@firebase/component" "0.6.4" + "@firebase/storage" "0.11.2" "@firebase/storage-types" "0.8.0" - "@firebase/util" "1.9.2" + "@firebase/util" "1.9.3" tslib "^2.1.0" "@firebase/storage-types@0.8.0": @@ -2175,27 +2176,27 @@ resolved "https://registry.npmjs.org/@firebase/storage-types/-/storage-types-0.8.0.tgz#f1e40a5361d59240b6e84fac7fbbbb622bfaf707" integrity sha512-isRHcGrTs9kITJC0AVehHfpraWFui39MPaU7Eo8QfWlqW7YPymBmRgjDrlOgFdURh6Cdeg07zmkLP5tzTKRSpg== -"@firebase/storage@0.11.1": - version "0.11.1" - resolved "https://registry.npmjs.org/@firebase/storage/-/storage-0.11.1.tgz#602ddb7bce77077800a46bcdfa76f36d7a265c51" - integrity sha512-Xv8EG2j52ugF2xayBz26U9J0VBXHXPMVxSN+ph3R3BSoHxvMLaPu+qUYKHavSt+zbcgPH2GyBhrCdJK6SaDFPA== +"@firebase/storage@0.11.2": + version "0.11.2" + resolved "https://registry.npmjs.org/@firebase/storage/-/storage-0.11.2.tgz#c5e0316543fe1c4026b8e3910f85ad73f5b77571" + integrity sha512-CtvoFaBI4hGXlXbaCHf8humajkbXhs39Nbh6MbNxtwJiCqxPy9iH3D3CCfXAvP0QvAAwmJUTK3+z9a++Kc4nkA== dependencies: - "@firebase/component" "0.6.3" - "@firebase/util" "1.9.2" + "@firebase/component" "0.6.4" + "@firebase/util" "1.9.3" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/util@1.9.2": - version "1.9.2" - resolved "https://registry.npmjs.org/@firebase/util/-/util-1.9.2.tgz#f5e9e393c5bae3547b9c823ee12076be1e23b1e2" - integrity sha512-9l0uMGPGw3GsoD5khjMmYCCcMq/OR/OOSViiWMN+s2Q0pxM+fYzrii1H+r8qC/uoMjSVXomjLZt0vZIyryCqtQ== +"@firebase/util@1.9.3": + version "1.9.3" + resolved "https://registry.npmjs.org/@firebase/util/-/util-1.9.3.tgz#45458dd5cd02d90e55c656e84adf6f3decf4b7ed" + integrity sha512-DY02CRhOZwpzO36fHpuVysz6JZrscPiBXD0fXp6qSrL9oNOx5KWICKdR95C0lSITzxp0TZosVyHqzatE8JbcjA== dependencies: tslib "^2.1.0" -"@firebase/webchannel-wrapper@0.9.0": - version "0.9.0" - resolved "https://registry.npmjs.org/@firebase/webchannel-wrapper/-/webchannel-wrapper-0.9.0.tgz#9340bce56560a8bdba1d25d6281d4bfc397450dc" - integrity sha512-BpiZLBWdLFw+qFel9p3Zs1jD6QmH7Ii4aTDu6+vx8ShdidChZUXqDhYJly4ZjSgQh54miXbBgBrk0S+jTIh/Qg== +"@firebase/webchannel-wrapper@0.10.1": + version "0.10.1" + resolved "https://registry.npmjs.org/@firebase/webchannel-wrapper/-/webchannel-wrapper-0.10.1.tgz#60bb2aaf129f9e00621f8d698722ddba6ee1f8ac" + integrity sha512-Dq5rYfEpdeel0bLVN+nfD1VWmzCkK+pJbSjIawGE+RY4+NIJqhbUDDQjvV0NUK84fMfwxvtFoCtEe70HfZjFcw== "@grpc/grpc-js@~1.7.0": version "1.7.3" @@ -2335,6 +2336,13 @@ resolved "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= +"@react-native-async-storage/async-storage@1.17.12": + version "1.17.12" + resolved "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.17.12.tgz#a39e4df5b06795ce49b2ca5b7ca9b8faadf8e621" + integrity sha512-BXg4OxFdjPTRt+8MvN6jz4muq0/2zII3s7HeT/11e4Zeh3WCgk/BleLzUcDfVqF3OzFHUqEkSrb76d6Ndjd/Nw== + dependencies: + merge-options "^3.0.4" + "@socket.io/base64-arraybuffer@~1.0.2": version "1.0.2" resolved "https://registry.npmjs.org/@socket.io/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#568d9beae00b0d835f4f8c53fd55714986492e61" @@ -4019,37 +4027,37 @@ find-up@^4.0.0: locate-path "^5.0.0" path-exists "^4.0.0" -firebase@9.17.1: - version "9.17.1" - resolved "https://registry.npmjs.org/firebase/-/firebase-9.17.1.tgz#91c56fe9d9bf5ed1c405030e4fe8133c6069fd40" - integrity sha512-MSZaTRaaRLgDFLqoEnoPYK8zkLwQNvYeLZ3YSKdcQxG8hDifNO22ywS1cSA1ZCGHlQeOsDtfDwBejKcANf/RQw== - dependencies: - "@firebase/analytics" "0.9.3" - "@firebase/analytics-compat" "0.2.3" - "@firebase/app" "0.9.3" - "@firebase/app-check" "0.6.3" - "@firebase/app-check-compat" "0.3.3" - "@firebase/app-compat" "0.2.3" +firebase@10.0.0-20230706020734: + version "10.0.0-20230706020734" + resolved "https://registry.npmjs.org/firebase/-/firebase-10.0.0-20230706020734.tgz#89dec70e055af3e6930b060c31c9296aab506f90" + integrity sha512-PdF/O4WZzlOabfkSPpqhcWMTNPKFtYVDtE/Dxgvet002JFI5FmWTBTQEEhofH8+aOfM3iU/TwhSlZDqz0HEQuA== + dependencies: + "@firebase/analytics" "0.10.0" + "@firebase/analytics-compat" "0.2.6" + "@firebase/app" "0.9.13" + "@firebase/app-check" "0.8.0" + "@firebase/app-check-compat" "0.3.7" + "@firebase/app-compat" "0.2.13" "@firebase/app-types" "0.9.0" - "@firebase/auth" "0.21.3" - "@firebase/auth-compat" "0.3.3" - "@firebase/database" "0.14.3" - "@firebase/database-compat" "0.3.3" - "@firebase/firestore" "3.8.3" - "@firebase/firestore-compat" "0.3.3" - "@firebase/functions" "0.9.3" - "@firebase/functions-compat" "0.3.3" - "@firebase/installations" "0.6.3" - "@firebase/installations-compat" "0.2.3" - "@firebase/messaging" "0.12.3" - "@firebase/messaging-compat" "0.2.3" - "@firebase/performance" "0.6.3" - "@firebase/performance-compat" "0.2.3" - "@firebase/remote-config" "0.4.3" - "@firebase/remote-config-compat" "0.2.3" - "@firebase/storage" "0.11.1" - "@firebase/storage-compat" "0.3.1" - "@firebase/util" "1.9.2" + "@firebase/auth" "1.0.0-20230706020734" + "@firebase/auth-compat" "0.4.3-20230706020734" + "@firebase/database" "1.0.0-20230706020734" + "@firebase/database-compat" "1.0.0-20230706020734" + "@firebase/firestore" "4.0.0-20230706020734" + "@firebase/firestore-compat" "0.3.13-20230706020734" + "@firebase/functions" "0.10.0" + "@firebase/functions-compat" "0.3.5" + "@firebase/installations" "0.6.4" + "@firebase/installations-compat" "0.2.4" + "@firebase/messaging" "0.12.4" + "@firebase/messaging-compat" "0.2.4" + "@firebase/performance" "0.6.4" + "@firebase/performance-compat" "0.2.4" + "@firebase/remote-config" "0.4.4" + "@firebase/remote-config-compat" "0.2.4" + "@firebase/storage" "0.11.2" + "@firebase/storage-compat" "0.3.2" + "@firebase/util" "1.9.3" flat@^5.0.2: version "5.0.2" @@ -4381,6 +4389,11 @@ idb@7.0.1: resolved "https://registry.npmjs.org/idb/-/idb-7.0.1.tgz#d2875b3a2f205d854ee307f6d196f246fea590a7" integrity sha512-UUxlE7vGWK5RfB/fDwEGgRf84DY/ieqNha6msMV99UsEMQhJ1RwbCd8AYBj3QMgnE3VZnfQvm4oKVCJTYlqIgg== +idb@7.1.1: + version "7.1.1" + resolved "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz#d910ded866d32c7ced9befc5bfdf36f572ced72b" + integrity sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ== + ieee754@^1.1.13: version "1.2.1" resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" @@ -4984,6 +4997,13 @@ merge-descriptors@1.0.1: resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= +merge-options@^3.0.4: + version "3.0.4" + resolved "https://registry.npmjs.org/merge-options/-/merge-options-3.0.4.tgz#84709c2aa2a4b24c1981f66c179fe5565cc6dbb7" + integrity sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ== + dependencies: + is-plain-obj "^2.1.0" + merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" From ca2a24389a77ccc0b6935fb38aaaa5b0955738e6 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 5 Jul 2023 20:07:34 -0700 Subject: [PATCH 2/6] Trying to fix firestore-types --- packages/firestore-types/index.d.ts | 112 ++++++++++++++-------------- 1 file changed, 57 insertions(+), 55 deletions(-) diff --git a/packages/firestore-types/index.d.ts b/packages/firestore-types/index.d.ts index d198fd78866..b69d82ad725 100644 --- a/packages/firestore-types/index.d.ts +++ b/packages/firestore-types/index.d.ts @@ -49,11 +49,14 @@ export type LogLevel = export function setLogLevel(logLevel: LogLevel): void; -export interface FirestoreDataConverter { - toFirestore(modelObject: T): DocumentData; - toFirestore(modelObject: Partial, options: SetOptions): DocumentData; - - fromFirestore(snapshot: QueryDocumentSnapshot, options: SnapshotOptions): T; +export interface FirestoreDataConverter< +AppModelType, +DbModelType extends DocumentData = DocumentData +> { + toFirestore(modelObject: AppModelType): DocumentData; + toFirestore(modelObject: Partial, options: SetOptions): DocumentData; + + fromFirestore(snapshot: QueryDocumentSnapshot, options: SnapshotOptions): AppModelType; } export class FirebaseFirestore { @@ -73,7 +76,7 @@ export class FirebaseFirestore { collection(collectionPath: string): CollectionReference; - doc(documentPath: string): DocumentReference; + doc(documentPath: string): DocumentReference; collectionGroup(collectionId: string): Query; @@ -185,14 +188,14 @@ export class Blob { export class Transaction { private constructor(); - get(documentRef: DocumentReference): Promise>; + get(documentRef: DocumentReference): Promise>; set( - documentRef: DocumentReference, + documentRef: DocumentReference, data: Partial, options: SetOptions ): Transaction; - set(documentRef: DocumentReference, data: T): Transaction; + set(documentRef: DocumentReference, data: T): Transaction; update(documentRef: DocumentReference, data: UpdateData): Transaction; update( @@ -209,11 +212,11 @@ export class WriteBatch { private constructor(); set( - documentRef: DocumentReference, + documentRef: DocumentReference, data: Partial, options: SetOptions ): WriteBatch; - set(documentRef: DocumentReference, data: T): WriteBatch; + set(documentRef: DocumentReference, data: T): WriteBatch; update(documentRef: DocumentReference, data: UpdateData): WriteBatch; update( @@ -241,17 +244,17 @@ export interface GetOptions { readonly source?: 'default' | 'server' | 'cache'; } -export class DocumentReference { +export class DocumentReference { private constructor(); readonly id: string; readonly firestore: FirebaseFirestore; - readonly parent: CollectionReference; + readonly parent: CollectionReference; readonly path: string; collection(collectionPath: string): CollectionReference; - isEqual(other: DocumentReference): boolean; + isEqual(other: DocumentReference): boolean; set(data: Partial, options: SetOptions): Promise; set(data: T): Promise; @@ -265,29 +268,29 @@ export class DocumentReference { delete(): Promise; - get(options?: GetOptions): Promise>; + get(options?: GetOptions): Promise>; onSnapshot(observer: { - next?: (snapshot: DocumentSnapshot) => void; + next?: (snapshot: DocumentSnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; }): () => void; onSnapshot( options: SnapshotListenOptions, observer: { - next?: (snapshot: DocumentSnapshot) => void; + next?: (snapshot: DocumentSnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; } ): () => void; onSnapshot( - onNext: (snapshot: DocumentSnapshot) => void, + onNext: (snapshot: DocumentSnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; onSnapshot( options: SnapshotListenOptions, - onNext: (snapshot: DocumentSnapshot) => void, + onNext: (snapshot: DocumentSnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; @@ -307,11 +310,11 @@ export interface SnapshotMetadata { isEqual(other: SnapshotMetadata): boolean; } -export class DocumentSnapshot { +export class DocumentSnapshot { protected constructor(); readonly exists: boolean; - readonly ref: DocumentReference; + readonly ref: DocumentReference; readonly id: string; readonly metadata: SnapshotMetadata; @@ -319,12 +322,11 @@ export class DocumentSnapshot { get(fieldPath: string | FieldPath, options?: SnapshotOptions): any; - isEqual(other: DocumentSnapshot): boolean; + isEqual(other: DocumentSnapshot): boolean; } -export class QueryDocumentSnapshot< - T = DocumentData -> extends DocumentSnapshot { +export class QueryDocumentSnapshot + extends DocumentSnapshot { private constructor(); data(options?: SnapshotOptions): T; @@ -344,7 +346,7 @@ export type WhereFilterOp = | 'array-contains-any' | 'not-in'; -export class Query { +export class Query{ protected constructor(); readonly firestore: FirebaseFirestore; @@ -353,54 +355,54 @@ export class Query { fieldPath: string | FieldPath, opStr: WhereFilterOp, value: any - ): Query; + ): Query; orderBy( fieldPath: string | FieldPath, directionStr?: OrderByDirection - ): Query; + ): Query; - limit(limit: number): Query; + limit(limit: number): Query; - limitToLast(limit: number): Query; + limitToLast(limit: number): Query; - startAt(snapshot: DocumentSnapshot): Query; - startAt(...fieldValues: any[]): Query; + startAt(snapshot: DocumentSnapshot): Query; + startAt(...fieldValues: any[]): Query; - startAfter(snapshot: DocumentSnapshot): Query; - startAfter(...fieldValues: any[]): Query; + startAfter(snapshot: DocumentSnapshot): Query; + startAfter(...fieldValues: any[]): Query; - endBefore(snapshot: DocumentSnapshot): Query; - endBefore(...fieldValues: any[]): Query; + endBefore(snapshot: DocumentSnapshot): Query; + endBefore(...fieldValues: any[]): Query; - endAt(snapshot: DocumentSnapshot): Query; - endAt(...fieldValues: any[]): Query; + endAt(snapshot: DocumentSnapshot): Query; + endAt(...fieldValues: any[]): Query; - isEqual(other: Query): boolean; + isEqual(other: Query): boolean; - get(options?: GetOptions): Promise>; + get(options?: GetOptions): Promise>; onSnapshot(observer: { - next?: (snapshot: QuerySnapshot) => void; + next?: (snapshot: QuerySnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; }): () => void; onSnapshot( options: SnapshotListenOptions, observer: { - next?: (snapshot: QuerySnapshot) => void; + next?: (snapshot: QuerySnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; } ): () => void; onSnapshot( - onNext: (snapshot: QuerySnapshot) => void, + onNext: (snapshot: QuerySnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; onSnapshot( options: SnapshotListenOptions, - onNext: (snapshot: QuerySnapshot) => void, + onNext: (snapshot: QuerySnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; @@ -409,44 +411,44 @@ export class Query { withConverter(converter: FirestoreDataConverter): Query; } -export class QuerySnapshot { +export class QuerySnapshot { private constructor(); - readonly query: Query; + readonly query: Query; readonly metadata: SnapshotMetadata; - readonly docs: Array>; + readonly docs: Array>; readonly size: number; readonly empty: boolean; docChanges(options?: SnapshotListenOptions): Array>; forEach( - callback: (result: QueryDocumentSnapshot) => void, + callback: (result: QueryDocumentSnapshot) => void, thisArg?: any ): void; - isEqual(other: QuerySnapshot): boolean; + isEqual(other: QuerySnapshot): boolean; } export type DocumentChangeType = 'added' | 'removed' | 'modified'; -export interface DocumentChange { +export interface DocumentChange { readonly type: DocumentChangeType; - readonly doc: QueryDocumentSnapshot; + readonly doc: QueryDocumentSnapshot; readonly oldIndex: number; readonly newIndex: number; } -export class CollectionReference extends Query { +export class CollectionReference extends Query { private constructor(); readonly id: string; - readonly parent: DocumentReference | null; + readonly parent: DocumentReference| null; readonly path: string; - doc(documentPath?: string): DocumentReference; + doc(documentPath?: string): DocumentReference; - add(data: T): Promise>; + add(data: T): Promise>; isEqual(other: CollectionReference): boolean; From d642e31176410003fc019c2153426b302d25bc4f Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 5 Jul 2023 20:47:53 -0700 Subject: [PATCH 3/6] Update Firestore and RTDB types --- packages/firebase/compat/index.d.ts | 6 ++- packages/firestore-types/index.d.ts | 71 +++++++++++++++++------------ 2 files changed, 47 insertions(+), 30 deletions(-) diff --git a/packages/firebase/compat/index.d.ts b/packages/firebase/compat/index.d.ts index e4f62138d13..589d0d5a95f 100644 --- a/packages/firebase/compat/index.d.ts +++ b/packages/firebase/compat/index.d.ts @@ -5819,7 +5819,7 @@ declare namespace firebase.database { * returning true. */ forEach( - action: (a: firebase.database.IteratorDataSnapshot) => boolean | void + action: (a: firebase.database.IteratedDataSnapshot) => boolean | void ): boolean; /** * Gets the priority value of the data in this `DataSnapshot`. @@ -5997,6 +5997,10 @@ declare namespace firebase.database { */ toJSON(): Object | null; } + + interface IteratedDataSnapshot extends DataSnapshot { + key: string; // key of the location of this snapshot. + } /** * The Firebase Database service interface. diff --git a/packages/firestore-types/index.d.ts b/packages/firestore-types/index.d.ts index b69d82ad725..e310f5eda7c 100644 --- a/packages/firestore-types/index.d.ts +++ b/packages/firestore-types/index.d.ts @@ -50,9 +50,9 @@ export type LogLevel = export function setLogLevel(logLevel: LogLevel): void; export interface FirestoreDataConverter< -AppModelType, -DbModelType extends DocumentData = DocumentData -> { + AppModelType, + DbModelType extends DocumentData = DocumentData + > { toFirestore(modelObject: AppModelType): DocumentData; toFirestore(modelObject: Partial, options: SetOptions): DocumentData; @@ -188,45 +188,53 @@ export class Blob { export class Transaction { private constructor(); - get(documentRef: DocumentReference): Promise>; + get( + documentRef: DocumentReference + ): Promise>; - set( + set( documentRef: DocumentReference, - data: Partial, + data: Partial, options: SetOptions ): Transaction; - set(documentRef: DocumentReference, data: T): Transaction; + set( + documentRef: DocumentReference, + data: Partial + ): Transaction; - update(documentRef: DocumentReference, data: UpdateData): Transaction; - update( - documentRef: DocumentReference, + update( + documentRef: DocumentReference, + data: Partial + ): Transaction; + update( + documentRef: DocumentReference, field: string | FieldPath, value: any, ...moreFieldsAndValues: any[] ): Transaction; - delete(documentRef: DocumentReference): Transaction; + delete(documentRef: DocumentReference): Transaction; } export class WriteBatch { private constructor(); - set( + set( documentRef: DocumentReference, - data: Partial, + data: Partial, options: SetOptions ): WriteBatch; - set(documentRef: DocumentReference, data: T): WriteBatch; + set(documentRef: DocumentReference, data: UpdateData): WriteBatch; - update(documentRef: DocumentReference, data: UpdateData): WriteBatch; - update( - documentRef: DocumentReference, + update(documentRef: DocumentReference, data: UpdateData): WriteBatch; + update( + documentRef: DocumentReference, field: string | FieldPath, value: any, ...moreFieldsAndValues: any[] ): WriteBatch; - delete(documentRef: DocumentReference): WriteBatch; + delete(documentRef: DocumentReference): WriteBatch; commit(): Promise; } @@ -256,8 +264,8 @@ export class DocumentReference { isEqual(other: DocumentReference): boolean; - set(data: Partial, options: SetOptions): Promise; - set(data: T): Promise; + set(data: Partial, options: SetOptions): Promise; + set(data: Partial): Promise; update(data: UpdateData): Promise; update( @@ -295,8 +303,10 @@ export class DocumentReference { onCompletion?: () => void ): () => void; - withConverter(converter: null): DocumentReference; - withConverter(converter: FirestoreDataConverter): DocumentReference; + withConverter(converter: null): DocumentReference; + withConverter( + converter: FirestoreDataConverter + ): DocumentReference; } export interface SnapshotOptions { @@ -318,7 +328,7 @@ export class DocumentSnapshot { readonly id: string; readonly metadata: SnapshotMetadata; - data(options?: SnapshotOptions): T | undefined; + data(options?: SnapshotOptions): AppModelType | undefined; get(fieldPath: string | FieldPath, options?: SnapshotOptions): any; @@ -329,7 +339,7 @@ export class QueryDocumentSnapshot extends DocumentSnapshot { private constructor(); - data(options?: SnapshotOptions): T; + data(options?: SnapshotOptions): AppModelType; } export type OrderByDirection = 'desc' | 'asc'; @@ -420,7 +430,7 @@ export class QuerySnapshot { readonly size: number; readonly empty: boolean; - docChanges(options?: SnapshotListenOptions): Array>; + docChanges(options?: SnapshotListenOptions): Array>; forEach( callback: (result: QueryDocumentSnapshot) => void, @@ -439,18 +449,21 @@ export interface DocumentChange { readonly newIndex: number; } -export class CollectionReference extends Query { +export class CollectionReference< + AppModelType = DocumentData, + DbModelType extends DocumentData = DocumentData + > extends Query { private constructor(); readonly id: string; - readonly parent: DocumentReference| null; + readonly parent: DocumentReference | null; readonly path: string; doc(documentPath?: string): DocumentReference; - add(data: T): Promise>; + add(data: AppModelType): Promise>; - isEqual(other: CollectionReference): boolean; + isEqual(other: CollectionReference): boolean; withConverter(converter: null): CollectionReference; withConverter( From 5120dc82a60bc3ecc40455a5b9c88779c44352fc Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 5 Jul 2023 20:55:48 -0700 Subject: [PATCH 4/6] format --- packages/firebase/compat/index.d.ts | 2 +- packages/firestore-types/index.d.ts | 75 +++++++++++++++++++++-------- 2 files changed, 57 insertions(+), 20 deletions(-) diff --git a/packages/firebase/compat/index.d.ts b/packages/firebase/compat/index.d.ts index 589d0d5a95f..671ae3a3412 100644 --- a/packages/firebase/compat/index.d.ts +++ b/packages/firebase/compat/index.d.ts @@ -5997,7 +5997,7 @@ declare namespace firebase.database { */ toJSON(): Object | null; } - + interface IteratedDataSnapshot extends DataSnapshot { key: string; // key of the location of this snapshot. } diff --git a/packages/firestore-types/index.d.ts b/packages/firestore-types/index.d.ts index e310f5eda7c..d59b5c3d23b 100644 --- a/packages/firestore-types/index.d.ts +++ b/packages/firestore-types/index.d.ts @@ -52,11 +52,17 @@ export function setLogLevel(logLevel: LogLevel): void; export interface FirestoreDataConverter< AppModelType, DbModelType extends DocumentData = DocumentData - > { +> { toFirestore(modelObject: AppModelType): DocumentData; - toFirestore(modelObject: Partial, options: SetOptions): DocumentData; + toFirestore( + modelObject: Partial, + options: SetOptions + ): DocumentData; - fromFirestore(snapshot: QueryDocumentSnapshot, options: SnapshotOptions): AppModelType; + fromFirestore( + snapshot: QueryDocumentSnapshot, + options: SnapshotOptions + ): AppModelType; } export class FirebaseFirestore { @@ -213,7 +219,9 @@ export class Transaction { ...moreFieldsAndValues: any[] ): Transaction; - delete(documentRef: DocumentReference): Transaction; + delete( + documentRef: DocumentReference + ): Transaction; } export class WriteBatch { @@ -224,9 +232,15 @@ export class WriteBatch { data: Partial, options: SetOptions ): WriteBatch; - set(documentRef: DocumentReference, data: UpdateData): WriteBatch; + set( + documentRef: DocumentReference, + data: UpdateData + ): WriteBatch; - update(documentRef: DocumentReference, data: UpdateData): WriteBatch; + update( + documentRef: DocumentReference, + data: UpdateData + ): WriteBatch; update( documentRef: DocumentReference, field: string | FieldPath, @@ -234,7 +248,9 @@ export class WriteBatch { ...moreFieldsAndValues: any[] ): WriteBatch; - delete(documentRef: DocumentReference): WriteBatch; + delete( + documentRef: DocumentReference + ): WriteBatch; commit(): Promise; } @@ -276,7 +292,9 @@ export class DocumentReference { delete(): Promise; - get(options?: GetOptions): Promise>; + get( + options?: GetOptions + ): Promise>; onSnapshot(observer: { next?: (snapshot: DocumentSnapshot) => void; @@ -335,8 +353,10 @@ export class DocumentSnapshot { isEqual(other: DocumentSnapshot): boolean; } -export class QueryDocumentSnapshot - extends DocumentSnapshot { +export class QueryDocumentSnapshot< + AppModelType, + DbModelType +> extends DocumentSnapshot { private constructor(); data(options?: SnapshotOptions): AppModelType; @@ -356,7 +376,10 @@ export type WhereFilterOp = | 'array-contains-any' | 'not-in'; -export class Query{ +export class Query< + AppModelType = DocumentData, + DbModelType extends DocumentData = DocumentData +> { protected constructor(); readonly firestore: FirebaseFirestore; @@ -376,16 +399,24 @@ export class Query; - startAt(snapshot: DocumentSnapshot): Query; + startAt( + snapshot: DocumentSnapshot + ): Query; startAt(...fieldValues: any[]): Query; - startAfter(snapshot: DocumentSnapshot): Query; + startAfter( + snapshot: DocumentSnapshot + ): Query; startAfter(...fieldValues: any[]): Query; - endBefore(snapshot: DocumentSnapshot): Query; + endBefore( + snapshot: DocumentSnapshot + ): Query; endBefore(...fieldValues: any[]): Query; - endAt(snapshot: DocumentSnapshot): Query; + endAt( + snapshot: DocumentSnapshot + ): Query; endAt(...fieldValues: any[]): Query; isEqual(other: Query): boolean; @@ -430,10 +461,14 @@ export class QuerySnapshot { readonly size: number; readonly empty: boolean; - docChanges(options?: SnapshotListenOptions): Array>; + docChanges( + options?: SnapshotListenOptions + ): Array>; forEach( - callback: (result: QueryDocumentSnapshot) => void, + callback: ( + result: QueryDocumentSnapshot + ) => void, thisArg?: any ): void; @@ -452,7 +487,7 @@ export interface DocumentChange { export class CollectionReference< AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData - > extends Query { +> extends Query { private constructor(); readonly id: string; @@ -461,7 +496,9 @@ export class CollectionReference< doc(documentPath?: string): DocumentReference; - add(data: AppModelType): Promise>; + add( + data: AppModelType + ): Promise>; isEqual(other: CollectionReference): boolean; From e021a2cacd77731a1ebd240369587d1b40447a3f Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 5 Jul 2023 20:56:36 -0700 Subject: [PATCH 5/6] Add changeset --- .changeset/soft-grapes-occur.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/soft-grapes-occur.md diff --git a/.changeset/soft-grapes-occur.md b/.changeset/soft-grapes-occur.md new file mode 100644 index 00000000000..00433bdad5d --- /dev/null +++ b/.changeset/soft-grapes-occur.md @@ -0,0 +1,6 @@ +--- +'@firebase/firestore-types': patch +'firebase': patch +--- + +Fix typings for v10 From 67dd5b59af281afc58ea8073aab9838ae5a3d27c Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Thu, 6 Jul 2023 10:38:34 -0700 Subject: [PATCH 6/6] revert firestore changes --- .changeset/soft-grapes-occur.md | 1 - e2e/package.json | 2 +- e2e/yarn.lock | 452 +++++++++++++--------------- packages/firestore-types/index.d.ts | 198 +++++------- 4 files changed, 290 insertions(+), 363 deletions(-) diff --git a/.changeset/soft-grapes-occur.md b/.changeset/soft-grapes-occur.md index 00433bdad5d..92d50de1b1f 100644 --- a/.changeset/soft-grapes-occur.md +++ b/.changeset/soft-grapes-occur.md @@ -1,5 +1,4 @@ --- -'@firebase/firestore-types': patch 'firebase': patch --- diff --git a/e2e/package.json b/e2e/package.json index 782d4a4a931..fb9ce38e63a 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -18,7 +18,7 @@ "author": "", "license": "ISC", "dependencies": { - "firebase": "10.0.0-20230706020734" + "firebase": "9.19.1" }, "devDependencies": { "@babel/core": "7.17.10", diff --git a/e2e/yarn.lock b/e2e/yarn.lock index 1f024340dee..92b3439c7fa 100644 --- a/e2e/yarn.lock +++ b/e2e/yarn.lock @@ -1825,15 +1825,15 @@ resolved "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.3.tgz#90420f9f9c6d3987f176a19a7d8e764271a2f55d" integrity sha512-Fxt+AfXgjMoin2maPIYzFZnQjAXjAL0PHscM5pRTtatFqB+vZxAM9tLp2Optnuw3QOQC40jTNeGYFOMvyf7v9g== -"@firebase/analytics-compat@0.2.6": - version "0.2.6" - resolved "https://registry.npmjs.org/@firebase/analytics-compat/-/analytics-compat-0.2.6.tgz#50063978c42f13eb800e037e96ac4b17236841f4" - integrity sha512-4MqpVLFkGK7NJf/5wPEEP7ePBJatwYpyjgJ+wQHQGHfzaCDgntOnl9rL2vbVGGKCnRqWtZDIWhctB86UWXaX2Q== +"@firebase/analytics-compat@0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@firebase/analytics-compat/-/analytics-compat-0.2.3.tgz#ed60472dcd2bfa3f2fa7a5478b63bb7aece652ed" + integrity sha512-HmvbB4GMgh8AUlIDIo/OuFENLCGRXxMvtOueK+m8+DcfqBvG+mkii0Mi9ovo0TnMM62cy3oBYG7PHdjIQNLSLA== dependencies: - "@firebase/analytics" "0.10.0" + "@firebase/analytics" "0.9.3" "@firebase/analytics-types" "0.8.0" - "@firebase/component" "0.6.4" - "@firebase/util" "1.9.3" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/analytics-types@0.8.0": @@ -1841,58 +1841,58 @@ resolved "https://registry.npmjs.org/@firebase/analytics-types/-/analytics-types-0.8.0.tgz#551e744a29adbc07f557306530a2ec86add6d410" integrity sha512-iRP+QKI2+oz3UAh4nPEq14CsEjrjD6a5+fuypjScisAh9kXKFvdJOZJDwk7kikLvWVLGEs9+kIUS4LPQV7VZVw== -"@firebase/analytics@0.10.0": - version "0.10.0" - resolved "https://registry.npmjs.org/@firebase/analytics/-/analytics-0.10.0.tgz#9c6986acd573c6c6189ffb52d0fd63c775db26d7" - integrity sha512-Locv8gAqx0e+GX/0SI3dzmBY5e9kjVDtD+3zCFLJ0tH2hJwuCAiL+5WkHuxKj92rqQj/rvkBUCfA1ewlX2hehg== +"@firebase/analytics@0.9.3": + version "0.9.3" + resolved "https://registry.npmjs.org/@firebase/analytics/-/analytics-0.9.3.tgz#ae653a6c6bcd667efd1d3cc5207e3e621d737028" + integrity sha512-XdYHBi6RvHYVAHGyLxXX0uRPwZmGeqw1JuWS1rMEeRF/jvbxnrL81kcFAHZVRkEvG9bXAJgL2fX9wmDo3e622w== dependencies: - "@firebase/component" "0.6.4" - "@firebase/installations" "0.6.4" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/app-check-compat@0.3.7": - version "0.3.7" - resolved "https://registry.npmjs.org/@firebase/app-check-compat/-/app-check-compat-0.3.7.tgz#e150f61d653a0f2043a34dcb995616a717161839" - integrity sha512-cW682AxsyP1G+Z0/P7pO/WT2CzYlNxoNe5QejVarW2o5ZxeWSSPAiVEwpEpQR/bUlUmdeWThYTMvBWaopdBsqw== +"@firebase/app-check-compat@0.3.3": + version "0.3.3" + resolved "https://registry.npmjs.org/@firebase/app-check-compat/-/app-check-compat-0.3.3.tgz#a1d594ec722fa81f7e11977b407a187e8afdb19a" + integrity sha512-25AQ4W7WUL8OWas40GsABuNU622Dm1ojbfeZ03uKtLj5Af7FerJ25u7zkgm+11pc6rpr5v8E5oxEG9vmNRndEA== dependencies: - "@firebase/app-check" "0.8.0" + "@firebase/app-check" "0.6.3" "@firebase/app-check-types" "0.5.0" - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/app-check-interop-types@0.3.0": - version "0.3.0" - resolved "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.3.0.tgz#b27ea1397cb80427f729e4bbf3a562f2052955c4" - integrity sha512-xAxHPZPIgFXnI+vb4sbBjZcde7ZluzPPaSK7Lx3/nmuVk4TjZvnL8ONnkd4ERQKL8WePQySU+pRcWkh8rDf5Sg== +"@firebase/app-check-interop-types@0.2.0": + version "0.2.0" + resolved "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.2.0.tgz#9106270114ca4e7732457e8319333866a26285d8" + integrity sha512-+3PQIeX6/eiVK+x/yg8r6xTNR97fN7MahFDm+jiQmDjcyvSefoGuTTNQuuMScGyx3vYUBeZn+Cp9kC0yY/9uxQ== "@firebase/app-check-types@0.5.0": version "0.5.0" resolved "https://registry.npmjs.org/@firebase/app-check-types/-/app-check-types-0.5.0.tgz#1b02826213d7ce6a1cf773c329b46ea1c67064f4" integrity sha512-uwSUj32Mlubybw7tedRzR24RP8M8JUVR3NPiMk3/Z4bCmgEKTlQBwMXrehDAZ2wF+TsBq0SN1c6ema71U/JPyQ== -"@firebase/app-check@0.8.0": - version "0.8.0" - resolved "https://registry.npmjs.org/@firebase/app-check/-/app-check-0.8.0.tgz#b531ec40900af9c3cf1ec63de9094a0ddd733d6a" - integrity sha512-dRDnhkcaC2FspMiRK/Vbp+PfsOAEP6ZElGm9iGFJ9fDqHoPs0HOPn7dwpJ51lCFi1+2/7n5pRPGhqF/F03I97g== +"@firebase/app-check@0.6.3": + version "0.6.3" + resolved "https://registry.npmjs.org/@firebase/app-check/-/app-check-0.6.3.tgz#221060e5e0eac1e20ee724478b61e89ad6e8420a" + integrity sha512-T9f9ceFLs7x4D2T6whu5a6j7B3qPuYHiZHZxW6DkMh/FoMmRA4/q/HVyu01i9+LyJJx2Xdo6eCcj6ofs9YZjqA== dependencies: - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/app-compat@0.2.13": - version "0.2.13" - resolved "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.13.tgz#c42d392f45f2c9fef1631cb3ae36d53296aa6407" - integrity sha512-j6ANZaWjeVy5zg6X7uiqh6lM6o3n3LD1+/SJFNs9V781xyryyZWXe+tmnWNWPkP086QfJoNkWN9pMQRqSG4vMg== +"@firebase/app-compat@0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.3.tgz#a31c823d415c041591ee8c355776cd5bca7ef6e2" + integrity sha512-sX6rD1KFX6K2CuCnQvc9jZLOgAFZ+sv2jKKahIl4SbTM561D682B8n4Jtx/SgDrvcTVTdb05g4NhZOws9hxYxA== dependencies: - "@firebase/app" "0.9.13" - "@firebase/component" "0.6.4" + "@firebase/app" "0.9.3" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/app-types@0.9.0": @@ -1900,26 +1900,26 @@ resolved "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.0.tgz#35b5c568341e9e263b29b3d2ba0e9cfc9ec7f01e" integrity sha512-AeweANOIo0Mb8GiYm3xhTEBVCmPwTYAu9Hcd2qSkLuga/6+j9b1Jskl5bpiSQWy9eJ/j5pavxj6eYogmnuzm+Q== -"@firebase/app@0.9.13": - version "0.9.13" - resolved "https://registry.npmjs.org/@firebase/app/-/app-0.9.13.tgz#b1d3ad63d52f235a0d70a9b4261cabb3a24690d7" - integrity sha512-GfiI1JxJ7ecluEmDjPzseRXk/PX31hS7+tjgBopL7XjB2hLUdR+0FTMXy2Q3/hXezypDvU6or7gVFizDESrkXw== +"@firebase/app@0.9.3": + version "0.9.3" + resolved "https://registry.npmjs.org/@firebase/app/-/app-0.9.3.tgz#6a9c9b2544fa9a50ad8f405355896c54339c228b" + integrity sha512-G79JUceVDaHRZ4WkA11GyVldVXhdyRJRwWVQFFvAAVfQJLvy2TA6lQjeUn28F6FmeUWxDGwPC30bxCRWq7Op8Q== dependencies: - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" - idb "7.1.1" + "@firebase/util" "1.9.2" + idb "7.0.1" tslib "^2.1.0" -"@firebase/auth-compat@0.4.3-20230706020734": - version "0.4.3-20230706020734" - resolved "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.4.3-20230706020734.tgz#a4b8b4e6771b847ad172612a7026652377cbed67" - integrity sha512-/fpDjTyuZMPvum8yik2LY8e5AKmMTTVjYYPKFTHlJXQCTxXHLrGYU6cSZ8oDXuvCxbZvpx/DHdh8+BgSUx4ubA== +"@firebase/auth-compat@0.3.3": + version "0.3.3" + resolved "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.3.3.tgz#e52f654e3f14b81cecb2fe252e564778fbba0a47" + integrity sha512-9asUuGtkzUVELH3LYXdiom1nVVV9bqEPqzHohanoofHL/oVTNcHZ4AQ5CXjNATfb6c1WH32U+nEuPiYg26UUIw== dependencies: - "@firebase/auth" "1.0.0-20230706020734" + "@firebase/auth" "0.21.3" "@firebase/auth-types" "0.12.0" - "@firebase/component" "0.6.4" - "@firebase/util" "1.9.3" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" @@ -1933,67 +1933,66 @@ resolved "https://registry.npmjs.org/@firebase/auth-types/-/auth-types-0.12.0.tgz#f28e1b68ac3b208ad02a15854c585be6da3e8e79" integrity sha512-pPwaZt+SPOshK8xNoiQlK5XIrS97kFYc3Rc7xmy373QsOJ9MmqXxLaYssP5Kcds4wd2qK//amx/c+A8O2fVeZA== -"@firebase/auth@1.0.0-20230706020734": - version "1.0.0-20230706020734" - resolved "https://registry.npmjs.org/@firebase/auth/-/auth-1.0.0-20230706020734.tgz#9f5bd62a3d60ccdcfa388179f6e74271529093f4" - integrity sha512-oofvfZjFT/rnm7GwN5JNvxWP07YU2CWpy+bTQ8C33qVq5Ip/9gYkcgytPwOwZZjatuAgRnp5lq5hEbwMIN/THA== +"@firebase/auth@0.21.3": + version "0.21.3" + resolved "https://registry.npmjs.org/@firebase/auth/-/auth-0.21.3.tgz#277a3bf4b09db1b5dd471970cecd844d1835dcbf" + integrity sha512-HPbcwgArLBVTowFcn4qaQr6LCx7BidI9yrQ5MRbQNv4PsgK/3UGpzCYaNPPbvgr9fe+0jNdJO+uC0+dk4xIzCQ== dependencies: - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" - "@react-native-async-storage/async-storage" "1.17.12" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/component@0.6.4": - version "0.6.4" - resolved "https://registry.npmjs.org/@firebase/component/-/component-0.6.4.tgz#8981a6818bd730a7554aa5e0516ffc9b1ae3f33d" - integrity sha512-rLMyrXuO9jcAUCaQXCMjCMUsWrba5fzHlNK24xz5j2W6A/SRmK8mZJ/hn7V0fViLbxC0lPMtrK1eYzk6Fg03jA== +"@firebase/component@0.6.3": + version "0.6.3" + resolved "https://registry.npmjs.org/@firebase/component/-/component-0.6.3.tgz#2baea3fa37861eef314a612eba194b0ff7c7ac11" + integrity sha512-rnhq5SOsB5nuJphZF50iwqnBiuuyg9kdnlUn1rBrKfu7/cUVJZF5IG1cWrL0rXXyiZW1WBI/J2pmTvVO8dStGQ== dependencies: - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/database-compat@1.0.0-20230706020734": - version "1.0.0-20230706020734" - resolved "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-1.0.0-20230706020734.tgz#7c212a8ab20959e185b11ca9a4ca39e1548f0473" - integrity sha512-ZpgLuzZHMpOEzv1qPZCA7ZBkdPLbaArdnVT8apGnNBgFD0I5cKBbMvCVSQGZK433vaup4aC4Wgp3URlCXqp/pA== +"@firebase/database-compat@0.3.3": + version "0.3.3" + resolved "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-0.3.3.tgz#4668e32527f57c1dde6cb03f5fde81eb04503ad4" + integrity sha512-r+L9jTbvsnb7sD+xz6UKU39DgBWqB2pyjzPNdBeriGC9Ssa2MAZe0bIqjCQg51RRXYc/aa/zK1Q2/4uesZeVgQ== dependencies: - "@firebase/component" "0.6.4" - "@firebase/database" "1.0.0-20230706020734" - "@firebase/database-types" "1.0.0-20230706020734" + "@firebase/component" "0.6.3" + "@firebase/database" "0.14.3" + "@firebase/database-types" "0.10.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/database-types@1.0.0-20230706020734": - version "1.0.0-20230706020734" - resolved "https://registry.npmjs.org/@firebase/database-types/-/database-types-1.0.0-20230706020734.tgz#d79cb842cec6f790377a1e04536d504a82baff58" - integrity sha512-fUZaomvpEVKtDGcLbobkE40yb/xk1dTr/0t7v+LOd2ZwiBB67bvsYZHBFjwpGVJN9BfeLcGSPCugpM468gdWgA== +"@firebase/database-types@0.10.3": + version "0.10.3" + resolved "https://registry.npmjs.org/@firebase/database-types/-/database-types-0.10.3.tgz#f057e150b8c2aff0c623162abef139ff5df9bfd2" + integrity sha512-Hu34CDhHYZsd2eielr0jeaWrTJk8Hz0nd7WsnYDnXtQX4i49ppgPesUzPdXVBdIBLJmT0ZZRvT7qWHknkOT+zg== dependencies: "@firebase/app-types" "0.9.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" -"@firebase/database@1.0.0-20230706020734": - version "1.0.0-20230706020734" - resolved "https://registry.npmjs.org/@firebase/database/-/database-1.0.0-20230706020734.tgz#a508e18a74d471bd2351e70566d45c9c6909890c" - integrity sha512-wzYnNeDusXhUiPaQh84ziP4XPW6xKhlBLg+0z0L51NY+da0nuOw607PFd9pdbHGLl0PbD49w0RpVRZXeWlIFMw== +"@firebase/database@0.14.3": + version "0.14.3" + resolved "https://registry.npmjs.org/@firebase/database/-/database-0.14.3.tgz#0ddd92e5eeef2dbebefd55ce78b39472a57dd5d3" + integrity sha512-J76W6N7JiVkLaAtPyjaGRkrsIu9pi6iZikuGGtGjqvV19vkn7oiL4Hbo5uTYCMd4waTUWoL9iI08eX184W+5GQ== dependencies: "@firebase/auth-interop-types" "0.2.1" - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" faye-websocket "0.11.4" tslib "^2.1.0" -"@firebase/firestore-compat@0.3.13-20230706020734": - version "0.3.13-20230706020734" - resolved "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.3.13-20230706020734.tgz#c110c0a350f212b32821b2e50f8e6201e449a2e8" - integrity sha512-je52GG6TTcRdo4PylBdouicC+LQOKNrUA6kwEfUoCtmGEFDdOtvic9zCqQXI+08+J1tI2hlRvmjenJ1d5SeRyg== +"@firebase/firestore-compat@0.3.3": + version "0.3.3" + resolved "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.3.3.tgz#2fedc13e6242aa98a78cfb710242721d9822c1da" + integrity sha512-fMTsSC0s2cF5w2+JoB0dWD/o4kXtLrUCPGnZPuz4S0bqTN2t0vHr3gdAsQLtnadgwB78ACtinYmf4Udwx7TzDg== dependencies: - "@firebase/component" "0.6.4" - "@firebase/firestore" "4.0.0-20230706020734" + "@firebase/component" "0.6.3" + "@firebase/firestore" "3.8.3" "@firebase/firestore-types" "2.5.1" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/firestore-types@2.5.1": @@ -2001,29 +2000,29 @@ resolved "https://registry.npmjs.org/@firebase/firestore-types/-/firestore-types-2.5.1.tgz#464b2ee057956599ca34de50eae957c30fdbabb7" integrity sha512-xG0CA6EMfYo8YeUxC8FeDzf6W3FX1cLlcAGBYV6Cku12sZRI81oWcu61RSKM66K6kUENP+78Qm8mvroBcm1whw== -"@firebase/firestore@4.0.0-20230706020734": - version "4.0.0-20230706020734" - resolved "https://registry.npmjs.org/@firebase/firestore/-/firestore-4.0.0-20230706020734.tgz#f01afef786c174dea8c5fb77faa061803b34f2aa" - integrity sha512-8o8Rvf6gKHueM4Iah8Tfs7cHecahIOEGCLFLZviIsREnwFviBsM4zBSo5Y3difYHk8R//Q9v63qT7sspk7KA6g== +"@firebase/firestore@3.8.3": + version "3.8.3" + resolved "https://registry.npmjs.org/@firebase/firestore/-/firestore-3.8.3.tgz#8305113b9535747f982b585b0dd72e85122b5b89" + integrity sha512-4xR3Mqj95bxHg3hZnz0O+LQrHkjq+siT2y+B9da6u68qJ8bzzT42JaFgd1vifhbBpVbBzpFaS2RuCq2E+kGv9g== dependencies: - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" - "@firebase/webchannel-wrapper" "0.10.1" + "@firebase/util" "1.9.2" + "@firebase/webchannel-wrapper" "0.9.0" "@grpc/grpc-js" "~1.7.0" "@grpc/proto-loader" "^0.6.13" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/functions-compat@0.3.5": - version "0.3.5" - resolved "https://registry.npmjs.org/@firebase/functions-compat/-/functions-compat-0.3.5.tgz#7a532d3a9764c6d5fbc1ec5541a989a704326647" - integrity sha512-uD4jwgwVqdWf6uc3NRKF8cSZ0JwGqSlyhPgackyUPe+GAtnERpS4+Vr66g0b3Gge0ezG4iyHo/EXW/Hjx7QhHw== +"@firebase/functions-compat@0.3.3": + version "0.3.3" + resolved "https://registry.npmjs.org/@firebase/functions-compat/-/functions-compat-0.3.3.tgz#530c30b4dfea14e71657f780d2c281e16209aed7" + integrity sha512-UIAJ2gzNq0p/61cXqkpi9DnlQt0hdlGqgmL5an7KuJth2Iv5uGpKg/+OapAZxPuiUNZgTEyZDB7kNBHvnxWq5w== dependencies: - "@firebase/component" "0.6.4" - "@firebase/functions" "0.10.0" + "@firebase/component" "0.6.3" + "@firebase/functions" "0.9.3" "@firebase/functions-types" "0.6.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/functions-types@0.6.0": @@ -2031,28 +2030,28 @@ resolved "https://registry.npmjs.org/@firebase/functions-types/-/functions-types-0.6.0.tgz#ccd7000dc6fc668f5acb4e6a6a042a877a555ef2" integrity sha512-hfEw5VJtgWXIRf92ImLkgENqpL6IWpYaXVYiRkFY1jJ9+6tIhWM7IzzwbevwIIud/jaxKVdRzD7QBWfPmkwCYw== -"@firebase/functions@0.10.0": - version "0.10.0" - resolved "https://registry.npmjs.org/@firebase/functions/-/functions-0.10.0.tgz#c630ddf12cdf941c25bc8d554e30c3226cd560f6" - integrity sha512-2U+fMNxTYhtwSpkkR6WbBcuNMOVaI7MaH3cZ6UAeNfj7AgEwHwMIFLPpC13YNZhno219F0lfxzTAA0N62ndWzA== +"@firebase/functions@0.9.3": + version "0.9.3" + resolved "https://registry.npmjs.org/@firebase/functions/-/functions-0.9.3.tgz#9ef33efcd38b0235e84ae472d9b51597efe3f871" + integrity sha512-tPJgYY2ROQSYuzvgxZRoHeDj+Ic07/bWHwaftgTriawtupmFOkt5iikuhJSJUhaOpFh9TB335OvCXJw1N+BIlQ== dependencies: - "@firebase/app-check-interop-types" "0.3.0" + "@firebase/app-check-interop-types" "0.2.0" "@firebase/auth-interop-types" "0.2.1" - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/messaging-interop-types" "0.2.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/installations-compat@0.2.4": - version "0.2.4" - resolved "https://registry.npmjs.org/@firebase/installations-compat/-/installations-compat-0.2.4.tgz#b5557c897b4cd3635a59887a8bf69c3731aaa952" - integrity sha512-LI9dYjp0aT9Njkn9U4JRrDqQ6KXeAmFbRC0E7jI7+hxl5YmRWysq5qgQl22hcWpTk+cm3es66d/apoDU/A9n6Q== +"@firebase/installations-compat@0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@firebase/installations-compat/-/installations-compat-0.2.3.tgz#42b05f4e5204c354e0fa059378402bd47635e5bf" + integrity sha512-K9rKM/ym06lkpaKz7bMLxzHK/HEk65XfLJBV+dJkIuWeO0EqqC9VFGrpWAo0QmgC4BqbU58T6VBbzoJjb0gaFw== dependencies: - "@firebase/component" "0.6.4" - "@firebase/installations" "0.6.4" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/installations-types" "0.5.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/installations-types@0.5.0": @@ -2060,13 +2059,13 @@ resolved "https://registry.npmjs.org/@firebase/installations-types/-/installations-types-0.5.0.tgz#2adad64755cd33648519b573ec7ec30f21fb5354" integrity sha512-9DP+RGfzoI2jH7gY4SlzqvZ+hr7gYzPODrbzVD82Y12kScZ6ZpRg/i3j6rleto8vTFC8n6Len4560FnV1w2IRg== -"@firebase/installations@0.6.4": - version "0.6.4" - resolved "https://registry.npmjs.org/@firebase/installations/-/installations-0.6.4.tgz#20382e33e6062ac5eff4bede8e468ed4c367609e" - integrity sha512-u5y88rtsp7NYkCHC3ElbFBrPtieUybZluXyzl7+4BsIz4sqb4vSAuwHEUgCgCeaQhvsnxDEU6icly8U9zsJigA== +"@firebase/installations@0.6.3": + version "0.6.3" + resolved "https://registry.npmjs.org/@firebase/installations/-/installations-0.6.3.tgz#b833cf12ac63666246a57100dbdd669fb76a23aa" + integrity sha512-20JFWm+tweNoRjRbz8/Y4I7O5pUJGZsFKCkLl1qNxfNYECSfrZUuozIDJDZC/MeVn5+kB9CwjThDlgQEPrfLdg== dependencies: - "@firebase/component" "0.6.4" - "@firebase/util" "1.9.3" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" idb "7.0.1" tslib "^2.1.0" @@ -2077,14 +2076,14 @@ dependencies: tslib "^2.1.0" -"@firebase/messaging-compat@0.2.4": - version "0.2.4" - resolved "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.4.tgz#323ca48deef77065b4fcda3cfd662c4337dffcfd" - integrity sha512-lyFjeUhIsPRYDPNIkYX1LcZMpoVbBWXX4rPl7c/rqc7G+EUea7IEtSt4MxTvh6fDfPuzLn7+FZADfscC+tNMfg== +"@firebase/messaging-compat@0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.3.tgz#2d222e4078643e49a708b61b6d0e51edc2bc73bd" + integrity sha512-MmuuohXV2YRzIoJmDngI5qqO/cF2q7SdAaw7k4r61W3ReJy7x4/rtqrIvwNVhM6X/X8NFGBbsYKsCfRHWjFdkg== dependencies: - "@firebase/component" "0.6.4" - "@firebase/messaging" "0.12.4" - "@firebase/util" "1.9.3" + "@firebase/component" "0.6.3" + "@firebase/messaging" "0.12.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/messaging-interop-types@0.2.0": @@ -2092,28 +2091,28 @@ resolved "https://registry.npmjs.org/@firebase/messaging-interop-types/-/messaging-interop-types-0.2.0.tgz#6056f8904a696bf0f7fdcf5f2ca8f008e8f6b064" integrity sha512-ujA8dcRuVeBixGR9CtegfpU4YmZf3Lt7QYkcj693FFannwNuZgfAYaTmbJ40dtjB81SAu6tbFPL9YLNT15KmOQ== -"@firebase/messaging@0.12.4": - version "0.12.4" - resolved "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.12.4.tgz#ccb49df5ab97d5650c9cf5b8c77ddc34daafcfe0" - integrity sha512-6JLZct6zUaex4g7HI3QbzeUrg9xcnmDAPTWpkoMpd/GoSVWH98zDoWXMGrcvHeCAIsLpFMe4MPoZkJbrPhaASw== +"@firebase/messaging@0.12.3": + version "0.12.3" + resolved "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.12.3.tgz#3fd521e31deb9b81ec6316062deb1dcc8198d038" + integrity sha512-a3ZKcGDiV2sKmQDB56PpgL1yjFxXCtff2+v1grnAZZ4GnfNQ74t2EHCbmgY7xRX7ThzMqug54oxhuk4ur0MIoA== dependencies: - "@firebase/component" "0.6.4" - "@firebase/installations" "0.6.4" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/messaging-interop-types" "0.2.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" idb "7.0.1" tslib "^2.1.0" -"@firebase/performance-compat@0.2.4": - version "0.2.4" - resolved "https://registry.npmjs.org/@firebase/performance-compat/-/performance-compat-0.2.4.tgz#95cbf32057b5d9f0c75d804bc50e6ed3ba486274" - integrity sha512-nnHUb8uP9G8islzcld/k6Bg5RhX62VpbAb/Anj7IXs/hp32Eb2LqFPZK4sy3pKkBUO5wcrlRWQa6wKOxqlUqsg== +"@firebase/performance-compat@0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@firebase/performance-compat/-/performance-compat-0.2.3.tgz#f3939bedc2017a95772fde64a72e97fe4b184268" + integrity sha512-I3rqZsIhauXn4iApfj1ttKQdlti/r8OZBG4YK10vxKSdhAzTIDWDKEsdoCXvvKLwplcMv36sM3WPAPGQLqY5MQ== dependencies: - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/performance" "0.6.4" + "@firebase/performance" "0.6.3" "@firebase/performance-types" "0.2.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/performance-types@0.2.0": @@ -2121,27 +2120,27 @@ resolved "https://registry.npmjs.org/@firebase/performance-types/-/performance-types-0.2.0.tgz#400685f7a3455970817136d9b48ce07a4b9562ff" integrity sha512-kYrbr8e/CYr1KLrLYZZt2noNnf+pRwDq2KK9Au9jHrBMnb0/C9X9yWSXmZkFt4UIdsQknBq8uBB7fsybZdOBTA== -"@firebase/performance@0.6.4": - version "0.6.4" - resolved "https://registry.npmjs.org/@firebase/performance/-/performance-0.6.4.tgz#0ad766bfcfab4f386f4fe0bef43bbcf505015069" - integrity sha512-HfTn/bd8mfy/61vEqaBelNiNnvAbUtME2S25A67Nb34zVuCSCRIX4SseXY6zBnOFj3oLisaEqhVcJmVPAej67g== +"@firebase/performance@0.6.3": + version "0.6.3" + resolved "https://registry.npmjs.org/@firebase/performance/-/performance-0.6.3.tgz#663c468dc4d62b6e211938377e21a01854803646" + integrity sha512-NQmQN6Ete7i9jz1mzULJZEGvsOmwwdUy6vpqnhUxSFMYPnlBKjX+yypCUUJDDN5zff5+kfwSD1qCyUAaS0xWUA== dependencies: - "@firebase/component" "0.6.4" - "@firebase/installations" "0.6.4" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/remote-config-compat@0.2.4": - version "0.2.4" - resolved "https://registry.npmjs.org/@firebase/remote-config-compat/-/remote-config-compat-0.2.4.tgz#1f494c81a6c9560b1f9ca1b4fbd4bbbe47cf4776" - integrity sha512-FKiki53jZirrDFkBHglB3C07j5wBpitAaj8kLME6g8Mx+aq7u9P7qfmuSRytiOItADhWUj7O1JIv7n9q87SuwA== +"@firebase/remote-config-compat@0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@firebase/remote-config-compat/-/remote-config-compat-0.2.3.tgz#b0c0ef9978186bc58b262a39b9a41ec1bf819df3" + integrity sha512-w/ZL03YgYaXq03xIRyJ5oPhXZi6iDsY/v0J9Y7I7SqxCYytEnHVrL9nvBqd9R94y5LRAVNPCLokJeeizaUz4VQ== dependencies: - "@firebase/component" "0.6.4" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/remote-config" "0.4.4" + "@firebase/remote-config" "0.4.3" "@firebase/remote-config-types" "0.3.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/remote-config-types@0.3.0": @@ -2149,26 +2148,26 @@ resolved "https://registry.npmjs.org/@firebase/remote-config-types/-/remote-config-types-0.3.0.tgz#689900dcdb3e5c059e8499b29db393e4e51314b4" integrity sha512-RtEH4vdcbXZuZWRZbIRmQVBNsE7VDQpet2qFvq6vwKLBIQRQR5Kh58M4ok3A3US8Sr3rubYnaGqZSurCwI8uMA== -"@firebase/remote-config@0.4.4": - version "0.4.4" - resolved "https://registry.npmjs.org/@firebase/remote-config/-/remote-config-0.4.4.tgz#6a496117054de58744bc9f382d2a6d1e14060c65" - integrity sha512-x1ioTHGX8ZwDSTOVp8PBLv2/wfwKzb4pxi0gFezS5GCJwbLlloUH4YYZHHS83IPxnua8b6l0IXUaWd0RgbWwzQ== +"@firebase/remote-config@0.4.3": + version "0.4.3" + resolved "https://registry.npmjs.org/@firebase/remote-config/-/remote-config-0.4.3.tgz#85c4934d093a4c7b8a336af70ada83e936347a2b" + integrity sha512-Q6d4jBWZoNt6SYq87bjtDGUHFkKwAmGnNjWyRjl14AZqE1ilgd9NZHmutharlYJ3LvxMsid80HdK5SgGEpIPfg== dependencies: - "@firebase/component" "0.6.4" - "@firebase/installations" "0.6.4" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/storage-compat@0.3.2": - version "0.3.2" - resolved "https://registry.npmjs.org/@firebase/storage-compat/-/storage-compat-0.3.2.tgz#51a97170fd652a516f729f82b97af369e5a2f8d7" - integrity sha512-wvsXlLa9DVOMQJckbDNhXKKxRNNewyUhhbXev3t8kSgoCotd1v3MmqhKKz93ePhDnhHnDs7bYHy+Qa8dRY6BXw== +"@firebase/storage-compat@0.3.1": + version "0.3.1" + resolved "https://registry.npmjs.org/@firebase/storage-compat/-/storage-compat-0.3.1.tgz#b8536c3a435f8ce5eb07796ca10fda16896a9bae" + integrity sha512-6HaTvWsT5Yy3j4UpCZpMcFUYEkJ2XYWukdyTl02u6VjSBRLvkhOXPzEfMvgVWqhnF/rYVfPdjrZ904wk5OxtmQ== dependencies: - "@firebase/component" "0.6.4" - "@firebase/storage" "0.11.2" + "@firebase/component" "0.6.3" + "@firebase/storage" "0.11.1" "@firebase/storage-types" "0.8.0" - "@firebase/util" "1.9.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/storage-types@0.8.0": @@ -2176,27 +2175,27 @@ resolved "https://registry.npmjs.org/@firebase/storage-types/-/storage-types-0.8.0.tgz#f1e40a5361d59240b6e84fac7fbbbb622bfaf707" integrity sha512-isRHcGrTs9kITJC0AVehHfpraWFui39MPaU7Eo8QfWlqW7YPymBmRgjDrlOgFdURh6Cdeg07zmkLP5tzTKRSpg== -"@firebase/storage@0.11.2": - version "0.11.2" - resolved "https://registry.npmjs.org/@firebase/storage/-/storage-0.11.2.tgz#c5e0316543fe1c4026b8e3910f85ad73f5b77571" - integrity sha512-CtvoFaBI4hGXlXbaCHf8humajkbXhs39Nbh6MbNxtwJiCqxPy9iH3D3CCfXAvP0QvAAwmJUTK3+z9a++Kc4nkA== +"@firebase/storage@0.11.1": + version "0.11.1" + resolved "https://registry.npmjs.org/@firebase/storage/-/storage-0.11.1.tgz#602ddb7bce77077800a46bcdfa76f36d7a265c51" + integrity sha512-Xv8EG2j52ugF2xayBz26U9J0VBXHXPMVxSN+ph3R3BSoHxvMLaPu+qUYKHavSt+zbcgPH2GyBhrCdJK6SaDFPA== dependencies: - "@firebase/component" "0.6.4" - "@firebase/util" "1.9.3" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/util@1.9.3": - version "1.9.3" - resolved "https://registry.npmjs.org/@firebase/util/-/util-1.9.3.tgz#45458dd5cd02d90e55c656e84adf6f3decf4b7ed" - integrity sha512-DY02CRhOZwpzO36fHpuVysz6JZrscPiBXD0fXp6qSrL9oNOx5KWICKdR95C0lSITzxp0TZosVyHqzatE8JbcjA== +"@firebase/util@1.9.2": + version "1.9.2" + resolved "https://registry.npmjs.org/@firebase/util/-/util-1.9.2.tgz#f5e9e393c5bae3547b9c823ee12076be1e23b1e2" + integrity sha512-9l0uMGPGw3GsoD5khjMmYCCcMq/OR/OOSViiWMN+s2Q0pxM+fYzrii1H+r8qC/uoMjSVXomjLZt0vZIyryCqtQ== dependencies: tslib "^2.1.0" -"@firebase/webchannel-wrapper@0.10.1": - version "0.10.1" - resolved "https://registry.npmjs.org/@firebase/webchannel-wrapper/-/webchannel-wrapper-0.10.1.tgz#60bb2aaf129f9e00621f8d698722ddba6ee1f8ac" - integrity sha512-Dq5rYfEpdeel0bLVN+nfD1VWmzCkK+pJbSjIawGE+RY4+NIJqhbUDDQjvV0NUK84fMfwxvtFoCtEe70HfZjFcw== +"@firebase/webchannel-wrapper@0.9.0": + version "0.9.0" + resolved "https://registry.npmjs.org/@firebase/webchannel-wrapper/-/webchannel-wrapper-0.9.0.tgz#9340bce56560a8bdba1d25d6281d4bfc397450dc" + integrity sha512-BpiZLBWdLFw+qFel9p3Zs1jD6QmH7Ii4aTDu6+vx8ShdidChZUXqDhYJly4ZjSgQh54miXbBgBrk0S+jTIh/Qg== "@grpc/grpc-js@~1.7.0": version "1.7.3" @@ -2336,13 +2335,6 @@ resolved "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= -"@react-native-async-storage/async-storage@1.17.12": - version "1.17.12" - resolved "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.17.12.tgz#a39e4df5b06795ce49b2ca5b7ca9b8faadf8e621" - integrity sha512-BXg4OxFdjPTRt+8MvN6jz4muq0/2zII3s7HeT/11e4Zeh3WCgk/BleLzUcDfVqF3OzFHUqEkSrb76d6Ndjd/Nw== - dependencies: - merge-options "^3.0.4" - "@socket.io/base64-arraybuffer@~1.0.2": version "1.0.2" resolved "https://registry.npmjs.org/@socket.io/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#568d9beae00b0d835f4f8c53fd55714986492e61" @@ -4027,37 +4019,37 @@ find-up@^4.0.0: locate-path "^5.0.0" path-exists "^4.0.0" -firebase@10.0.0-20230706020734: - version "10.0.0-20230706020734" - resolved "https://registry.npmjs.org/firebase/-/firebase-10.0.0-20230706020734.tgz#89dec70e055af3e6930b060c31c9296aab506f90" - integrity sha512-PdF/O4WZzlOabfkSPpqhcWMTNPKFtYVDtE/Dxgvet002JFI5FmWTBTQEEhofH8+aOfM3iU/TwhSlZDqz0HEQuA== - dependencies: - "@firebase/analytics" "0.10.0" - "@firebase/analytics-compat" "0.2.6" - "@firebase/app" "0.9.13" - "@firebase/app-check" "0.8.0" - "@firebase/app-check-compat" "0.3.7" - "@firebase/app-compat" "0.2.13" +firebase@9.17.1: + version "9.17.1" + resolved "https://registry.npmjs.org/firebase/-/firebase-9.17.1.tgz#91c56fe9d9bf5ed1c405030e4fe8133c6069fd40" + integrity sha512-MSZaTRaaRLgDFLqoEnoPYK8zkLwQNvYeLZ3YSKdcQxG8hDifNO22ywS1cSA1ZCGHlQeOsDtfDwBejKcANf/RQw== + dependencies: + "@firebase/analytics" "0.9.3" + "@firebase/analytics-compat" "0.2.3" + "@firebase/app" "0.9.3" + "@firebase/app-check" "0.6.3" + "@firebase/app-check-compat" "0.3.3" + "@firebase/app-compat" "0.2.3" "@firebase/app-types" "0.9.0" - "@firebase/auth" "1.0.0-20230706020734" - "@firebase/auth-compat" "0.4.3-20230706020734" - "@firebase/database" "1.0.0-20230706020734" - "@firebase/database-compat" "1.0.0-20230706020734" - "@firebase/firestore" "4.0.0-20230706020734" - "@firebase/firestore-compat" "0.3.13-20230706020734" - "@firebase/functions" "0.10.0" - "@firebase/functions-compat" "0.3.5" - "@firebase/installations" "0.6.4" - "@firebase/installations-compat" "0.2.4" - "@firebase/messaging" "0.12.4" - "@firebase/messaging-compat" "0.2.4" - "@firebase/performance" "0.6.4" - "@firebase/performance-compat" "0.2.4" - "@firebase/remote-config" "0.4.4" - "@firebase/remote-config-compat" "0.2.4" - "@firebase/storage" "0.11.2" - "@firebase/storage-compat" "0.3.2" - "@firebase/util" "1.9.3" + "@firebase/auth" "0.21.3" + "@firebase/auth-compat" "0.3.3" + "@firebase/database" "0.14.3" + "@firebase/database-compat" "0.3.3" + "@firebase/firestore" "3.8.3" + "@firebase/firestore-compat" "0.3.3" + "@firebase/functions" "0.9.3" + "@firebase/functions-compat" "0.3.3" + "@firebase/installations" "0.6.3" + "@firebase/installations-compat" "0.2.3" + "@firebase/messaging" "0.12.3" + "@firebase/messaging-compat" "0.2.3" + "@firebase/performance" "0.6.3" + "@firebase/performance-compat" "0.2.3" + "@firebase/remote-config" "0.4.3" + "@firebase/remote-config-compat" "0.2.3" + "@firebase/storage" "0.11.1" + "@firebase/storage-compat" "0.3.1" + "@firebase/util" "1.9.2" flat@^5.0.2: version "5.0.2" @@ -4389,11 +4381,6 @@ idb@7.0.1: resolved "https://registry.npmjs.org/idb/-/idb-7.0.1.tgz#d2875b3a2f205d854ee307f6d196f246fea590a7" integrity sha512-UUxlE7vGWK5RfB/fDwEGgRf84DY/ieqNha6msMV99UsEMQhJ1RwbCd8AYBj3QMgnE3VZnfQvm4oKVCJTYlqIgg== -idb@7.1.1: - version "7.1.1" - resolved "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz#d910ded866d32c7ced9befc5bfdf36f572ced72b" - integrity sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ== - ieee754@^1.1.13: version "1.2.1" resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" @@ -4997,13 +4984,6 @@ merge-descriptors@1.0.1: resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= -merge-options@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/merge-options/-/merge-options-3.0.4.tgz#84709c2aa2a4b24c1981f66c179fe5565cc6dbb7" - integrity sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ== - dependencies: - is-plain-obj "^2.1.0" - merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" diff --git a/packages/firestore-types/index.d.ts b/packages/firestore-types/index.d.ts index d59b5c3d23b..d198fd78866 100644 --- a/packages/firestore-types/index.d.ts +++ b/packages/firestore-types/index.d.ts @@ -49,20 +49,11 @@ export type LogLevel = export function setLogLevel(logLevel: LogLevel): void; -export interface FirestoreDataConverter< - AppModelType, - DbModelType extends DocumentData = DocumentData -> { - toFirestore(modelObject: AppModelType): DocumentData; - toFirestore( - modelObject: Partial, - options: SetOptions - ): DocumentData; +export interface FirestoreDataConverter { + toFirestore(modelObject: T): DocumentData; + toFirestore(modelObject: Partial, options: SetOptions): DocumentData; - fromFirestore( - snapshot: QueryDocumentSnapshot, - options: SnapshotOptions - ): AppModelType; + fromFirestore(snapshot: QueryDocumentSnapshot, options: SnapshotOptions): T; } export class FirebaseFirestore { @@ -82,7 +73,7 @@ export class FirebaseFirestore { collection(collectionPath: string): CollectionReference; - doc(documentPath: string): DocumentReference; + doc(documentPath: string): DocumentReference; collectionGroup(collectionId: string): Query; @@ -194,63 +185,45 @@ export class Blob { export class Transaction { private constructor(); - get( - documentRef: DocumentReference - ): Promise>; + get(documentRef: DocumentReference): Promise>; - set( - documentRef: DocumentReference, - data: Partial, + set( + documentRef: DocumentReference, + data: Partial, options: SetOptions ): Transaction; - set( - documentRef: DocumentReference, - data: Partial - ): Transaction; + set(documentRef: DocumentReference, data: T): Transaction; - update( - documentRef: DocumentReference, - data: Partial - ): Transaction; - update( - documentRef: DocumentReference, + update(documentRef: DocumentReference, data: UpdateData): Transaction; + update( + documentRef: DocumentReference, field: string | FieldPath, value: any, ...moreFieldsAndValues: any[] ): Transaction; - delete( - documentRef: DocumentReference - ): Transaction; + delete(documentRef: DocumentReference): Transaction; } export class WriteBatch { private constructor(); - set( - documentRef: DocumentReference, - data: Partial, + set( + documentRef: DocumentReference, + data: Partial, options: SetOptions ): WriteBatch; - set( - documentRef: DocumentReference, - data: UpdateData - ): WriteBatch; + set(documentRef: DocumentReference, data: T): WriteBatch; - update( - documentRef: DocumentReference, - data: UpdateData - ): WriteBatch; - update( - documentRef: DocumentReference, + update(documentRef: DocumentReference, data: UpdateData): WriteBatch; + update( + documentRef: DocumentReference, field: string | FieldPath, value: any, ...moreFieldsAndValues: any[] ): WriteBatch; - delete( - documentRef: DocumentReference - ): WriteBatch; + delete(documentRef: DocumentReference): WriteBatch; commit(): Promise; } @@ -268,20 +241,20 @@ export interface GetOptions { readonly source?: 'default' | 'server' | 'cache'; } -export class DocumentReference { +export class DocumentReference { private constructor(); readonly id: string; readonly firestore: FirebaseFirestore; - readonly parent: CollectionReference; + readonly parent: CollectionReference; readonly path: string; collection(collectionPath: string): CollectionReference; - isEqual(other: DocumentReference): boolean; + isEqual(other: DocumentReference): boolean; - set(data: Partial, options: SetOptions): Promise; - set(data: Partial): Promise; + set(data: Partial, options: SetOptions): Promise; + set(data: T): Promise; update(data: UpdateData): Promise; update( @@ -292,39 +265,35 @@ export class DocumentReference { delete(): Promise; - get( - options?: GetOptions - ): Promise>; + get(options?: GetOptions): Promise>; onSnapshot(observer: { - next?: (snapshot: DocumentSnapshot) => void; + next?: (snapshot: DocumentSnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; }): () => void; onSnapshot( options: SnapshotListenOptions, observer: { - next?: (snapshot: DocumentSnapshot) => void; + next?: (snapshot: DocumentSnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; } ): () => void; onSnapshot( - onNext: (snapshot: DocumentSnapshot) => void, + onNext: (snapshot: DocumentSnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; onSnapshot( options: SnapshotListenOptions, - onNext: (snapshot: DocumentSnapshot) => void, + onNext: (snapshot: DocumentSnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; - withConverter(converter: null): DocumentReference; - withConverter( - converter: FirestoreDataConverter - ): DocumentReference; + withConverter(converter: null): DocumentReference; + withConverter(converter: FirestoreDataConverter): DocumentReference; } export interface SnapshotOptions { @@ -338,28 +307,27 @@ export interface SnapshotMetadata { isEqual(other: SnapshotMetadata): boolean; } -export class DocumentSnapshot { +export class DocumentSnapshot { protected constructor(); readonly exists: boolean; - readonly ref: DocumentReference; + readonly ref: DocumentReference; readonly id: string; readonly metadata: SnapshotMetadata; - data(options?: SnapshotOptions): AppModelType | undefined; + data(options?: SnapshotOptions): T | undefined; get(fieldPath: string | FieldPath, options?: SnapshotOptions): any; - isEqual(other: DocumentSnapshot): boolean; + isEqual(other: DocumentSnapshot): boolean; } export class QueryDocumentSnapshot< - AppModelType, - DbModelType -> extends DocumentSnapshot { + T = DocumentData +> extends DocumentSnapshot { private constructor(); - data(options?: SnapshotOptions): AppModelType; + data(options?: SnapshotOptions): T; } export type OrderByDirection = 'desc' | 'asc'; @@ -376,10 +344,7 @@ export type WhereFilterOp = | 'array-contains-any' | 'not-in'; -export class Query< - AppModelType = DocumentData, - DbModelType extends DocumentData = DocumentData -> { +export class Query { protected constructor(); readonly firestore: FirebaseFirestore; @@ -388,62 +353,54 @@ export class Query< fieldPath: string | FieldPath, opStr: WhereFilterOp, value: any - ): Query; + ): Query; orderBy( fieldPath: string | FieldPath, directionStr?: OrderByDirection - ): Query; + ): Query; - limit(limit: number): Query; + limit(limit: number): Query; - limitToLast(limit: number): Query; + limitToLast(limit: number): Query; - startAt( - snapshot: DocumentSnapshot - ): Query; - startAt(...fieldValues: any[]): Query; + startAt(snapshot: DocumentSnapshot): Query; + startAt(...fieldValues: any[]): Query; - startAfter( - snapshot: DocumentSnapshot - ): Query; - startAfter(...fieldValues: any[]): Query; + startAfter(snapshot: DocumentSnapshot): Query; + startAfter(...fieldValues: any[]): Query; - endBefore( - snapshot: DocumentSnapshot - ): Query; - endBefore(...fieldValues: any[]): Query; + endBefore(snapshot: DocumentSnapshot): Query; + endBefore(...fieldValues: any[]): Query; - endAt( - snapshot: DocumentSnapshot - ): Query; - endAt(...fieldValues: any[]): Query; + endAt(snapshot: DocumentSnapshot): Query; + endAt(...fieldValues: any[]): Query; - isEqual(other: Query): boolean; + isEqual(other: Query): boolean; - get(options?: GetOptions): Promise>; + get(options?: GetOptions): Promise>; onSnapshot(observer: { - next?: (snapshot: QuerySnapshot) => void; + next?: (snapshot: QuerySnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; }): () => void; onSnapshot( options: SnapshotListenOptions, observer: { - next?: (snapshot: QuerySnapshot) => void; + next?: (snapshot: QuerySnapshot) => void; error?: (error: FirestoreError) => void; complete?: () => void; } ): () => void; onSnapshot( - onNext: (snapshot: QuerySnapshot) => void, + onNext: (snapshot: QuerySnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; onSnapshot( options: SnapshotListenOptions, - onNext: (snapshot: QuerySnapshot) => void, + onNext: (snapshot: QuerySnapshot) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void ): () => void; @@ -452,55 +409,46 @@ export class Query< withConverter(converter: FirestoreDataConverter): Query; } -export class QuerySnapshot { +export class QuerySnapshot { private constructor(); - readonly query: Query; + readonly query: Query; readonly metadata: SnapshotMetadata; - readonly docs: Array>; + readonly docs: Array>; readonly size: number; readonly empty: boolean; - docChanges( - options?: SnapshotListenOptions - ): Array>; + docChanges(options?: SnapshotListenOptions): Array>; forEach( - callback: ( - result: QueryDocumentSnapshot - ) => void, + callback: (result: QueryDocumentSnapshot) => void, thisArg?: any ): void; - isEqual(other: QuerySnapshot): boolean; + isEqual(other: QuerySnapshot): boolean; } export type DocumentChangeType = 'added' | 'removed' | 'modified'; -export interface DocumentChange { +export interface DocumentChange { readonly type: DocumentChangeType; - readonly doc: QueryDocumentSnapshot; + readonly doc: QueryDocumentSnapshot; readonly oldIndex: number; readonly newIndex: number; } -export class CollectionReference< - AppModelType = DocumentData, - DbModelType extends DocumentData = DocumentData -> extends Query { +export class CollectionReference extends Query { private constructor(); readonly id: string; - readonly parent: DocumentReference | null; + readonly parent: DocumentReference | null; readonly path: string; - doc(documentPath?: string): DocumentReference; + doc(documentPath?: string): DocumentReference; - add( - data: AppModelType - ): Promise>; + add(data: T): Promise>; - isEqual(other: CollectionReference): boolean; + isEqual(other: CollectionReference): boolean; withConverter(converter: null): CollectionReference; withConverter(