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

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 -1
  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: 20251115
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -101,6 +101,8 @@ declare namespace gapi.client {
101
101
  accountManagement?: any;
102
102
  /** 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
103
  campaignsManagement?: any;
104
+ /** Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service) managing the account. See https://support.google.com/merchants/answer/12653197 */
105
+ comparisonShopping?: any;
104
106
  /** 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
107
  externalAccountId?: string;
106
108
  /** Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved). */
@@ -121,6 +123,16 @@ declare namespace gapi.client {
121
123
  interface AddAccountService {
122
124
  /** The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation. */
123
125
  accountAggregation?: any;
126
+ /** The provider manages this account. Payload for service type Account Management. */
127
+ accountManagement?: any;
128
+ /** The provider manages campaigns for this account. Payload for service type campaigns management. */
129
+ campaignsManagement?: any;
130
+ /** The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping. */
131
+ comparisonShopping?: any;
132
+ /** 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. */
133
+ externalAccountId?: string;
134
+ /** The provider manages products for this account. Payload for service type products management. */
135
+ productsManagement?: any;
124
136
  /** 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
137
  provider?: string;
126
138
  }
@@ -141,6 +153,8 @@ declare namespace gapi.client {
141
153
  user?: User;
142
154
  /** Required. The email address of the user (for example, `john.doe@gmail.com`). */
143
155
  userId?: string;
156
+ /** Optional. Settings related to configuring the verification email that is sent after adding a user. */
157
+ verificationMailSettings?: VerificationMailSettings;
144
158
  }
145
159
  interface ApproveAccountServiceRequest {}
146
160
  interface AutofeedSettings {
@@ -274,11 +288,14 @@ declare namespace gapi.client {
274
288
  /** 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
289
  overwrite?: boolean;
276
290
  }
291
+ interface ComparisonShopping {}
277
292
  interface CreateAndConfigureAccountRequest {
278
293
  /** Required. The account to be created. */
279
294
  account?: Account;
280
295
  /** 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
296
  service?: AddAccountService[];
297
+ /** 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. */
298
+ setAlias?: SetAliasForRelationship[];
282
299
  /** Optional. Users to be added to the account. */
283
300
  user?: AddUser[];
284
301
  }
@@ -873,6 +890,12 @@ declare namespace gapi.client {
873
890
  /** A list of stores your products are delivered from. This is only valid for the local delivery shipment type. */
874
891
  storeConfig?: StoreConfig;
875
892
  }
893
+ interface SetAliasForRelationship {
894
+ /** 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. */
895
+ accountIdAlias?: string;
896
+ /** 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. */
897
+ provider?: string;
898
+ }
876
899
  interface ShippingSettings {
877
900
  /** 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
901
  etag?: string;
@@ -997,6 +1020,11 @@ declare namespace gapi.client {
997
1020
  /** 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
1021
  subtable?: string;
999
1022
  }
1023
+ interface VerificationMailSettings {
1024
+ /** Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`. */
1025
+ verificationMailMode?: string;
1026
+ }
1027
+ interface VerifySelfRequest {}
1000
1028
  interface Warehouse {
1001
1029
  /** Business days of the warehouse. If not set, will be Monday to Friday by default. */
1002
1030
  businessDayConfig?: BusinessDayConfig;
@@ -3763,6 +3791,66 @@ declare namespace gapi.client {
3763
3791
  uploadType?: string;
3764
3792
  }): Request<TermsOfServiceAgreementState>;
3765
3793
  }
3794
+ interface MeResource {
3795
+ /** Updates the user that is represented by the caller from pending to verified. */
3796
+ verifySelf(request: {
3797
+ /** V1 error format. */
3798
+ '$.xgafv'?: string;
3799
+ /** OAuth access token. */
3800
+ access_token?: string;
3801
+ /** Required. The name of the account under which the caller is a user. Format: `accounts/{account}` */
3802
+ account: string;
3803
+ /** Data format for response. */
3804
+ alt?: string;
3805
+ /** JSONP */
3806
+ callback?: string;
3807
+ /** Selector specifying which fields to include in a partial response. */
3808
+ fields?: string;
3809
+ /** 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. */
3810
+ key?: string;
3811
+ /** OAuth 2.0 token for the current user. */
3812
+ oauth_token?: string;
3813
+ /** Returns response with indentations and line breaks. */
3814
+ prettyPrint?: boolean;
3815
+ /** 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. */
3816
+ quotaUser?: string;
3817
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3818
+ upload_protocol?: string;
3819
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3820
+ uploadType?: string;
3821
+ /** Request body */
3822
+ resource: VerifySelfRequest;
3823
+ }): Request<User>;
3824
+ verifySelf(
3825
+ request: {
3826
+ /** V1 error format. */
3827
+ '$.xgafv'?: string;
3828
+ /** OAuth access token. */
3829
+ access_token?: string;
3830
+ /** Required. The name of the account under which the caller is a user. Format: `accounts/{account}` */
3831
+ account: string;
3832
+ /** Data format for response. */
3833
+ alt?: string;
3834
+ /** JSONP */
3835
+ callback?: string;
3836
+ /** Selector specifying which fields to include in a partial response. */
3837
+ fields?: string;
3838
+ /** 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. */
3839
+ key?: string;
3840
+ /** OAuth 2.0 token for the current user. */
3841
+ oauth_token?: string;
3842
+ /** Returns response with indentations and line breaks. */
3843
+ prettyPrint?: boolean;
3844
+ /** 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. */
3845
+ quotaUser?: string;
3846
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3847
+ upload_protocol?: string;
3848
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3849
+ uploadType?: string;
3850
+ },
3851
+ body: VerifySelfRequest,
3852
+ ): Request<User>;
3853
+ }
3766
3854
  interface UsersResource {
3767
3855
  /** Creates a Merchant Center account user. Executing this method requires admin access. */
3768
3856
  create(request: {
@@ -3973,6 +4061,7 @@ declare namespace gapi.client {
3973
4061
  },
3974
4062
  body: User,
3975
4063
  ): Request<User>;
4064
+ me: MeResource;
3976
4065
  }
3977
4066
  interface AccountsResource {
3978
4067
  /** Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account. */
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.20251115",
4
4
  "description": "TypeScript typings for Merchant API accounts_v1",
5
5
  "repository": {
6
6
  "type": "git",