@google-shopping/lfp 0.6.0 → 0.7.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 (36) hide show
  1. package/README.md +7 -0
  2. package/build/protos/google/shopping/merchant/lfp/v1/lfpinventory.proto +152 -0
  3. package/build/protos/google/shopping/merchant/lfp/v1/lfpmerchantstate.proto +209 -0
  4. package/build/protos/google/shopping/merchant/lfp/v1/lfpsale.proto +125 -0
  5. package/build/protos/google/shopping/merchant/lfp/v1/lfpstore.proto +252 -0
  6. package/build/protos/protos.d.ts +2717 -20
  7. package/build/protos/protos.js +9197 -1880
  8. package/build/protos/protos.json +1049 -22
  9. package/build/src/index.d.ts +3 -1
  10. package/build/src/index.js +4 -2
  11. package/build/src/index.js.map +1 -1
  12. package/build/src/v1/gapic_metadata.json +139 -0
  13. package/build/src/v1/index.d.ts +4 -0
  14. package/build/src/v1/index.js +29 -0
  15. package/build/src/v1/index.js.map +1 -0
  16. package/build/src/v1/lfp_inventory_service_client.d.ts +292 -0
  17. package/build/src/v1/lfp_inventory_service_client.js +527 -0
  18. package/build/src/v1/lfp_inventory_service_client.js.map +1 -0
  19. package/build/src/v1/lfp_inventory_service_client_config.json +43 -0
  20. package/build/src/v1/lfp_inventory_service_proto_list.json +7 -0
  21. package/build/src/v1/lfp_merchant_state_service_client.d.ts +277 -0
  22. package/build/src/v1/lfp_merchant_state_service_client.js +508 -0
  23. package/build/src/v1/lfp_merchant_state_service_client.js.map +1 -0
  24. package/build/src/v1/lfp_merchant_state_service_client_config.json +43 -0
  25. package/build/src/v1/lfp_merchant_state_service_proto_list.json +7 -0
  26. package/build/src/v1/lfp_sale_service_client.d.ts +275 -0
  27. package/build/src/v1/lfp_sale_service_client.js +505 -0
  28. package/build/src/v1/lfp_sale_service_client.js.map +1 -0
  29. package/build/src/v1/lfp_sale_service_client_config.json +43 -0
  30. package/build/src/v1/lfp_sale_service_proto_list.json +7 -0
  31. package/build/src/v1/lfp_store_service_client.d.ts +454 -0
  32. package/build/src/v1/lfp_store_service_client.js +734 -0
  33. package/build/src/v1/lfp_store_service_client.js.map +1 -0
  34. package/build/src/v1/lfp_store_service_client_config.json +58 -0
  35. package/build/src/v1/lfp_store_service_proto_list.json +7 -0
  36. package/package.json +1 -1
@@ -0,0 +1,527 @@
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.LfpInventoryServiceClient = 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/v1/lfp_inventory_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./lfp_inventory_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Service for a [LFP
32
+ * partner](https://support.google.com/merchants/answer/7676652) to submit local
33
+ * inventories for a merchant.
34
+ * @class
35
+ * @memberof v1
36
+ */
37
+ class LfpInventoryServiceClient {
38
+ _terminated = false;
39
+ _opts;
40
+ _providedCustomServicePath;
41
+ _gaxModule;
42
+ _gaxGrpc;
43
+ _protos;
44
+ _defaults;
45
+ _universeDomain;
46
+ _servicePath;
47
+ _log = google_gax_1.loggingUtils.log('lfp');
48
+ auth;
49
+ descriptors = {
50
+ page: {},
51
+ stream: {},
52
+ longrunning: {},
53
+ batching: {},
54
+ };
55
+ warn;
56
+ innerApiCalls;
57
+ pathTemplates;
58
+ lfpInventoryServiceStub;
59
+ /**
60
+ * Construct an instance of LfpInventoryServiceClient.
61
+ *
62
+ * @param {object} [options] - The configuration object.
63
+ * The options accepted by the constructor are described in detail
64
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
65
+ * The common options are:
66
+ * @param {object} [options.credentials] - Credentials object.
67
+ * @param {string} [options.credentials.client_email]
68
+ * @param {string} [options.credentials.private_key]
69
+ * @param {string} [options.email] - Account email address. Required when
70
+ * using a .pem or .p12 keyFilename.
71
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
72
+ * .p12 key downloaded from the Google Developers Console. If you provide
73
+ * a path to a JSON file, the projectId option below is not necessary.
74
+ * NOTE: .pem and .p12 require you to specify options.email as well.
75
+ * @param {number} [options.port] - The port on which to connect to
76
+ * the remote host.
77
+ * @param {string} [options.projectId] - The project ID from the Google
78
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
79
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
80
+ * app is running in an environment which supports
81
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
82
+ * your project ID will be detected automatically.
83
+ * @param {string} [options.apiEndpoint] - The domain name of the
84
+ * API remote host.
85
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
86
+ * Follows the structure of {@link gapicConfig}.
87
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
88
+ * For more information, please check the
89
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
90
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
91
+ * need to avoid loading the default gRPC version and want to use the fallback
92
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
93
+ * ```
94
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
95
+ * const client = new LfpInventoryServiceClient({fallback: true}, gax);
96
+ * ```
97
+ */
98
+ constructor(opts, gaxInstance) {
99
+ // Ensure that options include all the required fields.
100
+ const staticMembers = this.constructor;
101
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
102
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
103
+ }
104
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
105
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
106
+ this._servicePath = 'merchantapi.' + this._universeDomain;
107
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
108
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
109
+ const port = opts?.port || staticMembers.port;
110
+ const clientConfig = opts?.clientConfig ?? {};
111
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
112
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
113
+ // Request numeric enum values if REST transport is used.
114
+ opts.numericEnums = true;
115
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
116
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
117
+ opts['scopes'] = staticMembers.scopes;
118
+ }
119
+ // Load google-gax module synchronously if needed
120
+ if (!gaxInstance) {
121
+ gaxInstance = require('google-gax');
122
+ }
123
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
124
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
125
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
126
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
127
+ // Save options to use in initialize() method.
128
+ this._opts = opts;
129
+ // Save the auth object to the client, for use by other methods.
130
+ this.auth = this._gaxGrpc.auth;
131
+ // Set useJWTAccessWithScope on the auth object.
132
+ this.auth.useJWTAccessWithScope = true;
133
+ // Set defaultServicePath on the auth object.
134
+ this.auth.defaultServicePath = this._servicePath;
135
+ // Set the default scopes in auth client if needed.
136
+ if (servicePath === this._servicePath) {
137
+ this.auth.defaultScopes = staticMembers.scopes;
138
+ }
139
+ // Determine the client header string.
140
+ const clientHeader = [
141
+ `gax/${this._gaxModule.version}`,
142
+ `gapic/${version}`,
143
+ ];
144
+ if (typeof process === 'object' && 'versions' in process) {
145
+ clientHeader.push(`gl-node/${process.versions.node}`);
146
+ }
147
+ else {
148
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
149
+ }
150
+ if (!opts.fallback) {
151
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
152
+ }
153
+ else {
154
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
155
+ }
156
+ if (opts.libName && opts.libVersion) {
157
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
158
+ }
159
+ // Load the applicable protos.
160
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
161
+ // This API contains "path templates"; forward-slash-separated
162
+ // identifiers to uniquely identify resources within the API.
163
+ // Create useful helper objects for these.
164
+ this.pathTemplates = {
165
+ accountPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}'),
166
+ lfpInventoryPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}'),
167
+ lfpMerchantStatePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpMerchantStates/{lfp_merchant_state}'),
168
+ lfpSalePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpSales/{sale}'),
169
+ lfpStorePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpStores/{target_merchant}~{store_code}'),
170
+ };
171
+ // Put together the default options sent with requests.
172
+ this._defaults = this._gaxGrpc.constructSettings('google.shopping.merchant.lfp.v1.LfpInventoryService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
173
+ // Set up a dictionary of "inner API calls"; the core implementation
174
+ // of calling the API is handled in `google-gax`, with this code
175
+ // merely providing the destination and request information.
176
+ this.innerApiCalls = {};
177
+ // Add a warn function to the client constructor so it can be easily tested.
178
+ this.warn = this._gaxModule.warn;
179
+ }
180
+ /**
181
+ * Initialize the client.
182
+ * Performs asynchronous operations (such as authentication) and prepares the client.
183
+ * This function will be called automatically when any class method is called for the
184
+ * first time, but if you need to initialize it before calling an actual method,
185
+ * feel free to call initialize() directly.
186
+ *
187
+ * You can await on this method if you want to make sure the client is initialized.
188
+ *
189
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
190
+ */
191
+ initialize() {
192
+ // If the client stub promise is already initialized, return immediately.
193
+ if (this.lfpInventoryServiceStub) {
194
+ return this.lfpInventoryServiceStub;
195
+ }
196
+ // Put together the "service stub" for
197
+ // google.shopping.merchant.lfp.v1.LfpInventoryService.
198
+ this.lfpInventoryServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
199
+ this._protos.lookupService('google.shopping.merchant.lfp.v1.LfpInventoryService') :
200
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
201
+ this._protos.google.shopping.merchant.lfp.v1.LfpInventoryService, this._opts, this._providedCustomServicePath);
202
+ // Iterate over each of the methods that the service provides
203
+ // and create an API call method for each.
204
+ const lfpInventoryServiceStubMethods = ['insertLfpInventory'];
205
+ for (const methodName of lfpInventoryServiceStubMethods) {
206
+ const callPromise = this.lfpInventoryServiceStub.then(stub => (...args) => {
207
+ if (this._terminated) {
208
+ return Promise.reject('The client has already been closed.');
209
+ }
210
+ const func = stub[methodName];
211
+ return func.apply(stub, args);
212
+ }, (err) => () => {
213
+ throw err;
214
+ });
215
+ const descriptor = undefined;
216
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
217
+ this.innerApiCalls[methodName] = apiCall;
218
+ }
219
+ return this.lfpInventoryServiceStub;
220
+ }
221
+ /**
222
+ * The DNS address for this API service.
223
+ * @deprecated Use the apiEndpoint method of the client instance.
224
+ * @returns {string} The DNS address for this service.
225
+ */
226
+ static get servicePath() {
227
+ if (typeof process === 'object' && 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' && typeof process.emitWarning === 'function') {
239
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
240
+ }
241
+ return 'merchantapi.googleapis.com';
242
+ }
243
+ /**
244
+ * The DNS address for this API service.
245
+ * @returns {string} The DNS address for this service.
246
+ */
247
+ get apiEndpoint() {
248
+ return this._servicePath;
249
+ }
250
+ get universeDomain() {
251
+ return this._universeDomain;
252
+ }
253
+ /**
254
+ * The port for this API service.
255
+ * @returns {number} The default port for this service.
256
+ */
257
+ static get port() {
258
+ return 443;
259
+ }
260
+ /**
261
+ * The scopes needed to make gRPC calls for every method defined
262
+ * in this service.
263
+ * @returns {string[]} List of default scopes.
264
+ */
265
+ static get scopes() {
266
+ return [
267
+ 'https://www.googleapis.com/auth/content'
268
+ ];
269
+ }
270
+ /**
271
+ * Return the project ID used by this class.
272
+ * @returns {Promise} A promise that resolves to string containing the project ID.
273
+ */
274
+ getProjectId(callback) {
275
+ if (callback) {
276
+ this.auth.getProjectId(callback);
277
+ return;
278
+ }
279
+ return this.auth.getProjectId();
280
+ }
281
+ insertLfpInventory(request, optionsOrCallback, callback) {
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'] = this._gaxModule.routingHeader.fromParams({
295
+ 'parent': request.parent ?? '',
296
+ });
297
+ this.initialize().catch(err => { throw err; });
298
+ this._log.info('insertLfpInventory request %j', request);
299
+ const wrappedCallback = callback
300
+ ? (error, response, options, rawResponse) => {
301
+ this._log.info('insertLfpInventory response %j', response);
302
+ callback(error, response, options, rawResponse); // We verified callback above.
303
+ }
304
+ : undefined;
305
+ return this.innerApiCalls.insertLfpInventory(request, options, wrappedCallback)
306
+ ?.then(([response, options, rawResponse]) => {
307
+ this._log.info('insertLfpInventory response %j', response);
308
+ return [response, options, rawResponse];
309
+ }).catch((error) => {
310
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
311
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
312
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
313
+ }
314
+ throw error;
315
+ });
316
+ }
317
+ // --------------------
318
+ // -- Path templates --
319
+ // --------------------
320
+ /**
321
+ * Return a fully-qualified account resource name string.
322
+ *
323
+ * @param {string} account
324
+ * @returns {string} Resource name string.
325
+ */
326
+ accountPath(account) {
327
+ return this.pathTemplates.accountPathTemplate.render({
328
+ account: account,
329
+ });
330
+ }
331
+ /**
332
+ * Parse the account from Account resource.
333
+ *
334
+ * @param {string} accountName
335
+ * A fully-qualified path representing Account resource.
336
+ * @returns {string} A string representing the account.
337
+ */
338
+ matchAccountFromAccountName(accountName) {
339
+ return this.pathTemplates.accountPathTemplate.match(accountName).account;
340
+ }
341
+ /**
342
+ * Return a fully-qualified lfpInventory resource name string.
343
+ *
344
+ * @param {string} account
345
+ * @param {string} target_merchant
346
+ * @param {string} store_code
347
+ * @param {string} offer
348
+ * @returns {string} Resource name string.
349
+ */
350
+ lfpInventoryPath(account, targetMerchant, storeCode, offer) {
351
+ return this.pathTemplates.lfpInventoryPathTemplate.render({
352
+ account: account,
353
+ target_merchant: targetMerchant,
354
+ store_code: storeCode,
355
+ offer: offer,
356
+ });
357
+ }
358
+ /**
359
+ * Parse the account from LfpInventory resource.
360
+ *
361
+ * @param {string} lfpInventoryName
362
+ * A fully-qualified path representing LfpInventory resource.
363
+ * @returns {string} A string representing the account.
364
+ */
365
+ matchAccountFromLfpInventoryName(lfpInventoryName) {
366
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).account;
367
+ }
368
+ /**
369
+ * Parse the target_merchant from LfpInventory resource.
370
+ *
371
+ * @param {string} lfpInventoryName
372
+ * A fully-qualified path representing LfpInventory resource.
373
+ * @returns {string} A string representing the target_merchant.
374
+ */
375
+ matchTargetMerchantFromLfpInventoryName(lfpInventoryName) {
376
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).target_merchant;
377
+ }
378
+ /**
379
+ * Parse the store_code from LfpInventory resource.
380
+ *
381
+ * @param {string} lfpInventoryName
382
+ * A fully-qualified path representing LfpInventory resource.
383
+ * @returns {string} A string representing the store_code.
384
+ */
385
+ matchStoreCodeFromLfpInventoryName(lfpInventoryName) {
386
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).store_code;
387
+ }
388
+ /**
389
+ * Parse the offer from LfpInventory resource.
390
+ *
391
+ * @param {string} lfpInventoryName
392
+ * A fully-qualified path representing LfpInventory resource.
393
+ * @returns {string} A string representing the offer.
394
+ */
395
+ matchOfferFromLfpInventoryName(lfpInventoryName) {
396
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).offer;
397
+ }
398
+ /**
399
+ * Return a fully-qualified lfpMerchantState resource name string.
400
+ *
401
+ * @param {string} account
402
+ * @param {string} lfp_merchant_state
403
+ * @returns {string} Resource name string.
404
+ */
405
+ lfpMerchantStatePath(account, lfpMerchantState) {
406
+ return this.pathTemplates.lfpMerchantStatePathTemplate.render({
407
+ account: account,
408
+ lfp_merchant_state: lfpMerchantState,
409
+ });
410
+ }
411
+ /**
412
+ * Parse the account from LfpMerchantState resource.
413
+ *
414
+ * @param {string} lfpMerchantStateName
415
+ * A fully-qualified path representing LfpMerchantState resource.
416
+ * @returns {string} A string representing the account.
417
+ */
418
+ matchAccountFromLfpMerchantStateName(lfpMerchantStateName) {
419
+ return this.pathTemplates.lfpMerchantStatePathTemplate.match(lfpMerchantStateName).account;
420
+ }
421
+ /**
422
+ * Parse the lfp_merchant_state from LfpMerchantState resource.
423
+ *
424
+ * @param {string} lfpMerchantStateName
425
+ * A fully-qualified path representing LfpMerchantState resource.
426
+ * @returns {string} A string representing the lfp_merchant_state.
427
+ */
428
+ matchLfpMerchantStateFromLfpMerchantStateName(lfpMerchantStateName) {
429
+ return this.pathTemplates.lfpMerchantStatePathTemplate.match(lfpMerchantStateName).lfp_merchant_state;
430
+ }
431
+ /**
432
+ * Return a fully-qualified lfpSale resource name string.
433
+ *
434
+ * @param {string} account
435
+ * @param {string} sale
436
+ * @returns {string} Resource name string.
437
+ */
438
+ lfpSalePath(account, sale) {
439
+ return this.pathTemplates.lfpSalePathTemplate.render({
440
+ account: account,
441
+ sale: sale,
442
+ });
443
+ }
444
+ /**
445
+ * Parse the account from LfpSale resource.
446
+ *
447
+ * @param {string} lfpSaleName
448
+ * A fully-qualified path representing LfpSale resource.
449
+ * @returns {string} A string representing the account.
450
+ */
451
+ matchAccountFromLfpSaleName(lfpSaleName) {
452
+ return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).account;
453
+ }
454
+ /**
455
+ * Parse the sale from LfpSale resource.
456
+ *
457
+ * @param {string} lfpSaleName
458
+ * A fully-qualified path representing LfpSale resource.
459
+ * @returns {string} A string representing the sale.
460
+ */
461
+ matchSaleFromLfpSaleName(lfpSaleName) {
462
+ return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).sale;
463
+ }
464
+ /**
465
+ * Return a fully-qualified lfpStore resource name string.
466
+ *
467
+ * @param {string} account
468
+ * @param {string} target_merchant
469
+ * @param {string} store_code
470
+ * @returns {string} Resource name string.
471
+ */
472
+ lfpStorePath(account, targetMerchant, storeCode) {
473
+ return this.pathTemplates.lfpStorePathTemplate.render({
474
+ account: account,
475
+ target_merchant: targetMerchant,
476
+ store_code: storeCode,
477
+ });
478
+ }
479
+ /**
480
+ * Parse the account from LfpStore resource.
481
+ *
482
+ * @param {string} lfpStoreName
483
+ * A fully-qualified path representing LfpStore resource.
484
+ * @returns {string} A string representing the account.
485
+ */
486
+ matchAccountFromLfpStoreName(lfpStoreName) {
487
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).account;
488
+ }
489
+ /**
490
+ * Parse the target_merchant from LfpStore resource.
491
+ *
492
+ * @param {string} lfpStoreName
493
+ * A fully-qualified path representing LfpStore resource.
494
+ * @returns {string} A string representing the target_merchant.
495
+ */
496
+ matchTargetMerchantFromLfpStoreName(lfpStoreName) {
497
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).target_merchant;
498
+ }
499
+ /**
500
+ * Parse the store_code from LfpStore resource.
501
+ *
502
+ * @param {string} lfpStoreName
503
+ * A fully-qualified path representing LfpStore resource.
504
+ * @returns {string} A string representing the store_code.
505
+ */
506
+ matchStoreCodeFromLfpStoreName(lfpStoreName) {
507
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).store_code;
508
+ }
509
+ /**
510
+ * Terminate the gRPC channel and close the client.
511
+ *
512
+ * The client will no longer be usable and all future behavior is undefined.
513
+ * @returns {Promise} A promise that resolves when the client is closed.
514
+ */
515
+ close() {
516
+ if (this.lfpInventoryServiceStub && !this._terminated) {
517
+ return this.lfpInventoryServiceStub.then(stub => {
518
+ this._log.info('ending gRPC channel');
519
+ this._terminated = true;
520
+ stub.close();
521
+ });
522
+ }
523
+ return Promise.resolve();
524
+ }
525
+ }
526
+ exports.LfpInventoryServiceClient = LfpInventoryServiceClient;
527
+ //# sourceMappingURL=lfp_inventory_service_client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lfp_inventory_service_client.js","sourceRoot":"","sources":["../../../src/v1/lfp_inventory_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,0EAA0E;AAC1E,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;;GAMG;AACH,MAAa,yBAAyB;IAC5B,WAAW,GAAG,KAAK,CAAC;IACpB,KAAK,CAAgB;IACrB,0BAA0B,CAAU;IACpC,UAAU,CAAmC;IAC7C,QAAQ,CAA2C;IACnD,OAAO,CAAK;IACZ,SAAS,CAAuC;IAChD,eAAe,CAAS;IACxB,YAAY,CAAS;IACrB,IAAI,GAAG,yBAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAElC,IAAI,CAAiB;IACrB,WAAW,GAAgB;QACzB,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE,EAAE;KACb,CAAC;IACF,IAAI,CAA6D;IACjE,aAAa,CAA6B;IAC1C,aAAa,CAAqC;IAClD,uBAAuB,CAAuC;IAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,YAAY,IAAoB,EAAE,WAA8C;QAC9E,uDAAuD;QACvD,MAAM,aAAa,GAAG,IAAI,CAAC,WAA+C,CAAC;QAC3E,IAAI,IAAI,EAAE,eAAe,IAAI,IAAI,EAAE,cAAc,IAAI,IAAI,EAAE,eAAe,KAAK,IAAI,EAAE,cAAc,EAAE,CAAC;YACpG,MAAM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jD,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC;IAChF,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,uBAAuB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtD,OAAO,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAC9C,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;AApnBD,8DAonBC"}
@@ -0,0 +1,43 @@
1
+ {
2
+ "interfaces": {
3
+ "google.shopping.merchant.lfp.v1.LfpInventoryService": {
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
+ "InsertLfpInventory": {
36
+ "timeout_millis": 60000,
37
+ "retry_codes_name": "unavailable",
38
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,7 @@
1
+ [
2
+ "../../protos/google/shopping/merchant/lfp/v1/lfpinventory.proto",
3
+ "../../protos/google/shopping/merchant/lfp/v1/lfpmerchantstate.proto",
4
+ "../../protos/google/shopping/merchant/lfp/v1/lfpsale.proto",
5
+ "../../protos/google/shopping/merchant/lfp/v1/lfpstore.proto",
6
+ "../../protos/google/shopping/type/types.proto"
7
+ ]