@@ -27,61 +27,61 @@ import { EventHandlerOptions, getGlobalOptions, optionsToEndpoint } from "../opt
27
27
/** @internal */
28
28
export const eventType = "google.firebase.remoteconfig.remoteConfig.v1.updated" ;
29
29
30
- /* All the fields associated with the person/service account that wrote a Remote Config template. */
30
+ /** All the fields associated with the person/service account that wrote a Remote Config template. */
31
31
export interface ConfigUser {
32
- /* Display name. */
32
+ /** Display name. */
33
33
name : string ;
34
34
35
- /* Email address. */
35
+ /** Email address. */
36
36
email : string ;
37
37
38
- /* Image URL. */
38
+ /** Image URL. */
39
39
imageUrl : string ;
40
40
}
41
41
42
- /* What type of update was associated with the Remote Config template version. */
42
+ /** What type of update was associated with the Remote Config template version. */
43
43
export type ConfigUpdateOrigin =
44
- /* Catch-all for unrecognized values. */
44
+ /** Catch-all for unrecognized values. */
45
45
| "REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED"
46
- /* The update came from the Firebase UI. */
46
+ /** The update came from the Firebase UI. */
47
47
| "CONSOLE"
48
- /* The update came from the Remote Config REST API. */
48
+ /** The update came from the Remote Config REST API. */
49
49
| "REST_API"
50
- /* The update came from the Firebase Admin Node SDK. */
50
+ /** The update came from the Firebase Admin Node SDK. */
51
51
| "ADMIN_SDK_NODE" ;
52
52
53
- /* Where the Remote Config update action originated. */
53
+ /** Where the Remote Config update action originated. */
54
54
export type ConfigUpdateType =
55
- /* Catch-all for unrecognized enum values */
55
+ /** Catch-all for unrecognized enum values */
56
56
| "REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED"
57
- /* A regular incremental update */
57
+ /** A regular incremental update */
58
58
| "INCREMENTAL_UPDATE"
59
- /* A forced update. The ETag was specified as "*" in an UpdateRemoteConfigRequest request or the "Force Update" button was pressed on the console */
59
+ /** A forced update. The ETag was specified as "*" in an UpdateRemoteConfigRequest request or the "Force Update" button was pressed on the console */
60
60
| "FORCED_UPDATE"
61
- /* A rollback to a previous Remote Config template */
61
+ /** A rollback to a previous Remote Config template */
62
62
| "ROLLBACK" ;
63
63
64
- /* The data within Firebase Remote Config update events. */
64
+ /** The data within Firebase Remote Config update events. */
65
65
export interface ConfigUpdateData {
66
- /* The version number of the version's corresponding Remote Config template. */
66
+ /** The version number of the version's corresponding Remote Config template. */
67
67
versionNumber : number ;
68
68
69
- /* When the Remote Config template was written to the Remote Config server. */
69
+ /** When the Remote Config template was written to the Remote Config server. */
70
70
updateTime : string ;
71
71
72
- /* Aggregation of all metadata fields about the account that performed the update. */
72
+ /** Aggregation of all metadata fields about the account that performed the update. */
73
73
updateUser : ConfigUser ;
74
74
75
- /* The user-provided description of the corresponding Remote Config template. */
75
+ /** The user-provided description of the corresponding Remote Config template. */
76
76
description : string ;
77
77
78
- /* Where the update action originated. */
78
+ /** Where the update action originated. */
79
79
updateOrigin : ConfigUpdateOrigin ;
80
80
81
- /* What type of update was made. */
81
+ /** What type of update was made. */
82
82
updateType : ConfigUpdateType ;
83
83
84
- /* Only present if this version is the result of a rollback, and will be the version number of the Remote Config template that was rolled-back to. */
84
+ /** Only present if this version is the result of a rollback, and will be the version number of the Remote Config template that was rolled-back to. */
85
85
rollbackSource : number ;
86
86
}
87
87
@@ -90,7 +90,6 @@ export interface ConfigUpdateData {
90
90
*
91
91
* @param handler - Event handler which is run every time a Remote Config update occurs.
92
92
* @returns A Cloud Function that you can export and deploy.
93
- * @alpha
94
93
*/
95
94
export function onConfigUpdated (
96
95
handler : ( event : CloudEvent < ConfigUpdateData > ) => any | Promise < any >
@@ -102,7 +101,6 @@ export function onConfigUpdated(
102
101
* @param opts - Options that can be set on an individual event-handling function.
103
102
* @param handler - Event handler which is run every time a Remote Config update occurs.
104
103
* @returns A Cloud Function that you can export and deploy.
105
- * @alpha
106
104
*/
107
105
export function onConfigUpdated (
108
106
opts : EventHandlerOptions ,
@@ -115,7 +113,6 @@ export function onConfigUpdated(
115
113
* @param optsOrHandler - Options or an event handler.
116
114
* @param handler - Event handler which is run every time a Remote Config update occurs.
117
115
* @returns A Cloud Function that you can export and deploy.
118
- * @alpha
119
116
*/
120
117
export function onConfigUpdated (
121
118
optsOrHandler :
0 commit comments