@google-shopping/lfp 0.6.0 → 0.8.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,252 @@
1
+ // Copyright 2025 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.shopping.merchant.lfp.v1;
18
+
19
+ import "google/api/annotations.proto";
20
+ import "google/api/client.proto";
21
+ import "google/api/field_behavior.proto";
22
+ import "google/api/resource.proto";
23
+ import "google/protobuf/empty.proto";
24
+
25
+ option csharp_namespace = "Google.Shopping.Merchant.Lfp.V1";
26
+ option go_package = "cloud.google.com/go/shopping/merchant/lfp/apiv1/lfppb;lfppb";
27
+ option java_multiple_files = true;
28
+ option java_outer_classname = "LfpStoreProto";
29
+ option java_package = "com.google.shopping.merchant.lfp.v1";
30
+ option php_namespace = "Google\\Shopping\\Merchant\\Lfp\\V1";
31
+ option ruby_package = "Google::Shopping::Merchant::Lfp::V1";
32
+
33
+ // Service for a [LFP
34
+ // partner](https://support.google.com/merchants/answer/7676652) to submit local
35
+ // stores for a merchant.
36
+ service LfpStoreService {
37
+ option (google.api.default_host) = "merchantapi.googleapis.com";
38
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
39
+
40
+ // Retrieves information about a store.
41
+ rpc GetLfpStore(GetLfpStoreRequest) returns (LfpStore) {
42
+ option (google.api.http) = {
43
+ get: "/lfp/v1/{name=accounts/*/lfpStores/*}"
44
+ };
45
+ option (google.api.method_signature) = "name";
46
+ }
47
+
48
+ // Inserts a store for the target merchant. If the store with the same store
49
+ // code already exists, it will be replaced.
50
+ rpc InsertLfpStore(InsertLfpStoreRequest) returns (LfpStore) {
51
+ option (google.api.http) = {
52
+ post: "/lfp/v1/{parent=accounts/*}/lfpStores:insert"
53
+ body: "lfp_store"
54
+ };
55
+ option (google.api.method_signature) = "parent,lfp_store";
56
+ }
57
+
58
+ // Deletes a store for a target merchant.
59
+ rpc DeleteLfpStore(DeleteLfpStoreRequest) returns (google.protobuf.Empty) {
60
+ option (google.api.http) = {
61
+ delete: "/lfp/v1/{name=accounts/*/lfpStores/*}"
62
+ };
63
+ option (google.api.method_signature) = "name";
64
+ }
65
+
66
+ // Lists the stores of the target merchant, specified by the filter in
67
+ // `ListLfpStoresRequest`.
68
+ rpc ListLfpStores(ListLfpStoresRequest) returns (ListLfpStoresResponse) {
69
+ option (google.api.http) = {
70
+ get: "/lfp/v1/{parent=accounts/*}/lfpStores"
71
+ };
72
+ option (google.api.method_signature) = "parent";
73
+ }
74
+ }
75
+
76
+ // A store for the merchant. This will be used to match to a store under the
77
+ // Google Business Profile of the target merchant. If a matching store can't be
78
+ // found, the inventories or sales submitted with the store code will not be
79
+ // used.
80
+ message LfpStore {
81
+ option (google.api.resource) = {
82
+ type: "merchantapi.googleapis.com/LfpStore"
83
+ pattern: "accounts/{account}/lfpStores/{target_merchant}~{store_code}"
84
+ plural: "lfpStores"
85
+ singular: "lfpStore"
86
+ };
87
+
88
+ // The state of matching `LfpStore` to a Google Business Profile.
89
+ enum StoreMatchingState {
90
+ // Store matching state unspecified.
91
+ STORE_MATCHING_STATE_UNSPECIFIED = 0;
92
+
93
+ // The `LfpStore` is successfully matched with a Google Business Profile
94
+ // store.
95
+ STORE_MATCHING_STATE_MATCHED = 1;
96
+
97
+ // The `LfpStore` is not matched with a Google Business Profile store.
98
+ STORE_MATCHING_STATE_FAILED = 2;
99
+ }
100
+
101
+ // Output only. Identifier. The name of the `LfpStore` resource.
102
+ // Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
103
+ string name = 1 [
104
+ (google.api.field_behavior) = OUTPUT_ONLY,
105
+ (google.api.field_behavior) = IDENTIFIER
106
+ ];
107
+
108
+ // Required. The Merchant Center id of the merchant to submit the store for.
109
+ int64 target_account = 2 [(google.api.field_behavior) = REQUIRED];
110
+
111
+ // Required. Immutable. A store identifier that is unique for the target
112
+ // merchant.
113
+ string store_code = 3 [
114
+ (google.api.field_behavior) = REQUIRED,
115
+ (google.api.field_behavior) = IMMUTABLE
116
+ ];
117
+
118
+ // Required. The street address of the store.
119
+ // Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.
120
+ string store_address = 4 [(google.api.field_behavior) = REQUIRED];
121
+
122
+ // Optional. The merchant or store name.
123
+ optional string store_name = 5 [(google.api.field_behavior) = OPTIONAL];
124
+
125
+ // Optional. The store phone number in
126
+ // [E.164](https://en.wikipedia.org/wiki/E.164) format. Example:
127
+ // `+15556767888`
128
+ optional string phone_number = 6 [(google.api.field_behavior) = OPTIONAL];
129
+
130
+ // Optional. The website URL for the store or merchant.
131
+ optional string website_uri = 7 [(google.api.field_behavior) = OPTIONAL];
132
+
133
+ // Optional. [Google My Business category
134
+ // id](https://gcid-explorer.corp.google.com/static/gcid.html).
135
+ repeated string gcid_category = 8 [(google.api.field_behavior) = OPTIONAL];
136
+
137
+ // Optional. The [Google Place
138
+ // Id](https://developers.google.com/maps/documentation/places/web-service/place-id#id-overview)
139
+ // of the store location.
140
+ optional string place_id = 9 [(google.api.field_behavior) = OPTIONAL];
141
+
142
+ // Optional. Output only. The state of matching to a Google Business Profile.
143
+ // See
144
+ // [matchingStateHint][google.shopping.merchant.lfp.v1.LfpStore.matching_state_hint]
145
+ // for further details if no match is found.
146
+ StoreMatchingState matching_state = 10 [
147
+ (google.api.field_behavior) = OPTIONAL,
148
+ (google.api.field_behavior) = OUTPUT_ONLY
149
+ ];
150
+
151
+ // Optional. Output only. The hint of why the matching has failed. This is
152
+ // only set when
153
+ // [matchingState][google.shopping.merchant.lfp.v1.LfpStore.matching_state]=`STORE_MATCHING_STATE_FAILED`.
154
+ //
155
+ // Possible values are:
156
+ //
157
+ // - "`linked-store-not-found`": There aren't any Google Business
158
+ // Profile stores available for matching.
159
+ // - "`store-match-not-found`": The provided `LfpStore` couldn't be matched to
160
+ // any of the connected Google Business Profile stores. Merchant Center
161
+ // account is connected correctly and stores are available on Google Business
162
+ // Profile, but the `LfpStore` location address does not match with Google
163
+ // Business Profile stores' addresses. Update the `LfpStore` address or Google
164
+ // Business Profile store address to match correctly.
165
+ // - "`store-match-unverified`": The provided `LfpStore` couldn't be matched
166
+ // to any of the connected Google Business Profile stores, as the matched
167
+ // Google Business Profile store is unverified. Go through the Google Business
168
+ // Profile verification process to match correctly.
169
+ optional string matching_state_hint = 11 [
170
+ (google.api.field_behavior) = OPTIONAL,
171
+ (google.api.field_behavior) = OUTPUT_ONLY
172
+ ];
173
+ }
174
+
175
+ // Request message for the `GetLfpStore` method.
176
+ message GetLfpStoreRequest {
177
+ // Required. The name of the store to retrieve.
178
+ // Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
179
+ string name = 1 [
180
+ (google.api.field_behavior) = REQUIRED,
181
+ (google.api.resource_reference) = {
182
+ type: "merchantapi.googleapis.com/LfpStore"
183
+ }
184
+ ];
185
+ }
186
+
187
+ // Request message for the InsertLfpStore method.
188
+ message InsertLfpStoreRequest {
189
+ // Required. The LFP provider account
190
+ // Format: `accounts/{account}`
191
+ string parent = 1 [
192
+ (google.api.field_behavior) = REQUIRED,
193
+ (google.api.resource_reference) = {
194
+ child_type: "merchantapi.googleapis.com/LfpStore"
195
+ }
196
+ ];
197
+
198
+ // Required. The store to insert.
199
+ LfpStore lfp_store = 2 [(google.api.field_behavior) = REQUIRED];
200
+ }
201
+
202
+ // Request message for the DeleteLfpStore method.
203
+ message DeleteLfpStoreRequest {
204
+ // Required. The name of the store to delete for the target merchant account.
205
+ // Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
206
+ string name = 1 [
207
+ (google.api.field_behavior) = REQUIRED,
208
+ (google.api.resource_reference) = {
209
+ type: "merchantapi.googleapis.com/LfpStore"
210
+ }
211
+ ];
212
+ }
213
+
214
+ // Request message for the ListLfpStores method.
215
+ message ListLfpStoresRequest {
216
+ // Required. The LFP partner.
217
+ // Format: `accounts/{account}`
218
+ string parent = 1 [
219
+ (google.api.field_behavior) = REQUIRED,
220
+ (google.api.resource_reference) = {
221
+ child_type: "merchantapi.googleapis.com/LfpStore"
222
+ }
223
+ ];
224
+
225
+ // Required. The Merchant Center id of the merchant to list stores for.
226
+ int64 target_account = 2 [(google.api.field_behavior) = REQUIRED];
227
+
228
+ // Optional. The maximum number of `LfpStore` resources for the given account
229
+ // to return. The service returns fewer than this value if the number of
230
+ // stores for the given account is less than the `pageSize`. The default value
231
+ // is 250. The maximum value is 1000; If a value higher than the maximum is
232
+ // specified, then the `pageSize` will default to the maximum.
233
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
234
+
235
+ // Optional. A page token, received from a previous `ListLfpStoresRequest`
236
+ // call. Provide the page token to retrieve the subsequent page. When
237
+ // paginating, all other parameters provided to `ListLfpStoresRequest` must
238
+ // match the call that provided the page token. The token returned as
239
+ // [nextPageToken][google.shopping.merchant.lfp.v1.ListLfpStoresResponse.next_page_token]
240
+ // in the response to the previous request.
241
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
242
+ }
243
+
244
+ // Response message for the ListLfpStores method.
245
+ message ListLfpStoresResponse {
246
+ // The stores from the specified merchant.
247
+ repeated LfpStore lfp_stores = 1;
248
+
249
+ // A token, which can be sent as `pageToken` to retrieve the next page.
250
+ // If this field is omitted, there are no subsequent pages.
251
+ string next_page_token = 2;
252
+ }