@googleapis/merchantapi 3.0.0 → 5.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/accounts_v1beta.ts +1518 -170
  3. package/build/accounts_v1beta.d.ts +593 -58
  4. package/build/accounts_v1beta.js +344 -1
  5. package/build/accounts_v1beta.js.map +1 -1
  6. package/build/conversions_v1beta.d.ts +25 -18
  7. package/build/conversions_v1beta.js.map +1 -1
  8. package/build/datasources_v1beta.d.ts +31 -10
  9. package/build/datasources_v1beta.js.map +1 -1
  10. package/build/inventories_v1beta.d.ts +11 -7
  11. package/build/inventories_v1beta.js.map +1 -1
  12. package/build/lfp_v1beta.d.ts +131 -6
  13. package/build/lfp_v1beta.js +39 -0
  14. package/build/lfp_v1beta.js.map +1 -1
  15. package/build/notifications_v1beta.d.ts +10 -6
  16. package/build/notifications_v1beta.js.map +1 -1
  17. package/build/products_v1beta.d.ts +76 -19
  18. package/build/products_v1beta.js +32 -0
  19. package/build/products_v1beta.js.map +1 -1
  20. package/build/promotions_v1beta.d.ts +10 -6
  21. package/build/promotions_v1beta.js.map +1 -1
  22. package/build/quota_v1beta.d.ts +10 -6
  23. package/build/quota_v1beta.js.map +1 -1
  24. package/build/reports_v1beta.d.ts +11 -7
  25. package/build/reports_v1beta.js.map +1 -1
  26. package/build/reviews_v1beta.d.ts +12 -8
  27. package/build/reviews_v1beta.js.map +1 -1
  28. package/conversions_v1beta.ts +25 -18
  29. package/datasources_v1beta.ts +31 -10
  30. package/inventories_v1beta.ts +11 -7
  31. package/lfp_v1beta.ts +213 -6
  32. package/notifications_v1beta.ts +10 -6
  33. package/package.json +1 -1
  34. package/products_v1beta.ts +152 -19
  35. package/promotions_v1beta.ts +10 -6
  36. package/quota_v1beta.ts +10 -6
  37. package/reports_v1beta.ts +11 -7
  38. package/reviews_v1beta.ts +12 -8
@@ -377,19 +377,19 @@ export namespace merchantapi_promotions_v1beta {
377
377
  */
378
378
  export interface Schema$ProductChange {
379
379
  /**
380
- * The new value of the changed resource or attribute.
380
+ * 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`, ``)
381
381
  */
382
382
  newValue?: string | null;
383
383
  /**
384
- * The old value of the changed resource or attribute.
384
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
385
385
  */
386
386
  oldValue?: string | null;
387
387
  /**
388
- * Countries that have the change (if applicable)
388
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
389
389
  */
390
390
  regionCode?: string | null;
391
391
  /**
392
- * Reporting contexts that have the change (if applicable)
392
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
393
393
  */
394
394
  reportingContext?: string | null;
395
395
  }
@@ -410,7 +410,11 @@ export namespace merchantapi_promotions_v1beta {
410
410
  */
411
411
  changes?: Schema$ProductChange[];
412
412
  /**
413
- * The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
413
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
414
+ */
415
+ eventTime?: string | null;
416
+ /**
417
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
414
418
  */
415
419
  expirationTime?: string | null;
416
420
  /**
@@ -418,7 +422,7 @@ export namespace merchantapi_promotions_v1beta {
418
422
  */
419
423
  managingAccount?: string | null;
420
424
  /**
421
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
425
+ * The product name. Format: `accounts/{account\}/products/{product\}`
422
426
  */
423
427
  resource?: string | null;
424
428
  /**
package/quota_v1beta.ts CHANGED
@@ -163,19 +163,19 @@ export namespace merchantapi_quota_v1beta {
163
163
  */
164
164
  export interface Schema$ProductChange {
165
165
  /**
166
- * The new value of the changed resource or attribute.
166
+ * 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`, ``)
167
167
  */
168
168
  newValue?: string | null;
169
169
  /**
170
- * The old value of the changed resource or attribute.
170
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
171
171
  */
172
172
  oldValue?: string | null;
173
173
  /**
174
- * Countries that have the change (if applicable)
174
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
175
175
  */
176
176
  regionCode?: string | null;
177
177
  /**
178
- * Reporting contexts that have the change (if applicable)
178
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
179
179
  */
180
180
  reportingContext?: string | null;
181
181
  }
@@ -196,7 +196,11 @@ export namespace merchantapi_quota_v1beta {
196
196
  */
197
197
  changes?: Schema$ProductChange[];
198
198
  /**
199
- * The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
199
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
200
+ */
201
+ eventTime?: string | null;
202
+ /**
203
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
200
204
  */
201
205
  expirationTime?: string | null;
202
206
  /**
@@ -204,7 +208,7 @@ export namespace merchantapi_quota_v1beta {
204
208
  */
205
209
  managingAccount?: string | null;
206
210
  /**
207
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
211
+ * The product name. Format: `accounts/{account\}/products/{product\}`
208
212
  */
209
213
  resource?: string | null;
210
214
  /**
package/reports_v1beta.ts CHANGED
@@ -651,19 +651,19 @@ export namespace merchantapi_reports_v1beta {
651
651
  */
652
652
  export interface Schema$ProductChange {
653
653
  /**
654
- * The new value of the changed resource or attribute.
654
+ * 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`, ``)
655
655
  */
656
656
  newValue?: string | null;
657
657
  /**
658
- * The old value of the changed resource or attribute.
658
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
659
659
  */
660
660
  oldValue?: string | null;
661
661
  /**
662
- * Countries that have the change (if applicable)
662
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
663
663
  */
664
664
  regionCode?: string | null;
665
665
  /**
666
- * Reporting contexts that have the change (if applicable)
666
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
667
667
  */
668
668
  reportingContext?: string | null;
669
669
  }
@@ -801,7 +801,11 @@ export namespace merchantapi_reports_v1beta {
801
801
  */
802
802
  changes?: Schema$ProductChange[];
803
803
  /**
804
- * The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
804
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
805
+ */
806
+ eventTime?: string | null;
807
+ /**
808
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
805
809
  */
806
810
  expirationTime?: string | null;
807
811
  /**
@@ -809,7 +813,7 @@ export namespace merchantapi_reports_v1beta {
809
813
  */
810
814
  managingAccount?: string | null;
811
815
  /**
812
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
816
+ * The product name. Format: `accounts/{account\}/products/{product\}`
813
817
  */
814
818
  resource?: string | null;
815
819
  /**
@@ -1004,7 +1008,7 @@ export namespace merchantapi_reports_v1beta {
1004
1008
  */
1005
1009
  pageToken?: string | null;
1006
1010
  /**
1007
- * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.
1011
+ * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_v1beta/accounts.reports).
1008
1012
  */
1009
1013
  query?: string | null;
1010
1014
  }
package/reviews_v1beta.ts CHANGED
@@ -180,7 +180,7 @@ export namespace merchantapi_reviews_v1beta {
180
180
  */
181
181
  attributes?: Schema$MerchantReviewAttributes;
182
182
  /**
183
- * Required. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.
183
+ * Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.
184
184
  */
185
185
  customAttributes?: Schema$CustomAttribute[];
186
186
  /**
@@ -257,7 +257,7 @@ export namespace merchantapi_reviews_v1beta {
257
257
  */
258
258
  reviewerUsername?: string | null;
259
259
  /**
260
- * Required. The language of the review defined by BCP-47 language code.
260
+ * Optional. The language of the review defined by BCP-47 language code.
261
261
  */
262
262
  reviewLanguage?: string | null;
263
263
  /**
@@ -341,19 +341,19 @@ export namespace merchantapi_reviews_v1beta {
341
341
  */
342
342
  export interface Schema$ProductChange {
343
343
  /**
344
- * The new value of the changed resource or attribute.
344
+ * 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`, ``)
345
345
  */
346
346
  newValue?: string | null;
347
347
  /**
348
- * The old value of the changed resource or attribute.
348
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
349
349
  */
350
350
  oldValue?: string | null;
351
351
  /**
352
- * Countries that have the change (if applicable)
352
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
353
353
  */
354
354
  regionCode?: string | null;
355
355
  /**
356
- * Reporting contexts that have the change (if applicable)
356
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
357
357
  */
358
358
  reportingContext?: string | null;
359
359
  }
@@ -591,7 +591,11 @@ export namespace merchantapi_reviews_v1beta {
591
591
  */
592
592
  changes?: Schema$ProductChange[];
593
593
  /**
594
- * The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
594
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
595
+ */
596
+ eventTime?: string | null;
597
+ /**
598
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
595
599
  */
596
600
  expirationTime?: string | null;
597
601
  /**
@@ -599,7 +603,7 @@ export namespace merchantapi_reviews_v1beta {
599
603
  */
600
604
  managingAccount?: string | null;
601
605
  /**
602
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
606
+ * The product name. Format: `accounts/{account\}/products/{product\}`
603
607
  */
604
608
  resource?: string | null;
605
609
  /**