@google-shopping/lfp 0.4.1 → 0.6.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 +3 -2
- package/build/protos/google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto +201 -0
- package/build/protos/protos.d.ts +663 -53
- package/build/protos/protos.js +2126 -275
- package/build/protos/protos.json +258 -16
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -7
- package/build/src/index.js.map +1 -1
- package/build/src/v1beta/gapic_metadata.json +24 -0
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/index.js.map +1 -1
- package/build/src/v1beta/lfp_inventory_service_client.d.ts +25 -1
- package/build/src/v1beta/lfp_inventory_service_client.js +67 -44
- package/build/src/v1beta/lfp_inventory_service_client.js.map +1 -1
- package/build/src/v1beta/lfp_inventory_service_proto_list.json +1 -0
- package/build/src/v1beta/lfp_merchant_state_service_client.d.ts +273 -0
- package/build/src/v1beta/lfp_merchant_state_service_client.js +505 -0
- package/build/src/v1beta/lfp_merchant_state_service_client.js.map +1 -0
- package/build/src/v1beta/lfp_merchant_state_service_client_config.json +43 -0
- package/build/src/v1beta/lfp_merchant_state_service_proto_list.json +7 -0
- package/build/src/v1beta/lfp_sale_service_client.d.ts +25 -1
- package/build/src/v1beta/lfp_sale_service_client.js +67 -44
- package/build/src/v1beta/lfp_sale_service_client.js.map +1 -1
- package/build/src/v1beta/lfp_sale_service_proto_list.json +1 -0
- package/build/src/v1beta/lfp_store_service_client.d.ts +62 -38
- package/build/src/v1beta/lfp_store_service_client.js +102 -88
- package/build/src/v1beta/lfp_store_service_client.js.map +1 -1
- package/build/src/v1beta/lfp_store_service_proto_list.json +1 -0
- package/package.json +4 -4
- package/CHANGELOG.md +0 -47
@@ -0,0 +1,505 @@
|
|
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.LfpMerchantStateServiceClient = 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/v1beta/lfp_merchant_state_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_merchant_state_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 get the
|
33
|
+
* state of a merchant.
|
34
|
+
* @class
|
35
|
+
* @memberof v1beta
|
36
|
+
*/
|
37
|
+
class LfpMerchantStateServiceClient {
|
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
|
+
lfpMerchantStateServiceStub;
|
59
|
+
/**
|
60
|
+
* Construct an instance of LfpMerchantStateServiceClient.
|
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 LfpMerchantStateServiceClient({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
|
+
lfpInventoryPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}'),
|
166
|
+
lfpMerchantStatePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpMerchantStates/{lfp_merchant_state}'),
|
167
|
+
lfpSalePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpSales/{sale}'),
|
168
|
+
lfpStorePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpStores/{target_merchant}~{store_code}'),
|
169
|
+
};
|
170
|
+
// Put together the default options sent with requests.
|
171
|
+
this._defaults = this._gaxGrpc.constructSettings('google.shopping.merchant.lfp.v1beta.LfpMerchantStateService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
172
|
+
// Set up a dictionary of "inner API calls"; the core implementation
|
173
|
+
// of calling the API is handled in `google-gax`, with this code
|
174
|
+
// merely providing the destination and request information.
|
175
|
+
this.innerApiCalls = {};
|
176
|
+
// Add a warn function to the client constructor so it can be easily tested.
|
177
|
+
this.warn = this._gaxModule.warn;
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Initialize the client.
|
181
|
+
* Performs asynchronous operations (such as authentication) and prepares the client.
|
182
|
+
* This function will be called automatically when any class method is called for the
|
183
|
+
* first time, but if you need to initialize it before calling an actual method,
|
184
|
+
* feel free to call initialize() directly.
|
185
|
+
*
|
186
|
+
* You can await on this method if you want to make sure the client is initialized.
|
187
|
+
*
|
188
|
+
* @returns {Promise} A promise that resolves to an authenticated service stub.
|
189
|
+
*/
|
190
|
+
initialize() {
|
191
|
+
// If the client stub promise is already initialized, return immediately.
|
192
|
+
if (this.lfpMerchantStateServiceStub) {
|
193
|
+
return this.lfpMerchantStateServiceStub;
|
194
|
+
}
|
195
|
+
// Put together the "service stub" for
|
196
|
+
// google.shopping.merchant.lfp.v1beta.LfpMerchantStateService.
|
197
|
+
this.lfpMerchantStateServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
198
|
+
this._protos.lookupService('google.shopping.merchant.lfp.v1beta.LfpMerchantStateService') :
|
199
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
200
|
+
this._protos.google.shopping.merchant.lfp.v1beta.LfpMerchantStateService, this._opts, this._providedCustomServicePath);
|
201
|
+
// Iterate over each of the methods that the service provides
|
202
|
+
// and create an API call method for each.
|
203
|
+
const lfpMerchantStateServiceStubMethods = ['getLfpMerchantState'];
|
204
|
+
for (const methodName of lfpMerchantStateServiceStubMethods) {
|
205
|
+
const callPromise = this.lfpMerchantStateServiceStub.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 = undefined;
|
215
|
+
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
216
|
+
this.innerApiCalls[methodName] = apiCall;
|
217
|
+
}
|
218
|
+
return this.lfpMerchantStateServiceStub;
|
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' && typeof process.emitWarning === 'function') {
|
227
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
228
|
+
}
|
229
|
+
return 'merchantapi.googleapis.com';
|
230
|
+
}
|
231
|
+
/**
|
232
|
+
* The DNS address for this API service - same as servicePath.
|
233
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
234
|
+
* @returns {string} The DNS address for this service.
|
235
|
+
*/
|
236
|
+
static get apiEndpoint() {
|
237
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
238
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
239
|
+
}
|
240
|
+
return 'merchantapi.googleapis.com';
|
241
|
+
}
|
242
|
+
/**
|
243
|
+
* The DNS address for this API service.
|
244
|
+
* @returns {string} The DNS address for this service.
|
245
|
+
*/
|
246
|
+
get apiEndpoint() {
|
247
|
+
return this._servicePath;
|
248
|
+
}
|
249
|
+
get universeDomain() {
|
250
|
+
return this._universeDomain;
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* The port for this API service.
|
254
|
+
* @returns {number} The default port for this service.
|
255
|
+
*/
|
256
|
+
static get port() {
|
257
|
+
return 443;
|
258
|
+
}
|
259
|
+
/**
|
260
|
+
* The scopes needed to make gRPC calls for every method defined
|
261
|
+
* in this service.
|
262
|
+
* @returns {string[]} List of default scopes.
|
263
|
+
*/
|
264
|
+
static get scopes() {
|
265
|
+
return [
|
266
|
+
'https://www.googleapis.com/auth/content'
|
267
|
+
];
|
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
|
+
getLfpMerchantState(request, optionsOrCallback, callback) {
|
281
|
+
request = request || {};
|
282
|
+
let options;
|
283
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
284
|
+
callback = optionsOrCallback;
|
285
|
+
options = {};
|
286
|
+
}
|
287
|
+
else {
|
288
|
+
options = optionsOrCallback;
|
289
|
+
}
|
290
|
+
options = options || {};
|
291
|
+
options.otherArgs = options.otherArgs || {};
|
292
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
293
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
294
|
+
'name': request.name ?? '',
|
295
|
+
});
|
296
|
+
this.initialize().catch(err => { throw err; });
|
297
|
+
this._log.info('getLfpMerchantState request %j', request);
|
298
|
+
const wrappedCallback = callback
|
299
|
+
? (error, response, options, rawResponse) => {
|
300
|
+
this._log.info('getLfpMerchantState response %j', response);
|
301
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
302
|
+
}
|
303
|
+
: undefined;
|
304
|
+
return this.innerApiCalls.getLfpMerchantState(request, options, wrappedCallback)
|
305
|
+
?.then(([response, options, rawResponse]) => {
|
306
|
+
this._log.info('getLfpMerchantState response %j', response);
|
307
|
+
return [response, options, rawResponse];
|
308
|
+
}).catch((error) => {
|
309
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
310
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
311
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
312
|
+
}
|
313
|
+
throw error;
|
314
|
+
});
|
315
|
+
}
|
316
|
+
// --------------------
|
317
|
+
// -- Path templates --
|
318
|
+
// --------------------
|
319
|
+
/**
|
320
|
+
* Return a fully-qualified lfpInventory resource name string.
|
321
|
+
*
|
322
|
+
* @param {string} account
|
323
|
+
* @param {string} target_merchant
|
324
|
+
* @param {string} store_code
|
325
|
+
* @param {string} offer
|
326
|
+
* @returns {string} Resource name string.
|
327
|
+
*/
|
328
|
+
lfpInventoryPath(account, targetMerchant, storeCode, offer) {
|
329
|
+
return this.pathTemplates.lfpInventoryPathTemplate.render({
|
330
|
+
account: account,
|
331
|
+
target_merchant: targetMerchant,
|
332
|
+
store_code: storeCode,
|
333
|
+
offer: offer,
|
334
|
+
});
|
335
|
+
}
|
336
|
+
/**
|
337
|
+
* Parse the account from LfpInventory resource.
|
338
|
+
*
|
339
|
+
* @param {string} lfpInventoryName
|
340
|
+
* A fully-qualified path representing LfpInventory resource.
|
341
|
+
* @returns {string} A string representing the account.
|
342
|
+
*/
|
343
|
+
matchAccountFromLfpInventoryName(lfpInventoryName) {
|
344
|
+
return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).account;
|
345
|
+
}
|
346
|
+
/**
|
347
|
+
* Parse the target_merchant from LfpInventory resource.
|
348
|
+
*
|
349
|
+
* @param {string} lfpInventoryName
|
350
|
+
* A fully-qualified path representing LfpInventory resource.
|
351
|
+
* @returns {string} A string representing the target_merchant.
|
352
|
+
*/
|
353
|
+
matchTargetMerchantFromLfpInventoryName(lfpInventoryName) {
|
354
|
+
return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).target_merchant;
|
355
|
+
}
|
356
|
+
/**
|
357
|
+
* Parse the store_code from LfpInventory resource.
|
358
|
+
*
|
359
|
+
* @param {string} lfpInventoryName
|
360
|
+
* A fully-qualified path representing LfpInventory resource.
|
361
|
+
* @returns {string} A string representing the store_code.
|
362
|
+
*/
|
363
|
+
matchStoreCodeFromLfpInventoryName(lfpInventoryName) {
|
364
|
+
return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).store_code;
|
365
|
+
}
|
366
|
+
/**
|
367
|
+
* Parse the offer from LfpInventory resource.
|
368
|
+
*
|
369
|
+
* @param {string} lfpInventoryName
|
370
|
+
* A fully-qualified path representing LfpInventory resource.
|
371
|
+
* @returns {string} A string representing the offer.
|
372
|
+
*/
|
373
|
+
matchOfferFromLfpInventoryName(lfpInventoryName) {
|
374
|
+
return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName).offer;
|
375
|
+
}
|
376
|
+
/**
|
377
|
+
* Return a fully-qualified lfpMerchantState resource name string.
|
378
|
+
*
|
379
|
+
* @param {string} account
|
380
|
+
* @param {string} lfp_merchant_state
|
381
|
+
* @returns {string} Resource name string.
|
382
|
+
*/
|
383
|
+
lfpMerchantStatePath(account, lfpMerchantState) {
|
384
|
+
return this.pathTemplates.lfpMerchantStatePathTemplate.render({
|
385
|
+
account: account,
|
386
|
+
lfp_merchant_state: lfpMerchantState,
|
387
|
+
});
|
388
|
+
}
|
389
|
+
/**
|
390
|
+
* Parse the account from LfpMerchantState resource.
|
391
|
+
*
|
392
|
+
* @param {string} lfpMerchantStateName
|
393
|
+
* A fully-qualified path representing LfpMerchantState resource.
|
394
|
+
* @returns {string} A string representing the account.
|
395
|
+
*/
|
396
|
+
matchAccountFromLfpMerchantStateName(lfpMerchantStateName) {
|
397
|
+
return this.pathTemplates.lfpMerchantStatePathTemplate.match(lfpMerchantStateName).account;
|
398
|
+
}
|
399
|
+
/**
|
400
|
+
* Parse the lfp_merchant_state from LfpMerchantState resource.
|
401
|
+
*
|
402
|
+
* @param {string} lfpMerchantStateName
|
403
|
+
* A fully-qualified path representing LfpMerchantState resource.
|
404
|
+
* @returns {string} A string representing the lfp_merchant_state.
|
405
|
+
*/
|
406
|
+
matchLfpMerchantStateFromLfpMerchantStateName(lfpMerchantStateName) {
|
407
|
+
return this.pathTemplates.lfpMerchantStatePathTemplate.match(lfpMerchantStateName).lfp_merchant_state;
|
408
|
+
}
|
409
|
+
/**
|
410
|
+
* Return a fully-qualified lfpSale resource name string.
|
411
|
+
*
|
412
|
+
* @param {string} account
|
413
|
+
* @param {string} sale
|
414
|
+
* @returns {string} Resource name string.
|
415
|
+
*/
|
416
|
+
lfpSalePath(account, sale) {
|
417
|
+
return this.pathTemplates.lfpSalePathTemplate.render({
|
418
|
+
account: account,
|
419
|
+
sale: sale,
|
420
|
+
});
|
421
|
+
}
|
422
|
+
/**
|
423
|
+
* Parse the account from LfpSale resource.
|
424
|
+
*
|
425
|
+
* @param {string} lfpSaleName
|
426
|
+
* A fully-qualified path representing LfpSale resource.
|
427
|
+
* @returns {string} A string representing the account.
|
428
|
+
*/
|
429
|
+
matchAccountFromLfpSaleName(lfpSaleName) {
|
430
|
+
return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).account;
|
431
|
+
}
|
432
|
+
/**
|
433
|
+
* Parse the sale from LfpSale resource.
|
434
|
+
*
|
435
|
+
* @param {string} lfpSaleName
|
436
|
+
* A fully-qualified path representing LfpSale resource.
|
437
|
+
* @returns {string} A string representing the sale.
|
438
|
+
*/
|
439
|
+
matchSaleFromLfpSaleName(lfpSaleName) {
|
440
|
+
return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).sale;
|
441
|
+
}
|
442
|
+
/**
|
443
|
+
* Return a fully-qualified lfpStore resource name string.
|
444
|
+
*
|
445
|
+
* @param {string} account
|
446
|
+
* @param {string} target_merchant
|
447
|
+
* @param {string} store_code
|
448
|
+
* @returns {string} Resource name string.
|
449
|
+
*/
|
450
|
+
lfpStorePath(account, targetMerchant, storeCode) {
|
451
|
+
return this.pathTemplates.lfpStorePathTemplate.render({
|
452
|
+
account: account,
|
453
|
+
target_merchant: targetMerchant,
|
454
|
+
store_code: storeCode,
|
455
|
+
});
|
456
|
+
}
|
457
|
+
/**
|
458
|
+
* Parse the account from LfpStore resource.
|
459
|
+
*
|
460
|
+
* @param {string} lfpStoreName
|
461
|
+
* A fully-qualified path representing LfpStore resource.
|
462
|
+
* @returns {string} A string representing the account.
|
463
|
+
*/
|
464
|
+
matchAccountFromLfpStoreName(lfpStoreName) {
|
465
|
+
return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).account;
|
466
|
+
}
|
467
|
+
/**
|
468
|
+
* Parse the target_merchant from LfpStore resource.
|
469
|
+
*
|
470
|
+
* @param {string} lfpStoreName
|
471
|
+
* A fully-qualified path representing LfpStore resource.
|
472
|
+
* @returns {string} A string representing the target_merchant.
|
473
|
+
*/
|
474
|
+
matchTargetMerchantFromLfpStoreName(lfpStoreName) {
|
475
|
+
return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).target_merchant;
|
476
|
+
}
|
477
|
+
/**
|
478
|
+
* Parse the store_code from LfpStore resource.
|
479
|
+
*
|
480
|
+
* @param {string} lfpStoreName
|
481
|
+
* A fully-qualified path representing LfpStore resource.
|
482
|
+
* @returns {string} A string representing the store_code.
|
483
|
+
*/
|
484
|
+
matchStoreCodeFromLfpStoreName(lfpStoreName) {
|
485
|
+
return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).store_code;
|
486
|
+
}
|
487
|
+
/**
|
488
|
+
* Terminate the gRPC channel and close the client.
|
489
|
+
*
|
490
|
+
* The client will no longer be usable and all future behavior is undefined.
|
491
|
+
* @returns {Promise} A promise that resolves when the client is closed.
|
492
|
+
*/
|
493
|
+
close() {
|
494
|
+
if (this.lfpMerchantStateServiceStub && !this._terminated) {
|
495
|
+
return this.lfpMerchantStateServiceStub.then(stub => {
|
496
|
+
this._log.info('ending gRPC channel');
|
497
|
+
this._terminated = true;
|
498
|
+
stub.close();
|
499
|
+
});
|
500
|
+
}
|
501
|
+
return Promise.resolve();
|
502
|
+
}
|
503
|
+
}
|
504
|
+
exports.LfpMerchantStateServiceClient = LfpMerchantStateServiceClient;
|
505
|
+
//# sourceMappingURL=lfp_merchant_state_service_client.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lfp_merchant_state_service_client.js","sourceRoot":"","sources":["../../../src/v1beta/lfp_merchant_state_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,+EAA+E;AAC/E,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;;GAMG;AACH,MAAa,6BAA6B;IAChC,WAAW,GAAG,KAAK,CAAC;IACpB,KAAK,CAAgB;IACrB,0BAA0B,CAAU;IACpC,UAAU,CAAmC;IAC7C,QAAQ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a,CAAC,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,mCAAmC,CAAC,YAAoB;QACtD,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,eAAe,CAAC;IACrF,CAAC;IAED;;;;;;OAMG;IACH,8BAA8B,CAAC,YAAoB;QACjD,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC;IAChF,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,2BAA2B,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAC1D,OAAO,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAClD,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;AAtlBD,sEAslBC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.shopping.merchant.lfp.v1beta.LfpMerchantStateService": {
|
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
|
+
"GetLfpMerchantState": {
|
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/v1beta/lfpinventory.proto",
|
3
|
+
"../../protos/google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto",
|
4
|
+
"../../protos/google/shopping/merchant/lfp/v1beta/lfpsale.proto",
|
5
|
+
"../../protos/google/shopping/merchant/lfp/v1beta/lfpstore.proto",
|
6
|
+
"../../protos/google/shopping/type/types.proto"
|
7
|
+
]
|
@@ -137,7 +137,7 @@ export declare class LfpSaleServiceClient {
|
|
137
137
|
*/
|
138
138
|
insertLfpSale(request?: protos.google.shopping.merchant.lfp.v1beta.IInsertLfpSaleRequest, options?: CallOptions): Promise<[
|
139
139
|
protos.google.shopping.merchant.lfp.v1beta.ILfpSale,
|
140
|
-
|
140
|
+
protos.google.shopping.merchant.lfp.v1beta.IInsertLfpSaleRequest | undefined,
|
141
141
|
{} | undefined
|
142
142
|
]>;
|
143
143
|
insertLfpSale(request: protos.google.shopping.merchant.lfp.v1beta.IInsertLfpSaleRequest, options: CallOptions, callback: Callback<protos.google.shopping.merchant.lfp.v1beta.ILfpSale, protos.google.shopping.merchant.lfp.v1beta.IInsertLfpSaleRequest | null | undefined, {} | null | undefined>): void;
|
@@ -184,6 +184,30 @@ export declare class LfpSaleServiceClient {
|
|
184
184
|
* @returns {string} A string representing the offer.
|
185
185
|
*/
|
186
186
|
matchOfferFromLfpInventoryName(lfpInventoryName: string): string | number;
|
187
|
+
/**
|
188
|
+
* Return a fully-qualified lfpMerchantState resource name string.
|
189
|
+
*
|
190
|
+
* @param {string} account
|
191
|
+
* @param {string} lfp_merchant_state
|
192
|
+
* @returns {string} Resource name string.
|
193
|
+
*/
|
194
|
+
lfpMerchantStatePath(account: string, lfpMerchantState: string): string;
|
195
|
+
/**
|
196
|
+
* Parse the account from LfpMerchantState resource.
|
197
|
+
*
|
198
|
+
* @param {string} lfpMerchantStateName
|
199
|
+
* A fully-qualified path representing LfpMerchantState resource.
|
200
|
+
* @returns {string} A string representing the account.
|
201
|
+
*/
|
202
|
+
matchAccountFromLfpMerchantStateName(lfpMerchantStateName: string): string | number;
|
203
|
+
/**
|
204
|
+
* Parse the lfp_merchant_state from LfpMerchantState resource.
|
205
|
+
*
|
206
|
+
* @param {string} lfpMerchantStateName
|
207
|
+
* A fully-qualified path representing LfpMerchantState resource.
|
208
|
+
* @returns {string} A string representing the lfp_merchant_state.
|
209
|
+
*/
|
210
|
+
matchLfpMerchantStateFromLfpMerchantStateName(lfpMerchantStateName: string): string | number;
|
187
211
|
/**
|
188
212
|
* Return a fully-qualified lfpSale resource name string.
|
189
213
|
*
|