@google-shopping/reports 0.12.0 → 0.13.1
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/README.md +28 -46
- package/build/protos/protos.json +8 -1
- package/build/src/index.d.ts +3 -3
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/v1/gapic_metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
|
|
2
|
-
[//]: # "
|
|
2
|
+
[//]: # "The comments you see below are used to generate those parts of the template in later states."
|
|
3
3
|
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
|
|
4
4
|
|
|
5
|
-
# [Merchant API:
|
|
6
|
-
|
|
7
|
-
[](https://cloud.google.com/terms/launch-stages)
|
|
8
|
-
[](https://www.npmjs.org/package/@google-shopping/reports)
|
|
9
|
-
|
|
5
|
+
# [Merchant API: Nodejs Client][homepage]
|
|
10
6
|
|
|
7
|
+
This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
|
|
8
|
+
unless absolutely necessary (e.g. because of critical security issues) or with
|
|
9
|
+
an extensive deprecation period. Issues and requests against **stable** libraries
|
|
10
|
+
are addressed with the highest priority
|
|
11
11
|
|
|
12
|
+
[](https://www.npmjs.org/package/@google-shopping/reports)
|
|
12
13
|
|
|
13
14
|
Merchant API client for Node.js
|
|
14
15
|
|
|
16
|
+
[//]: # "partials.introduction"
|
|
15
17
|
|
|
16
18
|
A comprehensive list of changes in each version may be found in
|
|
17
|
-
[the CHANGELOG]
|
|
19
|
+
[the CHANGELOG][homepage_changelog].
|
|
18
20
|
|
|
19
|
-
* [Merchant API
|
|
20
|
-
* [Merchant API Documentation]
|
|
21
|
-
* [github.com/googleapis/google-cloud-node/packages/google-shopping-merchant-reports](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-reports)
|
|
21
|
+
* [Merchant API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/reports/latest)
|
|
22
|
+
* [Merchant API Documentation](https://developers.google.com/merchant/api)
|
|
22
23
|
|
|
23
24
|
Read more about the client libraries for Cloud APIs, including the older
|
|
24
25
|
Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
@@ -27,18 +28,15 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
27
28
|
|
|
28
29
|
**Table of contents:**
|
|
29
30
|
|
|
30
|
-
|
|
31
31
|
* [Quickstart](#quickstart)
|
|
32
32
|
* [Before you begin](#before-you-begin)
|
|
33
33
|
* [Installing the client library](#installing-the-client-library)
|
|
34
34
|
|
|
35
|
-
* [Samples](#samples)
|
|
36
35
|
* [Versioning](#versioning)
|
|
37
36
|
* [Contributing](#contributing)
|
|
38
37
|
* [License](#license)
|
|
39
38
|
|
|
40
39
|
## Quickstart
|
|
41
|
-
|
|
42
40
|
### Before you begin
|
|
43
41
|
|
|
44
42
|
1. [Select or create a Cloud Platform project][projects].
|
|
@@ -46,32 +44,28 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
46
44
|
1. [Enable the Merchant API API][enable_api].
|
|
47
45
|
1. [Set up authentication][auth] so you can access the
|
|
48
46
|
API from your local workstation.
|
|
49
|
-
|
|
50
47
|
### Installing the client library
|
|
51
48
|
|
|
52
49
|
```bash
|
|
53
50
|
npm install @google-shopping/reports
|
|
54
51
|
```
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
[//]: # "partials.body"
|
|
58
54
|
|
|
59
55
|
## Samples
|
|
60
56
|
|
|
61
|
-
Samples are in the [`samples/`]
|
|
62
|
-
|
|
63
|
-
| Sample | Source Code | Try it |
|
|
64
|
-
| --------------------------- | --------------------------------- | ------ |
|
|
65
|
-
| Report_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1/report_service.search.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-reports/samples/generated/v1/report_service.search.js,packages/google-shopping-merchant-reports/samples/README.md) |
|
|
66
|
-
| Report_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1alpha/report_service.search.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-reports/samples/generated/v1alpha/report_service.search.js,packages/google-shopping-merchant-reports/samples/README.md) |
|
|
67
|
-
| Report_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1beta/report_service.search.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-reports/samples/generated/v1beta/report_service.search.js,packages/google-shopping-merchant-reports/samples/README.md) |
|
|
68
|
-
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-reports/samples/quickstart.js,packages/google-shopping-merchant-reports/samples/README.md) |
|
|
57
|
+
Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
|
|
69
58
|
|
|
59
|
+
| Sample | Source Code |
|
|
60
|
+
| --------------------------- | --------------------------------- |
|
|
61
|
+
| search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1/report_service.search.js) |
|
|
62
|
+
| shopping | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1/snippet_metadata_google.shopping.merchant.reports.v1.json) |
|
|
63
|
+
| search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1alpha/report_service.search.js) |
|
|
64
|
+
| shopping | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1alpha/snippet_metadata_google.shopping.merchant.reports.v1alpha.json) |
|
|
65
|
+
| search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1beta/report_service.search.js) |
|
|
66
|
+
| shopping | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reports.v1beta.json) |
|
|
70
67
|
|
|
71
68
|
|
|
72
|
-
The [Merchant API Node.js Client API Reference][client-docs] documentation
|
|
73
|
-
also contains samples.
|
|
74
|
-
|
|
75
69
|
## Supported Node.js Versions
|
|
76
70
|
|
|
77
71
|
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
|
|
@@ -97,41 +91,29 @@ for versions compatible with Node.js 8.
|
|
|
97
91
|
|
|
98
92
|
This library follows [Semantic Versioning](http://semver.org/).
|
|
99
93
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
This library is considered to be in **preview**. This means it is still a
|
|
107
|
-
work-in-progress and under active development. Any release is subject to
|
|
108
|
-
backwards-incompatible changes at any time.
|
|
109
|
-
|
|
110
|
-
|
|
111
94
|
More Information: [Google Cloud Platform Launch Stages][launch_stages]
|
|
112
95
|
|
|
113
96
|
[launch_stages]: https://cloud.google.com/terms/launch-stages
|
|
114
97
|
|
|
115
98
|
## Contributing
|
|
116
99
|
|
|
117
|
-
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
|
|
100
|
+
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/CONTRIBUTING.md).
|
|
118
101
|
|
|
119
|
-
Please note that this `README.md
|
|
102
|
+
Please note that this `README.md`
|
|
120
103
|
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
|
|
121
|
-
are generated from a central template.
|
|
122
|
-
to its templates in
|
|
123
|
-
[directory](https://github.com/googleapis/synthtool).
|
|
104
|
+
are generated from a central template.
|
|
124
105
|
|
|
125
106
|
## License
|
|
126
107
|
|
|
127
108
|
Apache Version 2.0
|
|
128
109
|
|
|
129
|
-
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
|
|
110
|
+
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/LICENSE)
|
|
130
111
|
|
|
131
|
-
[client-docs]: https://cloud.google.com/nodejs/docs/reference/merchantapi/latest
|
|
132
|
-
[product-docs]: https://developers.google.com/merchant/api
|
|
133
112
|
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
|
|
134
113
|
[projects]: https://console.cloud.google.com/project
|
|
135
114
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
136
115
|
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=merchantapi.googleapis.com
|
|
137
116
|
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
|
|
117
|
+
[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/samples
|
|
118
|
+
[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports/CHANGELOG.md
|
|
119
|
+
[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-reports
|
package/build/protos/protos.json
CHANGED
package/build/src/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as v1 from './v1';
|
|
2
2
|
import * as v1alpha from './v1alpha';
|
|
3
3
|
import * as v1beta from './v1beta';
|
|
4
|
-
declare const ReportServiceClient: typeof
|
|
5
|
-
type ReportServiceClient =
|
|
4
|
+
declare const ReportServiceClient: typeof v1.ReportServiceClient;
|
|
5
|
+
type ReportServiceClient = v1.ReportServiceClient;
|
|
6
6
|
export { v1, v1alpha, v1beta, ReportServiceClient };
|
|
7
7
|
declare const _default: {
|
|
8
8
|
v1: typeof v1;
|
|
9
9
|
v1alpha: typeof v1alpha;
|
|
10
10
|
v1beta: typeof v1beta;
|
|
11
|
-
ReportServiceClient: typeof
|
|
11
|
+
ReportServiceClient: typeof v1.ReportServiceClient;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
14
14
|
import * as protos from '../protos/protos';
|
package/build/src/index.js
CHANGED
|
@@ -24,7 +24,7 @@ const v1alpha = require("./v1alpha");
|
|
|
24
24
|
exports.v1alpha = v1alpha;
|
|
25
25
|
const v1beta = require("./v1beta");
|
|
26
26
|
exports.v1beta = v1beta;
|
|
27
|
-
const ReportServiceClient =
|
|
27
|
+
const ReportServiceClient = v1.ReportServiceClient;
|
|
28
28
|
exports.ReportServiceClient = ReportServiceClient;
|
|
29
29
|
exports.default = { v1, v1alpha, v1beta, ReportServiceClient };
|
|
30
30
|
const protos = require("../protos/protos");
|
package/build/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,2DAA2D;AAC3D,gDAAgD;AAChD,qDAAqD;;;AAErD,2BAA2B;AAOnB,gBAAE;AANV,qCAAqC;AAMzB,0BAAO;AALnB,mCAAmC;AAKd,wBAAM;AAH3B,MAAM,mBAAmB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,2DAA2D;AAC3D,gDAAgD;AAChD,qDAAqD;;;AAErD,2BAA2B;AAOnB,gBAAE;AANV,qCAAqC;AAMzB,0BAAO;AALnB,mCAAmC;AAKd,wBAAM;AAH3B,MAAM,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,CAAC;AAGtB,kDAAmB;AAChD,kBAAe,EAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAC,CAAC;AAC1D,2CAA2C;AACnC,wBAAM"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
|
|
4
4
|
"language": "typescript",
|
|
5
5
|
"protoPackage": "google.shopping.merchant.reports.v1",
|
|
6
|
-
"libraryPackage": "@google-
|
|
6
|
+
"libraryPackage": "@google-shopping/reports",
|
|
7
7
|
"services": {
|
|
8
8
|
"ReportService": {
|
|
9
9
|
"clients": {
|