@wix/bex-utils 2.15.0 → 2.17.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/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js +9 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js.map +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js +6 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js.map +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/client/proto-generated.d.ts +176 -55
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.d.ts +99 -38
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.js +1451 -536
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/server/proto-generated.d.ts +174 -54
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.d.ts +13 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js.map +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js +9 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js.map +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js +6 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js.map +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.d.ts +13 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js.map +1 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/package.json +2 -2
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/advanced-seo-api.proto +7 -3
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/external_reference.proto +15 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/metasite/event/api/dto.proto +4 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/identity2.proto +11 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/entity.proto +9 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/media.proto +4 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/query.proto +31 -24
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJob.proto +26 -26
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobService.proto +47 -32
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventory.proto +11 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventoryMessages.proto +18 -0
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/stores_location.proto +17 -12
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/stores_location_service.proto +43 -62
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/upstream/wix/common/paging.proto +18 -9
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/provision.proto +2 -1
- package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/stores_provision_service.proto +8 -12
- package/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js +43 -18
- package/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js +1 -0
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js +1 -0
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/bex-bundled-mini-essentials.js +43 -19
- package/@wix/bex-bundled-mini-essentials/dist/esm/bex-bundled-mini-essentials.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/index.js +6 -0
- package/@wix/bi-logger-os-data/dist/cjs/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/client-testkit.js +6 -0
- package/@wix/bi-logger-os-data/dist/cjs/testkit/client-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/common.js +227 -15
- package/@wix/bi-logger-os-data/dist/cjs/testkit/common.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/node-testkit.js +6 -0
- package/@wix/bi-logger-os-data/dist/cjs/testkit/node-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/v2/index.js +106 -37
- package/@wix/bi-logger-os-data/dist/cjs/v2/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/index.js +6 -0
- package/@wix/bi-logger-os-data/dist/esm/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/client-testkit.js +6 -0
- package/@wix/bi-logger-os-data/dist/esm/testkit/client-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/common.js +227 -15
- package/@wix/bi-logger-os-data/dist/esm/testkit/common.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/node-testkit.js +6 -0
- package/@wix/bi-logger-os-data/dist/esm/testkit/node-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/v2/index.js +75 -8
- package/@wix/bi-logger-os-data/dist/esm/v2/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/types/index.d.ts +4 -2
- package/@wix/bi-logger-os-data/dist/types/testkit/client-testkit.d.ts +51 -7
- package/@wix/bi-logger-os-data/dist/types/testkit/node-testkit.d.ts +51 -7
- package/@wix/bi-logger-os-data/dist/types/types.d.ts +51 -7
- package/@wix/bi-logger-os-data/dist/types/v2/index.d.ts +72 -9
- package/@wix/bi-logger-os-data/package.json +2 -2
- package/@wix/bi-logger-os-data/src/index.ts +10 -2
- package/@wix/bi-logger-os-data/src/testkit/client-testkit.ts +57 -7
- package/@wix/bi-logger-os-data/src/testkit/common.ts +265 -15
- package/@wix/bi-logger-os-data/src/testkit/node-testkit.ts +57 -7
- package/@wix/bi-logger-os-data/src/types.ts +104 -15
- package/@wix/bi-logger-os-data/src/v2/index.ts +78 -9
- package/@wix/wix-i18n-config/dist/tsconfig.tsbuildinfo +1 -1
- package/@wix/wix-i18n-config/package.json +3 -3
- package/package.json +2 -2
|
@@ -41,7 +41,7 @@ service AsyncJobService {
|
|
|
41
41
|
payload: "wix.infra.asyncjobs.v1.AsyncJobItemFailedEvent"
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
//
|
|
44
|
+
// Creates an async job.
|
|
45
45
|
rpc CreateAsyncJob (CreateAsyncJobRequest) returns (CreateAsyncJobResponse) {
|
|
46
46
|
|
|
47
47
|
option (.wix.api.crud) = {
|
|
@@ -70,7 +70,7 @@ service AsyncJobService {
|
|
|
70
70
|
option (wix.api.required) = "CreateAsyncJobRequest.job";
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
//
|
|
73
|
+
// Retrieves a job.
|
|
74
74
|
rpc GetAsyncJob (GetAsyncJobRequest) returns (GetAsyncJobResponse) {
|
|
75
75
|
|
|
76
76
|
option (.wix.api.crud) = {
|
|
@@ -95,7 +95,7 @@ service AsyncJobService {
|
|
|
95
95
|
option (wix.api.required) = "GetAsyncJobRequest.job_id";
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
//
|
|
98
|
+
// Updates a job.
|
|
99
99
|
rpc UpdateAsyncJob (UpdateAsyncJobRequest) returns (UpdateAsyncJobResponse) {
|
|
100
100
|
|
|
101
101
|
option (.wix.api.crud) = {
|
|
@@ -128,7 +128,7 @@ service AsyncJobService {
|
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
//
|
|
131
|
+
// Deletes a job.
|
|
132
132
|
rpc DeleteAsyncJob (DeleteAsyncJobRequest) returns (DeleteAsyncJobResponse) {
|
|
133
133
|
|
|
134
134
|
option (.wix.api.crud) = {
|
|
@@ -155,7 +155,7 @@ service AsyncJobService {
|
|
|
155
155
|
option (wix.api.required) = "DeleteAsyncJobRequest.job_id";
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
//
|
|
158
|
+
// Completes a job.
|
|
159
159
|
rpc CompleteAsyncJob (CompleteAsyncJobRequest) returns (CompleteAsyncJobResponse) {
|
|
160
160
|
option (google.api.http) = {
|
|
161
161
|
put: "/v1/async-jobs/{job_id}/complete"
|
|
@@ -171,7 +171,7 @@ service AsyncJobService {
|
|
|
171
171
|
option (wix.api.required) = "CompleteAsyncJobRequest.job_id";
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
//
|
|
174
|
+
// Reports job progress.
|
|
175
175
|
rpc ReportAsyncJobProgress (ReportAsyncJobProgressRequest) returns (ReportAsyncJobProgressResponse) {
|
|
176
176
|
option (google.api.http) = {
|
|
177
177
|
post: "/v1/async-jobs/{job_id}/items/report"
|
|
@@ -193,7 +193,7 @@ service AsyncJobService {
|
|
|
193
193
|
option (wix.api.required) = "ReportAsyncJobProgressRequest.job_id";
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
//
|
|
196
|
+
// Retrieves a list of jobs.
|
|
197
197
|
rpc ListAsyncJobItems (ListAsyncJobItemsRequest) returns (ListAsyncJobItemsResponse) {
|
|
198
198
|
option (google.api.http) = {
|
|
199
199
|
get: "/v1/async-jobs/{job_id}/items"
|
|
@@ -208,40 +208,40 @@ service AsyncJobService {
|
|
|
208
208
|
|
|
209
209
|
}
|
|
210
210
|
message CreateAsyncJobRequest {
|
|
211
|
-
//
|
|
211
|
+
// Job to create.
|
|
212
212
|
AsyncJob job = 1;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
message CreateAsyncJobResponse {
|
|
216
|
-
//
|
|
216
|
+
// Created job.
|
|
217
217
|
AsyncJob job = 1;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
message GetAsyncJobRequest {
|
|
221
|
-
//
|
|
221
|
+
// Job ID.
|
|
222
222
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
message GetAsyncJobResponse {
|
|
226
|
-
//
|
|
226
|
+
// Returned job.
|
|
227
227
|
AsyncJob job = 1;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
message UpdateAsyncJobRequest {
|
|
232
|
-
//
|
|
232
|
+
// Job to update.
|
|
233
233
|
AsyncJob job = 1;
|
|
234
|
-
//
|
|
234
|
+
// Field mask.
|
|
235
235
|
google.protobuf.FieldMask mask = 2;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
message UpdateAsyncJobResponse {
|
|
239
|
-
//
|
|
239
|
+
// Updated job.
|
|
240
240
|
AsyncJob job = 1;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
message DeleteAsyncJobRequest {
|
|
244
|
-
//
|
|
244
|
+
// Job ID.
|
|
245
245
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -250,46 +250,61 @@ message DeleteAsyncJobResponse {
|
|
|
250
250
|
|
|
251
251
|
|
|
252
252
|
message ReportAsyncJobProgressRequest {
|
|
253
|
-
//
|
|
253
|
+
// Job ID.
|
|
254
254
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
255
255
|
|
|
256
|
-
//
|
|
256
|
+
// Job items being reported.
|
|
257
257
|
repeated AsyncJobItem items = 2 [(wix.api.maxSize) = 1000];
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
message ReportAsyncJobProgressResponse {}
|
|
261
261
|
|
|
262
262
|
message ListAsyncJobItemsRequest {
|
|
263
|
-
//
|
|
263
|
+
// Job ID.
|
|
264
264
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
265
|
-
//
|
|
265
|
+
// Pagination options.
|
|
266
266
|
wix.common.CursorPaging paging = 2;
|
|
267
267
|
/*
|
|
268
|
-
|
|
268
|
+
Whether to return only failed items.
|
|
269
269
|
when false, only successful items will be returned.
|
|
270
270
|
when not set, all both failed and successful will be returned.
|
|
271
271
|
*/
|
|
272
|
-
google.protobuf.BoolValue has_error = 3
|
|
272
|
+
google.protobuf.BoolValue has_error = 3 [(wix.api.field_exposure) = INTERNAL,
|
|
273
|
+
deprecated = true, (wix.api.field_deprecated) = {
|
|
274
|
+
replaced_by: "wix.infra.asyncjobs.v1.ListAsyncJobItemsRequest.status_filter"
|
|
275
|
+
target_removal_date: "2024-12-12",
|
|
276
|
+
}];
|
|
277
|
+
// async job item status filter.
|
|
278
|
+
StatusFilter status_filter = 4;
|
|
279
|
+
|
|
280
|
+
enum StatusFilter {
|
|
281
|
+
// return all items.
|
|
282
|
+
ALL = 0;
|
|
283
|
+
// return only failed items.
|
|
284
|
+
FAILED_ONLY = 1;
|
|
285
|
+
// return only successful items.
|
|
286
|
+
SUCCESSFUL_ONLY = 2;
|
|
287
|
+
}
|
|
273
288
|
}
|
|
274
289
|
|
|
275
290
|
message ListAsyncJobItemsResponse {
|
|
276
|
-
//
|
|
291
|
+
// Job items.
|
|
277
292
|
repeated AsyncJobItem results = 1;
|
|
278
|
-
//
|
|
293
|
+
// Paging metadata.
|
|
279
294
|
wix.infra.asyncjobs.v1.upstream.wix.common.PagingMetadataV2 paging_metadata = 2;
|
|
280
295
|
}
|
|
281
296
|
|
|
282
297
|
|
|
283
298
|
message CompleteAsyncJobRequest {
|
|
284
|
-
//
|
|
299
|
+
// Job ID.
|
|
285
300
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
286
|
-
//
|
|
301
|
+
// Job status.
|
|
287
302
|
CompleteStatus status = 2;
|
|
288
303
|
|
|
289
304
|
enum CompleteStatus {
|
|
290
305
|
// Job is finished.
|
|
291
306
|
FINISHED = 0; // default behaviour
|
|
292
|
-
// Job is failed
|
|
307
|
+
// Job is failed.
|
|
293
308
|
FAILED = 1;
|
|
294
309
|
}
|
|
295
310
|
}
|
|
@@ -298,26 +313,26 @@ message CompleteAsyncJobResponse {}
|
|
|
298
313
|
|
|
299
314
|
// Events
|
|
300
315
|
message AsyncJobFinishedEvent {
|
|
301
|
-
//
|
|
316
|
+
// Job ID.
|
|
302
317
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
303
318
|
}
|
|
304
319
|
|
|
305
320
|
message AsyncJobFailedEvent {
|
|
306
|
-
//
|
|
321
|
+
// Job ID.
|
|
307
322
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
308
323
|
}
|
|
309
324
|
|
|
310
325
|
message AsyncJobItemAddedEvent {
|
|
311
|
-
//
|
|
326
|
+
// Job ID.
|
|
312
327
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
313
|
-
//
|
|
328
|
+
// Job items.
|
|
314
329
|
AsyncJobItem job_item = 2;
|
|
315
330
|
}
|
|
316
331
|
|
|
317
332
|
message AsyncJobItemFailedEvent {
|
|
318
|
-
//
|
|
333
|
+
// Job ID.
|
|
319
334
|
string job_id = 1 [(wix.api.format) = GUID];
|
|
320
|
-
//
|
|
335
|
+
// Job items.
|
|
321
336
|
AsyncJobItem job_item = 2;
|
|
322
337
|
}
|
|
323
338
|
|
|
@@ -27,6 +27,17 @@ service LocationInventoryReadApi {
|
|
|
27
27
|
option (.wix.api.permission).name = "WIX_STORES.READ_INVENTORY";
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Returns an inventory item for all locations.
|
|
32
|
+
* Does not include the online-store non-location.
|
|
33
|
+
*/
|
|
34
|
+
rpc FetchLocationInventoryItemsForAllLocations (FetchLocationInventoryItemsForAllLocationsRequest) returns (FetchLocationInventoryItemsForAllLocationsResponse) {
|
|
35
|
+
option (.google.api.http).get = "/v2/location-inventory-items/products";
|
|
36
|
+
option (.wix.api.maturity) = ALPHA;
|
|
37
|
+
option (.wix.api.exposure) = INTERNAL;
|
|
38
|
+
option (.wix.api.permission).name = "WIX_STORES.READ_INVENTORY";
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
/**
|
|
31
42
|
* Returns a list of location inventory items, given the provided paging, sorting and filtering.
|
|
32
43
|
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
@@ -35,6 +35,24 @@ message FetchLocationInventoryItemResponse {
|
|
|
35
35
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
message FetchLocationInventoryItemsForAllLocationsRequest {
|
|
39
|
+
// The ID of the product which we're retrieving inventory item for
|
|
40
|
+
repeated string product_ids = 1 [
|
|
41
|
+
(.wix.api.immutable) = true,
|
|
42
|
+
(.wix.api.minLength) = 1,
|
|
43
|
+
(.wix.api.maxLength) = 36,
|
|
44
|
+
(.wix.api.maxSize) = 100,
|
|
45
|
+
(.wix.api.referenced_entity) = "wix.stores.catalog.v1.product"
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message FetchLocationInventoryItemsForAllLocationsResponse {
|
|
50
|
+
|
|
51
|
+
// The inventory item at the location
|
|
52
|
+
repeated LocationInventoryItem location_inventory_items = 1 [(.wix.api.maxSize) = 100];
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
38
56
|
message QueryLocationInventoryRequest {
|
|
39
57
|
/**
|
|
40
58
|
* Query to match inventory records against catalog product records.
|
|
@@ -9,8 +9,10 @@ import "wix/api/annotations.proto";
|
|
|
9
9
|
import "google/protobuf/wrappers.proto";
|
|
10
10
|
import "google/protobuf/timestamp.proto";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
A location is a physical or virtual site where products are sold.
|
|
14
|
+
*/
|
|
12
15
|
message StoresLocation {
|
|
13
|
-
|
|
14
16
|
option (wix.api.entity) = {
|
|
15
17
|
fqdn: "wix.stores.catalog.v3.stores_location"
|
|
16
18
|
app_def_id: "215238eb-22a5-4c36-9e7b-e7c08025e04e"
|
|
@@ -29,35 +31,38 @@ message StoresLocation {
|
|
|
29
31
|
segment: PUBLIC
|
|
30
32
|
};
|
|
31
33
|
|
|
32
|
-
//
|
|
34
|
+
// Stores location ID.
|
|
33
35
|
google.protobuf.StringValue id = 1 [(wix.api.format) = GUID, (wix.api.readOnly) = true];
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
|
-
Revision number, which increments by 1 each time the
|
|
38
|
+
Revision number, which increments by 1 each time the Stores location is updated.
|
|
37
39
|
To prevent conflicting changes,
|
|
38
|
-
the current revision must be passed when updating the
|
|
40
|
+
the current revision must be passed when updating the Stores location.
|
|
39
41
|
|
|
40
|
-
Ignored when creating a
|
|
41
|
-
|
|
42
|
+
Ignored when creating a Stores location.
|
|
43
|
+
*/
|
|
42
44
|
google.protobuf.Int64Value revision = 2 [(wix.api.readOnly) = true];
|
|
43
45
|
|
|
44
|
-
// Date and time the
|
|
46
|
+
// Date and time the Stores location was created.
|
|
45
47
|
google.protobuf.Timestamp created_date = 3 [(wix.api.readOnly) = true];
|
|
46
48
|
|
|
47
|
-
// Date and time the
|
|
49
|
+
// Date and time the Stores location was last updated.
|
|
48
50
|
google.protobuf.Timestamp updated_date = 4 [(wix.api.readOnly) = true];
|
|
49
51
|
|
|
50
52
|
// Wix location ID.
|
|
51
53
|
// Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
52
|
-
google.protobuf.StringValue wix_location_id = 5 [(.wix.api.format) = GUID, (.wix.api.immutable) = true, (.wix.api.referenced_entity) = "
|
|
54
|
+
google.protobuf.StringValue wix_location_id = 5 [(.wix.api.format) = GUID, (.wix.api.immutable) = true, (.wix.api.referenced_entity) = "wix.locations.v1.location"];
|
|
53
55
|
|
|
54
|
-
//
|
|
56
|
+
// Location type.
|
|
57
|
+
//
|
|
58
|
+
// + `VIRTUAL`: Online store.
|
|
59
|
+
// + `PHYSICAL`: Physical location. For example, for POS.
|
|
55
60
|
LocationType location_type = 6 [(.wix.api.readOnly) = true];
|
|
56
61
|
|
|
57
|
-
//
|
|
62
|
+
// Stores location name.
|
|
58
63
|
string name = 7 [(.wix.api.readOnly) = true, (wix.api.minLength) = 1, (wix.api.maxLength) = 150];
|
|
59
64
|
|
|
60
|
-
// Whether the
|
|
65
|
+
// Whether the location is the site's default location.
|
|
61
66
|
bool default_location = 8;
|
|
62
67
|
|
|
63
68
|
enum LocationType {
|
|
@@ -25,7 +25,7 @@ import "wix/api/api_errors.proto";
|
|
|
25
25
|
Manages StoresLocations
|
|
26
26
|
*/
|
|
27
27
|
service StoresLocationService {
|
|
28
|
-
option (wix.api.service_maturity) =
|
|
28
|
+
option (wix.api.service_maturity) = BETA;
|
|
29
29
|
option (wix.api.service_exposure) = PUBLIC;
|
|
30
30
|
option (wix.api.service_entity).message = "wix.stores.catalog.location.v3.StoresLocation";
|
|
31
31
|
option (.wix.api.event) = {
|
|
@@ -36,10 +36,7 @@ service StoresLocationService {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
Creates a
|
|
40
|
-
|
|
41
|
-
The request body must include os_location_id of a corresponding site location:
|
|
42
|
-
https://bo.wix.com/wix-docs/rest/business-tools/locations/introduction
|
|
39
|
+
Creates a Stores location.
|
|
43
40
|
*/
|
|
44
41
|
rpc CreateStoresLocation (CreateStoresLocationRequest) returns (CreateStoresLocationResponse) {
|
|
45
42
|
option (google.api.http).post = "/v3/locations";
|
|
@@ -53,7 +50,7 @@ service StoresLocationService {
|
|
|
53
50
|
item_field: "stores_location"
|
|
54
51
|
}
|
|
55
52
|
};
|
|
56
|
-
// Triggered when a
|
|
53
|
+
// Triggered when a Stores location is created.
|
|
57
54
|
option (wix.api.callback) = {
|
|
58
55
|
event_type: CREATED
|
|
59
56
|
permission: "WIX_STORES.STORES_LOCATION_READ"
|
|
@@ -65,7 +62,7 @@ service StoresLocationService {
|
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
/**
|
|
68
|
-
Retrieves a
|
|
65
|
+
Retrieves a Stores location.
|
|
69
66
|
*/
|
|
70
67
|
rpc GetStoresLocation (GetStoresLocationRequest) returns (GetStoresLocationResponse) {
|
|
71
68
|
option (google.api.http).get = "/v3/locations/{stores_location_id}";
|
|
@@ -80,12 +77,11 @@ service StoresLocationService {
|
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
/**
|
|
83
|
-
Updates a
|
|
84
|
-
|
|
85
|
-
`revision` increments by 1.
|
|
86
|
-
The current `revision` must be passed when updating the
|
|
87
|
-
This ensures you're working with the latest
|
|
88
|
-
and prevents unintended overwrites.
|
|
80
|
+
Updates a Stores location.
|
|
81
|
+
|
|
82
|
+
Each time the Stores location is updated, `revision` increments by 1.
|
|
83
|
+
The current `revision` must be passed when updating the Stores location.
|
|
84
|
+
This ensures you're working with the latest Stores location and prevents unintended overwrites.
|
|
89
85
|
*/
|
|
90
86
|
rpc UpdateStoresLocation (UpdateStoresLocationRequest) returns (UpdateStoresLocationResponse) {
|
|
91
87
|
option (google.api.http).patch = "/v3/locations/{stores_location.id}";
|
|
@@ -94,19 +90,12 @@ service StoresLocationService {
|
|
|
94
90
|
option (wix.api.required) = "UpdateStoresLocationRequest.stores_location.id";
|
|
95
91
|
option (wix.api.required) = "UpdateStoresLocationRequest.stores_location.revision";
|
|
96
92
|
option (wix.api.exposure) = PRIVATE;
|
|
97
|
-
// Triggered when a
|
|
93
|
+
// Triggered when a Stores location is updated.
|
|
98
94
|
option (wix.api.callback) = {
|
|
99
95
|
event_type: UPDATED
|
|
100
96
|
permission: "WIX_STORES.STORES_LOCATION_READ"
|
|
101
97
|
};
|
|
102
|
-
|
|
103
|
-
(explanation)
|
|
104
|
-
Update endpoint usually accepts FieldMask object. From REST client perspective it is redundant as it can be inferred
|
|
105
|
-
from the actual JSON payload that was sent. This field annotation will tell the framework to use the JSON body and
|
|
106
|
-
automatically construct the fieldmask.
|
|
107
|
-
Refer to [AIP 4006 - Update Endpoints][1] to learn more about update endpoint and why we prefer patch over put.
|
|
108
|
-
[1]: https://dev.wix.com/docs/rnd-general/articles/p-13-n-guidelines-ai-ps/guidance-ai-ps/standard-methods/4006-update
|
|
109
|
-
*/
|
|
98
|
+
|
|
110
99
|
option (wix.http.infer_fieldmask) = {
|
|
111
100
|
from: "stores_location"
|
|
112
101
|
fieldmask: "field_mask"
|
|
@@ -121,17 +110,14 @@ service StoresLocationService {
|
|
|
121
110
|
}
|
|
122
111
|
|
|
123
112
|
/**
|
|
124
|
-
Deletes a
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Deleting a StoresLocation permanently removes them from the StoresLocation List.
|
|
113
|
+
Deletes a Stores location.
|
|
128
114
|
*/
|
|
129
115
|
rpc DeleteStoresLocation (DeleteStoresLocationRequest) returns (DeleteStoresLocationResponse) {
|
|
130
116
|
option (google.api.http).delete = "/v3/locations/{stores_location_id}";
|
|
131
117
|
option (wix.api.permission).name = "WIX_STORES.STORES_LOCATION_DELETE";
|
|
132
118
|
option (wix.api.required) = "DeleteStoresLocationRequest.stores_location_id";
|
|
133
119
|
option (wix.api.exposure) = PRIVATE;
|
|
134
|
-
// Triggered when a
|
|
120
|
+
// Triggered when a Stores location is deleted.
|
|
135
121
|
option (wix.api.callback) = {
|
|
136
122
|
event_type: DELETED
|
|
137
123
|
permission: "WIX_STORES.STORES_LOCATION_READ"
|
|
@@ -157,6 +143,24 @@ service StoresLocationService {
|
|
|
157
143
|
|
|
158
144
|
Notice, not all sits locations will be fetched, only the ones that are assigned as inventory locations
|
|
159
145
|
*/
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
Retrieves a list of up to 100 Stores locations, given the provided filtering, sorting, and cursor paging.
|
|
149
|
+
Pass supported values to the `fields` array in the request to include those fields in the response.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
Query Stores Locations runs with these defaults, which you can override:
|
|
153
|
+
|
|
154
|
+
- `createdDate` is sorted in `DESC` order
|
|
155
|
+
- `cursorPaging.limit` is `100`
|
|
156
|
+
|
|
157
|
+
For field support for filters and sorting,
|
|
158
|
+
see [Stores Locations: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/stores-locations-v3/supported-filters-and-sorting).
|
|
159
|
+
|
|
160
|
+
To learn about working with _Query_ endpoints, see
|
|
161
|
+
[API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
|
|
162
|
+
and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
163
|
+
*/
|
|
160
164
|
rpc QueryStoresLocations (QueryStoresLocationsRequest) returns (QueryStoresLocationsResponse) {
|
|
161
165
|
option (google.api.http).post = "/v3/locations/query";
|
|
162
166
|
option (wix.api.permission).name = "WIX_STORES.STORES_LOCATION_READ";
|
|
@@ -164,20 +168,6 @@ service StoresLocationService {
|
|
|
164
168
|
method: QUERY
|
|
165
169
|
query_options: {
|
|
166
170
|
items_field: 'stores_locations'
|
|
167
|
-
/**
|
|
168
|
-
(explanation)
|
|
169
|
-
|
|
170
|
-
Unlike other CRUD methods, Query allows to declare capabilities spec, e.g. what type of filters and sorting are
|
|
171
|
-
possible with the API.
|
|
172
|
-
|
|
173
|
-
By default, nothing is supported. This means that you have to explicitly spec what is supported by each field
|
|
174
|
-
(whitelist). The reasoning behind this verbosity is to be future-compatible, e.g., avoid the case when the query
|
|
175
|
-
language expands and new capabilities are assumed to be supported when in actuality they are not.
|
|
176
|
-
|
|
177
|
-
Refer to the [ADR 6: API CRUD Annotations][1] to learn more about WQL annotations.
|
|
178
|
-
|
|
179
|
-
[1]: https://bo.wix.com/wix-docs/server-guild/adrs/server-infra-adrs/adr-005-fieldmask-in-method-level#adrs_server-infra-adrs_adr-006-crud-annotations_adr-6-api-crud-annotations
|
|
180
|
-
*/
|
|
181
171
|
wql: {
|
|
182
172
|
pattern: {
|
|
183
173
|
field: "id"
|
|
@@ -233,36 +223,27 @@ Retrieves the default inventory location, or creates it if it doesn't exist.
|
|
|
233
223
|
}
|
|
234
224
|
|
|
235
225
|
message CreateStoresLocationRequest {
|
|
236
|
-
//
|
|
226
|
+
// Stores location to create.
|
|
237
227
|
StoresLocation stores_location = 1;
|
|
238
228
|
}
|
|
239
229
|
|
|
240
230
|
message CreateStoresLocationResponse {
|
|
241
|
-
//
|
|
231
|
+
// Created Stores location.
|
|
242
232
|
StoresLocation stores_location = 1;
|
|
243
233
|
}
|
|
244
234
|
|
|
245
235
|
message GetStoresLocationRequest {
|
|
246
|
-
|
|
247
|
-
(explanation)
|
|
248
|
-
|
|
249
|
-
Each field may contain various validations. Refer to [AIP 3004 - Field Validations][1] to learn about available
|
|
250
|
-
validations like `maxLength` and `format`.
|
|
251
|
-
|
|
252
|
-
[1]: https://dev.wix.com/docs/rnd-general/articles/p-13-n-guidelines-ai-ps/guidance-ai-ps/validations/3004-field-validations
|
|
253
|
-
*/
|
|
254
|
-
|
|
255
|
-
// ID of the StoresLocation to retrieve.
|
|
236
|
+
// Stores location ID.
|
|
256
237
|
string stores_location_id = 1 [(wix.api.format) = GUID];
|
|
257
238
|
}
|
|
258
239
|
|
|
259
240
|
message GetStoresLocationResponse {
|
|
260
|
-
//
|
|
241
|
+
// Stores location.
|
|
261
242
|
StoresLocation stores_location = 1;
|
|
262
243
|
}
|
|
263
244
|
|
|
264
245
|
message UpdateStoresLocationRequest {
|
|
265
|
-
//
|
|
246
|
+
// Stores location to update.
|
|
266
247
|
StoresLocation stores_location = 1;
|
|
267
248
|
|
|
268
249
|
/*
|
|
@@ -274,12 +255,12 @@ message UpdateStoresLocationRequest {
|
|
|
274
255
|
}
|
|
275
256
|
|
|
276
257
|
message UpdateStoresLocationResponse {
|
|
277
|
-
// Updated
|
|
258
|
+
// Updated Stores location.
|
|
278
259
|
StoresLocation stores_location = 1;
|
|
279
260
|
}
|
|
280
261
|
|
|
281
262
|
message DeleteStoresLocationRequest {
|
|
282
|
-
//
|
|
263
|
+
// Stores location ID.
|
|
283
264
|
string stores_location_id = 1 [(wix.api.format) = GUID];
|
|
284
265
|
}
|
|
285
266
|
|
|
@@ -287,15 +268,15 @@ message DeleteStoresLocationResponse {
|
|
|
287
268
|
}
|
|
288
269
|
|
|
289
270
|
message QueryStoresLocationsRequest {
|
|
290
|
-
//
|
|
271
|
+
// Query options.
|
|
291
272
|
wix.stores.catalog.location.v3.upstream.wix.query.CursorQuery query = 1;
|
|
292
273
|
}
|
|
293
274
|
|
|
294
275
|
message QueryStoresLocationsResponse {
|
|
295
|
-
// List of
|
|
276
|
+
// List of Stores locations.
|
|
296
277
|
repeated StoresLocation stores_locations = 1 [(.wix.api.minSize) = 1, (.wix.api.maxSize) = 100];
|
|
297
278
|
|
|
298
|
-
//
|
|
279
|
+
// Details on the paged set of results returned.
|
|
299
280
|
wix.stores.catalog.location.v3.upstream.wix.common.CursorPagingMetadata paging_metadata = 2;
|
|
300
281
|
}
|
|
301
282
|
|
|
@@ -303,6 +284,6 @@ message GetOrCreateDefaultStoresLocationRequest {
|
|
|
303
284
|
}
|
|
304
285
|
|
|
305
286
|
message GetOrCreateDefaultStoresLocationResponse {
|
|
306
|
-
//
|
|
287
|
+
// Default Stores location.
|
|
307
288
|
StoresLocation stores_location = 1;
|
|
308
|
-
}
|
|
289
|
+
}
|
|
@@ -53,9 +53,12 @@ message PagingMetadata {
|
|
|
53
53
|
google.protobuf.Int32Value total = 3;
|
|
54
54
|
// Flag that indicates the server failed to calculate the `total` field.
|
|
55
55
|
google.protobuf.BoolValue too_many_to_count = 4;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
/*
|
|
57
|
+
Whether there are more pages to retrieve following the current page.
|
|
58
|
+
|
|
59
|
+
+ `true`: Another page of results can be retrieved.
|
|
60
|
+
+ `false`: This is the last page.
|
|
61
|
+
*/
|
|
59
62
|
google.protobuf.BoolValue has_next = 5 [(.wix.api.field_exposure) = PRIVATE];
|
|
60
63
|
}
|
|
61
64
|
|
|
@@ -79,9 +82,12 @@ message PagingMetadataV2 {
|
|
|
79
82
|
google.protobuf.BoolValue too_many_to_count = 4;
|
|
80
83
|
// Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.
|
|
81
84
|
Cursors cursors = 5;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
/*
|
|
86
|
+
Whether there are more pages to retrieve following the current page.
|
|
87
|
+
|
|
88
|
+
+ `true`: Another page of results can be retrieved.
|
|
89
|
+
+ `false`: This is the last page.
|
|
90
|
+
*/
|
|
85
91
|
google.protobuf.BoolValue has_next = 6 [(.wix.api.field_exposure) = PRIVATE];
|
|
86
92
|
}
|
|
87
93
|
|
|
@@ -94,9 +100,12 @@ message CursorPagingMetadata {
|
|
|
94
100
|
google.protobuf.Int32Value count = 1;
|
|
95
101
|
// Offset that was requested.
|
|
96
102
|
Cursors cursors = 2;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
103
|
+
/*
|
|
104
|
+
Whether there are more pages to retrieve following the current page.
|
|
105
|
+
|
|
106
|
+
+ `true`: Another page of results can be retrieved.
|
|
107
|
+
+ `false`: This is the last page.
|
|
108
|
+
*/
|
|
100
109
|
google.protobuf.BoolValue has_next = 3;
|
|
101
110
|
}
|
|
102
111
|
|
|
@@ -11,12 +11,13 @@ import "wix/api/annotations.proto";
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
|
|
14
|
+
Provision contains the version of the catalog a store was installed on.
|
|
15
15
|
Only one Provision entity can exist per tenant. Retrieving a provision is managed completely by
|
|
16
16
|
callScope, no api parameters are needed.
|
|
17
17
|
|
|
18
18
|
Services should only use this service if they are part of the install flow.
|
|
19
19
|
*/
|
|
20
|
+
|
|
20
21
|
message Provision {
|
|
21
22
|
/**
|
|
22
23
|
(explanation)
|