@maxim_mazurok/gapi.client.merchantapi-datasources_v1beta 0.0.20240830 → 0.0.20240908
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 +79 -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=datasources_v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240908
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -53,6 +53,18 @@ declare namespace gapi.client {
|
|
|
53
53
|
/** Required. The [supplemental data source](https://support.google.com/merchants/answer/7439058) for local and online products. */
|
|
54
54
|
supplementalProductDataSource?: SupplementalProductDataSource;
|
|
55
55
|
}
|
|
56
|
+
interface DataSourceReference {
|
|
57
|
+
/** Optional. The name of the primary data source. Format: `accounts/{account}/dataSources/{datasource}` */
|
|
58
|
+
primaryDataSourceName?: string;
|
|
59
|
+
/** Self should be used to reference the primary data source itself. */
|
|
60
|
+
self?: boolean;
|
|
61
|
+
/** Optional. The name of the supplemental data source. Format: `accounts/{account}/dataSources/{datasource}` */
|
|
62
|
+
supplementalDataSourceName?: string;
|
|
63
|
+
}
|
|
64
|
+
interface DefaultRule {
|
|
65
|
+
/** Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`. */
|
|
66
|
+
takeFromDataSources?: DataSourceReference[];
|
|
67
|
+
}
|
|
56
68
|
interface Empty {}
|
|
57
69
|
interface FetchDataSourceRequest {}
|
|
58
70
|
interface FetchSettings {
|
|
@@ -83,6 +95,38 @@ declare namespace gapi.client {
|
|
|
83
95
|
/** Optional. The file name of the data source. Required for `UPLOAD` file input type. */
|
|
84
96
|
fileName?: string;
|
|
85
97
|
}
|
|
98
|
+
interface FileUpload {
|
|
99
|
+
/** Output only. The data source id. */
|
|
100
|
+
dataSourceId?: string;
|
|
101
|
+
/** Output only. The list of issues occurring in the data source. */
|
|
102
|
+
issues?: Issue[];
|
|
103
|
+
/** Output only. The number of items in the data source that were created. */
|
|
104
|
+
itemsCreated?: string;
|
|
105
|
+
/** Output only. The number of items in the data source that were processed. */
|
|
106
|
+
itemsTotal?: string;
|
|
107
|
+
/** Output only. The number of items in the data source that were updated. */
|
|
108
|
+
itemsUpdated?: string;
|
|
109
|
+
/** Identifier. The name of the data source file upload. Format: `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}` */
|
|
110
|
+
name?: string;
|
|
111
|
+
/** Output only. The processing state of the data source. */
|
|
112
|
+
processingState?: string;
|
|
113
|
+
/** Output only. The date at which the file of the data source was uploaded. */
|
|
114
|
+
uploadTime?: string;
|
|
115
|
+
}
|
|
116
|
+
interface Issue {
|
|
117
|
+
/** Output only. The code of the error, for example, "validation/invalid_value". Returns "?" if the code is unknown. */
|
|
118
|
+
code?: string;
|
|
119
|
+
/** Output only. The number of occurrences of the error in the file upload. */
|
|
120
|
+
count?: string;
|
|
121
|
+
/** Output only. The error description, for example, "Your data source contains items which have too many attributes, or are too big. These items will be dropped". */
|
|
122
|
+
description?: string;
|
|
123
|
+
/** Output only. Link to the documentation explaining the issue in more details, if available. */
|
|
124
|
+
documentationUri?: string;
|
|
125
|
+
/** Output only. The severity of the issue. */
|
|
126
|
+
severity?: string;
|
|
127
|
+
/** Output only. The title of the issue, for example, "Item too big". */
|
|
128
|
+
title?: string;
|
|
129
|
+
}
|
|
86
130
|
interface ListDataSourcesResponse {
|
|
87
131
|
/** The data sources from the specified account. */
|
|
88
132
|
dataSources?: DataSource[];
|
|
@@ -102,6 +146,8 @@ declare namespace gapi.client {
|
|
|
102
146
|
contentLanguage?: string;
|
|
103
147
|
/** Optional. The countries where the items may be displayed. Represented as a [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml). */
|
|
104
148
|
countries?: string[];
|
|
149
|
+
/** Optional. Default rule management of the data source. If set, the linked data sources will be replaced. */
|
|
150
|
+
defaultRule?: DefaultRule;
|
|
105
151
|
/** Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction. */
|
|
106
152
|
feedLabel?: string;
|
|
107
153
|
}
|
|
@@ -148,6 +194,8 @@ declare namespace gapi.client {
|
|
|
148
194
|
contentLanguage?: string;
|
|
149
195
|
/** Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction. */
|
|
150
196
|
feedLabel?: string;
|
|
197
|
+
/** Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed. */
|
|
198
|
+
referencingPrimaryDataSources?: DataSourceReference[];
|
|
151
199
|
}
|
|
152
200
|
interface TimeOfDay {
|
|
153
201
|
/** Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. */
|
|
@@ -159,6 +207,35 @@ declare namespace gapi.client {
|
|
|
159
207
|
/** Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. */
|
|
160
208
|
seconds?: number;
|
|
161
209
|
}
|
|
210
|
+
interface FileUploadsResource {
|
|
211
|
+
/** Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload. */
|
|
212
|
+
get(request?: {
|
|
213
|
+
/** V1 error format. */
|
|
214
|
+
'$.xgafv'?: string;
|
|
215
|
+
/** OAuth access token. */
|
|
216
|
+
access_token?: string;
|
|
217
|
+
/** Data format for response. */
|
|
218
|
+
alt?: string;
|
|
219
|
+
/** JSONP */
|
|
220
|
+
callback?: string;
|
|
221
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
222
|
+
fields?: string;
|
|
223
|
+
/** 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. */
|
|
224
|
+
key?: string;
|
|
225
|
+
/** Required. The name of the data source file upload to retrieve. Format: `accounts/{account}/dataSources/{datasource}/fileUploads/latest` */
|
|
226
|
+
name: string;
|
|
227
|
+
/** OAuth 2.0 token for the current user. */
|
|
228
|
+
oauth_token?: string;
|
|
229
|
+
/** Returns response with indentations and line breaks. */
|
|
230
|
+
prettyPrint?: boolean;
|
|
231
|
+
/** 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. */
|
|
232
|
+
quotaUser?: string;
|
|
233
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
234
|
+
upload_protocol?: string;
|
|
235
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
236
|
+
uploadType?: string;
|
|
237
|
+
}): Request<FileUpload>;
|
|
238
|
+
}
|
|
162
239
|
interface DataSourcesResource {
|
|
163
240
|
/** Creates the new data source configuration for the given account. */
|
|
164
241
|
create(request: {
|
|
@@ -423,6 +500,7 @@ declare namespace gapi.client {
|
|
|
423
500
|
},
|
|
424
501
|
body: DataSource
|
|
425
502
|
): Request<DataSource>;
|
|
503
|
+
fileUploads: FileUploadsResource;
|
|
426
504
|
}
|
|
427
505
|
interface AccountsResource {
|
|
428
506
|
dataSources: DataSourcesResource;
|
package/package.json
CHANGED