@maxim_mazurok/gapi.client.merchantapi-accounts_v1 0.0.20251112 → 0.0.20251118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +90 -82
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://merchantapi.googleapis.com/$discovery/rest?version=accounts_v1
12
- // Revision: 20251112
12
+ // Revision: 20251118
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -77,12 +77,6 @@ declare namespace gapi.client {
77
77
  /** The localized title of the issue. */
78
78
  title?: string;
79
79
  }
80
- interface AccountLimit {
81
- /** Identifier. The limit part of the name will be a combination of the type and the scope. For example: `accounts/123/limits/products~ADS_NON_EEA` Format: `accounts/{account}/limits/{limit}` */
82
- name?: string;
83
- /** The limit for products. */
84
- products?: ProductLimit;
85
- }
86
80
  interface AccountManagement {}
87
81
  interface AccountRelationship {
88
82
  /** Optional. An optional alias you can assign to this account relationship. This alias acts as a convenient identifier for your own reference and management. It must be unique among all your account relationships with the same provider. For example, you might use `account_id_alias` to assign a friendly name to this relationship for easier identification in your systems. */
@@ -101,6 +95,8 @@ declare namespace gapi.client {
101
95
  accountManagement?: any;
102
96
  /** Service type for managing advertising campaigns. Grants the provider access to create and manage the business's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance. */
103
97
  campaignsManagement?: any;
98
+ /** Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service) managing the account. See https://support.google.com/merchants/answer/12653197 */
99
+ comparisonShopping?: any;
104
100
  /** Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider. */
105
101
  externalAccountId?: string;
106
102
  /** Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved). */
@@ -121,6 +117,16 @@ declare namespace gapi.client {
121
117
  interface AddAccountService {
122
118
  /** The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation. */
123
119
  accountAggregation?: any;
120
+ /** The provider manages this account. Payload for service type Account Management. */
121
+ accountManagement?: any;
122
+ /** The provider manages campaigns for this account. Payload for service type campaigns management. */
123
+ campaignsManagement?: any;
124
+ /** The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping. */
125
+ comparisonShopping?: any;
126
+ /** Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider. The external account ID must be specified for the campaigns management service type. The external account ID must not be specified for the account aggregation service type. The external account ID is optional / may be specified for all other service types. */
127
+ externalAccountId?: string;
128
+ /** The provider manages products for this account. Payload for service type products management. */
129
+ productsManagement?: any;
124
130
  /** Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). */
125
131
  provider?: string;
126
132
  }
@@ -141,6 +147,8 @@ declare namespace gapi.client {
141
147
  user?: User;
142
148
  /** Required. The email address of the user (for example, `john.doe@gmail.com`). */
143
149
  userId?: string;
150
+ /** Optional. Settings related to configuring the verification email that is sent after adding a user. */
151
+ verificationMailSettings?: VerificationMailSettings;
144
152
  }
145
153
  interface ApproveAccountServiceRequest {}
146
154
  interface AutofeedSettings {
@@ -274,11 +282,14 @@ declare namespace gapi.client {
274
282
  /** Optional. When set to `true`, this option removes any existing claim on the requested website from any other account to the account making the request, effectively replacing the previous claim. */
275
283
  overwrite?: boolean;
276
284
  }
285
+ interface ComparisonShopping {}
277
286
  interface CreateAndConfigureAccountRequest {
278
287
  /** Required. The account to be created. */
279
288
  account?: Account;
280
289
  /** Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be `account_aggregation` and `accounts.createAndConfigure` method can be used to create a sub-account under an existing advanced account through this method. Additional `account_management` or `product_management` services may be provided. */
281
290
  service?: AddAccountService[];
291
+ /** Optional. If a relationship is created with a provider, you can set an alias for it with this field. The calling user must be an admin on the provider to be able to set an alias. */
292
+ setAlias?: SetAliasForRelationship[];
282
293
  /** Optional. Users to be added to the account. */
283
294
  user?: AddUser[];
284
295
  }
@@ -503,12 +514,6 @@ declare namespace gapi.client {
503
514
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
504
515
  nextPageToken?: string;
505
516
  }
506
- interface ListAccountLimitsResponse {
507
- /** The limits for the given account. */
508
- accountLimits?: AccountLimit[];
509
- /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
510
- nextPageToken?: string;
511
- }
512
517
  interface ListAccountRelationshipsResponse {
513
518
  /** The account relationships that match your filter. */
514
519
  accountRelationships?: AccountRelationship[];
@@ -724,12 +729,6 @@ declare namespace gapi.client {
724
729
  /** Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) */
725
730
  reportingContext?: string;
726
731
  }
727
- interface ProductLimit {
728
- /** Required. The maximum number of products that are allowed in the account in the given scope. */
729
- limit?: string;
730
- /** Required. The scope of the product limit. */
731
- scope?: string;
732
- }
733
732
  interface ProductsManagement {}
734
733
  interface ProductStatusChangeMessage {
735
734
  /** The target account that owns the entity that changed. Format : `accounts/{merchant_id}` */
@@ -873,6 +872,12 @@ declare namespace gapi.client {
873
872
  /** A list of stores your products are delivered from. This is only valid for the local delivery shipment type. */
874
873
  storeConfig?: StoreConfig;
875
874
  }
875
+ interface SetAliasForRelationship {
876
+ /** Required. The unique ID of this account in the provider's system. The value must be unique across all accounts on the platform for this provider. */
877
+ accountIdAlias?: string;
878
+ /** Required. The provider of the service. This is a reference to an account such as `providers/123` or `accounts/123`. The same provider must be specified in at least one of the `service` fields. */
879
+ provider?: string;
880
+ }
876
881
  interface ShippingSettings {
877
882
  /** Required. This field helps avoid async issues. It ensures that the shipping setting data doesn't change between the `get` call and the `insert` call. The user should follow these steps: 1. Set the etag field as an empty string for the initial shipping setting creation. 2. After the initial creation, call the `get` method to obtain an etag and the current shipping setting data before calling `insert`. 3. Modify the shipping setting information. 4. Call the `insert` method with the shipping setting information and the etag obtained in step 2. 5. If the shipping setting data changes between step 2 and step 4, the insert request will fail because the etag changes every time the shipping setting data changes. In this case, the user should repeat steps 2-4 with the new etag. */
878
883
  etag?: string;
@@ -997,6 +1002,11 @@ declare namespace gapi.client {
997
1002
  /** The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set. */
998
1003
  subtable?: string;
999
1004
  }
1005
+ interface VerificationMailSettings {
1006
+ /** Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`. */
1007
+ verificationMailMode?: string;
1008
+ }
1009
+ interface VerifySelfRequest {}
1000
1010
  interface Warehouse {
1001
1011
  /** Business days of the warehouse. If not set, will be Monday to Friday by default. */
1002
1012
  businessDayConfig?: BusinessDayConfig;
@@ -1989,68 +1999,6 @@ declare namespace gapi.client {
1989
1999
  uploadType?: string;
1990
2000
  }): Request<ListAccountIssuesResponse>;
1991
2001
  }
1992
- interface LimitsResource {
1993
- /** Retrieves an account limit. */
1994
- get(request?: {
1995
- /** V1 error format. */
1996
- '$.xgafv'?: string;
1997
- /** OAuth access token. */
1998
- access_token?: string;
1999
- /** Data format for response. */
2000
- alt?: string;
2001
- /** JSONP */
2002
- callback?: string;
2003
- /** Selector specifying which fields to include in a partial response. */
2004
- fields?: string;
2005
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2006
- key?: string;
2007
- /** Required. The name of the limit to retrieve. Format: `accounts/{account}/limits/{limit}` For example: `accounts/123/limits/products~ADS_NON_EEA` */
2008
- name: string;
2009
- /** OAuth 2.0 token for the current user. */
2010
- oauth_token?: string;
2011
- /** Returns response with indentations and line breaks. */
2012
- prettyPrint?: boolean;
2013
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2014
- quotaUser?: string;
2015
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2016
- upload_protocol?: string;
2017
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2018
- uploadType?: string;
2019
- }): Request<AccountLimit>;
2020
- /** Lists the limits of an account. */
2021
- list(request?: {
2022
- /** V1 error format. */
2023
- '$.xgafv'?: string;
2024
- /** OAuth access token. */
2025
- access_token?: string;
2026
- /** Data format for response. */
2027
- alt?: string;
2028
- /** JSONP */
2029
- callback?: string;
2030
- /** Selector specifying which fields to include in a partial response. */
2031
- fields?: string;
2032
- /** Required. A filter on the limit `type` is required, for example, `type = "products"`. */
2033
- filter?: string;
2034
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2035
- key?: string;
2036
- /** OAuth 2.0 token for the current user. */
2037
- oauth_token?: string;
2038
- /** Optional. The maximum number of limits to return. The service may return fewer than this value. If unspecified, at most 100 limits will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
2039
- pageSize?: number;
2040
- /** Optional. A page token, received from a previous `ListAccountLimits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLimits` must match the call that provided the page token. */
2041
- pageToken?: string;
2042
- /** Required. The parent account. Format: `accounts/{account}` */
2043
- parent: string;
2044
- /** Returns response with indentations and line breaks. */
2045
- prettyPrint?: boolean;
2046
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2047
- quotaUser?: string;
2048
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2049
- upload_protocol?: string;
2050
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2051
- uploadType?: string;
2052
- }): Request<ListAccountLimitsResponse>;
2053
- }
2054
2002
  interface LfpProvidersResource {
2055
2003
  /** Find the LFP provider candidates in a given country. */
2056
2004
  find(request?: {
@@ -3763,6 +3711,66 @@ declare namespace gapi.client {
3763
3711
  uploadType?: string;
3764
3712
  }): Request<TermsOfServiceAgreementState>;
3765
3713
  }
3714
+ interface MeResource {
3715
+ /** Updates the user that is represented by the caller from pending to verified. */
3716
+ verifySelf(request: {
3717
+ /** V1 error format. */
3718
+ '$.xgafv'?: string;
3719
+ /** OAuth access token. */
3720
+ access_token?: string;
3721
+ /** Required. The name of the account under which the caller is a user. Format: `accounts/{account}` */
3722
+ account: string;
3723
+ /** Data format for response. */
3724
+ alt?: string;
3725
+ /** JSONP */
3726
+ callback?: string;
3727
+ /** Selector specifying which fields to include in a partial response. */
3728
+ fields?: string;
3729
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3730
+ key?: string;
3731
+ /** OAuth 2.0 token for the current user. */
3732
+ oauth_token?: string;
3733
+ /** Returns response with indentations and line breaks. */
3734
+ prettyPrint?: boolean;
3735
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3736
+ quotaUser?: string;
3737
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3738
+ upload_protocol?: string;
3739
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3740
+ uploadType?: string;
3741
+ /** Request body */
3742
+ resource: VerifySelfRequest;
3743
+ }): Request<User>;
3744
+ verifySelf(
3745
+ request: {
3746
+ /** V1 error format. */
3747
+ '$.xgafv'?: string;
3748
+ /** OAuth access token. */
3749
+ access_token?: string;
3750
+ /** Required. The name of the account under which the caller is a user. Format: `accounts/{account}` */
3751
+ account: string;
3752
+ /** Data format for response. */
3753
+ alt?: string;
3754
+ /** JSONP */
3755
+ callback?: string;
3756
+ /** Selector specifying which fields to include in a partial response. */
3757
+ fields?: string;
3758
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3759
+ key?: string;
3760
+ /** OAuth 2.0 token for the current user. */
3761
+ oauth_token?: string;
3762
+ /** Returns response with indentations and line breaks. */
3763
+ prettyPrint?: boolean;
3764
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3765
+ quotaUser?: string;
3766
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3767
+ upload_protocol?: string;
3768
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3769
+ uploadType?: string;
3770
+ },
3771
+ body: VerifySelfRequest,
3772
+ ): Request<User>;
3773
+ }
3766
3774
  interface UsersResource {
3767
3775
  /** Creates a Merchant Center account user. Executing this method requires admin access. */
3768
3776
  create(request: {
@@ -3973,6 +3981,7 @@ declare namespace gapi.client {
3973
3981
  },
3974
3982
  body: User,
3975
3983
  ): Request<User>;
3984
+ me: MeResource;
3976
3985
  }
3977
3986
  interface AccountsResource {
3978
3987
  /** Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account. */
@@ -4218,7 +4227,6 @@ declare namespace gapi.client {
4218
4227
  gbpAccounts: GbpAccountsResource;
4219
4228
  homepage: HomepageResource;
4220
4229
  issues: IssuesResource;
4221
- limits: LimitsResource;
4222
4230
  omnichannelSettings: OmnichannelSettingsResource;
4223
4231
  onlineReturnPolicies: OnlineReturnPoliciesResource;
4224
4232
  programs: ProgramsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.merchantapi-accounts_v1",
3
- "version": "0.0.20251112",
3
+ "version": "0.0.20251118",
4
4
  "description": "TypeScript typings for Merchant API accounts_v1",
5
5
  "repository": {
6
6
  "type": "git",