From 91a061a5f6beca8ceeb1e6fb19b552f060f6a9fd Mon Sep 17 00:00:00 2001 From: Jimmy Leung <43258070+hkleungai@users.noreply.github.com> Date: Sat, 5 Sep 2026 12:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75369=20feat(googl?= =?UTF-8?q?e-apps-script):=20remove=20nonexistent=20APIs,=20update=20api?= =?UTF-8?q?=20versions=20by=20@hkleungai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../google-apps-script/apis/analytics_v3.d.ts | 1658 ----------------- .../apis/analyticsreporting_v4.d.ts | 360 ---- .../apis/appsactivity_v1.d.ts | 81 - .../{content_v2.d.ts => content_v2_1.d.ts} | 0 ...rting_v3_3.d.ts => dfareporting_v3_5.d.ts} | 0 types/google-apps-script/apis/mirror_v1.d.ts | 268 --- .../{peopleapi_v1.d.ts => people_v1.d.ts} | 0 types/google-apps-script/index.d.ts | 10 +- .../test/google-apps-script-apis-tests.ts | 42 - .../test/google-apps-script-tests.ts | 45 - 10 files changed, 3 insertions(+), 2461 deletions(-) delete mode 100644 types/google-apps-script/apis/analytics_v3.d.ts delete mode 100644 types/google-apps-script/apis/analyticsreporting_v4.d.ts delete mode 100644 types/google-apps-script/apis/appsactivity_v1.d.ts rename types/google-apps-script/apis/{content_v2.d.ts => content_v2_1.d.ts} (100%) rename types/google-apps-script/apis/{dfareporting_v3_3.d.ts => dfareporting_v3_5.d.ts} (100%) delete mode 100644 types/google-apps-script/apis/mirror_v1.d.ts rename types/google-apps-script/apis/{peopleapi_v1.d.ts => people_v1.d.ts} (100%) diff --git a/types/google-apps-script/apis/analytics_v3.d.ts b/types/google-apps-script/apis/analytics_v3.d.ts deleted file mode 100644 index d0807493456adf..00000000000000 --- a/types/google-apps-script/apis/analytics_v3.d.ts +++ /dev/null @@ -1,1658 +0,0 @@ -declare namespace GoogleAppsScript { - namespace Analytics { - namespace Collection { - namespace Data { - interface GaCollection { - // Returns Analytics data for a view (profile). - get( - ids: string, - start_date: string, - end_date: string, - metrics: string, - optionalArgs?: Analytics.Schema.GaDataQuery, - ): Analytics.Schema.GaData; - } - interface McfCollection { - // Returns Analytics Multi-Channel Funnels data for a view (profile). - get( - ids: string, - start_date: string, - end_date: string, - metrics: string, - optionalArgs?: Analytics.Schema.GaDataQuery, - ): Analytics.Schema.McfData; - } - interface RealtimeCollection { - // Returns real time data for a view (profile). - get(ids: string, metrics: string, optionalArgs?: any): Analytics.Schema.RealtimeData; - } - } - namespace Management { - interface AccountSummariesCollection { - // Lists account summaries (lightweight tree comprised of accounts/properties/profiles) to which the user has access. - list(): Analytics.Schema.AccountSummaries; - // Lists account summaries (lightweight tree comprised of accounts/properties/profiles) to which the user has access. - list(optionalArgs: any): Analytics.Schema.AccountSummaries; - } - interface AccountUserLinksCollection { - // Adds a new user to the given account. - insert(resource: Schema.EntityUserLink, accountId: string): Analytics.Schema.EntityUserLink; - // Lists account-user links for a given account. - list(accountId: string): Analytics.Schema.EntityUserLinks; - // Lists account-user links for a given account. - list(accountId: string, optionalArgs: any): Analytics.Schema.EntityUserLinks; - // Removes a user from the given account. - remove(accountId: string, linkId: string): void; - // Updates permissions for an existing user on the given account. - update( - resource: Schema.EntityUserLink, - accountId: string, - linkId: string, - ): Analytics.Schema.EntityUserLink; - } - interface AccountsCollection { - // Lists all accounts to which the user has access. - list(): Analytics.Schema.Accounts; - // Lists all accounts to which the user has access. - list(optionalArgs: any): Analytics.Schema.Accounts; - } - interface ClientIdCollection { - // Hashes the given Client ID. - hashClientId(resource: Analytics.Schema.HashClientIdRequest): Analytics.Schema.HashClientIdResponse; - } - interface CustomDataSourcesCollection { - // List custom data sources to which the user has access. - list(accountId: string, webPropertyId: string): Analytics.Schema.CustomDataSources; - // List custom data sources to which the user has access. - list( - accountId: string, - webPropertyId: string, - optionalArgs: any, - ): Analytics.Schema.CustomDataSources; - } - interface CustomDimensionsCollection { - // Get a custom dimension to which the user has access. - get( - accountId: string, - webPropertyId: string, - customDimensionId: string, - ): Analytics.Schema.CustomDimension; - // Create a new custom dimension. - insert( - resource: Schema.CustomDimension, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.CustomDimension; - // Lists custom dimensions to which the user has access. - list(accountId: string, webPropertyId: string): Analytics.Schema.CustomDimensions; - // Lists custom dimensions to which the user has access. - list( - accountId: string, - webPropertyId: string, - optionalArgs: any, - ): Analytics.Schema.CustomDimensions; - // Updates an existing custom dimension. This method supports patch semantics. - patch( - resource: Schema.CustomDimension, - accountId: string, - webPropertyId: string, - customDimensionId: string, - ): Analytics.Schema.CustomDimension; - // Updates an existing custom dimension. This method supports patch semantics. - patch( - resource: Schema.CustomDimension, - accountId: string, - webPropertyId: string, - customDimensionId: string, - optionalArgs: any, - ): Analytics.Schema.CustomDimension; - // Updates an existing custom dimension. - update( - resource: Schema.CustomDimension, - accountId: string, - webPropertyId: string, - customDimensionId: string, - ): Analytics.Schema.CustomDimension; - // Updates an existing custom dimension. - update( - resource: Schema.CustomDimension, - accountId: string, - webPropertyId: string, - customDimensionId: string, - optionalArgs: any, - ): Analytics.Schema.CustomDimension; - } - interface CustomMetricsCollection { - // Get a custom metric to which the user has access. - get( - accountId: string, - webPropertyId: string, - customMetricId: string, - ): Analytics.Schema.CustomMetric; - // Create a new custom metric. - insert( - resource: Schema.CustomMetric, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.CustomMetric; - // Lists custom metrics to which the user has access. - list(accountId: string, webPropertyId: string): Analytics.Schema.CustomMetrics; - // Lists custom metrics to which the user has access. - list(accountId: string, webPropertyId: string, optionalArgs: any): Analytics.Schema.CustomMetrics; - // Updates an existing custom metric. This method supports patch semantics. - patch( - resource: Schema.CustomMetric, - accountId: string, - webPropertyId: string, - customMetricId: string, - ): Analytics.Schema.CustomMetric; - // Updates an existing custom metric. This method supports patch semantics. - patch( - resource: Schema.CustomMetric, - accountId: string, - webPropertyId: string, - customMetricId: string, - optionalArgs: any, - ): Analytics.Schema.CustomMetric; - // Updates an existing custom metric. - update( - resource: Schema.CustomMetric, - accountId: string, - webPropertyId: string, - customMetricId: string, - ): Analytics.Schema.CustomMetric; - // Updates an existing custom metric. - update( - resource: Schema.CustomMetric, - accountId: string, - webPropertyId: string, - customMetricId: string, - optionalArgs: any, - ): Analytics.Schema.CustomMetric; - } - interface ExperimentsCollection { - // Returns an experiment to which the user has access. - get( - accountId: string, - webPropertyId: string, - profileId: string, - experimentId: string, - ): Analytics.Schema.Experiment; - // Create a new experiment. - insert( - resource: Schema.Experiment, - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.Experiment; - // Lists experiments to which the user has access. - list(accountId: string, webPropertyId: string, profileId: string): Analytics.Schema.Experiments; - // Lists experiments to which the user has access. - list( - accountId: string, - webPropertyId: string, - profileId: string, - optionalArgs: any, - ): Analytics.Schema.Experiments; - // Update an existing experiment. This method supports patch semantics. - patch( - resource: Schema.Experiment, - accountId: string, - webPropertyId: string, - profileId: string, - experimentId: string, - ): Analytics.Schema.Experiment; - // Delete an experiment. - remove(accountId: string, webPropertyId: string, profileId: string, experimentId: string): void; - // Update an existing experiment. - update( - resource: Schema.Experiment, - accountId: string, - webPropertyId: string, - profileId: string, - experimentId: string, - ): Analytics.Schema.Experiment; - } - interface FiltersCollection { - // Returns a filters to which the user has access. - get(accountId: string, filterId: string): Analytics.Schema.Filter; - // Create a new filter. - insert(resource: Schema.Filter, accountId: string): Analytics.Schema.Filter; - // Lists all filters for an account - list(accountId: string): Analytics.Schema.Filters; - // Lists all filters for an account - list(accountId: string, optionalArgs: any): Analytics.Schema.Filters; - // Updates an existing filter. This method supports patch semantics. - patch(resource: Schema.Filter, accountId: string, filterId: string): Analytics.Schema.Filter; - // Delete a filter. - remove(accountId: string, filterId: string): Analytics.Schema.Filter; - // Updates an existing filter. - update(resource: Schema.Filter, accountId: string, filterId: string): Analytics.Schema.Filter; - } - interface GoalsCollection { - // Gets a goal to which the user has access. - get( - accountId: string, - webPropertyId: string, - profileId: string, - goalId: string, - ): Analytics.Schema.Goal; - // Create a new goal. - insert( - resource: Analytics.Schema.Goal, - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.Goal; - // Lists goals to which the user has access. - list(accountId: string, webPropertyId: string, profileId: string): Analytics.Schema.Goals; - // Lists goals to which the user has access. - list( - accountId: string, - webPropertyId: string, - profileId: string, - optionalArgs: any, - ): Analytics.Schema.Goals; - // Updates an existing goal. This method supports patch semantics. - patch( - resource: Schema.Goal, - accountId: string, - webPropertyId: string, - profileId: string, - goalId: string, - ): Analytics.Schema.Goal; - // Updates an existing goal. - update( - resource: Schema.Goal, - accountId: string, - webPropertyId: string, - profileId: string, - goalId: string, - ): Analytics.Schema.Goal; - } - interface ProfileFilterLinksCollection { - // Returns a single profile filter link. - get( - accountId: string, - webPropertyId: string, - profileId: string, - linkId: string, - ): Analytics.Schema.ProfileFilterLink; - // Create a new profile filter link. - insert( - resource: Schema.ProfileFilterLink, - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.ProfileFilterLink; - // Lists all profile filter links for a profile. - list( - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.ProfileFilterLinks; - // Lists all profile filter links for a profile. - list( - accountId: string, - webPropertyId: string, - profileId: string, - optionalArgs: any, - ): Analytics.Schema.ProfileFilterLinks; - // Update an existing profile filter link. This method supports patch semantics. - patch( - resource: Schema.ProfileFilterLink, - accountId: string, - webPropertyId: string, - profileId: string, - linkId: string, - ): Analytics.Schema.ProfileFilterLink; - // Delete a profile filter link. - remove(accountId: string, webPropertyId: string, profileId: string, linkId: string): void; - // Update an existing profile filter link. - update( - resource: Schema.ProfileFilterLink, - accountId: string, - webPropertyId: string, - profileId: string, - linkId: string, - ): Analytics.Schema.ProfileFilterLink; - } - interface ProfileUserLinksCollection { - // Adds a new user to the given view (profile). - insert( - resource: Schema.EntityUserLink, - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.EntityUserLink; - // Lists profile-user links for a given view (profile). - list(accountId: string, webPropertyId: string, profileId: string): Analytics.Schema.EntityUserLinks; - // Lists profile-user links for a given view (profile). - list( - accountId: string, - webPropertyId: string, - profileId: string, - optionalArgs: any, - ): Analytics.Schema.EntityUserLinks; - // Removes a user from the given view (profile). - remove(accountId: string, webPropertyId: string, profileId: string, linkId: string): void; - // Updates permissions for an existing user on the given view (profile). - update( - resource: Schema.EntityUserLink, - accountId: string, - webPropertyId: string, - profileId: string, - linkId: string, - ): Analytics.Schema.EntityUserLink; - } - interface ProfilesCollection { - // Gets a view (profile) to which the user has access. - get(accountId: string, webPropertyId: string, profileId: string): Analytics.Schema.Profile; - // Create a new view (profile). - insert( - resource: Schema.Profile, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.Profile; - // Lists views (profiles) to which the user has access. - list(accountId: string, webPropertyId: string): Analytics.Schema.Profiles; - // Lists views (profiles) to which the user has access. - list(accountId: string, webPropertyId: string, optionalArgs: any): Analytics.Schema.Profiles; - // Updates an existing view (profile). This method supports patch semantics. - patch( - resource: Schema.Profile, - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.Profile; - // Deletes a view (profile). - remove(accountId: string, webPropertyId: string, profileId: string): void; - // Updates an existing view (profile). - update( - resource: Schema.Profile, - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.Profile; - } - interface RemarketingAudienceCollection { - // Gets a remarketing audience to which the user has access. - get( - accountId: string, - webPropertyId: string, - remarketingAudienceId: string, - ): Analytics.Schema.RemarketingAudience; - // Creates a new remarketing audience. - insert( - resource: Schema.RemarketingAudience, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.RemarketingAudience; - // Lists remarketing audiences to which the user has access. - list(accountId: string, webPropertyId: string): Analytics.Schema.RemarketingAudiences; - // Lists remarketing audiences to which the user has access. - list( - accountId: string, - webPropertyId: string, - optionalArgs: any, - ): Analytics.Schema.RemarketingAudiences; - // Updates an existing remarketing audience. This method supports patch semantics. - patch( - resource: Schema.RemarketingAudience, - accountId: string, - webPropertyId: string, - remarketingAudienceId: string, - ): Analytics.Schema.RemarketingAudience; - // Delete a remarketing audience. - remove(accountId: string, webPropertyId: string, remarketingAudienceId: string): void; - // Updates an existing remarketing audience. - update( - resource: Schema.RemarketingAudience, - accountId: string, - webPropertyId: string, - remarketingAudienceId: string, - ): Analytics.Schema.RemarketingAudience; - } - interface SegmentsCollection { - // Lists segments to which the user has access. - list(): Analytics.Schema.Segments; - // Lists segments to which the user has access. - list(optionalArgs: any): Analytics.Schema.Segments; - } - interface UnsampledReportsCollection { - // Returns a single unsampled report. - get( - accountId: string, - webPropertyId: string, - profileId: string, - unsampledReportId: string, - ): Analytics.Schema.UnsampledReport; - // Create a new unsampled report. - insert( - resource: Schema.UnsampledReport, - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.UnsampledReport; - // Lists unsampled reports to which the user has access. - list( - accountId: string, - webPropertyId: string, - profileId: string, - ): Analytics.Schema.UnsampledReports; - // Lists unsampled reports to which the user has access. - list( - accountId: string, - webPropertyId: string, - profileId: string, - optionalArgs: any, - ): Analytics.Schema.UnsampledReports; - // Deletes an unsampled report. - remove( - accountId: string, - webPropertyId: string, - profileId: string, - unsampledReportId: string, - ): void; - } - interface UploadsCollection { - // Delete data associated with a previous upload. - deleteUploadData( - resource: Schema.AnalyticsDataimportDeleteUploadDataRequest, - accountId: string, - webPropertyId: string, - customDataSourceId: string, - ): void; - // List uploads to which the user has access. - get( - accountId: string, - webPropertyId: string, - customDataSourceId: string, - uploadId: string, - ): Analytics.Schema.Upload; - // List uploads to which the user has access. - list( - accountId: string, - webPropertyId: string, - customDataSourceId: string, - ): Analytics.Schema.Uploads; - // List uploads to which the user has access. - list( - accountId: string, - webPropertyId: string, - customDataSourceId: string, - optionalArgs: any, - ): Analytics.Schema.Uploads; - // Upload data for a custom data source. - uploadData( - accountId: string, - webPropertyId: string, - customDataSourceId: string, - ): Analytics.Schema.Upload; - // Upload data for a custom data source. - uploadData( - accountId: string, - webPropertyId: string, - customDataSourceId: string, - mediaData: any, - ): Analytics.Schema.Upload; - } - interface WebPropertyAdWordsLinksCollection { - // Returns a web property-Google Ads link to which the user has access. - get( - accountId: string, - webPropertyId: string, - webPropertyAdWordsLinkId: string, - ): Analytics.Schema.EntityAdWordsLink; - // Creates a webProperty-Google Ads link. - insert( - resource: Schema.EntityAdWordsLink, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.EntityAdWordsLink; - // Lists webProperty-Google Ads links for a given web property. - list(accountId: string, webPropertyId: string): Analytics.Schema.EntityAdWordsLinks; - // Lists webProperty-Google Ads links for a given web property. - list( - accountId: string, - webPropertyId: string, - optionalArgs: any, - ): Analytics.Schema.EntityAdWordsLinks; - // Updates an existing webProperty-Google Ads link. This method supports patch semantics. - patch( - resource: Schema.EntityAdWordsLink, - accountId: string, - webPropertyId: string, - webPropertyAdWordsLinkId: string, - ): Analytics.Schema.EntityAdWordsLink; - // Deletes a web property-Google Ads link. - remove(accountId: string, webPropertyId: string, webPropertyAdWordsLinkId: string): void; - // Updates an existing webProperty-Google Ads link. - update( - resource: Schema.EntityAdWordsLink, - accountId: string, - webPropertyId: string, - webPropertyAdWordsLinkId: string, - ): Analytics.Schema.EntityAdWordsLink; - } - interface WebpropertiesCollection { - // Gets a web property to which the user has access. - get(accountId: string, webPropertyId: string): Analytics.Schema.Webproperty; - // Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile. - insert(resource: Schema.Webproperty, accountId: string): Analytics.Schema.Webproperty; - // Lists web properties to which the user has access. - list(accountId: string): Analytics.Schema.Webproperties; - // Lists web properties to which the user has access. - list(accountId: string, optionalArgs: any): Analytics.Schema.Webproperties; - // Updates an existing web property. This method supports patch semantics. - patch( - resource: Schema.Webproperty, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.Webproperty; - // Updates an existing web property. - update( - resource: Schema.Webproperty, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.Webproperty; - } - interface WebpropertyUserLinksCollection { - // Adds a new user to the given web property. - insert( - resource: Schema.EntityUserLink, - accountId: string, - webPropertyId: string, - ): Analytics.Schema.EntityUserLink; - // Lists webProperty-user links for a given web property. - list(accountId: string, webPropertyId: string): Analytics.Schema.EntityUserLinks; - // Lists webProperty-user links for a given web property. - list(accountId: string, webPropertyId: string, optionalArgs: any): Analytics.Schema.EntityUserLinks; - // Removes a user from the given web property. - remove(accountId: string, webPropertyId: string, linkId: string): void; - // Updates permissions for an existing user on the given web property. - update( - resource: Schema.EntityUserLink, - accountId: string, - webPropertyId: string, - linkId: string, - ): Analytics.Schema.EntityUserLink; - } - } - namespace Metadata { - interface ColumnsCollection { - // Lists all columns for a report type - list(reportType: string): Analytics.Schema.Columns; - } - } - namespace UserDeletion { - interface UserDeletionRequestCollection { - // Insert or update a user deletion requests. - upsert(resource: Schema.UserDeletionRequest): Analytics.Schema.UserDeletionRequest; - } - } - interface DataCollection { - Ga: Analytics.Collection.Data.GaCollection; - Mcf: Analytics.Collection.Data.McfCollection; - Realtime: Analytics.Collection.Data.RealtimeCollection; - } - interface ManagementCollection { - AccountSummaries: Analytics.Collection.Management.AccountSummariesCollection; - AccountUserLinks: Analytics.Collection.Management.AccountUserLinksCollection; - Accounts: Analytics.Collection.Management.AccountsCollection; - ClientId: Analytics.Collection.Management.ClientIdCollection; - CustomDataSources: Analytics.Collection.Management.CustomDataSourcesCollection; - CustomDimensions: Analytics.Collection.Management.CustomDimensionsCollection; - CustomMetrics: Analytics.Collection.Management.CustomMetricsCollection; - Experiments: Analytics.Collection.Management.ExperimentsCollection; - Filters: Analytics.Collection.Management.FiltersCollection; - Goals: Analytics.Collection.Management.GoalsCollection; - ProfileFilterLinks: Analytics.Collection.Management.ProfileFilterLinksCollection; - ProfileUserLinks: Analytics.Collection.Management.ProfileUserLinksCollection; - Profiles: Analytics.Collection.Management.ProfilesCollection; - RemarketingAudience: Analytics.Collection.Management.RemarketingAudienceCollection; - Segments: Analytics.Collection.Management.SegmentsCollection; - UnsampledReports: Analytics.Collection.Management.UnsampledReportsCollection; - Uploads: Analytics.Collection.Management.UploadsCollection; - WebPropertyAdWordsLinks: Analytics.Collection.Management.WebPropertyAdWordsLinksCollection; - Webproperties: Analytics.Collection.Management.WebpropertiesCollection; - WebpropertyUserLinks: Analytics.Collection.Management.WebpropertyUserLinksCollection; - } - interface MetadataCollection { - Columns: Analytics.Collection.Metadata.ColumnsCollection; - } - interface ProvisioningCollection { - // Creates an account ticket. - createAccountTicket(resource: Schema.AccountTicket): Analytics.Schema.AccountTicket; - // Provision account. - createAccountTree(resource: Schema.AccountTreeRequest): Analytics.Schema.AccountTreeResponse; - } - interface UserDeletionCollection { - UserDeletionRequest: Analytics.Collection.UserDeletion.UserDeletionRequestCollection; - } - } - namespace Schema { - interface Account { - childLink?: Analytics.Schema.AccountChildLink | undefined; - created?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - permissions?: Analytics.Schema.AccountPermissions | undefined; - selfLink?: string | undefined; - starred?: boolean | undefined; - updated?: string | undefined; - } - interface AccountChildLink { - href?: string | undefined; - type?: string | undefined; - } - interface AccountPermissions { - effective?: string[] | undefined; - } - interface AccountRef { - href?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - } - interface AccountSummaries { - items?: Analytics.Schema.AccountSummary[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface AccountSummary { - id?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - starred?: boolean | undefined; - webProperties?: Analytics.Schema.WebPropertySummary[] | undefined; - } - interface AccountTicket { - account?: Analytics.Schema.Account | undefined; - id?: string | undefined; - kind?: string | undefined; - profile?: Analytics.Schema.Profile | undefined; - redirectUri?: string | undefined; - webproperty?: Analytics.Schema.Webproperty | undefined; - } - interface AccountTreeRequest { - accountName?: string | undefined; - kind?: string | undefined; - profileName?: string | undefined; - timezone?: string | undefined; - webpropertyName?: string | undefined; - websiteUrl?: string | undefined; - } - interface AccountTreeResponse { - account?: Analytics.Schema.Account | undefined; - kind?: string | undefined; - profile?: Analytics.Schema.Profile | undefined; - webproperty?: Analytics.Schema.Webproperty | undefined; - } - interface Accounts { - items?: Analytics.Schema.Account[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface AdWordsAccount { - autoTaggingEnabled?: boolean | undefined; - customerId?: string | undefined; - kind?: string | undefined; - } - interface AnalyticsDataimportDeleteUploadDataRequest { - customDataImportUids?: string[] | undefined; - } - interface Column { - attributes?: any; - id?: string | undefined; - kind?: string | undefined; - } - interface Columns { - attributeNames?: string[] | undefined; - etag?: string | undefined; - items?: Analytics.Schema.Column[] | undefined; - kind?: string | undefined; - totalResults?: number | undefined; - } - interface CustomDataSource { - accountId?: string | undefined; - childLink?: Analytics.Schema.CustomDataSourceChildLink | undefined; - created?: string | undefined; - description?: string | undefined; - id?: string | undefined; - importBehavior?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - parentLink?: Analytics.Schema.CustomDataSourceParentLink | undefined; - profilesLinked?: string[] | undefined; - schema?: string[] | undefined; - selfLink?: string | undefined; - type?: string | undefined; - updated?: string | undefined; - uploadType?: string | undefined; - webPropertyId?: string | undefined; - } - interface CustomDataSourceChildLink { - href?: string | undefined; - type?: string | undefined; - } - interface CustomDataSourceParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface CustomDataSources { - items?: Analytics.Schema.CustomDataSource[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface CustomDimension { - accountId?: string | undefined; - active?: boolean | undefined; - created?: string | undefined; - id?: string | undefined; - index?: number | undefined; - kind?: string | undefined; - name?: string | undefined; - parentLink?: Analytics.Schema.CustomDimensionParentLink | undefined; - scope?: string | undefined; - selfLink?: string | undefined; - updated?: string | undefined; - webPropertyId?: string | undefined; - } - interface CustomDimensionParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface CustomDimensions { - items?: Analytics.Schema.CustomDimension[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface CustomMetric { - accountId?: string | undefined; - active?: boolean | undefined; - created?: string | undefined; - id?: string | undefined; - index?: number | undefined; - kind?: string | undefined; - max_value?: string | undefined; - min_value?: string | undefined; - name?: string | undefined; - parentLink?: Analytics.Schema.CustomMetricParentLink | undefined; - scope?: string | undefined; - selfLink?: string | undefined; - type?: string | undefined; - updated?: string | undefined; - webPropertyId?: string | undefined; - } - interface CustomMetricParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface CustomMetrics { - items?: Analytics.Schema.CustomMetric[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface EntityAdWordsLink { - adWordsAccounts?: Analytics.Schema.AdWordsAccount[] | undefined; - entity?: Analytics.Schema.EntityAdWordsLinkEntity | undefined; - id?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - profileIds?: string[] | undefined; - selfLink?: string | undefined; - } - interface EntityAdWordsLinkEntity { - webPropertyRef?: Analytics.Schema.WebPropertyRef | undefined; - } - interface EntityAdWordsLinks { - items?: Analytics.Schema.EntityAdWordsLink[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - } - interface EntityUserLink { - entity?: Analytics.Schema.EntityUserLinkEntity | undefined; - id?: string | undefined; - kind?: string | undefined; - permissions?: Analytics.Schema.EntityUserLinkPermissions | undefined; - selfLink?: string | undefined; - userRef?: Analytics.Schema.UserRef | undefined; - } - interface EntityUserLinkEntity { - accountRef?: Analytics.Schema.AccountRef | undefined; - profileRef?: Analytics.Schema.ProfileRef | undefined; - webPropertyRef?: Analytics.Schema.WebPropertyRef | undefined; - } - interface EntityUserLinkPermissions { - effective?: string[] | undefined; - local?: string[] | undefined; - } - interface EntityUserLinks { - items?: Analytics.Schema.EntityUserLink[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - } - interface Experiment { - accountId?: string | undefined; - created?: string | undefined; - description?: string | undefined; - editableInGaUi?: boolean | undefined; - endTime?: string | undefined; - equalWeighting?: boolean | undefined; - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - minimumExperimentLengthInDays?: number | undefined; - name?: string | undefined; - objectiveMetric?: string | undefined; - optimizationType?: string | undefined; - parentLink?: Analytics.Schema.ExperimentParentLink | undefined; - profileId?: string | undefined; - reasonExperimentEnded?: string | undefined; - rewriteVariationUrlsAsOriginal?: boolean | undefined; - selfLink?: string | undefined; - servingFramework?: string | undefined; - snippet?: string | undefined; - startTime?: string | undefined; - status?: string | undefined; - trafficCoverage?: number | undefined; - updated?: string | undefined; - variations?: Analytics.Schema.ExperimentVariations[] | undefined; - webPropertyId?: string | undefined; - winnerConfidenceLevel?: number | undefined; - winnerFound?: boolean | undefined; - } - interface ExperimentParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface ExperimentVariations { - name?: string | undefined; - status?: string | undefined; - url?: string | undefined; - weight?: number | undefined; - won?: boolean | undefined; - } - interface Experiments { - items?: Analytics.Schema.Experiment[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface Filter { - accountId?: string | undefined; - advancedDetails?: Analytics.Schema.FilterAdvancedDetails | undefined; - created?: string | undefined; - excludeDetails?: Analytics.Schema.FilterExpression | undefined; - id?: string | undefined; - includeDetails?: Analytics.Schema.FilterExpression | undefined; - kind?: string | undefined; - lowercaseDetails?: Analytics.Schema.FilterLowercaseDetails | undefined; - name?: string | undefined; - parentLink?: Analytics.Schema.FilterParentLink | undefined; - searchAndReplaceDetails?: Analytics.Schema.FilterSearchAndReplaceDetails | undefined; - selfLink?: string | undefined; - type?: string | undefined; - updated?: string | undefined; - uppercaseDetails?: Analytics.Schema.FilterUppercaseDetails | undefined; - } - interface FilterAdvancedDetails { - caseSensitive?: boolean | undefined; - extractA?: string | undefined; - extractB?: string | undefined; - fieldA?: string | undefined; - fieldAIndex?: number | undefined; - fieldARequired?: boolean | undefined; - fieldB?: string | undefined; - fieldBIndex?: number | undefined; - fieldBRequired?: boolean | undefined; - outputConstructor?: string | undefined; - outputToField?: string | undefined; - outputToFieldIndex?: number | undefined; - overrideOutputField?: boolean | undefined; - } - interface FilterExpression { - caseSensitive?: boolean | undefined; - expressionValue?: string | undefined; - field?: string | undefined; - fieldIndex?: number | undefined; - kind?: string | undefined; - matchType?: string | undefined; - } - interface FilterLowercaseDetails { - field?: string | undefined; - fieldIndex?: number | undefined; - } - interface FilterParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface FilterRef { - accountId?: string | undefined; - href?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - } - interface FilterSearchAndReplaceDetails { - caseSensitive?: boolean | undefined; - field?: string | undefined; - fieldIndex?: number | undefined; - replaceString?: string | undefined; - searchString?: string | undefined; - } - interface FilterUppercaseDetails { - field?: string | undefined; - fieldIndex?: number | undefined; - } - interface Filters { - items?: Analytics.Schema.Filter[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface GaData { - columnHeaders?: Analytics.Schema.GaDataColumnHeaders[] | undefined; - containsSampledData?: boolean | undefined; - dataLastRefreshed?: string | undefined; - dataTable?: Analytics.Schema.GaDataDataTable | undefined; - id?: string | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - profileInfo?: Analytics.Schema.GaDataProfileInfo | undefined; - query?: Analytics.Schema.GaDataQuery | undefined; - rows?: string[][] | undefined; - sampleSize?: string | undefined; - sampleSpace?: string | undefined; - selfLink?: string | undefined; - totalResults?: number | undefined; - totalsForAllResults?: Record | undefined; - } - interface GaDataColumnHeaders { - columnType?: string | undefined; - dataType?: string | undefined; - name?: string | undefined; - } - interface GaDataDataTable { - cols?: Analytics.Schema.GaDataDataTableCols[] | undefined; - rows?: Analytics.Schema.GaDataDataTableRows[] | undefined; - } - interface GaDataDataTableCols { - id?: string | undefined; - label?: string | undefined; - type?: string | undefined; - } - interface GaDataDataTableRows { - c?: Analytics.Schema.GaDataDataTableRowsC[] | undefined; - } - interface GaDataDataTableRowsC { - v?: string | undefined; - } - interface GaDataProfileInfo { - accountId?: string | undefined; - internalWebPropertyId?: string | undefined; - profileId?: string | undefined; - profileName?: string | undefined; - tableId?: string | undefined; - webPropertyId?: string | undefined; - } - interface GaDataQuery { - /** The unique table ID of the form ga:XXXX, where XXXX is the Analytics view (profile) ID for which the query will retrieve the data. */ - ids?: string; - /** Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or NdaysAgo where N is a positive integer). */ - "start-date"?: string; - /** End date for fetching Analytics data. Request can specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or NdaysAgo where N is a positive integer). */ - "end-date"?: string; - /** A list of comma-separated metrics, such as ga:sessions,ga:bounces. */ - metrics?: string; - /** A list of comma-separated dimensions for your Analytics data, such as ga:browser,ga:city. */ - dimensions?: string; - /** A list of comma-separated dimensions and metrics indicating the sorting order and sorting direction for the returned data. */ - sort?: string; - /** Dimension or metric filters that restrict the data returned for your request. */ - filters?: string; - /** Segments the data returned for your request. */ - segment?: string; - /** - * The desired sampling level. Allowed Values: - * DEFAULT — Returns response with a sample size that balances speed and accuracy. - * FASTER — Returns a fast response with a smaller sample size. - * HIGHER_PRECISION — Returns a more accurate response using a large sample size, but this may result in the response being slower. - */ - samplingLevel?: "DEFAULT" | "FASTER" | "HIGHER_PRECISION"; - /** The first row of data to retrieve, starting at 1. Use this parameter as a pagination mechanism along with the max-results parameter. */ - "start-index"?: number; - /** The maximum number of rows to include in the response. */ - "max-results"?: number; - } - interface Goal { - accountId?: string | undefined; - active?: boolean | undefined; - created?: string | undefined; - eventDetails?: Analytics.Schema.GoalEventDetails | undefined; - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - parentLink?: Analytics.Schema.GoalParentLink | undefined; - profileId?: string | undefined; - selfLink?: string | undefined; - type?: string | undefined; - updated?: string | undefined; - urlDestinationDetails?: Analytics.Schema.GoalUrlDestinationDetails | undefined; - value?: number | undefined; - visitNumPagesDetails?: Analytics.Schema.GoalVisitNumPagesDetails | undefined; - visitTimeOnSiteDetails?: Analytics.Schema.GoalVisitTimeOnSiteDetails | undefined; - webPropertyId?: string | undefined; - } - interface GoalEventDetails { - eventConditions?: GoalEventDetailsEventConditions[] | undefined; - useEventValue?: boolean | undefined; - } - interface GoalEventDetailsEventConditions { - comparisonType?: string | undefined; - comparisonValue?: string | undefined; - expression?: string | undefined; - matchType?: string | undefined; - type?: string | undefined; - } - interface GoalParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface GoalUrlDestinationDetails { - caseSensitive?: boolean | undefined; - firstStepRequired?: boolean | undefined; - matchType?: string | undefined; - steps?: GoalUrlDestinationDetailsSteps[] | undefined; - url?: string | undefined; - } - interface GoalUrlDestinationDetailsSteps { - name?: string | undefined; - number?: number | undefined; - url?: string | undefined; - } - interface GoalVisitNumPagesDetails { - comparisonType?: string | undefined; - comparisonValue?: string | undefined; - } - interface GoalVisitTimeOnSiteDetails { - comparisonType?: string | undefined; - comparisonValue?: string | undefined; - } - interface Goals { - items?: Goal[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface HashClientIdRequest { - clientId?: string | undefined; - kind?: string | undefined; - webPropertyId?: string | undefined; - } - interface HashClientIdResponse { - clientId?: string | undefined; - hashedClientId?: string | undefined; - kind?: string | undefined; - webPropertyId?: string | undefined; - } - interface IncludeConditions { - daysToLookBack?: number | undefined; - isSmartList?: boolean | undefined; - kind?: string | undefined; - membershipDurationDays?: number | undefined; - segment?: string | undefined; - } - interface LinkedForeignAccount { - accountId?: string | undefined; - eligibleForSearch?: boolean | undefined; - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - linkedAccountId?: string | undefined; - remarketingAudienceId?: string | undefined; - status?: string | undefined; - type?: string | undefined; - webPropertyId?: string | undefined; - } - interface McfData { - columnHeaders?: McfDataColumnHeaders[] | undefined; - containsSampledData?: boolean | undefined; - id?: string | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - profileInfo?: McfDataProfileInfo | undefined; - query?: McfDataQuery | undefined; - rows?: McfDataRows[][] | undefined; - sampleSize?: string | undefined; - sampleSpace?: string | undefined; - selfLink?: string | undefined; - totalResults?: number | undefined; - totalsForAllResults?: Record | undefined; - } - interface McfDataColumnHeaders { - columnType?: string | undefined; - dataType?: string | undefined; - name?: string | undefined; - } - interface McfDataProfileInfo { - accountId?: string | undefined; - internalWebPropertyId?: string | undefined; - profileId?: string | undefined; - profileName?: string | undefined; - tableId?: string | undefined; - webPropertyId?: string | undefined; - } - interface McfDataQuery { - dimensions?: string | undefined; - end_date?: string | undefined; - filters?: string | undefined; - ids?: string | undefined; - max_results?: number | undefined; - metrics?: string[] | undefined; - samplingLevel?: string | undefined; - segment?: string | undefined; - sort?: string[] | undefined; - start_date?: string | undefined; - start_index?: number | undefined; - } - interface McfDataRows { - conversionPathValue?: McfDataRowsConversionPathValue[] | undefined; - primitiveValue?: string | undefined; - } - interface McfDataRowsConversionPathValue { - interactionType?: string | undefined; - nodeValue?: string | undefined; - } - interface Profile { - accountId?: string | undefined; - botFilteringEnabled?: boolean | undefined; - childLink?: ProfileChildLink | undefined; - created?: string | undefined; - currency?: string | undefined; - defaultPage?: string | undefined; - eCommerceTracking?: boolean | undefined; - enhancedECommerceTracking?: boolean | undefined; - excludeQueryParameters?: string | undefined; - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - parentLink?: ProfileParentLink | undefined; - permissions?: ProfilePermissions | undefined; - selfLink?: string | undefined; - siteSearchCategoryParameters?: string | undefined; - siteSearchQueryParameters?: string | undefined; - starred?: boolean | undefined; - stripSiteSearchCategoryParameters?: boolean | undefined; - stripSiteSearchQueryParameters?: boolean | undefined; - timezone?: string | undefined; - type?: string | undefined; - updated?: string | undefined; - webPropertyId?: string | undefined; - websiteUrl?: string | undefined; - } - interface ProfileChildLink { - href?: string | undefined; - type?: string | undefined; - } - interface ProfileFilterLink { - filterRef?: Analytics.Schema.FilterRef | undefined; - id?: string | undefined; - kind?: string | undefined; - profileRef?: ProfileRef | undefined; - rank?: number | undefined; - selfLink?: string | undefined; - } - interface ProfileFilterLinks { - items?: ProfileFilterLink[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface ProfileParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface ProfilePermissions { - effective?: string[] | undefined; - } - interface ProfileRef { - accountId?: string | undefined; - href?: string | undefined; - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - webPropertyId?: string | undefined; - } - interface ProfileSummary { - id?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - starred?: boolean | undefined; - type?: string | undefined; - } - interface Profiles { - items?: Profile[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface RealtimeData { - columnHeaders?: RealtimeDataColumnHeaders[] | undefined; - id?: string | undefined; - kind?: string | undefined; - profileInfo?: RealtimeDataProfileInfo | undefined; - query?: RealtimeDataQuery | undefined; - rows?: string[][] | undefined; - selfLink?: string | undefined; - totalResults?: number | undefined; - totalsForAllResults?: Record | undefined; - } - interface RealtimeDataColumnHeaders { - columnType?: string | undefined; - dataType?: string | undefined; - name?: string | undefined; - } - interface RealtimeDataProfileInfo { - accountId?: string | undefined; - internalWebPropertyId?: string | undefined; - profileId?: string | undefined; - profileName?: string | undefined; - tableId?: string | undefined; - webPropertyId?: string | undefined; - } - interface RealtimeDataQuery { - dimensions?: string | undefined; - filters?: string | undefined; - ids?: string | undefined; - max_results?: number | undefined; - metrics?: string[] | undefined; - sort?: string[] | undefined; - } - interface RemarketingAudience { - accountId?: string | undefined; - audienceDefinition?: RemarketingAudienceAudienceDefinition | undefined; - audienceType?: string | undefined; - created?: string | undefined; - description?: string | undefined; - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - linkedAdAccounts?: LinkedForeignAccount[] | undefined; - linkedViews?: string[] | undefined; - name?: string | undefined; - stateBasedAudienceDefinition?: RemarketingAudienceStateBasedAudienceDefinition | undefined; - updated?: string | undefined; - webPropertyId?: string | undefined; - } - interface RemarketingAudienceAudienceDefinition { - includeConditions?: IncludeConditions | undefined; - } - interface RemarketingAudienceStateBasedAudienceDefinition { - excludeConditions?: RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions | undefined; - includeConditions?: IncludeConditions | undefined; - } - interface RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions { - exclusionDuration?: string | undefined; - segment?: string | undefined; - } - interface RemarketingAudiences { - items?: RemarketingAudience[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface Segment { - created?: string | undefined; - definition?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - segmentId?: string | undefined; - selfLink?: string | undefined; - type?: string | undefined; - updated?: string | undefined; - } - interface Segments { - items?: Segment[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface UnsampledReport { - accountId?: string | undefined; - cloudStorageDownloadDetails?: UnsampledReportCloudStorageDownloadDetails | undefined; - created?: string | undefined; - dimensions?: string | undefined; - downloadType?: string | undefined; - driveDownloadDetails?: UnsampledReportDriveDownloadDetails | undefined; - end_date?: string | undefined; - filters?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - metrics?: string | undefined; - profileId?: string | undefined; - segment?: string | undefined; - selfLink?: string | undefined; - start_date?: string | undefined; - status?: string | undefined; - title?: string | undefined; - updated?: string | undefined; - webPropertyId?: string | undefined; - } - interface UnsampledReportCloudStorageDownloadDetails { - bucketId?: string | undefined; - objectId?: string | undefined; - } - interface UnsampledReportDriveDownloadDetails { - documentId?: string | undefined; - } - interface UnsampledReports { - items?: UnsampledReport[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface Upload { - accountId?: string | undefined; - customDataSourceId?: string | undefined; - errors?: string[] | undefined; - id?: string | undefined; - kind?: string | undefined; - status?: string | undefined; - uploadTime?: string | undefined; - } - interface Uploads { - items?: Upload[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - } - interface UserDeletionRequest { - deletionRequestTime?: string | undefined; - firebaseProjectId?: string | undefined; - id?: UserDeletionRequestId | undefined; - kind?: string | undefined; - webPropertyId?: string | undefined; - } - interface UserDeletionRequestId { - type?: string | undefined; - userId?: string | undefined; - } - interface UserRef { - email?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - } - interface WebPropertyRef { - accountId?: string | undefined; - href?: string | undefined; - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - name?: string | undefined; - } - interface WebPropertySummary { - id?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - level?: string | undefined; - name?: string | undefined; - profiles?: ProfileSummary[] | undefined; - starred?: boolean | undefined; - websiteUrl?: string | undefined; - } - interface Webproperties { - items?: Webproperty[] | undefined; - itemsPerPage?: number | undefined; - kind?: string | undefined; - nextLink?: string | undefined; - previousLink?: string | undefined; - startIndex?: number | undefined; - totalResults?: number | undefined; - username?: string | undefined; - } - interface Webproperty { - accountId?: string | undefined; - childLink?: WebpropertyChildLink | undefined; - created?: string | undefined; - dataRetentionResetOnNewActivity?: boolean | undefined; - dataRetentionTtl?: string | undefined; - defaultProfileId?: string | undefined; - id?: string | undefined; - industryVertical?: string | undefined; - internalWebPropertyId?: string | undefined; - kind?: string | undefined; - level?: string | undefined; - name?: string | undefined; - parentLink?: WebpropertyParentLink | undefined; - permissions?: WebpropertyPermissions | undefined; - profileCount?: number | undefined; - selfLink?: string | undefined; - starred?: boolean | undefined; - updated?: string | undefined; - websiteUrl?: string | undefined; - } - interface WebpropertyChildLink { - href?: string | undefined; - type?: string | undefined; - } - interface WebpropertyParentLink { - href?: string | undefined; - type?: string | undefined; - } - interface WebpropertyPermissions { - effective?: string[] | undefined; - } - } - } - interface Analytics { - Data: Analytics.Collection.DataCollection; - Management: Analytics.Collection.ManagementCollection; - Metadata: Analytics.Collection.MetadataCollection; - Provisioning: Analytics.Collection.ProvisioningCollection; - UserDeletion: Analytics.Collection.UserDeletionCollection; - // Create a new instance of Account - newAccount(): Analytics.Schema.Account; - // Create a new instance of AccountChildLink - newAccountChildLink(): Analytics.Schema.AccountChildLink; - // Create a new instance of AccountPermissions - newAccountPermissions(): Analytics.Schema.AccountPermissions; - // Create a new instance of AccountRef - newAccountRef(): Analytics.Schema.AccountRef; - // Create a new instance of AccountTicket - newAccountTicket(): Analytics.Schema.AccountTicket; - // Create a new instance of AccountTreeRequest - newAccountTreeRequest(): Analytics.Schema.AccountTreeRequest; - // Create a new instance of AdWordsAccount - newAdWordsAccount(): Analytics.Schema.AdWordsAccount; - // Create a new instance of AnalyticsDataimportDeleteUploadDataRequest - newAnalyticsDataimportDeleteUploadDataRequest(): Analytics.Schema.AnalyticsDataimportDeleteUploadDataRequest; - // Create a new instance of CustomDimension - newCustomDimension(): Analytics.Schema.CustomDimension; - // Create a new instance of CustomDimensionParentLink - newCustomDimensionParentLink(): Analytics.Schema.CustomDimensionParentLink; - // Create a new instance of CustomMetric - newCustomMetric(): Analytics.Schema.CustomMetric; - // Create a new instance of CustomMetricParentLink - newCustomMetricParentLink(): Analytics.Schema.CustomMetricParentLink; - // Create a new instance of EntityAdWordsLink - newEntityAdWordsLink(): Analytics.Schema.EntityAdWordsLink; - // Create a new instance of EntityAdWordsLinkEntity - newEntityAdWordsLinkEntity(): Analytics.Schema.EntityAdWordsLinkEntity; - // Create a new instance of EntityUserLink - newEntityUserLink(): Analytics.Schema.EntityUserLink; - // Create a new instance of EntityUserLinkEntity - newEntityUserLinkEntity(): Analytics.Schema.EntityUserLinkEntity; - // Create a new instance of EntityUserLinkPermissions - newEntityUserLinkPermissions(): Analytics.Schema.EntityUserLinkPermissions; - // Create a new instance of Experiment - newExperiment(): Analytics.Schema.Experiment; - // Create a new instance of ExperimentParentLink - newExperimentParentLink(): Analytics.Schema.ExperimentParentLink; - // Create a new instance of ExperimentVariations - newExperimentVariations(): Analytics.Schema.ExperimentVariations; - // Create a new instance of Filter - newFilter(): Analytics.Schema.Filter; - // Create a new instance of FilterAdvancedDetails - newFilterAdvancedDetails(): Analytics.Schema.FilterAdvancedDetails; - // Create a new instance of FilterExpression - newFilterExpression(): Analytics.Schema.FilterExpression; - // Create a new instance of FilterLowercaseDetails - newFilterLowercaseDetails(): Analytics.Schema.FilterLowercaseDetails; - // Create a new instance of FilterParentLink - newFilterParentLink(): Analytics.Schema.FilterParentLink; - // Create a new instance of FilterRef - newFilterRef(): Analytics.Schema.FilterRef; - // Create a new instance of FilterSearchAndReplaceDetails - newFilterSearchAndReplaceDetails(): Analytics.Schema.FilterSearchAndReplaceDetails; - // Create a new instance of FilterUppercaseDetails - newFilterUppercaseDetails(): Analytics.Schema.FilterUppercaseDetails; - // Create a new instance of Goal - newGoal(): Analytics.Schema.Goal; - // Create a new instance of GoalEventDetails - newGoalEventDetails(): Analytics.Schema.GoalEventDetails; - // Create a new instance of GoalEventDetailsEventConditions - newGoalEventDetailsEventConditions(): Analytics.Schema.GoalEventDetailsEventConditions; - // Create a new instance of GoalParentLink - newGoalParentLink(): Analytics.Schema.GoalParentLink; - // Create a new instance of GoalUrlDestinationDetails - newGoalUrlDestinationDetails(): Analytics.Schema.GoalUrlDestinationDetails; - // Create a new instance of GoalUrlDestinationDetailsSteps - newGoalUrlDestinationDetailsSteps(): Analytics.Schema.GoalUrlDestinationDetailsSteps; - // Create a new instance of GoalVisitNumPagesDetails - newGoalVisitNumPagesDetails(): Analytics.Schema.GoalVisitNumPagesDetails; - // Create a new instance of GoalVisitTimeOnSiteDetails - newGoalVisitTimeOnSiteDetails(): Analytics.Schema.GoalVisitTimeOnSiteDetails; - // Create a new instance of HashClientIdRequest - newHashClientIdRequest(): Analytics.Schema.HashClientIdRequest; - // Create a new instance of IncludeConditions - newIncludeConditions(): Analytics.Schema.IncludeConditions; - // Create a new instance of LinkedForeignAccount - newLinkedForeignAccount(): Analytics.Schema.LinkedForeignAccount; - // Create a new instance of Profile - newProfile(): Analytics.Schema.Profile; - // Create a new instance of ProfileChildLink - newProfileChildLink(): Analytics.Schema.ProfileChildLink; - // Create a new instance of ProfileFilterLink - newProfileFilterLink(): Analytics.Schema.ProfileFilterLink; - // Create a new instance of ProfileParentLink - newProfileParentLink(): Analytics.Schema.ProfileParentLink; - // Create a new instance of ProfilePermissions - newProfilePermissions(): Analytics.Schema.ProfilePermissions; - // Create a new instance of ProfileRef - newProfileRef(): Analytics.Schema.ProfileRef; - // Create a new instance of RemarketingAudience - newRemarketingAudience(): Analytics.Schema.RemarketingAudience; - // Create a new instance of RemarketingAudienceAudienceDefinition - newRemarketingAudienceAudienceDefinition(): Analytics.Schema.RemarketingAudienceAudienceDefinition; - // Create a new instance of RemarketingAudienceStateBasedAudienceDefinition - newRemarketingAudienceStateBasedAudienceDefinition(): Analytics.Schema.RemarketingAudienceStateBasedAudienceDefinition; - // Create a new instance of RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions - newRemarketingAudienceStateBasedAudienceDefinitionExcludeConditions(): Analytics.Schema.RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions; - // Create a new instance of UnsampledReport - newUnsampledReport(): Analytics.Schema.UnsampledReport; - // Create a new instance of UnsampledReportCloudStorageDownloadDetails - newUnsampledReportCloudStorageDownloadDetails(): Analytics.Schema.UnsampledReportCloudStorageDownloadDetails; - // Create a new instance of UnsampledReportDriveDownloadDetails - newUnsampledReportDriveDownloadDetails(): Analytics.Schema.UnsampledReportDriveDownloadDetails; - // Create a new instance of UserDeletionRequest - newUserDeletionRequest(): Analytics.Schema.UserDeletionRequest; - // Create a new instance of UserDeletionRequestId - newUserDeletionRequestId(): Analytics.Schema.UserDeletionRequestId; - // Create a new instance of UserRef - newUserRef(): Analytics.Schema.UserRef; - // Create a new instance of WebPropertyRef - newWebPropertyRef(): Analytics.Schema.WebPropertyRef; - // Create a new instance of Webproperty - newWebproperty(): Analytics.Schema.Webproperty; - // Create a new instance of WebpropertyChildLink - newWebpropertyChildLink(): Analytics.Schema.WebpropertyChildLink; - // Create a new instance of WebpropertyParentLink - newWebpropertyParentLink(): Analytics.Schema.WebpropertyParentLink; - // Create a new instance of WebpropertyPermissions - newWebpropertyPermissions(): Analytics.Schema.WebpropertyPermissions; - } -} - -/** - * The `Analytics` advanced service must be enabled. - */ -declare var Analytics: GoogleAppsScript.Analytics | undefined; diff --git a/types/google-apps-script/apis/analyticsreporting_v4.d.ts b/types/google-apps-script/apis/analyticsreporting_v4.d.ts deleted file mode 100644 index 42bd828d10dde9..00000000000000 --- a/types/google-apps-script/apis/analyticsreporting_v4.d.ts +++ /dev/null @@ -1,360 +0,0 @@ -declare namespace GoogleAppsScript { - namespace AnalyticsReporting { - namespace Collection { - interface ReportsCollection { - // Returns the Analytics data. - batchGet(resource: Schema.GetReportsRequest): AnalyticsReporting.Schema.GetReportsResponse; - } - interface UserActivityCollection { - // Returns User Activity data. - search( - resource: Schema.SearchUserActivityRequest, - ): AnalyticsReporting.Schema.SearchUserActivityResponse; - } - } - namespace Schema { - interface Activity { - activityTime?: string | undefined; - activityType?: string | undefined; - appview?: AnalyticsReporting.Schema.ScreenviewData | undefined; - campaign?: string | undefined; - channelGrouping?: string | undefined; - customDimension?: AnalyticsReporting.Schema.CustomDimension[] | undefined; - ecommerce?: AnalyticsReporting.Schema.EcommerceData | undefined; - event?: AnalyticsReporting.Schema.EventData | undefined; - goals?: AnalyticsReporting.Schema.GoalSetData | undefined; - hostname?: string | undefined; - keyword?: string | undefined; - landingPagePath?: string | undefined; - medium?: string | undefined; - pageview?: AnalyticsReporting.Schema.PageviewData | undefined; - source?: string | undefined; - } - interface Cohort { - dateRange?: AnalyticsReporting.Schema.DateRange | undefined; - name?: string | undefined; - type?: string | undefined; - } - interface CohortGroup { - cohorts?: AnalyticsReporting.Schema.Cohort[] | undefined; - lifetimeValue?: boolean | undefined; - } - interface ColumnHeader { - dimensions?: string[] | undefined; - metricHeader?: AnalyticsReporting.Schema.MetricHeader | undefined; - } - interface CustomDimension { - index?: number | undefined; - value?: string | undefined; - } - interface DateRange { - endDate?: string | undefined; - startDate?: string | undefined; - } - interface DateRangeValues { - pivotValueRegions?: AnalyticsReporting.Schema.PivotValueRegion[] | undefined; - values?: string[] | undefined; - } - interface Dimension { - histogramBuckets?: string[] | undefined; - name?: string | undefined; - } - interface DimensionFilter { - caseSensitive?: boolean | undefined; - dimensionName?: string | undefined; - expressions?: string[] | undefined; - not?: boolean | undefined; - operator?: string | undefined; - } - interface DimensionFilterClause { - filters?: AnalyticsReporting.Schema.DimensionFilter[] | undefined; - operator?: string | undefined; - } - interface DynamicSegment { - name?: string | undefined; - sessionSegment?: AnalyticsReporting.Schema.SegmentDefinition | undefined; - userSegment?: AnalyticsReporting.Schema.SegmentDefinition | undefined; - } - interface EcommerceData { - actionType?: string | undefined; - ecommerceType?: string | undefined; - products?: AnalyticsReporting.Schema.ProductData[] | undefined; - transaction?: AnalyticsReporting.Schema.TransactionData | undefined; - } - interface EventData { - eventAction?: string | undefined; - eventCategory?: string | undefined; - eventCount?: string | undefined; - eventLabel?: string | undefined; - eventValue?: string | undefined; - } - interface GetReportsRequest { - reportRequests?: AnalyticsReporting.Schema.ReportRequest[] | undefined; - useResourceQuotas?: boolean | undefined; - } - interface GetReportsResponse { - queryCost?: number | undefined; - reports?: AnalyticsReporting.Schema.Report[] | undefined; - resourceQuotasRemaining?: AnalyticsReporting.Schema.ResourceQuotasRemaining | undefined; - } - interface GoalData { - goalCompletionLocation?: string | undefined; - goalCompletions?: string | undefined; - goalIndex?: number | undefined; - goalName?: string | undefined; - goalPreviousStep1?: string | undefined; - goalPreviousStep2?: string | undefined; - goalPreviousStep3?: string | undefined; - goalValue?: number | undefined; - } - interface GoalSetData { - goals?: AnalyticsReporting.Schema.GoalData[] | undefined; - } - interface Metric { - alias?: string | undefined; - expression?: string | undefined; - formattingType?: string | undefined; - } - interface MetricFilter { - comparisonValue?: string | undefined; - metricName?: string | undefined; - not?: boolean | undefined; - operator?: string | undefined; - } - interface MetricFilterClause { - filters?: AnalyticsReporting.Schema.MetricFilter[] | undefined; - operator?: string | undefined; - } - interface MetricHeader { - metricHeaderEntries?: AnalyticsReporting.Schema.MetricHeaderEntry[] | undefined; - pivotHeaders?: AnalyticsReporting.Schema.PivotHeader[] | undefined; - } - interface MetricHeaderEntry { - name?: string | undefined; - type?: string | undefined; - } - interface OrFiltersForSegment { - segmentFilterClauses?: AnalyticsReporting.Schema.SegmentFilterClause[] | undefined; - } - interface OrderBy { - fieldName?: string | undefined; - orderType?: string | undefined; - sortOrder?: string | undefined; - } - interface PageviewData { - pagePath?: string | undefined; - pageTitle?: string | undefined; - } - interface Pivot { - dimensionFilterClauses?: AnalyticsReporting.Schema.DimensionFilterClause[] | undefined; - dimensions?: AnalyticsReporting.Schema.Dimension[] | undefined; - maxGroupCount?: number | undefined; - metrics?: AnalyticsReporting.Schema.Metric[] | undefined; - startGroup?: number | undefined; - } - interface PivotHeader { - pivotHeaderEntries?: AnalyticsReporting.Schema.PivotHeaderEntry[] | undefined; - totalPivotGroupsCount?: number | undefined; - } - interface PivotHeaderEntry { - dimensionNames?: string[] | undefined; - dimensionValues?: string[] | undefined; - metric?: AnalyticsReporting.Schema.MetricHeaderEntry | undefined; - } - interface PivotValueRegion { - values?: string[] | undefined; - } - interface ProductData { - itemRevenue?: number | undefined; - productName?: string | undefined; - productQuantity?: string | undefined; - productSku?: string | undefined; - } - interface Report { - columnHeader?: AnalyticsReporting.Schema.ColumnHeader | undefined; - data?: AnalyticsReporting.Schema.ReportData | undefined; - nextPageToken?: string | undefined; - } - interface ReportData { - dataLastRefreshed?: string | undefined; - isDataGolden?: boolean | undefined; - maximums?: AnalyticsReporting.Schema.DateRangeValues[] | undefined; - minimums?: AnalyticsReporting.Schema.DateRangeValues[] | undefined; - rowCount?: number | undefined; - rows?: AnalyticsReporting.Schema.ReportRow[] | undefined; - samplesReadCounts?: string[] | undefined; - samplingSpaceSizes?: string[] | undefined; - totals?: AnalyticsReporting.Schema.DateRangeValues[] | undefined; - } - interface ReportRequest { - cohortGroup?: AnalyticsReporting.Schema.CohortGroup | undefined; - dateRanges?: AnalyticsReporting.Schema.DateRange[] | undefined; - dimensionFilterClauses?: AnalyticsReporting.Schema.DimensionFilterClause[] | undefined; - dimensions?: AnalyticsReporting.Schema.Dimension[] | undefined; - filtersExpression?: string | undefined; - hideTotals?: boolean | undefined; - hideValueRanges?: boolean | undefined; - includeEmptyRows?: boolean | undefined; - metricFilterClauses?: AnalyticsReporting.Schema.MetricFilterClause[] | undefined; - metrics?: AnalyticsReporting.Schema.Metric[] | undefined; - orderBys?: AnalyticsReporting.Schema.OrderBy[] | undefined; - pageSize?: number | undefined; - pageToken?: string | undefined; - pivots?: AnalyticsReporting.Schema.Pivot[] | undefined; - samplingLevel?: string | undefined; - segments?: AnalyticsReporting.Schema.Segment[] | undefined; - viewId?: string | undefined; - } - interface ReportRow { - dimensions?: string[] | undefined; - metrics?: AnalyticsReporting.Schema.DateRangeValues[] | undefined; - } - interface ResourceQuotasRemaining { - dailyQuotaTokensRemaining?: number | undefined; - hourlyQuotaTokensRemaining?: number | undefined; - } - interface ScreenviewData { - appName?: string | undefined; - mobileDeviceBranding?: string | undefined; - mobileDeviceModel?: string | undefined; - screenName?: string | undefined; - } - interface SearchUserActivityRequest { - activityTypes?: string[] | undefined; - dateRange?: AnalyticsReporting.Schema.DateRange | undefined; - pageSize?: number | undefined; - pageToken?: string | undefined; - user?: AnalyticsReporting.Schema.User | undefined; - viewId?: string | undefined; - } - interface SearchUserActivityResponse { - nextPageToken?: string | undefined; - sampleRate?: number | undefined; - sessions?: AnalyticsReporting.Schema.UserActivitySession[] | undefined; - totalRows?: number | undefined; - } - interface Segment { - dynamicSegment?: AnalyticsReporting.Schema.DynamicSegment | undefined; - segmentId?: string | undefined; - } - interface SegmentDefinition { - segmentFilters?: AnalyticsReporting.Schema.SegmentFilter[] | undefined; - } - interface SegmentDimensionFilter { - caseSensitive?: boolean | undefined; - dimensionName?: string | undefined; - expressions?: string[] | undefined; - maxComparisonValue?: string | undefined; - minComparisonValue?: string | undefined; - operator?: string | undefined; - } - interface SegmentFilter { - not?: boolean | undefined; - sequenceSegment?: AnalyticsReporting.Schema.SequenceSegment | undefined; - simpleSegment?: AnalyticsReporting.Schema.SimpleSegment | undefined; - } - interface SegmentFilterClause { - dimensionFilter?: AnalyticsReporting.Schema.SegmentDimensionFilter | undefined; - metricFilter?: AnalyticsReporting.Schema.SegmentMetricFilter | undefined; - not?: boolean | undefined; - } - interface SegmentMetricFilter { - comparisonValue?: string | undefined; - maxComparisonValue?: string | undefined; - metricName?: string | undefined; - operator?: string | undefined; - scope?: string | undefined; - } - interface SegmentSequenceStep { - matchType?: string | undefined; - orFiltersForSegment?: AnalyticsReporting.Schema.OrFiltersForSegment[] | undefined; - } - interface SequenceSegment { - firstStepShouldMatchFirstHit?: boolean | undefined; - segmentSequenceSteps?: AnalyticsReporting.Schema.SegmentSequenceStep[] | undefined; - } - interface SimpleSegment { - orFiltersForSegment?: AnalyticsReporting.Schema.OrFiltersForSegment[] | undefined; - } - interface TransactionData { - transactionId?: string | undefined; - transactionRevenue?: number | undefined; - transactionShipping?: number | undefined; - transactionTax?: number | undefined; - } - interface User { - type?: string | undefined; - userId?: string | undefined; - } - interface UserActivitySession { - activities?: AnalyticsReporting.Schema.Activity[] | undefined; - dataSource?: string | undefined; - deviceCategory?: string | undefined; - platform?: string | undefined; - sessionDate?: string | undefined; - sessionId?: string | undefined; - } - } - } - interface AnalyticsReporting { - Reports: AnalyticsReporting.Collection.ReportsCollection; - UserActivity: AnalyticsReporting.Collection.UserActivityCollection; - // Create a new instance of Cohort - newCohort(): AnalyticsReporting.Schema.Cohort; - // Create a new instance of CohortGroup - newCohortGroup(): AnalyticsReporting.Schema.CohortGroup; - // Create a new instance of DateRange - newDateRange(): AnalyticsReporting.Schema.DateRange; - // Create a new instance of Dimension - newDimension(): AnalyticsReporting.Schema.Dimension; - // Create a new instance of DimensionFilter - newDimensionFilter(): AnalyticsReporting.Schema.DimensionFilter; - // Create a new instance of DimensionFilterClause - newDimensionFilterClause(): AnalyticsReporting.Schema.DimensionFilterClause; - // Create a new instance of DynamicSegment - newDynamicSegment(): AnalyticsReporting.Schema.DynamicSegment; - // Create a new instance of GetReportsRequest - newGetReportsRequest(): AnalyticsReporting.Schema.GetReportsRequest; - // Create a new instance of Metric - newMetric(): AnalyticsReporting.Schema.Metric; - // Create a new instance of MetricFilter - newMetricFilter(): AnalyticsReporting.Schema.MetricFilter; - // Create a new instance of MetricFilterClause - newMetricFilterClause(): AnalyticsReporting.Schema.MetricFilterClause; - // Create a new instance of OrFiltersForSegment - newOrFiltersForSegment(): AnalyticsReporting.Schema.OrFiltersForSegment; - // Create a new instance of OrderBy - newOrderBy(): AnalyticsReporting.Schema.OrderBy; - // Create a new instance of Pivot - newPivot(): AnalyticsReporting.Schema.Pivot; - // Create a new instance of ReportRequest - newReportRequest(): AnalyticsReporting.Schema.ReportRequest; - // Create a new instance of SearchUserActivityRequest - newSearchUserActivityRequest(): AnalyticsReporting.Schema.SearchUserActivityRequest; - // Create a new instance of Segment - newSegment(): AnalyticsReporting.Schema.Segment; - // Create a new instance of SegmentDefinition - newSegmentDefinition(): AnalyticsReporting.Schema.SegmentDefinition; - // Create a new instance of SegmentDimensionFilter - newSegmentDimensionFilter(): AnalyticsReporting.Schema.SegmentDimensionFilter; - // Create a new instance of SegmentFilter - newSegmentFilter(): AnalyticsReporting.Schema.SegmentFilter; - // Create a new instance of SegmentFilterClause - newSegmentFilterClause(): AnalyticsReporting.Schema.SegmentFilterClause; - // Create a new instance of SegmentMetricFilter - newSegmentMetricFilter(): AnalyticsReporting.Schema.SegmentMetricFilter; - // Create a new instance of SegmentSequenceStep - newSegmentSequenceStep(): AnalyticsReporting.Schema.SegmentSequenceStep; - // Create a new instance of SequenceSegment - newSequenceSegment(): AnalyticsReporting.Schema.SequenceSegment; - // Create a new instance of SimpleSegment - newSimpleSegment(): AnalyticsReporting.Schema.SimpleSegment; - // Create a new instance of User - newUser(): AnalyticsReporting.Schema.User; - } -} - -/** - * The `AnalyticsReporting` advanced service must be enabled. - */ -declare var AnalyticsReporting: GoogleAppsScript.AnalyticsReporting | undefined; diff --git a/types/google-apps-script/apis/appsactivity_v1.d.ts b/types/google-apps-script/apis/appsactivity_v1.d.ts deleted file mode 100644 index 201abc9bc5d063..00000000000000 --- a/types/google-apps-script/apis/appsactivity_v1.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -declare namespace GoogleAppsScript { - namespace Appsactivity { - namespace Collection { - interface ActivitiesCollection { - // Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter. - list(): Appsactivity.Schema.ListActivitiesResponse; - // Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter. - list(optionalArgs: object): Appsactivity.Schema.ListActivitiesResponse; - } - } - namespace Schema { - interface Activity { - combinedEvent?: Appsactivity.Schema.Event | undefined; - singleEvents?: Appsactivity.Schema.Event[] | undefined; - } - interface Event { - additionalEventTypes?: string[] | undefined; - eventTimeMillis?: string | undefined; - fromUserDeletion?: boolean | undefined; - move?: Appsactivity.Schema.Move | undefined; - permissionChanges?: Appsactivity.Schema.PermissionChange[] | undefined; - primaryEventType?: string | undefined; - rename?: Appsactivity.Schema.Rename | undefined; - target?: Appsactivity.Schema.Target | undefined; - user?: Appsactivity.Schema.User | undefined; - } - interface ListActivitiesResponse { - activities?: Appsactivity.Schema.Activity[] | undefined; - nextPageToken?: string | undefined; - } - interface Move { - addedParents?: Appsactivity.Schema.Parent[] | undefined; - removedParents?: Appsactivity.Schema.Parent[] | undefined; - } - interface Parent { - id?: string | undefined; - isRoot?: boolean | undefined; - title?: string | undefined; - } - interface Permission { - name?: string | undefined; - permissionId?: string | undefined; - role?: string | undefined; - type?: string | undefined; - user?: Appsactivity.Schema.User | undefined; - withLink?: boolean | undefined; - } - interface PermissionChange { - addedPermissions?: Appsactivity.Schema.Permission[] | undefined; - removedPermissions?: Appsactivity.Schema.Permission[] | undefined; - } - interface Photo { - url?: string | undefined; - } - interface Rename { - newTitle?: string | undefined; - oldTitle?: string | undefined; - } - interface Target { - id?: string | undefined; - mimeType?: string | undefined; - name?: string | undefined; - } - interface User { - isDeleted?: boolean | undefined; - isMe?: boolean | undefined; - name?: string | undefined; - permissionId?: string | undefined; - photo?: Appsactivity.Schema.Photo | undefined; - } - } - } - interface Appsactivity { - Activities: Appsactivity.Collection.ActivitiesCollection; - } -} - -/** - * The `Appsactivity` advanced service must be enabled. - */ -declare var Appsactivity: GoogleAppsScript.Appsactivity | undefined; diff --git a/types/google-apps-script/apis/content_v2.d.ts b/types/google-apps-script/apis/content_v2_1.d.ts similarity index 100% rename from types/google-apps-script/apis/content_v2.d.ts rename to types/google-apps-script/apis/content_v2_1.d.ts diff --git a/types/google-apps-script/apis/dfareporting_v3_3.d.ts b/types/google-apps-script/apis/dfareporting_v3_5.d.ts similarity index 100% rename from types/google-apps-script/apis/dfareporting_v3_3.d.ts rename to types/google-apps-script/apis/dfareporting_v3_5.d.ts diff --git a/types/google-apps-script/apis/mirror_v1.d.ts b/types/google-apps-script/apis/mirror_v1.d.ts deleted file mode 100644 index a9c3dd0909ff03..00000000000000 --- a/types/google-apps-script/apis/mirror_v1.d.ts +++ /dev/null @@ -1,268 +0,0 @@ -declare namespace GoogleAppsScript { - namespace Mirror { - namespace Collection { - namespace Timeline { - interface AttachmentsCollection { - // Retrieves an attachment on a timeline item by item ID and attachment ID. - get(itemId: string, attachmentId: string): Mirror.Schema.Attachment; - // Adds a new attachment to a timeline item. - insert(itemId: string): Mirror.Schema.Attachment; - // Adds a new attachment to a timeline item. - insert(itemId: string, mediaData: any): Mirror.Schema.Attachment; - // Returns a list of attachments for a timeline item. - list(itemId: string): Mirror.Schema.AttachmentsListResponse; - // Deletes an attachment from a timeline item. - remove(itemId: string, attachmentId: string): void; - } - } - interface AccountsCollection { - // Inserts a new account for a user - insert( - resource: Schema.Account, - userToken: string, - accountType: string, - accountName: string, - ): Mirror.Schema.Account; - } - interface ContactsCollection { - // Gets a single contact by ID. - get(id: string): Mirror.Schema.Contact; - // Inserts a new contact. - insert(resource: Schema.Contact): Mirror.Schema.Contact; - // Retrieves a list of contacts for the authenticated user. - list(): Mirror.Schema.ContactsListResponse; - // Updates a contact in place. This method supports patch semantics. - patch(resource: Schema.Contact, id: string): Mirror.Schema.Contact; - // Deletes a contact. - remove(id: string): void; - // Updates a contact in place. - update(resource: Schema.Contact, id: string): Mirror.Schema.Contact; - } - interface LocationsCollection { - // Gets a single location by ID. - get(id: string): Mirror.Schema.Location; - // Retrieves a list of locations for the user. - list(): Mirror.Schema.LocationsListResponse; - } - interface SettingsCollection { - // Gets a single setting by ID. - get(id: string): Mirror.Schema.Setting; - } - interface SubscriptionsCollection { - // Creates a new subscription. - insert(resource: Schema.Subscription): Mirror.Schema.Subscription; - // Retrieves a list of subscriptions for the authenticated user and service. - list(): Mirror.Schema.SubscriptionsListResponse; - // Deletes a subscription. - remove(id: string): void; - // Updates an existing subscription in place. - update(resource: Schema.Subscription, id: string): Mirror.Schema.Subscription; - } - interface TimelineCollection { - Attachments: Mirror.Collection.Timeline.AttachmentsCollection; - // Gets a single timeline item by ID. - get(id: string): Mirror.Schema.TimelineItem; - // Inserts a new item into the timeline. - insert(resource: Schema.TimelineItem): Mirror.Schema.TimelineItem; - // Inserts a new item into the timeline. - insert(resource: Schema.TimelineItem, mediaData: any): Mirror.Schema.TimelineItem; - // Retrieves a list of timeline items for the authenticated user. - list(): Mirror.Schema.TimelineListResponse; - // Retrieves a list of timeline items for the authenticated user. - list(optionalArgs: object): Mirror.Schema.TimelineListResponse; - // Updates a timeline item in place. This method supports patch semantics. - patch(resource: Schema.TimelineItem, id: string): Mirror.Schema.TimelineItem; - // Deletes a timeline item. - remove(id: string): void; - // Updates a timeline item in place. - update(resource: Schema.TimelineItem, id: string): Mirror.Schema.TimelineItem; - // Updates a timeline item in place. - update(resource: Schema.TimelineItem, id: string, mediaData: any): Mirror.Schema.TimelineItem; - } - } - namespace Schema { - interface Account { - authTokens?: Mirror.Schema.AuthToken[] | undefined; - features?: string[] | undefined; - password?: string | undefined; - userData?: Mirror.Schema.UserData[] | undefined; - } - interface Attachment { - contentType?: string | undefined; - contentUrl?: string | undefined; - id?: string | undefined; - isProcessingContent?: boolean | undefined; - } - interface AttachmentsListResponse { - items?: Mirror.Schema.Attachment[] | undefined; - kind?: string | undefined; - } - interface AuthToken { - authToken?: string | undefined; - type?: string | undefined; - } - interface Command { - type?: string | undefined; - } - interface Contact { - acceptCommands?: Mirror.Schema.Command[] | undefined; - acceptTypes?: string[] | undefined; - displayName?: string | undefined; - id?: string | undefined; - imageUrls?: string[] | undefined; - kind?: string | undefined; - phoneNumber?: string | undefined; - priority?: number | undefined; - sharingFeatures?: string[] | undefined; - source?: string | undefined; - speakableName?: string | undefined; - type?: string | undefined; - } - interface ContactsListResponse { - items?: Mirror.Schema.Contact[] | undefined; - kind?: string | undefined; - } - interface Location { - accuracy?: number | undefined; - address?: string | undefined; - displayName?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - latitude?: number | undefined; - longitude?: number | undefined; - timestamp?: string | undefined; - } - interface LocationsListResponse { - items?: Mirror.Schema.Location[] | undefined; - kind?: string | undefined; - } - interface MenuItem { - action?: string | undefined; - contextual_command?: string | undefined; - id?: string | undefined; - payload?: string | undefined; - removeWhenSelected?: boolean | undefined; - values?: Mirror.Schema.MenuValue[] | undefined; - } - interface MenuValue { - displayName?: string | undefined; - iconUrl?: string | undefined; - state?: string | undefined; - } - interface Notification { - collection?: string | undefined; - itemId?: string | undefined; - operation?: string | undefined; - userActions?: Mirror.Schema.UserAction[] | undefined; - userToken?: string | undefined; - verifyToken?: string | undefined; - } - interface NotificationConfig { - deliveryTime?: string | undefined; - level?: string | undefined; - } - interface Setting { - id?: string | undefined; - kind?: string | undefined; - value?: string | undefined; - } - interface Subscription { - callbackUrl?: string | undefined; - collection?: string | undefined; - id?: string | undefined; - kind?: string | undefined; - notification?: Mirror.Schema.Notification | undefined; - operation?: string[] | undefined; - updated?: string | undefined; - userToken?: string | undefined; - verifyToken?: string | undefined; - } - interface SubscriptionsListResponse { - items?: Mirror.Schema.Subscription[] | undefined; - kind?: string | undefined; - } - interface TimelineItem { - attachments?: Mirror.Schema.Attachment[] | undefined; - bundleId?: string | undefined; - canonicalUrl?: string | undefined; - created?: string | undefined; - creator?: Mirror.Schema.Contact | undefined; - displayTime?: string | undefined; - etag?: string | undefined; - html?: string | undefined; - id?: string | undefined; - inReplyTo?: string | undefined; - isBundleCover?: boolean | undefined; - isDeleted?: boolean | undefined; - isPinned?: boolean | undefined; - kind?: string | undefined; - location?: Mirror.Schema.Location | undefined; - menuItems?: Mirror.Schema.MenuItem[] | undefined; - notification?: Mirror.Schema.NotificationConfig | undefined; - pinScore?: number | undefined; - recipients?: Mirror.Schema.Contact[] | undefined; - selfLink?: string | undefined; - sourceItemId?: string | undefined; - speakableText?: string | undefined; - speakableType?: string | undefined; - text?: string | undefined; - title?: string | undefined; - updated?: string | undefined; - } - interface TimelineListResponse { - items?: Mirror.Schema.TimelineItem[] | undefined; - kind?: string | undefined; - nextPageToken?: string | undefined; - } - interface UserAction { - payload?: string | undefined; - type?: string | undefined; - } - interface UserData { - key?: string | undefined; - value?: string | undefined; - } - } - } - interface Mirror { - Accounts: Mirror.Collection.AccountsCollection; - Contacts: Mirror.Collection.ContactsCollection; - Locations: Mirror.Collection.LocationsCollection; - Settings: Mirror.Collection.SettingsCollection; - Subscriptions: Mirror.Collection.SubscriptionsCollection; - Timeline: Mirror.Collection.TimelineCollection; - // Create a new instance of Account - newAccount(): Mirror.Schema.Account; - // Create a new instance of Attachment - newAttachment(): Mirror.Schema.Attachment; - // Create a new instance of AuthToken - newAuthToken(): Mirror.Schema.AuthToken; - // Create a new instance of Command - newCommand(): Mirror.Schema.Command; - // Create a new instance of Contact - newContact(): Mirror.Schema.Contact; - // Create a new instance of Location - newLocation(): Mirror.Schema.Location; - // Create a new instance of MenuItem - newMenuItem(): Mirror.Schema.MenuItem; - // Create a new instance of MenuValue - newMenuValue(): Mirror.Schema.MenuValue; - // Create a new instance of Notification - newNotification(): Mirror.Schema.Notification; - // Create a new instance of NotificationConfig - newNotificationConfig(): Mirror.Schema.NotificationConfig; - // Create a new instance of Subscription - newSubscription(): Mirror.Schema.Subscription; - // Create a new instance of TimelineItem - newTimelineItem(): Mirror.Schema.TimelineItem; - // Create a new instance of UserAction - newUserAction(): Mirror.Schema.UserAction; - // Create a new instance of UserData - newUserData(): Mirror.Schema.UserData; - } -} - -/** - * The `Mirror` advanced service must be enabled. - */ -declare var Mirror: GoogleAppsScript.Mirror | undefined; diff --git a/types/google-apps-script/apis/peopleapi_v1.d.ts b/types/google-apps-script/apis/people_v1.d.ts similarity index 100% rename from types/google-apps-script/apis/peopleapi_v1.d.ts rename to types/google-apps-script/apis/people_v1.d.ts diff --git a/types/google-apps-script/index.d.ts b/types/google-apps-script/index.d.ts index 6b2733d49f84dc..a1653d574e4737 100644 --- a/types/google-apps-script/index.d.ts +++ b/types/google-apps-script/index.d.ts @@ -39,14 +39,11 @@ // API Types (Advanced Google Services) /// -/// -/// -/// /// /// /// -/// -/// +/// +/// /// /// /// @@ -56,8 +53,7 @@ /// /// /// -/// -/// +/// /// /// /// diff --git a/types/google-apps-script/test/google-apps-script-apis-tests.ts b/types/google-apps-script/test/google-apps-script-apis-tests.ts index d490ce2b9f0f6f..0a276666cb1dd2 100644 --- a/types/google-apps-script/test/google-apps-script-apis-tests.ts +++ b/types/google-apps-script/test/google-apps-script-apis-tests.ts @@ -228,38 +228,6 @@ function testYouTube() { const list = videos.list("snippet"); } -function testAnalytics() { - if (!Analytics) return; - // $ExpectType Analytics - const analytics = Analytics; - // $ExpectType ManagementCollection - const management = analytics.Management; - // $ExpectType AccountsCollection - const accounts = management.Accounts; - // $ExpectType Accounts - const list = accounts.list(); -} - -function testAnalyticsReporting() { - if (!AnalyticsReporting) return; - // $ExpectType AnalyticsReporting - const analyticsreporting = AnalyticsReporting; - // $ExpectType ReportsCollection - const reports = analyticsreporting.Reports; - // $ExpectType GetReportsResponse - const batchGet = reports.batchGet({}); -} - -function testAppsactivity() { - if (!Appsactivity) return; - // $ExpectType Appsactivity - const appsactivity = Appsactivity; - // $ExpectType ActivitiesCollection - const activities = appsactivity.Activities; - // $ExpectType ListActivitiesResponse - const list = activities.list(); -} - function testBigQuery() { if (!BigQuery) return; // $ExpectType BigQuery @@ -340,16 +308,6 @@ function testAdminLicenseManager() { const list = licenseAssignments.listForProduct("productId", "customerId"); } -function testMirror() { - if (!Mirror) return; - // $ExpectType Mirror - const mirror = Mirror; - // $ExpectType TimelineCollection - const timeline = mirror.Timeline; - // $ExpectType TimelineListResponse - const list = timeline.list(); -} - function testPeopleApi() { if (!People) return; // $ExpectType People diff --git a/types/google-apps-script/test/google-apps-script-tests.ts b/types/google-apps-script/test/google-apps-script-tests.ts index 2cd779886918e7..ff77ba4c1de8d4 100644 --- a/types/google-apps-script/test/google-apps-script-tests.ts +++ b/types/google-apps-script/test/google-apps-script-tests.ts @@ -1035,20 +1035,6 @@ const handleScopeAction = () => { return serialized; }; -// Analytics Test -const requestAnalyticsData = (): string => { - if (!Analytics) throw new Error(); - const gaData = Analytics.Data.Ga.get("An Id", "2022-01-18", "2022-01-18", "Some metrics", { - dimensions: "Some dimensions", - }); - - const totalsForAllResults = gaData.totalsForAllResults; - if (!totalsForAllResults) throw new Error(); - const totalSessions = totalsForAllResults["ga:sessions"]; - - return totalSessions; -}; - // Example of adding an attachment to a calendar event. const onItemSelected = () => { // $ExpectType Attachment @@ -1098,37 +1084,6 @@ const formAppParagraphTextValidation = FormApp.createParagraphTextValidation() const mimeTypes: string[] = [MimeType.GOOGLE_APPS_SCRIPT]; -// analytics reporting test -const analyticsReporting = () => { - if (!AnalyticsReporting) return; - const gaData = AnalyticsReporting.Reports.batchGet({ - reportRequests: [ - { - viewId: "", - dateRanges: [ - { - startDate: "2023-03-08", - endDate: "2023-03-08", - }, - ], - metrics: [ - { - expression: "some metrics", - alias: "some metrics", - formattingType: "some metrics", - }, - ], - dimensions: [ - { - name: "some dimensions", - }, - ], - samplingLevel: "LARGE", - }, - ], - }); -}; - // Spreadsheet Drawing test const sheetDrawing = () => { const sheet = SpreadsheetApp.getActiveSheet();