@googleapis/merchantapi 10.1.0 → 12.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 +232 -0
- package/accounts_v1.ts +13566 -0
- package/accounts_v1beta.ts +7 -7
- package/build/accounts_v1.d.ts +7784 -0
- package/build/accounts_v1.js +2504 -0
- package/build/accounts_v1.js.map +1 -0
- package/build/accounts_v1beta.d.ts +7 -8
- package/build/accounts_v1beta.js +46 -1
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1.d.ts +748 -0
- package/build/conversions_v1.js +256 -0
- package/build/conversions_v1.js.map +1 -0
- package/build/conversions_v1beta.d.ts +0 -1
- package/build/conversions_v1beta.js +6 -1
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1.d.ts +1075 -0
- package/build/datasources_v1.js +297 -0
- package/build/datasources_v1.js.map +1 -0
- package/build/datasources_v1beta.d.ts +0 -1
- package/build/datasources_v1beta.js +8 -1
- package/build/datasources_v1beta.js.map +1 -1
- package/build/index.d.ts +60 -0
- package/build/index.js +38 -2
- package/build/index.js.map +1 -1
- package/build/inventories_v1.d.ts +766 -0
- package/build/inventories_v1.js +280 -0
- package/build/inventories_v1.js.map +1 -0
- package/build/inventories_v1beta.d.ts +6 -7
- package/build/inventories_v1beta.js +10 -1
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1.d.ts +1026 -0
- package/build/issueresolution_v1.js +202 -0
- package/build/issueresolution_v1.js.map +1 -0
- package/build/issueresolution_v1beta.d.ts +0 -1
- package/build/issueresolution_v1beta.js +8 -1
- package/build/issueresolution_v1beta.js.map +1 -1
- package/build/lfp_v1.d.ts +1047 -0
- package/build/lfp_v1.js +315 -0
- package/build/lfp_v1.js.map +1 -0
- package/build/lfp_v1beta.d.ts +1 -2
- package/build/lfp_v1beta.js +12 -1
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1.d.ts +579 -0
- package/build/notifications_v1.js +227 -0
- package/build/notifications_v1.js.map +1 -0
- package/build/notifications_v1beta.d.ts +0 -1
- package/build/notifications_v1beta.js +6 -1
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1.d.ts +458 -0
- package/build/ordertracking_v1.js +96 -0
- package/build/ordertracking_v1.js.map +1 -0
- package/build/ordertracking_v1beta.d.ts +6 -3
- package/build/ordertracking_v1beta.js +8 -3
- package/build/ordertracking_v1beta.js.map +1 -1
- package/build/products_v1.d.ts +1555 -0
- package/build/products_v1.js +233 -0
- package/build/products_v1.js.map +1 -0
- package/build/products_v1beta.d.ts +13 -14
- package/build/products_v1beta.js +8 -1
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1.d.ts +698 -0
- package/build/promotions_v1.js +160 -0
- package/build/promotions_v1.js.map +1 -0
- package/build/promotions_v1beta.d.ts +5 -6
- package/build/promotions_v1beta.js +6 -1
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1.d.ts +283 -0
- package/build/quota_v1.js +96 -0
- package/build/quota_v1.js.map +1 -0
- package/build/quota_v1beta.d.ts +0 -1
- package/build/quota_v1beta.js +6 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1.d.ts +1065 -0
- package/build/reports_v1.js +96 -0
- package/build/reports_v1.js.map +1 -0
- package/build/reports_v1beta.d.ts +1 -2
- package/build/reports_v1beta.js +6 -1
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +0 -1
- package/build/reviews_v1beta.js +8 -1
- package/build/reviews_v1beta.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/conversions_v1.ts +1284 -0
- package/datasources_v1.ts +1690 -0
- package/index.ts +142 -0
- package/inventories_v1.ts +1321 -0
- package/inventories_v1beta.ts +6 -6
- package/issueresolution_v1.ts +1425 -0
- package/lfp_v1.ts +1666 -0
- package/lfp_v1beta.ts +1 -1
- package/notifications_v1.ts +1052 -0
- package/ordertracking_v1.ts +599 -0
- package/ordertracking_v1beta.ts +8 -4
- package/package.json +4 -4
- package/products_v1.ts +2013 -0
- package/products_v1beta.ts +13 -13
- package/promotions_v1.ts +995 -0
- package/promotions_v1beta.ts +5 -5
- package/quota_v1.ts +424 -0
- package/reports_v1.ts +1205 -0
- package/reports_v1beta.ts +1 -1
package/products_v1beta.ts
CHANGED
|
@@ -245,7 +245,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
245
245
|
*/
|
|
246
246
|
energyEfficiencyClass?: string | null;
|
|
247
247
|
/**
|
|
248
|
-
* The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). For more information, see [Excluded destination](https://support.google.com/merchants/answer/6324486). Note: We recommend setting destinations on datasources level for most use cases. Use this field within products to only setup exceptions.
|
|
248
|
+
* Destinations also known as [Marketing methods](https://support.google.com/merchants/answer/15130232) selections. The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). For more information, see [Excluded destination](https://support.google.com/merchants/answer/6324486). Note: We recommend setting destinations on datasources level for most use cases. Use this field within products to only setup exceptions.
|
|
249
249
|
*/
|
|
250
250
|
excludedDestinations?: string[] | null;
|
|
251
251
|
/**
|
|
@@ -285,7 +285,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
285
285
|
*/
|
|
286
286
|
imageLink?: string | null;
|
|
287
287
|
/**
|
|
288
|
-
* The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. For more information, see [Included destination](https://support.google.com/merchants/answer/7501026). Note: We recommend setting destinations on datasources level for most use cases. Use this field within products to only setup exceptions.
|
|
288
|
+
* Destinations also known as [Marketing methods](https://support.google.com/merchants/answer/15130232) selections. The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. For more information, see [Included destination](https://support.google.com/merchants/answer/7501026). Note: We recommend setting destinations on datasources level for most use cases. Use this field within products to only setup exceptions.
|
|
289
289
|
*/
|
|
290
290
|
includedDestinations?: string[] | null;
|
|
291
291
|
/**
|
|
@@ -823,7 +823,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
823
823
|
*/
|
|
824
824
|
feedLabel?: string | null;
|
|
825
825
|
/**
|
|
826
|
-
* The name of the product. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of
|
|
826
|
+
* The name of the product. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of: `content_language~feed_label~offer_id` example for product name is `accounts/123/products/en~US~sku123`. A legacy local product name would be `accounts/123/products/local~en~US~sku123`. Note: For calls to the v1beta version, the `product` section consists of: `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`.
|
|
827
827
|
*/
|
|
828
828
|
name?: string | null;
|
|
829
829
|
/**
|
|
@@ -915,7 +915,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
915
915
|
*/
|
|
916
916
|
feedLabel?: string | null;
|
|
917
917
|
/**
|
|
918
|
-
* Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of
|
|
918
|
+
* Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of: `content_language~feed_label~offer_id` example for product input name is `accounts/123/productInputs/en~US~sku123`. A legacy local product input name would be `accounts/123/productInputs/local~en~US~sku123`. Note: For calls to the v1beta version, the `productInput` section consists of: `channel~content_language~feed_label~offer_id`, for example: `accounts/123/productInputs/online~en~US~sku123`.
|
|
919
919
|
*/
|
|
920
920
|
name?: string | null;
|
|
921
921
|
/**
|
|
@@ -1251,7 +1251,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1251
1251
|
* const res = await merchantapi.accounts.productInputs.delete({
|
|
1252
1252
|
* // Required. The primary or supplemental data source from which the product input should be deleted. Format: `accounts/{account\}/dataSources/{datasource\}`. For example, `accounts/123456/dataSources/104628`.
|
|
1253
1253
|
* dataSource: 'placeholder-value',
|
|
1254
|
-
* // Required. The name of the product input resource to delete. Format: `accounts/{account\}/productInputs/{product\}` where the last section `product` consists of
|
|
1254
|
+
* // Required. The name of the product input resource to delete. Format: `accounts/{account\}/productInputs/{product\}` where the last section `product` consists of: `content_language~feed_label~offer_id` example for product name is `accounts/123/productInputs/en~US~sku123`.
|
|
1255
1255
|
* name: 'accounts/my-account/productInputs/my-productInput',
|
|
1256
1256
|
* });
|
|
1257
1257
|
* console.log(res.data);
|
|
@@ -1356,7 +1356,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
1358
|
/**
|
|
1359
|
-
* [Uploads a product input to your Merchant Center account](/merchant/api/guides/products/
|
|
1359
|
+
* [Uploads a product input to your Merchant Center account](/merchant/api/guides/products/add-manage#add_a_product). You must have a products [data source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source) to be able to insert a product. The unique identifier of the data source is passed as a query parameter in the request URL. If a product input with the same contentLanguage, offerId, and dataSource already exists, then the product input inserted by this method replaces that entry. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.
|
|
1360
1360
|
* @example
|
|
1361
1361
|
* ```js
|
|
1362
1362
|
* // Before running the sample:
|
|
@@ -1386,7 +1386,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1386
1386
|
*
|
|
1387
1387
|
* // Do the magic
|
|
1388
1388
|
* const res = await merchantapi.accounts.productInputs.insert({
|
|
1389
|
-
* // Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. For more information, see [
|
|
1389
|
+
* // Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. For more information, see [Create a primary data source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source). Only API data sources are supported. Format: `accounts/{account\}/dataSources/{datasource\}`. For example, `accounts/123456/dataSources/104628`.
|
|
1390
1390
|
* dataSource: 'placeholder-value',
|
|
1391
1391
|
* // Required. The account where this product will be inserted. Format: `accounts/{account\}`
|
|
1392
1392
|
* parent: 'accounts/my-account',
|
|
@@ -1550,7 +1550,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1550
1550
|
* const res = await merchantapi.accounts.productInputs.patch({
|
|
1551
1551
|
* // Required. The primary or supplemental product data source where `data_source` name identifies the product input to be updated. Only API data sources are supported. Format: `accounts/{account\}/dataSources/{datasource\}`. For example, `accounts/123456/dataSources/104628`.
|
|
1552
1552
|
* dataSource: 'placeholder-value',
|
|
1553
|
-
* // Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of
|
|
1553
|
+
* // Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of: `content_language~feed_label~offer_id` example for product input name is `accounts/123/productInputs/en~US~sku123`. A legacy local product input name would be `accounts/123/productInputs/local~en~US~sku123`. Note: For calls to the v1beta version, the `productInput` section consists of: `channel~content_language~feed_label~offer_id`, for example: `accounts/123/productInputs/online~en~US~sku123`.
|
|
1554
1554
|
* name: 'accounts/my-account/productInputs/my-productInput',
|
|
1555
1555
|
* // Optional. The list of product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the `custom_attribute.` prefix. Providing special "*" value for full product replacement is not supported.
|
|
1556
1556
|
* updateMask: 'placeholder-value',
|
|
@@ -1690,14 +1690,14 @@ export namespace merchantapi_products_v1beta {
|
|
|
1690
1690
|
*/
|
|
1691
1691
|
dataSource?: string;
|
|
1692
1692
|
/**
|
|
1693
|
-
* Required. The name of the product input resource to delete. Format: `accounts/{account\}/productInputs/{product\}` where the last section `product` consists of
|
|
1693
|
+
* Required. The name of the product input resource to delete. Format: `accounts/{account\}/productInputs/{product\}` where the last section `product` consists of: `content_language~feed_label~offer_id` example for product name is `accounts/123/productInputs/en~US~sku123`.
|
|
1694
1694
|
*/
|
|
1695
1695
|
name?: string;
|
|
1696
1696
|
}
|
|
1697
1697
|
export interface Params$Resource$Accounts$Productinputs$Insert
|
|
1698
1698
|
extends StandardParameters {
|
|
1699
1699
|
/**
|
|
1700
|
-
* Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. For more information, see [
|
|
1700
|
+
* Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. For more information, see [Create a primary data source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source). Only API data sources are supported. Format: `accounts/{account\}/dataSources/{datasource\}`. For example, `accounts/123456/dataSources/104628`.
|
|
1701
1701
|
*/
|
|
1702
1702
|
dataSource?: string;
|
|
1703
1703
|
/**
|
|
@@ -1717,7 +1717,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1717
1717
|
*/
|
|
1718
1718
|
dataSource?: string;
|
|
1719
1719
|
/**
|
|
1720
|
-
* Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of
|
|
1720
|
+
* Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of: `content_language~feed_label~offer_id` example for product input name is `accounts/123/productInputs/en~US~sku123`. A legacy local product input name would be `accounts/123/productInputs/local~en~US~sku123`. Note: For calls to the v1beta version, the `productInput` section consists of: `channel~content_language~feed_label~offer_id`, for example: `accounts/123/productInputs/online~en~US~sku123`.
|
|
1721
1721
|
*/
|
|
1722
1722
|
name?: string;
|
|
1723
1723
|
/**
|
|
@@ -1768,7 +1768,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1768
1768
|
*
|
|
1769
1769
|
* // Do the magic
|
|
1770
1770
|
* const res = await merchantapi.accounts.products.get({
|
|
1771
|
-
* // Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of
|
|
1771
|
+
* // Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of: `content_language~feed_label~offer_id` example for product name is `accounts/123/products/en~US~sku123`. A legacy local product name would be `accounts/123/products/local~en~US~sku123`. Note: For calls to the v1beta version, the `product` section consists of: `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`.
|
|
1772
1772
|
* name: 'accounts/my-account/products/my-product',
|
|
1773
1773
|
* });
|
|
1774
1774
|
* console.log(res.data);
|
|
@@ -2032,7 +2032,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
2032
2032
|
export interface Params$Resource$Accounts$Products$Get
|
|
2033
2033
|
extends StandardParameters {
|
|
2034
2034
|
/**
|
|
2035
|
-
* Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of
|
|
2035
|
+
* Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of: `content_language~feed_label~offer_id` example for product name is `accounts/123/products/en~US~sku123`. A legacy local product name would be `accounts/123/products/local~en~US~sku123`. Note: For calls to the v1beta version, the `product` section consists of: `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`.
|
|
2036
2036
|
*/
|
|
2037
2037
|
name?: string;
|
|
2038
2038
|
}
|