@@ -4829,55 +4829,94 @@ declare namespace admin.projectManagement {
4829
4829
}
4830
4830
4831
4831
/**
4832
- * Metadata about a Firebase Android app.
4832
+ * Metadata about a Firebase app.
4833
4833
*/
4834
- interface AndroidAppMetadata {
4834
+ interface AppMetadata {
4835
4835
4836
4836
/**
4837
- * The fully-qualified resource name that identifies this app.
4838
- *
4839
- * This is useful when manually constructing requests for Firebase's public API.
4837
+ * The globally unique, Firebase-assigned identifier of the app.
4840
4838
*
4841
4839
* @example
4842
4840
* ```javascript
4843
- * var resourceName = androidAppMetadata.resourceName ;
4841
+ * var appId = appMetadata.appId ;
4844
4842
* ```
4845
4843
*/
4846
- resourceName : string ;
4844
+ appId : string ;
4847
4845
4848
4846
/**
4849
- * The globally unique, Firebase -assigned identifier of the app.
4847
+ * The optional user -assigned display name of the app.
4850
4848
*
4851
4849
* @example
4852
4850
* ```javascript
4853
- * var appId = androidAppMetadata.appId ;
4851
+ * var displayName = appMetadata.displayName ;
4854
4852
* ```
4855
4853
*/
4856
- appId : string ;
4854
+ displayName ? : string ;
4857
4855
4858
4856
/**
4859
- * The optional user-assigned display name of the app.
4857
+ * The development platform of the app. Supporting Android and iOS app platforms .
4860
4858
*
4861
4859
* @example
4862
4860
* ```javascript
4863
- * var displayName = androidAppMetadata.displayName ;
4861
+ * var platform = AppPlatform.ANDROID ;
4864
4862
* ```
4865
4863
*/
4866
- displayName : string | null ;
4864
+ platform : AppPlatform ;
4867
4865
4868
4866
/**
4869
4867
* The globally unique, user-assigned ID of the parent project for the app.
4870
4868
*
4871
4869
* @example
4872
4870
* ```javascript
4873
- * var projectId = androidAppMetadata .projectId;
4871
+ * var projectId = appMetadata .projectId;
4874
4872
* ```
4875
4873
*/
4876
4874
projectId : string ;
4877
4875
4878
4876
/**
4879
- * The canonical package name of the Android App, as would appear in the Google
4880
- * Play Developer Console.
4877
+ * The fully-qualified resource name that identifies this app.
4878
+ *
4879
+ * This is useful when manually constructing requests for Firebase's public API.
4880
+ *
4881
+ * @example
4882
+ * ```javascript
4883
+ * var resourceName = androidAppMetadata.resourceName;
4884
+ * ```
4885
+ */
4886
+ resourceName : string ;
4887
+ }
4888
+
4889
+ /**
4890
+ * Platforms with which a Firebase App can be associated.
4891
+ */
4892
+ enum AppPlatform {
4893
+
4894
+ /**
4895
+ * Unknown state. This is only used for distinguishing unset values.
4896
+ */
4897
+ PLATFORM_UNKNOWN = 'PLATFORM_UNKNOWN' ,
4898
+
4899
+ /**
4900
+ * The Firebase App is associated with iOS.
4901
+ */
4902
+ IOS = 'IOS' ,
4903
+
4904
+ /**
4905
+ * The Firebase App is associated with Android.
4906
+ */
4907
+ ANDROID = 'ANDROID' ,
4908
+ }
4909
+
4910
+ /**
4911
+ * Metadata about a Firebase Android App.
4912
+ */
4913
+ interface AndroidAppMetadata extends AppMetadata {
4914
+
4915
+ platform : AppPlatform . ANDROID ;
4916
+
4917
+ /**
4918
+ * The canonical package name of the Android App, as would appear in the Google Play Developer
4919
+ * Console.
4881
4920
*
4882
4921
* @example
4883
4922
* ```javascript
@@ -4887,6 +4926,23 @@ declare namespace admin.projectManagement {
4887
4926
packageName : string ;
4888
4927
}
4889
4928
4929
+ /**
4930
+ * Metadata about a Firebase iOS App.
4931
+ */
4932
+ interface IosAppMetadata extends AppMetadata {
4933
+ platform : AppPlatform . IOS ;
4934
+
4935
+ /**
4936
+ * The canonical bundle ID of the iOS App as it would appear in the iOS App Store.
4937
+ *
4938
+ * @example
4939
+ * ```javascript
4940
+ * var bundleId = iosAppMetadata.bundleId;
4941
+ *```
4942
+ */
4943
+ bundleId : string ;
4944
+ }
4945
+
4890
4946
/**
4891
4947
* A reference to a Firebase Android app.
4892
4948
*
@@ -4951,65 +5007,6 @@ declare namespace admin.projectManagement {
4951
5007
getConfig ( ) : Promise < string > ;
4952
5008
}
4953
5009
4954
- /**
4955
- * Metadata about a Firebase iOS app.
4956
- */
4957
- interface IosAppMetadata {
4958
-
4959
- /**
4960
- * The fully-qualified resource name that identifies this app.
4961
- *
4962
- * This is useful when manually constructing requests for Firebase's public API.
4963
- *
4964
- * @example
4965
- * ```javascript
4966
- * var resourceName = iOSAppMetadata.resourceName;
4967
- * ```
4968
- */
4969
- resourceName : string ;
4970
-
4971
- /**
4972
- * The globally unique, Firebase-assigned identifier of the app.
4973
- *
4974
- * @example
4975
- * ```javascript
4976
- * var appId = androidAppMetadata.appId;
4977
- * ``
4978
- */
4979
- appId : string ;
4980
-
4981
- /**
4982
- * The optional user-assigned display name of the app.
4983
- *
4984
- * @example
4985
- * ```javascript
4986
- * var displayName = iOSAppMetadata.displayName;
4987
- * ```
4988
- */
4989
- displayName : string ;
4990
-
4991
- /**
4992
- * The globally unique, user-assigned ID of the parent project for the app.
4993
- *
4994
- * @example
4995
- * ```javascript
4996
- * var projectId = iOSAppMetadata.projectId;
4997
- * ```
4998
- */
4999
- projectId : string ;
5000
-
5001
- /**
5002
- * The canonical bundle ID of the iOS App as it would appear in the iOS App
5003
- * Store.
5004
- *
5005
- * @example
5006
- * ```javascript
5007
- * var bundleId = iosAppMetadata.bundleId;
5008
- *```
5009
- */
5010
- bundleId : string ;
5011
- }
5012
-
5013
5010
/**
5014
5011
* A reference to a Firebase iOS app.
5015
5012
*
@@ -5056,6 +5053,13 @@ declare namespace admin.projectManagement {
5056
5053
interface ProjectManagement {
5057
5054
app : admin . app . App ;
5058
5055
5056
+ /**
5057
+ * Lists up to 100 Firebase apps associated with this Firebase project.
5058
+ *
5059
+ * @return A promise that resolves to the metadata list of the apps.
5060
+ */
5061
+ listAppMetadata ( ) : Promise < admin . projectManagement . AppMetadata [ ] > ;
5062
+
5059
5063
/**
5060
5064
* Lists up to 100 Firebase Android apps associated with this Firebase project.
5061
5065
*
@@ -5082,6 +5086,15 @@ declare namespace admin.projectManagement {
5082
5086
*/
5083
5087
androidApp ( appId : string ) : admin . projectManagement . AndroidApp ;
5084
5088
5089
+ /**
5090
+ * Update the display name of this Firebase project.
5091
+ *
5092
+ * @param newDisplayName The new display name to be updated.
5093
+ *
5094
+ * @return A promise that resolves when the project display name has been updated.
5095
+ */
5096
+ setDisplayName ( newDisplayName : string ) : Promise < void > ;
5097
+
5085
5098
/**
5086
5099
* Creates an `iOSApp` object, referencing the specified iOS app within
5087
5100
* this Firebase project.
0 commit comments