@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230216 → 0.0.20230221

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.
Files changed (3) hide show
  1. package/index.d.ts +220 -1
  2. package/package.json +1 -1
  3. package/tests.ts +86 -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: 20230216
12
+ // Revision: 20230221
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -949,6 +949,12 @@ declare namespace gapi.client {
949
949
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
950
950
  nextPageToken?: string;
951
951
  }
952
+ interface GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse {
953
+ /** List of ExpandedDataSet. These will be ordered stably, but in an arbitrary order. */
954
+ expandedDataSets?: GoogleAnalyticsAdminV1alphaExpandedDataSet[];
955
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
956
+ nextPageToken?: string;
957
+ }
952
958
  interface GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse {
953
959
  /** List of FirebaseLinks. This will have at most one value. */
954
960
  firebaseLinks?: GoogleAnalyticsAdminV1alphaFirebaseLink[];
@@ -4765,6 +4771,218 @@ declare namespace gapi.client {
4765
4771
  },
4766
4772
  body: GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink): Request<GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink>;
4767
4773
  }
4774
+ interface ExpandedDataSetsResource {
4775
+ /** Creates a ExpandedDataSet. */
4776
+ create(request: {
4777
+ /** V1 error format. */
4778
+ "$.xgafv"?: string;
4779
+ /** OAuth access token. */
4780
+ access_token?: string;
4781
+ /** Data format for response. */
4782
+ alt?: string;
4783
+ /** JSONP */
4784
+ callback?: string;
4785
+ /** Selector specifying which fields to include in a partial response. */
4786
+ fields?: string;
4787
+ /** 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. */
4788
+ key?: string;
4789
+ /** OAuth 2.0 token for the current user. */
4790
+ oauth_token?: string;
4791
+ /** Required. Example format: properties/1234 */
4792
+ parent: string;
4793
+ /** Returns response with indentations and line breaks. */
4794
+ prettyPrint?: boolean;
4795
+ /** 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. */
4796
+ quotaUser?: string;
4797
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4798
+ upload_protocol?: string;
4799
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4800
+ uploadType?: string;
4801
+ /** Request body */
4802
+ resource: GoogleAnalyticsAdminV1alphaExpandedDataSet;
4803
+ }): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
4804
+ create(request: {
4805
+ /** V1 error format. */
4806
+ "$.xgafv"?: string;
4807
+ /** OAuth access token. */
4808
+ access_token?: string;
4809
+ /** Data format for response. */
4810
+ alt?: string;
4811
+ /** JSONP */
4812
+ callback?: string;
4813
+ /** Selector specifying which fields to include in a partial response. */
4814
+ fields?: string;
4815
+ /** 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. */
4816
+ key?: string;
4817
+ /** OAuth 2.0 token for the current user. */
4818
+ oauth_token?: string;
4819
+ /** Required. Example format: properties/1234 */
4820
+ parent: string;
4821
+ /** Returns response with indentations and line breaks. */
4822
+ prettyPrint?: boolean;
4823
+ /** 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. */
4824
+ quotaUser?: string;
4825
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4826
+ upload_protocol?: string;
4827
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4828
+ uploadType?: string;
4829
+ },
4830
+ body: GoogleAnalyticsAdminV1alphaExpandedDataSet): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
4831
+ /** Deletes a ExpandedDataSet on a property. */
4832
+ delete(request?: {
4833
+ /** V1 error format. */
4834
+ "$.xgafv"?: string;
4835
+ /** OAuth access token. */
4836
+ access_token?: string;
4837
+ /** Data format for response. */
4838
+ alt?: string;
4839
+ /** JSONP */
4840
+ callback?: string;
4841
+ /** Selector specifying which fields to include in a partial response. */
4842
+ fields?: string;
4843
+ /** 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. */
4844
+ key?: string;
4845
+ /** Required. Example format: properties/1234/expandedDataSets/5678 */
4846
+ name: string;
4847
+ /** OAuth 2.0 token for the current user. */
4848
+ oauth_token?: string;
4849
+ /** Returns response with indentations and line breaks. */
4850
+ prettyPrint?: boolean;
4851
+ /** 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. */
4852
+ quotaUser?: string;
4853
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4854
+ upload_protocol?: string;
4855
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4856
+ uploadType?: string;
4857
+ }): Request<{}>;
4858
+ /** Lookup for a single ExpandedDataSet. */
4859
+ get(request?: {
4860
+ /** V1 error format. */
4861
+ "$.xgafv"?: string;
4862
+ /** OAuth access token. */
4863
+ access_token?: string;
4864
+ /** Data format for response. */
4865
+ alt?: string;
4866
+ /** JSONP */
4867
+ callback?: string;
4868
+ /** Selector specifying which fields to include in a partial response. */
4869
+ fields?: string;
4870
+ /** 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. */
4871
+ key?: string;
4872
+ /** Required. The name of the Audience to get. Example format: properties/1234/expandedDataSets/5678 */
4873
+ name: string;
4874
+ /** OAuth 2.0 token for the current user. */
4875
+ oauth_token?: string;
4876
+ /** Returns response with indentations and line breaks. */
4877
+ prettyPrint?: boolean;
4878
+ /** 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. */
4879
+ quotaUser?: string;
4880
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4881
+ upload_protocol?: string;
4882
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4883
+ uploadType?: string;
4884
+ }): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
4885
+ /** Lists ExpandedDataSets on a property. */
4886
+ list(request?: {
4887
+ /** V1 error format. */
4888
+ "$.xgafv"?: string;
4889
+ /** OAuth access token. */
4890
+ access_token?: string;
4891
+ /** Data format for response. */
4892
+ alt?: string;
4893
+ /** JSONP */
4894
+ callback?: string;
4895
+ /** Selector specifying which fields to include in a partial response. */
4896
+ fields?: string;
4897
+ /** 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. */
4898
+ key?: string;
4899
+ /** OAuth 2.0 token for the current user. */
4900
+ oauth_token?: string;
4901
+ /** The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). */
4902
+ pageSize?: number;
4903
+ /**
4904
+ * A page token, received from a previous `ListExpandedDataSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
4905
+ * `ListExpandedDataSet` must match the call that provided the page token.
4906
+ */
4907
+ pageToken?: string;
4908
+ /** Required. Example format: properties/1234 */
4909
+ parent: string;
4910
+ /** Returns response with indentations and line breaks. */
4911
+ prettyPrint?: boolean;
4912
+ /** 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. */
4913
+ quotaUser?: string;
4914
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4915
+ upload_protocol?: string;
4916
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4917
+ uploadType?: string;
4918
+ }): Request<GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse>;
4919
+ /** Updates a ExpandedDataSet on a property. */
4920
+ patch(request: {
4921
+ /** V1 error format. */
4922
+ "$.xgafv"?: string;
4923
+ /** OAuth access token. */
4924
+ access_token?: string;
4925
+ /** Data format for response. */
4926
+ alt?: string;
4927
+ /** JSONP */
4928
+ callback?: string;
4929
+ /** Selector specifying which fields to include in a partial response. */
4930
+ fields?: string;
4931
+ /** 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. */
4932
+ key?: string;
4933
+ /** Output only. The resource name for this ExpandedDataSet resource. Format: properties/{property_id}/expandedDataSets/{expanded_data_set} */
4934
+ name: string;
4935
+ /** OAuth 2.0 token for the current user. */
4936
+ oauth_token?: string;
4937
+ /** Returns response with indentations and line breaks. */
4938
+ prettyPrint?: boolean;
4939
+ /** 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. */
4940
+ quotaUser?: string;
4941
+ /**
4942
+ * 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
4943
+ * one path with the string "*" to match all fields.
4944
+ */
4945
+ updateMask?: string;
4946
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4947
+ upload_protocol?: string;
4948
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4949
+ uploadType?: string;
4950
+ /** Request body */
4951
+ resource: GoogleAnalyticsAdminV1alphaExpandedDataSet;
4952
+ }): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
4953
+ patch(request: {
4954
+ /** V1 error format. */
4955
+ "$.xgafv"?: string;
4956
+ /** OAuth access token. */
4957
+ access_token?: string;
4958
+ /** Data format for response. */
4959
+ alt?: string;
4960
+ /** JSONP */
4961
+ callback?: string;
4962
+ /** Selector specifying which fields to include in a partial response. */
4963
+ fields?: string;
4964
+ /** 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. */
4965
+ key?: string;
4966
+ /** Output only. The resource name for this ExpandedDataSet resource. Format: properties/{property_id}/expandedDataSets/{expanded_data_set} */
4967
+ name: string;
4968
+ /** OAuth 2.0 token for the current user. */
4969
+ oauth_token?: string;
4970
+ /** Returns response with indentations and line breaks. */
4971
+ prettyPrint?: boolean;
4972
+ /** 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. */
4973
+ quotaUser?: string;
4974
+ /**
4975
+ * 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
4976
+ * one path with the string "*" to match all fields.
4977
+ */
4978
+ updateMask?: string;
4979
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4980
+ upload_protocol?: string;
4981
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4982
+ uploadType?: string;
4983
+ },
4984
+ body: GoogleAnalyticsAdminV1alphaExpandedDataSet): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
4985
+ }
4768
4986
  interface FirebaseLinksResource {
4769
4987
  /** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
4770
4988
  create(request: {
@@ -6512,6 +6730,7 @@ declare namespace gapi.client {
6512
6730
  dataStreams: DataStreamsResource;
6513
6731
  displayVideo360AdvertiserLinkProposals: DisplayVideo360AdvertiserLinkProposalsResource;
6514
6732
  displayVideo360AdvertiserLinks: DisplayVideo360AdvertiserLinksResource;
6733
+ expandedDataSets: ExpandedDataSetsResource;
6515
6734
  firebaseLinks: FirebaseLinksResource;
6516
6735
  googleAdsLinks: GoogleAdsLinksResource;
6517
6736
  searchAds360Links: SearchAds360LinksResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1alpha",
3
- "version": "0.0.20230216",
3
+ "version": "0.0.20230221",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230216
6
+ // Revision: 20230221
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1183,6 +1183,91 @@ gapi.load('client', async () => {
1183
1183
  costDataSharingEnabled: true,
1184
1184
  name: "Test string",
1185
1185
  });
1186
+ /** Creates a ExpandedDataSet. */
1187
+ await gapi.client.analyticsadmin.properties.expandedDataSets.create({
1188
+ parent: "Test string",
1189
+ }, {
1190
+ dataCollectionStartTime: "Test string",
1191
+ description: "Test string",
1192
+ dimensionFilterExpression: {
1193
+ andGroup: {
1194
+ filterExpressions: undefined,
1195
+ },
1196
+ filter: {
1197
+ fieldName: "Test string",
1198
+ inListFilter: {
1199
+ caseSensitive: true,
1200
+ values: [
1201
+ "Test string"
1202
+ ],
1203
+ },
1204
+ stringFilter: {
1205
+ caseSensitive: true,
1206
+ matchType: "Test string",
1207
+ value: "Test string",
1208
+ },
1209
+ },
1210
+ notExpression: undefined,
1211
+ },
1212
+ dimensionNames: [
1213
+ "Test string"
1214
+ ],
1215
+ displayName: "Test string",
1216
+ metricNames: [
1217
+ "Test string"
1218
+ ],
1219
+ name: "Test string",
1220
+ });
1221
+ /** Deletes a ExpandedDataSet on a property. */
1222
+ await gapi.client.analyticsadmin.properties.expandedDataSets.delete({
1223
+ name: "Test string",
1224
+ });
1225
+ /** Lookup for a single ExpandedDataSet. */
1226
+ await gapi.client.analyticsadmin.properties.expandedDataSets.get({
1227
+ name: "Test string",
1228
+ });
1229
+ /** Lists ExpandedDataSets on a property. */
1230
+ await gapi.client.analyticsadmin.properties.expandedDataSets.list({
1231
+ pageSize: 42,
1232
+ pageToken: "Test string",
1233
+ parent: "Test string",
1234
+ });
1235
+ /** Updates a ExpandedDataSet on a property. */
1236
+ await gapi.client.analyticsadmin.properties.expandedDataSets.patch({
1237
+ name: "Test string",
1238
+ updateMask: "Test string",
1239
+ }, {
1240
+ dataCollectionStartTime: "Test string",
1241
+ description: "Test string",
1242
+ dimensionFilterExpression: {
1243
+ andGroup: {
1244
+ filterExpressions: undefined,
1245
+ },
1246
+ filter: {
1247
+ fieldName: "Test string",
1248
+ inListFilter: {
1249
+ caseSensitive: true,
1250
+ values: [
1251
+ "Test string"
1252
+ ],
1253
+ },
1254
+ stringFilter: {
1255
+ caseSensitive: true,
1256
+ matchType: "Test string",
1257
+ value: "Test string",
1258
+ },
1259
+ },
1260
+ notExpression: undefined,
1261
+ },
1262
+ dimensionNames: [
1263
+ "Test string"
1264
+ ],
1265
+ displayName: "Test string",
1266
+ metricNames: [
1267
+ "Test string"
1268
+ ],
1269
+ name: "Test string",
1270
+ });
1186
1271
  /** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
1187
1272
  await gapi.client.analyticsadmin.properties.firebaseLinks.create({
1188
1273
  parent: "Test string",