@maxim_mazurok/gapi.client.analyticsadmin-v1beta 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=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230810
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -322,6 +322,9 @@ declare namespace gapi.client {
|
|
|
322
322
|
string;
|
|
323
323
|
}
|
|
324
324
|
interface GoogleAnalyticsAdminV1betaConversionEvent {
|
|
325
|
+
/** 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`. */
|
|
326
|
+
countingMethod?:
|
|
327
|
+
string;
|
|
325
328
|
/** Output only. Time when this conversion event was created in the property. */
|
|
326
329
|
createTime?:
|
|
327
330
|
string;
|
|
@@ -1615,6 +1618,99 @@ declare namespace gapi.client {
|
|
|
1615
1618
|
uploadType?:
|
|
1616
1619
|
string;
|
|
1617
1620
|
}): Request<GoogleAnalyticsAdminV1betaListConversionEventsResponse>;
|
|
1621
|
+
/** Updates a conversion event with the specified attributes. */
|
|
1622
|
+
patch(request: {
|
|
1623
|
+
/** V1 error format. */
|
|
1624
|
+
"$.xgafv"?:
|
|
1625
|
+
string;
|
|
1626
|
+
/** OAuth access token. */
|
|
1627
|
+
access_token?:
|
|
1628
|
+
string;
|
|
1629
|
+
/** Data format for response. */
|
|
1630
|
+
alt?:
|
|
1631
|
+
string;
|
|
1632
|
+
/** JSONP */
|
|
1633
|
+
callback?:
|
|
1634
|
+
string;
|
|
1635
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1636
|
+
fields?:
|
|
1637
|
+
string;
|
|
1638
|
+
/** 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. */
|
|
1639
|
+
key?:
|
|
1640
|
+
string;
|
|
1641
|
+
/** Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event} */
|
|
1642
|
+
name:
|
|
1643
|
+
string;
|
|
1644
|
+
/** OAuth 2.0 token for the current user. */
|
|
1645
|
+
oauth_token?:
|
|
1646
|
+
string;
|
|
1647
|
+
/** Returns response with indentations and line breaks. */
|
|
1648
|
+
prettyPrint?:
|
|
1649
|
+
boolean;
|
|
1650
|
+
/** 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. */
|
|
1651
|
+
quotaUser?:
|
|
1652
|
+
string;
|
|
1653
|
+
/**
|
|
1654
|
+
* 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
|
|
1655
|
+
* one path with the string "*" to match all fields.
|
|
1656
|
+
*/
|
|
1657
|
+
updateMask?:
|
|
1658
|
+
string;
|
|
1659
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1660
|
+
upload_protocol?:
|
|
1661
|
+
string;
|
|
1662
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1663
|
+
uploadType?:
|
|
1664
|
+
string;
|
|
1665
|
+
/** Request body */
|
|
1666
|
+
resource:
|
|
1667
|
+
GoogleAnalyticsAdminV1betaConversionEvent;
|
|
1668
|
+
}): Request<GoogleAnalyticsAdminV1betaConversionEvent>;
|
|
1669
|
+
patch(request: {
|
|
1670
|
+
/** V1 error format. */
|
|
1671
|
+
"$.xgafv"?:
|
|
1672
|
+
string;
|
|
1673
|
+
/** OAuth access token. */
|
|
1674
|
+
access_token?:
|
|
1675
|
+
string;
|
|
1676
|
+
/** Data format for response. */
|
|
1677
|
+
alt?:
|
|
1678
|
+
string;
|
|
1679
|
+
/** JSONP */
|
|
1680
|
+
callback?:
|
|
1681
|
+
string;
|
|
1682
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1683
|
+
fields?:
|
|
1684
|
+
string;
|
|
1685
|
+
/** 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. */
|
|
1686
|
+
key?:
|
|
1687
|
+
string;
|
|
1688
|
+
/** Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event} */
|
|
1689
|
+
name:
|
|
1690
|
+
string;
|
|
1691
|
+
/** OAuth 2.0 token for the current user. */
|
|
1692
|
+
oauth_token?:
|
|
1693
|
+
string;
|
|
1694
|
+
/** Returns response with indentations and line breaks. */
|
|
1695
|
+
prettyPrint?:
|
|
1696
|
+
boolean;
|
|
1697
|
+
/** 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. */
|
|
1698
|
+
quotaUser?:
|
|
1699
|
+
string;
|
|
1700
|
+
/**
|
|
1701
|
+
* 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
|
|
1702
|
+
* one path with the string "*" to match all fields.
|
|
1703
|
+
*/
|
|
1704
|
+
updateMask?:
|
|
1705
|
+
string;
|
|
1706
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1707
|
+
upload_protocol?:
|
|
1708
|
+
string;
|
|
1709
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1710
|
+
uploadType?:
|
|
1711
|
+
string;
|
|
1712
|
+
},
|
|
1713
|
+
body: GoogleAnalyticsAdminV1betaConversionEvent): Request<GoogleAnalyticsAdminV1betaConversionEvent>;
|
|
1618
1714
|
}
|
|
1619
1715
|
interface CustomDimensionsResource {
|
|
1620
1716
|
/** 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 */
|
|
@@ -435,6 +435,7 @@ gapi.load('client', async () => {
|
|
|
435
435
|
await gapi.client.analyticsadmin.properties.conversionEvents.create({
|
|
436
436
|
parent: "Test string",
|
|
437
437
|
}, {
|
|
438
|
+
countingMethod: "Test string",
|
|
438
439
|
createTime: "Test string",
|
|
439
440
|
custom: true,
|
|
440
441
|
deletable: true,
|
|
@@ -455,6 +456,18 @@ gapi.load('client', async () => {
|
|
|
455
456
|
pageToken: "Test string",
|
|
456
457
|
parent: "Test string",
|
|
457
458
|
});
|
|
459
|
+
/** Updates a conversion event with the specified attributes. */
|
|
460
|
+
await gapi.client.analyticsadmin.properties.conversionEvents.patch({
|
|
461
|
+
name: "Test string",
|
|
462
|
+
updateMask: "Test string",
|
|
463
|
+
}, {
|
|
464
|
+
countingMethod: "Test string",
|
|
465
|
+
createTime: "Test string",
|
|
466
|
+
custom: true,
|
|
467
|
+
deletable: true,
|
|
468
|
+
eventName: "Test string",
|
|
469
|
+
name: "Test string",
|
|
470
|
+
});
|
|
458
471
|
/** Archives a CustomDimension on a property. */
|
|
459
472
|
await gapi.client.analyticsadmin.properties.customDimensions.archive({
|
|
460
473
|
name: "Test string",
|