@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230221 → 0.0.20230223
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/index.d.ts +86 -5
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +124 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230223
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1109,7 +1109,10 @@ declare namespace gapi.client {
|
|
|
1109
1109
|
offset?: string;
|
|
1110
1110
|
/** Specifies how rows are ordered in the response. */
|
|
1111
1111
|
orderBys?: GoogleAnalyticsAdminV1alphaAccessOrderBy[];
|
|
1112
|
-
/**
|
|
1112
|
+
/**
|
|
1113
|
+
* Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level requests, this field must be
|
|
1114
|
+
* false.
|
|
1115
|
+
*/
|
|
1113
1116
|
returnEntityQuota?: boolean;
|
|
1114
1117
|
/**
|
|
1115
1118
|
* This request's time zone if specified. If unspecified, the property's time zone is used. The request's time zone is used to interpret the start & end dates of the report. Formatted
|
|
@@ -1125,7 +1128,7 @@ declare namespace gapi.client {
|
|
|
1125
1128
|
dimensionHeaders?: GoogleAnalyticsAdminV1alphaAccessDimensionHeader[];
|
|
1126
1129
|
/** The header for a column in the report that corresponds to a specific metric. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. */
|
|
1127
1130
|
metricHeaders?: GoogleAnalyticsAdminV1alphaAccessMetricHeader[];
|
|
1128
|
-
/** The quota state for this Analytics property including this request. */
|
|
1131
|
+
/** The quota state for this Analytics property including this request. This field doesn't work with account-level requests. */
|
|
1129
1132
|
quota?: GoogleAnalyticsAdminV1alphaAccessQuota;
|
|
1130
1133
|
/**
|
|
1131
1134
|
* The total number of rows in the query result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request
|
|
@@ -2392,6 +2395,76 @@ declare namespace gapi.client {
|
|
|
2392
2395
|
uploadType?: string;
|
|
2393
2396
|
},
|
|
2394
2397
|
body: GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest): Request<GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse>;
|
|
2398
|
+
/**
|
|
2399
|
+
* Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2
|
|
2400
|
+
* years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records
|
|
2401
|
+
* include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records
|
|
2402
|
+
* don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see
|
|
2403
|
+
* [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
2404
|
+
*/
|
|
2405
|
+
runAccessReport(request: {
|
|
2406
|
+
/** V1 error format. */
|
|
2407
|
+
"$.xgafv"?: string;
|
|
2408
|
+
/** OAuth access token. */
|
|
2409
|
+
access_token?: string;
|
|
2410
|
+
/** Data format for response. */
|
|
2411
|
+
alt?: string;
|
|
2412
|
+
/** JSONP */
|
|
2413
|
+
callback?: string;
|
|
2414
|
+
/**
|
|
2415
|
+
* The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties
|
|
2416
|
+
* under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your GA4 property ID. To request at the account level, entity
|
|
2417
|
+
* should be for example 'accounts/1234' if "1234" is your GA4 Account ID.
|
|
2418
|
+
*/
|
|
2419
|
+
entity: string;
|
|
2420
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2421
|
+
fields?: string;
|
|
2422
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2423
|
+
key?: string;
|
|
2424
|
+
/** OAuth 2.0 token for the current user. */
|
|
2425
|
+
oauth_token?: string;
|
|
2426
|
+
/** Returns response with indentations and line breaks. */
|
|
2427
|
+
prettyPrint?: boolean;
|
|
2428
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2429
|
+
quotaUser?: string;
|
|
2430
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2431
|
+
upload_protocol?: string;
|
|
2432
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2433
|
+
uploadType?: string;
|
|
2434
|
+
/** Request body */
|
|
2435
|
+
resource: GoogleAnalyticsAdminV1alphaRunAccessReportRequest;
|
|
2436
|
+
}): Request<GoogleAnalyticsAdminV1alphaRunAccessReportResponse>;
|
|
2437
|
+
runAccessReport(request: {
|
|
2438
|
+
/** V1 error format. */
|
|
2439
|
+
"$.xgafv"?: string;
|
|
2440
|
+
/** OAuth access token. */
|
|
2441
|
+
access_token?: string;
|
|
2442
|
+
/** Data format for response. */
|
|
2443
|
+
alt?: string;
|
|
2444
|
+
/** JSONP */
|
|
2445
|
+
callback?: string;
|
|
2446
|
+
/**
|
|
2447
|
+
* The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties
|
|
2448
|
+
* under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your GA4 property ID. To request at the account level, entity
|
|
2449
|
+
* should be for example 'accounts/1234' if "1234" is your GA4 Account ID.
|
|
2450
|
+
*/
|
|
2451
|
+
entity: string;
|
|
2452
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2453
|
+
fields?: string;
|
|
2454
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2455
|
+
key?: string;
|
|
2456
|
+
/** OAuth 2.0 token for the current user. */
|
|
2457
|
+
oauth_token?: string;
|
|
2458
|
+
/** Returns response with indentations and line breaks. */
|
|
2459
|
+
prettyPrint?: boolean;
|
|
2460
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2461
|
+
quotaUser?: string;
|
|
2462
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2463
|
+
upload_protocol?: string;
|
|
2464
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2465
|
+
uploadType?: string;
|
|
2466
|
+
},
|
|
2467
|
+
body: GoogleAnalyticsAdminV1alphaRunAccessReportRequest): Request<GoogleAnalyticsAdminV1alphaRunAccessReportResponse>;
|
|
2395
2468
|
/** Searches through all changes to an account or its children given the specified set of filters. */
|
|
2396
2469
|
searchChangeHistoryEvents(request: {
|
|
2397
2470
|
/** V1 error format. */
|
|
@@ -6425,7 +6498,11 @@ declare namespace gapi.client {
|
|
|
6425
6498
|
alt?: string;
|
|
6426
6499
|
/** JSONP */
|
|
6427
6500
|
callback?: string;
|
|
6428
|
-
/**
|
|
6501
|
+
/**
|
|
6502
|
+
* The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties
|
|
6503
|
+
* under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your GA4 property ID. To request at the account level, entity
|
|
6504
|
+
* should be for example 'accounts/1234' if "1234" is your GA4 Account ID.
|
|
6505
|
+
*/
|
|
6429
6506
|
entity: string;
|
|
6430
6507
|
/** Selector specifying which fields to include in a partial response. */
|
|
6431
6508
|
fields?: string;
|
|
@@ -6453,7 +6530,11 @@ declare namespace gapi.client {
|
|
|
6453
6530
|
alt?: string;
|
|
6454
6531
|
/** JSONP */
|
|
6455
6532
|
callback?: string;
|
|
6456
|
-
/**
|
|
6533
|
+
/**
|
|
6534
|
+
* The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties
|
|
6535
|
+
* under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your GA4 property ID. To request at the account level, entity
|
|
6536
|
+
* should be for example 'accounts/1234' if "1234" is your GA4 Account ID.
|
|
6537
|
+
*/
|
|
6457
6538
|
entity: string;
|
|
6458
6539
|
/** Selector specifying which fields to include in a partial response. */
|
|
6459
6540
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -105,6 +105,11 @@ Requests a ticket for creating an account.
|
|
|
105
105
|
*/
|
|
106
106
|
await gapi.client.analyticsadmin.accounts.provisionAccountTicket({ });
|
|
107
107
|
|
|
108
|
+
/*
|
|
109
|
+
Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
110
|
+
*/
|
|
111
|
+
await gapi.client.analyticsadmin.accounts.runAccessReport({ entity: "entity", });
|
|
112
|
+
|
|
108
113
|
/*
|
|
109
114
|
Searches through all changes to an account or its children given the specified set of filters.
|
|
110
115
|
*/
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230223
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -85,6 +85,129 @@ gapi.load('client', async () => {
|
|
|
85
85
|
},
|
|
86
86
|
redirectUri: "Test string",
|
|
87
87
|
});
|
|
88
|
+
/**
|
|
89
|
+
* Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years.
|
|
90
|
+
* Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4
|
|
91
|
+
* UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include
|
|
92
|
+
* property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see
|
|
93
|
+
* [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
94
|
+
*/
|
|
95
|
+
await gapi.client.analyticsadmin.accounts.runAccessReport({
|
|
96
|
+
entity: "Test string",
|
|
97
|
+
}, {
|
|
98
|
+
dateRanges: [
|
|
99
|
+
{
|
|
100
|
+
endDate: "Test string",
|
|
101
|
+
startDate: "Test string",
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
dimensionFilter: {
|
|
105
|
+
accessFilter: {
|
|
106
|
+
betweenFilter: {
|
|
107
|
+
fromValue: {
|
|
108
|
+
doubleValue: 42,
|
|
109
|
+
int64Value: "Test string",
|
|
110
|
+
},
|
|
111
|
+
toValue: {
|
|
112
|
+
doubleValue: 42,
|
|
113
|
+
int64Value: "Test string",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
fieldName: "Test string",
|
|
117
|
+
inListFilter: {
|
|
118
|
+
caseSensitive: true,
|
|
119
|
+
values: [
|
|
120
|
+
"Test string"
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
numericFilter: {
|
|
124
|
+
operation: "Test string",
|
|
125
|
+
value: {
|
|
126
|
+
doubleValue: 42,
|
|
127
|
+
int64Value: "Test string",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
stringFilter: {
|
|
131
|
+
caseSensitive: true,
|
|
132
|
+
matchType: "Test string",
|
|
133
|
+
value: "Test string",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
andGroup: {
|
|
137
|
+
expressions: undefined,
|
|
138
|
+
},
|
|
139
|
+
notExpression: undefined,
|
|
140
|
+
orGroup: {
|
|
141
|
+
expressions: undefined,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
dimensions: [
|
|
145
|
+
{
|
|
146
|
+
dimensionName: "Test string",
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
limit: "Test string",
|
|
150
|
+
metricFilter: {
|
|
151
|
+
accessFilter: {
|
|
152
|
+
betweenFilter: {
|
|
153
|
+
fromValue: {
|
|
154
|
+
doubleValue: 42,
|
|
155
|
+
int64Value: "Test string",
|
|
156
|
+
},
|
|
157
|
+
toValue: {
|
|
158
|
+
doubleValue: 42,
|
|
159
|
+
int64Value: "Test string",
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
fieldName: "Test string",
|
|
163
|
+
inListFilter: {
|
|
164
|
+
caseSensitive: true,
|
|
165
|
+
values: [
|
|
166
|
+
"Test string"
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
numericFilter: {
|
|
170
|
+
operation: "Test string",
|
|
171
|
+
value: {
|
|
172
|
+
doubleValue: 42,
|
|
173
|
+
int64Value: "Test string",
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
stringFilter: {
|
|
177
|
+
caseSensitive: true,
|
|
178
|
+
matchType: "Test string",
|
|
179
|
+
value: "Test string",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
andGroup: {
|
|
183
|
+
expressions: undefined,
|
|
184
|
+
},
|
|
185
|
+
notExpression: undefined,
|
|
186
|
+
orGroup: {
|
|
187
|
+
expressions: undefined,
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
metrics: [
|
|
191
|
+
{
|
|
192
|
+
metricName: "Test string",
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
offset: "Test string",
|
|
196
|
+
orderBys: [
|
|
197
|
+
{
|
|
198
|
+
desc: true,
|
|
199
|
+
dimension: {
|
|
200
|
+
dimensionName: "Test string",
|
|
201
|
+
orderType: "Test string",
|
|
202
|
+
},
|
|
203
|
+
metric: {
|
|
204
|
+
metricName: "Test string",
|
|
205
|
+
},
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
returnEntityQuota: true,
|
|
209
|
+
timeZone: "Test string",
|
|
210
|
+
});
|
|
88
211
|
/** Searches through all changes to an account or its children given the specified set of filters. */
|
|
89
212
|
await gapi.client.analyticsadmin.accounts.searchChangeHistoryEvents({
|
|
90
213
|
account: "Test string",
|