@googleapis/merchantapi 1.0.0 → 3.0.0
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/CHANGELOG.md +34 -0
- package/accounts_v1beta.ts +332 -73
- package/build/accounts_v1beta.d.ts +166 -71
- package/build/accounts_v1beta.js +74 -1
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +6 -5
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +160 -13
- package/build/datasources_v1beta.js +39 -0
- package/build/datasources_v1beta.js.map +1 -1
- package/build/index.d.ts +5 -0
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/build/inventories_v1beta.d.ts +4 -0
- package/build/inventories_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +4 -0
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +5 -1
- package/build/notifications_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +39 -10
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +5 -1
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +5 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +4 -0
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +782 -0
- package/build/reviews_v1beta.js +322 -0
- package/build/reviews_v1beta.js.map +1 -0
- package/conversions_v1beta.ts +6 -5
- package/datasources_v1beta.ts +240 -13
- package/index.ts +13 -1
- package/inventories_v1beta.ts +4 -0
- package/lfp_v1beta.ts +4 -0
- package/notifications_v1beta.ts +5 -1
- package/package.json +1 -1
- package/products_v1beta.ts +39 -10
- package/promotions_v1beta.ts +5 -1
- package/quota_v1beta.ts +5 -1
- package/reports_v1beta.ts +4 -0
- package/reviews_v1beta.ts +1461 -0
package/datasources_v1beta.ts
CHANGED
|
@@ -145,30 +145,64 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
145
145
|
*/
|
|
146
146
|
input?: string | null;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* The [local inventory](https://support.google.com/merchants/answer/7023001) data source.
|
|
149
149
|
*/
|
|
150
150
|
localInventoryDataSource?: Schema$LocalInventoryDataSource;
|
|
151
|
+
/**
|
|
152
|
+
* The [merchant review](https://support.google.com/merchants/answer/7045996) data source.
|
|
153
|
+
*/
|
|
154
|
+
merchantReviewDataSource?: Schema$MerchantReviewDataSource;
|
|
151
155
|
/**
|
|
152
156
|
* Identifier. The name of the data source. Format: `{datasource.name=accounts/{account\}/dataSources/{datasource\}\}`
|
|
153
157
|
*/
|
|
154
158
|
name?: string | null;
|
|
155
159
|
/**
|
|
156
|
-
*
|
|
160
|
+
* The [primary data source](https://support.google.com/merchants/answer/7439058) for local and online products.
|
|
157
161
|
*/
|
|
158
162
|
primaryProductDataSource?: Schema$PrimaryProductDataSource;
|
|
159
163
|
/**
|
|
160
|
-
*
|
|
164
|
+
* The [product review](https://support.google.com/merchants/answer/7045996) data source.
|
|
165
|
+
*/
|
|
166
|
+
productReviewDataSource?: Schema$ProductReviewDataSource;
|
|
167
|
+
/**
|
|
168
|
+
* The [promotion](https://support.google.com/merchants/answer/2906014) data source.
|
|
161
169
|
*/
|
|
162
170
|
promotionDataSource?: Schema$PromotionDataSource;
|
|
163
171
|
/**
|
|
164
|
-
*
|
|
172
|
+
* The [regional inventory](https://support.google.com/merchants/answer/7439058) data source.
|
|
165
173
|
*/
|
|
166
174
|
regionalInventoryDataSource?: Schema$RegionalInventoryDataSource;
|
|
167
175
|
/**
|
|
168
|
-
*
|
|
176
|
+
* The [supplemental data source](https://support.google.com/merchants/answer/7439058) for local and online products.
|
|
169
177
|
*/
|
|
170
178
|
supplementalProductDataSource?: Schema$SupplementalProductDataSource;
|
|
171
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Data source reference can be used to manage related data sources within the data source service.
|
|
182
|
+
*/
|
|
183
|
+
export interface Schema$DataSourceReference {
|
|
184
|
+
/**
|
|
185
|
+
* Optional. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
186
|
+
*/
|
|
187
|
+
primaryDataSourceName?: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* Self should be used to reference the primary data source itself.
|
|
190
|
+
*/
|
|
191
|
+
self?: boolean | null;
|
|
192
|
+
/**
|
|
193
|
+
* Optional. The name of the supplemental data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
194
|
+
*/
|
|
195
|
+
supplementalDataSourceName?: string | null;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Default rule management of the data source.
|
|
199
|
+
*/
|
|
200
|
+
export interface Schema$DefaultRule {
|
|
201
|
+
/**
|
|
202
|
+
* 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`.
|
|
203
|
+
*/
|
|
204
|
+
takeFromDataSources?: Schema$DataSourceReference[];
|
|
205
|
+
}
|
|
172
206
|
/**
|
|
173
207
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
174
208
|
*/
|
|
@@ -202,7 +236,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
202
236
|
*/
|
|
203
237
|
frequency?: string | null;
|
|
204
238
|
/**
|
|
205
|
-
* Optional. An optional password for
|
|
239
|
+
* Optional. An optional password for fetch_uri. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
|
206
240
|
*/
|
|
207
241
|
password?: string | null;
|
|
208
242
|
/**
|
|
@@ -214,7 +248,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
214
248
|
*/
|
|
215
249
|
timeZone?: string | null;
|
|
216
250
|
/**
|
|
217
|
-
* Optional. An optional user name for
|
|
251
|
+
* Optional. An optional user name for fetch_uri. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
|
218
252
|
*/
|
|
219
253
|
username?: string | null;
|
|
220
254
|
}
|
|
@@ -235,6 +269,72 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
235
269
|
*/
|
|
236
270
|
fileName?: string | null;
|
|
237
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* The file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.
|
|
274
|
+
*/
|
|
275
|
+
export interface Schema$FileUpload {
|
|
276
|
+
/**
|
|
277
|
+
* Output only. The data source id.
|
|
278
|
+
*/
|
|
279
|
+
dataSourceId?: string | null;
|
|
280
|
+
/**
|
|
281
|
+
* Output only. The list of issues occurring in the data source.
|
|
282
|
+
*/
|
|
283
|
+
issues?: Schema$Issue[];
|
|
284
|
+
/**
|
|
285
|
+
* Output only. The number of items in the data source that were created.
|
|
286
|
+
*/
|
|
287
|
+
itemsCreated?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
* Output only. The number of items in the data source that were processed.
|
|
290
|
+
*/
|
|
291
|
+
itemsTotal?: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* Output only. The number of items in the data source that were updated.
|
|
294
|
+
*/
|
|
295
|
+
itemsUpdated?: string | null;
|
|
296
|
+
/**
|
|
297
|
+
* Identifier. The name of the data source file upload. Format: `{datasource.name=accounts/{account\}/dataSources/{datasource\}/fileUploads/{fileupload\}\}`
|
|
298
|
+
*/
|
|
299
|
+
name?: string | null;
|
|
300
|
+
/**
|
|
301
|
+
* Output only. The processing state of the data source.
|
|
302
|
+
*/
|
|
303
|
+
processingState?: string | null;
|
|
304
|
+
/**
|
|
305
|
+
* Output only. The date at which the file of the data source was uploaded.
|
|
306
|
+
*/
|
|
307
|
+
uploadTime?: string | null;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* An error occurring in the data source, like "invalid price".
|
|
311
|
+
*/
|
|
312
|
+
export interface Schema$Issue {
|
|
313
|
+
/**
|
|
314
|
+
* Output only. The code of the error, for example, "validation/invalid_value". Returns "?" if the code is unknown.
|
|
315
|
+
*/
|
|
316
|
+
code?: string | null;
|
|
317
|
+
/**
|
|
318
|
+
* Output only. The number of occurrences of the error in the file upload.
|
|
319
|
+
*/
|
|
320
|
+
count?: string | null;
|
|
321
|
+
/**
|
|
322
|
+
* 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".
|
|
323
|
+
*/
|
|
324
|
+
description?: string | null;
|
|
325
|
+
/**
|
|
326
|
+
* Output only. Link to the documentation explaining the issue in more details, if available.
|
|
327
|
+
*/
|
|
328
|
+
documentationUri?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* Output only. The severity of the issue.
|
|
331
|
+
*/
|
|
332
|
+
severity?: string | null;
|
|
333
|
+
/**
|
|
334
|
+
* Output only. The title of the issue, for example, "Item too big".
|
|
335
|
+
*/
|
|
336
|
+
title?: string | null;
|
|
337
|
+
}
|
|
238
338
|
/**
|
|
239
339
|
* Response message for the ListDataSources method.
|
|
240
340
|
*/
|
|
@@ -261,6 +361,10 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
261
361
|
*/
|
|
262
362
|
feedLabel?: string | null;
|
|
263
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* The merchant review data source.
|
|
366
|
+
*/
|
|
367
|
+
export interface Schema$MerchantReviewDataSource {}
|
|
264
368
|
/**
|
|
265
369
|
* The primary data source for local and online products.
|
|
266
370
|
*/
|
|
@@ -277,6 +381,10 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
277
381
|
* 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).
|
|
278
382
|
*/
|
|
279
383
|
countries?: string[] | null;
|
|
384
|
+
/**
|
|
385
|
+
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
|
|
386
|
+
*/
|
|
387
|
+
defaultRule?: Schema$DefaultRule;
|
|
280
388
|
/**
|
|
281
389
|
* 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.
|
|
282
390
|
*/
|
|
@@ -303,6 +411,10 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
303
411
|
*/
|
|
304
412
|
reportingContext?: string | null;
|
|
305
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* The product review data source.
|
|
416
|
+
*/
|
|
417
|
+
export interface Schema$ProductReviewDataSource {}
|
|
306
418
|
/**
|
|
307
419
|
* The message that the merchant will receive to notify about product status change event
|
|
308
420
|
*/
|
|
@@ -319,6 +431,10 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
319
431
|
* A message to describe the change that happened to the product
|
|
320
432
|
*/
|
|
321
433
|
changes?: Schema$ProductChange[];
|
|
434
|
+
/**
|
|
435
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
436
|
+
*/
|
|
437
|
+
expirationTime?: string | null;
|
|
322
438
|
/**
|
|
323
439
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
324
440
|
*/
|
|
@@ -363,7 +479,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
363
479
|
feedLabel?: string | null;
|
|
364
480
|
}
|
|
365
481
|
/**
|
|
366
|
-
* The supplemental data source for local and online products.
|
|
482
|
+
* The supplemental data source for local and online products. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.
|
|
367
483
|
*/
|
|
368
484
|
export interface Schema$SupplementalProductDataSource {
|
|
369
485
|
/**
|
|
@@ -371,28 +487,32 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
371
487
|
*/
|
|
372
488
|
contentLanguage?: string | null;
|
|
373
489
|
/**
|
|
374
|
-
* 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.
|
|
490
|
+
* 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. The fields must be unset for data sources without 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.
|
|
375
491
|
*/
|
|
376
492
|
feedLabel?: string | null;
|
|
493
|
+
/**
|
|
494
|
+
* 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.
|
|
495
|
+
*/
|
|
496
|
+
referencingPrimaryDataSources?: Schema$DataSourceReference[];
|
|
377
497
|
}
|
|
378
498
|
/**
|
|
379
499
|
* Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
|
|
380
500
|
*/
|
|
381
501
|
export interface Schema$TimeOfDay {
|
|
382
502
|
/**
|
|
383
|
-
* Hours of day in 24 hour format.
|
|
503
|
+
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
|
|
384
504
|
*/
|
|
385
505
|
hours?: number | null;
|
|
386
506
|
/**
|
|
387
|
-
* Minutes of hour
|
|
507
|
+
* Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
|
|
388
508
|
*/
|
|
389
509
|
minutes?: number | null;
|
|
390
510
|
/**
|
|
391
|
-
* Fractions of seconds in nanoseconds. Must be
|
|
511
|
+
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
|
|
392
512
|
*/
|
|
393
513
|
nanos?: number | null;
|
|
394
514
|
/**
|
|
395
|
-
* Seconds of
|
|
515
|
+
* Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
|
|
396
516
|
*/
|
|
397
517
|
seconds?: number | null;
|
|
398
518
|
}
|
|
@@ -408,8 +528,12 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
408
528
|
|
|
409
529
|
export class Resource$Accounts$Datasources {
|
|
410
530
|
context: APIRequestContext;
|
|
531
|
+
fileUploads: Resource$Accounts$Datasources$Fileuploads;
|
|
411
532
|
constructor(context: APIRequestContext) {
|
|
412
533
|
this.context = context;
|
|
534
|
+
this.fileUploads = new Resource$Accounts$Datasources$Fileuploads(
|
|
535
|
+
this.context
|
|
536
|
+
);
|
|
413
537
|
}
|
|
414
538
|
|
|
415
539
|
/**
|
|
@@ -1013,4 +1137,107 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
1013
1137
|
*/
|
|
1014
1138
|
requestBody?: Schema$DataSource;
|
|
1015
1139
|
}
|
|
1140
|
+
|
|
1141
|
+
export class Resource$Accounts$Datasources$Fileuploads {
|
|
1142
|
+
context: APIRequestContext;
|
|
1143
|
+
constructor(context: APIRequestContext) {
|
|
1144
|
+
this.context = context;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.
|
|
1149
|
+
*
|
|
1150
|
+
* @param params - Parameters for request
|
|
1151
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1152
|
+
* @param callback - Optional callback that handles the response.
|
|
1153
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1154
|
+
*/
|
|
1155
|
+
get(
|
|
1156
|
+
params: Params$Resource$Accounts$Datasources$Fileuploads$Get,
|
|
1157
|
+
options: StreamMethodOptions
|
|
1158
|
+
): GaxiosPromise<Readable>;
|
|
1159
|
+
get(
|
|
1160
|
+
params?: Params$Resource$Accounts$Datasources$Fileuploads$Get,
|
|
1161
|
+
options?: MethodOptions
|
|
1162
|
+
): GaxiosPromise<Schema$FileUpload>;
|
|
1163
|
+
get(
|
|
1164
|
+
params: Params$Resource$Accounts$Datasources$Fileuploads$Get,
|
|
1165
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
1166
|
+
callback: BodyResponseCallback<Readable>
|
|
1167
|
+
): void;
|
|
1168
|
+
get(
|
|
1169
|
+
params: Params$Resource$Accounts$Datasources$Fileuploads$Get,
|
|
1170
|
+
options: MethodOptions | BodyResponseCallback<Schema$FileUpload>,
|
|
1171
|
+
callback: BodyResponseCallback<Schema$FileUpload>
|
|
1172
|
+
): void;
|
|
1173
|
+
get(
|
|
1174
|
+
params: Params$Resource$Accounts$Datasources$Fileuploads$Get,
|
|
1175
|
+
callback: BodyResponseCallback<Schema$FileUpload>
|
|
1176
|
+
): void;
|
|
1177
|
+
get(callback: BodyResponseCallback<Schema$FileUpload>): void;
|
|
1178
|
+
get(
|
|
1179
|
+
paramsOrCallback?:
|
|
1180
|
+
| Params$Resource$Accounts$Datasources$Fileuploads$Get
|
|
1181
|
+
| BodyResponseCallback<Schema$FileUpload>
|
|
1182
|
+
| BodyResponseCallback<Readable>,
|
|
1183
|
+
optionsOrCallback?:
|
|
1184
|
+
| MethodOptions
|
|
1185
|
+
| StreamMethodOptions
|
|
1186
|
+
| BodyResponseCallback<Schema$FileUpload>
|
|
1187
|
+
| BodyResponseCallback<Readable>,
|
|
1188
|
+
callback?:
|
|
1189
|
+
| BodyResponseCallback<Schema$FileUpload>
|
|
1190
|
+
| BodyResponseCallback<Readable>
|
|
1191
|
+
): void | GaxiosPromise<Schema$FileUpload> | GaxiosPromise<Readable> {
|
|
1192
|
+
let params = (paramsOrCallback ||
|
|
1193
|
+
{}) as Params$Resource$Accounts$Datasources$Fileuploads$Get;
|
|
1194
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1195
|
+
|
|
1196
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1197
|
+
callback = paramsOrCallback;
|
|
1198
|
+
params = {} as Params$Resource$Accounts$Datasources$Fileuploads$Get;
|
|
1199
|
+
options = {};
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1203
|
+
callback = optionsOrCallback;
|
|
1204
|
+
options = {};
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
1208
|
+
const parameters = {
|
|
1209
|
+
options: Object.assign(
|
|
1210
|
+
{
|
|
1211
|
+
url: (rootUrl + '/datasources/v1beta/{+name}').replace(
|
|
1212
|
+
/([^:]\/)\/+/g,
|
|
1213
|
+
'$1'
|
|
1214
|
+
),
|
|
1215
|
+
method: 'GET',
|
|
1216
|
+
apiVersion: '',
|
|
1217
|
+
},
|
|
1218
|
+
options
|
|
1219
|
+
),
|
|
1220
|
+
params,
|
|
1221
|
+
requiredParams: ['name'],
|
|
1222
|
+
pathParams: ['name'],
|
|
1223
|
+
context: this.context,
|
|
1224
|
+
};
|
|
1225
|
+
if (callback) {
|
|
1226
|
+
createAPIRequest<Schema$FileUpload>(
|
|
1227
|
+
parameters,
|
|
1228
|
+
callback as BodyResponseCallback<unknown>
|
|
1229
|
+
);
|
|
1230
|
+
} else {
|
|
1231
|
+
return createAPIRequest<Schema$FileUpload>(parameters);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export interface Params$Resource$Accounts$Datasources$Fileuploads$Get
|
|
1237
|
+
extends StandardParameters {
|
|
1238
|
+
/**
|
|
1239
|
+
* Required. The name of the data source file upload to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}/fileUploads/latest`
|
|
1240
|
+
*/
|
|
1241
|
+
name?: string;
|
|
1242
|
+
}
|
|
1016
1243
|
}
|
package/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ import {merchantapi_products_v1beta} from './products_v1beta';
|
|
|
24
24
|
import {merchantapi_promotions_v1beta} from './promotions_v1beta';
|
|
25
25
|
import {merchantapi_quota_v1beta} from './quota_v1beta';
|
|
26
26
|
import {merchantapi_reports_v1beta} from './reports_v1beta';
|
|
27
|
+
import {merchantapi_reviews_v1beta} from './reviews_v1beta';
|
|
27
28
|
|
|
28
29
|
export const VERSIONS = {
|
|
29
30
|
accounts_v1beta: merchantapi_accounts_v1beta.Merchantapi,
|
|
@@ -36,6 +37,7 @@ export const VERSIONS = {
|
|
|
36
37
|
promotions_v1beta: merchantapi_promotions_v1beta.Merchantapi,
|
|
37
38
|
quota_v1beta: merchantapi_quota_v1beta.Merchantapi,
|
|
38
39
|
reports_v1beta: merchantapi_reports_v1beta.Merchantapi,
|
|
40
|
+
reviews_v1beta: merchantapi_reviews_v1beta.Merchantapi,
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
export function merchantapi(
|
|
@@ -98,6 +100,12 @@ export function merchantapi(
|
|
|
98
100
|
export function merchantapi(
|
|
99
101
|
options: merchantapi_reports_v1beta.Options
|
|
100
102
|
): merchantapi_reports_v1beta.Merchantapi;
|
|
103
|
+
export function merchantapi(
|
|
104
|
+
version: 'reviews_v1beta'
|
|
105
|
+
): merchantapi_reviews_v1beta.Merchantapi;
|
|
106
|
+
export function merchantapi(
|
|
107
|
+
options: merchantapi_reviews_v1beta.Options
|
|
108
|
+
): merchantapi_reviews_v1beta.Merchantapi;
|
|
101
109
|
export function merchantapi<
|
|
102
110
|
T =
|
|
103
111
|
| merchantapi_accounts_v1beta.Merchantapi
|
|
@@ -109,7 +117,8 @@ export function merchantapi<
|
|
|
109
117
|
| merchantapi_products_v1beta.Merchantapi
|
|
110
118
|
| merchantapi_promotions_v1beta.Merchantapi
|
|
111
119
|
| merchantapi_quota_v1beta.Merchantapi
|
|
112
|
-
| merchantapi_reports_v1beta.Merchantapi
|
|
120
|
+
| merchantapi_reports_v1beta.Merchantapi
|
|
121
|
+
| merchantapi_reviews_v1beta.Merchantapi,
|
|
113
122
|
>(
|
|
114
123
|
this: GoogleConfigurable,
|
|
115
124
|
versionOrOptions:
|
|
@@ -133,6 +142,8 @@ export function merchantapi<
|
|
|
133
142
|
| merchantapi_quota_v1beta.Options
|
|
134
143
|
| 'reports_v1beta'
|
|
135
144
|
| merchantapi_reports_v1beta.Options
|
|
145
|
+
| 'reviews_v1beta'
|
|
146
|
+
| merchantapi_reviews_v1beta.Options
|
|
136
147
|
) {
|
|
137
148
|
return getAPI<T>('merchantapi', versionOrOptions, VERSIONS, this);
|
|
138
149
|
}
|
|
@@ -149,6 +160,7 @@ export {merchantapi_products_v1beta};
|
|
|
149
160
|
export {merchantapi_promotions_v1beta};
|
|
150
161
|
export {merchantapi_quota_v1beta};
|
|
151
162
|
export {merchantapi_reports_v1beta};
|
|
163
|
+
export {merchantapi_reviews_v1beta};
|
|
152
164
|
export {
|
|
153
165
|
AuthPlus,
|
|
154
166
|
GlobalOptions,
|
package/inventories_v1beta.ts
CHANGED
|
@@ -287,6 +287,10 @@ export namespace merchantapi_inventories_v1beta {
|
|
|
287
287
|
* A message to describe the change that happened to the product
|
|
288
288
|
*/
|
|
289
289
|
changes?: Schema$ProductChange[];
|
|
290
|
+
/**
|
|
291
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
292
|
+
*/
|
|
293
|
+
expirationTime?: string | null;
|
|
290
294
|
/**
|
|
291
295
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
292
296
|
*/
|
package/lfp_v1beta.ts
CHANGED
|
@@ -354,6 +354,10 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
354
354
|
* A message to describe the change that happened to the product
|
|
355
355
|
*/
|
|
356
356
|
changes?: Schema$ProductChange[];
|
|
357
|
+
/**
|
|
358
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
359
|
+
*/
|
|
360
|
+
expirationTime?: string | null;
|
|
357
361
|
/**
|
|
358
362
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
359
363
|
*/
|
package/notifications_v1beta.ts
CHANGED
|
@@ -203,6 +203,10 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
203
203
|
* A message to describe the change that happened to the product
|
|
204
204
|
*/
|
|
205
205
|
changes?: Schema$ProductChange[];
|
|
206
|
+
/**
|
|
207
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
208
|
+
*/
|
|
209
|
+
expirationTime?: string | null;
|
|
206
210
|
/**
|
|
207
211
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
208
212
|
*/
|
|
@@ -238,7 +242,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
238
242
|
}
|
|
239
243
|
|
|
240
244
|
/**
|
|
241
|
-
* Creates a notification subscription for a
|
|
245
|
+
* Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.
|
|
242
246
|
*
|
|
243
247
|
* @param params - Parameters for request
|
|
244
248
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/package.json
CHANGED
package/products_v1beta.ts
CHANGED
|
@@ -269,9 +269,9 @@ export namespace merchantapi_products_v1beta {
|
|
|
269
269
|
*/
|
|
270
270
|
googleProductCategory?: string | null;
|
|
271
271
|
/**
|
|
272
|
-
* Global Trade Item
|
|
272
|
+
* Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the item. You can provide up to 10 GTINs.
|
|
273
273
|
*/
|
|
274
|
-
gtin?: string | null;
|
|
274
|
+
gtin?: string[] | null;
|
|
275
275
|
/**
|
|
276
276
|
* Set this value to false when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Defaults to true, if not provided.
|
|
277
277
|
*/
|
|
@@ -469,7 +469,11 @@ export namespace merchantapi_products_v1beta {
|
|
|
469
469
|
*/
|
|
470
470
|
subscriptionCost?: Schema$SubscriptionCost;
|
|
471
471
|
/**
|
|
472
|
-
* The
|
|
472
|
+
* The list of sustainability incentive programs.
|
|
473
|
+
*/
|
|
474
|
+
sustainabilityIncentives?: Schema$ProductSustainabilityIncentive[];
|
|
475
|
+
/**
|
|
476
|
+
* The tax category of the product.
|
|
473
477
|
*/
|
|
474
478
|
taxCategory?: string | null;
|
|
475
479
|
/**
|
|
@@ -739,6 +743,10 @@ export namespace merchantapi_products_v1beta {
|
|
|
739
743
|
* The label of the loyalty program. This is an internal label that uniquely identifies the relationship between a merchant entity and a loyalty program entity. The label must be provided so that the system can associate the assets below (for example, price and points) with a merchant. The corresponding program must be linked to the merchant account.
|
|
740
744
|
*/
|
|
741
745
|
programLabel?: string | null;
|
|
746
|
+
/**
|
|
747
|
+
* The label of the shipping benefit. If the field has value, this offer has loyalty shipping benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for the given loyalty tier.
|
|
748
|
+
*/
|
|
749
|
+
shippingLabel?: string | null;
|
|
742
750
|
/**
|
|
743
751
|
* The label of the tier within the loyalty program. Must match one of the labels within the program.
|
|
744
752
|
*/
|
|
@@ -786,7 +794,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
786
794
|
*/
|
|
787
795
|
feedLabel?: string | null;
|
|
788
796
|
/**
|
|
789
|
-
* The name of the product. Format: `"{product.name=accounts/{account\}/products/{product\}\}"`
|
|
797
|
+
* The name of the product. Format: `"{product.name=accounts/{account\}/products/{product\}\}"` where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is "accounts/123/products/online~en~US~sku123"
|
|
790
798
|
*/
|
|
791
799
|
name?: string | null;
|
|
792
800
|
/**
|
|
@@ -854,7 +862,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
854
862
|
value?: number | null;
|
|
855
863
|
}
|
|
856
864
|
/**
|
|
857
|
-
* This resource represents input data you submit for a product, not the processed product that you see in Merchant Center, in Shopping ads, or across Google surfaces. Product inputs, rules and supplemental data source data are combined to create the processed
|
|
865
|
+
* This resource represents input data you submit for a product, not the processed product that you see in Merchant Center, in Shopping ads, or across Google surfaces. Product inputs, rules and supplemental data source data are combined to create the processed Product. Required product input attributes to pass data validation checks are primarily defined in the [Products Data Specification](https://support.google.com/merchants/answer/188494). The following attributes are required: feedLabel, contentLanguage and offerId. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved. All fields in the product input and its sub-messages match the English name of their corresponding attribute in the vertical spec with [some exceptions](https://support.google.com/merchants/answer/7052112).
|
|
858
866
|
*/
|
|
859
867
|
export interface Schema$ProductInput {
|
|
860
868
|
/**
|
|
@@ -862,7 +870,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
862
870
|
*/
|
|
863
871
|
attributes?: Schema$Attributes;
|
|
864
872
|
/**
|
|
865
|
-
*
|
|
873
|
+
* Immutable. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
|
|
866
874
|
*/
|
|
867
875
|
channel?: string | null;
|
|
868
876
|
/**
|
|
@@ -878,7 +886,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
878
886
|
*/
|
|
879
887
|
feedLabel?: string | null;
|
|
880
888
|
/**
|
|
881
|
-
* Identifier. The name of the product input. Format: `"{productinput.name=accounts/{account\}/productInputs/{productinput\}\}"`
|
|
889
|
+
* Identifier. The name of the product input. Format: `"{productinput.name=accounts/{account\}/productInputs/{productinput\}\}"` where the last section `productinput` consists of 4 parts: channel~content_language~feed_label~offer_id example for product input name is "accounts/123/productInputs/online~en~US~sku123"
|
|
882
890
|
*/
|
|
883
891
|
name?: string | null;
|
|
884
892
|
/**
|
|
@@ -935,6 +943,10 @@ export namespace merchantapi_products_v1beta {
|
|
|
935
943
|
* A message to describe the change that happened to the product
|
|
936
944
|
*/
|
|
937
945
|
changes?: Schema$ProductChange[];
|
|
946
|
+
/**
|
|
947
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
948
|
+
*/
|
|
949
|
+
expirationTime?: string | null;
|
|
938
950
|
/**
|
|
939
951
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
940
952
|
*/
|
|
@@ -978,6 +990,23 @@ export namespace merchantapi_products_v1beta {
|
|
|
978
990
|
*/
|
|
979
991
|
digitalSourceType?: string | null;
|
|
980
992
|
}
|
|
993
|
+
/**
|
|
994
|
+
* Information regarding sustainability-related incentive programs such as rebates or tax relief.
|
|
995
|
+
*/
|
|
996
|
+
export interface Schema$ProductSustainabilityIncentive {
|
|
997
|
+
/**
|
|
998
|
+
* The fixed amount of the incentive.
|
|
999
|
+
*/
|
|
1000
|
+
amount?: Schema$Price;
|
|
1001
|
+
/**
|
|
1002
|
+
* The percentage of the sale price that the incentive is applied to.
|
|
1003
|
+
*/
|
|
1004
|
+
percentage?: number | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* Sustainability incentive program.
|
|
1007
|
+
*/
|
|
1008
|
+
type?: string | null;
|
|
1009
|
+
}
|
|
981
1010
|
/**
|
|
982
1011
|
* The weight of the product.
|
|
983
1012
|
*/
|
|
@@ -1339,7 +1368,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1339
1368
|
*/
|
|
1340
1369
|
dataSource?: string;
|
|
1341
1370
|
/**
|
|
1342
|
-
* Required. The name of the product input resource to delete. Format: accounts/{account\}/productInputs/{product\}
|
|
1371
|
+
* Required. The name of the product input resource to delete. Format: accounts/{account\}/productInputs/{product\} where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is "accounts/123/productInputs/online~en~US~sku123"
|
|
1343
1372
|
*/
|
|
1344
1373
|
name?: string;
|
|
1345
1374
|
}
|
|
@@ -1551,14 +1580,14 @@ export namespace merchantapi_products_v1beta {
|
|
|
1551
1580
|
export interface Params$Resource$Accounts$Products$Get
|
|
1552
1581
|
extends StandardParameters {
|
|
1553
1582
|
/**
|
|
1554
|
-
* Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}`
|
|
1583
|
+
* Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is "accounts/123/products/online~en~US~sku123"
|
|
1555
1584
|
*/
|
|
1556
1585
|
name?: string;
|
|
1557
1586
|
}
|
|
1558
1587
|
export interface Params$Resource$Accounts$Products$List
|
|
1559
1588
|
extends StandardParameters {
|
|
1560
1589
|
/**
|
|
1561
|
-
* The maximum number of products to return. The service may return fewer than this value. The maximum value is
|
|
1590
|
+
* The maximum number of products to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of products will be returned.
|
|
1562
1591
|
*/
|
|
1563
1592
|
pageSize?: number;
|
|
1564
1593
|
/**
|
package/promotions_v1beta.ts
CHANGED
|
@@ -409,6 +409,10 @@ export namespace merchantapi_promotions_v1beta {
|
|
|
409
409
|
* A message to describe the change that happened to the product
|
|
410
410
|
*/
|
|
411
411
|
changes?: Schema$ProductChange[];
|
|
412
|
+
/**
|
|
413
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
414
|
+
*/
|
|
415
|
+
expirationTime?: string | null;
|
|
412
416
|
/**
|
|
413
417
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
414
418
|
*/
|
|
@@ -799,7 +803,7 @@ export namespace merchantapi_promotions_v1beta {
|
|
|
799
803
|
export interface Params$Resource$Accounts$Promotions$List
|
|
800
804
|
extends StandardParameters {
|
|
801
805
|
/**
|
|
802
|
-
* Output only. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is
|
|
806
|
+
* Output only. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of promotions will be returned.
|
|
803
807
|
*/
|
|
804
808
|
pageSize?: number;
|
|
805
809
|
/**
|
package/quota_v1beta.ts
CHANGED
|
@@ -133,7 +133,7 @@ export namespace merchantapi_quota_v1beta {
|
|
|
133
133
|
*/
|
|
134
134
|
nextPageToken?: string | null;
|
|
135
135
|
/**
|
|
136
|
-
* The methods, current quota usage and limits per each group. The quota is shared between all methods in the group. The groups are sorted in descending order based on
|
|
136
|
+
* The methods, current quota usage and limits per each group. The quota is shared between all methods in the group. The groups are sorted in descending order based on quota_usage.
|
|
137
137
|
*/
|
|
138
138
|
quotaGroups?: Schema$QuotaGroup[];
|
|
139
139
|
}
|
|
@@ -195,6 +195,10 @@ export namespace merchantapi_quota_v1beta {
|
|
|
195
195
|
* A message to describe the change that happened to the product
|
|
196
196
|
*/
|
|
197
197
|
changes?: Schema$ProductChange[];
|
|
198
|
+
/**
|
|
199
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
200
|
+
*/
|
|
201
|
+
expirationTime?: string | null;
|
|
198
202
|
/**
|
|
199
203
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
200
204
|
*/
|
package/reports_v1beta.ts
CHANGED
|
@@ -800,6 +800,10 @@ export namespace merchantapi_reports_v1beta {
|
|
|
800
800
|
* A message to describe the change that happened to the product
|
|
801
801
|
*/
|
|
802
802
|
changes?: Schema$ProductChange[];
|
|
803
|
+
/**
|
|
804
|
+
* The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
805
|
+
*/
|
|
806
|
+
expirationTime?: string | null;
|
|
803
807
|
/**
|
|
804
808
|
* The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
|
|
805
809
|
*/
|