@google-shopping/lfp 0.1.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 (29) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +202 -0
  3. package/README.md +200 -0
  4. package/build/protos/google/shopping/merchant/lfp/v1beta/lfpinventory.proto +149 -0
  5. package/build/protos/google/shopping/merchant/lfp/v1beta/lfpsale.proto +122 -0
  6. package/build/protos/google/shopping/merchant/lfp/v1beta/lfpstore.proto +249 -0
  7. package/build/protos/google/shopping/type/types.proto +169 -0
  8. package/build/protos/protos.d.ts +8673 -0
  9. package/build/protos/protos.js +23511 -0
  10. package/build/protos/protos.json +2617 -0
  11. package/build/src/index.d.ts +17 -0
  12. package/build/src/index.js +37 -0
  13. package/build/src/index.js.map +1 -0
  14. package/build/src/v1beta/index.d.ts +3 -0
  15. package/build/src/v1beta/index.js +27 -0
  16. package/build/src/v1beta/index.js.map +1 -0
  17. package/build/src/v1beta/lfp_inventory_service_client.d.ts +267 -0
  18. package/build/src/v1beta/lfp_inventory_service_client.js +472 -0
  19. package/build/src/v1beta/lfp_inventory_service_client.js.map +1 -0
  20. package/build/src/v1beta/lfp_inventory_service_client_config.json +43 -0
  21. package/build/src/v1beta/lfp_sale_service_client.d.ts +250 -0
  22. package/build/src/v1beta/lfp_sale_service_client.js +450 -0
  23. package/build/src/v1beta/lfp_sale_service_client.js.map +1 -0
  24. package/build/src/v1beta/lfp_sale_service_client_config.json +43 -0
  25. package/build/src/v1beta/lfp_store_service_client.d.ts +430 -0
  26. package/build/src/v1beta/lfp_store_service_client.js +645 -0
  27. package/build/src/v1beta/lfp_store_service_client.js.map +1 -0
  28. package/build/src/v1beta/lfp_store_service_client_config.json +58 -0
  29. package/package.json +70 -0
@@ -0,0 +1,645 @@
1
+ "use strict";
2
+ // Copyright 2024 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.LfpStoreServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/lfp_store_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./lfp_store_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for a [LFP
31
+ * partner](https://support.google.com/merchants/answer/7676652) to submit local
32
+ * stores for a merchant.
33
+ * @class
34
+ * @memberof v1beta
35
+ */
36
+ class LfpStoreServiceClient {
37
+ /**
38
+ * Construct an instance of LfpStoreServiceClient.
39
+ *
40
+ * @param {object} [options] - The configuration object.
41
+ * The options accepted by the constructor are described in detail
42
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
43
+ * The common options are:
44
+ * @param {object} [options.credentials] - Credentials object.
45
+ * @param {string} [options.credentials.client_email]
46
+ * @param {string} [options.credentials.private_key]
47
+ * @param {string} [options.email] - Account email address. Required when
48
+ * using a .pem or .p12 keyFilename.
49
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
50
+ * .p12 key downloaded from the Google Developers Console. If you provide
51
+ * a path to a JSON file, the projectId option below is not necessary.
52
+ * NOTE: .pem and .p12 require you to specify options.email as well.
53
+ * @param {number} [options.port] - The port on which to connect to
54
+ * the remote host.
55
+ * @param {string} [options.projectId] - The project ID from the Google
56
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
57
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
58
+ * app is running in an environment which supports
59
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
60
+ * your project ID will be detected automatically.
61
+ * @param {string} [options.apiEndpoint] - The domain name of the
62
+ * API remote host.
63
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
64
+ * Follows the structure of {@link gapicConfig}.
65
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
66
+ * For more information, please check the
67
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
68
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
69
+ * need to avoid loading the default gRPC version and want to use the fallback
70
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
71
+ * ```
72
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
73
+ * const client = new LfpStoreServiceClient({fallback: true}, gax);
74
+ * ```
75
+ */
76
+ constructor(opts, gaxInstance) {
77
+ var _a, _b, _c, _d, _e;
78
+ this._terminated = false;
79
+ this.descriptors = {
80
+ page: {},
81
+ stream: {},
82
+ longrunning: {},
83
+ batching: {},
84
+ };
85
+ // Ensure that options include all the required fields.
86
+ const staticMembers = this.constructor;
87
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
88
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
89
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
90
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
91
+ }
92
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
93
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
94
+ : undefined;
95
+ this._universeDomain =
96
+ (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
97
+ this._servicePath = 'merchantapi.' + this._universeDomain;
98
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
99
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
100
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
101
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
102
+ const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
103
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
104
+ // Request numeric enum values if REST transport is used.
105
+ opts.numericEnums = true;
106
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
107
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
108
+ opts['scopes'] = staticMembers.scopes;
109
+ }
110
+ // Load google-gax module synchronously if needed
111
+ if (!gaxInstance) {
112
+ gaxInstance = require('google-gax');
113
+ }
114
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
115
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
116
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
117
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
118
+ // Save options to use in initialize() method.
119
+ this._opts = opts;
120
+ // Save the auth object to the client, for use by other methods.
121
+ this.auth = this._gaxGrpc.auth;
122
+ // Set useJWTAccessWithScope on the auth object.
123
+ this.auth.useJWTAccessWithScope = true;
124
+ // Set defaultServicePath on the auth object.
125
+ this.auth.defaultServicePath = this._servicePath;
126
+ // Set the default scopes in auth client if needed.
127
+ if (servicePath === this._servicePath) {
128
+ this.auth.defaultScopes = staticMembers.scopes;
129
+ }
130
+ // Determine the client header string.
131
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
132
+ if (typeof process === 'object' && 'versions' in process) {
133
+ clientHeader.push(`gl-node/${process.versions.node}`);
134
+ }
135
+ else {
136
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
137
+ }
138
+ if (!opts.fallback) {
139
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
140
+ }
141
+ else {
142
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
143
+ }
144
+ if (opts.libName && opts.libVersion) {
145
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
146
+ }
147
+ // Load the applicable protos.
148
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
149
+ // This API contains "path templates"; forward-slash-separated
150
+ // identifiers to uniquely identify resources within the API.
151
+ // Create useful helper objects for these.
152
+ this.pathTemplates = {
153
+ accountPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}'),
154
+ lfpInventoryPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}'),
155
+ lfpSalePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpSales/{sale}'),
156
+ lfpStorePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpStores/{target_merchant}~{store_code}'),
157
+ };
158
+ // Some of the methods on this service return "paged" results,
159
+ // (e.g. 50 results at a time, with tokens to get subsequent
160
+ // pages). Denote the keys used for pagination and results.
161
+ this.descriptors.page = {
162
+ listLfpStores: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'lfpStores'),
163
+ };
164
+ // Put together the default options sent with requests.
165
+ this._defaults = this._gaxGrpc.constructSettings('google.shopping.merchant.lfp.v1beta.LfpStoreService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
166
+ // Set up a dictionary of "inner API calls"; the core implementation
167
+ // of calling the API is handled in `google-gax`, with this code
168
+ // merely providing the destination and request information.
169
+ this.innerApiCalls = {};
170
+ // Add a warn function to the client constructor so it can be easily tested.
171
+ this.warn = this._gaxModule.warn;
172
+ }
173
+ /**
174
+ * Initialize the client.
175
+ * Performs asynchronous operations (such as authentication) and prepares the client.
176
+ * This function will be called automatically when any class method is called for the
177
+ * first time, but if you need to initialize it before calling an actual method,
178
+ * feel free to call initialize() directly.
179
+ *
180
+ * You can await on this method if you want to make sure the client is initialized.
181
+ *
182
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
183
+ */
184
+ initialize() {
185
+ // If the client stub promise is already initialized, return immediately.
186
+ if (this.lfpStoreServiceStub) {
187
+ return this.lfpStoreServiceStub;
188
+ }
189
+ // Put together the "service stub" for
190
+ // google.shopping.merchant.lfp.v1beta.LfpStoreService.
191
+ this.lfpStoreServiceStub = this._gaxGrpc.createStub(this._opts.fallback
192
+ ? this._protos.lookupService('google.shopping.merchant.lfp.v1beta.LfpStoreService')
193
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
194
+ this._protos.google.shopping.merchant.lfp.v1beta
195
+ .LfpStoreService, 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 lfpStoreServiceStubMethods = [
199
+ 'getLfpStore',
200
+ 'insertLfpStore',
201
+ 'deleteLfpStore',
202
+ 'listLfpStores',
203
+ ];
204
+ for (const methodName of lfpStoreServiceStubMethods) {
205
+ const callPromise = this.lfpStoreServiceStub.then(stub => (...args) => {
206
+ if (this._terminated) {
207
+ return Promise.reject('The client has already been closed.');
208
+ }
209
+ const func = stub[methodName];
210
+ return func.apply(stub, args);
211
+ }, (err) => () => {
212
+ throw err;
213
+ });
214
+ const descriptor = this.descriptors.page[methodName] || undefined;
215
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
216
+ this.innerApiCalls[methodName] = apiCall;
217
+ }
218
+ return this.lfpStoreServiceStub;
219
+ }
220
+ /**
221
+ * The DNS address for this API service.
222
+ * @deprecated Use the apiEndpoint method of the client instance.
223
+ * @returns {string} The DNS address for this service.
224
+ */
225
+ static get servicePath() {
226
+ if (typeof process === 'object' &&
227
+ typeof process.emitWarning === 'function') {
228
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
229
+ }
230
+ return 'merchantapi.googleapis.com';
231
+ }
232
+ /**
233
+ * The DNS address for this API service - same as servicePath.
234
+ * @deprecated Use the apiEndpoint method of the client instance.
235
+ * @returns {string} The DNS address for this service.
236
+ */
237
+ static get apiEndpoint() {
238
+ if (typeof process === 'object' &&
239
+ typeof process.emitWarning === 'function') {
240
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
241
+ }
242
+ return 'merchantapi.googleapis.com';
243
+ }
244
+ /**
245
+ * The DNS address for this API service.
246
+ * @returns {string} The DNS address for this service.
247
+ */
248
+ get apiEndpoint() {
249
+ return this._servicePath;
250
+ }
251
+ get universeDomain() {
252
+ return this._universeDomain;
253
+ }
254
+ /**
255
+ * The port for this API service.
256
+ * @returns {number} The default port for this service.
257
+ */
258
+ static get port() {
259
+ return 443;
260
+ }
261
+ /**
262
+ * The scopes needed to make gRPC calls for every method defined
263
+ * in this service.
264
+ * @returns {string[]} List of default scopes.
265
+ */
266
+ static get scopes() {
267
+ return ['https://www.googleapis.com/auth/content'];
268
+ }
269
+ /**
270
+ * Return the project ID used by this class.
271
+ * @returns {Promise} A promise that resolves to string containing the project ID.
272
+ */
273
+ getProjectId(callback) {
274
+ if (callback) {
275
+ this.auth.getProjectId(callback);
276
+ return;
277
+ }
278
+ return this.auth.getProjectId();
279
+ }
280
+ getLfpStore(request, optionsOrCallback, callback) {
281
+ var _a;
282
+ request = request || {};
283
+ let options;
284
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
285
+ callback = optionsOrCallback;
286
+ options = {};
287
+ }
288
+ else {
289
+ options = optionsOrCallback;
290
+ }
291
+ options = options || {};
292
+ options.otherArgs = options.otherArgs || {};
293
+ options.otherArgs.headers = options.otherArgs.headers || {};
294
+ options.otherArgs.headers['x-goog-request-params'] =
295
+ this._gaxModule.routingHeader.fromParams({
296
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
297
+ });
298
+ this.initialize();
299
+ return this.innerApiCalls.getLfpStore(request, options, callback);
300
+ }
301
+ insertLfpStore(request, optionsOrCallback, callback) {
302
+ var _a;
303
+ request = request || {};
304
+ let options;
305
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
306
+ callback = optionsOrCallback;
307
+ options = {};
308
+ }
309
+ else {
310
+ options = optionsOrCallback;
311
+ }
312
+ options = options || {};
313
+ options.otherArgs = options.otherArgs || {};
314
+ options.otherArgs.headers = options.otherArgs.headers || {};
315
+ options.otherArgs.headers['x-goog-request-params'] =
316
+ this._gaxModule.routingHeader.fromParams({
317
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
318
+ });
319
+ this.initialize();
320
+ return this.innerApiCalls.insertLfpStore(request, options, callback);
321
+ }
322
+ deleteLfpStore(request, optionsOrCallback, callback) {
323
+ var _a;
324
+ request = request || {};
325
+ let options;
326
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
327
+ callback = optionsOrCallback;
328
+ options = {};
329
+ }
330
+ else {
331
+ options = optionsOrCallback;
332
+ }
333
+ options = options || {};
334
+ options.otherArgs = options.otherArgs || {};
335
+ options.otherArgs.headers = options.otherArgs.headers || {};
336
+ options.otherArgs.headers['x-goog-request-params'] =
337
+ this._gaxModule.routingHeader.fromParams({
338
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
339
+ });
340
+ this.initialize();
341
+ return this.innerApiCalls.deleteLfpStore(request, options, callback);
342
+ }
343
+ listLfpStores(request, optionsOrCallback, callback) {
344
+ var _a;
345
+ request = request || {};
346
+ let options;
347
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
348
+ callback = optionsOrCallback;
349
+ options = {};
350
+ }
351
+ else {
352
+ options = optionsOrCallback;
353
+ }
354
+ options = options || {};
355
+ options.otherArgs = options.otherArgs || {};
356
+ options.otherArgs.headers = options.otherArgs.headers || {};
357
+ options.otherArgs.headers['x-goog-request-params'] =
358
+ this._gaxModule.routingHeader.fromParams({
359
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
360
+ });
361
+ this.initialize();
362
+ return this.innerApiCalls.listLfpStores(request, options, callback);
363
+ }
364
+ /**
365
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
366
+ * @param {Object} request
367
+ * The request object that will be sent.
368
+ * @param {string} request.parent
369
+ * Required. The LFP partner.
370
+ * Format: `accounts/{account}`
371
+ * @param {number} request.targetAccount
372
+ * Required. The Merchant Center id of the merchant to list stores for.
373
+ * @param {number} [request.pageSize]
374
+ * Optional. The maximum number of `LfpStore` resources for the given account
375
+ * to return. The service returns fewer than this value if the number of
376
+ * stores for the given account is less than the `pageSize`. The default value
377
+ * is 250. The maximum value is 1000; If a value higher than the maximum is
378
+ * specified, then the `pageSize` will default to the maximum.
379
+ * @param {string} [request.pageToken]
380
+ * Optional. A page token, received from a previous `ListLfpStoresRequest`
381
+ * call. Provide the page token to retrieve the subsequent page. When
382
+ * paginating, all other parameters provided to `ListLfpStoresRequest` must
383
+ * match the call that provided the page token. The token returned as
384
+ * {@link protos.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse.next_page_token|nextPageToken}
385
+ * in the response to the previous request.
386
+ * @param {object} [options]
387
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
388
+ * @returns {Stream}
389
+ * An object stream which emits an object representing {@link protos.google.shopping.merchant.lfp.v1beta.LfpStore|LfpStore} on 'data' event.
390
+ * The client library will perform auto-pagination by default: it will call the API as many
391
+ * times as needed. Note that it can affect your quota.
392
+ * We recommend using `listLfpStoresAsync()`
393
+ * method described below for async iteration which you can stop as needed.
394
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
395
+ * for more details and examples.
396
+ */
397
+ listLfpStoresStream(request, options) {
398
+ var _a;
399
+ request = request || {};
400
+ options = options || {};
401
+ options.otherArgs = options.otherArgs || {};
402
+ options.otherArgs.headers = options.otherArgs.headers || {};
403
+ options.otherArgs.headers['x-goog-request-params'] =
404
+ this._gaxModule.routingHeader.fromParams({
405
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
406
+ });
407
+ const defaultCallSettings = this._defaults['listLfpStores'];
408
+ const callSettings = defaultCallSettings.merge(options);
409
+ this.initialize();
410
+ return this.descriptors.page.listLfpStores.createStream(this.innerApiCalls.listLfpStores, request, callSettings);
411
+ }
412
+ /**
413
+ * Equivalent to `listLfpStores`, but returns an iterable object.
414
+ *
415
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
416
+ * @param {Object} request
417
+ * The request object that will be sent.
418
+ * @param {string} request.parent
419
+ * Required. The LFP partner.
420
+ * Format: `accounts/{account}`
421
+ * @param {number} request.targetAccount
422
+ * Required. The Merchant Center id of the merchant to list stores for.
423
+ * @param {number} [request.pageSize]
424
+ * Optional. The maximum number of `LfpStore` resources for the given account
425
+ * to return. The service returns fewer than this value if the number of
426
+ * stores for the given account is less than the `pageSize`. The default value
427
+ * is 250. The maximum value is 1000; If a value higher than the maximum is
428
+ * specified, then the `pageSize` will default to the maximum.
429
+ * @param {string} [request.pageToken]
430
+ * Optional. A page token, received from a previous `ListLfpStoresRequest`
431
+ * call. Provide the page token to retrieve the subsequent page. When
432
+ * paginating, all other parameters provided to `ListLfpStoresRequest` must
433
+ * match the call that provided the page token. The token returned as
434
+ * {@link protos.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse.next_page_token|nextPageToken}
435
+ * in the response to the previous request.
436
+ * @param {object} [options]
437
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
438
+ * @returns {Object}
439
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
440
+ * When you iterate the returned iterable, each element will be an object representing
441
+ * {@link protos.google.shopping.merchant.lfp.v1beta.LfpStore|LfpStore}. The API will be called under the hood as needed, once per the page,
442
+ * so you can stop the iteration when you don't need more results.
443
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
444
+ * for more details and examples.
445
+ * @example <caption>include:samples/generated/v1beta/lfp_store_service.list_lfp_stores.js</caption>
446
+ * region_tag:merchantapi_v1beta_generated_LfpStoreService_ListLfpStores_async
447
+ */
448
+ listLfpStoresAsync(request, options) {
449
+ var _a;
450
+ request = request || {};
451
+ options = options || {};
452
+ options.otherArgs = options.otherArgs || {};
453
+ options.otherArgs.headers = options.otherArgs.headers || {};
454
+ options.otherArgs.headers['x-goog-request-params'] =
455
+ this._gaxModule.routingHeader.fromParams({
456
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
457
+ });
458
+ const defaultCallSettings = this._defaults['listLfpStores'];
459
+ const callSettings = defaultCallSettings.merge(options);
460
+ this.initialize();
461
+ return this.descriptors.page.listLfpStores.asyncIterate(this.innerApiCalls['listLfpStores'], request, callSettings);
462
+ }
463
+ // --------------------
464
+ // -- Path templates --
465
+ // --------------------
466
+ /**
467
+ * Return a fully-qualified account resource name string.
468
+ *
469
+ * @param {string} account
470
+ * @returns {string} Resource name string.
471
+ */
472
+ accountPath(account) {
473
+ return this.pathTemplates.accountPathTemplate.render({
474
+ account: account,
475
+ });
476
+ }
477
+ /**
478
+ * Parse the account from Account resource.
479
+ *
480
+ * @param {string} accountName
481
+ * A fully-qualified path representing Account resource.
482
+ * @returns {string} A string representing the account.
483
+ */
484
+ matchAccountFromAccountName(accountName) {
485
+ return this.pathTemplates.accountPathTemplate.match(accountName).account;
486
+ }
487
+ /**
488
+ * Return a fully-qualified lfpInventory resource name string.
489
+ *
490
+ * @param {string} account
491
+ * @param {string} target_merchant
492
+ * @param {string} store_code
493
+ * @param {string} offer
494
+ * @returns {string} Resource name string.
495
+ */
496
+ lfpInventoryPath(account, targetMerchant, storeCode, offer) {
497
+ return this.pathTemplates.lfpInventoryPathTemplate.render({
498
+ account: account,
499
+ target_merchant: targetMerchant,
500
+ store_code: storeCode,
501
+ offer: offer,
502
+ });
503
+ }
504
+ /**
505
+ * Parse the account from LfpInventory resource.
506
+ *
507
+ * @param {string} lfpInventoryName
508
+ * A fully-qualified path representing LfpInventory resource.
509
+ * @returns {string} A string representing the account.
510
+ */
511
+ matchAccountFromLfpInventoryName(lfpInventoryName) {
512
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
513
+ .account;
514
+ }
515
+ /**
516
+ * Parse the target_merchant from LfpInventory resource.
517
+ *
518
+ * @param {string} lfpInventoryName
519
+ * A fully-qualified path representing LfpInventory resource.
520
+ * @returns {string} A string representing the target_merchant.
521
+ */
522
+ matchTargetMerchantFromLfpInventoryName(lfpInventoryName) {
523
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
524
+ .target_merchant;
525
+ }
526
+ /**
527
+ * Parse the store_code from LfpInventory resource.
528
+ *
529
+ * @param {string} lfpInventoryName
530
+ * A fully-qualified path representing LfpInventory resource.
531
+ * @returns {string} A string representing the store_code.
532
+ */
533
+ matchStoreCodeFromLfpInventoryName(lfpInventoryName) {
534
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
535
+ .store_code;
536
+ }
537
+ /**
538
+ * Parse the offer from LfpInventory resource.
539
+ *
540
+ * @param {string} lfpInventoryName
541
+ * A fully-qualified path representing LfpInventory resource.
542
+ * @returns {string} A string representing the offer.
543
+ */
544
+ matchOfferFromLfpInventoryName(lfpInventoryName) {
545
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
546
+ .offer;
547
+ }
548
+ /**
549
+ * Return a fully-qualified lfpSale resource name string.
550
+ *
551
+ * @param {string} account
552
+ * @param {string} sale
553
+ * @returns {string} Resource name string.
554
+ */
555
+ lfpSalePath(account, sale) {
556
+ return this.pathTemplates.lfpSalePathTemplate.render({
557
+ account: account,
558
+ sale: sale,
559
+ });
560
+ }
561
+ /**
562
+ * Parse the account from LfpSale resource.
563
+ *
564
+ * @param {string} lfpSaleName
565
+ * A fully-qualified path representing LfpSale resource.
566
+ * @returns {string} A string representing the account.
567
+ */
568
+ matchAccountFromLfpSaleName(lfpSaleName) {
569
+ return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).account;
570
+ }
571
+ /**
572
+ * Parse the sale from LfpSale resource.
573
+ *
574
+ * @param {string} lfpSaleName
575
+ * A fully-qualified path representing LfpSale resource.
576
+ * @returns {string} A string representing the sale.
577
+ */
578
+ matchSaleFromLfpSaleName(lfpSaleName) {
579
+ return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).sale;
580
+ }
581
+ /**
582
+ * Return a fully-qualified lfpStore resource name string.
583
+ *
584
+ * @param {string} account
585
+ * @param {string} target_merchant
586
+ * @param {string} store_code
587
+ * @returns {string} Resource name string.
588
+ */
589
+ lfpStorePath(account, targetMerchant, storeCode) {
590
+ return this.pathTemplates.lfpStorePathTemplate.render({
591
+ account: account,
592
+ target_merchant: targetMerchant,
593
+ store_code: storeCode,
594
+ });
595
+ }
596
+ /**
597
+ * Parse the account from LfpStore resource.
598
+ *
599
+ * @param {string} lfpStoreName
600
+ * A fully-qualified path representing LfpStore resource.
601
+ * @returns {string} A string representing the account.
602
+ */
603
+ matchAccountFromLfpStoreName(lfpStoreName) {
604
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).account;
605
+ }
606
+ /**
607
+ * Parse the target_merchant from LfpStore resource.
608
+ *
609
+ * @param {string} lfpStoreName
610
+ * A fully-qualified path representing LfpStore resource.
611
+ * @returns {string} A string representing the target_merchant.
612
+ */
613
+ matchTargetMerchantFromLfpStoreName(lfpStoreName) {
614
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName)
615
+ .target_merchant;
616
+ }
617
+ /**
618
+ * Parse the store_code from LfpStore resource.
619
+ *
620
+ * @param {string} lfpStoreName
621
+ * A fully-qualified path representing LfpStore resource.
622
+ * @returns {string} A string representing the store_code.
623
+ */
624
+ matchStoreCodeFromLfpStoreName(lfpStoreName) {
625
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName)
626
+ .store_code;
627
+ }
628
+ /**
629
+ * Terminate the gRPC channel and close the client.
630
+ *
631
+ * The client will no longer be usable and all future behavior is undefined.
632
+ * @returns {Promise} A promise that resolves when the client is closed.
633
+ */
634
+ close() {
635
+ if (this.lfpStoreServiceStub && !this._terminated) {
636
+ return this.lfpStoreServiceStub.then(stub => {
637
+ this._terminated = true;
638
+ stub.close();
639
+ });
640
+ }
641
+ return Promise.resolve();
642
+ }
643
+ }
644
+ exports.LfpStoreServiceClient = LfpStoreServiceClient;
645
+ //# sourceMappingURL=lfp_store_service_client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lfp_store_service_client.js","sourceRoot":"","sources":["../../../src/v1beta/lfp_store_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;;;AAcrD,uDAAwD;AAExD;;;;GAIG;AACH,sEAAsE;AACtE,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;;GAMG;AACH,MAAa,qBAAqB;IAsBhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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