@google-cloud/firestore-api 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -346,7 +346,7 @@ class FirestoreAdminClient {
346
346
  'cloneDatabase',
347
347
  ];
348
348
  for (const methodName of firestoreAdminStubMethods) {
349
- const callPromise = this.firestoreAdminStub.then((stub) => (...args) => {
349
+ const callPromise = this.firestoreAdminStub.then(stub => (...args) => {
350
350
  if (this._terminated) {
351
351
  return Promise.reject('The client has already been closed.');
352
352
  }
@@ -443,7 +443,7 @@ class FirestoreAdminClient {
443
443
  this._gaxModule.routingHeader.fromParams({
444
444
  name: request.name ?? '',
445
445
  });
446
- this.initialize().catch((err) => {
446
+ this.initialize().catch(err => {
447
447
  throw err;
448
448
  });
449
449
  this._log.info('getIndex request %j', request);
@@ -486,7 +486,7 @@ class FirestoreAdminClient {
486
486
  this._gaxModule.routingHeader.fromParams({
487
487
  name: request.name ?? '',
488
488
  });
489
- this.initialize().catch((err) => {
489
+ this.initialize().catch(err => {
490
490
  throw err;
491
491
  });
492
492
  this._log.info('deleteIndex request %j', request);
@@ -529,7 +529,7 @@ class FirestoreAdminClient {
529
529
  this._gaxModule.routingHeader.fromParams({
530
530
  name: request.name ?? '',
531
531
  });
532
- this.initialize().catch((err) => {
532
+ this.initialize().catch(err => {
533
533
  throw err;
534
534
  });
535
535
  this._log.info('getField request %j', request);
@@ -572,7 +572,7 @@ class FirestoreAdminClient {
572
572
  this._gaxModule.routingHeader.fromParams({
573
573
  name: request.name ?? '',
574
574
  });
575
- this.initialize().catch((err) => {
575
+ this.initialize().catch(err => {
576
576
  throw err;
577
577
  });
578
578
  this._log.info('getDatabase request %j', request);
@@ -615,7 +615,7 @@ class FirestoreAdminClient {
615
615
  this._gaxModule.routingHeader.fromParams({
616
616
  parent: request.parent ?? '',
617
617
  });
618
- this.initialize().catch((err) => {
618
+ this.initialize().catch(err => {
619
619
  throw err;
620
620
  });
621
621
  this._log.info('listDatabases request %j', request);
@@ -658,7 +658,7 @@ class FirestoreAdminClient {
658
658
  this._gaxModule.routingHeader.fromParams({
659
659
  parent: request.parent ?? '',
660
660
  });
661
- this.initialize().catch((err) => {
661
+ this.initialize().catch(err => {
662
662
  throw err;
663
663
  });
664
664
  this._log.info('createUserCreds request %j', request);
@@ -701,7 +701,7 @@ class FirestoreAdminClient {
701
701
  this._gaxModule.routingHeader.fromParams({
702
702
  name: request.name ?? '',
703
703
  });
704
- this.initialize().catch((err) => {
704
+ this.initialize().catch(err => {
705
705
  throw err;
706
706
  });
707
707
  this._log.info('getUserCreds request %j', request);
@@ -744,7 +744,7 @@ class FirestoreAdminClient {
744
744
  this._gaxModule.routingHeader.fromParams({
745
745
  parent: request.parent ?? '',
746
746
  });
747
- this.initialize().catch((err) => {
747
+ this.initialize().catch(err => {
748
748
  throw err;
749
749
  });
750
750
  this._log.info('listUserCreds request %j', request);
@@ -787,7 +787,7 @@ class FirestoreAdminClient {
787
787
  this._gaxModule.routingHeader.fromParams({
788
788
  name: request.name ?? '',
789
789
  });
790
- this.initialize().catch((err) => {
790
+ this.initialize().catch(err => {
791
791
  throw err;
792
792
  });
793
793
  this._log.info('enableUserCreds request %j', request);
@@ -830,7 +830,7 @@ class FirestoreAdminClient {
830
830
  this._gaxModule.routingHeader.fromParams({
831
831
  name: request.name ?? '',
832
832
  });
833
- this.initialize().catch((err) => {
833
+ this.initialize().catch(err => {
834
834
  throw err;
835
835
  });
836
836
  this._log.info('disableUserCreds request %j', request);
@@ -873,7 +873,7 @@ class FirestoreAdminClient {
873
873
  this._gaxModule.routingHeader.fromParams({
874
874
  name: request.name ?? '',
875
875
  });
876
- this.initialize().catch((err) => {
876
+ this.initialize().catch(err => {
877
877
  throw err;
878
878
  });
879
879
  this._log.info('resetUserPassword request %j', request);
@@ -916,7 +916,7 @@ class FirestoreAdminClient {
916
916
  this._gaxModule.routingHeader.fromParams({
917
917
  name: request.name ?? '',
918
918
  });
919
- this.initialize().catch((err) => {
919
+ this.initialize().catch(err => {
920
920
  throw err;
921
921
  });
922
922
  this._log.info('deleteUserCreds request %j', request);
@@ -959,7 +959,7 @@ class FirestoreAdminClient {
959
959
  this._gaxModule.routingHeader.fromParams({
960
960
  name: request.name ?? '',
961
961
  });
962
- this.initialize().catch((err) => {
962
+ this.initialize().catch(err => {
963
963
  throw err;
964
964
  });
965
965
  this._log.info('getBackup request %j', request);
@@ -1002,7 +1002,7 @@ class FirestoreAdminClient {
1002
1002
  this._gaxModule.routingHeader.fromParams({
1003
1003
  parent: request.parent ?? '',
1004
1004
  });
1005
- this.initialize().catch((err) => {
1005
+ this.initialize().catch(err => {
1006
1006
  throw err;
1007
1007
  });
1008
1008
  this._log.info('listBackups request %j', request);
@@ -1045,7 +1045,7 @@ class FirestoreAdminClient {
1045
1045
  this._gaxModule.routingHeader.fromParams({
1046
1046
  name: request.name ?? '',
1047
1047
  });
1048
- this.initialize().catch((err) => {
1048
+ this.initialize().catch(err => {
1049
1049
  throw err;
1050
1050
  });
1051
1051
  this._log.info('deleteBackup request %j', request);
@@ -1088,7 +1088,7 @@ class FirestoreAdminClient {
1088
1088
  this._gaxModule.routingHeader.fromParams({
1089
1089
  parent: request.parent ?? '',
1090
1090
  });
1091
- this.initialize().catch((err) => {
1091
+ this.initialize().catch(err => {
1092
1092
  throw err;
1093
1093
  });
1094
1094
  this._log.info('createBackupSchedule request %j', request);
@@ -1131,7 +1131,7 @@ class FirestoreAdminClient {
1131
1131
  this._gaxModule.routingHeader.fromParams({
1132
1132
  name: request.name ?? '',
1133
1133
  });
1134
- this.initialize().catch((err) => {
1134
+ this.initialize().catch(err => {
1135
1135
  throw err;
1136
1136
  });
1137
1137
  this._log.info('getBackupSchedule request %j', request);
@@ -1174,7 +1174,7 @@ class FirestoreAdminClient {
1174
1174
  this._gaxModule.routingHeader.fromParams({
1175
1175
  parent: request.parent ?? '',
1176
1176
  });
1177
- this.initialize().catch((err) => {
1177
+ this.initialize().catch(err => {
1178
1178
  throw err;
1179
1179
  });
1180
1180
  this._log.info('listBackupSchedules request %j', request);
@@ -1217,7 +1217,7 @@ class FirestoreAdminClient {
1217
1217
  this._gaxModule.routingHeader.fromParams({
1218
1218
  'backup_schedule.name': request.backupSchedule.name ?? '',
1219
1219
  });
1220
- this.initialize().catch((err) => {
1220
+ this.initialize().catch(err => {
1221
1221
  throw err;
1222
1222
  });
1223
1223
  this._log.info('updateBackupSchedule request %j', request);
@@ -1260,7 +1260,7 @@ class FirestoreAdminClient {
1260
1260
  this._gaxModule.routingHeader.fromParams({
1261
1261
  name: request.name ?? '',
1262
1262
  });
1263
- this.initialize().catch((err) => {
1263
+ this.initialize().catch(err => {
1264
1264
  throw err;
1265
1265
  });
1266
1266
  this._log.info('deleteBackupSchedule request %j', request);
@@ -1303,7 +1303,7 @@ class FirestoreAdminClient {
1303
1303
  this._gaxModule.routingHeader.fromParams({
1304
1304
  parent: request.parent ?? '',
1305
1305
  });
1306
- this.initialize().catch((err) => {
1306
+ this.initialize().catch(err => {
1307
1307
  throw err;
1308
1308
  });
1309
1309
  const wrappedCallback = callback
@@ -1355,7 +1355,7 @@ class FirestoreAdminClient {
1355
1355
  this._gaxModule.routingHeader.fromParams({
1356
1356
  'field.name': request.field.name ?? '',
1357
1357
  });
1358
- this.initialize().catch((err) => {
1358
+ this.initialize().catch(err => {
1359
1359
  throw err;
1360
1360
  });
1361
1361
  const wrappedCallback = callback
@@ -1407,7 +1407,7 @@ class FirestoreAdminClient {
1407
1407
  this._gaxModule.routingHeader.fromParams({
1408
1408
  name: request.name ?? '',
1409
1409
  });
1410
- this.initialize().catch((err) => {
1410
+ this.initialize().catch(err => {
1411
1411
  throw err;
1412
1412
  });
1413
1413
  const wrappedCallback = callback
@@ -1459,7 +1459,7 @@ class FirestoreAdminClient {
1459
1459
  this._gaxModule.routingHeader.fromParams({
1460
1460
  name: request.name ?? '',
1461
1461
  });
1462
- this.initialize().catch((err) => {
1462
+ this.initialize().catch(err => {
1463
1463
  throw err;
1464
1464
  });
1465
1465
  const wrappedCallback = callback
@@ -1511,7 +1511,7 @@ class FirestoreAdminClient {
1511
1511
  this._gaxModule.routingHeader.fromParams({
1512
1512
  name: request.name ?? '',
1513
1513
  });
1514
- this.initialize().catch((err) => {
1514
+ this.initialize().catch(err => {
1515
1515
  throw err;
1516
1516
  });
1517
1517
  const wrappedCallback = callback
@@ -1563,7 +1563,7 @@ class FirestoreAdminClient {
1563
1563
  this._gaxModule.routingHeader.fromParams({
1564
1564
  parent: request.parent ?? '',
1565
1565
  });
1566
- this.initialize().catch((err) => {
1566
+ this.initialize().catch(err => {
1567
1567
  throw err;
1568
1568
  });
1569
1569
  const wrappedCallback = callback
@@ -1615,7 +1615,7 @@ class FirestoreAdminClient {
1615
1615
  this._gaxModule.routingHeader.fromParams({
1616
1616
  'database.name': request.database.name ?? '',
1617
1617
  });
1618
- this.initialize().catch((err) => {
1618
+ this.initialize().catch(err => {
1619
1619
  throw err;
1620
1620
  });
1621
1621
  const wrappedCallback = callback
@@ -1667,7 +1667,7 @@ class FirestoreAdminClient {
1667
1667
  this._gaxModule.routingHeader.fromParams({
1668
1668
  name: request.name ?? '',
1669
1669
  });
1670
- this.initialize().catch((err) => {
1670
+ this.initialize().catch(err => {
1671
1671
  throw err;
1672
1672
  });
1673
1673
  const wrappedCallback = callback
@@ -1719,7 +1719,7 @@ class FirestoreAdminClient {
1719
1719
  this._gaxModule.routingHeader.fromParams({
1720
1720
  parent: request.parent ?? '',
1721
1721
  });
1722
- this.initialize().catch((err) => {
1722
+ this.initialize().catch(err => {
1723
1723
  throw err;
1724
1724
  });
1725
1725
  const wrappedCallback = callback
@@ -1794,7 +1794,7 @@ class FirestoreAdminClient {
1794
1794
  }
1795
1795
  options.otherArgs.headers['x-goog-request-params'] =
1796
1796
  this._gaxModule.routingHeader.fromParams(routingParameter);
1797
- this.initialize().catch((err) => {
1797
+ this.initialize().catch(err => {
1798
1798
  throw err;
1799
1799
  });
1800
1800
  const wrappedCallback = callback
@@ -1846,7 +1846,7 @@ class FirestoreAdminClient {
1846
1846
  this._gaxModule.routingHeader.fromParams({
1847
1847
  parent: request.parent ?? '',
1848
1848
  });
1849
- this.initialize().catch((err) => {
1849
+ this.initialize().catch(err => {
1850
1850
  throw err;
1851
1851
  });
1852
1852
  const wrappedCallback = callback
@@ -1900,7 +1900,7 @@ class FirestoreAdminClient {
1900
1900
  });
1901
1901
  const defaultCallSettings = this._defaults['listIndexes'];
1902
1902
  const callSettings = defaultCallSettings.merge(options);
1903
- this.initialize().catch((err) => {
1903
+ this.initialize().catch(err => {
1904
1904
  throw err;
1905
1905
  });
1906
1906
  this._log.info('listIndexes stream %j', request);
@@ -1946,7 +1946,7 @@ class FirestoreAdminClient {
1946
1946
  });
1947
1947
  const defaultCallSettings = this._defaults['listIndexes'];
1948
1948
  const callSettings = defaultCallSettings.merge(options);
1949
- this.initialize().catch((err) => {
1949
+ this.initialize().catch(err => {
1950
1950
  throw err;
1951
1951
  });
1952
1952
  this._log.info('listIndexes iterate %j', request);
@@ -1969,7 +1969,7 @@ class FirestoreAdminClient {
1969
1969
  this._gaxModule.routingHeader.fromParams({
1970
1970
  parent: request.parent ?? '',
1971
1971
  });
1972
- this.initialize().catch((err) => {
1972
+ this.initialize().catch(err => {
1973
1973
  throw err;
1974
1974
  });
1975
1975
  const wrappedCallback = callback
@@ -2029,7 +2029,7 @@ class FirestoreAdminClient {
2029
2029
  });
2030
2030
  const defaultCallSettings = this._defaults['listFields'];
2031
2031
  const callSettings = defaultCallSettings.merge(options);
2032
- this.initialize().catch((err) => {
2032
+ this.initialize().catch(err => {
2033
2033
  throw err;
2034
2034
  });
2035
2035
  this._log.info('listFields stream %j', request);
@@ -2081,7 +2081,7 @@ class FirestoreAdminClient {
2081
2081
  });
2082
2082
  const defaultCallSettings = this._defaults['listFields'];
2083
2083
  const callSettings = defaultCallSettings.merge(options);
2084
- this.initialize().catch((err) => {
2084
+ this.initialize().catch(err => {
2085
2085
  throw err;
2086
2086
  });
2087
2087
  this._log.info('listFields iterate %j', request);
@@ -2717,11 +2717,11 @@ class FirestoreAdminClient {
2717
2717
  */
2718
2718
  close() {
2719
2719
  if (this.firestoreAdminStub && !this._terminated) {
2720
- return this.firestoreAdminStub.then((stub) => {
2720
+ return this.firestoreAdminStub.then(stub => {
2721
2721
  this._log.info('ending gRPC channel');
2722
2722
  this._terminated = true;
2723
2723
  stub.close();
2724
- this.locationsClient.close().catch((err) => {
2724
+ this.locationsClient.close().catch(err => {
2725
2725
  throw err;
2726
2726
  });
2727
2727
  void this.operationsClient.close();