Skip to content

Commit 936b3a7

Browse files
authored
format(*): remove extension.yaml from .prettierignore (#1928)
1 parent 231db83 commit 936b3a7

File tree

14 files changed

+402
-238
lines changed

14 files changed

+402
-238
lines changed

.prettierignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package.json
2-
extension.yaml
32
package-lock.json
43

54
**/node_modules/**

auth-mailchimp-sync/extension.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ billingRequired: true
4343

4444
roles:
4545
- role: firebaseauth.viewer
46-
reason: Allows the extension to read existing users while handling lifecycle events.
46+
reason:
47+
Allows the extension to read existing users while handling lifecycle
48+
events.
4749

4850
resources:
4951
- name: addUserToList
@@ -68,11 +70,10 @@ resources:
6870
eventTrigger:
6971
eventType: providers/firebase.auth/eventTypes/user.delete
7072
resource: projects/${param:PROJECT_ID}
71-
73+
7274
- name: addExistingUsersToList
7375
type: firebaseextensions.v1beta.function
74-
description:
75-
Adds existing users into the specified Mailchimp audience.
76+
description: Adds existing users into the specified Mailchimp audience.
7677
properties:
7778
runtime: nodejs18
7879
taskQueueTrigger: {}
@@ -117,7 +118,8 @@ params:
117118
- param: DO_BACKFILL
118119
label: Import existing users into Mailchimp audience
119120
description: >-
120-
Do you want to add existing users to the Mailchimp audience when you install or update this extension?
121+
Do you want to add existing users to the Mailchimp audience when you
122+
install or update this extension?
121123
type: select
122124
required: true
123125
options:
@@ -126,7 +128,6 @@ params:
126128
- label: No
127129
value: false
128130

129-
130131
lifecycleEvents:
131132
onInstall:
132133
function: addExistingUsersToList

delete-user-data/extension.yaml

+53-26
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ roles:
5050
- role: storage.admin
5151
reason: Allows the extension to delete (user) data from Cloud Storage.
5252
- role: pubsub.admin
53-
reason: Allows the extension to publish and subscribe to PubSub events. The extension uses PubSub to parallelize deletion and data discovery, no PubSub data is deleted.
53+
reason:
54+
Allows the extension to publish and subscribe to PubSub events. The
55+
extension uses PubSub to parallelize deletion and data discovery, no
56+
PubSub data is deleted.
5457

5558
resources:
5659
- name: clearData
@@ -86,14 +89,15 @@ params:
8689
- param: FIRESTORE_PATHS
8790
label: Cloud Firestore paths
8891
description: >-
89-
Which paths in your Cloud Firestore instance contain data keyed on a user ID? Leave
90-
empty if you don't use Cloud Firestore.
92+
Which paths in your Cloud Firestore instance contain data keyed on a user
93+
ID? Leave empty if you don't use Cloud Firestore.
9194
92-
Enter the full paths, separated by commas. Use `{UID}` as a placeholder for the user's UID.
95+
Enter the full paths, separated by commas. Use `{UID}` as a placeholder
96+
for the user's UID.
9397
94-
For example, if you have the collections `users` and `admins`, and each
95-
collection has documents with User ID as document IDs, then enter
96-
`users/{UID},admins/{UID}`.
98+
For example, if you have the collections `users` and `admins`, and each
99+
collection has documents with User ID as document IDs, then enter
100+
`users/{UID},admins/{UID}`.
97101
type: string
98102
example: users/{UID},admins/{UID}
99103
required: false
@@ -116,17 +120,22 @@ params:
116120
- param: SELECTED_DATABASE_INSTANCE
117121
label: Realtime Database instance
118122
description: >
119-
What is the ID of the Realtime Database instance from which you want to delete user data (keyed on user ID)?
123+
What is the ID of the Realtime Database instance from which you want to
124+
delete user data (keyed on user ID)?
120125
type: string
121126
example: my-instance
122127
validationRegex: ^[^\.\$\#\]\[\/\x00-\x1F\x7F]+$
123-
validationErrorMessage: Invalid database instance. Make sure that you have entered just the instance ID, and not the entire database URL.
128+
validationErrorMessage:
129+
Invalid database instance. Make sure that you have entered just the
130+
instance ID, and not the entire database URL.
124131
required: false
125132

126133
- param: SELECTED_DATABASE_LOCATION
127134
label: Realtime Database location
128135
description: >
129-
(Only applicable if you provided the `Realtime Database instance` parameter.) From which Realtime Database location do you want to delete data keyed on a user ID?
136+
(Only applicable if you provided the `Realtime Database instance`
137+
parameter.) From which Realtime Database location do you want to delete
138+
data keyed on a user ID?
130139
type: select
131140
options:
132141
- label: United States
@@ -141,12 +150,13 @@ params:
141150
- param: RTDB_PATHS
142151
label: Realtime Database paths
143152
description: >-
144-
Which paths in your Realtime Database instance contain data keyed on a user ID? Leave
145-
empty if you don't use Realtime Database.
153+
Which paths in your Realtime Database instance contain data keyed on a
154+
user ID? Leave empty if you don't use Realtime Database.
146155
147-
Enter the full paths, separated by commas. Use `{UID}` as a placeholder for the user's UID.
156+
Enter the full paths, separated by commas. Use `{UID}` as a placeholder
157+
for the user's UID.
148158
149-
For example: `users/{UID},admins/{UID}`.
159+
For example: `users/{UID},admins/{UID}`.
150160
151161
type: string
152162
example: users/{UID},admins/{UID}
@@ -155,7 +165,7 @@ params:
155165
- param: CLOUD_STORAGE_BUCKET
156166
label: Cloud Storage bucket
157167
description: >
158-
Which Google Cloud Storage bucket do you want to delete files from?
168+
Which Google Cloud Storage bucket do you want to delete files from?
159169
type: string
160170
example: my-project-12345.appspot.com
161171
validationRegex: ^([0-9a-z_.-]*)$
@@ -166,8 +176,8 @@ params:
166176
- param: STORAGE_PATHS
167177
label: Cloud Storage paths
168178
description: >-
169-
Where in Google Cloud Storage do you store data keyed on a user ID? Leave empty if you
170-
don't use Cloud Storage.
179+
Where in Google Cloud Storage do you store data keyed on a user ID? Leave
180+
empty if you don't use Cloud Storage.
171181
172182
Enter the full paths to files or directories in your Storage buckets,
173183
separated by commas. Use `{UID}` to represent the User ID of the deleted
@@ -177,8 +187,8 @@ params:
177187
bucket with the file naming scheme `{UID}-pic.png`, enter
178188
`{DEFAULT}/{UID}-pic.png`. To also delete all the files in another bucket
179189
called my-app-logs with the file naming scheme `{UID}-logs.txt`, enter
180-
`{DEFAULT}/{UID}-pic.png,my-app-logs/{UID}-logs.txt`. To *also* delete a User
181-
ID-labeled directory and all its files (like `media/{UID}`), enter
190+
`{DEFAULT}/{UID}-pic.png,my-app-logs/{UID}-logs.txt`. To *also* delete a
191+
User ID-labeled directory and all its files (like `media/{UID}`), enter
182192
`{DEFAULT}/{UID}-pic.png,my-app-logs/{UID}-logs.txt,{DEFAULT}/media/{UID}`.
183193
type: string
184194
example: "{DEFAULT}/{UID}-pic.png,my-awesome-app-logs/{UID}-logs.txt"
@@ -187,7 +197,8 @@ params:
187197
- param: ENABLE_AUTO_DISCOVERY
188198
label: Enable auto discovery
189199
description: >-
190-
Enable the extension to automatically discover Firestore collections and documents to delete.
200+
Enable the extension to automatically discover Firestore collections and
201+
documents to delete.
191202
type: select
192203
options:
193204
- label: Yes
@@ -200,7 +211,10 @@ params:
200211
- param: AUTO_DISCOVERY_SEARCH_DEPTH
201212
label: Auto discovery search depth
202213
description: >-
203-
If auto discovery is enabled, how deep should auto discovery find collections and documents. For example, setting to `1` would only discover root collections and documents, whereas setting to `9` would search sub-collections 9 levels deep. Defaults to `3`.
214+
If auto discovery is enabled, how deep should auto discovery find
215+
collections and documents. For example, setting to `1` would only discover
216+
root collections and documents, whereas setting to `9` would search
217+
sub-collections 9 levels deep. Defaults to `3`.
204218
validation: ^[0-9]
205219
type: string
206220
default: 3
@@ -209,25 +223,38 @@ params:
209223
- param: AUTO_DISCOVERY_SEARCH_FIELDS
210224
label: Auto discovery search fields
211225
description: >-
212-
If auto discovery is enabled, specify what document fields are used to associate the UID with the document. The extension will delete documents where the value for one or more of these fields matches the deleting user’s UID. If left empty, document fields will not be used in auto discovery.
226+
If auto discovery is enabled, specify what document fields are used to
227+
associate the UID with the document. The extension will delete documents
228+
where the value for one or more of these fields matches the deleting
229+
user’s UID. If left empty, document fields will not be used in auto
230+
discovery.
213231
type: string
214232
default: "id,uid,userId"
215233
required: false
216234

217235
- param: SEARCH_FUNCTION
218236
label: Search function URL
219237
description: >-
220-
Specify a URL to call that will return a list of document paths to delete. The extension will send a `POST` request to the specified `URL`, with the `uid` of the deleted user will be provided in the body of the request. The endpoint specified should return an array of firestore paths to delete.
238+
Specify a URL to call that will return a list of document paths to delete.
239+
The extension will send a `POST` request to the specified `URL`, with the
240+
`uid` of the deleted user will be provided in the body of the request. The
241+
endpoint specified should return an array of firestore paths to delete.
221242
example: https://us-west1-my-project-id.cloudfunctions.net/myTransformFunction
222243
type: string
223244
required: false
224245

225246
events:
226247
- type: firebase.extensions.delete-user-data.v1.firestore
227-
description: Occurs when a set of Firestore paths has been marked for deletion following a delete user trigger.
248+
description:
249+
Occurs when a set of Firestore paths has been marked for deletion
250+
following a delete user trigger.
228251

229252
- type: firebase.extensions.delete-user-data.v1.database
230-
description: Occurs when a set of Realtime Database paths has been marked for deletion following a delete user trigger.
253+
description:
254+
Occurs when a set of Realtime Database paths has been marked for deletion
255+
following a delete user trigger.
231256

232257
- type: firebase.extensions.delete-user-data.v1.storage
233-
description: Occurs when a set of Storage paths has been marked for deletion following a delete user trigger.
258+
description:
259+
Occurs when a set of Storage paths has been marked for deletion following
260+
a delete user trigger.

firestore-bigquery-export/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ To install an extension, your project must be on the [Blaze (pay as you go) plan
134134
* BigQuery Time Partitioning column name: BigQuery table column/schema field name for TimePartitioning. You can choose schema available as `timestamp` OR a new custom defined column that will be assigned to the selected Firestore Document field below. Defaults to pseudo column _PARTITIONTIME if unspecified. Cannot be changed if Table is already partitioned.
135135

136136
* Firestore Document field name for BigQuery SQL Time Partitioning field option: This parameter will allow you to partition the BigQuery table created by the extension based on selected. The Firestore Document field value must be a top-level TIMESTAMP, DATETIME, DATE field BigQuery string format or Firestore timestamp(will be converted to BigQuery TIMESTAMP). Cannot be changed if Table is already partitioned.
137-
example: `postDate`(Ensure that the Firestore-BigQuery export extension creates the dataset and table before initiating any backfill scripts.
138-
This step is crucial for the partitioning to function correctly. It is essential for the script to insert data into an already partitioned table.)
137+
example: `postDate`(Ensure that the Firestore-BigQuery export extension
138+
creates the dataset and table before initiating any backfill scripts.
139+
This step is crucial for the partitioning to function correctly. It is
140+
essential for the script to insert data into an already partitioned table.)
139141

140142
* BigQuery SQL Time Partitioning table schema field(column) type: Parameter for BigQuery SQL schema field type for the selected Time Partitioning Firestore Document field option. Cannot be changed if Table is already partitioned.
141143

0 commit comments

Comments
 (0)