@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.
- package/CHANGELOG.md +50 -0
- package/README.md +9 -0
- package/accounts_v1beta.ts +6487 -518
- package/build/accounts_v1beta.d.ts +4773 -229
- package/build/accounts_v1beta.js +560 -12
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +349 -14
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +427 -18
- package/build/datasources_v1beta.js.map +1 -1
- package/build/index.d.ts +11 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/build/inventories_v1beta.d.ts +349 -15
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +1027 -0
- package/build/issueresolution_v1beta.js +196 -0
- package/build/issueresolution_v1beta.js.map +1 -0
- package/build/lfp_v1beta.d.ts +451 -18
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +283 -12
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1beta.d.ts +459 -0
- package/build/ordertracking_v1beta.js +91 -0
- package/build/ordertracking_v1beta.js.map +1 -0
- package/build/products_v1beta.d.ts +358 -55
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +178 -11
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +55 -4
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +61 -4
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +443 -19
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +371 -21
- package/datasources_v1beta.ts +453 -26
- package/index.ts +24 -1
- package/inventories_v1beta.ts +367 -24
- package/issueresolution_v1beta.ts +1426 -0
- package/lfp_v1beta.ts +477 -26
- package/notifications_v1beta.ts +299 -21
- package/ordertracking_v1beta.ts +599 -0
- package/package.json +2 -2
- package/products_v1beta.ts +376 -61
- package/promotions_v1beta.ts +188 -15
- package/quota_v1beta.ts +57 -6
- package/reports_v1beta.ts +65 -5
- package/reviews_v1beta.ts +471 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient,
|
|
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_datasources_v1beta {
|
|
5
5
|
export interface Options extends GlobalOptions {
|
|
@@ -404,7 +404,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
404
404
|
*/
|
|
405
405
|
eventTime?: string | null;
|
|
406
406
|
/**
|
|
407
|
-
* Optional. The product expiration time. This field will not
|
|
407
|
+
* Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event.
|
|
408
408
|
*/
|
|
409
409
|
expirationTime?: string | null;
|
|
410
410
|
/**
|
|
@@ -498,85 +498,441 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
498
498
|
fileUploads: Resource$Accounts$Datasources$Fileuploads;
|
|
499
499
|
constructor(context: APIRequestContext);
|
|
500
500
|
/**
|
|
501
|
-
* Creates the new data source configuration for the given account.
|
|
501
|
+
* Creates the new data source configuration for the given account. This method always creates a new data source.
|
|
502
|
+
* @example
|
|
503
|
+
* ```js
|
|
504
|
+
* // Before running the sample:
|
|
505
|
+
* // - Enable the API at:
|
|
506
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
507
|
+
* // - Login into gcloud by running:
|
|
508
|
+
* // ```sh
|
|
509
|
+
* // $ gcloud auth application-default login
|
|
510
|
+
* // ```
|
|
511
|
+
* // - Install the npm module by running:
|
|
512
|
+
* // ```sh
|
|
513
|
+
* // $ npm install googleapis
|
|
514
|
+
* // ```
|
|
515
|
+
*
|
|
516
|
+
* const {google} = require('googleapis');
|
|
517
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
518
|
+
*
|
|
519
|
+
* async function main() {
|
|
520
|
+
* const auth = new google.auth.GoogleAuth({
|
|
521
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
522
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
523
|
+
* });
|
|
524
|
+
*
|
|
525
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
526
|
+
* const authClient = await auth.getClient();
|
|
527
|
+
* google.options({auth: authClient});
|
|
528
|
+
*
|
|
529
|
+
* // Do the magic
|
|
530
|
+
* const res = await merchantapi.accounts.dataSources.create({
|
|
531
|
+
* // Required. The account where this data source will be created. Format: `accounts/{account\}`
|
|
532
|
+
* parent: 'accounts/my-account',
|
|
533
|
+
*
|
|
534
|
+
* // Request body metadata
|
|
535
|
+
* requestBody: {
|
|
536
|
+
* // request body parameters
|
|
537
|
+
* // {
|
|
538
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
539
|
+
* // "displayName": "my_displayName",
|
|
540
|
+
* // "fileInput": {},
|
|
541
|
+
* // "input": "my_input",
|
|
542
|
+
* // "localInventoryDataSource": {},
|
|
543
|
+
* // "merchantReviewDataSource": {},
|
|
544
|
+
* // "name": "my_name",
|
|
545
|
+
* // "primaryProductDataSource": {},
|
|
546
|
+
* // "productReviewDataSource": {},
|
|
547
|
+
* // "promotionDataSource": {},
|
|
548
|
+
* // "regionalInventoryDataSource": {},
|
|
549
|
+
* // "supplementalProductDataSource": {}
|
|
550
|
+
* // }
|
|
551
|
+
* },
|
|
552
|
+
* });
|
|
553
|
+
* console.log(res.data);
|
|
554
|
+
*
|
|
555
|
+
* // Example response
|
|
556
|
+
* // {
|
|
557
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
558
|
+
* // "displayName": "my_displayName",
|
|
559
|
+
* // "fileInput": {},
|
|
560
|
+
* // "input": "my_input",
|
|
561
|
+
* // "localInventoryDataSource": {},
|
|
562
|
+
* // "merchantReviewDataSource": {},
|
|
563
|
+
* // "name": "my_name",
|
|
564
|
+
* // "primaryProductDataSource": {},
|
|
565
|
+
* // "productReviewDataSource": {},
|
|
566
|
+
* // "promotionDataSource": {},
|
|
567
|
+
* // "regionalInventoryDataSource": {},
|
|
568
|
+
* // "supplementalProductDataSource": {}
|
|
569
|
+
* // }
|
|
570
|
+
* }
|
|
571
|
+
*
|
|
572
|
+
* main().catch(e => {
|
|
573
|
+
* console.error(e);
|
|
574
|
+
* throw e;
|
|
575
|
+
* });
|
|
576
|
+
*
|
|
577
|
+
* ```
|
|
502
578
|
*
|
|
503
579
|
* @param params - Parameters for request
|
|
504
580
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
505
581
|
* @param callback - Optional callback that handles the response.
|
|
506
582
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
507
583
|
*/
|
|
508
|
-
create(params: Params$Resource$Accounts$Datasources$Create, options: StreamMethodOptions):
|
|
509
|
-
create(params?: Params$Resource$Accounts$Datasources$Create, options?: MethodOptions):
|
|
584
|
+
create(params: Params$Resource$Accounts$Datasources$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
585
|
+
create(params?: Params$Resource$Accounts$Datasources$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>;
|
|
510
586
|
create(params: Params$Resource$Accounts$Datasources$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
511
587
|
create(params: Params$Resource$Accounts$Datasources$Create, options: MethodOptions | BodyResponseCallback<Schema$DataSource>, callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
512
588
|
create(params: Params$Resource$Accounts$Datasources$Create, callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
513
589
|
create(callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
514
590
|
/**
|
|
515
591
|
* Deletes a data source from your Merchant Center account.
|
|
592
|
+
* @example
|
|
593
|
+
* ```js
|
|
594
|
+
* // Before running the sample:
|
|
595
|
+
* // - Enable the API at:
|
|
596
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
597
|
+
* // - Login into gcloud by running:
|
|
598
|
+
* // ```sh
|
|
599
|
+
* // $ gcloud auth application-default login
|
|
600
|
+
* // ```
|
|
601
|
+
* // - Install the npm module by running:
|
|
602
|
+
* // ```sh
|
|
603
|
+
* // $ npm install googleapis
|
|
604
|
+
* // ```
|
|
605
|
+
*
|
|
606
|
+
* const {google} = require('googleapis');
|
|
607
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
608
|
+
*
|
|
609
|
+
* async function main() {
|
|
610
|
+
* const auth = new google.auth.GoogleAuth({
|
|
611
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
612
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
613
|
+
* });
|
|
614
|
+
*
|
|
615
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
616
|
+
* const authClient = await auth.getClient();
|
|
617
|
+
* google.options({auth: authClient});
|
|
618
|
+
*
|
|
619
|
+
* // Do the magic
|
|
620
|
+
* const res = await merchantapi.accounts.dataSources.delete({
|
|
621
|
+
* // Required. The name of the data source to delete. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
622
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
623
|
+
* });
|
|
624
|
+
* console.log(res.data);
|
|
625
|
+
*
|
|
626
|
+
* // Example response
|
|
627
|
+
* // {}
|
|
628
|
+
* }
|
|
629
|
+
*
|
|
630
|
+
* main().catch(e => {
|
|
631
|
+
* console.error(e);
|
|
632
|
+
* throw e;
|
|
633
|
+
* });
|
|
634
|
+
*
|
|
635
|
+
* ```
|
|
516
636
|
*
|
|
517
637
|
* @param params - Parameters for request
|
|
518
638
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
519
639
|
* @param callback - Optional callback that handles the response.
|
|
520
640
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
521
641
|
*/
|
|
522
|
-
delete(params: Params$Resource$Accounts$Datasources$Delete, options: StreamMethodOptions):
|
|
523
|
-
delete(params?: Params$Resource$Accounts$Datasources$Delete, options?: MethodOptions):
|
|
642
|
+
delete(params: Params$Resource$Accounts$Datasources$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
643
|
+
delete(params?: Params$Resource$Accounts$Datasources$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
524
644
|
delete(params: Params$Resource$Accounts$Datasources$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
525
645
|
delete(params: Params$Resource$Accounts$Datasources$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
526
646
|
delete(params: Params$Resource$Accounts$Datasources$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
527
647
|
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
528
648
|
/**
|
|
529
649
|
* Performs the data fetch immediately (even outside fetch schedule) on a data source from your Merchant Center Account. If you need to call this method more than once per day, you should use the Products service to update your product data instead. This method only works on data sources with a file input set.
|
|
650
|
+
* @example
|
|
651
|
+
* ```js
|
|
652
|
+
* // Before running the sample:
|
|
653
|
+
* // - Enable the API at:
|
|
654
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
655
|
+
* // - Login into gcloud by running:
|
|
656
|
+
* // ```sh
|
|
657
|
+
* // $ gcloud auth application-default login
|
|
658
|
+
* // ```
|
|
659
|
+
* // - Install the npm module by running:
|
|
660
|
+
* // ```sh
|
|
661
|
+
* // $ npm install googleapis
|
|
662
|
+
* // ```
|
|
663
|
+
*
|
|
664
|
+
* const {google} = require('googleapis');
|
|
665
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
666
|
+
*
|
|
667
|
+
* async function main() {
|
|
668
|
+
* const auth = new google.auth.GoogleAuth({
|
|
669
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
670
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
671
|
+
* });
|
|
672
|
+
*
|
|
673
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
674
|
+
* const authClient = await auth.getClient();
|
|
675
|
+
* google.options({auth: authClient});
|
|
676
|
+
*
|
|
677
|
+
* // Do the magic
|
|
678
|
+
* const res = await merchantapi.accounts.dataSources.fetch({
|
|
679
|
+
* // Required. The name of the data source resource to fetch. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
680
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
681
|
+
*
|
|
682
|
+
* // Request body metadata
|
|
683
|
+
* requestBody: {
|
|
684
|
+
* // request body parameters
|
|
685
|
+
* // {}
|
|
686
|
+
* },
|
|
687
|
+
* });
|
|
688
|
+
* console.log(res.data);
|
|
689
|
+
*
|
|
690
|
+
* // Example response
|
|
691
|
+
* // {}
|
|
692
|
+
* }
|
|
693
|
+
*
|
|
694
|
+
* main().catch(e => {
|
|
695
|
+
* console.error(e);
|
|
696
|
+
* throw e;
|
|
697
|
+
* });
|
|
698
|
+
*
|
|
699
|
+
* ```
|
|
530
700
|
*
|
|
531
701
|
* @param params - Parameters for request
|
|
532
702
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
533
703
|
* @param callback - Optional callback that handles the response.
|
|
534
704
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
535
705
|
*/
|
|
536
|
-
fetch(params: Params$Resource$Accounts$Datasources$Fetch, options: StreamMethodOptions):
|
|
537
|
-
fetch(params?: Params$Resource$Accounts$Datasources$Fetch, options?: MethodOptions):
|
|
706
|
+
fetch(params: Params$Resource$Accounts$Datasources$Fetch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
707
|
+
fetch(params?: Params$Resource$Accounts$Datasources$Fetch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
538
708
|
fetch(params: Params$Resource$Accounts$Datasources$Fetch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
539
709
|
fetch(params: Params$Resource$Accounts$Datasources$Fetch, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
540
710
|
fetch(params: Params$Resource$Accounts$Datasources$Fetch, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
541
711
|
fetch(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
542
712
|
/**
|
|
543
713
|
* Retrieves the data source configuration for the given account.
|
|
714
|
+
* @example
|
|
715
|
+
* ```js
|
|
716
|
+
* // Before running the sample:
|
|
717
|
+
* // - Enable the API at:
|
|
718
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
719
|
+
* // - Login into gcloud by running:
|
|
720
|
+
* // ```sh
|
|
721
|
+
* // $ gcloud auth application-default login
|
|
722
|
+
* // ```
|
|
723
|
+
* // - Install the npm module by running:
|
|
724
|
+
* // ```sh
|
|
725
|
+
* // $ npm install googleapis
|
|
726
|
+
* // ```
|
|
727
|
+
*
|
|
728
|
+
* const {google} = require('googleapis');
|
|
729
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
730
|
+
*
|
|
731
|
+
* async function main() {
|
|
732
|
+
* const auth = new google.auth.GoogleAuth({
|
|
733
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
734
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
735
|
+
* });
|
|
736
|
+
*
|
|
737
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
738
|
+
* const authClient = await auth.getClient();
|
|
739
|
+
* google.options({auth: authClient});
|
|
740
|
+
*
|
|
741
|
+
* // Do the magic
|
|
742
|
+
* const res = await merchantapi.accounts.dataSources.get({
|
|
743
|
+
* // Required. The name of the data source to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
744
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
745
|
+
* });
|
|
746
|
+
* console.log(res.data);
|
|
747
|
+
*
|
|
748
|
+
* // Example response
|
|
749
|
+
* // {
|
|
750
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
751
|
+
* // "displayName": "my_displayName",
|
|
752
|
+
* // "fileInput": {},
|
|
753
|
+
* // "input": "my_input",
|
|
754
|
+
* // "localInventoryDataSource": {},
|
|
755
|
+
* // "merchantReviewDataSource": {},
|
|
756
|
+
* // "name": "my_name",
|
|
757
|
+
* // "primaryProductDataSource": {},
|
|
758
|
+
* // "productReviewDataSource": {},
|
|
759
|
+
* // "promotionDataSource": {},
|
|
760
|
+
* // "regionalInventoryDataSource": {},
|
|
761
|
+
* // "supplementalProductDataSource": {}
|
|
762
|
+
* // }
|
|
763
|
+
* }
|
|
764
|
+
*
|
|
765
|
+
* main().catch(e => {
|
|
766
|
+
* console.error(e);
|
|
767
|
+
* throw e;
|
|
768
|
+
* });
|
|
769
|
+
*
|
|
770
|
+
* ```
|
|
544
771
|
*
|
|
545
772
|
* @param params - Parameters for request
|
|
546
773
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
547
774
|
* @param callback - Optional callback that handles the response.
|
|
548
775
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
549
776
|
*/
|
|
550
|
-
get(params: Params$Resource$Accounts$Datasources$Get, options: StreamMethodOptions):
|
|
551
|
-
get(params?: Params$Resource$Accounts$Datasources$Get, options?: MethodOptions):
|
|
777
|
+
get(params: Params$Resource$Accounts$Datasources$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
778
|
+
get(params?: Params$Resource$Accounts$Datasources$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>;
|
|
552
779
|
get(params: Params$Resource$Accounts$Datasources$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
553
780
|
get(params: Params$Resource$Accounts$Datasources$Get, options: MethodOptions | BodyResponseCallback<Schema$DataSource>, callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
554
781
|
get(params: Params$Resource$Accounts$Datasources$Get, callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
555
782
|
get(callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
556
783
|
/**
|
|
557
784
|
* Lists the configurations for data sources for the given account.
|
|
785
|
+
* @example
|
|
786
|
+
* ```js
|
|
787
|
+
* // Before running the sample:
|
|
788
|
+
* // - Enable the API at:
|
|
789
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
790
|
+
* // - Login into gcloud by running:
|
|
791
|
+
* // ```sh
|
|
792
|
+
* // $ gcloud auth application-default login
|
|
793
|
+
* // ```
|
|
794
|
+
* // - Install the npm module by running:
|
|
795
|
+
* // ```sh
|
|
796
|
+
* // $ npm install googleapis
|
|
797
|
+
* // ```
|
|
798
|
+
*
|
|
799
|
+
* const {google} = require('googleapis');
|
|
800
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
801
|
+
*
|
|
802
|
+
* async function main() {
|
|
803
|
+
* const auth = new google.auth.GoogleAuth({
|
|
804
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
805
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
806
|
+
* });
|
|
807
|
+
*
|
|
808
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
809
|
+
* const authClient = await auth.getClient();
|
|
810
|
+
* google.options({auth: authClient});
|
|
811
|
+
*
|
|
812
|
+
* // Do the magic
|
|
813
|
+
* const res = await merchantapi.accounts.dataSources.list({
|
|
814
|
+
* // Optional. The maximum number of data sources to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the maximum number of data sources will be returned.
|
|
815
|
+
* pageSize: 'placeholder-value',
|
|
816
|
+
* // Optional. A page token, received from a previous `ListDataSources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDataSources` must match the call that provided the page token.
|
|
817
|
+
* pageToken: 'placeholder-value',
|
|
818
|
+
* // Required. The account to list data sources for. Format: `accounts/{account\}`
|
|
819
|
+
* parent: 'accounts/my-account',
|
|
820
|
+
* });
|
|
821
|
+
* console.log(res.data);
|
|
822
|
+
*
|
|
823
|
+
* // Example response
|
|
824
|
+
* // {
|
|
825
|
+
* // "dataSources": [],
|
|
826
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
827
|
+
* // }
|
|
828
|
+
* }
|
|
829
|
+
*
|
|
830
|
+
* main().catch(e => {
|
|
831
|
+
* console.error(e);
|
|
832
|
+
* throw e;
|
|
833
|
+
* });
|
|
834
|
+
*
|
|
835
|
+
* ```
|
|
558
836
|
*
|
|
559
837
|
* @param params - Parameters for request
|
|
560
838
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
561
839
|
* @param callback - Optional callback that handles the response.
|
|
562
840
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
563
841
|
*/
|
|
564
|
-
list(params: Params$Resource$Accounts$Datasources$List, options: StreamMethodOptions):
|
|
565
|
-
list(params?: Params$Resource$Accounts$Datasources$List, options?: MethodOptions):
|
|
842
|
+
list(params: Params$Resource$Accounts$Datasources$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
843
|
+
list(params?: Params$Resource$Accounts$Datasources$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListDataSourcesResponse>>;
|
|
566
844
|
list(params: Params$Resource$Accounts$Datasources$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
567
845
|
list(params: Params$Resource$Accounts$Datasources$List, options: MethodOptions | BodyResponseCallback<Schema$ListDataSourcesResponse>, callback: BodyResponseCallback<Schema$ListDataSourcesResponse>): void;
|
|
568
846
|
list(params: Params$Resource$Accounts$Datasources$List, callback: BodyResponseCallback<Schema$ListDataSourcesResponse>): void;
|
|
569
847
|
list(callback: BodyResponseCallback<Schema$ListDataSourcesResponse>): void;
|
|
570
848
|
/**
|
|
571
849
|
* Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.
|
|
850
|
+
* @example
|
|
851
|
+
* ```js
|
|
852
|
+
* // Before running the sample:
|
|
853
|
+
* // - Enable the API at:
|
|
854
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
855
|
+
* // - Login into gcloud by running:
|
|
856
|
+
* // ```sh
|
|
857
|
+
* // $ gcloud auth application-default login
|
|
858
|
+
* // ```
|
|
859
|
+
* // - Install the npm module by running:
|
|
860
|
+
* // ```sh
|
|
861
|
+
* // $ npm install googleapis
|
|
862
|
+
* // ```
|
|
863
|
+
*
|
|
864
|
+
* const {google} = require('googleapis');
|
|
865
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
866
|
+
*
|
|
867
|
+
* async function main() {
|
|
868
|
+
* const auth = new google.auth.GoogleAuth({
|
|
869
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
870
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
871
|
+
* });
|
|
872
|
+
*
|
|
873
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
874
|
+
* const authClient = await auth.getClient();
|
|
875
|
+
* google.options({auth: authClient});
|
|
876
|
+
*
|
|
877
|
+
* // Do the magic
|
|
878
|
+
* const res = await merchantapi.accounts.dataSources.patch({
|
|
879
|
+
* // Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
880
|
+
* name: 'accounts/my-account/dataSources/my-dataSource',
|
|
881
|
+
* // Required. The list of data source fields to be updated. Fields specified in the update mask without a value specified in the body will be deleted from the data source. Providing special "*" value for full data source replacement is not supported. For example, If you insert `updateMask=displayName` in the request, it will only update the `displayName` leaving all other fields untouched.
|
|
882
|
+
* updateMask: 'placeholder-value',
|
|
883
|
+
*
|
|
884
|
+
* // Request body metadata
|
|
885
|
+
* requestBody: {
|
|
886
|
+
* // request body parameters
|
|
887
|
+
* // {
|
|
888
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
889
|
+
* // "displayName": "my_displayName",
|
|
890
|
+
* // "fileInput": {},
|
|
891
|
+
* // "input": "my_input",
|
|
892
|
+
* // "localInventoryDataSource": {},
|
|
893
|
+
* // "merchantReviewDataSource": {},
|
|
894
|
+
* // "name": "my_name",
|
|
895
|
+
* // "primaryProductDataSource": {},
|
|
896
|
+
* // "productReviewDataSource": {},
|
|
897
|
+
* // "promotionDataSource": {},
|
|
898
|
+
* // "regionalInventoryDataSource": {},
|
|
899
|
+
* // "supplementalProductDataSource": {}
|
|
900
|
+
* // }
|
|
901
|
+
* },
|
|
902
|
+
* });
|
|
903
|
+
* console.log(res.data);
|
|
904
|
+
*
|
|
905
|
+
* // Example response
|
|
906
|
+
* // {
|
|
907
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
908
|
+
* // "displayName": "my_displayName",
|
|
909
|
+
* // "fileInput": {},
|
|
910
|
+
* // "input": "my_input",
|
|
911
|
+
* // "localInventoryDataSource": {},
|
|
912
|
+
* // "merchantReviewDataSource": {},
|
|
913
|
+
* // "name": "my_name",
|
|
914
|
+
* // "primaryProductDataSource": {},
|
|
915
|
+
* // "productReviewDataSource": {},
|
|
916
|
+
* // "promotionDataSource": {},
|
|
917
|
+
* // "regionalInventoryDataSource": {},
|
|
918
|
+
* // "supplementalProductDataSource": {}
|
|
919
|
+
* // }
|
|
920
|
+
* }
|
|
921
|
+
*
|
|
922
|
+
* main().catch(e => {
|
|
923
|
+
* console.error(e);
|
|
924
|
+
* throw e;
|
|
925
|
+
* });
|
|
926
|
+
*
|
|
927
|
+
* ```
|
|
572
928
|
*
|
|
573
929
|
* @param params - Parameters for request
|
|
574
930
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
575
931
|
* @param callback - Optional callback that handles the response.
|
|
576
932
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
577
933
|
*/
|
|
578
|
-
patch(params: Params$Resource$Accounts$Datasources$Patch, options: StreamMethodOptions):
|
|
579
|
-
patch(params?: Params$Resource$Accounts$Datasources$Patch, options?: MethodOptions):
|
|
934
|
+
patch(params: Params$Resource$Accounts$Datasources$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
935
|
+
patch(params?: Params$Resource$Accounts$Datasources$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>;
|
|
580
936
|
patch(params: Params$Resource$Accounts$Datasources$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
581
937
|
patch(params: Params$Resource$Accounts$Datasources$Patch, options: MethodOptions | BodyResponseCallback<Schema$DataSource>, callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
582
938
|
patch(params: Params$Resource$Accounts$Datasources$Patch, callback: BodyResponseCallback<Schema$DataSource>): void;
|
|
@@ -634,7 +990,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
634
990
|
*/
|
|
635
991
|
name?: string;
|
|
636
992
|
/**
|
|
637
|
-
* Required. The list of data source fields to be updated. Fields specified in the update mask without a value specified in the body will be deleted from the data source. Providing special "*" value for full data source replacement is not supported.
|
|
993
|
+
* Required. The list of data source fields to be updated. Fields specified in the update mask without a value specified in the body will be deleted from the data source. Providing special "*" value for full data source replacement is not supported. For example, If you insert `updateMask=displayName` in the request, it will only update the `displayName` leaving all other fields untouched.
|
|
638
994
|
*/
|
|
639
995
|
updateMask?: string;
|
|
640
996
|
/**
|
|
@@ -647,14 +1003,67 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
647
1003
|
constructor(context: APIRequestContext);
|
|
648
1004
|
/**
|
|
649
1005
|
* Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.
|
|
1006
|
+
* @example
|
|
1007
|
+
* ```js
|
|
1008
|
+
* // Before running the sample:
|
|
1009
|
+
* // - Enable the API at:
|
|
1010
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
1011
|
+
* // - Login into gcloud by running:
|
|
1012
|
+
* // ```sh
|
|
1013
|
+
* // $ gcloud auth application-default login
|
|
1014
|
+
* // ```
|
|
1015
|
+
* // - Install the npm module by running:
|
|
1016
|
+
* // ```sh
|
|
1017
|
+
* // $ npm install googleapis
|
|
1018
|
+
* // ```
|
|
1019
|
+
*
|
|
1020
|
+
* const {google} = require('googleapis');
|
|
1021
|
+
* const merchantapi = google.merchantapi('datasources_v1beta');
|
|
1022
|
+
*
|
|
1023
|
+
* async function main() {
|
|
1024
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1025
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1026
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
1027
|
+
* });
|
|
1028
|
+
*
|
|
1029
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1030
|
+
* const authClient = await auth.getClient();
|
|
1031
|
+
* google.options({auth: authClient});
|
|
1032
|
+
*
|
|
1033
|
+
* // Do the magic
|
|
1034
|
+
* const res = await merchantapi.accounts.dataSources.fileUploads.get({
|
|
1035
|
+
* // Required. The name of the data source file upload to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}/fileUploads/latest`
|
|
1036
|
+
* name: 'accounts/my-account/dataSources/my-dataSource/fileUploads/my-fileUpload',
|
|
1037
|
+
* });
|
|
1038
|
+
* console.log(res.data);
|
|
1039
|
+
*
|
|
1040
|
+
* // Example response
|
|
1041
|
+
* // {
|
|
1042
|
+
* // "dataSourceId": "my_dataSourceId",
|
|
1043
|
+
* // "issues": [],
|
|
1044
|
+
* // "itemsCreated": "my_itemsCreated",
|
|
1045
|
+
* // "itemsTotal": "my_itemsTotal",
|
|
1046
|
+
* // "itemsUpdated": "my_itemsUpdated",
|
|
1047
|
+
* // "name": "my_name",
|
|
1048
|
+
* // "processingState": "my_processingState",
|
|
1049
|
+
* // "uploadTime": "my_uploadTime"
|
|
1050
|
+
* // }
|
|
1051
|
+
* }
|
|
1052
|
+
*
|
|
1053
|
+
* main().catch(e => {
|
|
1054
|
+
* console.error(e);
|
|
1055
|
+
* throw e;
|
|
1056
|
+
* });
|
|
1057
|
+
*
|
|
1058
|
+
* ```
|
|
650
1059
|
*
|
|
651
1060
|
* @param params - Parameters for request
|
|
652
1061
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
653
1062
|
* @param callback - Optional callback that handles the response.
|
|
654
1063
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
655
1064
|
*/
|
|
656
|
-
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, options: StreamMethodOptions):
|
|
657
|
-
get(params?: Params$Resource$Accounts$Datasources$Fileuploads$Get, options?: MethodOptions):
|
|
1065
|
+
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1066
|
+
get(params?: Params$Resource$Accounts$Datasources$Fileuploads$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FileUpload>>;
|
|
658
1067
|
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
659
1068
|
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, options: MethodOptions | BodyResponseCallback<Schema$FileUpload>, callback: BodyResponseCallback<Schema$FileUpload>): void;
|
|
660
1069
|
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, callback: BodyResponseCallback<Schema$FileUpload>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasources_v1beta.js","sourceRoot":"","sources":["../datasources_v1beta.ts"],"names":[],"mappings":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;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAoB,UAAU,CAAC,CAAC;aACxD;QACH,CAAC;KACF;IArJY,wEAAyC,4CAqJrD,CAAA;AASH,CAAC,EArnDgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAqnD9C"}
|
package/build/index.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ import { merchantapi_accounts_v1beta } from './accounts_v1beta';
|
|
|
4
4
|
import { merchantapi_conversions_v1beta } from './conversions_v1beta';
|
|
5
5
|
import { merchantapi_datasources_v1beta } from './datasources_v1beta';
|
|
6
6
|
import { merchantapi_inventories_v1beta } from './inventories_v1beta';
|
|
7
|
+
import { merchantapi_issueresolution_v1beta } from './issueresolution_v1beta';
|
|
7
8
|
import { merchantapi_lfp_v1beta } from './lfp_v1beta';
|
|
8
9
|
import { merchantapi_notifications_v1beta } from './notifications_v1beta';
|
|
10
|
+
import { merchantapi_ordertracking_v1beta } from './ordertracking_v1beta';
|
|
9
11
|
import { merchantapi_products_v1beta } from './products_v1beta';
|
|
10
12
|
import { merchantapi_promotions_v1beta } from './promotions_v1beta';
|
|
11
13
|
import { merchantapi_quota_v1beta } from './quota_v1beta';
|
|
@@ -16,8 +18,10 @@ export declare const VERSIONS: {
|
|
|
16
18
|
conversions_v1beta: typeof merchantapi_conversions_v1beta.Merchantapi;
|
|
17
19
|
datasources_v1beta: typeof merchantapi_datasources_v1beta.Merchantapi;
|
|
18
20
|
inventories_v1beta: typeof merchantapi_inventories_v1beta.Merchantapi;
|
|
21
|
+
issueresolution_v1beta: typeof merchantapi_issueresolution_v1beta.Merchantapi;
|
|
19
22
|
lfp_v1beta: typeof merchantapi_lfp_v1beta.Merchantapi;
|
|
20
23
|
notifications_v1beta: typeof merchantapi_notifications_v1beta.Merchantapi;
|
|
24
|
+
ordertracking_v1beta: typeof merchantapi_ordertracking_v1beta.Merchantapi;
|
|
21
25
|
products_v1beta: typeof merchantapi_products_v1beta.Merchantapi;
|
|
22
26
|
promotions_v1beta: typeof merchantapi_promotions_v1beta.Merchantapi;
|
|
23
27
|
quota_v1beta: typeof merchantapi_quota_v1beta.Merchantapi;
|
|
@@ -32,10 +36,14 @@ export declare function merchantapi(version: 'datasources_v1beta'): merchantapi_
|
|
|
32
36
|
export declare function merchantapi(options: merchantapi_datasources_v1beta.Options): merchantapi_datasources_v1beta.Merchantapi;
|
|
33
37
|
export declare function merchantapi(version: 'inventories_v1beta'): merchantapi_inventories_v1beta.Merchantapi;
|
|
34
38
|
export declare function merchantapi(options: merchantapi_inventories_v1beta.Options): merchantapi_inventories_v1beta.Merchantapi;
|
|
39
|
+
export declare function merchantapi(version: 'issueresolution_v1beta'): merchantapi_issueresolution_v1beta.Merchantapi;
|
|
40
|
+
export declare function merchantapi(options: merchantapi_issueresolution_v1beta.Options): merchantapi_issueresolution_v1beta.Merchantapi;
|
|
35
41
|
export declare function merchantapi(version: 'lfp_v1beta'): merchantapi_lfp_v1beta.Merchantapi;
|
|
36
42
|
export declare function merchantapi(options: merchantapi_lfp_v1beta.Options): merchantapi_lfp_v1beta.Merchantapi;
|
|
37
43
|
export declare function merchantapi(version: 'notifications_v1beta'): merchantapi_notifications_v1beta.Merchantapi;
|
|
38
44
|
export declare function merchantapi(options: merchantapi_notifications_v1beta.Options): merchantapi_notifications_v1beta.Merchantapi;
|
|
45
|
+
export declare function merchantapi(version: 'ordertracking_v1beta'): merchantapi_ordertracking_v1beta.Merchantapi;
|
|
46
|
+
export declare function merchantapi(options: merchantapi_ordertracking_v1beta.Options): merchantapi_ordertracking_v1beta.Merchantapi;
|
|
39
47
|
export declare function merchantapi(version: 'products_v1beta'): merchantapi_products_v1beta.Merchantapi;
|
|
40
48
|
export declare function merchantapi(options: merchantapi_products_v1beta.Options): merchantapi_products_v1beta.Merchantapi;
|
|
41
49
|
export declare function merchantapi(version: 'promotions_v1beta'): merchantapi_promotions_v1beta.Merchantapi;
|
|
@@ -52,11 +60,13 @@ export { merchantapi_accounts_v1beta };
|
|
|
52
60
|
export { merchantapi_conversions_v1beta };
|
|
53
61
|
export { merchantapi_datasources_v1beta };
|
|
54
62
|
export { merchantapi_inventories_v1beta };
|
|
63
|
+
export { merchantapi_issueresolution_v1beta };
|
|
55
64
|
export { merchantapi_lfp_v1beta };
|
|
56
65
|
export { merchantapi_notifications_v1beta };
|
|
66
|
+
export { merchantapi_ordertracking_v1beta };
|
|
57
67
|
export { merchantapi_products_v1beta };
|
|
58
68
|
export { merchantapi_promotions_v1beta };
|
|
59
69
|
export { merchantapi_quota_v1beta };
|
|
60
70
|
export { merchantapi_reports_v1beta };
|
|
61
71
|
export { merchantapi_reviews_v1beta };
|
|
62
|
-
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions,
|
|
72
|
+
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|