@maxim_mazurok/gapi.client.playdeveloperreporting-v1alpha1 0.0.20220811

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 ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@maxim_mazurok/gapi.client.playdeveloperreporting-v1alpha1",
3
+ "version": "0.0.20220811",
4
+ "description": "TypeScript typings for Google Play Developer Reporting API v1alpha1",
5
+ "license": "MIT",
6
+ "author": {
7
+ "email": "maxim@mazurok.com",
8
+ "name": "Maxim Mazurok",
9
+ "url": "https://maxim.mazurok.com"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
14
+ },
15
+ "types": "index.d.ts",
16
+ "dependencies": {
17
+ "@types/gapi.client": "*",
18
+ "@types/gapi.client.discovery": "*"
19
+ }
20
+ }
package/readme.md ADDED
@@ -0,0 +1,52 @@
1
+ # TypeScript typings for Google Play Developer Reporting API v1alpha1
2
+
3
+
4
+ For detailed description please check [documentation](https://developers.google.com/play/developer/reporting).
5
+
6
+ ## Installing
7
+
8
+ Install typings for Google Play Developer Reporting API:
9
+
10
+ ```
11
+ npm install @types/gapi.client.playdeveloperreporting-v1alpha1 --save-dev
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ You need to initialize Google API client in your code:
17
+
18
+ ```typescript
19
+ gapi.load('client', () => {
20
+ // now we can use gapi.client
21
+ // ...
22
+ });
23
+ ```
24
+
25
+ Then load api client wrapper:
26
+
27
+ ```typescript
28
+ gapi.client.load('https://playdeveloperreporting.googleapis.com/$discovery/rest?version=v1alpha1', () => {
29
+ // now we can use:
30
+ // gapi.client.playdeveloperreporting
31
+ });
32
+ ```
33
+
34
+ ```typescript
35
+ // Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
36
+ gapi.client.load('playdeveloperreporting', 'v1alpha1', () => {
37
+ // now we can use:
38
+ // gapi.client.playdeveloperreporting
39
+ });
40
+ ```
41
+
42
+
43
+
44
+ After that you can use Google Play Developer Reporting API resources: <!-- TODO: make this work for multiple namespaces -->
45
+
46
+ ```typescript
47
+
48
+ /*
49
+ Lists anomalies in any of the datasets.
50
+ */
51
+ await gapi.client.playdeveloperreporting.anomalies.list({ parent: "parent", });
52
+ ```
package/tests.ts ADDED
@@ -0,0 +1,324 @@
1
+ /* This is stub file for gapi.client.playdeveloperreporting-v1alpha1 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: 20220811
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=v1alpha1');
12
+ /** now we can use gapi.client.playdeveloperreporting */
13
+
14
+ run();
15
+
16
+ async function run() {
17
+ /** Lists anomalies in any of the datasets. */
18
+ await gapi.client.playdeveloperreporting.anomalies.list({
19
+ filter: "Test string",
20
+ pageSize: 42,
21
+ pageToken: "Test string",
22
+ parent: "Test string",
23
+ });
24
+ /** Describes the properties of the metric set. */
25
+ await gapi.client.playdeveloperreporting.vitals.anrrate.get({
26
+ name: "Test string",
27
+ });
28
+ /** Queries the metrics in the metric set. */
29
+ await gapi.client.playdeveloperreporting.vitals.anrrate.query({
30
+ name: "Test string",
31
+ }, {
32
+ dimensions: [
33
+ "Test string"
34
+ ],
35
+ filter: "Test string",
36
+ metrics: [
37
+ "Test string"
38
+ ],
39
+ pageSize: 42,
40
+ pageToken: "Test string",
41
+ timelineSpec: {
42
+ aggregationPeriod: "Test string",
43
+ endTime: {
44
+ day: 42,
45
+ hours: 42,
46
+ minutes: 42,
47
+ month: 42,
48
+ nanos: 42,
49
+ seconds: 42,
50
+ timeZone: {
51
+ id: "Test string",
52
+ version: "Test string",
53
+ },
54
+ utcOffset: "Test string",
55
+ year: 42,
56
+ },
57
+ startTime: {
58
+ day: 42,
59
+ hours: 42,
60
+ minutes: 42,
61
+ month: 42,
62
+ nanos: 42,
63
+ seconds: 42,
64
+ timeZone: {
65
+ id: "Test string",
66
+ version: "Test string",
67
+ },
68
+ utcOffset: "Test string",
69
+ year: 42,
70
+ },
71
+ },
72
+ });
73
+ /** Describes the properties of the metric set. */
74
+ await gapi.client.playdeveloperreporting.vitals.crashrate.get({
75
+ name: "Test string",
76
+ });
77
+ /** Queries the metrics in the metric set. */
78
+ await gapi.client.playdeveloperreporting.vitals.crashrate.query({
79
+ name: "Test string",
80
+ }, {
81
+ dimensions: [
82
+ "Test string"
83
+ ],
84
+ filter: "Test string",
85
+ metrics: [
86
+ "Test string"
87
+ ],
88
+ pageSize: 42,
89
+ pageToken: "Test string",
90
+ timelineSpec: {
91
+ aggregationPeriod: "Test string",
92
+ endTime: {
93
+ day: 42,
94
+ hours: 42,
95
+ minutes: 42,
96
+ month: 42,
97
+ nanos: 42,
98
+ seconds: 42,
99
+ timeZone: {
100
+ id: "Test string",
101
+ version: "Test string",
102
+ },
103
+ utcOffset: "Test string",
104
+ year: 42,
105
+ },
106
+ startTime: {
107
+ day: 42,
108
+ hours: 42,
109
+ minutes: 42,
110
+ month: 42,
111
+ nanos: 42,
112
+ seconds: 42,
113
+ timeZone: {
114
+ id: "Test string",
115
+ version: "Test string",
116
+ },
117
+ utcOffset: "Test string",
118
+ year: 42,
119
+ },
120
+ },
121
+ });
122
+ /** Describes the properties of the metrics set. */
123
+ await gapi.client.playdeveloperreporting.vitals.errors.counts.get({
124
+ name: "Test string",
125
+ });
126
+ /** Queries the metrics in the metrics set. */
127
+ await gapi.client.playdeveloperreporting.vitals.errors.counts.query({
128
+ name: "Test string",
129
+ }, {
130
+ dimensions: [
131
+ "Test string"
132
+ ],
133
+ filter: "Test string",
134
+ metrics: [
135
+ "Test string"
136
+ ],
137
+ pageSize: 42,
138
+ pageToken: "Test string",
139
+ timelineSpec: {
140
+ aggregationPeriod: "Test string",
141
+ endTime: {
142
+ day: 42,
143
+ hours: 42,
144
+ minutes: 42,
145
+ month: 42,
146
+ nanos: 42,
147
+ seconds: 42,
148
+ timeZone: {
149
+ id: "Test string",
150
+ version: "Test string",
151
+ },
152
+ utcOffset: "Test string",
153
+ year: 42,
154
+ },
155
+ startTime: {
156
+ day: 42,
157
+ hours: 42,
158
+ minutes: 42,
159
+ month: 42,
160
+ nanos: 42,
161
+ seconds: 42,
162
+ timeZone: {
163
+ id: "Test string",
164
+ version: "Test string",
165
+ },
166
+ utcOffset: "Test string",
167
+ year: 42,
168
+ },
169
+ },
170
+ });
171
+ /** Searches all error issues in which reports have been grouped. */
172
+ await gapi.client.playdeveloperreporting.vitals.errors.issues.search({
173
+ filter: "Test string",
174
+ "interval.endTime.day": 42,
175
+ "interval.endTime.hours": 42,
176
+ "interval.endTime.minutes": 42,
177
+ "interval.endTime.month": 42,
178
+ "interval.endTime.nanos": 42,
179
+ "interval.endTime.seconds": 42,
180
+ "interval.endTime.timeZone.id": "Test string",
181
+ "interval.endTime.timeZone.version": "Test string",
182
+ "interval.endTime.utcOffset": "Test string",
183
+ "interval.endTime.year": 42,
184
+ "interval.startTime.day": 42,
185
+ "interval.startTime.hours": 42,
186
+ "interval.startTime.minutes": 42,
187
+ "interval.startTime.month": 42,
188
+ "interval.startTime.nanos": 42,
189
+ "interval.startTime.seconds": 42,
190
+ "interval.startTime.timeZone.id": "Test string",
191
+ "interval.startTime.timeZone.version": "Test string",
192
+ "interval.startTime.utcOffset": "Test string",
193
+ "interval.startTime.year": 42,
194
+ pageSize: 42,
195
+ pageToken: "Test string",
196
+ parent: "Test string",
197
+ });
198
+ /** Searches all error reports received for an app. */
199
+ await gapi.client.playdeveloperreporting.vitals.errors.reports.search({
200
+ filter: "Test string",
201
+ "interval.endTime.day": 42,
202
+ "interval.endTime.hours": 42,
203
+ "interval.endTime.minutes": 42,
204
+ "interval.endTime.month": 42,
205
+ "interval.endTime.nanos": 42,
206
+ "interval.endTime.seconds": 42,
207
+ "interval.endTime.timeZone.id": "Test string",
208
+ "interval.endTime.timeZone.version": "Test string",
209
+ "interval.endTime.utcOffset": "Test string",
210
+ "interval.endTime.year": 42,
211
+ "interval.startTime.day": 42,
212
+ "interval.startTime.hours": 42,
213
+ "interval.startTime.minutes": 42,
214
+ "interval.startTime.month": 42,
215
+ "interval.startTime.nanos": 42,
216
+ "interval.startTime.seconds": 42,
217
+ "interval.startTime.timeZone.id": "Test string",
218
+ "interval.startTime.timeZone.version": "Test string",
219
+ "interval.startTime.utcOffset": "Test string",
220
+ "interval.startTime.year": 42,
221
+ pageSize: 42,
222
+ pageToken: "Test string",
223
+ parent: "Test string",
224
+ });
225
+ /** Describes the properties of the metric set. */
226
+ await gapi.client.playdeveloperreporting.vitals.excessivewakeuprate.get({
227
+ name: "Test string",
228
+ });
229
+ /** Queries the metrics in the metric set. */
230
+ await gapi.client.playdeveloperreporting.vitals.excessivewakeuprate.query({
231
+ name: "Test string",
232
+ }, {
233
+ dimensions: [
234
+ "Test string"
235
+ ],
236
+ filter: "Test string",
237
+ metrics: [
238
+ "Test string"
239
+ ],
240
+ pageSize: 42,
241
+ pageToken: "Test string",
242
+ timelineSpec: {
243
+ aggregationPeriod: "Test string",
244
+ endTime: {
245
+ day: 42,
246
+ hours: 42,
247
+ minutes: 42,
248
+ month: 42,
249
+ nanos: 42,
250
+ seconds: 42,
251
+ timeZone: {
252
+ id: "Test string",
253
+ version: "Test string",
254
+ },
255
+ utcOffset: "Test string",
256
+ year: 42,
257
+ },
258
+ startTime: {
259
+ day: 42,
260
+ hours: 42,
261
+ minutes: 42,
262
+ month: 42,
263
+ nanos: 42,
264
+ seconds: 42,
265
+ timeZone: {
266
+ id: "Test string",
267
+ version: "Test string",
268
+ },
269
+ utcOffset: "Test string",
270
+ year: 42,
271
+ },
272
+ },
273
+ });
274
+ /** Describes the properties of the metric set. */
275
+ await gapi.client.playdeveloperreporting.vitals.stuckbackgroundwakelockrate.get({
276
+ name: "Test string",
277
+ });
278
+ /** Queries the metrics in the metric set. */
279
+ await gapi.client.playdeveloperreporting.vitals.stuckbackgroundwakelockrate.query({
280
+ name: "Test string",
281
+ }, {
282
+ dimensions: [
283
+ "Test string"
284
+ ],
285
+ filter: "Test string",
286
+ metrics: [
287
+ "Test string"
288
+ ],
289
+ pageSize: 42,
290
+ pageToken: "Test string",
291
+ timelineSpec: {
292
+ aggregationPeriod: "Test string",
293
+ endTime: {
294
+ day: 42,
295
+ hours: 42,
296
+ minutes: 42,
297
+ month: 42,
298
+ nanos: 42,
299
+ seconds: 42,
300
+ timeZone: {
301
+ id: "Test string",
302
+ version: "Test string",
303
+ },
304
+ utcOffset: "Test string",
305
+ year: 42,
306
+ },
307
+ startTime: {
308
+ day: 42,
309
+ hours: 42,
310
+ minutes: 42,
311
+ month: 42,
312
+ nanos: 42,
313
+ seconds: 42,
314
+ timeZone: {
315
+ id: "Test string",
316
+ version: "Test string",
317
+ },
318
+ utcOffset: "Test string",
319
+ year: 42,
320
+ },
321
+ },
322
+ });
323
+ }
324
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
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 ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "dtslint/dtslint.json",
3
+ "rules": {
4
+ "no-redundant-jsdoc": false
5
+ }
6
+ }