@maxim_mazurok/gapi.client.merchantapi-issueresolution_v1beta 0.0.20250512 → 0.0.20250526
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 +87 -1
- 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=issueresolution_v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250526
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -73,6 +73,18 @@ declare namespace gapi.client {
|
|
|
73
73
|
/** Title of the additional content; */
|
|
74
74
|
title?: string;
|
|
75
75
|
}
|
|
76
|
+
interface AggregateProductStatus {
|
|
77
|
+
/** The country of the aggregate product statuses. Represented as a [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml). */
|
|
78
|
+
country?: string;
|
|
79
|
+
/** The product issues that affect the given reporting context and country. */
|
|
80
|
+
itemLevelIssues?: ItemLevelIssue[];
|
|
81
|
+
/** Identifier. The name of the `AggregateProductStatuses` resource. Format: `accounts/{account}/aggregateProductStatuses/{aggregateProductStatuses}` */
|
|
82
|
+
name?: string;
|
|
83
|
+
/** The reporting context of the aggregate product statuses. */
|
|
84
|
+
reportingContext?: string;
|
|
85
|
+
/** Products statistics for the given reporting context and country. */
|
|
86
|
+
stats?: Stats;
|
|
87
|
+
}
|
|
76
88
|
interface Breakdown {
|
|
77
89
|
/** Human readable, localized description of issue's effect on different targets. Should be rendered as a list. For example: * "Products not showing in ads" * "Products not showing organically" */
|
|
78
90
|
details?: string[];
|
|
@@ -158,6 +170,30 @@ declare namespace gapi.client {
|
|
|
158
170
|
/** Value for text input field. */
|
|
159
171
|
textInputValue?: TextInputValue;
|
|
160
172
|
}
|
|
173
|
+
interface ItemLevelIssue {
|
|
174
|
+
/** The attribute's name, if the issue is caused by a single attribute. */
|
|
175
|
+
attribute?: string;
|
|
176
|
+
/** The error code of the issue. */
|
|
177
|
+
code?: string;
|
|
178
|
+
/** A short issue description in English. */
|
|
179
|
+
description?: string;
|
|
180
|
+
/** A detailed issue description in English. */
|
|
181
|
+
detail?: string;
|
|
182
|
+
/** The URL of a web page to help with resolving this issue. */
|
|
183
|
+
documentationUri?: string;
|
|
184
|
+
/** The number of products affected by this issue. */
|
|
185
|
+
productCount?: string;
|
|
186
|
+
/** Whether the issue can be resolved by the merchant. */
|
|
187
|
+
resolution?: string;
|
|
188
|
+
/** How this issue affects serving of the offer. */
|
|
189
|
+
severity?: string;
|
|
190
|
+
}
|
|
191
|
+
interface ListAggregateProductStatusesResponse {
|
|
192
|
+
/** The `AggregateProductStatuses` resources for the given account. */
|
|
193
|
+
aggregateProductStatuses?: AggregateProductStatus[];
|
|
194
|
+
/** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
195
|
+
nextPageToken?: string;
|
|
196
|
+
}
|
|
161
197
|
interface ProductChange {
|
|
162
198
|
/** The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``) */
|
|
163
199
|
newValue?: string;
|
|
@@ -228,6 +264,16 @@ declare namespace gapi.client {
|
|
|
228
264
|
/** List of issues for a given product. This list can be shown with compressed, expandable items. In the compressed form, the title and impact should be shown for each issue. Once the issue is expanded, the detailed content and available actions should be rendered. */
|
|
229
265
|
renderedIssues?: RenderedIssue[];
|
|
230
266
|
}
|
|
267
|
+
interface Stats {
|
|
268
|
+
/** The number of products that are active. */
|
|
269
|
+
activeCount?: string;
|
|
270
|
+
/** The number of products that are disapproved. */
|
|
271
|
+
disapprovedCount?: string;
|
|
272
|
+
/** The number of products that are expiring. */
|
|
273
|
+
expiringCount?: string;
|
|
274
|
+
/** The number of products that are pending. */
|
|
275
|
+
pendingCount?: string;
|
|
276
|
+
}
|
|
231
277
|
interface TextInput {
|
|
232
278
|
/** Additional info regarding the field to be displayed to the business. For example, warning to not include personal identifiable information. There may be more information to be shown in a tooltip. */
|
|
233
279
|
additionalInfo?: TextWithTooltip;
|
|
@@ -260,6 +306,44 @@ declare namespace gapi.client {
|
|
|
260
306
|
/** The message for the business. */
|
|
261
307
|
message?: string;
|
|
262
308
|
}
|
|
309
|
+
interface AggregateProductStatusesResource {
|
|
310
|
+
/** Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. */
|
|
311
|
+
list(request?: {
|
|
312
|
+
/** V1 error format. */
|
|
313
|
+
'$.xgafv'?: string;
|
|
314
|
+
/** OAuth access token. */
|
|
315
|
+
access_token?: string;
|
|
316
|
+
/** Data format for response. */
|
|
317
|
+
alt?: string;
|
|
318
|
+
/** JSONP */
|
|
319
|
+
callback?: string;
|
|
320
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
321
|
+
fields?: string;
|
|
322
|
+
/** Optional. A filter expression that filters the aggregate product statuses. Filtering is only supported by the `reporting_context` and `country` field. For example: `reporting_context = "SHOPPING_ADS" AND country = "US"`. */
|
|
323
|
+
filter?: string;
|
|
324
|
+
/** 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. */
|
|
325
|
+
key?: string;
|
|
326
|
+
/** OAuth 2.0 token for the current user. */
|
|
327
|
+
oauth_token?: string;
|
|
328
|
+
/** Optional. The maximum number of aggregate product statuses to return. The service may return fewer than this value. If unspecified, at most 25 aggregate product statuses are returned. The maximum value is 250; values above 250 are coerced to 250. */
|
|
329
|
+
pageSize?: number;
|
|
330
|
+
/** Optional. A page token, received from a previous `ListAggregateProductStatuses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAggregateProductStatuses` must match the call that provided the page token. */
|
|
331
|
+
pageToken?: string;
|
|
332
|
+
/** Required. The account to list aggregate product statuses for. Format: `accounts/{account}` */
|
|
333
|
+
parent: string;
|
|
334
|
+
/** Returns response with indentations and line breaks. */
|
|
335
|
+
prettyPrint?: boolean;
|
|
336
|
+
/** 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. */
|
|
337
|
+
quotaUser?: string;
|
|
338
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
339
|
+
upload_protocol?: string;
|
|
340
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
341
|
+
uploadType?: string;
|
|
342
|
+
}): Request<ListAggregateProductStatusesResponse>;
|
|
343
|
+
}
|
|
344
|
+
interface AccountsResource {
|
|
345
|
+
aggregateProductStatuses: AggregateProductStatusesResource;
|
|
346
|
+
}
|
|
263
347
|
interface IssueresolutionResource {
|
|
264
348
|
/** Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications. */
|
|
265
349
|
renderaccountissues(request: {
|
|
@@ -457,6 +541,8 @@ declare namespace gapi.client {
|
|
|
457
541
|
): Request<TriggerActionResponse>;
|
|
458
542
|
}
|
|
459
543
|
|
|
544
|
+
const accounts: AccountsResource;
|
|
545
|
+
|
|
460
546
|
const issueresolution: IssueresolutionResource;
|
|
461
547
|
}
|
|
462
548
|
}
|
package/package.json
CHANGED