@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230808 → 0.0.20230810
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 +97 -1
- package/package.json +1 -1
- package/tests.ts +14 -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: 20230810
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -833,6 +833,9 @@ declare namespace gapi.client {
|
|
|
833
833
|
string;
|
|
834
834
|
}
|
|
835
835
|
interface GoogleAnalyticsAdminV1alphaConversionEvent {
|
|
836
|
+
/** Optional. The method by which conversions will be counted across multiple events within a session. If this value is not provided, it will be set to `ONCE_PER_EVENT`. */
|
|
837
|
+
countingMethod?:
|
|
838
|
+
string;
|
|
836
839
|
/** Output only. Time when this conversion event was created in the property. */
|
|
837
840
|
createTime?:
|
|
838
841
|
string;
|
|
@@ -5516,6 +5519,99 @@ declare namespace gapi.client {
|
|
|
5516
5519
|
uploadType?:
|
|
5517
5520
|
string;
|
|
5518
5521
|
}): Request<GoogleAnalyticsAdminV1alphaListConversionEventsResponse>;
|
|
5522
|
+
/** Updates a conversion event with the specified attributes. */
|
|
5523
|
+
patch(request: {
|
|
5524
|
+
/** V1 error format. */
|
|
5525
|
+
"$.xgafv"?:
|
|
5526
|
+
string;
|
|
5527
|
+
/** OAuth access token. */
|
|
5528
|
+
access_token?:
|
|
5529
|
+
string;
|
|
5530
|
+
/** Data format for response. */
|
|
5531
|
+
alt?:
|
|
5532
|
+
string;
|
|
5533
|
+
/** JSONP */
|
|
5534
|
+
callback?:
|
|
5535
|
+
string;
|
|
5536
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5537
|
+
fields?:
|
|
5538
|
+
string;
|
|
5539
|
+
/** 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. */
|
|
5540
|
+
key?:
|
|
5541
|
+
string;
|
|
5542
|
+
/** Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event} */
|
|
5543
|
+
name:
|
|
5544
|
+
string;
|
|
5545
|
+
/** OAuth 2.0 token for the current user. */
|
|
5546
|
+
oauth_token?:
|
|
5547
|
+
string;
|
|
5548
|
+
/** Returns response with indentations and line breaks. */
|
|
5549
|
+
prettyPrint?:
|
|
5550
|
+
boolean;
|
|
5551
|
+
/** 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. */
|
|
5552
|
+
quotaUser?:
|
|
5553
|
+
string;
|
|
5554
|
+
/**
|
|
5555
|
+
* Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
|
|
5556
|
+
* one path with the string "*" to match all fields.
|
|
5557
|
+
*/
|
|
5558
|
+
updateMask?:
|
|
5559
|
+
string;
|
|
5560
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5561
|
+
upload_protocol?:
|
|
5562
|
+
string;
|
|
5563
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5564
|
+
uploadType?:
|
|
5565
|
+
string;
|
|
5566
|
+
/** Request body */
|
|
5567
|
+
resource:
|
|
5568
|
+
GoogleAnalyticsAdminV1alphaConversionEvent;
|
|
5569
|
+
}): Request<GoogleAnalyticsAdminV1alphaConversionEvent>;
|
|
5570
|
+
patch(request: {
|
|
5571
|
+
/** V1 error format. */
|
|
5572
|
+
"$.xgafv"?:
|
|
5573
|
+
string;
|
|
5574
|
+
/** OAuth access token. */
|
|
5575
|
+
access_token?:
|
|
5576
|
+
string;
|
|
5577
|
+
/** Data format for response. */
|
|
5578
|
+
alt?:
|
|
5579
|
+
string;
|
|
5580
|
+
/** JSONP */
|
|
5581
|
+
callback?:
|
|
5582
|
+
string;
|
|
5583
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5584
|
+
fields?:
|
|
5585
|
+
string;
|
|
5586
|
+
/** 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. */
|
|
5587
|
+
key?:
|
|
5588
|
+
string;
|
|
5589
|
+
/** Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event} */
|
|
5590
|
+
name:
|
|
5591
|
+
string;
|
|
5592
|
+
/** OAuth 2.0 token for the current user. */
|
|
5593
|
+
oauth_token?:
|
|
5594
|
+
string;
|
|
5595
|
+
/** Returns response with indentations and line breaks. */
|
|
5596
|
+
prettyPrint?:
|
|
5597
|
+
boolean;
|
|
5598
|
+
/** 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. */
|
|
5599
|
+
quotaUser?:
|
|
5600
|
+
string;
|
|
5601
|
+
/**
|
|
5602
|
+
* Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
|
|
5603
|
+
* one path with the string "*" to match all fields.
|
|
5604
|
+
*/
|
|
5605
|
+
updateMask?:
|
|
5606
|
+
string;
|
|
5607
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5608
|
+
upload_protocol?:
|
|
5609
|
+
string;
|
|
5610
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5611
|
+
uploadType?:
|
|
5612
|
+
string;
|
|
5613
|
+
},
|
|
5614
|
+
body: GoogleAnalyticsAdminV1alphaConversionEvent): Request<GoogleAnalyticsAdminV1alphaConversionEvent>;
|
|
5519
5615
|
}
|
|
5520
5616
|
interface CustomDimensionsResource {
|
|
5521
5617
|
/** Archives a CustomDimension on a property. */
|
package/package.json
CHANGED
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: 20230810
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1155,6 +1155,7 @@ gapi.load('client', async () => {
|
|
|
1155
1155
|
await gapi.client.analyticsadmin.properties.conversionEvents.create({
|
|
1156
1156
|
parent: "Test string",
|
|
1157
1157
|
}, {
|
|
1158
|
+
countingMethod: "Test string",
|
|
1158
1159
|
createTime: "Test string",
|
|
1159
1160
|
custom: true,
|
|
1160
1161
|
deletable: true,
|
|
@@ -1175,6 +1176,18 @@ gapi.load('client', async () => {
|
|
|
1175
1176
|
pageToken: "Test string",
|
|
1176
1177
|
parent: "Test string",
|
|
1177
1178
|
});
|
|
1179
|
+
/** Updates a conversion event with the specified attributes. */
|
|
1180
|
+
await gapi.client.analyticsadmin.properties.conversionEvents.patch({
|
|
1181
|
+
name: "Test string",
|
|
1182
|
+
updateMask: "Test string",
|
|
1183
|
+
}, {
|
|
1184
|
+
countingMethod: "Test string",
|
|
1185
|
+
createTime: "Test string",
|
|
1186
|
+
custom: true,
|
|
1187
|
+
deletable: true,
|
|
1188
|
+
eventName: "Test string",
|
|
1189
|
+
name: "Test string",
|
|
1190
|
+
});
|
|
1178
1191
|
/** Archives a CustomDimension on a property. */
|
|
1179
1192
|
await gapi.client.analyticsadmin.properties.customDimensions.archive({
|
|
1180
1193
|
name: "Test string",
|