@wix/bex-utils 2.34.0 → 2.36.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-items-selection-spi-host-v1-provider/build/cjs/builders.impl.d.ts +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/builders.impl.js +561 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/http.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/http.impl.js +120 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/meta.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/meta.impl.js +81 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/meta.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/client/proto-generated.d.ts +7332 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/proto-generated.d.ts +3666 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/proto-generated.js +59840 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/server/proto-generated.d.ts +7328 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/rpc.impl.d.ts +23 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/rpc.impl.js +73 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/types.impl.d.ts +363 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/types.impl.js +56 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/builders.impl.d.ts +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/builders.impl.js +507 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/http.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/http.impl.js +114 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/meta.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/meta.impl.js +56 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/meta.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/rpc.impl.d.ts +23 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/rpc.impl.js +48 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/types.impl.d.ts +363 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/types.impl.js +53 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/builders/package.json +7 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/http/package.json +7 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/meta/package.json +7 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/package.json +52 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/rpc/package.json +6 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/ecom_catalog_data.proto +20 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/inbox_data.proto +17 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data.proto +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/image.proto +11 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_config.proto +246 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_spi.proto +145 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/annotations.proto +393 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/callback.proto +156 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/entity.proto +122 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/errors.proto +119 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/subscription.proto +32 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/validations.proto +137 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/media.proto +236 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/query.proto +795 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/spi.proto +85 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/wixlink.proto +201 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/items_selection/spi_host/v1/items_selection_service.proto +136 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/spi/definitions.proto +186 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/types/package.json +7 -0
- package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +4 -0
- package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -1
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/index.js +4 -1
- 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 +4 -1
- 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 +101 -5
- 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 +4 -1
- 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 +53 -23
- package/@wix/bi-logger-os-data/dist/cjs/v2/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/index.js +4 -1
- 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 +4 -1
- 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 +101 -5
- 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 +4 -1
- 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 +35 -6
- 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 -3
- package/@wix/bi-logger-os-data/dist/types/testkit/client-testkit.d.ts +22 -2
- package/@wix/bi-logger-os-data/dist/types/testkit/node-testkit.d.ts +22 -2
- package/@wix/bi-logger-os-data/dist/types/types.d.ts +22 -2
- package/@wix/bi-logger-os-data/dist/types/v2/index.d.ts +34 -7
- package/@wix/bi-logger-os-data/package.json +2 -2
- package/@wix/bi-logger-os-data/src/index.ts +7 -3
- package/@wix/bi-logger-os-data/src/testkit/client-testkit.ts +25 -2
- package/@wix/bi-logger-os-data/src/testkit/common.ts +119 -6
- package/@wix/bi-logger-os-data/src/testkit/node-testkit.ts +25 -2
- package/@wix/bi-logger-os-data/src/types.ts +42 -4
- package/@wix/bi-logger-os-data/src/v2/index.ts +37 -7
- package/package.json +5 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.items_selection.spi.v1;
|
|
4
|
+
|
|
5
|
+
import "wix/api/validations.proto";
|
|
6
|
+
|
|
7
|
+
message InboxData {
|
|
8
|
+
// An array of actions that is supported by Inbox page
|
|
9
|
+
repeated Action actions = 1 [(wix.api.maxSize) = 50];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message Action {
|
|
13
|
+
// The title of the action
|
|
14
|
+
string title = 1 [(.wix.api.maxLength) = 100];
|
|
15
|
+
// The url of the action
|
|
16
|
+
string url = 2 [(.wix.api.maxLength) = 2048];
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.items_selection.spi.v1;
|
|
4
|
+
|
|
5
|
+
import "src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/ecom_catalog_data.proto";
|
|
6
|
+
import "src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/inbox_data.proto";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
message AdditionalData {
|
|
10
|
+
oneof data {
|
|
11
|
+
// Additional data associated with ecom catalog order.
|
|
12
|
+
EcomCatalogData ecom_catalog_data = 1;
|
|
13
|
+
// Additional data associated with inbox
|
|
14
|
+
InboxData inbox_data = 2;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.items_selection.spi.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
|
|
8
|
+
message Image {
|
|
9
|
+
// Image URL.
|
|
10
|
+
google.protobuf.StringValue url = 1 [(.wix.api.maxLength) = 2048];
|
|
11
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.items_selection.spi.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
import "wix/spi/definitions.proto";
|
|
8
|
+
import "wix/api/annotations.proto";
|
|
9
|
+
|
|
10
|
+
message ItemsSelectionProviderConfig {
|
|
11
|
+
// Base URI which Wix calls to retrieve the selected items. For example, `"deploymentUri": "https://my-items.com"`.
|
|
12
|
+
string deployment_uri = 1 [(.wix.spi.base_uri) = true, (wix.api.minLength) = 1];
|
|
13
|
+
|
|
14
|
+
// A unique identifier for the provider.
|
|
15
|
+
string key = 2 [(wix.api.minLength) = 3, (wix.api.maxLength) = 250];
|
|
16
|
+
|
|
17
|
+
// Supported search parameters.
|
|
18
|
+
SearchParams search_params = 3;
|
|
19
|
+
|
|
20
|
+
// Display data such as provider name and icon.
|
|
21
|
+
ContentData content_data = 4;
|
|
22
|
+
|
|
23
|
+
// Optional additional step taken after the initial item selection.
|
|
24
|
+
AdditionalStepInfo additional_step_info = 5 [(.wix.api.field_exposure) = INTERNAL];
|
|
25
|
+
|
|
26
|
+
// An array of strings representing the Wix UI pages supported by your SPI implementation. If no tags are listed, Wix assumes that the implementation supports all eligible pages.
|
|
27
|
+
repeated Tag supported_tags = 6 [(wix.api.maxSize) = 50];
|
|
28
|
+
|
|
29
|
+
// Optional create new item option, to define a widget that will be opened to create a new item
|
|
30
|
+
CreateNewItemInfo create_new_item_info = 7 [(.wix.api.field_exposure) = INTERNAL];
|
|
31
|
+
|
|
32
|
+
// Configuration settings for how the thumbnail is displayed.
|
|
33
|
+
ItemThumbnail item_thumbnail = 8;
|
|
34
|
+
|
|
35
|
+
//flynt-disable deleted-field-enum-reserved
|
|
36
|
+
enum Tag {
|
|
37
|
+
UNKNOWN_TAG = 0;
|
|
38
|
+
EMBEDDABLE = 1;
|
|
39
|
+
ECOM_EDIT_ORDER = 2;
|
|
40
|
+
ECOM_CREATE_ORDER = 3;
|
|
41
|
+
INBOX = 4;
|
|
42
|
+
ECOM_CREATE_PAY_LINK = 5;
|
|
43
|
+
ECOM_DELIVERY_PROFILES = 6;
|
|
44
|
+
ADD_TO_CATEGORY = 7;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message AdditionalStepInfo {
|
|
48
|
+
// ID of the widget associated with the step.
|
|
49
|
+
string widget_id = 1;
|
|
50
|
+
// one app (mobile) component id that will be opened to show additional step
|
|
51
|
+
google.protobuf.StringValue mobile_component_id = 5 [(.wix.api.field_exposure) = INTERNAL, (wix.api.minLength) = 1, (wix.api.maxLength) = 50];
|
|
52
|
+
|
|
53
|
+
// Title of the additional step.
|
|
54
|
+
string title = 2 [(wix.api.minLength) = 1, (wix.api.maxLength) = 100, (wix.api.translatable) = {
|
|
55
|
+
type: SHORT_TEXT
|
|
56
|
+
name: "Additional Step Title"
|
|
57
|
+
grouping: "metadata"
|
|
58
|
+
}];
|
|
59
|
+
|
|
60
|
+
// Subtitle of the additional step.
|
|
61
|
+
google.protobuf.StringValue subtitle = 3 [(wix.api.maxLength) = 100, (wix.api.translatable) = {
|
|
62
|
+
type: SHORT_TEXT
|
|
63
|
+
name: "Additional Step Subtitle"
|
|
64
|
+
grouping: "metadata"
|
|
65
|
+
}];
|
|
66
|
+
|
|
67
|
+
// Hide item note if exists when showing selected item on additional step header, default: false.
|
|
68
|
+
google.protobuf.BoolValue hide_item_note = 4;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message CreateNewItemInfo {
|
|
72
|
+
// ID of the widget associated with the new item modal.
|
|
73
|
+
string widget_id = 1;
|
|
74
|
+
// one app (mobile) component id that will be opened to create a new item
|
|
75
|
+
google.protobuf.StringValue mobile_component_id = 2 [(.wix.api.field_exposure) = INTERNAL, (wix.api.minLength) = 1, (wix.api.maxLength) = 50];
|
|
76
|
+
// Button label for creating a new item
|
|
77
|
+
google.protobuf.StringValue button_text = 3 [(wix.api.minLength) = 1, (wix.api.maxLength) = 50, (wix.api.translatable) = {
|
|
78
|
+
type: SHORT_TEXT
|
|
79
|
+
name: "Create New Item Button"
|
|
80
|
+
grouping: "metadata"
|
|
81
|
+
}];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message ContentData {
|
|
85
|
+
// Provider icon. Choose an icon name from the [Wix Design System](https://www.wixdesignsystem.com/).
|
|
86
|
+
google.protobuf.StringValue icon_key = 1 [(wix.api.minLength) = 3, (wix.api.maxLength) = 50];
|
|
87
|
+
|
|
88
|
+
// Provider name.
|
|
89
|
+
string provider_name = 2 [(wix.api.minLength) = 1, (wix.api.maxLength) = 100, (wix.api.translatable) = {
|
|
90
|
+
type: SHORT_TEXT
|
|
91
|
+
name: "Provider Name"
|
|
92
|
+
grouping: "metadata"
|
|
93
|
+
}];
|
|
94
|
+
|
|
95
|
+
// Item title.
|
|
96
|
+
string title = 3 [(wix.api.minLength) = 1, (wix.api.maxLength) = 100, (wix.api.translatable) = {
|
|
97
|
+
type: SHORT_TEXT
|
|
98
|
+
name: "Picker Title"
|
|
99
|
+
grouping: "metadata"
|
|
100
|
+
}];
|
|
101
|
+
|
|
102
|
+
// Button label.
|
|
103
|
+
string button = 4 [(wix.api.minLength) = 1, (wix.api.maxLength) = 50, (wix.api.translatable) = {
|
|
104
|
+
type: SHORT_TEXT
|
|
105
|
+
name: "Select Button"
|
|
106
|
+
grouping: "metadata"
|
|
107
|
+
}];
|
|
108
|
+
|
|
109
|
+
// Item description.
|
|
110
|
+
google.protobuf.StringValue subtitle = 5 [(wix.api.minLength) = 1, (wix.api.maxLength) = 100, (wix.api.translatable) = {
|
|
111
|
+
type: SHORT_TEXT
|
|
112
|
+
name: "Picker Subtitle"
|
|
113
|
+
grouping: "metadata"
|
|
114
|
+
}];
|
|
115
|
+
|
|
116
|
+
// Learn more link.
|
|
117
|
+
LearnMore learn_more = 6;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message ItemThumbnail {
|
|
121
|
+
// Thumbnail type
|
|
122
|
+
ThumbnailType type = 1;
|
|
123
|
+
|
|
124
|
+
// Whether the thumbnail is hidden from the UI.
|
|
125
|
+
google.protobuf.BoolValue hidden = 2;
|
|
126
|
+
|
|
127
|
+
oneof options {
|
|
128
|
+
option (.wix.api.aligned_with_enum) = {
|
|
129
|
+
field: "type";
|
|
130
|
+
suffix: "config";
|
|
131
|
+
};
|
|
132
|
+
// Configuration specific to images.
|
|
133
|
+
ImageConfig image_config = 3;
|
|
134
|
+
|
|
135
|
+
// Configuration specific to avatars.
|
|
136
|
+
AvatarConfig avatar_config = 4;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
enum ThumbnailType {
|
|
141
|
+
UNKNOWN_THUMBNAIL_TYPE = 0;
|
|
142
|
+
IMAGE = 1;
|
|
143
|
+
AVATAR = 2;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message ImageConfig {
|
|
147
|
+
ImageShape shape = 1;
|
|
148
|
+
|
|
149
|
+
enum ImageShape {
|
|
150
|
+
UNKNOWN_SHAPE = 0;
|
|
151
|
+
// Circle
|
|
152
|
+
CIRCLE = 1;
|
|
153
|
+
// Square
|
|
154
|
+
SQUARE = 2;
|
|
155
|
+
// Rectangle
|
|
156
|
+
RECTANGLE = 3;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
message AvatarConfig {
|
|
161
|
+
AvatarShape shape = 1;
|
|
162
|
+
|
|
163
|
+
enum AvatarShape {
|
|
164
|
+
UNKNOWN_SHAPE = 0;
|
|
165
|
+
// Circle
|
|
166
|
+
CIRCLE = 1;
|
|
167
|
+
// Square
|
|
168
|
+
SQUARE = 2;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
message SearchParams {
|
|
173
|
+
// Supported search parameters.
|
|
174
|
+
repeated SearchField fields = 1 [(.wix.api.maxSize) = 50];
|
|
175
|
+
|
|
176
|
+
// Filter for viewing only part of the items.
|
|
177
|
+
FilterInfo filter = 2;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
message SearchField {
|
|
181
|
+
// Supported searchable fields.
|
|
182
|
+
string key = 1;
|
|
183
|
+
|
|
184
|
+
// Item description.
|
|
185
|
+
string description = 2 [(wix.api.minLength) = 1, (wix.api.maxLength) = 100];
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
message FilterInfo {
|
|
189
|
+
// Key of the filter
|
|
190
|
+
string key = 1 [(wix.api.minLength) = 1, (wix.api.maxLength) = 100];
|
|
191
|
+
|
|
192
|
+
// Optional filter will be shown only for consumers with this tag. Only one filter is allowed per tag.
|
|
193
|
+
Tag tag = 2;
|
|
194
|
+
|
|
195
|
+
// The filter selection type. For now only single selection is available
|
|
196
|
+
FilterSelectionType selection_type = 3;
|
|
197
|
+
|
|
198
|
+
// Filter options type. For now only static options are supported
|
|
199
|
+
FilterOptionsType options_type = 4;
|
|
200
|
+
oneof options {
|
|
201
|
+
option (.wix.api.aligned_with_enum).field = "options_type";
|
|
202
|
+
// Static hardcoded options
|
|
203
|
+
StaticFilterOptions static_options = 5;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
message StaticFilterOptions {
|
|
208
|
+
// List of hardcoded options for a filter
|
|
209
|
+
repeated StaticFilterOption data = 1 [(.wix.api.maxSize) = 50];
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
message StaticFilterOption {
|
|
213
|
+
option (.wix.api.unique) = {field: "value"};
|
|
214
|
+
// Title of a filter option
|
|
215
|
+
string label = 1 [(wix.api.minLength) = 1, (wix.api.maxLength) = 500, (wix.api.translatable) = {
|
|
216
|
+
type: SHORT_TEXT
|
|
217
|
+
name: "Filter Option Label"
|
|
218
|
+
grouping: "metadata"
|
|
219
|
+
}];
|
|
220
|
+
// Value of a filter option
|
|
221
|
+
string value = 2 [(wix.api.minLength) = 1, (.wix.api.maxLength) = 100];
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
message LearnMore {
|
|
225
|
+
// The url of the learn more link. If you want a dynamic url according to the user locale, you can add {{locale}} variable within the string.
|
|
226
|
+
string url = 1 [(.wix.api.maxLength) = 2048];
|
|
227
|
+
// Optional link label.
|
|
228
|
+
google.protobuf.StringValue label = 2 [(wix.api.maxLength) = 500, (wix.api.translatable) = {
|
|
229
|
+
type: SHORT_TEXT
|
|
230
|
+
name: "Learn More Label"
|
|
231
|
+
grouping: "metadata"
|
|
232
|
+
}];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
enum FilterSelectionType {
|
|
236
|
+
UNKNOWN_SELECTION = 0;
|
|
237
|
+
// Allow to select only a single item
|
|
238
|
+
SINGLE_SELECTION = 1;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
enum FilterOptionsType {
|
|
242
|
+
UNKNOWN_FILTER_OPTIONS = 0;
|
|
243
|
+
// Static hardcoded options
|
|
244
|
+
STATIC = 1;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.items_selection.spi.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "google/api/annotations.proto";
|
|
7
|
+
import "wix/api/annotations.proto";
|
|
8
|
+
import "wix/api/validations.proto";
|
|
9
|
+
import "wix/spi/definitions.proto";
|
|
10
|
+
import "wix/common/paging.proto";
|
|
11
|
+
import "wix/common/sorting.proto";
|
|
12
|
+
import "google/protobuf/struct.proto";
|
|
13
|
+
import "src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_config.proto";
|
|
14
|
+
import "src/main/proto/com/wixpress/items_selection/spi/v1/image.proto";
|
|
15
|
+
import "src/main/proto/com/wixpress/items_selection/spi/v1/additional_data.proto";
|
|
16
|
+
import "wix/api/entity.proto";
|
|
17
|
+
|
|
18
|
+
service ItemsSelectionProviderService {
|
|
19
|
+
option (.wix.api.service_exposure) = PUBLIC;
|
|
20
|
+
option (.wix.spi.service) = {
|
|
21
|
+
spi_identifier: "com.wixpress.appservice.api.ComponentType.ITEMS_SELECTION_PROVIDER",
|
|
22
|
+
config_message: "com.wixpress.items_selection.spi.v1.ItemsSelectionProviderConfig",
|
|
23
|
+
host_service: "wix.items_selection.spi_host.v1.ItemsSelectionService",
|
|
24
|
+
app_id: "a1313905-2aa8-4e8c-a5eb-ddf623c2deb1",
|
|
25
|
+
fqdn: "wix.interfaces.items_selection.v1.items_selection_provider",
|
|
26
|
+
appendix_files: {
|
|
27
|
+
type: DOCS_CONF
|
|
28
|
+
path: "appendices/docs"
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
This endpoint retrieves a list of items that match the search criteria specified in the request.
|
|
34
|
+
|
|
35
|
+
Wix calls this endpoint when a service within the Wix ecosystem wants to make an app's items available for selection in the Wix UI. For example, this endpoint is called when a Wix site owner wants to add an app's item to an existing Wix Stores order.
|
|
36
|
+
|
|
37
|
+
> You cannot try out this endpoint because it has to be implemented by
|
|
38
|
+
> an app and can have an arbitrary URL. Therefore, ignore the **Authorization**
|
|
39
|
+
> and **POST** sections below as well as the **Try It Out** button.
|
|
40
|
+
*/
|
|
41
|
+
rpc QueryItems (QueryItemsRequest) returns (QueryItemsResponse) {
|
|
42
|
+
option (.google.api.http).post = "/v1/items";
|
|
43
|
+
|
|
44
|
+
option (.wix.spi.error) = {
|
|
45
|
+
name: "QueryItemsFailed"
|
|
46
|
+
http_code: INTERNAL
|
|
47
|
+
application_code: "QUERY_ITEMS_FAILED"
|
|
48
|
+
data: "com.wixpress.items_selection.spi.v1.FailureData"
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message FailureData {
|
|
54
|
+
// Error details.
|
|
55
|
+
QueryError error = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message QueryError {
|
|
59
|
+
enum Code {
|
|
60
|
+
NONE = 0;
|
|
61
|
+
SYSTEM_ERROR = 1;
|
|
62
|
+
OTHER = 2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Error code.
|
|
66
|
+
Code code = 1;
|
|
67
|
+
|
|
68
|
+
// Error message.
|
|
69
|
+
string message = 2;
|
|
70
|
+
|
|
71
|
+
// Raw error data.
|
|
72
|
+
google.protobuf.Struct data = 3;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message QueryItemsRequest {
|
|
76
|
+
// Query options.
|
|
77
|
+
Query query = 1;
|
|
78
|
+
|
|
79
|
+
// A tag representing the Wix service requesting the list of items.
|
|
80
|
+
ItemsSelectionProviderConfig.Tag tag = 2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message QueryItemsResponse {
|
|
84
|
+
// List of items.
|
|
85
|
+
repeated Item items = 1;
|
|
86
|
+
|
|
87
|
+
// Details on the paged set of results returned.
|
|
88
|
+
wix.common.PagingMetadataV2 paging_metadata = 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message Query {
|
|
92
|
+
/* Filter object.
|
|
93
|
+
See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
94
|
+
*/
|
|
95
|
+
google.protobuf.Struct filter = 1;
|
|
96
|
+
|
|
97
|
+
// An optional repeated field that allows to specify sorting criteria for the search results.
|
|
98
|
+
repeated wix.common.Sorting sort = 2 [deprecated = true, (.wix.api.field_exposure) = PRIVATE];
|
|
99
|
+
|
|
100
|
+
/* Plain text search for an exact match.
|
|
101
|
+
|
|
102
|
+
Supported properties are defined in the `searchParams.fields` property of the Item Selection Provider configuration in the Wix Developers Center.
|
|
103
|
+
|
|
104
|
+
Max: 100 characters
|
|
105
|
+
*/
|
|
106
|
+
google.protobuf.StringValue search = 3;
|
|
107
|
+
|
|
108
|
+
oneof paging_method {
|
|
109
|
+
// Paging options to limit and skip the number of items.
|
|
110
|
+
wix.common.Paging paging = 4;
|
|
111
|
+
// Cursor token pointing to a page of results. Not used in the first request. Following requests include a cursor token and do not define `filter`.
|
|
112
|
+
wix.common.CursorPaging cursor_paging = 5;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
//flynt-disable deleted-field-enum-reserved
|
|
117
|
+
message Item {
|
|
118
|
+
// Item ID.
|
|
119
|
+
string id = 1;
|
|
120
|
+
|
|
121
|
+
// Item name.
|
|
122
|
+
google.protobuf.StringValue name = 2 [(.wix.api.maxLength) = 250];
|
|
123
|
+
|
|
124
|
+
// Item description.
|
|
125
|
+
google.protobuf.StringValue description = 3 [(.wix.api.maxLength) = 1000];
|
|
126
|
+
|
|
127
|
+
// Item image.
|
|
128
|
+
Image image = 4;
|
|
129
|
+
|
|
130
|
+
// Additional information about the item. For example, an item's price.
|
|
131
|
+
google.protobuf.StringValue note = 5 [(.wix.api.maxLength) = 100];
|
|
132
|
+
|
|
133
|
+
// Indicates whether the item has additional steps, additional step will replace any existing additional_data exists on the item.
|
|
134
|
+
google.protobuf.BoolValue has_additional_step = 6 [(.wix.api.field_exposure) = INTERNAL];
|
|
135
|
+
|
|
136
|
+
// Additional data associated with an item. The content of this object changes based on the Wix service defined in the `tag` field.
|
|
137
|
+
AdditionalData additional_data = 7 [(.wix.api.field_exposure) = PRIVATE, deprecated = true, (.wix.api.field_deprecated) = {
|
|
138
|
+
replaced_by: "additional_fields"
|
|
139
|
+
target_removal_date: "2025-01-01"
|
|
140
|
+
}];
|
|
141
|
+
|
|
142
|
+
// Additional fields associated with an item. The content of this object might changes based on the Wix service defined in the `tag` field.
|
|
143
|
+
//flynt-disable renamed-field-breaking-change
|
|
144
|
+
google.protobuf.Struct additional_fields = 8;
|
|
145
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
syntax = "proto2";
|
|
2
|
+
|
|
3
|
+
package wix.api;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/descriptor.proto";
|
|
6
|
+
|
|
7
|
+
option java_multiple_files = true;
|
|
8
|
+
option java_outer_classname = "ActionPayloadProto";
|
|
9
|
+
option java_package = "com.wix.api";
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
action_payload option is used to configure custom slugs for the payload type of a DomainEvent Action:
|
|
13
|
+
service BlooperService {
|
|
14
|
+
option (wix.api.service_entity).message = "com.wixpress.examples.Blooper"; //the "main" entity
|
|
15
|
+
rpc MissedBlooper (MissedBlooperRequest) returns (MissedBlooperResponse) {
|
|
16
|
+
option (wix.api.callback) = {
|
|
17
|
+
event_type: Action
|
|
18
|
+
payload: "com.wixpress.examples.BlooperWasMissed"
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
message BlooperWasMissed {
|
|
23
|
+
option (wix.api.action_payload).custom_slug = "super_custom_slug"; // only define if the default slug value (snake case of the message name) is out of the question
|
|
24
|
+
int32 how_funny_it_could_have_been = 1;
|
|
25
|
+
}
|
|
26
|
+
*/
|
|
27
|
+
extend google.protobuf.MessageOptions {
|
|
28
|
+
optional ActionPayload action_payload = 50600;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message ActionPayload {
|
|
32
|
+
optional string custom_slug = 1;
|
|
33
|
+
}
|