@google-shopping/reports 0.9.0 → 0.10.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/README.md +1 -0
- package/build/protos/google/shopping/merchant/reports/v1alpha/reports.proto +1398 -0
- package/build/protos/protos.d.ts +4274 -22
- package/build/protos/protos.js +15436 -932
- package/build/protos/protos.json +2687 -22
- package/build/src/index.d.ts +3 -1
- package/build/src/index.js +4 -2
- package/build/src/index.js.map +1 -1
- package/build/src/v1alpha/gapic_metadata.json +37 -0
- package/build/src/v1alpha/index.d.ts +1 -0
- package/build/src/v1alpha/index.js +23 -0
- package/build/src/v1alpha/index.js.map +1 -0
- package/build/src/v1alpha/report_service_client.d.ts +235 -0
- package/build/src/v1alpha/report_service_client.js +420 -0
- package/build/src/v1alpha/report_service_client.js.map +1 -0
- package/build/src/v1alpha/report_service_client_config.json +43 -0
- package/build/src/v1alpha/report_service_proto_list.json +4 -0
- package/build/src/v1beta/report_service_client.d.ts +35 -35
- package/build/src/v1beta/report_service_client.js +31 -46
- package/build/src/v1beta/report_service_client.js.map +1 -1
- package/package.json +4 -4
- package/CHANGELOG.md +0 -81
@@ -0,0 +1,420 @@
|
|
1
|
+
"use strict";
|
2
|
+
// Copyright 2025 Google LLC
|
3
|
+
//
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
// you may not use this file except in compliance with the License.
|
6
|
+
// You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// https://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
// See the License for the specific language governing permissions and
|
14
|
+
// limitations under the License.
|
15
|
+
//
|
16
|
+
// ** This file is automatically generated by gapic-generator-typescript. **
|
17
|
+
// ** https://github.com/googleapis/gapic-generator-typescript **
|
18
|
+
// ** All changes to this file may be overwritten. **
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
+
exports.ReportServiceClient = void 0;
|
21
|
+
const jsonProtos = require("../../protos/protos.json");
|
22
|
+
const google_gax_1 = require("google-gax");
|
23
|
+
/**
|
24
|
+
* Client JSON configuration object, loaded from
|
25
|
+
* `src/v1alpha/report_service_client_config.json`.
|
26
|
+
* This file defines retry strategy and timeouts for all API methods in this library.
|
27
|
+
*/
|
28
|
+
const gapicConfig = require("./report_service_client_config.json");
|
29
|
+
const version = require('../../../package.json').version;
|
30
|
+
/**
|
31
|
+
* Service for retrieving reports and insights about your products, their
|
32
|
+
* performance, and their competitive environment on Google.
|
33
|
+
* @class
|
34
|
+
* @memberof v1alpha
|
35
|
+
*/
|
36
|
+
class ReportServiceClient {
|
37
|
+
_terminated = false;
|
38
|
+
_opts;
|
39
|
+
_providedCustomServicePath;
|
40
|
+
_gaxModule;
|
41
|
+
_gaxGrpc;
|
42
|
+
_protos;
|
43
|
+
_defaults;
|
44
|
+
_universeDomain;
|
45
|
+
_servicePath;
|
46
|
+
_log = google_gax_1.loggingUtils.log('reports');
|
47
|
+
auth;
|
48
|
+
descriptors = {
|
49
|
+
page: {},
|
50
|
+
stream: {},
|
51
|
+
longrunning: {},
|
52
|
+
batching: {},
|
53
|
+
};
|
54
|
+
warn;
|
55
|
+
innerApiCalls;
|
56
|
+
reportServiceStub;
|
57
|
+
/**
|
58
|
+
* Construct an instance of ReportServiceClient.
|
59
|
+
*
|
60
|
+
* @param {object} [options] - The configuration object.
|
61
|
+
* The options accepted by the constructor are described in detail
|
62
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
63
|
+
* The common options are:
|
64
|
+
* @param {object} [options.credentials] - Credentials object.
|
65
|
+
* @param {string} [options.credentials.client_email]
|
66
|
+
* @param {string} [options.credentials.private_key]
|
67
|
+
* @param {string} [options.email] - Account email address. Required when
|
68
|
+
* using a .pem or .p12 keyFilename.
|
69
|
+
* @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
|
70
|
+
* .p12 key downloaded from the Google Developers Console. If you provide
|
71
|
+
* a path to a JSON file, the projectId option below is not necessary.
|
72
|
+
* NOTE: .pem and .p12 require you to specify options.email as well.
|
73
|
+
* @param {number} [options.port] - The port on which to connect to
|
74
|
+
* the remote host.
|
75
|
+
* @param {string} [options.projectId] - The project ID from the Google
|
76
|
+
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
77
|
+
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
78
|
+
* app is running in an environment which supports
|
79
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
80
|
+
* your project ID will be detected automatically.
|
81
|
+
* @param {string} [options.apiEndpoint] - The domain name of the
|
82
|
+
* API remote host.
|
83
|
+
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
84
|
+
* Follows the structure of {@link gapicConfig}.
|
85
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
86
|
+
* For more information, please check the
|
87
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
88
|
+
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
89
|
+
* need to avoid loading the default gRPC version and want to use the fallback
|
90
|
+
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
91
|
+
* ```
|
92
|
+
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
93
|
+
* const client = new ReportServiceClient({fallback: true}, gax);
|
94
|
+
* ```
|
95
|
+
*/
|
96
|
+
constructor(opts, gaxInstance) {
|
97
|
+
// Ensure that options include all the required fields.
|
98
|
+
const staticMembers = this.constructor;
|
99
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
100
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
101
|
+
}
|
102
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
103
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
104
|
+
this._servicePath = 'merchantapi.' + this._universeDomain;
|
105
|
+
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
106
|
+
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
107
|
+
const port = opts?.port || staticMembers.port;
|
108
|
+
const clientConfig = opts?.clientConfig ?? {};
|
109
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
110
|
+
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
111
|
+
// Request numeric enum values if REST transport is used.
|
112
|
+
opts.numericEnums = true;
|
113
|
+
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
114
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
115
|
+
opts['scopes'] = staticMembers.scopes;
|
116
|
+
}
|
117
|
+
// Load google-gax module synchronously if needed
|
118
|
+
if (!gaxInstance) {
|
119
|
+
gaxInstance = require('google-gax');
|
120
|
+
}
|
121
|
+
// Choose either gRPC or proto-over-HTTP implementation of google-gax.
|
122
|
+
this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
|
123
|
+
// Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
|
124
|
+
this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
|
125
|
+
// Save options to use in initialize() method.
|
126
|
+
this._opts = opts;
|
127
|
+
// Save the auth object to the client, for use by other methods.
|
128
|
+
this.auth = this._gaxGrpc.auth;
|
129
|
+
// Set useJWTAccessWithScope on the auth object.
|
130
|
+
this.auth.useJWTAccessWithScope = true;
|
131
|
+
// Set defaultServicePath on the auth object.
|
132
|
+
this.auth.defaultServicePath = this._servicePath;
|
133
|
+
// Set the default scopes in auth client if needed.
|
134
|
+
if (servicePath === this._servicePath) {
|
135
|
+
this.auth.defaultScopes = staticMembers.scopes;
|
136
|
+
}
|
137
|
+
// Determine the client header string.
|
138
|
+
const clientHeader = [
|
139
|
+
`gax/${this._gaxModule.version}`,
|
140
|
+
`gapic/${version}`,
|
141
|
+
];
|
142
|
+
if (typeof process === 'object' && 'versions' in process) {
|
143
|
+
clientHeader.push(`gl-node/${process.versions.node}`);
|
144
|
+
}
|
145
|
+
else {
|
146
|
+
clientHeader.push(`gl-web/${this._gaxModule.version}`);
|
147
|
+
}
|
148
|
+
if (!opts.fallback) {
|
149
|
+
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
150
|
+
}
|
151
|
+
else {
|
152
|
+
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
153
|
+
}
|
154
|
+
if (opts.libName && opts.libVersion) {
|
155
|
+
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
|
156
|
+
}
|
157
|
+
// Load the applicable protos.
|
158
|
+
this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
|
159
|
+
// Some of the methods on this service return "paged" results,
|
160
|
+
// (e.g. 50 results at a time, with tokens to get subsequent
|
161
|
+
// pages). Denote the keys used for pagination and results.
|
162
|
+
this.descriptors.page = {
|
163
|
+
search: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'results')
|
164
|
+
};
|
165
|
+
// Put together the default options sent with requests.
|
166
|
+
this._defaults = this._gaxGrpc.constructSettings('google.shopping.merchant.reports.v1alpha.ReportService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
167
|
+
// Set up a dictionary of "inner API calls"; the core implementation
|
168
|
+
// of calling the API is handled in `google-gax`, with this code
|
169
|
+
// merely providing the destination and request information.
|
170
|
+
this.innerApiCalls = {};
|
171
|
+
// Add a warn function to the client constructor so it can be easily tested.
|
172
|
+
this.warn = this._gaxModule.warn;
|
173
|
+
}
|
174
|
+
/**
|
175
|
+
* Initialize the client.
|
176
|
+
* Performs asynchronous operations (such as authentication) and prepares the client.
|
177
|
+
* This function will be called automatically when any class method is called for the
|
178
|
+
* first time, but if you need to initialize it before calling an actual method,
|
179
|
+
* feel free to call initialize() directly.
|
180
|
+
*
|
181
|
+
* You can await on this method if you want to make sure the client is initialized.
|
182
|
+
*
|
183
|
+
* @returns {Promise} A promise that resolves to an authenticated service stub.
|
184
|
+
*/
|
185
|
+
initialize() {
|
186
|
+
// If the client stub promise is already initialized, return immediately.
|
187
|
+
if (this.reportServiceStub) {
|
188
|
+
return this.reportServiceStub;
|
189
|
+
}
|
190
|
+
// Put together the "service stub" for
|
191
|
+
// google.shopping.merchant.reports.v1alpha.ReportService.
|
192
|
+
this.reportServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
193
|
+
this._protos.lookupService('google.shopping.merchant.reports.v1alpha.ReportService') :
|
194
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
195
|
+
this._protos.google.shopping.merchant.reports.v1alpha.ReportService, this._opts, this._providedCustomServicePath);
|
196
|
+
// Iterate over each of the methods that the service provides
|
197
|
+
// and create an API call method for each.
|
198
|
+
const reportServiceStubMethods = ['search'];
|
199
|
+
for (const methodName of reportServiceStubMethods) {
|
200
|
+
const callPromise = this.reportServiceStub.then(stub => (...args) => {
|
201
|
+
if (this._terminated) {
|
202
|
+
return Promise.reject('The client has already been closed.');
|
203
|
+
}
|
204
|
+
const func = stub[methodName];
|
205
|
+
return func.apply(stub, args);
|
206
|
+
}, (err) => () => {
|
207
|
+
throw err;
|
208
|
+
});
|
209
|
+
const descriptor = this.descriptors.page[methodName] ||
|
210
|
+
undefined;
|
211
|
+
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
212
|
+
this.innerApiCalls[methodName] = apiCall;
|
213
|
+
}
|
214
|
+
return this.reportServiceStub;
|
215
|
+
}
|
216
|
+
/**
|
217
|
+
* The DNS address for this API service.
|
218
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
219
|
+
* @returns {string} The DNS address for this service.
|
220
|
+
*/
|
221
|
+
static get servicePath() {
|
222
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
223
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
224
|
+
}
|
225
|
+
return 'merchantapi.googleapis.com';
|
226
|
+
}
|
227
|
+
/**
|
228
|
+
* The DNS address for this API service - same as servicePath.
|
229
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
230
|
+
* @returns {string} The DNS address for this service.
|
231
|
+
*/
|
232
|
+
static get apiEndpoint() {
|
233
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
234
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
235
|
+
}
|
236
|
+
return 'merchantapi.googleapis.com';
|
237
|
+
}
|
238
|
+
/**
|
239
|
+
* The DNS address for this API service.
|
240
|
+
* @returns {string} The DNS address for this service.
|
241
|
+
*/
|
242
|
+
get apiEndpoint() {
|
243
|
+
return this._servicePath;
|
244
|
+
}
|
245
|
+
get universeDomain() {
|
246
|
+
return this._universeDomain;
|
247
|
+
}
|
248
|
+
/**
|
249
|
+
* The port for this API service.
|
250
|
+
* @returns {number} The default port for this service.
|
251
|
+
*/
|
252
|
+
static get port() {
|
253
|
+
return 443;
|
254
|
+
}
|
255
|
+
/**
|
256
|
+
* The scopes needed to make gRPC calls for every method defined
|
257
|
+
* in this service.
|
258
|
+
* @returns {string[]} List of default scopes.
|
259
|
+
*/
|
260
|
+
static get scopes() {
|
261
|
+
return [
|
262
|
+
'https://www.googleapis.com/auth/content'
|
263
|
+
];
|
264
|
+
}
|
265
|
+
/**
|
266
|
+
* Return the project ID used by this class.
|
267
|
+
* @returns {Promise} A promise that resolves to string containing the project ID.
|
268
|
+
*/
|
269
|
+
getProjectId(callback) {
|
270
|
+
if (callback) {
|
271
|
+
this.auth.getProjectId(callback);
|
272
|
+
return;
|
273
|
+
}
|
274
|
+
return this.auth.getProjectId();
|
275
|
+
}
|
276
|
+
search(request, optionsOrCallback, callback) {
|
277
|
+
request = request || {};
|
278
|
+
let options;
|
279
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
280
|
+
callback = optionsOrCallback;
|
281
|
+
options = {};
|
282
|
+
}
|
283
|
+
else {
|
284
|
+
options = optionsOrCallback;
|
285
|
+
}
|
286
|
+
options = options || {};
|
287
|
+
options.otherArgs = options.otherArgs || {};
|
288
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
289
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
290
|
+
'parent': request.parent ?? '',
|
291
|
+
});
|
292
|
+
this.initialize().catch(err => { throw err; });
|
293
|
+
const wrappedCallback = callback
|
294
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
295
|
+
this._log.info('search values %j', values);
|
296
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
297
|
+
}
|
298
|
+
: undefined;
|
299
|
+
this._log.info('search request %j', request);
|
300
|
+
return this.innerApiCalls
|
301
|
+
.search(request, options, wrappedCallback)
|
302
|
+
?.then(([response, input, output]) => {
|
303
|
+
this._log.info('search values %j', response);
|
304
|
+
return [response, input, output];
|
305
|
+
});
|
306
|
+
}
|
307
|
+
/**
|
308
|
+
* Equivalent to `search`, but returns a NodeJS Stream object.
|
309
|
+
* @param {Object} request
|
310
|
+
* The request object that will be sent.
|
311
|
+
* @param {string} request.parent
|
312
|
+
* Required. Id of the account making the call. Must be a standalone account
|
313
|
+
* or an MCA subaccount. Format: accounts/{account}
|
314
|
+
* @param {string} request.query
|
315
|
+
* Required. Query that defines a report to be retrieved.
|
316
|
+
*
|
317
|
+
* For details on how to construct your query, see the Query Language
|
318
|
+
* guide. For the full list of available tables and fields, see the Available
|
319
|
+
* fields.
|
320
|
+
* @param {number} [request.pageSize]
|
321
|
+
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
322
|
+
* 1000. Values above 5000 are coerced to 5000.
|
323
|
+
* @param {string} [request.pageToken]
|
324
|
+
* Optional. Token of the page to retrieve. If not specified, the first page
|
325
|
+
* of results is returned. In order to request the next page of results, the
|
326
|
+
* value obtained from `next_page_token` in the previous response should be
|
327
|
+
* used.
|
328
|
+
* @param {object} [options]
|
329
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
330
|
+
* @returns {Stream}
|
331
|
+
* An object stream which emits an object representing {@link protos.google.shopping.merchant.reports.v1alpha.ReportRow|ReportRow} on 'data' event.
|
332
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
333
|
+
* times as needed. Note that it can affect your quota.
|
334
|
+
* We recommend using `searchAsync()`
|
335
|
+
* method described below for async iteration which you can stop as needed.
|
336
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
337
|
+
* for more details and examples.
|
338
|
+
*/
|
339
|
+
searchStream(request, options) {
|
340
|
+
request = request || {};
|
341
|
+
options = options || {};
|
342
|
+
options.otherArgs = options.otherArgs || {};
|
343
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
344
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
345
|
+
'parent': request.parent ?? '',
|
346
|
+
});
|
347
|
+
const defaultCallSettings = this._defaults['search'];
|
348
|
+
const callSettings = defaultCallSettings.merge(options);
|
349
|
+
this.initialize().catch(err => { throw err; });
|
350
|
+
this._log.info('search stream %j', request);
|
351
|
+
return this.descriptors.page.search.createStream(this.innerApiCalls.search, request, callSettings);
|
352
|
+
}
|
353
|
+
/**
|
354
|
+
* Equivalent to `search`, but returns an iterable object.
|
355
|
+
*
|
356
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
357
|
+
* @param {Object} request
|
358
|
+
* The request object that will be sent.
|
359
|
+
* @param {string} request.parent
|
360
|
+
* Required. Id of the account making the call. Must be a standalone account
|
361
|
+
* or an MCA subaccount. Format: accounts/{account}
|
362
|
+
* @param {string} request.query
|
363
|
+
* Required. Query that defines a report to be retrieved.
|
364
|
+
*
|
365
|
+
* For details on how to construct your query, see the Query Language
|
366
|
+
* guide. For the full list of available tables and fields, see the Available
|
367
|
+
* fields.
|
368
|
+
* @param {number} [request.pageSize]
|
369
|
+
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
370
|
+
* 1000. Values above 5000 are coerced to 5000.
|
371
|
+
* @param {string} [request.pageToken]
|
372
|
+
* Optional. Token of the page to retrieve. If not specified, the first page
|
373
|
+
* of results is returned. In order to request the next page of results, the
|
374
|
+
* value obtained from `next_page_token` in the previous response should be
|
375
|
+
* used.
|
376
|
+
* @param {object} [options]
|
377
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
378
|
+
* @returns {Object}
|
379
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
380
|
+
* When you iterate the returned iterable, each element will be an object representing
|
381
|
+
* {@link protos.google.shopping.merchant.reports.v1alpha.ReportRow|ReportRow}. The API will be called under the hood as needed, once per the page,
|
382
|
+
* so you can stop the iteration when you don't need more results.
|
383
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
384
|
+
* for more details and examples.
|
385
|
+
* @example <caption>include:samples/generated/v1alpha/report_service.search.js</caption>
|
386
|
+
* region_tag:merchantapi_v1alpha_generated_ReportService_Search_async
|
387
|
+
*/
|
388
|
+
searchAsync(request, options) {
|
389
|
+
request = request || {};
|
390
|
+
options = options || {};
|
391
|
+
options.otherArgs = options.otherArgs || {};
|
392
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
393
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
394
|
+
'parent': request.parent ?? '',
|
395
|
+
});
|
396
|
+
const defaultCallSettings = this._defaults['search'];
|
397
|
+
const callSettings = defaultCallSettings.merge(options);
|
398
|
+
this.initialize().catch(err => { throw err; });
|
399
|
+
this._log.info('search iterate %j', request);
|
400
|
+
return this.descriptors.page.search.asyncIterate(this.innerApiCalls['search'], request, callSettings);
|
401
|
+
}
|
402
|
+
/**
|
403
|
+
* Terminate the gRPC channel and close the client.
|
404
|
+
*
|
405
|
+
* The client will no longer be usable and all future behavior is undefined.
|
406
|
+
* @returns {Promise} A promise that resolves when the client is closed.
|
407
|
+
*/
|
408
|
+
close() {
|
409
|
+
if (this.reportServiceStub && !this._terminated) {
|
410
|
+
return this.reportServiceStub.then(stub => {
|
411
|
+
this._log.info('ending gRPC channel');
|
412
|
+
this._terminated = true;
|
413
|
+
stub.close();
|
414
|
+
});
|
415
|
+
}
|
416
|
+
return Promise.resolve();
|
417
|
+
}
|
418
|
+
}
|
419
|
+
exports.ReportServiceClient = ReportServiceClient;
|
420
|
+
//# sourceMappingURL=report_service_client.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"report_service_client.js","sourceRoot":"","sources":["../../../src/v1alpha/report_service_client.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,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAOrD,uDAAwD;AACxD,2CAA2E;AAE3E;;;;GAIG;AACH,mEAAmE;AACnE,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;GAKG;AACH,MAAa,mBAAmB;IACtB,WAAW,GAAG,KAAK,CAAC;IACpB,KAAK,CAAgB;IACr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AM,mBAAmB,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACrD,MAAM,YAAY,GAAG,mBAAmB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,GAAE,MAAM,GAAG,CAAA,CAAA,CAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAC7C,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAC9C,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAY,EACvC,OAAa,EACb,YAAY,CACgE,CAAC;IACjF,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,iBAAiB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAChD,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACxC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;gBACtC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AArhBD,kDAqhBC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.shopping.merchant.reports.v1alpha.ReportService": {
|
4
|
+
"retry_codes": {
|
5
|
+
"non_idempotent": [],
|
6
|
+
"idempotent": [
|
7
|
+
"DEADLINE_EXCEEDED",
|
8
|
+
"UNAVAILABLE"
|
9
|
+
],
|
10
|
+
"unavailable": [
|
11
|
+
"UNAVAILABLE"
|
12
|
+
]
|
13
|
+
},
|
14
|
+
"retry_params": {
|
15
|
+
"default": {
|
16
|
+
"initial_retry_delay_millis": 100,
|
17
|
+
"retry_delay_multiplier": 1.3,
|
18
|
+
"max_retry_delay_millis": 60000,
|
19
|
+
"initial_rpc_timeout_millis": 60000,
|
20
|
+
"rpc_timeout_multiplier": 1,
|
21
|
+
"max_rpc_timeout_millis": 60000,
|
22
|
+
"total_timeout_millis": 600000
|
23
|
+
},
|
24
|
+
"ce5b960a6ed052e690863808e4f0deff3dc7d49f": {
|
25
|
+
"initial_retry_delay_millis": 1000,
|
26
|
+
"retry_delay_multiplier": 1.3,
|
27
|
+
"max_retry_delay_millis": 10000,
|
28
|
+
"initial_rpc_timeout_millis": 60000,
|
29
|
+
"rpc_timeout_multiplier": 1,
|
30
|
+
"max_rpc_timeout_millis": 60000,
|
31
|
+
"total_timeout_millis": 600000
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"methods": {
|
35
|
+
"Search": {
|
36
|
+
"timeout_millis": 60000,
|
37
|
+
"retry_codes_name": "unavailable",
|
38
|
+
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -114,41 +114,41 @@ export declare class ReportServiceClient {
|
|
114
114
|
getProjectId(): Promise<string>;
|
115
115
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
116
116
|
/**
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
117
|
+
* Retrieves a report defined by a search query. The response might contain
|
118
|
+
* fewer rows than specified by `page_size`. Rely on `next_page_token` to
|
119
|
+
* determine if there are more rows to be requested.
|
120
|
+
*
|
121
|
+
* @param {Object} request
|
122
|
+
* The request object that will be sent.
|
123
|
+
* @param {string} request.parent
|
124
|
+
* Required. Id of the account making the call. Must be a standalone account
|
125
|
+
* or an MCA subaccount. Format: accounts/{account}
|
126
|
+
* @param {string} request.query
|
127
|
+
* Required. Query that defines a report to be retrieved.
|
128
|
+
*
|
129
|
+
* For details on how to construct your query, see the Query Language
|
130
|
+
* guide. For the full list of available tables and fields, see the Available
|
131
|
+
* fields.
|
132
|
+
* @param {number} [request.pageSize]
|
133
|
+
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
134
|
+
* 1000. Values above 5000 are coerced to 5000.
|
135
|
+
* @param {string} [request.pageToken]
|
136
|
+
* Optional. Token of the page to retrieve. If not specified, the first page
|
137
|
+
* of results is returned. In order to request the next page of results, the
|
138
|
+
* value obtained from `next_page_token` in the previous response should be
|
139
|
+
* used.
|
140
|
+
* @param {object} [options]
|
141
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
142
|
+
* @returns {Promise} - The promise which resolves to an array.
|
143
|
+
* The first element of the array is Array of {@link protos.google.shopping.merchant.reports.v1beta.ReportRow|ReportRow}.
|
144
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
145
|
+
* times as needed and will merge results from all the pages into this array.
|
146
|
+
* Note that it can affect your quota.
|
147
|
+
* We recommend using `searchAsync()`
|
148
|
+
* method described below for async iteration which you can stop as needed.
|
149
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
150
|
+
* for more details and examples.
|
151
|
+
*/
|
152
152
|
search(request?: protos.google.shopping.merchant.reports.v1beta.ISearchRequest, options?: CallOptions): Promise<[
|
153
153
|
protos.google.shopping.merchant.reports.v1beta.IReportRow[],
|
154
154
|
protos.google.shopping.merchant.reports.v1beta.ISearchRequest | null,
|