@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
@@ -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_reviews_v1beta {
5
5
  export interface Options extends GlobalOptions {
@@ -359,7 +359,7 @@ export declare namespace merchantapi_reviews_v1beta {
359
359
  */
360
360
  cons?: string[] | null;
361
361
  /**
362
- * Required. The content of the review.
362
+ * Optional. The content of the review. If empty, the content might still get populated from pros and cons.
363
363
  */
364
364
  content?: string | null;
365
365
  /**
@@ -543,7 +543,7 @@ export declare namespace merchantapi_reviews_v1beta {
543
543
  */
544
544
  eventTime?: string | null;
545
545
  /**
546
- * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
546
+ * Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event.
547
547
  */
548
548
  expirationTime?: string | null;
549
549
  /**
@@ -587,56 +587,268 @@ export declare namespace merchantapi_reviews_v1beta {
587
587
  constructor(context: APIRequestContext);
588
588
  /**
589
589
  * Deletes merchant review.
590
+ * @example
591
+ * ```js
592
+ * // Before running the sample:
593
+ * // - Enable the API at:
594
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
595
+ * // - Login into gcloud by running:
596
+ * // ```sh
597
+ * // $ gcloud auth application-default login
598
+ * // ```
599
+ * // - Install the npm module by running:
600
+ * // ```sh
601
+ * // $ npm install googleapis
602
+ * // ```
603
+ *
604
+ * const {google} = require('googleapis');
605
+ * const merchantapi = google.merchantapi('reviews_v1beta');
606
+ *
607
+ * async function main() {
608
+ * const auth = new google.auth.GoogleAuth({
609
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
610
+ * scopes: ['https://www.googleapis.com/auth/content'],
611
+ * });
612
+ *
613
+ * // Acquire an auth client, and bind it to all future calls
614
+ * const authClient = await auth.getClient();
615
+ * google.options({auth: authClient});
616
+ *
617
+ * // Do the magic
618
+ * const res = await merchantapi.accounts.merchantReviews.delete({
619
+ * // Required. The ID of the merchant review. Format: accounts/{account\}/merchantReviews/{merchantReview\}
620
+ * name: 'accounts/my-account/merchantReviews/my-merchantReview',
621
+ * });
622
+ * console.log(res.data);
623
+ *
624
+ * // Example response
625
+ * // {}
626
+ * }
627
+ *
628
+ * main().catch(e => {
629
+ * console.error(e);
630
+ * throw e;
631
+ * });
632
+ *
633
+ * ```
590
634
  *
591
635
  * @param params - Parameters for request
592
636
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
593
637
  * @param callback - Optional callback that handles the response.
594
638
  * @returns A promise if used with async/await, or void if used with a callback.
595
639
  */
596
- delete(params: Params$Resource$Accounts$Merchantreviews$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
597
- delete(params?: Params$Resource$Accounts$Merchantreviews$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
640
+ delete(params: Params$Resource$Accounts$Merchantreviews$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
641
+ delete(params?: Params$Resource$Accounts$Merchantreviews$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
598
642
  delete(params: Params$Resource$Accounts$Merchantreviews$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
599
643
  delete(params: Params$Resource$Accounts$Merchantreviews$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
600
644
  delete(params: Params$Resource$Accounts$Merchantreviews$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
601
645
  delete(callback: BodyResponseCallback<Schema$Empty>): void;
602
646
  /**
603
647
  * Gets a merchant review.
648
+ * @example
649
+ * ```js
650
+ * // Before running the sample:
651
+ * // - Enable the API at:
652
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
653
+ * // - Login into gcloud by running:
654
+ * // ```sh
655
+ * // $ gcloud auth application-default login
656
+ * // ```
657
+ * // - Install the npm module by running:
658
+ * // ```sh
659
+ * // $ npm install googleapis
660
+ * // ```
661
+ *
662
+ * const {google} = require('googleapis');
663
+ * const merchantapi = google.merchantapi('reviews_v1beta');
664
+ *
665
+ * async function main() {
666
+ * const auth = new google.auth.GoogleAuth({
667
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
668
+ * scopes: ['https://www.googleapis.com/auth/content'],
669
+ * });
670
+ *
671
+ * // Acquire an auth client, and bind it to all future calls
672
+ * const authClient = await auth.getClient();
673
+ * google.options({auth: authClient});
674
+ *
675
+ * // Do the magic
676
+ * const res = await merchantapi.accounts.merchantReviews.get({
677
+ * // Required. The ID of the merchant review. Format: accounts/{account\}/merchantReviews/{merchantReview\}
678
+ * name: 'accounts/my-account/merchantReviews/my-merchantReview',
679
+ * });
680
+ * console.log(res.data);
681
+ *
682
+ * // Example response
683
+ * // {
684
+ * // "attributes": {},
685
+ * // "customAttributes": [],
686
+ * // "dataSource": "my_dataSource",
687
+ * // "merchantReviewId": "my_merchantReviewId",
688
+ * // "merchantReviewStatus": {},
689
+ * // "name": "my_name"
690
+ * // }
691
+ * }
692
+ *
693
+ * main().catch(e => {
694
+ * console.error(e);
695
+ * throw e;
696
+ * });
697
+ *
698
+ * ```
604
699
  *
605
700
  * @param params - Parameters for request
606
701
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
607
702
  * @param callback - Optional callback that handles the response.
608
703
  * @returns A promise if used with async/await, or void if used with a callback.
609
704
  */
610
- get(params: Params$Resource$Accounts$Merchantreviews$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
611
- get(params?: Params$Resource$Accounts$Merchantreviews$Get, options?: MethodOptions): GaxiosPromise<Schema$MerchantReview>;
705
+ get(params: Params$Resource$Accounts$Merchantreviews$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
706
+ get(params?: Params$Resource$Accounts$Merchantreviews$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$MerchantReview>>;
612
707
  get(params: Params$Resource$Accounts$Merchantreviews$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
613
708
  get(params: Params$Resource$Accounts$Merchantreviews$Get, options: MethodOptions | BodyResponseCallback<Schema$MerchantReview>, callback: BodyResponseCallback<Schema$MerchantReview>): void;
614
709
  get(params: Params$Resource$Accounts$Merchantreviews$Get, callback: BodyResponseCallback<Schema$MerchantReview>): void;
615
710
  get(callback: BodyResponseCallback<Schema$MerchantReview>): void;
616
711
  /**
617
712
  * Inserts a review for your Merchant Center account. If the review already exists, then the review is replaced with the new instance.
713
+ * @example
714
+ * ```js
715
+ * // Before running the sample:
716
+ * // - Enable the API at:
717
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
718
+ * // - Login into gcloud by running:
719
+ * // ```sh
720
+ * // $ gcloud auth application-default login
721
+ * // ```
722
+ * // - Install the npm module by running:
723
+ * // ```sh
724
+ * // $ npm install googleapis
725
+ * // ```
726
+ *
727
+ * const {google} = require('googleapis');
728
+ * const merchantapi = google.merchantapi('reviews_v1beta');
729
+ *
730
+ * async function main() {
731
+ * const auth = new google.auth.GoogleAuth({
732
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
733
+ * scopes: ['https://www.googleapis.com/auth/content'],
734
+ * });
735
+ *
736
+ * // Acquire an auth client, and bind it to all future calls
737
+ * const authClient = await auth.getClient();
738
+ * google.options({auth: authClient});
739
+ *
740
+ * // Do the magic
741
+ * const res = await merchantapi.accounts.merchantReviews.insert({
742
+ * // Required. The data source of the [merchantreview](https://support.google.com/merchants/answer/7045996?sjid=5253581244217581976-EU) Format: `accounts/{account\}/dataSources/{datasource\}`.
743
+ * dataSource: 'placeholder-value',
744
+ * // Required. The account where the merchant review will be inserted. Format: accounts/{account\}
745
+ * parent: 'accounts/my-account',
746
+ *
747
+ * // Request body metadata
748
+ * requestBody: {
749
+ * // request body parameters
750
+ * // {
751
+ * // "attributes": {},
752
+ * // "customAttributes": [],
753
+ * // "dataSource": "my_dataSource",
754
+ * // "merchantReviewId": "my_merchantReviewId",
755
+ * // "merchantReviewStatus": {},
756
+ * // "name": "my_name"
757
+ * // }
758
+ * },
759
+ * });
760
+ * console.log(res.data);
761
+ *
762
+ * // Example response
763
+ * // {
764
+ * // "attributes": {},
765
+ * // "customAttributes": [],
766
+ * // "dataSource": "my_dataSource",
767
+ * // "merchantReviewId": "my_merchantReviewId",
768
+ * // "merchantReviewStatus": {},
769
+ * // "name": "my_name"
770
+ * // }
771
+ * }
772
+ *
773
+ * main().catch(e => {
774
+ * console.error(e);
775
+ * throw e;
776
+ * });
777
+ *
778
+ * ```
618
779
  *
619
780
  * @param params - Parameters for request
620
781
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
621
782
  * @param callback - Optional callback that handles the response.
622
783
  * @returns A promise if used with async/await, or void if used with a callback.
623
784
  */
624
- insert(params: Params$Resource$Accounts$Merchantreviews$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
625
- insert(params?: Params$Resource$Accounts$Merchantreviews$Insert, options?: MethodOptions): GaxiosPromise<Schema$MerchantReview>;
785
+ insert(params: Params$Resource$Accounts$Merchantreviews$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
786
+ insert(params?: Params$Resource$Accounts$Merchantreviews$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$MerchantReview>>;
626
787
  insert(params: Params$Resource$Accounts$Merchantreviews$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
627
788
  insert(params: Params$Resource$Accounts$Merchantreviews$Insert, options: MethodOptions | BodyResponseCallback<Schema$MerchantReview>, callback: BodyResponseCallback<Schema$MerchantReview>): void;
628
789
  insert(params: Params$Resource$Accounts$Merchantreviews$Insert, callback: BodyResponseCallback<Schema$MerchantReview>): void;
629
790
  insert(callback: BodyResponseCallback<Schema$MerchantReview>): void;
630
791
  /**
631
792
  * Lists merchant reviews.
793
+ * @example
794
+ * ```js
795
+ * // Before running the sample:
796
+ * // - Enable the API at:
797
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
798
+ * // - Login into gcloud by running:
799
+ * // ```sh
800
+ * // $ gcloud auth application-default login
801
+ * // ```
802
+ * // - Install the npm module by running:
803
+ * // ```sh
804
+ * // $ npm install googleapis
805
+ * // ```
806
+ *
807
+ * const {google} = require('googleapis');
808
+ * const merchantapi = google.merchantapi('reviews_v1beta');
809
+ *
810
+ * async function main() {
811
+ * const auth = new google.auth.GoogleAuth({
812
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
813
+ * scopes: ['https://www.googleapis.com/auth/content'],
814
+ * });
815
+ *
816
+ * // Acquire an auth client, and bind it to all future calls
817
+ * const authClient = await auth.getClient();
818
+ * google.options({auth: authClient});
819
+ *
820
+ * // Do the magic
821
+ * const res = await merchantapi.accounts.merchantReviews.list({
822
+ * // Optional. The maximum number of merchant reviews to return. The service can return fewer than this value. The maximum value is 1000; values above 1000 are coerced to 1000. If unspecified, the maximum number of reviews is returned.
823
+ * pageSize: 'placeholder-value',
824
+ * // Optional. A page token, received from a previous `ListMerchantReviews` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMerchantReviews` must match the call that provided the page token.
825
+ * pageToken: 'placeholder-value',
826
+ * // Required. The account to list merchant reviews for. Format: accounts/{account\}
827
+ * parent: 'accounts/my-account',
828
+ * });
829
+ * console.log(res.data);
830
+ *
831
+ * // Example response
832
+ * // {
833
+ * // "merchantReviews": [],
834
+ * // "nextPageToken": "my_nextPageToken"
835
+ * // }
836
+ * }
837
+ *
838
+ * main().catch(e => {
839
+ * console.error(e);
840
+ * throw e;
841
+ * });
842
+ *
843
+ * ```
632
844
  *
633
845
  * @param params - Parameters for request
634
846
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
635
847
  * @param callback - Optional callback that handles the response.
636
848
  * @returns A promise if used with async/await, or void if used with a callback.
637
849
  */
638
- list(params: Params$Resource$Accounts$Merchantreviews$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
639
- list(params?: Params$Resource$Accounts$Merchantreviews$List, options?: MethodOptions): GaxiosPromise<Schema$ListMerchantReviewsResponse>;
850
+ list(params: Params$Resource$Accounts$Merchantreviews$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
851
+ list(params?: Params$Resource$Accounts$Merchantreviews$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListMerchantReviewsResponse>>;
640
852
  list(params: Params$Resource$Accounts$Merchantreviews$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
641
853
  list(params: Params$Resource$Accounts$Merchantreviews$List, options: MethodOptions | BodyResponseCallback<Schema$ListMerchantReviewsResponse>, callback: BodyResponseCallback<Schema$ListMerchantReviewsResponse>): void;
642
854
  list(params: Params$Resource$Accounts$Merchantreviews$List, callback: BodyResponseCallback<Schema$ListMerchantReviewsResponse>): void;
@@ -687,56 +899,268 @@ export declare namespace merchantapi_reviews_v1beta {
687
899
  constructor(context: APIRequestContext);
688
900
  /**
689
901
  * Deletes a product review.
902
+ * @example
903
+ * ```js
904
+ * // Before running the sample:
905
+ * // - Enable the API at:
906
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
907
+ * // - Login into gcloud by running:
908
+ * // ```sh
909
+ * // $ gcloud auth application-default login
910
+ * // ```
911
+ * // - Install the npm module by running:
912
+ * // ```sh
913
+ * // $ npm install googleapis
914
+ * // ```
915
+ *
916
+ * const {google} = require('googleapis');
917
+ * const merchantapi = google.merchantapi('reviews_v1beta');
918
+ *
919
+ * async function main() {
920
+ * const auth = new google.auth.GoogleAuth({
921
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
922
+ * scopes: ['https://www.googleapis.com/auth/content'],
923
+ * });
924
+ *
925
+ * // Acquire an auth client, and bind it to all future calls
926
+ * const authClient = await auth.getClient();
927
+ * google.options({auth: authClient});
928
+ *
929
+ * // Do the magic
930
+ * const res = await merchantapi.accounts.productReviews.delete({
931
+ * // Required. The ID of the Product review. Format: accounts/{account\}/productReviews/{productReview\}
932
+ * name: 'accounts/my-account/productReviews/my-productReview',
933
+ * });
934
+ * console.log(res.data);
935
+ *
936
+ * // Example response
937
+ * // {}
938
+ * }
939
+ *
940
+ * main().catch(e => {
941
+ * console.error(e);
942
+ * throw e;
943
+ * });
944
+ *
945
+ * ```
690
946
  *
691
947
  * @param params - Parameters for request
692
948
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
693
949
  * @param callback - Optional callback that handles the response.
694
950
  * @returns A promise if used with async/await, or void if used with a callback.
695
951
  */
696
- delete(params: Params$Resource$Accounts$Productreviews$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
697
- delete(params?: Params$Resource$Accounts$Productreviews$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
952
+ delete(params: Params$Resource$Accounts$Productreviews$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
953
+ delete(params?: Params$Resource$Accounts$Productreviews$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
698
954
  delete(params: Params$Resource$Accounts$Productreviews$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
699
955
  delete(params: Params$Resource$Accounts$Productreviews$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
700
956
  delete(params: Params$Resource$Accounts$Productreviews$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
701
957
  delete(callback: BodyResponseCallback<Schema$Empty>): void;
702
958
  /**
703
959
  * Gets a product review.
960
+ * @example
961
+ * ```js
962
+ * // Before running the sample:
963
+ * // - Enable the API at:
964
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
965
+ * // - Login into gcloud by running:
966
+ * // ```sh
967
+ * // $ gcloud auth application-default login
968
+ * // ```
969
+ * // - Install the npm module by running:
970
+ * // ```sh
971
+ * // $ npm install googleapis
972
+ * // ```
973
+ *
974
+ * const {google} = require('googleapis');
975
+ * const merchantapi = google.merchantapi('reviews_v1beta');
976
+ *
977
+ * async function main() {
978
+ * const auth = new google.auth.GoogleAuth({
979
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
980
+ * scopes: ['https://www.googleapis.com/auth/content'],
981
+ * });
982
+ *
983
+ * // Acquire an auth client, and bind it to all future calls
984
+ * const authClient = await auth.getClient();
985
+ * google.options({auth: authClient});
986
+ *
987
+ * // Do the magic
988
+ * const res = await merchantapi.accounts.productReviews.get({
989
+ * // Required. The ID of the merchant review. Format: accounts/{account\}/productReviews/{productReview\}
990
+ * name: 'accounts/my-account/productReviews/my-productReview',
991
+ * });
992
+ * console.log(res.data);
993
+ *
994
+ * // Example response
995
+ * // {
996
+ * // "attributes": {},
997
+ * // "customAttributes": [],
998
+ * // "dataSource": "my_dataSource",
999
+ * // "name": "my_name",
1000
+ * // "productReviewId": "my_productReviewId",
1001
+ * // "productReviewStatus": {}
1002
+ * // }
1003
+ * }
1004
+ *
1005
+ * main().catch(e => {
1006
+ * console.error(e);
1007
+ * throw e;
1008
+ * });
1009
+ *
1010
+ * ```
704
1011
  *
705
1012
  * @param params - Parameters for request
706
1013
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
707
1014
  * @param callback - Optional callback that handles the response.
708
1015
  * @returns A promise if used with async/await, or void if used with a callback.
709
1016
  */
710
- get(params: Params$Resource$Accounts$Productreviews$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
711
- get(params?: Params$Resource$Accounts$Productreviews$Get, options?: MethodOptions): GaxiosPromise<Schema$ProductReview>;
1017
+ get(params: Params$Resource$Accounts$Productreviews$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1018
+ get(params?: Params$Resource$Accounts$Productreviews$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ProductReview>>;
712
1019
  get(params: Params$Resource$Accounts$Productreviews$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
713
1020
  get(params: Params$Resource$Accounts$Productreviews$Get, options: MethodOptions | BodyResponseCallback<Schema$ProductReview>, callback: BodyResponseCallback<Schema$ProductReview>): void;
714
1021
  get(params: Params$Resource$Accounts$Productreviews$Get, callback: BodyResponseCallback<Schema$ProductReview>): void;
715
1022
  get(callback: BodyResponseCallback<Schema$ProductReview>): void;
716
1023
  /**
717
1024
  * Inserts a product review.
1025
+ * @example
1026
+ * ```js
1027
+ * // Before running the sample:
1028
+ * // - Enable the API at:
1029
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
1030
+ * // - Login into gcloud by running:
1031
+ * // ```sh
1032
+ * // $ gcloud auth application-default login
1033
+ * // ```
1034
+ * // - Install the npm module by running:
1035
+ * // ```sh
1036
+ * // $ npm install googleapis
1037
+ * // ```
1038
+ *
1039
+ * const {google} = require('googleapis');
1040
+ * const merchantapi = google.merchantapi('reviews_v1beta');
1041
+ *
1042
+ * async function main() {
1043
+ * const auth = new google.auth.GoogleAuth({
1044
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1045
+ * scopes: ['https://www.googleapis.com/auth/content'],
1046
+ * });
1047
+ *
1048
+ * // Acquire an auth client, and bind it to all future calls
1049
+ * const authClient = await auth.getClient();
1050
+ * google.options({auth: authClient});
1051
+ *
1052
+ * // Do the magic
1053
+ * const res = await merchantapi.accounts.productReviews.insert({
1054
+ * // Required. Format: `accounts/{account\}/dataSources/{datasource\}`.
1055
+ * dataSource: 'placeholder-value',
1056
+ * // Required. The account where the product review will be inserted. Format: accounts/{account\}
1057
+ * parent: 'accounts/my-account',
1058
+ *
1059
+ * // Request body metadata
1060
+ * requestBody: {
1061
+ * // request body parameters
1062
+ * // {
1063
+ * // "attributes": {},
1064
+ * // "customAttributes": [],
1065
+ * // "dataSource": "my_dataSource",
1066
+ * // "name": "my_name",
1067
+ * // "productReviewId": "my_productReviewId",
1068
+ * // "productReviewStatus": {}
1069
+ * // }
1070
+ * },
1071
+ * });
1072
+ * console.log(res.data);
1073
+ *
1074
+ * // Example response
1075
+ * // {
1076
+ * // "attributes": {},
1077
+ * // "customAttributes": [],
1078
+ * // "dataSource": "my_dataSource",
1079
+ * // "name": "my_name",
1080
+ * // "productReviewId": "my_productReviewId",
1081
+ * // "productReviewStatus": {}
1082
+ * // }
1083
+ * }
1084
+ *
1085
+ * main().catch(e => {
1086
+ * console.error(e);
1087
+ * throw e;
1088
+ * });
1089
+ *
1090
+ * ```
718
1091
  *
719
1092
  * @param params - Parameters for request
720
1093
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
721
1094
  * @param callback - Optional callback that handles the response.
722
1095
  * @returns A promise if used with async/await, or void if used with a callback.
723
1096
  */
724
- insert(params: Params$Resource$Accounts$Productreviews$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
725
- insert(params?: Params$Resource$Accounts$Productreviews$Insert, options?: MethodOptions): GaxiosPromise<Schema$ProductReview>;
1097
+ insert(params: Params$Resource$Accounts$Productreviews$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1098
+ insert(params?: Params$Resource$Accounts$Productreviews$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ProductReview>>;
726
1099
  insert(params: Params$Resource$Accounts$Productreviews$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
727
1100
  insert(params: Params$Resource$Accounts$Productreviews$Insert, options: MethodOptions | BodyResponseCallback<Schema$ProductReview>, callback: BodyResponseCallback<Schema$ProductReview>): void;
728
1101
  insert(params: Params$Resource$Accounts$Productreviews$Insert, callback: BodyResponseCallback<Schema$ProductReview>): void;
729
1102
  insert(callback: BodyResponseCallback<Schema$ProductReview>): void;
730
1103
  /**
731
1104
  * Lists product reviews.
1105
+ * @example
1106
+ * ```js
1107
+ * // Before running the sample:
1108
+ * // - Enable the API at:
1109
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
1110
+ * // - Login into gcloud by running:
1111
+ * // ```sh
1112
+ * // $ gcloud auth application-default login
1113
+ * // ```
1114
+ * // - Install the npm module by running:
1115
+ * // ```sh
1116
+ * // $ npm install googleapis
1117
+ * // ```
1118
+ *
1119
+ * const {google} = require('googleapis');
1120
+ * const merchantapi = google.merchantapi('reviews_v1beta');
1121
+ *
1122
+ * async function main() {
1123
+ * const auth = new google.auth.GoogleAuth({
1124
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1125
+ * scopes: ['https://www.googleapis.com/auth/content'],
1126
+ * });
1127
+ *
1128
+ * // Acquire an auth client, and bind it to all future calls
1129
+ * const authClient = await auth.getClient();
1130
+ * google.options({auth: authClient});
1131
+ *
1132
+ * // Do the magic
1133
+ * const res = await merchantapi.accounts.productReviews.list({
1134
+ * // Optional. The maximum number of products to return. The service may return fewer than this value.
1135
+ * pageSize: 'placeholder-value',
1136
+ * // Optional. A page token, received from a previous `ListProductReviews` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProductReviews` must match the call that provided the page token.
1137
+ * pageToken: 'placeholder-value',
1138
+ * // Required. The account to list product reviews for. Format: accounts/{account\}
1139
+ * parent: 'accounts/my-account',
1140
+ * });
1141
+ * console.log(res.data);
1142
+ *
1143
+ * // Example response
1144
+ * // {
1145
+ * // "nextPageToken": "my_nextPageToken",
1146
+ * // "productReviews": []
1147
+ * // }
1148
+ * }
1149
+ *
1150
+ * main().catch(e => {
1151
+ * console.error(e);
1152
+ * throw e;
1153
+ * });
1154
+ *
1155
+ * ```
732
1156
  *
733
1157
  * @param params - Parameters for request
734
1158
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
735
1159
  * @param callback - Optional callback that handles the response.
736
1160
  * @returns A promise if used with async/await, or void if used with a callback.
737
1161
  */
738
- list(params: Params$Resource$Accounts$Productreviews$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
739
- list(params?: Params$Resource$Accounts$Productreviews$List, options?: MethodOptions): GaxiosPromise<Schema$ListProductReviewsResponse>;
1162
+ list(params: Params$Resource$Accounts$Productreviews$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1163
+ list(params?: Params$Resource$Accounts$Productreviews$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListProductReviewsResponse>>;
740
1164
  list(params: Params$Resource$Accounts$Productreviews$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
741
1165
  list(params: Params$Resource$Accounts$Productreviews$List, options: MethodOptions | BodyResponseCallback<Schema$ListProductReviewsResponse>, callback: BodyResponseCallback<Schema$ListProductReviewsResponse>): void;
742
1166
  list(params: Params$Resource$Accounts$Productreviews$List, callback: BodyResponseCallback<Schema$ListProductReviewsResponse>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"reviews_v1beta.js","sourceRoot":"","sources":["../reviews_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAA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