@wix/bex-utils 2.36.0 → 2.39.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 (106) hide show
  1. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.d.ts +2 -1
  2. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js +27 -1
  3. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js.map +1 -1
  4. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js +6 -0
  5. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js.map +1 -1
  6. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/client/proto-generated.d.ts +2047 -6692
  7. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.d.ts +543 -2894
  8. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.js +111646 -145254
  9. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/server/proto-generated.d.ts +2169 -6764
  10. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.d.ts +55 -13
  11. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js +16 -1
  12. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js.map +1 -1
  13. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.d.ts +2 -1
  14. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js +25 -0
  15. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js.map +1 -1
  16. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js +6 -0
  17. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js.map +1 -1
  18. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.d.ts +55 -13
  19. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js +16 -1
  20. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js.map +1 -1
  21. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/package.json +2 -2
  22. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/advanced-seo-api.proto +3 -3
  23. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/additional_fee.proto +47 -0
  24. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/catalog_reference.proto +1 -1
  25. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/description_line.proto +4 -1
  26. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_data.proto +10 -2
  27. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/payment_option.proto +3 -3
  28. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/platform_catalog_spi.proto +12 -0
  29. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/policy.proto +14 -0
  30. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/subscription_option_info.proto +25 -6
  31. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platform_search.proto +2 -2
  32. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/location.proto +16 -0
  33. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/pickup_address.proto +2 -0
  34. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/price.proto +0 -1
  35. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/metasite/event/api/dto.proto +6 -4
  36. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/metasite/event/api/events.proto +15 -0
  37. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/annotations.proto +2 -0
  38. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/callback.proto +7 -0
  39. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/errors.proto +2 -0
  40. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/validations.proto +5 -0
  41. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/catalog.proto +1 -0
  42. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/media.proto +6 -1
  43. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/price.proto +3 -1
  44. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/product.proto +3 -1
  45. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/productOption.proto +6 -3
  46. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/domainevents/domainevents.proto +1 -1
  47. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/media.proto +17 -0
  48. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/wixlink.proto +2 -0
  49. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/cart.proto +4 -0
  50. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupon.proto +3 -0
  51. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupons.proto +8 -0
  52. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/response-status.proto +1 -0
  53. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/specification.proto +4 -0
  54. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/cart.proto +3 -0
  55. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupon.proto +2 -0
  56. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/couponAppliedEvent.proto +1 -0
  57. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons-manager-ui.proto +5 -0
  58. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons.proto +12 -0
  59. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/internal-coupons.proto +2 -0
  60. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/response-status.proto +1 -0
  61. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/scope.proto +1 -0
  62. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/specification.proto +1 -0
  63. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJob.proto +132 -132
  64. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobItem.proto +14 -14
  65. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobService.proto +13 -13
  66. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/upstream/wix/common/paging.proto +17 -17
  67. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/inventory.proto +1 -1
  68. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/inventoryItem.proto +5 -6
  69. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventoryItem.proto +1 -1
  70. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventoryMessages.proto +1 -1
  71. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/paypal-payment-method.proto +3 -0
  72. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/payment.proto +3 -0
  73. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/spi/definitions.proto +2 -1
  74. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/provision.proto +9 -1
  75. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/provision_action_events.proto +15 -0
  76. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/stores_provision_service.proto +11 -26
  77. package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +12 -0
  78. package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -1
  79. package/@wix/bex-bundled-mini-essentials/package.json +1 -1
  80. package/package.json +3 -3
  81. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/site/properties/upstream/wix/common/address.proto +0 -38
  82. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/InvalidateCache.proto +0 -46
  83. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/InvalidateCacheInternal.proto +0 -25
  84. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/InvalidateCacheService.proto +0 -80
  85. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/v2/invalidate_cache.proto +0 -27
  86. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/immigrator/tasks/api/generic/bulk_migration_service.proto +0 -34
  87. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/immigrator/tasks/api/generic/single_migration_service.proto +0 -25
  88. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/backoffice-service.proto +0 -40
  89. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/location.proto +0 -155
  90. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/locations-service.proto +0 -484
  91. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/messaging-service.proto +0 -32
  92. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/pagination.proto +0 -22
  93. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/notifications.proto +0 -89
  94. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/properties-sections.proto +0 -23
  95. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/properties.proto +0 -213
  96. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/service.proto +0 -268
  97. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/identification2.proto +0 -165
  98. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/identity2.proto +0 -173
  99. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/identity_refresh.proto +0 -42
  100. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/site/properties/v5/properties.proto +0 -155
  101. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/site/properties/v5/site_properties_service.proto +0 -324
  102. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/stores_location.proto +0 -90
  103. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/stores_location_service.proto +0 -284
  104. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/upstream/wix/common/paging.proto +0 -121
  105. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/upstream/wix/common/sorting.proto +0 -26
  106. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/upstream/wix/query/query.proto +0 -436
@@ -1,121 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package wix.stores.catalog.location.v3.upstream.wix.common;
4
-
5
- import "google/protobuf/wrappers.proto";
6
- import "wix/api/annotations.proto";
7
- import "wix/api/validations.proto";
8
-
9
- option java_multiple_files = true;
10
- option java_package = "com.wix.stores.catalog.location.v3.upstream.wix.common";
11
-
12
- message Paging {
13
- option (.wix.api.decomposite_of) = "wix.common.Paging";
14
- option (.wix.api.decomposition_minimum_fields) = {
15
- field: "limit"
16
- field: "offset"
17
- };
18
- // Number of items to load.
19
- google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0];
20
- // Number of items to skip in the current sort order.
21
- google.protobuf.Int32Value offset = 2 [(.wix.api.min) = 0];
22
- }
23
-
24
- message CursorPaging {
25
- option (.wix.api.decomposite_of) = "wix.common.CursorPaging";
26
- option (.wix.api.decomposition_minimum_fields) = {
27
- field: "limit"
28
- field: "cursor"
29
- };
30
- // Number of items to load.
31
- google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0, (.wix.api.max) = 100];
32
- /*
33
- Pointer to the next or previous page in the list of results.
34
-
35
- You can get the relevant cursor token
36
- from the `pagingMetadata` object in the previous call's response.
37
- Not relevant for the first request.
38
- */
39
- google.protobuf.StringValue cursor = 2 [(.wix.api.maxLength) = 16000];;
40
- }
41
-
42
- message PagingMetadata {
43
- option (.wix.api.decomposite_of) = "wix.common.PagingMetadata";
44
- option (.wix.api.decomposition_minimum_fields) = {
45
- field: "count"
46
- field: "offset"
47
- };
48
- // Number of items returned in the response.
49
- google.protobuf.Int32Value count = 1;
50
- // Offset that was requested.
51
- google.protobuf.Int32Value offset = 2;
52
- // Total number of items that match the query.
53
- google.protobuf.Int32Value total = 3;
54
- // Flag that indicates the server failed to calculate the `total` field.
55
- google.protobuf.BoolValue too_many_to_count = 4;
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
- */
62
- google.protobuf.BoolValue has_next = 5 [(.wix.api.field_exposure) = PRIVATE];
63
- }
64
-
65
- message PagingMetadataV2 {
66
- option (.wix.api.decomposite_of) = "wix.common.PagingMetadataV2";
67
- option (.wix.api.decomposition_minimum_fields) = {
68
- field: "count"
69
- field: "offset"
70
- };
71
- option (.wix.api.decomposition_minimum_fields) = {
72
- field: "count"
73
- field: "cursors"
74
- };
75
- // Number of items returned in the response.
76
- google.protobuf.Int32Value count = 1;
77
- // Offset that was requested.
78
- google.protobuf.Int32Value offset = 2;
79
- // Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.
80
- google.protobuf.Int32Value total = 3;
81
- // Flag that indicates the server failed to calculate the `total` field.
82
- google.protobuf.BoolValue too_many_to_count = 4;
83
- // Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.
84
- Cursors cursors = 5;
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
- */
91
- google.protobuf.BoolValue has_next = 6 [(.wix.api.field_exposure) = PRIVATE];
92
- }
93
-
94
-
95
- // This is the preferred message for cursor-paging enabled services
96
-
97
- message CursorPagingMetadata {
98
- option (.wix.api.decomposite_of) = "wix.common.CursorPagingMetadata";
99
- // Number of items returned in the response.
100
- google.protobuf.Int32Value count = 1;
101
- // Offset that was requested.
102
- Cursors cursors = 2;
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
- */
109
- google.protobuf.BoolValue has_next = 3;
110
- }
111
-
112
- message Cursors {
113
- option (.wix.api.decomposite_of) = "wix.common.Cursors";
114
- option (.wix.api.decomposition_minimum_fields) = {
115
- field: "next"
116
- };
117
- // Cursor pointing to next page in the list of results.
118
- google.protobuf.StringValue next = 1 [(.wix.api.maxLength) = 16000];
119
- // Cursor pointing to previous page in the list of results.
120
- google.protobuf.StringValue prev = 2 [(.wix.api.maxLength) = 16000];
121
- }
@@ -1,26 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package wix.stores.catalog.location.v3.upstream.wix.common;
4
-
5
- import "wix/api/annotations.proto";
6
- import "wix/api/validations.proto";
7
-
8
- option java_multiple_files = true;
9
- option java_package = "com.wix.stores.catalog.location.v3.upstream.wix.common";
10
-
11
- message Sorting {
12
- option (.wix.api.decomposite_of) = "wix.common.Sorting";
13
- option (.wix.api.decomposition_minimum_fields) = {
14
- field: "field_name"
15
- field: "order"
16
- };
17
- // Name of the field to sort by.
18
- string field_name = 1 [(.wix.api.maxLength) = 16000];
19
- // Sort order.
20
- SortOrder order = 2;
21
- }
22
-
23
- enum SortOrder {
24
- ASC = 0;
25
- DESC = 1;
26
- }
@@ -1,436 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package wix.stores.catalog.location.v3.upstream.wix.query;
4
-
5
- import "google/protobuf/struct.proto";
6
- import "google/protobuf/wrappers.proto";
7
- import "wix/stores/catalog/location/v3/upstream/wix/common/sorting.proto";
8
- import "wix/stores/catalog/location/v3/upstream/wix/common/paging.proto";
9
- import "wix/api/annotations.proto";
10
- import "wix/api/validations.proto";
11
-
12
- option java_multiple_files = true;
13
- option java_outer_classname = "QueryProto";
14
- option java_package = "com.wix.stores.catalog.location.v3.upstream.wix.query";
15
-
16
- message Query {
17
- option (.wix.api.decomposite_of) = "wix.common.Query";
18
- option (.wix.api.decomposition_minimum_fields) = {
19
- field: "filter"
20
- field: "sort"
21
- field: "paging"
22
- };
23
- //Filter object in the following format:
24
- //`"filter" : {
25
- // "fieldName1": "value1",
26
- // "fieldName2":{"$operator":"value2"}
27
- // }`
28
- //Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
29
- google.protobuf.Value filter = 1;
30
- //Sort object in the following format:
31
- //`[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
32
- repeated wix.common.Sorting sort = 2 [(.wix.api.maxSize) = 8];
33
- //Paging options to limit and skip the number of items.
34
- wix.common.Paging paging = 3;
35
- //Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.
36
- repeated string fields = 4 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 20];
37
- //Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.
38
- repeated string fieldsets = 5 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 20];
39
- }
40
-
41
- message QueryV2 {
42
- option (.wix.api.decomposite_of) = "wix.common.QueryV2";
43
- option (.wix.api.decomposition_minimum_fields) = {
44
- field: "filter"
45
- field: "sort"
46
- field: "paging"
47
- };
48
- option (.wix.api.decomposition_minimum_fields) = {
49
- field: "filter"
50
- field: "sort"
51
- field: "cursor_paging"
52
- };
53
- //Filter object in the following format:
54
- //`"filter" : {
55
- // "fieldName1": "value1",
56
- // "fieldName2":{"$operator":"value2"}
57
- // }`
58
- //Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
59
- google.protobuf.Struct filter = 1;
60
- //Sort object in the following format:
61
- //`[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
62
- repeated wix.common.Sorting sort = 2 [(.wix.api.maxSize) = 8];
63
- //Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.
64
- repeated string fields = 4 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 20];
65
- //Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.
66
- repeated string fieldsets = 5 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 20];
67
- oneof pagingMethod {
68
- //Paging options to limit and skip the number of items.
69
- wix.common.Paging paging = 3;
70
- //Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.
71
- wix.common.CursorPaging cursor_paging = 6;
72
- }
73
- }
74
-
75
- message CursorQuery {
76
- option (.wix.api.decomposite_of) = "wix.common.CursorQuery";
77
- //Filter object in the following format:
78
- //`"filter" : {
79
- // "fieldName1": "value1",
80
- // "fieldName2":{"$operator":"value2"}
81
- // }`
82
- //Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
83
- google.protobuf.Struct filter = 1;
84
- //Sort object in the following format:
85
- //`[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
86
- repeated wix.common.Sorting sort = 2 [(.wix.api.maxSize) = 8];
87
- reserved 3;
88
- reserved 4;
89
- reserved 5;
90
- oneof pagingMethod {
91
- //Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.
92
- wix.common.CursorPaging cursor_paging = 6;
93
- }
94
- }
95
-
96
- message Search {
97
- option (.wix.api.decomposite_of) = "wix.common.Search";
98
- option (.wix.api.decomposition_minimum_fields) = {
99
- field: "filter"
100
- field: "sort"
101
- field: "paging"
102
- };
103
- option (.wix.api.decomposition_minimum_fields) = {
104
- field: "filter"
105
- field: "sort"
106
- field: "cursor_paging"
107
- };
108
- //A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf)
109
- google.protobuf.Struct filter = 1;
110
- //Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
111
- repeated wix.common.Sorting sort = 2 [(.wix.api.maxSize) = 8];
112
- //Projection on the result object - list of specific field names to return. If fieldsets are also specified, return the union of fieldsets and fields
113
- repeated string fields = 3 [(.wix.api.maxLength) = 200, (.wix.api.maxSize) = 20];
114
- //Projection on the result object - list of named projections. E.g. "basic" will return id and name fields. Specifying multiple fieldsets will return the union of fields from all. Specifying fieldsets and fields will also return the union of fields.
115
- repeated string fieldsets = 4 [(.wix.api.maxLength) = 100, (.wix.api.maxSize) = 20];
116
- //Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
117
- repeated Aggregation aggregations = 5 [(.wix.api.maxSize) = 8];
118
- //free text to match in searchable fields
119
- SearchDetails search = 6;
120
- oneof paging_method {
121
- //Pointer to page of results using offset. Can not be used together with 'cursor_paging'
122
- wix.common.Paging paging = 7;
123
- //Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort'
124
- wix.common.CursorPaging cursor_paging = 8;
125
- }
126
- }
127
-
128
- message CursorSearch {
129
- option (.wix.api.decomposite_of) = "wix.common.CursorSearch";
130
- //A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf)
131
- google.protobuf.Struct filter = 1;
132
- //Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
133
- repeated wix.common.Sorting sort = 2 [(.wix.api.maxSize) = 8];
134
- reserved 3;
135
- reserved 4;
136
- reserved 7;
137
- //Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
138
- repeated Aggregation aggregations = 5 [(.wix.api.maxSize) = 8];
139
- //free text to match in searchable fields
140
- SearchDetails search = 6;
141
- oneof paging_method {
142
- //Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort'
143
- wix.common.CursorPaging cursor_paging = 8;
144
- }
145
- }
146
-
147
- message SearchDetails {
148
- option (.wix.api.decomposite_of) = "wix.common.SearchDetails";
149
- enum Mode {
150
- OR = 0; // any
151
- AND = 1; // all
152
- }
153
- Mode mode = 1; // boolean search mode
154
- google.protobuf.StringValue expression = 2 [(.wix.api.maxLength) = 100]; // Search term or expression
155
- // Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path
156
- repeated string fields = 3 [(.wix.api.maxLength) = 200, (.wix.api.maxSize) = 20];
157
- bool fuzzy = 4; // flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm)
158
- }
159
-
160
- enum AggregationType {
161
- UNKNOWN_AGGREGATION_TYPE = 0;
162
- VALUE = 1;
163
- RANGE = 2;
164
- SCALAR = 3;
165
- }
166
-
167
- enum ScalarType {
168
- UNKNOWN_SCALAR_TYPE = 0;
169
- COUNT_DISTINCT = 1;
170
- MIN = 2;
171
- MAX = 3;
172
- SUM = 4 [(.wix.api.enum_exposure) = PRIVATE];
173
- AVG = 5 [(.wix.api.enum_exposure) = PRIVATE];
174
- }
175
-
176
- message Aggregation {
177
- option (.wix.api.decomposite_of) = "wix.common.Aggregation";
178
- message RangeAggregation {
179
- option (.wix.api.decomposite_of) = "wix.common.Aggregation.RangeAggregation";
180
- message RangeBucket {
181
- option (.wix.api.decomposite_of) = "wix.common.Aggregation.RangeAggregation.RangeBucket";
182
- google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range. Required if to is not given.
183
- google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range. Required if from is not given.
184
- }
185
- // List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds
186
- repeated RangeBucket buckets = 1 [(.wix.api.maxSize) = 50];
187
- }
188
-
189
- message ValueAggregation {
190
- option (.wix.api.decomposite_of) = "wix.common.Aggregation.ValueAggregation";
191
- enum SortType {
192
- COUNT = 0;
193
- VALUE = 1;
194
- }
195
- enum SortDirection {
196
- DESC = 0;
197
- ASC = 1;
198
- }
199
- SortType sort_type = 1; // Should sort by number of matches or value of the field
200
- SortDirection sort_direction = 2; // Should sort in ascending or descending order
201
- google.protobuf.Int32Value limit = 3; // How many aggregations would you like to return? Can be between 1 and 250. 10 is the default.
202
- }
203
-
204
- message ScalarAggregation {
205
- option (.wix.api.decomposite_of) = "wix.common.Aggregation.ScalarAggregation";
206
- ScalarType type = 1; // Define the operator for the scalar aggregation
207
- }
208
-
209
- google.protobuf.StringValue name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, should be unique, will appear in aggregation results
210
- AggregationType type = 2; // Type of aggregation, client must provide matching aggregation field below
211
- string field_path = 3 [(.wix.api.maxLength) = 200]; // Field to aggregate by, use dot notation to specify json path
212
- oneof kind {
213
- ValueAggregation value = 4; // Value aggregation
214
- RangeAggregation range = 5; // Range aggregation
215
- ScalarAggregation scalar = 6; // Scalar aggregation
216
- }
217
- }
218
-
219
- message AggregationData {
220
- option (.wix.api.decomposite_of) = "wix.common.AggregationData";
221
- message AggregationResults {
222
- option (.wix.api.decomposite_of) = "wix.common.AggregationData.AggregationResults";
223
- message ValueResults {
224
- option (.wix.api.decomposite_of) = "wix.common.AggregationData.AggregationResults.ValueResults";
225
- message ValueAggregationResult {
226
- option (.wix.api.decomposite_of) = "wix.common.AggregationData.AggregationResults.ValueResults.ValueAggregationResult";
227
- string value = 1 [(.wix.api.maxLength) = 100]; // Value of the field
228
- int32 count = 2; // Count of entities with this value
229
- }
230
- repeated ValueAggregationResult results = 1 [(.wix.api.maxSize) = 250]; // List of value aggregations
231
- }
232
-
233
- message RangeResults {
234
- option (.wix.api.decomposite_of) = "wix.common.AggregationData.AggregationResults.RangeResults";
235
- message RangeAggregationResult {
236
- option (.wix.api.decomposite_of) = "wix.common.AggregationData.AggregationResults.RangeResults.RangeAggregationResult";
237
- google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range
238
- google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range
239
- int32 count = 3; // Count of entities in this range
240
- }
241
- repeated RangeAggregationResult results = 1 [(.wix.api.maxSize) = 50]; // List of ranges returned in same order as requested
242
- }
243
-
244
- message ScalarResult {
245
- option (.wix.api.decomposite_of) = "wix.common.AggregationData.AggregationResults.ScalarResult";
246
- ScalarType type = 1; // Type of scalar aggregation
247
- double value = 2; // Value of the scalar aggregation
248
- }
249
-
250
- string name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation as derived from search request
251
- AggregationType type = 2; // Type of aggregation that must match provided kind as derived from search request
252
- oneof result {
253
- ValueResults values = 3; // Value aggregation results
254
- RangeResults ranges = 4; // Range aggregation results
255
- ScalarResult scalar = 5; // Scalar aggregation results
256
- }
257
- }
258
-
259
- repeated AggregationResults results = 1 [(.wix.api.maxSize) = 10000]; // key = aggregation name (as derived from search request)
260
- }
261
-
262
- /*
263
- // Usage example in response composition:
264
- message ProductSearchResponse {
265
- option (.wix.api.decomposite_of) = "wix.common.ProductSearchResponse";
266
- AggregationData aggregations = 1;
267
- PagingMetadataV2 metadata = 2;
268
- repeated Product products = 3;
269
- }
270
-
271
- // example Value type Request:
272
- {
273
- search: {
274
- expression: "term"
275
- },
276
- aggregations: [
277
- {
278
- name: "my-value-aggregation",
279
- type: "VALUE",
280
- fieldPath: "path.to.field",
281
- value: {
282
- sort_type: "VALUE",
283
- sort_direction: "DESC",
284
- limit: 15
285
- }
286
- }
287
- ]
288
- }
289
-
290
- // example Value type Response:
291
- {
292
- aggregations: {
293
- results: [
294
- {
295
- name: "my-value-aggregation",
296
- type: "VALUE",
297
- values: {
298
- results: [
299
- {
300
- value: "v1",
301
- count: 9
302
- },
303
- {
304
- value: "v2",
305
- count: 6
306
- }
307
- ]
308
- }
309
- }
310
- ]
311
- },
312
- metadata: {
313
- items: 25,
314
- offset: 25,
315
- total: 420,
316
- tooManyToCount: false,
317
- cursors: {
318
- next: "SOMEHASHFORNEXT",
319
- prev: "SOMEHASHFORPREV"
320
- }
321
- },
322
- products: [...]
323
- }
324
-
325
- // example Range type Request:
326
- {
327
- search: {
328
- expression: "term"
329
- },
330
- aggregations: [
331
- {
332
- name: "my-range-aggregation",
333
- type: "RANGE",
334
- fieldPath: "path.to.field",
335
- range: {
336
- buckets: [
337
- {
338
- to: 10
339
- },
340
- {
341
- from: 10,
342
- to: 20
343
- },
344
- {
345
- from: 20
346
- }
347
- ]
348
- }
349
- }
350
- ]
351
- }
352
-
353
- // example Range type Response:
354
- {
355
- aggregations: {
356
- results: [
357
- {
358
- name: "my-range-aggregation",
359
- type: "RANGE",
360
- ranges: {
361
- results: [
362
- {
363
- to: 10,
364
- count: 5
365
- },
366
- {
367
- from: 10,
368
- to: 20,
369
- count: 3
370
- },
371
- {
372
- from: 20,
373
- count: 1
374
- }
375
- ]
376
- }
377
- }
378
- ]
379
- },
380
- metadata: {
381
- items: 25,
382
- offset: 25,
383
- total: 420,
384
- tooManyToCount: false,
385
- cursors: {
386
- next: "SOMEHASHFORNEXT",
387
- prev: "SOMEHASHFORPREV"
388
- }
389
- },
390
- products: [...]
391
- }
392
-
393
- // example Scalar type Request:
394
- {
395
- search: {
396
- expression: "term"
397
- },
398
- aggregations: [
399
- {
400
- name: "my-scalar-aggregation",
401
- type: "SCALAR",
402
- fieldPath: "path.to.field",
403
- scalar: {
404
- type: "AVG"
405
- }
406
- }
407
- ]
408
- }
409
-
410
- // example Scalar type Response:
411
- {
412
- aggregations: {
413
- results: [
414
- {
415
- name: "my-scalar-agregation",
416
- type: "SCALAR",
417
- scalar: {
418
- type: "AVG",
419
- value: 5.555
420
- }
421
- }
422
- ]
423
- },
424
- metadata: {
425
- items: 25,
426
- offset: 25,
427
- total: 420,
428
- tooManyToCount: false,
429
- cursors: {
430
- next: "SOMEHASHFORNEXT",
431
- prev: "SOMEHASHFORPREV"
432
- }
433
- },
434
- products: [...]
435
- }
436
- */