@googleapis/merchantapi 5.0.0 → 8.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 (49) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +9 -0
  3. package/accounts_v1beta.ts +6487 -518
  4. package/build/accounts_v1beta.d.ts +4773 -229
  5. package/build/accounts_v1beta.js +560 -12
  6. package/build/accounts_v1beta.js.map +1 -1
  7. package/build/conversions_v1beta.d.ts +349 -14
  8. package/build/conversions_v1beta.js.map +1 -1
  9. package/build/datasources_v1beta.d.ts +427 -18
  10. package/build/datasources_v1beta.js.map +1 -1
  11. package/build/index.d.ts +11 -1
  12. package/build/index.js +7 -1
  13. package/build/index.js.map +1 -1
  14. package/build/inventories_v1beta.d.ts +349 -15
  15. package/build/inventories_v1beta.js.map +1 -1
  16. package/build/issueresolution_v1beta.d.ts +1027 -0
  17. package/build/issueresolution_v1beta.js +196 -0
  18. package/build/issueresolution_v1beta.js.map +1 -0
  19. package/build/lfp_v1beta.d.ts +451 -18
  20. package/build/lfp_v1beta.js.map +1 -1
  21. package/build/notifications_v1beta.d.ts +283 -12
  22. package/build/notifications_v1beta.js.map +1 -1
  23. package/build/ordertracking_v1beta.d.ts +459 -0
  24. package/build/ordertracking_v1beta.js +91 -0
  25. package/build/ordertracking_v1beta.js.map +1 -0
  26. package/build/products_v1beta.d.ts +358 -55
  27. package/build/products_v1beta.js.map +1 -1
  28. package/build/promotions_v1beta.d.ts +178 -11
  29. package/build/promotions_v1beta.js.map +1 -1
  30. package/build/quota_v1beta.d.ts +55 -4
  31. package/build/quota_v1beta.js.map +1 -1
  32. package/build/reports_v1beta.d.ts +61 -4
  33. package/build/reports_v1beta.js.map +1 -1
  34. package/build/reviews_v1beta.d.ts +443 -19
  35. package/build/reviews_v1beta.js.map +1 -1
  36. package/conversions_v1beta.ts +371 -21
  37. package/datasources_v1beta.ts +453 -26
  38. package/index.ts +24 -1
  39. package/inventories_v1beta.ts +367 -24
  40. package/issueresolution_v1beta.ts +1426 -0
  41. package/lfp_v1beta.ts +477 -26
  42. package/notifications_v1beta.ts +299 -21
  43. package/ordertracking_v1beta.ts +599 -0
  44. package/package.json +2 -2
  45. package/products_v1beta.ts +376 -61
  46. package/promotions_v1beta.ts +188 -15
  47. package/quota_v1beta.ts +57 -6
  48. package/reports_v1beta.ts +65 -5
  49. package/reviews_v1beta.ts +471 -29
package/build/index.js CHANGED
@@ -12,7 +12,7 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.AuthPlus = exports.merchantapi_reviews_v1beta = exports.merchantapi_reports_v1beta = exports.merchantapi_quota_v1beta = exports.merchantapi_promotions_v1beta = exports.merchantapi_products_v1beta = exports.merchantapi_notifications_v1beta = exports.merchantapi_lfp_v1beta = exports.merchantapi_inventories_v1beta = exports.merchantapi_datasources_v1beta = exports.merchantapi_conversions_v1beta = exports.merchantapi_accounts_v1beta = exports.auth = exports.merchantapi = exports.VERSIONS = void 0;
15
+ exports.AuthPlus = exports.merchantapi_reviews_v1beta = exports.merchantapi_reports_v1beta = exports.merchantapi_quota_v1beta = exports.merchantapi_promotions_v1beta = exports.merchantapi_products_v1beta = exports.merchantapi_ordertracking_v1beta = exports.merchantapi_notifications_v1beta = exports.merchantapi_lfp_v1beta = exports.merchantapi_issueresolution_v1beta = exports.merchantapi_inventories_v1beta = exports.merchantapi_datasources_v1beta = exports.merchantapi_conversions_v1beta = exports.merchantapi_accounts_v1beta = exports.auth = exports.merchantapi = exports.VERSIONS = void 0;
16
16
  /*! THIS FILE IS AUTO-GENERATED */
17
17
  const googleapis_common_1 = require("googleapis-common");
18
18
  const accounts_v1beta_1 = require("./accounts_v1beta");
@@ -23,10 +23,14 @@ const datasources_v1beta_1 = require("./datasources_v1beta");
23
23
  Object.defineProperty(exports, "merchantapi_datasources_v1beta", { enumerable: true, get: function () { return datasources_v1beta_1.merchantapi_datasources_v1beta; } });
24
24
  const inventories_v1beta_1 = require("./inventories_v1beta");
25
25
  Object.defineProperty(exports, "merchantapi_inventories_v1beta", { enumerable: true, get: function () { return inventories_v1beta_1.merchantapi_inventories_v1beta; } });
26
+ const issueresolution_v1beta_1 = require("./issueresolution_v1beta");
27
+ Object.defineProperty(exports, "merchantapi_issueresolution_v1beta", { enumerable: true, get: function () { return issueresolution_v1beta_1.merchantapi_issueresolution_v1beta; } });
26
28
  const lfp_v1beta_1 = require("./lfp_v1beta");
27
29
  Object.defineProperty(exports, "merchantapi_lfp_v1beta", { enumerable: true, get: function () { return lfp_v1beta_1.merchantapi_lfp_v1beta; } });
28
30
  const notifications_v1beta_1 = require("./notifications_v1beta");
29
31
  Object.defineProperty(exports, "merchantapi_notifications_v1beta", { enumerable: true, get: function () { return notifications_v1beta_1.merchantapi_notifications_v1beta; } });
32
+ const ordertracking_v1beta_1 = require("./ordertracking_v1beta");
33
+ Object.defineProperty(exports, "merchantapi_ordertracking_v1beta", { enumerable: true, get: function () { return ordertracking_v1beta_1.merchantapi_ordertracking_v1beta; } });
30
34
  const products_v1beta_1 = require("./products_v1beta");
31
35
  Object.defineProperty(exports, "merchantapi_products_v1beta", { enumerable: true, get: function () { return products_v1beta_1.merchantapi_products_v1beta; } });
32
36
  const promotions_v1beta_1 = require("./promotions_v1beta");
@@ -42,8 +46,10 @@ exports.VERSIONS = {
42
46
  conversions_v1beta: conversions_v1beta_1.merchantapi_conversions_v1beta.Merchantapi,
43
47
  datasources_v1beta: datasources_v1beta_1.merchantapi_datasources_v1beta.Merchantapi,
44
48
  inventories_v1beta: inventories_v1beta_1.merchantapi_inventories_v1beta.Merchantapi,
49
+ issueresolution_v1beta: issueresolution_v1beta_1.merchantapi_issueresolution_v1beta.Merchantapi,
45
50
  lfp_v1beta: lfp_v1beta_1.merchantapi_lfp_v1beta.Merchantapi,
46
51
  notifications_v1beta: notifications_v1beta_1.merchantapi_notifications_v1beta.Merchantapi,
52
+ ordertracking_v1beta: ordertracking_v1beta_1.merchantapi_ordertracking_v1beta.Merchantapi,
47
53
  products_v1beta: products_v1beta_1.merchantapi_products_v1beta.Merchantapi,
48
54
  promotions_v1beta: promotions_v1beta_1.merchantapi_promotions_v1beta.Merchantapi,
49
55
  quota_v1beta: quota_v1beta_1.merchantapi_quota_v1beta.Merchantapi,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,uDAA8D;AAwItD,4GAxIA,6CAA2B,OAwIA;AAvInC,6DAAoE;AAwI5D,+GAxIA,mDAA8B,OAwIA;AAvItC,6DAAoE;AAwI5D,+GAxIA,mDAA8B,OAwIA;AAvItC,6DAAoE;AAwI5D,+GAxIA,mDAA8B,OAwIA;AAvItC,6CAAoD;AAwI5C,uGAxIA,mCAAsB,OAwIA;AAvI9B,iEAAwE;AAwIhE,iHAxIA,uDAAgC,OAwIA;AAvIxC,uDAA8D;AAwItD,4GAxIA,6CAA2B,OAwIA;AAvInC,2DAAkE;AAwI1D,8GAxIA,iDAA6B,OAwIA;AAvIrC,iDAAwD;AAwIhD,yGAxIA,uCAAwB,OAwIA;AAvIhC,qDAA4D;AAwIpD,2GAxIA,2CAA0B,OAwIA;AAvIlC,qDAA4D;AAwIpD,2GAxIA,2CAA0B,OAwIA;AAtIrB,QAAA,QAAQ,GAAG;IACtB,eAAe,EAAE,6CAA2B,CAAC,WAAW;IACxD,kBAAkB,EAAE,mDAA8B,CAAC,WAAW;IAC9D,kBAAkB,EAAE,mDAA8B,CAAC,WAAW;IAC9D,kBAAkB,EAAE,mDAA8B,CAAC,WAAW;IAC9D,UAAU,EAAE,mCAA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A7JnC,2DAAkE;AA8J1D,8GA9JA,iDAA6B,OA8JA;AA7JrC,iDAAwD;AA8JhD,yGA9JA,uCAAwB,OA8JA;AA7JhC,qDAA4D;AA8JpD,2GA9JA,2CAA0B,OA8JA;AA7JlC,qDAA4D;AA8JpD,2GA9JA,2CAA0B,OA8JA;AA5JrB,QAAA,QAAQ,GAAG;IACtB,eAAe,EAAE,6CAA2B,CAAC,WAAW;IACxD,kBAAkB,EAAE,mDAA8B,CAAC,WAAW;IAC9D,kBAAkB,EAAE,mDAA8B,CAAC,WAAW;IAC9D,kBAAkB,EAAE,mDAA8B,CAAC,WAAW;IAC9D,sBAAsB,EAAE,2DAAkC,CAAC,WAAW;IACtE,UAAU,EAAE,mCAAsB,CAAC,WAAW;IAC9C,oBAAoB,EAAE,uDAAgC,CAAC,WAAW;IAClE,oBAAoB,EAAE,uDAAgC,CAAC,WAAW;IAClE,eAAe,EAAE,6CAA2B,CAAC,WAAW;IACxD,iBAAiB,EAAE,iDAA6B,CAAC,WAAW;IAC5D,YAAY,EAAE,uCAAwB,CAAC,WAAW;IAClD,cAAc,EAAE,2CAA0B,CAAC,WAAW;IACtD,cAAc,EAAE,2CAA0B,CAAC,WAAW;CACvD,CAAC;AAgFF,SAAgB,WAAW,CAiBzB,gBA0BsC;IAEtC,OAAO,IAAA,0BAAM,EAAI,aAAa,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACpE,CAAC;AA9CD,kCA8CC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAcZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace merchantapi_inventories_v1beta {
5
5
  export interface Options extends GlobalOptions {
@@ -240,7 +240,7 @@ export declare namespace merchantapi_inventories_v1beta {
240
240
  */
241
241
  eventTime?: string | null;
242
242
  /**
243
- * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
243
+ * Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event.
244
244
  */
245
245
  expirationTime?: string | null;
246
246
  /**
@@ -269,7 +269,7 @@ export declare namespace merchantapi_inventories_v1beta {
269
269
  */
270
270
  account?: string | null;
271
271
  /**
272
- * Availability of the product in this region. For accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/6324448).
272
+ * Availability of the product in this region. For accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/14644124).
273
273
  */
274
274
  availability?: string | null;
275
275
  /**
@@ -313,42 +313,213 @@ export declare namespace merchantapi_inventories_v1beta {
313
313
  constructor(context: APIRequestContext);
314
314
  /**
315
315
  * Deletes the specified `LocalInventory` from the given product in your merchant account. It might take a up to an hour for the `LocalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.
316
+ * @example
317
+ * ```js
318
+ * // Before running the sample:
319
+ * // - Enable the API at:
320
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
321
+ * // - Login into gcloud by running:
322
+ * // ```sh
323
+ * // $ gcloud auth application-default login
324
+ * // ```
325
+ * // - Install the npm module by running:
326
+ * // ```sh
327
+ * // $ npm install googleapis
328
+ * // ```
329
+ *
330
+ * const {google} = require('googleapis');
331
+ * const merchantapi = google.merchantapi('inventories_v1beta');
332
+ *
333
+ * async function main() {
334
+ * const auth = new google.auth.GoogleAuth({
335
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
336
+ * scopes: ['https://www.googleapis.com/auth/content'],
337
+ * });
338
+ *
339
+ * // Acquire an auth client, and bind it to all future calls
340
+ * const authClient = await auth.getClient();
341
+ * google.options({auth: authClient});
342
+ *
343
+ * // Do the magic
344
+ * const res = await merchantapi.accounts.products.localInventories.delete({
345
+ * // Required. The name of the local inventory for the given product to delete. Format: `accounts/{account\}/products/{product\}/localInventories/{store_code\}`
346
+ * name: 'accounts/my-account/products/my-product/localInventories/my-localInventorie',
347
+ * });
348
+ * console.log(res.data);
349
+ *
350
+ * // Example response
351
+ * // {}
352
+ * }
353
+ *
354
+ * main().catch(e => {
355
+ * console.error(e);
356
+ * throw e;
357
+ * });
358
+ *
359
+ * ```
316
360
  *
317
361
  * @param params - Parameters for request
318
362
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
319
363
  * @param callback - Optional callback that handles the response.
320
364
  * @returns A promise if used with async/await, or void if used with a callback.
321
365
  */
322
- delete(params: Params$Resource$Accounts$Products$Localinventories$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
323
- delete(params?: Params$Resource$Accounts$Products$Localinventories$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
366
+ delete(params: Params$Resource$Accounts$Products$Localinventories$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
367
+ delete(params?: Params$Resource$Accounts$Products$Localinventories$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
324
368
  delete(params: Params$Resource$Accounts$Products$Localinventories$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
325
369
  delete(params: Params$Resource$Accounts$Products$Localinventories$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
326
370
  delete(params: Params$Resource$Accounts$Products$Localinventories$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
327
371
  delete(callback: BodyResponseCallback<Schema$Empty>): void;
328
372
  /**
329
373
  * Inserts a `LocalInventory` resource to a product in your merchant account. Replaces the full `LocalInventory` resource if an entry with the same `storeCode` already exists for the product. It might take up to 30 minutes for the new or updated `LocalInventory` resource to appear in products.
374
+ * @example
375
+ * ```js
376
+ * // Before running the sample:
377
+ * // - Enable the API at:
378
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
379
+ * // - Login into gcloud by running:
380
+ * // ```sh
381
+ * // $ gcloud auth application-default login
382
+ * // ```
383
+ * // - Install the npm module by running:
384
+ * // ```sh
385
+ * // $ npm install googleapis
386
+ * // ```
387
+ *
388
+ * const {google} = require('googleapis');
389
+ * const merchantapi = google.merchantapi('inventories_v1beta');
390
+ *
391
+ * async function main() {
392
+ * const auth = new google.auth.GoogleAuth({
393
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
394
+ * scopes: ['https://www.googleapis.com/auth/content'],
395
+ * });
396
+ *
397
+ * // Acquire an auth client, and bind it to all future calls
398
+ * const authClient = await auth.getClient();
399
+ * google.options({auth: authClient});
400
+ *
401
+ * // Do the magic
402
+ * const res = await merchantapi.accounts.products.localInventories.insert({
403
+ * // Required. The account and product where this inventory will be inserted. Format: `accounts/{account\}/products/{product\}`
404
+ * parent: 'accounts/my-account/products/my-product',
405
+ *
406
+ * // Request body metadata
407
+ * requestBody: {
408
+ * // request body parameters
409
+ * // {
410
+ * // "account": "my_account",
411
+ * // "availability": "my_availability",
412
+ * // "customAttributes": [],
413
+ * // "instoreProductLocation": "my_instoreProductLocation",
414
+ * // "name": "my_name",
415
+ * // "pickupMethod": "my_pickupMethod",
416
+ * // "pickupSla": "my_pickupSla",
417
+ * // "price": {},
418
+ * // "quantity": "my_quantity",
419
+ * // "salePrice": {},
420
+ * // "salePriceEffectiveDate": {},
421
+ * // "storeCode": "my_storeCode"
422
+ * // }
423
+ * },
424
+ * });
425
+ * console.log(res.data);
426
+ *
427
+ * // Example response
428
+ * // {
429
+ * // "account": "my_account",
430
+ * // "availability": "my_availability",
431
+ * // "customAttributes": [],
432
+ * // "instoreProductLocation": "my_instoreProductLocation",
433
+ * // "name": "my_name",
434
+ * // "pickupMethod": "my_pickupMethod",
435
+ * // "pickupSla": "my_pickupSla",
436
+ * // "price": {},
437
+ * // "quantity": "my_quantity",
438
+ * // "salePrice": {},
439
+ * // "salePriceEffectiveDate": {},
440
+ * // "storeCode": "my_storeCode"
441
+ * // }
442
+ * }
443
+ *
444
+ * main().catch(e => {
445
+ * console.error(e);
446
+ * throw e;
447
+ * });
448
+ *
449
+ * ```
330
450
  *
331
451
  * @param params - Parameters for request
332
452
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
333
453
  * @param callback - Optional callback that handles the response.
334
454
  * @returns A promise if used with async/await, or void if used with a callback.
335
455
  */
336
- insert(params: Params$Resource$Accounts$Products$Localinventories$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
337
- insert(params?: Params$Resource$Accounts$Products$Localinventories$Insert, options?: MethodOptions): GaxiosPromise<Schema$LocalInventory>;
456
+ insert(params: Params$Resource$Accounts$Products$Localinventories$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
457
+ insert(params?: Params$Resource$Accounts$Products$Localinventories$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LocalInventory>>;
338
458
  insert(params: Params$Resource$Accounts$Products$Localinventories$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
339
459
  insert(params: Params$Resource$Accounts$Products$Localinventories$Insert, options: MethodOptions | BodyResponseCallback<Schema$LocalInventory>, callback: BodyResponseCallback<Schema$LocalInventory>): void;
340
460
  insert(params: Params$Resource$Accounts$Products$Localinventories$Insert, callback: BodyResponseCallback<Schema$LocalInventory>): void;
341
461
  insert(callback: BodyResponseCallback<Schema$LocalInventory>): void;
342
462
  /**
343
463
  * Lists the `LocalInventory` resources for the given product in 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. `LocalInventory` resources are listed per product for a given account.
464
+ * @example
465
+ * ```js
466
+ * // Before running the sample:
467
+ * // - Enable the API at:
468
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
469
+ * // - Login into gcloud by running:
470
+ * // ```sh
471
+ * // $ gcloud auth application-default login
472
+ * // ```
473
+ * // - Install the npm module by running:
474
+ * // ```sh
475
+ * // $ npm install googleapis
476
+ * // ```
477
+ *
478
+ * const {google} = require('googleapis');
479
+ * const merchantapi = google.merchantapi('inventories_v1beta');
480
+ *
481
+ * async function main() {
482
+ * const auth = new google.auth.GoogleAuth({
483
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
484
+ * scopes: ['https://www.googleapis.com/auth/content'],
485
+ * });
486
+ *
487
+ * // Acquire an auth client, and bind it to all future calls
488
+ * const authClient = await auth.getClient();
489
+ * google.options({auth: authClient});
490
+ *
491
+ * // Do the magic
492
+ * const res = await merchantapi.accounts.products.localInventories.list({
493
+ * // The maximum number of `LocalInventory` resources for the given product to return. The service returns fewer than this value if the number of inventories for the given product is less that than the `pageSize`. The default value is 25000. The maximum value is 25000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum
494
+ * pageSize: 'placeholder-value',
495
+ * // A page token, received from a previous `ListLocalInventories` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListLocalInventories` must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.
496
+ * pageToken: 'placeholder-value',
497
+ * // Required. The `name` of the parent product to list local inventories for. Format: `accounts/{account\}/products/{product\}`
498
+ * parent: 'accounts/my-account/products/my-product',
499
+ * });
500
+ * console.log(res.data);
501
+ *
502
+ * // Example response
503
+ * // {
504
+ * // "localInventories": [],
505
+ * // "nextPageToken": "my_nextPageToken"
506
+ * // }
507
+ * }
508
+ *
509
+ * main().catch(e => {
510
+ * console.error(e);
511
+ * throw e;
512
+ * });
513
+ *
514
+ * ```
344
515
  *
345
516
  * @param params - Parameters for request
346
517
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
347
518
  * @param callback - Optional callback that handles the response.
348
519
  * @returns A promise if used with async/await, or void if used with a callback.
349
520
  */
350
- list(params: Params$Resource$Accounts$Products$Localinventories$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
351
- list(params?: Params$Resource$Accounts$Products$Localinventories$List, options?: MethodOptions): GaxiosPromise<Schema$ListLocalInventoriesResponse>;
521
+ list(params: Params$Resource$Accounts$Products$Localinventories$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
522
+ list(params?: Params$Resource$Accounts$Products$Localinventories$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListLocalInventoriesResponse>>;
352
523
  list(params: Params$Resource$Accounts$Products$Localinventories$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
353
524
  list(params: Params$Resource$Accounts$Products$Localinventories$List, options: MethodOptions | BodyResponseCallback<Schema$ListLocalInventoriesResponse>, callback: BodyResponseCallback<Schema$ListLocalInventoriesResponse>): void;
354
525
  list(params: Params$Resource$Accounts$Products$Localinventories$List, callback: BodyResponseCallback<Schema$ListLocalInventoriesResponse>): void;
@@ -389,42 +560,205 @@ export declare namespace merchantapi_inventories_v1beta {
389
560
  constructor(context: APIRequestContext);
390
561
  /**
391
562
  * Deletes the specified `RegionalInventory` resource from the given product in your merchant account. It might take up to an hour for the `RegionalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.
563
+ * @example
564
+ * ```js
565
+ * // Before running the sample:
566
+ * // - Enable the API at:
567
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
568
+ * // - Login into gcloud by running:
569
+ * // ```sh
570
+ * // $ gcloud auth application-default login
571
+ * // ```
572
+ * // - Install the npm module by running:
573
+ * // ```sh
574
+ * // $ npm install googleapis
575
+ * // ```
576
+ *
577
+ * const {google} = require('googleapis');
578
+ * const merchantapi = google.merchantapi('inventories_v1beta');
579
+ *
580
+ * async function main() {
581
+ * const auth = new google.auth.GoogleAuth({
582
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
583
+ * scopes: ['https://www.googleapis.com/auth/content'],
584
+ * });
585
+ *
586
+ * // Acquire an auth client, and bind it to all future calls
587
+ * const authClient = await auth.getClient();
588
+ * google.options({auth: authClient});
589
+ *
590
+ * // Do the magic
591
+ * const res = await merchantapi.accounts.products.regionalInventories.delete({
592
+ * // Required. The name of the `RegionalInventory` resource to delete. Format: `accounts/{account\}/products/{product\}/regionalInventories/{region\}`
593
+ * name: 'accounts/my-account/products/my-product/regionalInventories/my-regionalInventorie',
594
+ * });
595
+ * console.log(res.data);
596
+ *
597
+ * // Example response
598
+ * // {}
599
+ * }
600
+ *
601
+ * main().catch(e => {
602
+ * console.error(e);
603
+ * throw e;
604
+ * });
605
+ *
606
+ * ```
392
607
  *
393
608
  * @param params - Parameters for request
394
609
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
395
610
  * @param callback - Optional callback that handles the response.
396
611
  * @returns A promise if used with async/await, or void if used with a callback.
397
612
  */
398
- delete(params: Params$Resource$Accounts$Products$Regionalinventories$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
399
- delete(params?: Params$Resource$Accounts$Products$Regionalinventories$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
613
+ delete(params: Params$Resource$Accounts$Products$Regionalinventories$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
614
+ delete(params?: Params$Resource$Accounts$Products$Regionalinventories$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
400
615
  delete(params: Params$Resource$Accounts$Products$Regionalinventories$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
401
616
  delete(params: Params$Resource$Accounts$Products$Regionalinventories$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
402
617
  delete(params: Params$Resource$Accounts$Products$Regionalinventories$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
403
618
  delete(callback: BodyResponseCallback<Schema$Empty>): void;
404
619
  /**
405
620
  * Inserts a `RegionalInventory` to a given product in your merchant account. Replaces the full `RegionalInventory` resource if an entry with the same `region` already exists for the product. It might take up to 30 minutes for the new or updated `RegionalInventory` resource to appear in products.
621
+ * @example
622
+ * ```js
623
+ * // Before running the sample:
624
+ * // - Enable the API at:
625
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
626
+ * // - Login into gcloud by running:
627
+ * // ```sh
628
+ * // $ gcloud auth application-default login
629
+ * // ```
630
+ * // - Install the npm module by running:
631
+ * // ```sh
632
+ * // $ npm install googleapis
633
+ * // ```
634
+ *
635
+ * const {google} = require('googleapis');
636
+ * const merchantapi = google.merchantapi('inventories_v1beta');
637
+ *
638
+ * async function main() {
639
+ * const auth = new google.auth.GoogleAuth({
640
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
641
+ * scopes: ['https://www.googleapis.com/auth/content'],
642
+ * });
643
+ *
644
+ * // Acquire an auth client, and bind it to all future calls
645
+ * const authClient = await auth.getClient();
646
+ * google.options({auth: authClient});
647
+ *
648
+ * // Do the magic
649
+ * const res = await merchantapi.accounts.products.regionalInventories.insert({
650
+ * // Required. The account and product where this inventory will be inserted. Format: `accounts/{account\}/products/{product\}`
651
+ * parent: 'accounts/my-account/products/my-product',
652
+ *
653
+ * // Request body metadata
654
+ * requestBody: {
655
+ * // request body parameters
656
+ * // {
657
+ * // "account": "my_account",
658
+ * // "availability": "my_availability",
659
+ * // "customAttributes": [],
660
+ * // "name": "my_name",
661
+ * // "price": {},
662
+ * // "region": "my_region",
663
+ * // "salePrice": {},
664
+ * // "salePriceEffectiveDate": {}
665
+ * // }
666
+ * },
667
+ * });
668
+ * console.log(res.data);
669
+ *
670
+ * // Example response
671
+ * // {
672
+ * // "account": "my_account",
673
+ * // "availability": "my_availability",
674
+ * // "customAttributes": [],
675
+ * // "name": "my_name",
676
+ * // "price": {},
677
+ * // "region": "my_region",
678
+ * // "salePrice": {},
679
+ * // "salePriceEffectiveDate": {}
680
+ * // }
681
+ * }
682
+ *
683
+ * main().catch(e => {
684
+ * console.error(e);
685
+ * throw e;
686
+ * });
687
+ *
688
+ * ```
406
689
  *
407
690
  * @param params - Parameters for request
408
691
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
409
692
  * @param callback - Optional callback that handles the response.
410
693
  * @returns A promise if used with async/await, or void if used with a callback.
411
694
  */
412
- insert(params: Params$Resource$Accounts$Products$Regionalinventories$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
413
- insert(params?: Params$Resource$Accounts$Products$Regionalinventories$Insert, options?: MethodOptions): GaxiosPromise<Schema$RegionalInventory>;
695
+ insert(params: Params$Resource$Accounts$Products$Regionalinventories$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
696
+ insert(params?: Params$Resource$Accounts$Products$Regionalinventories$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$RegionalInventory>>;
414
697
  insert(params: Params$Resource$Accounts$Products$Regionalinventories$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
415
698
  insert(params: Params$Resource$Accounts$Products$Regionalinventories$Insert, options: MethodOptions | BodyResponseCallback<Schema$RegionalInventory>, callback: BodyResponseCallback<Schema$RegionalInventory>): void;
416
699
  insert(params: Params$Resource$Accounts$Products$Regionalinventories$Insert, callback: BodyResponseCallback<Schema$RegionalInventory>): void;
417
700
  insert(callback: BodyResponseCallback<Schema$RegionalInventory>): void;
418
701
  /**
419
702
  * Lists the `RegionalInventory` resources for the given product in 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. `RegionalInventory` resources are listed per product for a given account.
703
+ * @example
704
+ * ```js
705
+ * // Before running the sample:
706
+ * // - Enable the API at:
707
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
708
+ * // - Login into gcloud by running:
709
+ * // ```sh
710
+ * // $ gcloud auth application-default login
711
+ * // ```
712
+ * // - Install the npm module by running:
713
+ * // ```sh
714
+ * // $ npm install googleapis
715
+ * // ```
716
+ *
717
+ * const {google} = require('googleapis');
718
+ * const merchantapi = google.merchantapi('inventories_v1beta');
719
+ *
720
+ * async function main() {
721
+ * const auth = new google.auth.GoogleAuth({
722
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
723
+ * scopes: ['https://www.googleapis.com/auth/content'],
724
+ * });
725
+ *
726
+ * // Acquire an auth client, and bind it to all future calls
727
+ * const authClient = await auth.getClient();
728
+ * google.options({auth: authClient});
729
+ *
730
+ * // Do the magic
731
+ * const res = await merchantapi.accounts.products.regionalInventories.list({
732
+ * // The maximum number of `RegionalInventory` resources for the given product to return. The service returns fewer than this value if the number of inventories for the given product is less that than the `pageSize`. The default value is 25000. The maximum value is 100000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.
733
+ * pageSize: 'placeholder-value',
734
+ * // A page token, received from a previous `ListRegionalInventories` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegionalInventories` must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.
735
+ * pageToken: 'placeholder-value',
736
+ * // Required. The `name` of the parent product to list `RegionalInventory` resources for. Format: `accounts/{account\}/products/{product\}`
737
+ * parent: 'accounts/my-account/products/my-product',
738
+ * });
739
+ * console.log(res.data);
740
+ *
741
+ * // Example response
742
+ * // {
743
+ * // "nextPageToken": "my_nextPageToken",
744
+ * // "regionalInventories": []
745
+ * // }
746
+ * }
747
+ *
748
+ * main().catch(e => {
749
+ * console.error(e);
750
+ * throw e;
751
+ * });
752
+ *
753
+ * ```
420
754
  *
421
755
  * @param params - Parameters for request
422
756
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
423
757
  * @param callback - Optional callback that handles the response.
424
758
  * @returns A promise if used with async/await, or void if used with a callback.
425
759
  */
426
- list(params: Params$Resource$Accounts$Products$Regionalinventories$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
427
- list(params?: Params$Resource$Accounts$Products$Regionalinventories$List, options?: MethodOptions): GaxiosPromise<Schema$ListRegionalInventoriesResponse>;
760
+ list(params: Params$Resource$Accounts$Products$Regionalinventories$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
761
+ list(params?: Params$Resource$Accounts$Products$Regionalinventories$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListRegionalInventoriesResponse>>;
428
762
  list(params: Params$Resource$Accounts$Products$Regionalinventories$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
429
763
  list(params: Params$Resource$Accounts$Products$Regionalinventories$List, options: MethodOptions | BodyResponseCallback<Schema$ListRegionalInventoriesResponse>, callback: BodyResponseCallback<Schema$ListRegionalInventoriesResponse>): void;
430
764
  list(params: Params$Resource$Accounts$Products$Regionalinventories$List, callback: BodyResponseCallback<Schema$ListRegionalInventoriesResponse>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"inventories_v1beta.js","sourceRoot":"","sources":["../inventories_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,8BAA8B,CA48B9C;AA58BD,WAAiB,8BAA8B;IAgE7C;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QAItB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CA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