@googleapis/webfonts 1.0.0 → 1.1.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 +14 -0
- package/build/v1.d.ts +37 -43
- package/build/v1.js.map +1 -1
- package/package.json +2 -2
- package/v1.ts +37 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.1](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v1.1.0...webfonts-v1.1.1) (2023-08-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **webfonts:** update the API ([f0a4421](https://github.com/googleapis/google-api-nodejs-client/commit/f0a44217601e0fb49d1f8627ea28035812830bb1))
|
|
9
|
+
|
|
10
|
+
## [1.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v1.0.0...webfonts-v1.1.0) (2023-05-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **webfonts:** update the API ([609207d](https://github.com/googleapis/google-api-nodejs-client/commit/609207dfe47ec8a7d6c5823d695f5be0b3dd1037))
|
|
16
|
+
|
|
3
17
|
## [1.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v0.3.2...webfonts-v1.0.0) (2022-10-28)
|
|
4
18
|
|
|
5
19
|
|
package/build/v1.d.ts
CHANGED
|
@@ -71,10 +71,31 @@ export declare namespace webfonts_v1 {
|
|
|
71
71
|
webfonts: Resource$Webfonts;
|
|
72
72
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Metadata for a variable font axis.
|
|
76
|
+
*/
|
|
77
|
+
export interface Schema$Axis {
|
|
78
|
+
/**
|
|
79
|
+
* maximum value
|
|
80
|
+
*/
|
|
81
|
+
end?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* minimum value
|
|
84
|
+
*/
|
|
85
|
+
start?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
* tag name.
|
|
88
|
+
*/
|
|
89
|
+
tag?: string | null;
|
|
90
|
+
}
|
|
74
91
|
/**
|
|
75
92
|
* Metadata describing a family of fonts.
|
|
76
93
|
*/
|
|
77
94
|
export interface Schema$Webfont {
|
|
95
|
+
/**
|
|
96
|
+
* Axis for variable fonts.
|
|
97
|
+
*/
|
|
98
|
+
axes?: Schema$Axis[];
|
|
78
99
|
/**
|
|
79
100
|
* The category of the font.
|
|
80
101
|
*/
|
|
@@ -97,6 +118,10 @@ export declare namespace webfonts_v1 {
|
|
|
97
118
|
* The date (format "yyyy-MM-dd") the font was modified for the last time.
|
|
98
119
|
*/
|
|
99
120
|
lastModified?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Font URL for menu subset, a subset of the font that is enough to display the font name
|
|
123
|
+
*/
|
|
124
|
+
menu?: string | null;
|
|
100
125
|
/**
|
|
101
126
|
* The scripts supported by the font.
|
|
102
127
|
*/
|
|
@@ -128,49 +153,6 @@ export declare namespace webfonts_v1 {
|
|
|
128
153
|
constructor(context: APIRequestContext);
|
|
129
154
|
/**
|
|
130
155
|
* Retrieves the list of fonts currently served by the Google Fonts Developer API.
|
|
131
|
-
* @example
|
|
132
|
-
* ```js
|
|
133
|
-
* // Before running the sample:
|
|
134
|
-
* // - Enable the API at:
|
|
135
|
-
* // https://console.developers.google.com/apis/api/webfonts.googleapis.com
|
|
136
|
-
* // - Login into gcloud by running:
|
|
137
|
-
* // `$ gcloud auth application-default login`
|
|
138
|
-
* // - Install the npm module by running:
|
|
139
|
-
* // `$ npm install googleapis`
|
|
140
|
-
*
|
|
141
|
-
* const {google} = require('googleapis');
|
|
142
|
-
* const webfonts = google.webfonts('v1');
|
|
143
|
-
*
|
|
144
|
-
* async function main() {
|
|
145
|
-
* const auth = new google.auth.GoogleAuth({
|
|
146
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
147
|
-
* scopes: [],
|
|
148
|
-
* });
|
|
149
|
-
*
|
|
150
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
151
|
-
* const authClient = await auth.getClient();
|
|
152
|
-
* google.options({auth: authClient});
|
|
153
|
-
*
|
|
154
|
-
* // Do the magic
|
|
155
|
-
* const res = await webfonts.webfonts.list({
|
|
156
|
-
* // Enables sorting of the list.
|
|
157
|
-
* sort: 'placeholder-value',
|
|
158
|
-
* });
|
|
159
|
-
* console.log(res.data);
|
|
160
|
-
*
|
|
161
|
-
* // Example response
|
|
162
|
-
* // {
|
|
163
|
-
* // "items": [],
|
|
164
|
-
* // "kind": "my_kind"
|
|
165
|
-
* // }
|
|
166
|
-
* }
|
|
167
|
-
*
|
|
168
|
-
* main().catch(e => {
|
|
169
|
-
* console.error(e);
|
|
170
|
-
* throw e;
|
|
171
|
-
* });
|
|
172
|
-
*
|
|
173
|
-
* ```
|
|
174
156
|
*
|
|
175
157
|
* @param params - Parameters for request
|
|
176
158
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -185,10 +167,22 @@ export declare namespace webfonts_v1 {
|
|
|
185
167
|
list(callback: BodyResponseCallback<Schema$WebfontList>): void;
|
|
186
168
|
}
|
|
187
169
|
export interface Params$Resource$Webfonts$List extends StandardParameters {
|
|
170
|
+
/**
|
|
171
|
+
* Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
172
|
+
*/
|
|
173
|
+
capability?: string[];
|
|
174
|
+
/**
|
|
175
|
+
* Filters by Webfont.family, using literal match. If not set, returns all families
|
|
176
|
+
*/
|
|
177
|
+
family?: string[];
|
|
188
178
|
/**
|
|
189
179
|
* Enables sorting of the list.
|
|
190
180
|
*/
|
|
191
181
|
sort?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
184
|
+
*/
|
|
185
|
+
subset?: string;
|
|
192
186
|
}
|
|
193
187
|
export {};
|
|
194
188
|
}
|
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,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,WAAW,CAiR3B;AAjRD,WAAiB,WAAW;IAgE1B;;;;;;;;;;OAUG;IACH,MAAa,QAAQ;QAInB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC;KACF;IAZY,oBAAQ,WAYpB,CAAA;IA8ED,MAAa,iBAAiB;QAE5B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QAiCD,IAAI,CACF,gBAGk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
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"ts-loader": "^9.0.0",
|
|
39
39
|
"typescript": "~4.8.4",
|
|
40
40
|
"webpack": "^5.0.0",
|
|
41
|
-
"webpack-cli": "^
|
|
41
|
+
"webpack-cli": "^5.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/v1.ts
CHANGED
|
@@ -124,10 +124,31 @@ export namespace webfonts_v1 {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Metadata for a variable font axis.
|
|
129
|
+
*/
|
|
130
|
+
export interface Schema$Axis {
|
|
131
|
+
/**
|
|
132
|
+
* maximum value
|
|
133
|
+
*/
|
|
134
|
+
end?: number | null;
|
|
135
|
+
/**
|
|
136
|
+
* minimum value
|
|
137
|
+
*/
|
|
138
|
+
start?: number | null;
|
|
139
|
+
/**
|
|
140
|
+
* tag name.
|
|
141
|
+
*/
|
|
142
|
+
tag?: string | null;
|
|
143
|
+
}
|
|
127
144
|
/**
|
|
128
145
|
* Metadata describing a family of fonts.
|
|
129
146
|
*/
|
|
130
147
|
export interface Schema$Webfont {
|
|
148
|
+
/**
|
|
149
|
+
* Axis for variable fonts.
|
|
150
|
+
*/
|
|
151
|
+
axes?: Schema$Axis[];
|
|
131
152
|
/**
|
|
132
153
|
* The category of the font.
|
|
133
154
|
*/
|
|
@@ -148,6 +169,10 @@ export namespace webfonts_v1 {
|
|
|
148
169
|
* The date (format "yyyy-MM-dd") the font was modified for the last time.
|
|
149
170
|
*/
|
|
150
171
|
lastModified?: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* Font URL for menu subset, a subset of the font that is enough to display the font name
|
|
174
|
+
*/
|
|
175
|
+
menu?: string | null;
|
|
151
176
|
/**
|
|
152
177
|
* The scripts supported by the font.
|
|
153
178
|
*/
|
|
@@ -183,49 +208,6 @@ export namespace webfonts_v1 {
|
|
|
183
208
|
|
|
184
209
|
/**
|
|
185
210
|
* Retrieves the list of fonts currently served by the Google Fonts Developer API.
|
|
186
|
-
* @example
|
|
187
|
-
* ```js
|
|
188
|
-
* // Before running the sample:
|
|
189
|
-
* // - Enable the API at:
|
|
190
|
-
* // https://console.developers.google.com/apis/api/webfonts.googleapis.com
|
|
191
|
-
* // - Login into gcloud by running:
|
|
192
|
-
* // `$ gcloud auth application-default login`
|
|
193
|
-
* // - Install the npm module by running:
|
|
194
|
-
* // `$ npm install googleapis`
|
|
195
|
-
*
|
|
196
|
-
* const {google} = require('googleapis');
|
|
197
|
-
* const webfonts = google.webfonts('v1');
|
|
198
|
-
*
|
|
199
|
-
* async function main() {
|
|
200
|
-
* const auth = new google.auth.GoogleAuth({
|
|
201
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
202
|
-
* scopes: [],
|
|
203
|
-
* });
|
|
204
|
-
*
|
|
205
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
206
|
-
* const authClient = await auth.getClient();
|
|
207
|
-
* google.options({auth: authClient});
|
|
208
|
-
*
|
|
209
|
-
* // Do the magic
|
|
210
|
-
* const res = await webfonts.webfonts.list({
|
|
211
|
-
* // Enables sorting of the list.
|
|
212
|
-
* sort: 'placeholder-value',
|
|
213
|
-
* });
|
|
214
|
-
* console.log(res.data);
|
|
215
|
-
*
|
|
216
|
-
* // Example response
|
|
217
|
-
* // {
|
|
218
|
-
* // "items": [],
|
|
219
|
-
* // "kind": "my_kind"
|
|
220
|
-
* // }
|
|
221
|
-
* }
|
|
222
|
-
*
|
|
223
|
-
* main().catch(e => {
|
|
224
|
-
* console.error(e);
|
|
225
|
-
* throw e;
|
|
226
|
-
* });
|
|
227
|
-
*
|
|
228
|
-
* ```
|
|
229
211
|
*
|
|
230
212
|
* @param params - Parameters for request
|
|
231
213
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -309,9 +291,21 @@ export namespace webfonts_v1 {
|
|
|
309
291
|
}
|
|
310
292
|
|
|
311
293
|
export interface Params$Resource$Webfonts$List extends StandardParameters {
|
|
294
|
+
/**
|
|
295
|
+
* Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
296
|
+
*/
|
|
297
|
+
capability?: string[];
|
|
298
|
+
/**
|
|
299
|
+
* Filters by Webfont.family, using literal match. If not set, returns all families
|
|
300
|
+
*/
|
|
301
|
+
family?: string[];
|
|
312
302
|
/**
|
|
313
303
|
* Enables sorting of the list.
|
|
314
304
|
*/
|
|
315
305
|
sort?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
308
|
+
*/
|
|
309
|
+
subset?: string;
|
|
316
310
|
}
|
|
317
311
|
}
|