@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.
- package/CHANGELOG.md +8 -0
- package/LICENSE +202 -0
- package/README.md +200 -0
- package/build/protos/google/shopping/merchant/lfp/v1beta/lfpinventory.proto +149 -0
- package/build/protos/google/shopping/merchant/lfp/v1beta/lfpsale.proto +122 -0
- package/build/protos/google/shopping/merchant/lfp/v1beta/lfpstore.proto +249 -0
- package/build/protos/google/shopping/type/types.proto +169 -0
- package/build/protos/protos.d.ts +8673 -0
- package/build/protos/protos.js +23511 -0
- package/build/protos/protos.json +2617 -0
- package/build/src/index.d.ts +17 -0
- package/build/src/index.js +37 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1beta/index.d.ts +3 -0
- package/build/src/v1beta/index.js +27 -0
- package/build/src/v1beta/index.js.map +1 -0
- package/build/src/v1beta/lfp_inventory_service_client.d.ts +267 -0
- package/build/src/v1beta/lfp_inventory_service_client.js +472 -0
- package/build/src/v1beta/lfp_inventory_service_client.js.map +1 -0
- package/build/src/v1beta/lfp_inventory_service_client_config.json +43 -0
- package/build/src/v1beta/lfp_sale_service_client.d.ts +250 -0
- package/build/src/v1beta/lfp_sale_service_client.js +450 -0
- package/build/src/v1beta/lfp_sale_service_client.js.map +1 -0
- package/build/src/v1beta/lfp_sale_service_client_config.json +43 -0
- package/build/src/v1beta/lfp_store_service_client.d.ts +430 -0
- package/build/src/v1beta/lfp_store_service_client.js +645 -0
- package/build/src/v1beta/lfp_store_service_client.js.map +1 -0
- package/build/src/v1beta/lfp_store_service_client_config.json +58 -0
- package/package.json +70 -0
@@ -0,0 +1,430 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type * as gax from 'google-gax';
|
3
|
+
import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback } from 'google-gax';
|
4
|
+
import { Transform } from 'stream';
|
5
|
+
import * as protos from '../../protos/protos';
|
6
|
+
/**
|
7
|
+
* Service for a [LFP
|
8
|
+
* partner](https://support.google.com/merchants/answer/7676652) to submit local
|
9
|
+
* stores for a merchant.
|
10
|
+
* @class
|
11
|
+
* @memberof v1beta
|
12
|
+
*/
|
13
|
+
export declare class LfpStoreServiceClient {
|
14
|
+
private _terminated;
|
15
|
+
private _opts;
|
16
|
+
private _providedCustomServicePath;
|
17
|
+
private _gaxModule;
|
18
|
+
private _gaxGrpc;
|
19
|
+
private _protos;
|
20
|
+
private _defaults;
|
21
|
+
private _universeDomain;
|
22
|
+
private _servicePath;
|
23
|
+
auth: gax.GoogleAuth;
|
24
|
+
descriptors: Descriptors;
|
25
|
+
warn: (code: string, message: string, warnType?: string) => void;
|
26
|
+
innerApiCalls: {
|
27
|
+
[name: string]: Function;
|
28
|
+
};
|
29
|
+
pathTemplates: {
|
30
|
+
[name: string]: gax.PathTemplate;
|
31
|
+
};
|
32
|
+
lfpStoreServiceStub?: Promise<{
|
33
|
+
[name: string]: Function;
|
34
|
+
}>;
|
35
|
+
/**
|
36
|
+
* Construct an instance of LfpStoreServiceClient.
|
37
|
+
*
|
38
|
+
* @param {object} [options] - The configuration object.
|
39
|
+
* The options accepted by the constructor are described in detail
|
40
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
41
|
+
* The common options are:
|
42
|
+
* @param {object} [options.credentials] - Credentials object.
|
43
|
+
* @param {string} [options.credentials.client_email]
|
44
|
+
* @param {string} [options.credentials.private_key]
|
45
|
+
* @param {string} [options.email] - Account email address. Required when
|
46
|
+
* using a .pem or .p12 keyFilename.
|
47
|
+
* @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
|
48
|
+
* .p12 key downloaded from the Google Developers Console. If you provide
|
49
|
+
* a path to a JSON file, the projectId option below is not necessary.
|
50
|
+
* NOTE: .pem and .p12 require you to specify options.email as well.
|
51
|
+
* @param {number} [options.port] - The port on which to connect to
|
52
|
+
* the remote host.
|
53
|
+
* @param {string} [options.projectId] - The project ID from the Google
|
54
|
+
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
55
|
+
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
56
|
+
* app is running in an environment which supports
|
57
|
+
* {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
|
58
|
+
* your project ID will be detected automatically.
|
59
|
+
* @param {string} [options.apiEndpoint] - The domain name of the
|
60
|
+
* API remote host.
|
61
|
+
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
62
|
+
* Follows the structure of {@link gapicConfig}.
|
63
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
64
|
+
* For more information, please check the
|
65
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
66
|
+
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
67
|
+
* need to avoid loading the default gRPC version and want to use the fallback
|
68
|
+
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
69
|
+
* ```
|
70
|
+
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
71
|
+
* const client = new LfpStoreServiceClient({fallback: true}, gax);
|
72
|
+
* ```
|
73
|
+
*/
|
74
|
+
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
75
|
+
/**
|
76
|
+
* Initialize the client.
|
77
|
+
* Performs asynchronous operations (such as authentication) and prepares the client.
|
78
|
+
* This function will be called automatically when any class method is called for the
|
79
|
+
* first time, but if you need to initialize it before calling an actual method,
|
80
|
+
* feel free to call initialize() directly.
|
81
|
+
*
|
82
|
+
* You can await on this method if you want to make sure the client is initialized.
|
83
|
+
*
|
84
|
+
* @returns {Promise} A promise that resolves to an authenticated service stub.
|
85
|
+
*/
|
86
|
+
initialize(): Promise<{
|
87
|
+
[name: string]: Function;
|
88
|
+
}>;
|
89
|
+
/**
|
90
|
+
* The DNS address for this API service.
|
91
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
92
|
+
* @returns {string} The DNS address for this service.
|
93
|
+
*/
|
94
|
+
static get servicePath(): string;
|
95
|
+
/**
|
96
|
+
* The DNS address for this API service - same as servicePath.
|
97
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
98
|
+
* @returns {string} The DNS address for this service.
|
99
|
+
*/
|
100
|
+
static get apiEndpoint(): string;
|
101
|
+
/**
|
102
|
+
* The DNS address for this API service.
|
103
|
+
* @returns {string} The DNS address for this service.
|
104
|
+
*/
|
105
|
+
get apiEndpoint(): string;
|
106
|
+
get universeDomain(): string;
|
107
|
+
/**
|
108
|
+
* The port for this API service.
|
109
|
+
* @returns {number} The default port for this service.
|
110
|
+
*/
|
111
|
+
static get port(): number;
|
112
|
+
/**
|
113
|
+
* The scopes needed to make gRPC calls for every method defined
|
114
|
+
* in this service.
|
115
|
+
* @returns {string[]} List of default scopes.
|
116
|
+
*/
|
117
|
+
static get scopes(): string[];
|
118
|
+
getProjectId(): Promise<string>;
|
119
|
+
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
120
|
+
/**
|
121
|
+
* Retrieves information about a store.
|
122
|
+
*
|
123
|
+
* @param {Object} request
|
124
|
+
* The request object that will be sent.
|
125
|
+
* @param {string} request.name
|
126
|
+
* Required. The name of the store to retrieve.
|
127
|
+
* Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
|
128
|
+
* @param {object} [options]
|
129
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
130
|
+
* @returns {Promise} - The promise which resolves to an array.
|
131
|
+
* The first element of the array is an object representing {@link protos.google.shopping.merchant.lfp.v1beta.LfpStore|LfpStore}.
|
132
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
133
|
+
* for more details and examples.
|
134
|
+
* @example <caption>include:samples/generated/v1beta/lfp_store_service.get_lfp_store.js</caption>
|
135
|
+
* region_tag:merchantapi_v1beta_generated_LfpStoreService_GetLfpStore_async
|
136
|
+
*/
|
137
|
+
getLfpStore(request?: protos.google.shopping.merchant.lfp.v1beta.IGetLfpStoreRequest, options?: CallOptions): Promise<[
|
138
|
+
protos.google.shopping.merchant.lfp.v1beta.ILfpStore,
|
139
|
+
(protos.google.shopping.merchant.lfp.v1beta.IGetLfpStoreRequest | undefined),
|
140
|
+
{} | undefined
|
141
|
+
]>;
|
142
|
+
getLfpStore(request: protos.google.shopping.merchant.lfp.v1beta.IGetLfpStoreRequest, options: CallOptions, callback: Callback<protos.google.shopping.merchant.lfp.v1beta.ILfpStore, protos.google.shopping.merchant.lfp.v1beta.IGetLfpStoreRequest | null | undefined, {} | null | undefined>): void;
|
143
|
+
getLfpStore(request: protos.google.shopping.merchant.lfp.v1beta.IGetLfpStoreRequest, callback: Callback<protos.google.shopping.merchant.lfp.v1beta.ILfpStore, protos.google.shopping.merchant.lfp.v1beta.IGetLfpStoreRequest | null | undefined, {} | null | undefined>): void;
|
144
|
+
/**
|
145
|
+
* Inserts a store for the target merchant. If the store with the same store
|
146
|
+
* code already exists, it will be replaced.
|
147
|
+
*
|
148
|
+
* @param {Object} request
|
149
|
+
* The request object that will be sent.
|
150
|
+
* @param {string} request.parent
|
151
|
+
* Required. The LFP provider account
|
152
|
+
* Format: `accounts/{account}`
|
153
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpStore} request.lfpStore
|
154
|
+
* Required. The store to insert.
|
155
|
+
* @param {object} [options]
|
156
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
157
|
+
* @returns {Promise} - The promise which resolves to an array.
|
158
|
+
* The first element of the array is an object representing {@link protos.google.shopping.merchant.lfp.v1beta.LfpStore|LfpStore}.
|
159
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
160
|
+
* for more details and examples.
|
161
|
+
* @example <caption>include:samples/generated/v1beta/lfp_store_service.insert_lfp_store.js</caption>
|
162
|
+
* region_tag:merchantapi_v1beta_generated_LfpStoreService_InsertLfpStore_async
|
163
|
+
*/
|
164
|
+
insertLfpStore(request?: protos.google.shopping.merchant.lfp.v1beta.IInsertLfpStoreRequest, options?: CallOptions): Promise<[
|
165
|
+
protos.google.shopping.merchant.lfp.v1beta.ILfpStore,
|
166
|
+
(protos.google.shopping.merchant.lfp.v1beta.IInsertLfpStoreRequest | undefined),
|
167
|
+
{} | undefined
|
168
|
+
]>;
|
169
|
+
insertLfpStore(request: protos.google.shopping.merchant.lfp.v1beta.IInsertLfpStoreRequest, options: CallOptions, callback: Callback<protos.google.shopping.merchant.lfp.v1beta.ILfpStore, protos.google.shopping.merchant.lfp.v1beta.IInsertLfpStoreRequest | null | undefined, {} | null | undefined>): void;
|
170
|
+
insertLfpStore(request: protos.google.shopping.merchant.lfp.v1beta.IInsertLfpStoreRequest, callback: Callback<protos.google.shopping.merchant.lfp.v1beta.ILfpStore, protos.google.shopping.merchant.lfp.v1beta.IInsertLfpStoreRequest | null | undefined, {} | null | undefined>): void;
|
171
|
+
/**
|
172
|
+
* Deletes a store for a target merchant.
|
173
|
+
*
|
174
|
+
* @param {Object} request
|
175
|
+
* The request object that will be sent.
|
176
|
+
* @param {string} request.name
|
177
|
+
* Required. The name of the store to delete for the target merchant account.
|
178
|
+
* Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
|
179
|
+
* @param {object} [options]
|
180
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
181
|
+
* @returns {Promise} - The promise which resolves to an array.
|
182
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
183
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
184
|
+
* for more details and examples.
|
185
|
+
* @example <caption>include:samples/generated/v1beta/lfp_store_service.delete_lfp_store.js</caption>
|
186
|
+
* region_tag:merchantapi_v1beta_generated_LfpStoreService_DeleteLfpStore_async
|
187
|
+
*/
|
188
|
+
deleteLfpStore(request?: protos.google.shopping.merchant.lfp.v1beta.IDeleteLfpStoreRequest, options?: CallOptions): Promise<[
|
189
|
+
protos.google.protobuf.IEmpty,
|
190
|
+
(protos.google.shopping.merchant.lfp.v1beta.IDeleteLfpStoreRequest | undefined),
|
191
|
+
{} | undefined
|
192
|
+
]>;
|
193
|
+
deleteLfpStore(request: protos.google.shopping.merchant.lfp.v1beta.IDeleteLfpStoreRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.shopping.merchant.lfp.v1beta.IDeleteLfpStoreRequest | null | undefined, {} | null | undefined>): void;
|
194
|
+
deleteLfpStore(request: protos.google.shopping.merchant.lfp.v1beta.IDeleteLfpStoreRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.shopping.merchant.lfp.v1beta.IDeleteLfpStoreRequest | null | undefined, {} | null | undefined>): void;
|
195
|
+
/**
|
196
|
+
* Lists the stores of the target merchant, specified by the filter in
|
197
|
+
* `ListLfpStoresRequest`.
|
198
|
+
*
|
199
|
+
* @param {Object} request
|
200
|
+
* The request object that will be sent.
|
201
|
+
* @param {string} request.parent
|
202
|
+
* Required. The LFP partner.
|
203
|
+
* Format: `accounts/{account}`
|
204
|
+
* @param {number} request.targetAccount
|
205
|
+
* Required. The Merchant Center id of the merchant to list stores for.
|
206
|
+
* @param {number} [request.pageSize]
|
207
|
+
* Optional. The maximum number of `LfpStore` resources for the given account
|
208
|
+
* to return. The service returns fewer than this value if the number of
|
209
|
+
* stores for the given account is less than the `pageSize`. The default value
|
210
|
+
* is 250. The maximum value is 1000; If a value higher than the maximum is
|
211
|
+
* specified, then the `pageSize` will default to the maximum.
|
212
|
+
* @param {string} [request.pageToken]
|
213
|
+
* Optional. A page token, received from a previous `ListLfpStoresRequest`
|
214
|
+
* call. Provide the page token to retrieve the subsequent page. When
|
215
|
+
* paginating, all other parameters provided to `ListLfpStoresRequest` must
|
216
|
+
* match the call that provided the page token. The token returned as
|
217
|
+
* {@link protos.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse.next_page_token|nextPageToken}
|
218
|
+
* in the response to the previous request.
|
219
|
+
* @param {object} [options]
|
220
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
221
|
+
* @returns {Promise} - The promise which resolves to an array.
|
222
|
+
* The first element of the array is Array of {@link protos.google.shopping.merchant.lfp.v1beta.LfpStore|LfpStore}.
|
223
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
224
|
+
* times as needed and will merge results from all the pages into this array.
|
225
|
+
* Note that it can affect your quota.
|
226
|
+
* We recommend using `listLfpStoresAsync()`
|
227
|
+
* method described below for async iteration which you can stop as needed.
|
228
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
229
|
+
* for more details and examples.
|
230
|
+
*/
|
231
|
+
listLfpStores(request?: protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest, options?: CallOptions): Promise<[
|
232
|
+
protos.google.shopping.merchant.lfp.v1beta.ILfpStore[],
|
233
|
+
protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest | null,
|
234
|
+
protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresResponse
|
235
|
+
]>;
|
236
|
+
listLfpStores(request: protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest, options: CallOptions, callback: PaginationCallback<protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest, protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresResponse | null | undefined, protos.google.shopping.merchant.lfp.v1beta.ILfpStore>): void;
|
237
|
+
listLfpStores(request: protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest, callback: PaginationCallback<protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest, protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresResponse | null | undefined, protos.google.shopping.merchant.lfp.v1beta.ILfpStore>): void;
|
238
|
+
/**
|
239
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
240
|
+
* @param {Object} request
|
241
|
+
* The request object that will be sent.
|
242
|
+
* @param {string} request.parent
|
243
|
+
* Required. The LFP partner.
|
244
|
+
* Format: `accounts/{account}`
|
245
|
+
* @param {number} request.targetAccount
|
246
|
+
* Required. The Merchant Center id of the merchant to list stores for.
|
247
|
+
* @param {number} [request.pageSize]
|
248
|
+
* Optional. The maximum number of `LfpStore` resources for the given account
|
249
|
+
* to return. The service returns fewer than this value if the number of
|
250
|
+
* stores for the given account is less than the `pageSize`. The default value
|
251
|
+
* is 250. The maximum value is 1000; If a value higher than the maximum is
|
252
|
+
* specified, then the `pageSize` will default to the maximum.
|
253
|
+
* @param {string} [request.pageToken]
|
254
|
+
* Optional. A page token, received from a previous `ListLfpStoresRequest`
|
255
|
+
* call. Provide the page token to retrieve the subsequent page. When
|
256
|
+
* paginating, all other parameters provided to `ListLfpStoresRequest` must
|
257
|
+
* match the call that provided the page token. The token returned as
|
258
|
+
* {@link protos.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse.next_page_token|nextPageToken}
|
259
|
+
* in the response to the previous request.
|
260
|
+
* @param {object} [options]
|
261
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
262
|
+
* @returns {Stream}
|
263
|
+
* An object stream which emits an object representing {@link protos.google.shopping.merchant.lfp.v1beta.LfpStore|LfpStore} on 'data' event.
|
264
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
265
|
+
* times as needed. Note that it can affect your quota.
|
266
|
+
* We recommend using `listLfpStoresAsync()`
|
267
|
+
* method described below for async iteration which you can stop as needed.
|
268
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
269
|
+
* for more details and examples.
|
270
|
+
*/
|
271
|
+
listLfpStoresStream(request?: protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest, options?: CallOptions): Transform;
|
272
|
+
/**
|
273
|
+
* Equivalent to `listLfpStores`, but returns an iterable object.
|
274
|
+
*
|
275
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
276
|
+
* @param {Object} request
|
277
|
+
* The request object that will be sent.
|
278
|
+
* @param {string} request.parent
|
279
|
+
* Required. The LFP partner.
|
280
|
+
* Format: `accounts/{account}`
|
281
|
+
* @param {number} request.targetAccount
|
282
|
+
* Required. The Merchant Center id of the merchant to list stores for.
|
283
|
+
* @param {number} [request.pageSize]
|
284
|
+
* Optional. The maximum number of `LfpStore` resources for the given account
|
285
|
+
* to return. The service returns fewer than this value if the number of
|
286
|
+
* stores for the given account is less than the `pageSize`. The default value
|
287
|
+
* is 250. The maximum value is 1000; If a value higher than the maximum is
|
288
|
+
* specified, then the `pageSize` will default to the maximum.
|
289
|
+
* @param {string} [request.pageToken]
|
290
|
+
* Optional. A page token, received from a previous `ListLfpStoresRequest`
|
291
|
+
* call. Provide the page token to retrieve the subsequent page. When
|
292
|
+
* paginating, all other parameters provided to `ListLfpStoresRequest` must
|
293
|
+
* match the call that provided the page token. The token returned as
|
294
|
+
* {@link protos.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse.next_page_token|nextPageToken}
|
295
|
+
* in the response to the previous request.
|
296
|
+
* @param {object} [options]
|
297
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
298
|
+
* @returns {Object}
|
299
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
300
|
+
* When you iterate the returned iterable, each element will be an object representing
|
301
|
+
* {@link protos.google.shopping.merchant.lfp.v1beta.LfpStore|LfpStore}. The API will be called under the hood as needed, once per the page,
|
302
|
+
* so you can stop the iteration when you don't need more results.
|
303
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
304
|
+
* for more details and examples.
|
305
|
+
* @example <caption>include:samples/generated/v1beta/lfp_store_service.list_lfp_stores.js</caption>
|
306
|
+
* region_tag:merchantapi_v1beta_generated_LfpStoreService_ListLfpStores_async
|
307
|
+
*/
|
308
|
+
listLfpStoresAsync(request?: protos.google.shopping.merchant.lfp.v1beta.IListLfpStoresRequest, options?: CallOptions): AsyncIterable<protos.google.shopping.merchant.lfp.v1beta.ILfpStore>;
|
309
|
+
/**
|
310
|
+
* Return a fully-qualified account resource name string.
|
311
|
+
*
|
312
|
+
* @param {string} account
|
313
|
+
* @returns {string} Resource name string.
|
314
|
+
*/
|
315
|
+
accountPath(account: string): string;
|
316
|
+
/**
|
317
|
+
* Parse the account from Account resource.
|
318
|
+
*
|
319
|
+
* @param {string} accountName
|
320
|
+
* A fully-qualified path representing Account resource.
|
321
|
+
* @returns {string} A string representing the account.
|
322
|
+
*/
|
323
|
+
matchAccountFromAccountName(accountName: string): string | number;
|
324
|
+
/**
|
325
|
+
* Return a fully-qualified lfpInventory resource name string.
|
326
|
+
*
|
327
|
+
* @param {string} account
|
328
|
+
* @param {string} target_merchant
|
329
|
+
* @param {string} store_code
|
330
|
+
* @param {string} offer
|
331
|
+
* @returns {string} Resource name string.
|
332
|
+
*/
|
333
|
+
lfpInventoryPath(account: string, targetMerchant: string, storeCode: string, offer: string): string;
|
334
|
+
/**
|
335
|
+
* Parse the account from LfpInventory resource.
|
336
|
+
*
|
337
|
+
* @param {string} lfpInventoryName
|
338
|
+
* A fully-qualified path representing LfpInventory resource.
|
339
|
+
* @returns {string} A string representing the account.
|
340
|
+
*/
|
341
|
+
matchAccountFromLfpInventoryName(lfpInventoryName: string): string | number;
|
342
|
+
/**
|
343
|
+
* Parse the target_merchant from LfpInventory resource.
|
344
|
+
*
|
345
|
+
* @param {string} lfpInventoryName
|
346
|
+
* A fully-qualified path representing LfpInventory resource.
|
347
|
+
* @returns {string} A string representing the target_merchant.
|
348
|
+
*/
|
349
|
+
matchTargetMerchantFromLfpInventoryName(lfpInventoryName: string): string | number;
|
350
|
+
/**
|
351
|
+
* Parse the store_code from LfpInventory resource.
|
352
|
+
*
|
353
|
+
* @param {string} lfpInventoryName
|
354
|
+
* A fully-qualified path representing LfpInventory resource.
|
355
|
+
* @returns {string} A string representing the store_code.
|
356
|
+
*/
|
357
|
+
matchStoreCodeFromLfpInventoryName(lfpInventoryName: string): string | number;
|
358
|
+
/**
|
359
|
+
* Parse the offer from LfpInventory resource.
|
360
|
+
*
|
361
|
+
* @param {string} lfpInventoryName
|
362
|
+
* A fully-qualified path representing LfpInventory resource.
|
363
|
+
* @returns {string} A string representing the offer.
|
364
|
+
*/
|
365
|
+
matchOfferFromLfpInventoryName(lfpInventoryName: string): string | number;
|
366
|
+
/**
|
367
|
+
* Return a fully-qualified lfpSale resource name string.
|
368
|
+
*
|
369
|
+
* @param {string} account
|
370
|
+
* @param {string} sale
|
371
|
+
* @returns {string} Resource name string.
|
372
|
+
*/
|
373
|
+
lfpSalePath(account: string, sale: string): string;
|
374
|
+
/**
|
375
|
+
* Parse the account from LfpSale resource.
|
376
|
+
*
|
377
|
+
* @param {string} lfpSaleName
|
378
|
+
* A fully-qualified path representing LfpSale resource.
|
379
|
+
* @returns {string} A string representing the account.
|
380
|
+
*/
|
381
|
+
matchAccountFromLfpSaleName(lfpSaleName: string): string | number;
|
382
|
+
/**
|
383
|
+
* Parse the sale from LfpSale resource.
|
384
|
+
*
|
385
|
+
* @param {string} lfpSaleName
|
386
|
+
* A fully-qualified path representing LfpSale resource.
|
387
|
+
* @returns {string} A string representing the sale.
|
388
|
+
*/
|
389
|
+
matchSaleFromLfpSaleName(lfpSaleName: string): string | number;
|
390
|
+
/**
|
391
|
+
* Return a fully-qualified lfpStore resource name string.
|
392
|
+
*
|
393
|
+
* @param {string} account
|
394
|
+
* @param {string} target_merchant
|
395
|
+
* @param {string} store_code
|
396
|
+
* @returns {string} Resource name string.
|
397
|
+
*/
|
398
|
+
lfpStorePath(account: string, targetMerchant: string, storeCode: string): string;
|
399
|
+
/**
|
400
|
+
* Parse the account from LfpStore resource.
|
401
|
+
*
|
402
|
+
* @param {string} lfpStoreName
|
403
|
+
* A fully-qualified path representing LfpStore resource.
|
404
|
+
* @returns {string} A string representing the account.
|
405
|
+
*/
|
406
|
+
matchAccountFromLfpStoreName(lfpStoreName: string): string | number;
|
407
|
+
/**
|
408
|
+
* Parse the target_merchant from LfpStore resource.
|
409
|
+
*
|
410
|
+
* @param {string} lfpStoreName
|
411
|
+
* A fully-qualified path representing LfpStore resource.
|
412
|
+
* @returns {string} A string representing the target_merchant.
|
413
|
+
*/
|
414
|
+
matchTargetMerchantFromLfpStoreName(lfpStoreName: string): string | number;
|
415
|
+
/**
|
416
|
+
* Parse the store_code from LfpStore resource.
|
417
|
+
*
|
418
|
+
* @param {string} lfpStoreName
|
419
|
+
* A fully-qualified path representing LfpStore resource.
|
420
|
+
* @returns {string} A string representing the store_code.
|
421
|
+
*/
|
422
|
+
matchStoreCodeFromLfpStoreName(lfpStoreName: string): string | number;
|
423
|
+
/**
|
424
|
+
* Terminate the gRPC channel and close the client.
|
425
|
+
*
|
426
|
+
* The client will no longer be usable and all future behavior is undefined.
|
427
|
+
* @returns {Promise} A promise that resolves when the client is closed.
|
428
|
+
*/
|
429
|
+
close(): Promise<void>;
|
430
|
+
}
|