@maxim_mazurok/gapi.client.playdeveloperreporting-v1beta1 0.0.20231128 → 0.0.20231203

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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.playdeveloperreporting-v1beta1",
3
- "version": "0.0.20231128",
3
+ "version": "0.0.20231203",
4
4
  "description": "TypeScript typings for Google Play Developer Reporting API v1beta1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
8
+ },
5
9
  "license": "MIT",
6
10
  "author": {
7
- "email": "maxim@mazurok.com",
8
11
  "name": "Maxim Mazurok",
12
+ "email": "maxim@mazurok.com",
9
13
  "url": "https://maxim.mazurok.com"
10
14
  },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
14
- },
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
package/readme.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # TypeScript typings for Google Play Developer Reporting API v1beta1
2
2
 
3
-
4
3
  For detailed description please check [documentation](https://developers.google.com/play/developer/reporting).
5
4
 
6
5
  ## Installing
@@ -25,10 +24,13 @@ gapi.load('client', () => {
25
24
  Then load api client wrapper:
26
25
 
27
26
  ```typescript
28
- gapi.client.load('https://playdeveloperreporting.googleapis.com/$discovery/rest?version=v1beta1', () => {
29
- // now we can use:
30
- // gapi.client.playdeveloperreporting
31
- });
27
+ gapi.client.load(
28
+ 'https://playdeveloperreporting.googleapis.com/$discovery/rest?version=v1beta1',
29
+ () => {
30
+ // now we can use:
31
+ // gapi.client.playdeveloperreporting
32
+ }
33
+ );
32
34
  ```
33
35
 
34
36
  ```typescript
@@ -45,39 +47,41 @@ Don't forget to authenticate your client before sending any request to resources
45
47
  // declare client_id registered in Google Developers Console
46
48
  var client_id = '',
47
49
  scope = [
48
- // See metrics and data about the apps in your Google Play Developer account
49
- 'https://www.googleapis.com/auth/playdeveloperreporting',
50
- ],
51
- immediate = true;
50
+ // See metrics and data about the apps in your Google Play Developer account
51
+ 'https://www.googleapis.com/auth/playdeveloperreporting',
52
+ ],
53
+ immediate = true;
52
54
  // ...
53
55
 
54
56
  gapi.auth.authorize(
55
- { client_id: client_id, scope: scope, immediate: immediate },
57
+ {client_id: client_id, scope: scope, immediate: immediate},
56
58
  authResult => {
57
59
  if (authResult && !authResult.error) {
58
- /* handle successful authorization */
60
+ /* handle successful authorization */
59
61
  } else {
60
- /* handle authorization error */
62
+ /* handle authorization error */
61
63
  }
62
- });
64
+ }
65
+ );
63
66
  ```
64
67
 
65
68
  After that you can use Google Play Developer Reporting API resources: <!-- TODO: make this work for multiple namespaces -->
66
69
 
67
70
  ```typescript
68
-
69
71
  /*
70
72
  Lists anomalies in any of the datasets.
71
73
  */
72
- await gapi.client.playdeveloperreporting.anomalies.list({ parent: "parent", });
74
+ await gapi.client.playdeveloperreporting.anomalies.list({parent: 'parent'});
73
75
 
74
76
  /*
75
77
  Describes filtering options for releases.
76
78
  */
77
- await gapi.client.playdeveloperreporting.apps.fetchReleaseFilterOptions({ name: "name", });
79
+ await gapi.client.playdeveloperreporting.apps.fetchReleaseFilterOptions({
80
+ name: 'name',
81
+ });
78
82
 
79
83
  /*
80
84
  Searches for Apps accessible by the user.
81
85
  */
82
- await gapi.client.playdeveloperreporting.apps.search({ });
86
+ await gapi.client.playdeveloperreporting.apps.search({});
83
87
  ```
package/tests.ts DELETED
@@ -1,453 +0,0 @@
1
- /* This is stub file for gapi.client.playdeveloperreporting-v1beta1 definition tests */
2
- // IMPORTANT
3
- // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
- // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
-
6
- // Revision: 20231128
7
-
8
- gapi.load('client', async () => {
9
- /** now we can use gapi.client */
10
-
11
- await gapi.client.load('https://playdeveloperreporting.googleapis.com/$discovery/rest?version=v1beta1');
12
- /** now we can use gapi.client.playdeveloperreporting */
13
-
14
- /** don't forget to authenticate your client before sending any request to resources: */
15
- /** declare client_id registered in Google Developers Console */
16
- const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
- const scope = [
18
- /** See metrics and data about the apps in your Google Play Developer account */
19
- 'https://www.googleapis.com/auth/playdeveloperreporting',
20
- ];
21
- const immediate = false;
22
- gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
23
- if (authResult && !authResult.error) {
24
- /** handle successful authorization */
25
- run();
26
- } else {
27
- /** handle authorization error */
28
- }
29
- });
30
-
31
- async function run() {
32
- /** Lists anomalies in any of the datasets. */
33
- await gapi.client.playdeveloperreporting.anomalies.list({
34
- filter: "Test string",
35
- pageSize: 42,
36
- pageToken: "Test string",
37
- parent: "Test string",
38
- });
39
- /** Describes filtering options for releases. */
40
- await gapi.client.playdeveloperreporting.apps.fetchReleaseFilterOptions({
41
- name: "Test string",
42
- });
43
- /** Searches for Apps accessible by the user. */
44
- await gapi.client.playdeveloperreporting.apps.search({
45
- pageSize: 42,
46
- pageToken: "Test string",
47
- });
48
- /** Describes the properties of the metric set. */
49
- await gapi.client.playdeveloperreporting.vitals.anrrate.get({
50
- name: "Test string",
51
- });
52
- /** Queries the metrics in the metric set. */
53
- await gapi.client.playdeveloperreporting.vitals.anrrate.query({
54
- name: "Test string",
55
- }, {
56
- dimensions: [
57
- "Test string"
58
- ],
59
- filter: "Test string",
60
- metrics: [
61
- "Test string"
62
- ],
63
- pageSize: 42,
64
- pageToken: "Test string",
65
- timelineSpec: {
66
- aggregationPeriod: "Test string",
67
- endTime: {
68
- day: 42,
69
- hours: 42,
70
- minutes: 42,
71
- month: 42,
72
- nanos: 42,
73
- seconds: 42,
74
- timeZone: {
75
- id: "Test string",
76
- version: "Test string",
77
- },
78
- utcOffset: "Test string",
79
- year: 42,
80
- },
81
- startTime: {
82
- day: 42,
83
- hours: 42,
84
- minutes: 42,
85
- month: 42,
86
- nanos: 42,
87
- seconds: 42,
88
- timeZone: {
89
- id: "Test string",
90
- version: "Test string",
91
- },
92
- utcOffset: "Test string",
93
- year: 42,
94
- },
95
- },
96
- userCohort: "Test string",
97
- });
98
- /** Describes the properties of the metric set. */
99
- await gapi.client.playdeveloperreporting.vitals.crashrate.get({
100
- name: "Test string",
101
- });
102
- /** Queries the metrics in the metric set. */
103
- await gapi.client.playdeveloperreporting.vitals.crashrate.query({
104
- name: "Test string",
105
- }, {
106
- dimensions: [
107
- "Test string"
108
- ],
109
- filter: "Test string",
110
- metrics: [
111
- "Test string"
112
- ],
113
- pageSize: 42,
114
- pageToken: "Test string",
115
- timelineSpec: {
116
- aggregationPeriod: "Test string",
117
- endTime: {
118
- day: 42,
119
- hours: 42,
120
- minutes: 42,
121
- month: 42,
122
- nanos: 42,
123
- seconds: 42,
124
- timeZone: {
125
- id: "Test string",
126
- version: "Test string",
127
- },
128
- utcOffset: "Test string",
129
- year: 42,
130
- },
131
- startTime: {
132
- day: 42,
133
- hours: 42,
134
- minutes: 42,
135
- month: 42,
136
- nanos: 42,
137
- seconds: 42,
138
- timeZone: {
139
- id: "Test string",
140
- version: "Test string",
141
- },
142
- utcOffset: "Test string",
143
- year: 42,
144
- },
145
- },
146
- userCohort: "Test string",
147
- });
148
- /** Describes the properties of the metrics set. */
149
- await gapi.client.playdeveloperreporting.vitals.errors.counts.get({
150
- name: "Test string",
151
- });
152
- /** Queries the metrics in the metrics set. */
153
- await gapi.client.playdeveloperreporting.vitals.errors.counts.query({
154
- name: "Test string",
155
- }, {
156
- dimensions: [
157
- "Test string"
158
- ],
159
- filter: "Test string",
160
- metrics: [
161
- "Test string"
162
- ],
163
- pageSize: 42,
164
- pageToken: "Test string",
165
- timelineSpec: {
166
- aggregationPeriod: "Test string",
167
- endTime: {
168
- day: 42,
169
- hours: 42,
170
- minutes: 42,
171
- month: 42,
172
- nanos: 42,
173
- seconds: 42,
174
- timeZone: {
175
- id: "Test string",
176
- version: "Test string",
177
- },
178
- utcOffset: "Test string",
179
- year: 42,
180
- },
181
- startTime: {
182
- day: 42,
183
- hours: 42,
184
- minutes: 42,
185
- month: 42,
186
- nanos: 42,
187
- seconds: 42,
188
- timeZone: {
189
- id: "Test string",
190
- version: "Test string",
191
- },
192
- utcOffset: "Test string",
193
- year: 42,
194
- },
195
- },
196
- });
197
- /** Searches all error issues in which reports have been grouped. */
198
- await gapi.client.playdeveloperreporting.vitals.errors.issues.search({
199
- filter: "Test string",
200
- "interval.endTime.day": 42,
201
- "interval.endTime.hours": 42,
202
- "interval.endTime.minutes": 42,
203
- "interval.endTime.month": 42,
204
- "interval.endTime.nanos": 42,
205
- "interval.endTime.seconds": 42,
206
- "interval.endTime.timeZone.id": "Test string",
207
- "interval.endTime.timeZone.version": "Test string",
208
- "interval.endTime.utcOffset": "Test string",
209
- "interval.endTime.year": 42,
210
- "interval.startTime.day": 42,
211
- "interval.startTime.hours": 42,
212
- "interval.startTime.minutes": 42,
213
- "interval.startTime.month": 42,
214
- "interval.startTime.nanos": 42,
215
- "interval.startTime.seconds": 42,
216
- "interval.startTime.timeZone.id": "Test string",
217
- "interval.startTime.timeZone.version": "Test string",
218
- "interval.startTime.utcOffset": "Test string",
219
- "interval.startTime.year": 42,
220
- orderBy: "Test string",
221
- pageSize: 42,
222
- pageToken: "Test string",
223
- parent: "Test string",
224
- });
225
- /** Searches all error reports received for an app. */
226
- await gapi.client.playdeveloperreporting.vitals.errors.reports.search({
227
- filter: "Test string",
228
- "interval.endTime.day": 42,
229
- "interval.endTime.hours": 42,
230
- "interval.endTime.minutes": 42,
231
- "interval.endTime.month": 42,
232
- "interval.endTime.nanos": 42,
233
- "interval.endTime.seconds": 42,
234
- "interval.endTime.timeZone.id": "Test string",
235
- "interval.endTime.timeZone.version": "Test string",
236
- "interval.endTime.utcOffset": "Test string",
237
- "interval.endTime.year": 42,
238
- "interval.startTime.day": 42,
239
- "interval.startTime.hours": 42,
240
- "interval.startTime.minutes": 42,
241
- "interval.startTime.month": 42,
242
- "interval.startTime.nanos": 42,
243
- "interval.startTime.seconds": 42,
244
- "interval.startTime.timeZone.id": "Test string",
245
- "interval.startTime.timeZone.version": "Test string",
246
- "interval.startTime.utcOffset": "Test string",
247
- "interval.startTime.year": 42,
248
- pageSize: 42,
249
- pageToken: "Test string",
250
- parent: "Test string",
251
- });
252
- /** Describes the properties of the metric set. */
253
- await gapi.client.playdeveloperreporting.vitals.excessivewakeuprate.get({
254
- name: "Test string",
255
- });
256
- /** Queries the metrics in the metric set. */
257
- await gapi.client.playdeveloperreporting.vitals.excessivewakeuprate.query({
258
- name: "Test string",
259
- }, {
260
- dimensions: [
261
- "Test string"
262
- ],
263
- filter: "Test string",
264
- metrics: [
265
- "Test string"
266
- ],
267
- pageSize: 42,
268
- pageToken: "Test string",
269
- timelineSpec: {
270
- aggregationPeriod: "Test string",
271
- endTime: {
272
- day: 42,
273
- hours: 42,
274
- minutes: 42,
275
- month: 42,
276
- nanos: 42,
277
- seconds: 42,
278
- timeZone: {
279
- id: "Test string",
280
- version: "Test string",
281
- },
282
- utcOffset: "Test string",
283
- year: 42,
284
- },
285
- startTime: {
286
- day: 42,
287
- hours: 42,
288
- minutes: 42,
289
- month: 42,
290
- nanos: 42,
291
- seconds: 42,
292
- timeZone: {
293
- id: "Test string",
294
- version: "Test string",
295
- },
296
- utcOffset: "Test string",
297
- year: 42,
298
- },
299
- },
300
- userCohort: "Test string",
301
- });
302
- /** Describes the properties of the metric set. */
303
- await gapi.client.playdeveloperreporting.vitals.slowrenderingrate.get({
304
- name: "Test string",
305
- });
306
- /** Queries the metrics in the metric set. */
307
- await gapi.client.playdeveloperreporting.vitals.slowrenderingrate.query({
308
- name: "Test string",
309
- }, {
310
- dimensions: [
311
- "Test string"
312
- ],
313
- filter: "Test string",
314
- metrics: [
315
- "Test string"
316
- ],
317
- pageSize: 42,
318
- pageToken: "Test string",
319
- timelineSpec: {
320
- aggregationPeriod: "Test string",
321
- endTime: {
322
- day: 42,
323
- hours: 42,
324
- minutes: 42,
325
- month: 42,
326
- nanos: 42,
327
- seconds: 42,
328
- timeZone: {
329
- id: "Test string",
330
- version: "Test string",
331
- },
332
- utcOffset: "Test string",
333
- year: 42,
334
- },
335
- startTime: {
336
- day: 42,
337
- hours: 42,
338
- minutes: 42,
339
- month: 42,
340
- nanos: 42,
341
- seconds: 42,
342
- timeZone: {
343
- id: "Test string",
344
- version: "Test string",
345
- },
346
- utcOffset: "Test string",
347
- year: 42,
348
- },
349
- },
350
- userCohort: "Test string",
351
- });
352
- /** Describes the properties of the metric set. */
353
- await gapi.client.playdeveloperreporting.vitals.slowstartrate.get({
354
- name: "Test string",
355
- });
356
- /** Queries the metrics in the metric set. */
357
- await gapi.client.playdeveloperreporting.vitals.slowstartrate.query({
358
- name: "Test string",
359
- }, {
360
- dimensions: [
361
- "Test string"
362
- ],
363
- filter: "Test string",
364
- metrics: [
365
- "Test string"
366
- ],
367
- pageSize: 42,
368
- pageToken: "Test string",
369
- timelineSpec: {
370
- aggregationPeriod: "Test string",
371
- endTime: {
372
- day: 42,
373
- hours: 42,
374
- minutes: 42,
375
- month: 42,
376
- nanos: 42,
377
- seconds: 42,
378
- timeZone: {
379
- id: "Test string",
380
- version: "Test string",
381
- },
382
- utcOffset: "Test string",
383
- year: 42,
384
- },
385
- startTime: {
386
- day: 42,
387
- hours: 42,
388
- minutes: 42,
389
- month: 42,
390
- nanos: 42,
391
- seconds: 42,
392
- timeZone: {
393
- id: "Test string",
394
- version: "Test string",
395
- },
396
- utcOffset: "Test string",
397
- year: 42,
398
- },
399
- },
400
- userCohort: "Test string",
401
- });
402
- /** Describes the properties of the metric set. */
403
- await gapi.client.playdeveloperreporting.vitals.stuckbackgroundwakelockrate.get({
404
- name: "Test string",
405
- });
406
- /** Queries the metrics in the metric set. */
407
- await gapi.client.playdeveloperreporting.vitals.stuckbackgroundwakelockrate.query({
408
- name: "Test string",
409
- }, {
410
- dimensions: [
411
- "Test string"
412
- ],
413
- filter: "Test string",
414
- metrics: [
415
- "Test string"
416
- ],
417
- pageSize: 42,
418
- pageToken: "Test string",
419
- timelineSpec: {
420
- aggregationPeriod: "Test string",
421
- endTime: {
422
- day: 42,
423
- hours: 42,
424
- minutes: 42,
425
- month: 42,
426
- nanos: 42,
427
- seconds: 42,
428
- timeZone: {
429
- id: "Test string",
430
- version: "Test string",
431
- },
432
- utcOffset: "Test string",
433
- year: 42,
434
- },
435
- startTime: {
436
- day: 42,
437
- hours: 42,
438
- minutes: 42,
439
- month: 42,
440
- nanos: 42,
441
- seconds: 42,
442
- timeZone: {
443
- id: "Test string",
444
- version: "Test string",
445
- },
446
- utcOffset: "Test string",
447
- year: 42,
448
- },
449
- },
450
- userCohort: "Test string",
451
- });
452
- }
453
- });
package/tsconfig.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "commonjs",
4
- "lib": ["es6", "dom"],
5
- "noImplicitAny": true,
6
- "noImplicitThis": true,
7
- "strictNullChecks": true,
8
- "baseUrl": "../",
9
- "typeRoots": [
10
- "../"
11
- ],
12
- "types": [],
13
- "noEmit": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "strictFunctionTypes": true
16
- },
17
- "files": ["index.d.ts", "tests.ts"]
18
- }
package/tslint.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "dtslint/dtslint.json",
3
- "rules": {
4
- "no-redundant-jsdoc": false
5
- }
6
- }