@googleapis/webfonts 0.3.1 → 1.1.0
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/index.js +4 -3
- package/build/index.js.map +1 -1
- package/build/v1.d.ts +43 -0
- package/build/v1.js +3 -2
- package/build/v1.js.map +1 -1
- package/package.json +6 -6
- package/v1.ts +43 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v1.0.0...webfonts-v1.1.0) (2023-05-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **webfonts:** update the API ([609207d](https://github.com/googleapis/google-api-nodejs-client/commit/609207dfe47ec8a7d6c5823d695f5be0b3dd1037))
|
|
9
|
+
|
|
10
|
+
## [1.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v0.3.2...webfonts-v1.0.0) (2022-10-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* **build:** This release has breaking changes.
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **build:** run the generator (submodules now require Node 12) ([#3073](https://github.com/googleapis/google-api-nodejs-client/issues/3073)) ([eda0707](https://github.com/googleapis/google-api-nodejs-client/commit/eda07079dadab46a80b6f9ede618f4f43030169e))
|
|
20
|
+
|
|
21
|
+
## [0.3.2](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v0.3.1...webfonts-v0.3.2) (2022-09-21)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **webfonts:** update the API ([7d2a810](https://github.com/googleapis/google-api-nodejs-client/commit/7d2a81007d382fa87486829e667d09c17c65669e))
|
|
27
|
+
|
|
3
28
|
## [0.3.1](https://github.com/googleapis/google-api-nodejs-client/compare/webfonts-v0.3.0...webfonts-v0.3.1) (2022-06-21)
|
|
4
29
|
|
|
5
30
|
|
package/build/index.js
CHANGED
|
@@ -12,19 +12,20 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AuthPlus = exports.webfonts_v1 = exports.auth = exports.webfonts = exports.VERSIONS = void 0;
|
|
15
16
|
/*! THIS FILE IS AUTO-GENERATED */
|
|
16
17
|
const googleapis_common_1 = require("googleapis-common");
|
|
17
18
|
const v1_1 = require("./v1");
|
|
18
|
-
exports
|
|
19
|
+
Object.defineProperty(exports, "webfonts_v1", { enumerable: true, get: function () { return v1_1.webfonts_v1; } });
|
|
19
20
|
exports.VERSIONS = {
|
|
20
21
|
v1: v1_1.webfonts_v1.Webfonts,
|
|
21
22
|
};
|
|
22
23
|
function webfonts(versionOrOptions) {
|
|
23
|
-
return googleapis_common_1.getAPI('webfonts', versionOrOptions, exports.VERSIONS, this);
|
|
24
|
+
return (0, googleapis_common_1.getAPI)('webfonts', versionOrOptions, exports.VERSIONS, this);
|
|
24
25
|
}
|
|
25
26
|
exports.webfonts = webfonts;
|
|
26
27
|
const auth = new googleapis_common_1.AuthPlus();
|
|
27
28
|
exports.auth = auth;
|
|
28
29
|
var googleapis_common_2 = require("googleapis-common");
|
|
29
|
-
exports
|
|
30
|
+
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAiC;AAiBzB,4FAjBA,gBAAW,OAiBA;AAfN,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,gBAAW,CAAC,QAAQ;CACzB,CAAC;AAIF,SAAgB,QAAQ,CAEtB,gBAA4C;IAE5C,OAAO,IAAA,0BAAM,EAAI,UAAU,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACjE,CAAC;AALD,4BAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
|
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
|
*/
|
|
@@ -153,8 +178,14 @@ export declare namespace webfonts_v1 {
|
|
|
153
178
|
*
|
|
154
179
|
* // Do the magic
|
|
155
180
|
* const res = await webfonts.webfonts.list({
|
|
181
|
+
* // Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
182
|
+
* capability: 'placeholder-value',
|
|
183
|
+
* // Filters by Webfont.family, using literal match. If not set, returns all families
|
|
184
|
+
* family: 'placeholder-value',
|
|
156
185
|
* // Enables sorting of the list.
|
|
157
186
|
* sort: 'placeholder-value',
|
|
187
|
+
* // Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
188
|
+
* subset: 'placeholder-value',
|
|
158
189
|
* });
|
|
159
190
|
* console.log(res.data);
|
|
160
191
|
*
|
|
@@ -185,10 +216,22 @@ export declare namespace webfonts_v1 {
|
|
|
185
216
|
list(callback: BodyResponseCallback<Schema$WebfontList>): void;
|
|
186
217
|
}
|
|
187
218
|
export interface Params$Resource$Webfonts$List extends StandardParameters {
|
|
219
|
+
/**
|
|
220
|
+
* Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
221
|
+
*/
|
|
222
|
+
capability?: string[];
|
|
223
|
+
/**
|
|
224
|
+
* Filters by Webfont.family, using literal match. If not set, returns all families
|
|
225
|
+
*/
|
|
226
|
+
family?: string[];
|
|
188
227
|
/**
|
|
189
228
|
* Enables sorting of the list.
|
|
190
229
|
*/
|
|
191
230
|
sort?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
233
|
+
*/
|
|
234
|
+
subset?: string;
|
|
192
235
|
}
|
|
193
236
|
export {};
|
|
194
237
|
}
|
package/build/v1.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.webfonts_v1 = void 0;
|
|
15
16
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16
17
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
18
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
@@ -69,10 +70,10 @@ var webfonts_v1;
|
|
|
69
70
|
context: this.context,
|
|
70
71
|
};
|
|
71
72
|
if (callback) {
|
|
72
|
-
googleapis_common_1.createAPIRequest(parameters, callback);
|
|
73
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
73
74
|
}
|
|
74
75
|
else {
|
|
75
|
-
return googleapis_common_1.createAPIRequest(parameters);
|
|
76
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
}
|
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,i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ED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,kCAAkC,CAAC;YACtE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC7D,MAAM,EAAE,KAAK;iBACd,EACD,OAAO,CACR;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;IAzIY,6BAAiB,oBAyI7B,CAAA;AAoBH,CAAC,EAlUgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAkU3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/webfonts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "webfonts",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=12.0.0"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"fix": "gts fix",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"webpack": "webpack"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"googleapis-common": "^
|
|
31
|
+
"googleapis-common": "^6.0.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-documenter": "^7.8.10",
|
|
35
35
|
"@microsoft/api-extractor": "^7.8.10",
|
|
36
|
-
"gts": "^
|
|
36
|
+
"gts": "^3.1.1",
|
|
37
37
|
"null-loader": "^4.0.0",
|
|
38
38
|
"ts-loader": "^9.0.0",
|
|
39
|
-
"typescript": "~
|
|
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
|
*/
|
|
@@ -208,8 +233,14 @@ export namespace webfonts_v1 {
|
|
|
208
233
|
*
|
|
209
234
|
* // Do the magic
|
|
210
235
|
* const res = await webfonts.webfonts.list({
|
|
236
|
+
* // Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
237
|
+
* capability: 'placeholder-value',
|
|
238
|
+
* // Filters by Webfont.family, using literal match. If not set, returns all families
|
|
239
|
+
* family: 'placeholder-value',
|
|
211
240
|
* // Enables sorting of the list.
|
|
212
241
|
* sort: 'placeholder-value',
|
|
242
|
+
* // Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
243
|
+
* subset: 'placeholder-value',
|
|
213
244
|
* });
|
|
214
245
|
* console.log(res.data);
|
|
215
246
|
*
|
|
@@ -309,9 +340,21 @@ export namespace webfonts_v1 {
|
|
|
309
340
|
}
|
|
310
341
|
|
|
311
342
|
export interface Params$Resource$Webfonts$List extends StandardParameters {
|
|
343
|
+
/**
|
|
344
|
+
* Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
|
|
345
|
+
*/
|
|
346
|
+
capability?: string[];
|
|
347
|
+
/**
|
|
348
|
+
* Filters by Webfont.family, using literal match. If not set, returns all families
|
|
349
|
+
*/
|
|
350
|
+
family?: string[];
|
|
312
351
|
/**
|
|
313
352
|
* Enables sorting of the list.
|
|
314
353
|
*/
|
|
315
354
|
sort?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
|
|
357
|
+
*/
|
|
358
|
+
subset?: string;
|
|
316
359
|
}
|
|
317
360
|
}
|