@maxim_mazurok/gapi.client.merchantapi-accounts_v1beta 0.0.20250409 → 0.0.20250414
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +93 -90
- package/package.json +1 -1
- package/readme.md +0 -12
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_v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250414
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -846,6 +846,97 @@ declare namespace gapi.client {
|
|
|
846
846
|
body: AutofeedSettings,
|
|
847
847
|
): Request<AutofeedSettings>;
|
|
848
848
|
}
|
|
849
|
+
interface AutomaticImprovementsResource {
|
|
850
|
+
/** Retrieves the automatic improvements of an account. */
|
|
851
|
+
getAutomaticImprovements(request?: {
|
|
852
|
+
/** V1 error format. */
|
|
853
|
+
'$.xgafv'?: string;
|
|
854
|
+
/** OAuth access token. */
|
|
855
|
+
access_token?: string;
|
|
856
|
+
/** Data format for response. */
|
|
857
|
+
alt?: string;
|
|
858
|
+
/** JSONP */
|
|
859
|
+
callback?: string;
|
|
860
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
861
|
+
fields?: string;
|
|
862
|
+
/** 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. */
|
|
863
|
+
key?: string;
|
|
864
|
+
/** Required. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements` */
|
|
865
|
+
name: string;
|
|
866
|
+
/** OAuth 2.0 token for the current user. */
|
|
867
|
+
oauth_token?: string;
|
|
868
|
+
/** Returns response with indentations and line breaks. */
|
|
869
|
+
prettyPrint?: boolean;
|
|
870
|
+
/** 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. */
|
|
871
|
+
quotaUser?: string;
|
|
872
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
873
|
+
upload_protocol?: string;
|
|
874
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
875
|
+
uploadType?: string;
|
|
876
|
+
}): Request<AutomaticImprovements>;
|
|
877
|
+
/** Updates the automatic improvements of an account. */
|
|
878
|
+
updateAutomaticImprovements(request: {
|
|
879
|
+
/** V1 error format. */
|
|
880
|
+
'$.xgafv'?: string;
|
|
881
|
+
/** OAuth access token. */
|
|
882
|
+
access_token?: string;
|
|
883
|
+
/** Data format for response. */
|
|
884
|
+
alt?: string;
|
|
885
|
+
/** JSONP */
|
|
886
|
+
callback?: string;
|
|
887
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
888
|
+
fields?: string;
|
|
889
|
+
/** 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. */
|
|
890
|
+
key?: string;
|
|
891
|
+
/** Identifier. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements`. */
|
|
892
|
+
name: string;
|
|
893
|
+
/** OAuth 2.0 token for the current user. */
|
|
894
|
+
oauth_token?: string;
|
|
895
|
+
/** Returns response with indentations and line breaks. */
|
|
896
|
+
prettyPrint?: boolean;
|
|
897
|
+
/** 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. */
|
|
898
|
+
quotaUser?: string;
|
|
899
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements` */
|
|
900
|
+
updateMask?: string;
|
|
901
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
902
|
+
upload_protocol?: string;
|
|
903
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
904
|
+
uploadType?: string;
|
|
905
|
+
/** Request body */
|
|
906
|
+
resource: AutomaticImprovements;
|
|
907
|
+
}): Request<AutomaticImprovements>;
|
|
908
|
+
updateAutomaticImprovements(
|
|
909
|
+
request: {
|
|
910
|
+
/** V1 error format. */
|
|
911
|
+
'$.xgafv'?: string;
|
|
912
|
+
/** OAuth access token. */
|
|
913
|
+
access_token?: string;
|
|
914
|
+
/** Data format for response. */
|
|
915
|
+
alt?: string;
|
|
916
|
+
/** JSONP */
|
|
917
|
+
callback?: string;
|
|
918
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
919
|
+
fields?: string;
|
|
920
|
+
/** 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. */
|
|
921
|
+
key?: string;
|
|
922
|
+
/** Identifier. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements`. */
|
|
923
|
+
name: string;
|
|
924
|
+
/** OAuth 2.0 token for the current user. */
|
|
925
|
+
oauth_token?: string;
|
|
926
|
+
/** Returns response with indentations and line breaks. */
|
|
927
|
+
prettyPrint?: boolean;
|
|
928
|
+
/** 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. */
|
|
929
|
+
quotaUser?: string;
|
|
930
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements` */
|
|
931
|
+
updateMask?: string;
|
|
932
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
933
|
+
upload_protocol?: string;
|
|
934
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
935
|
+
uploadType?: string;
|
|
936
|
+
},
|
|
937
|
+
body: AutomaticImprovements,
|
|
938
|
+
): Request<AutomaticImprovements>;
|
|
939
|
+
}
|
|
849
940
|
interface BusinessIdentityResource {
|
|
850
941
|
/** Retrieves the business identity of an account. */
|
|
851
942
|
getBusinessIdentity(request?: {
|
|
@@ -2275,33 +2366,6 @@ declare namespace gapi.client {
|
|
|
2275
2366
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2276
2367
|
uploadType?: string;
|
|
2277
2368
|
}): Request<Account>;
|
|
2278
|
-
/** Retrieves the automatic improvements of an account. */
|
|
2279
|
-
getAutomaticImprovements(request?: {
|
|
2280
|
-
/** V1 error format. */
|
|
2281
|
-
'$.xgafv'?: string;
|
|
2282
|
-
/** OAuth access token. */
|
|
2283
|
-
access_token?: string;
|
|
2284
|
-
/** Data format for response. */
|
|
2285
|
-
alt?: string;
|
|
2286
|
-
/** JSONP */
|
|
2287
|
-
callback?: string;
|
|
2288
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2289
|
-
fields?: string;
|
|
2290
|
-
/** 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. */
|
|
2291
|
-
key?: string;
|
|
2292
|
-
/** Required. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements` */
|
|
2293
|
-
name: string;
|
|
2294
|
-
/** OAuth 2.0 token for the current user. */
|
|
2295
|
-
oauth_token?: string;
|
|
2296
|
-
/** Returns response with indentations and line breaks. */
|
|
2297
|
-
prettyPrint?: boolean;
|
|
2298
|
-
/** 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. */
|
|
2299
|
-
quotaUser?: string;
|
|
2300
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2301
|
-
upload_protocol?: string;
|
|
2302
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2303
|
-
uploadType?: string;
|
|
2304
|
-
}): Request<AutomaticImprovements>;
|
|
2305
2369
|
/** Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns all the accounts the user has access to. This method is eventually consistent, meaning changes such as creating, updating an account or a change of relationships between accounts may not show up in the results immediately. Instead, these changes propagate over a short period, after which the updated information can match the associated predicates. That means, that searching by account name might not return a recently changed account even though it satisfies the predicate. */
|
|
2306
2370
|
list(request?: {
|
|
2307
2371
|
/** V1 error format. */
|
|
@@ -2426,69 +2490,8 @@ declare namespace gapi.client {
|
|
|
2426
2490
|
},
|
|
2427
2491
|
body: Account,
|
|
2428
2492
|
): Request<Account>;
|
|
2429
|
-
/** Updates the automatic improvements of an account. */
|
|
2430
|
-
updateAutomaticImprovements(request: {
|
|
2431
|
-
/** V1 error format. */
|
|
2432
|
-
'$.xgafv'?: string;
|
|
2433
|
-
/** OAuth access token. */
|
|
2434
|
-
access_token?: string;
|
|
2435
|
-
/** Data format for response. */
|
|
2436
|
-
alt?: string;
|
|
2437
|
-
/** JSONP */
|
|
2438
|
-
callback?: string;
|
|
2439
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2440
|
-
fields?: string;
|
|
2441
|
-
/** 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. */
|
|
2442
|
-
key?: string;
|
|
2443
|
-
/** Identifier. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements`. */
|
|
2444
|
-
name: string;
|
|
2445
|
-
/** OAuth 2.0 token for the current user. */
|
|
2446
|
-
oauth_token?: string;
|
|
2447
|
-
/** Returns response with indentations and line breaks. */
|
|
2448
|
-
prettyPrint?: boolean;
|
|
2449
|
-
/** 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. */
|
|
2450
|
-
quotaUser?: string;
|
|
2451
|
-
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements` */
|
|
2452
|
-
updateMask?: string;
|
|
2453
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2454
|
-
upload_protocol?: string;
|
|
2455
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2456
|
-
uploadType?: string;
|
|
2457
|
-
/** Request body */
|
|
2458
|
-
resource: AutomaticImprovements;
|
|
2459
|
-
}): Request<AutomaticImprovements>;
|
|
2460
|
-
updateAutomaticImprovements(
|
|
2461
|
-
request: {
|
|
2462
|
-
/** V1 error format. */
|
|
2463
|
-
'$.xgafv'?: string;
|
|
2464
|
-
/** OAuth access token. */
|
|
2465
|
-
access_token?: string;
|
|
2466
|
-
/** Data format for response. */
|
|
2467
|
-
alt?: string;
|
|
2468
|
-
/** JSONP */
|
|
2469
|
-
callback?: string;
|
|
2470
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2471
|
-
fields?: string;
|
|
2472
|
-
/** 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. */
|
|
2473
|
-
key?: string;
|
|
2474
|
-
/** Identifier. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements`. */
|
|
2475
|
-
name: string;
|
|
2476
|
-
/** OAuth 2.0 token for the current user. */
|
|
2477
|
-
oauth_token?: string;
|
|
2478
|
-
/** Returns response with indentations and line breaks. */
|
|
2479
|
-
prettyPrint?: boolean;
|
|
2480
|
-
/** 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. */
|
|
2481
|
-
quotaUser?: string;
|
|
2482
|
-
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements` */
|
|
2483
|
-
updateMask?: string;
|
|
2484
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2485
|
-
upload_protocol?: string;
|
|
2486
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2487
|
-
uploadType?: string;
|
|
2488
|
-
},
|
|
2489
|
-
body: AutomaticImprovements,
|
|
2490
|
-
): Request<AutomaticImprovements>;
|
|
2491
2493
|
autofeedSettings: AutofeedSettingsResource;
|
|
2494
|
+
automaticImprovements: AutomaticImprovementsResource;
|
|
2492
2495
|
businessIdentity: BusinessIdentityResource;
|
|
2493
2496
|
businessInfo: BusinessInfoResource;
|
|
2494
2497
|
emailPreferences: EmailPreferencesResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -84,11 +84,6 @@ Retrieves an account from your Merchant Center account. After inserting, updatin
|
|
|
84
84
|
*/
|
|
85
85
|
await gapi.client.merchantapi.accounts.get({name: 'name'});
|
|
86
86
|
|
|
87
|
-
/*
|
|
88
|
-
Retrieves the automatic improvements of an account.
|
|
89
|
-
*/
|
|
90
|
-
await gapi.client.merchantapi.accounts.getAutomaticImprovements({name: 'name'});
|
|
91
|
-
|
|
92
87
|
/*
|
|
93
88
|
Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns all the accounts the user has access to. This method is eventually consistent, meaning changes such as creating, updating an account or a change of relationships between accounts may not show up in the results immediately. Instead, these changes propagate over a short period, after which the updated information can match the associated predicates. That means, that searching by account name might not return a recently changed account even though it satisfies the predicate.
|
|
94
89
|
*/
|
|
@@ -104,13 +99,6 @@ Updates an account regardless of its type: standalone, MCA or sub-account. Execu
|
|
|
104
99
|
*/
|
|
105
100
|
await gapi.client.merchantapi.accounts.patch({name: 'name'});
|
|
106
101
|
|
|
107
|
-
/*
|
|
108
|
-
Updates the automatic improvements of an account.
|
|
109
|
-
*/
|
|
110
|
-
await gapi.client.merchantapi.accounts.updateAutomaticImprovements({
|
|
111
|
-
name: 'name',
|
|
112
|
-
});
|
|
113
|
-
|
|
114
102
|
/*
|
|
115
103
|
Accepts a `TermsOfService`. Executing this method requires admin access.
|
|
116
104
|
*/
|