@googleapis/webfonts 2.0.1 → 3.0.1
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.
- package/CHANGELOG.md +25 -0
- package/build/v1.d.ts +55 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +55 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v3.0.0...webfonts-v3.0.1) (2025-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **webfonts:** update the API ([2686686](https://github.com/googleapis/google-api-nodejs-client/commit/2686686c7148718da05b5c15f5a9d43063656330))
|
|
9
|
+
* **webfonts:** update the API ([9a41576](https://github.com/googleapis/google-api-nodejs-client/commit/9a415763ea0301c559a6df443a34a4f398d8ca79))
|
|
10
|
+
|
|
11
|
+
## [3.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v2.0.1...webfonts-v3.0.0) (2025-06-30)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* upgrade to node 18
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
26
|
+
* **webfonts:** update the API ([9a41576](https://github.com/googleapis/google-api-nodejs-client/commit/9a415763ea0301c559a6df443a34a4f398d8ca79))
|
|
27
|
+
|
|
3
28
|
## [2.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v2.0.0...webfonts-v2.0.1) (2025-06-04)
|
|
4
29
|
|
|
5
30
|
|
package/build/v1.d.ts
CHANGED
|
@@ -157,6 +157,61 @@ export declare namespace webfonts_v1 {
|
|
|
157
157
|
constructor(context: APIRequestContext);
|
|
158
158
|
/**
|
|
159
159
|
* Retrieves the list of fonts currently served by the Google Fonts Developer API.
|
|
160
|
+
* @example
|
|
161
|
+
* ```js
|
|
162
|
+
* // Before running the sample:
|
|
163
|
+
* // - Enable the API at:
|
|
164
|
+
* // https://console.developers.google.com/apis/api/webfonts.googleapis.com
|
|
165
|
+
* // - Login into gcloud by running:
|
|
166
|
+
* // ```sh
|
|
167
|
+
* // $ gcloud auth application-default login
|
|
168
|
+
* // ```
|
|
169
|
+
* // - Install the npm module by running:
|
|
170
|
+
* // ```sh
|
|
171
|
+
* // $ npm install googleapis
|
|
172
|
+
* // ```
|
|
173
|
+
*
|
|
174
|
+
* const {google} = require('googleapis');
|
|
175
|
+
* const webfonts = google.webfonts('v1');
|
|
176
|
+
*
|
|
177
|
+
* async function main() {
|
|
178
|
+
* const auth = new google.auth.GoogleAuth({
|
|
179
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
180
|
+
* scopes: [],
|
|
181
|
+
* });
|
|
182
|
+
*
|
|
183
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
184
|
+
* const authClient = await auth.getClient();
|
|
185
|
+
* google.options({auth: authClient});
|
|
186
|
+
*
|
|
187
|
+
* // Do the magic
|
|
188
|
+
* const res = await webfonts.webfonts.list({
|
|
189
|
+
* // Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
190
|
+
* capability: 'placeholder-value',
|
|
191
|
+
* // Filters by Webfont.category, if category is found in Webfont.categories. If not set, returns all families.
|
|
192
|
+
* category: 'placeholder-value',
|
|
193
|
+
* // Filters by Webfont.family, using literal match. If not set, returns all families
|
|
194
|
+
* family: 'placeholder-value',
|
|
195
|
+
* // Enables sorting of the list.
|
|
196
|
+
* sort: 'placeholder-value',
|
|
197
|
+
* // Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
198
|
+
* subset: 'placeholder-value',
|
|
199
|
+
* });
|
|
200
|
+
* console.log(res.data);
|
|
201
|
+
*
|
|
202
|
+
* // Example response
|
|
203
|
+
* // {
|
|
204
|
+
* // "items": [],
|
|
205
|
+
* // "kind": "my_kind"
|
|
206
|
+
* // }
|
|
207
|
+
* }
|
|
208
|
+
*
|
|
209
|
+
* main().catch(e => {
|
|
210
|
+
* console.error(e);
|
|
211
|
+
* throw e;
|
|
212
|
+
* });
|
|
213
|
+
*
|
|
214
|
+
* ```
|
|
160
215
|
*
|
|
161
216
|
* @param params - Parameters for request
|
|
162
217
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,WAAW,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DA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;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAqB,UAAU,CAAC,CAAC;aACzD;QACH,CAAC;KACF;IAnJY,6BAAiB,oBAmJ7B,CAAA;AAwBH,CAAC,EApVgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAoV3B"}
|
package/package.json
CHANGED
package/v1.ts
CHANGED
|
@@ -212,6 +212,61 @@ export namespace webfonts_v1 {
|
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* Retrieves the list of fonts currently served by the Google Fonts Developer API.
|
|
215
|
+
* @example
|
|
216
|
+
* ```js
|
|
217
|
+
* // Before running the sample:
|
|
218
|
+
* // - Enable the API at:
|
|
219
|
+
* // https://console.developers.google.com/apis/api/webfonts.googleapis.com
|
|
220
|
+
* // - Login into gcloud by running:
|
|
221
|
+
* // ```sh
|
|
222
|
+
* // $ gcloud auth application-default login
|
|
223
|
+
* // ```
|
|
224
|
+
* // - Install the npm module by running:
|
|
225
|
+
* // ```sh
|
|
226
|
+
* // $ npm install googleapis
|
|
227
|
+
* // ```
|
|
228
|
+
*
|
|
229
|
+
* const {google} = require('googleapis');
|
|
230
|
+
* const webfonts = google.webfonts('v1');
|
|
231
|
+
*
|
|
232
|
+
* async function main() {
|
|
233
|
+
* const auth = new google.auth.GoogleAuth({
|
|
234
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
235
|
+
* scopes: [],
|
|
236
|
+
* });
|
|
237
|
+
*
|
|
238
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
239
|
+
* const authClient = await auth.getClient();
|
|
240
|
+
* google.options({auth: authClient});
|
|
241
|
+
*
|
|
242
|
+
* // Do the magic
|
|
243
|
+
* const res = await webfonts.webfonts.list({
|
|
244
|
+
* // Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
245
|
+
* capability: 'placeholder-value',
|
|
246
|
+
* // Filters by Webfont.category, if category is found in Webfont.categories. If not set, returns all families.
|
|
247
|
+
* category: 'placeholder-value',
|
|
248
|
+
* // Filters by Webfont.family, using literal match. If not set, returns all families
|
|
249
|
+
* family: 'placeholder-value',
|
|
250
|
+
* // Enables sorting of the list.
|
|
251
|
+
* sort: 'placeholder-value',
|
|
252
|
+
* // Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
253
|
+
* subset: 'placeholder-value',
|
|
254
|
+
* });
|
|
255
|
+
* console.log(res.data);
|
|
256
|
+
*
|
|
257
|
+
* // Example response
|
|
258
|
+
* // {
|
|
259
|
+
* // "items": [],
|
|
260
|
+
* // "kind": "my_kind"
|
|
261
|
+
* // }
|
|
262
|
+
* }
|
|
263
|
+
*
|
|
264
|
+
* main().catch(e => {
|
|
265
|
+
* console.error(e);
|
|
266
|
+
* throw e;
|
|
267
|
+
* });
|
|
268
|
+
*
|
|
269
|
+
* ```
|
|
215
270
|
*
|
|
216
271
|
* @param params - Parameters for request
|
|
217
272
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|