@googleapis/merchantapi 6.0.1 → 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.
- package/CHANGELOG.md +32 -0
- package/README.md +9 -0
- package/accounts_v1beta.ts +6214 -358
- package/build/accounts_v1beta.d.ts +4685 -141
- package/build/accounts_v1beta.js +560 -12
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +336 -1
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +411 -2
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1beta.d.ts +336 -2
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +367 -1
- package/build/issueresolution_v1beta.js +48 -0
- package/build/issueresolution_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +436 -3
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +272 -1
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1beta.d.ts +75 -1
- package/build/ordertracking_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +347 -44
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +171 -4
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +52 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +58 -1
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +426 -2
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +336 -1
- package/datasources_v1beta.ts +411 -2
- package/inventories_v1beta.ts +336 -2
- package/issueresolution_v1beta.ts +465 -1
- package/lfp_v1beta.ts +436 -3
- package/notifications_v1beta.ts +272 -1
- package/ordertracking_v1beta.ts +75 -1
- package/package.json +1 -1
- package/products_v1beta.ts +347 -44
- package/promotions_v1beta.ts +171 -4
- package/quota_v1beta.ts +52 -1
- package/reports_v1beta.ts +58 -1
- package/reviews_v1beta.ts +426 -2
|
@@ -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
|
|
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/
|
|
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,6 +313,50 @@ 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`.
|
|
@@ -327,6 +371,82 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
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`.
|
|
@@ -341,6 +461,57 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
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`.
|
|
@@ -389,6 +560,50 @@ 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`.
|
|
@@ -403,6 +618,74 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
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`.
|
|
@@ -417,6 +700,57 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
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`.
|
|
@@ -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,
|
|
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,CAmyC9C;AAnyCD,WAAiB,8BAA8B;IAgE7C;;;;;;;;;;OA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