@wix/bex-utils 2.71.0 → 2.72.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-dealer-v1-serving-offer/build/cjs/builders.impl.d.ts +115 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.js +1340 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.d.ts +29 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.js +524 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.d.ts +20 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.js +119 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/client/proto-generated.d.ts +18874 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/proto-generated.d.ts +9468 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/proto-generated.js +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/server/proto-generated.d.ts +18788 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.d.ts +39 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.js +113 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.d.ts +1248 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.js +371 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.d.ts +115 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.js +1209 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.d.ts +29 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.js +516 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.d.ts +20 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.js +92 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.d.ts +39 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.js +86 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.d.ts +1248 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.js +368 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/builders/package.json +7 -0
- package/@wix/ambassador-dealer-v1-serving-offer/http/package.json +7 -0
- package/@wix/ambassador-dealer-v1-serving-offer/meta/package.json +7 -0
- package/@wix/ambassador-dealer-v1-serving-offer/package.json +52 -0
- package/@wix/ambassador-dealer-v1-serving-offer/rpc/package.json +6 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_properties.proto +46 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_results.proto +39 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_support_kpis.proto +29 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiments_properties_thin.proto +31 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/wixab_service.proto +81 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/annotations.proto +451 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/api_errors.proto +142 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/callback.proto +163 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/entity.proto +127 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/errors.proto +127 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/permissions.proto +46 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/subscription.proto +32 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/validations.proto +142 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/dataextensions/extended-fields.proto +20 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/dataextensions/update-extended-fields-messages.proto +15 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/errors.proto +435 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/media.proto +280 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/query.proto +812 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/spi.proto +85 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/wixlink.proto +203 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/audiences.proto +226 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/campaigns.proto +270 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/frequency-caps.proto +74 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/localization-managers.proto +11 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/managers.proto +11 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offer-test.proto +338 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offer.proto +298 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offers-service.proto +696 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/placements.proto +423 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/schemas-service.proto +142 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/targeting.proto +378 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/paging.proto +126 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/query.proto +840 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/sorting.proto +37 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/dealer-offers-debug.proto +188 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/dealer-offers-serving.proto +177 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/offer.proto +87 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerPriority/api/v1/priority-service.proto +57 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerPriority/api/v1/priority.proto +132 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/optimization_tester_service.proto +284 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/test.proto +170 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/bulk.proto +56 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/paging.proto +121 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/query.proto +741 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/sorting.proto +26 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/targeting/v1/targeting.proto +406 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/targeting/v1/targeting_service.proto +247 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/variants_generator/v1/variant.proto +92 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/variants_generator/v1/variants_generator_service.proto +73 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/spi/definitions.proto +187 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-dealer-v1-serving-offer/types/package.json +7 -0
- package/package.json +5 -4
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerBackoffice.api.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "google/protobuf/struct.proto";
|
|
7
|
+
import "wix/api/validations.proto";
|
|
8
|
+
|
|
9
|
+
option java_package = "com.wix.dealerBackoffice.api.v1";
|
|
10
|
+
|
|
11
|
+
// Entity, holding criteria(s) (rules or filters) for dealer runtime rule engine.
|
|
12
|
+
// The rule engine decides if each offer is available to a user or not based on executing these rules
|
|
13
|
+
// in real time.
|
|
14
|
+
//
|
|
15
|
+
// Generally it's a rule engine rules tree structure referencing itself. Actual structure depends on UI constraints.
|
|
16
|
+
//
|
|
17
|
+
// Optional execution_result field for each filter in the tree holds current rule execution results.
|
|
18
|
+
// It's not empty only for offers coming from debug endpoints.
|
|
19
|
+
message Targeting {
|
|
20
|
+
// optional current targeting filter execution result (may be set in debug response)
|
|
21
|
+
ExecutionResult execution_result = 1;
|
|
22
|
+
|
|
23
|
+
// Type of the criteria (criteria filter)
|
|
24
|
+
CriteriaType type = 2;
|
|
25
|
+
|
|
26
|
+
// Client usecase specific current targeting filter label. For example "v2" for root level targeting of
|
|
27
|
+
// V2 targeting offers. Or "basic.geo" for V2 targeting GEO filter.
|
|
28
|
+
google.protobuf.StringValue label = 3;
|
|
29
|
+
|
|
30
|
+
// If `true` this targeting result is NOT(criteria result)
|
|
31
|
+
google.protobuf.BoolValue negate = 4;
|
|
32
|
+
|
|
33
|
+
// Specific criteria message, according to CriteriaType.
|
|
34
|
+
// Each criteria including top level criteria is a rule for dealer rule engine
|
|
35
|
+
// to execute and get result (true — request does satisfy the criteria, false — does not).
|
|
36
|
+
//
|
|
37
|
+
// Different criteria types represent different kind of rules.
|
|
38
|
+
// For example UserRoleCriteria checks if user is owner of metasite or not,
|
|
39
|
+
// geo criteria checks user location geo etc.
|
|
40
|
+
oneof criteria {
|
|
41
|
+
CompoundCriteria compound = 11;
|
|
42
|
+
CustomFilterCriteria custom_filter = 12;
|
|
43
|
+
ListCriteria geo = 13;
|
|
44
|
+
ListCriteria language = 14;
|
|
45
|
+
UserRoleCriteria user_role = 15;
|
|
46
|
+
UserStatusCriteria user_status = 16; // deprecated
|
|
47
|
+
ListCriteria user_colors = 17; // deprecated
|
|
48
|
+
ListCriteria user_guids = 18;
|
|
49
|
+
ListCriteria template_guids = 19; // deprecated
|
|
50
|
+
ListCriteria post_reg = 20; // deprecated
|
|
51
|
+
ConnectedDomainCriteria connected_domain = 21;
|
|
52
|
+
PremiumPlanCriteria premium_plan = 22;
|
|
53
|
+
google.protobuf.BoolValue exclude_in_sale = 23; // deprecated
|
|
54
|
+
MailboxCriteria mailbox = 24;
|
|
55
|
+
ListCriteria connected_offering_group = 25;
|
|
56
|
+
ListCriteria installed_apps = 26;
|
|
57
|
+
ListCriteria product_groups = 27;
|
|
58
|
+
DomainLengthCriteria domain_length = 28; // deprecated
|
|
59
|
+
ListCriteria mailbox_sale = 29;
|
|
60
|
+
ListCriteria vouchers = 30;
|
|
61
|
+
FreeSiteCriteria free_site = 31; // deprecated
|
|
62
|
+
BrandsCriteria brand = 32;
|
|
63
|
+
// petri spec conducted on runtime and determines if the offer will be retuned to the end user
|
|
64
|
+
// the spec is conducted only after the user was eligable for all targeting rules
|
|
65
|
+
ExperimentCriteria experiment = 34;
|
|
66
|
+
CustomParamCriteria custom_param = 35;
|
|
67
|
+
ListCriteria audience = 36;
|
|
68
|
+
PremiumLandingTabCriteria premium_landing_tab = 37;
|
|
69
|
+
PremiumAccountCriteria premium_account = 38;
|
|
70
|
+
EligibleForSaleCriteria eligible_for_sale = 39;
|
|
71
|
+
ExternalCriteria external_criteria = 40;
|
|
72
|
+
SiteTypeCriteria site_type = 41;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// removed SavedAudience criteria:
|
|
76
|
+
reserved 33;
|
|
77
|
+
|
|
78
|
+
enum CriteriaType {
|
|
79
|
+
UNKNOWN = 0;
|
|
80
|
+
COMPOUND = 11;
|
|
81
|
+
CUSTOM = 12;
|
|
82
|
+
GEO = 13;
|
|
83
|
+
LANGUAGE = 14;
|
|
84
|
+
USER_ROLE = 15;
|
|
85
|
+
USER_STATUS = 16;
|
|
86
|
+
USER_COLORS = 17;
|
|
87
|
+
USER_GUIDS = 18;
|
|
88
|
+
TEMPLATE_GUIDS = 19;
|
|
89
|
+
POST_REG = 20;
|
|
90
|
+
CONNECTED_DOMAIN = 21;
|
|
91
|
+
PREMIUM_PLAN = 22;
|
|
92
|
+
EXCLUDE_IN_SALE = 23;
|
|
93
|
+
MAILBOX = 24;
|
|
94
|
+
CONNECTED_OFFERING_GROUP = 25;
|
|
95
|
+
INSTALLED_APPS = 26;
|
|
96
|
+
PRODUCT_GROUPS = 27;
|
|
97
|
+
DOMAIN_LENGTH = 28;
|
|
98
|
+
MAILBOX_SALE = 29;
|
|
99
|
+
VOUCHERS = 30;
|
|
100
|
+
FREE_SITE = 31;
|
|
101
|
+
BRAND = 32;
|
|
102
|
+
reserved 33;
|
|
103
|
+
reserved "SAVED_AUDIENCE";
|
|
104
|
+
EXPERIMENT = 34;
|
|
105
|
+
CUSTOM_PARAM = 35;
|
|
106
|
+
AUDIENCE = 36;
|
|
107
|
+
PREMIUM_LANDING_TAB = 37;
|
|
108
|
+
PREMIUM_ACCOUNT = 38;
|
|
109
|
+
ELIGIBLE_FOR_SALE = 39;
|
|
110
|
+
EXTERNAL_CRITERIA = 40;
|
|
111
|
+
SITE_TYPE_CRITERIA = 41;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Aggregate criteria for AND/OR tree like structures
|
|
116
|
+
message CompoundCriteria {
|
|
117
|
+
enum Operator {
|
|
118
|
+
UNKNOWN = 0;
|
|
119
|
+
OR = 1;
|
|
120
|
+
AND = 2;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
Operator operator = 1;
|
|
124
|
+
repeated Targeting children = 2;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Criteria for targeting rules based on profile service data
|
|
128
|
+
message CustomFilterCriteria {
|
|
129
|
+
enum CustomFilterDataSource {
|
|
130
|
+
UNKNOWN = 0;
|
|
131
|
+
USER_PROFILE = 1;
|
|
132
|
+
SITE_PROFILE = 2;
|
|
133
|
+
ACCOUNT_PROFILE = 3;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
string field_id = 1;
|
|
137
|
+
CustomFilterDataSource data_source = 2;
|
|
138
|
+
CustomFilterOperator operator = 3;
|
|
139
|
+
CustomFilterOperator list_restriction = 4;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// BI profile filter operator
|
|
143
|
+
message CustomFilterOperator {
|
|
144
|
+
message OperatorValueType {
|
|
145
|
+
enum Enum {
|
|
146
|
+
UNKNOWN = 0;
|
|
147
|
+
NUMBER = 1;
|
|
148
|
+
STRING = 2;
|
|
149
|
+
LIST = 3;
|
|
150
|
+
TIMESTAMP = 4;
|
|
151
|
+
BOOLEAN = 5;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message ComparatorType {
|
|
156
|
+
enum Enum {
|
|
157
|
+
UNKNOWN = 0;
|
|
158
|
+
EQUAL = 1;
|
|
159
|
+
CONTAINED_IN = 2;
|
|
160
|
+
CONTAINS_SOME = 3;
|
|
161
|
+
CONTAINS_NONE = 4;
|
|
162
|
+
NOT_CONTAINS = 5;
|
|
163
|
+
NOT_CONTAINED_IN = 6;
|
|
164
|
+
BE_NOTHING = 7;
|
|
165
|
+
EXISTS = 8;
|
|
166
|
+
MORE_THAN_DAYS = 9;
|
|
167
|
+
WITHIN_DAYS = 10;
|
|
168
|
+
LESS = 11;
|
|
169
|
+
LESS_EQUAL = 12;
|
|
170
|
+
GREATER = 13;
|
|
171
|
+
GREATER_EQUAL = 14;
|
|
172
|
+
SIZE_LESS_EQUAL = 15;
|
|
173
|
+
SIZE_GREATER_EQUAL = 16;
|
|
174
|
+
NOT_EQUAL = 17;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// BI field data type
|
|
179
|
+
OperatorValueType.Enum value_type = 1;
|
|
180
|
+
|
|
181
|
+
// Expected value to be found in BI profile
|
|
182
|
+
google.protobuf.StringValue expected_value = 2 [(.wix.api.maxLength) = 2000];
|
|
183
|
+
|
|
184
|
+
// Comparator to apply to value (i.e. if BI value EQUALS, LESS, GREATER than expected value etc.)
|
|
185
|
+
ComparatorType.Enum comparator = 3;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// DEPRECATED, use Targeting.label instead
|
|
189
|
+
message CriteriaMetaData{
|
|
190
|
+
string label = 1;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// Generic filter for list of included/excluded values
|
|
194
|
+
message ListCriteria {
|
|
195
|
+
repeated string values = 1;
|
|
196
|
+
bool included = 2;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Filter for targeting based on premium plan eligibility
|
|
200
|
+
message PremiumPlanCriteria {
|
|
201
|
+
enum Plan {
|
|
202
|
+
UNKNOWN = 0;
|
|
203
|
+
PREMIUM = 2;
|
|
204
|
+
NONE = 3;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
repeated int32 products = 1;
|
|
208
|
+
Plan plan = 2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// Filter for metasite ownership rules
|
|
212
|
+
message UserRoleCriteria {
|
|
213
|
+
enum Enum {
|
|
214
|
+
UNKNOWN = 0;
|
|
215
|
+
OWNER = 2;
|
|
216
|
+
NOT_OWNER = 3;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
Enum value = 1;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message PremiumLandingTabCriteria {
|
|
223
|
+
enum Enum {
|
|
224
|
+
UNKNOWN = 0;
|
|
225
|
+
WEBSITE = 1;
|
|
226
|
+
BUSINESS = 2;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
Enum value = 1;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// Filter for metasite domain validations
|
|
233
|
+
message ConnectedDomainCriteria {
|
|
234
|
+
enum Enum {
|
|
235
|
+
UNKNOWN = 0;
|
|
236
|
+
CONNECTED = 2;
|
|
237
|
+
NOT_CONNECTED = 3;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
Enum value = 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message MailboxCriteria {
|
|
244
|
+
enum Enum {
|
|
245
|
+
UNKNOWN = 0;
|
|
246
|
+
HAS_MAILBOX = 2;
|
|
247
|
+
NO_MAILBOX = 3;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
Enum value = 1;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Generic message for debug execution results.
|
|
254
|
+
// Used for specific targeting criteria
|
|
255
|
+
message ExecutionResult {
|
|
256
|
+
// if current criteria is applicable/eligible/valid
|
|
257
|
+
bool success = 1;
|
|
258
|
+
// if set - it's JSON with either string, date utc string, boolean, array or object
|
|
259
|
+
// depends on specific filter/criteria the result is calculated
|
|
260
|
+
google.protobuf.StringValue current_value = 2;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message UserStatusCriteria {
|
|
264
|
+
enum Enum {
|
|
265
|
+
UNKNOWN = 0;
|
|
266
|
+
NEW = 1;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
Enum value = 1;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
message DomainLengthCriteria {
|
|
273
|
+
// WARNING: bad naming for JS context => hidden bugs
|
|
274
|
+
// For example lodash considers objects with `length` property ArrayLike
|
|
275
|
+
int32 length = 1;
|
|
276
|
+
bool shorter_or_equal = 2;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
message FreeSiteCriteria {
|
|
280
|
+
enum Enum {
|
|
281
|
+
UNKNOWN = 0;
|
|
282
|
+
HAS_FREE = 1;
|
|
283
|
+
NO_FREE = 2;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
Enum value = 1;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// Filter for list of brands
|
|
290
|
+
// (i.e. if given offer must be shown to user for "only [wix]",
|
|
291
|
+
// of "only [wix, editorx]", or "except [editorx]" etc.)
|
|
292
|
+
message BrandsCriteria {
|
|
293
|
+
enum Brand {
|
|
294
|
+
UNKNOWN = 0;
|
|
295
|
+
WIX = 1;
|
|
296
|
+
EDITORX = 2;
|
|
297
|
+
DAYFUL = 3;
|
|
298
|
+
STUDIO = 4;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
repeated Brand values = 1;
|
|
302
|
+
bool included = 2;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
message SiteTypeCriteria {
|
|
306
|
+
enum SiteType {
|
|
307
|
+
UNKNOWN = 0;
|
|
308
|
+
REGULAR = 1;
|
|
309
|
+
HEADLESS = 2;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
repeated SiteType values = 1 [(.wix.api.minSize) = 1, (.wix.api.maxSize) = 10000];
|
|
313
|
+
bool included = 2;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
message CustomParamCriteria {
|
|
317
|
+
enum CustomParamOperator {
|
|
318
|
+
UNKNOWN = 0;
|
|
319
|
+
EQUALS = 1;
|
|
320
|
+
NOT_EQUALS = 2;
|
|
321
|
+
CONTAINS_ALL = 3;
|
|
322
|
+
NOT_CONTAINS_ALL = 4;
|
|
323
|
+
CONTAINS_ANY = 5;
|
|
324
|
+
NOT_CONTAINS_ANY = 6;
|
|
325
|
+
EXISTS = 7;
|
|
326
|
+
NOT_EXISTS = 8;
|
|
327
|
+
}
|
|
328
|
+
CustomParamOperator operator = 1;
|
|
329
|
+
google.protobuf.StringValue key = 2;
|
|
330
|
+
repeated google.protobuf.StringValue values = 3;
|
|
331
|
+
CriteriaMetaData criteriaMetaData = 4;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
message ExperimentCriteria {
|
|
335
|
+
google.protobuf.StringValue spec = 1;
|
|
336
|
+
google.protobuf.StringValue value = 2;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
message PremiumAccountCriteria {
|
|
340
|
+
enum Enum {
|
|
341
|
+
UNKNOWN = 0;
|
|
342
|
+
IS_PREMIUM = 1;
|
|
343
|
+
IS_NOT_PREMIUM = 2;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
Enum value = 1;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
message ExternalCriteria {
|
|
350
|
+
message ConditionType {
|
|
351
|
+
enum Enum {
|
|
352
|
+
UNKNOWN = 0;
|
|
353
|
+
EQUAL = 1;
|
|
354
|
+
GREATER_THAN = 2;
|
|
355
|
+
SMALLER_THAN = 3;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
google.protobuf.StringValue artifact_name = 1;
|
|
360
|
+
ConditionType.Enum condition_type = 2;
|
|
361
|
+
reserved 3;
|
|
362
|
+
google.protobuf.Value expected_value = 4; // This should be validated against ResponseType and ConditionType
|
|
363
|
+
google.protobuf.Struct additional_params = 5;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
message EligibleForSaleCriteria {
|
|
367
|
+
enum Enum {
|
|
368
|
+
UNKNOWN = 0;
|
|
369
|
+
NONE = 1;
|
|
370
|
+
SEASONAL = 2;
|
|
371
|
+
PERSONAL = 3;
|
|
372
|
+
CUSTOM = 4;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
Enum value = 1;
|
|
376
|
+
google.protobuf.StringValue customSale = 2;
|
|
377
|
+
string productTypeId = 3 [(wix.api.format) = GUID];
|
|
378
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerBackoffice.api.v1.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.dealerBackoffice.api.v1.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
|
+
|
|
31
|
+
// Maximum number of items to return in the results.
|
|
32
|
+
google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0, (.wix.api.max) = 100];
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
Pointer to the next or previous page in the list of results.
|
|
36
|
+
|
|
37
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
38
|
+
Not relevant for the first request.
|
|
39
|
+
*/
|
|
40
|
+
google.protobuf.StringValue cursor = 2 [(.wix.api.maxLength) = 16000];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message PagingMetadata {
|
|
44
|
+
option (.wix.api.decomposite_of) = "wix.common.PagingMetadata";
|
|
45
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
46
|
+
field: "count"
|
|
47
|
+
field: "offset"
|
|
48
|
+
};
|
|
49
|
+
// Number of items returned in the response.
|
|
50
|
+
google.protobuf.Int32Value count = 1;
|
|
51
|
+
// Offset that was requested.
|
|
52
|
+
google.protobuf.Int32Value offset = 2;
|
|
53
|
+
// Total number of items that match the query.
|
|
54
|
+
google.protobuf.Int32Value total = 3;
|
|
55
|
+
// Flag that indicates the server failed to calculate the `total` field.
|
|
56
|
+
google.protobuf.BoolValue too_many_to_count = 4;
|
|
57
|
+
// Indicates if there are more results after the current page.
|
|
58
|
+
// If `true`, another page of results can be retrieved.
|
|
59
|
+
// If `false`, this is the last page.
|
|
60
|
+
google.protobuf.BoolValue has_next = 5 [(.wix.api.field_exposure) = PRIVATE];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message PagingMetadataV2 {
|
|
64
|
+
option (.wix.api.decomposite_of) = "wix.common.PagingMetadataV2";
|
|
65
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
66
|
+
field: "count"
|
|
67
|
+
field: "offset"
|
|
68
|
+
};
|
|
69
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
70
|
+
field: "count"
|
|
71
|
+
field: "cursors"
|
|
72
|
+
};
|
|
73
|
+
// Number of items returned in the response.
|
|
74
|
+
google.protobuf.Int32Value count = 1;
|
|
75
|
+
// Offset that was requested.
|
|
76
|
+
google.protobuf.Int32Value offset = 2;
|
|
77
|
+
// Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.
|
|
78
|
+
google.protobuf.Int32Value total = 3;
|
|
79
|
+
// Flag that indicates the server failed to calculate the `total` field.
|
|
80
|
+
google.protobuf.BoolValue too_many_to_count = 4;
|
|
81
|
+
// Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.
|
|
82
|
+
Cursors cursors = 5;
|
|
83
|
+
// Indicates if there are more results after the current page.
|
|
84
|
+
// If `true`, another page of results can be retrieved.
|
|
85
|
+
// If `false`, this is the last page.
|
|
86
|
+
google.protobuf.BoolValue has_next = 6 [(.wix.api.field_exposure) = PRIVATE];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
// This is the preferred message for cursor-paging enabled services
|
|
91
|
+
|
|
92
|
+
message CursorPagingMetadata {
|
|
93
|
+
option (.wix.api.decomposite_of) = "wix.common.CursorPagingMetadata";
|
|
94
|
+
|
|
95
|
+
// Number of items returned in current page.
|
|
96
|
+
google.protobuf.Int32Value count = 1;
|
|
97
|
+
|
|
98
|
+
// Cursor strings that point to the next page, previous page, or both.
|
|
99
|
+
Cursors cursors = 2;
|
|
100
|
+
|
|
101
|
+
/*
|
|
102
|
+
Whether there are more pages to retrieve following the current page.
|
|
103
|
+
|
|
104
|
+
+ `true`: Another page of results can be retrieved.
|
|
105
|
+
+ `false`: This is the last page.
|
|
106
|
+
*/
|
|
107
|
+
google.protobuf.BoolValue has_next = 3;
|
|
108
|
+
|
|
109
|
+
// Total number of items matching the filter.
|
|
110
|
+
// Available only on the first page of *Search* results, not included in *Query* or *List* results.
|
|
111
|
+
// If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
|
|
112
|
+
google.protobuf.Int32Value total = 4 [(.wix.api.field_exposure) = PRIVATE];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message Cursors {
|
|
116
|
+
option (.wix.api.decomposite_of) = "wix.common.Cursors";
|
|
117
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
118
|
+
field: "next"
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
// Cursor string pointing to the next page in the list of results.
|
|
122
|
+
google.protobuf.StringValue next = 1 [(.wix.api.maxLength) = 16000];
|
|
123
|
+
|
|
124
|
+
// Cursor pointing to the previous page in the list of results.
|
|
125
|
+
google.protobuf.StringValue prev = 2 [(.wix.api.maxLength) = 16000];
|
|
126
|
+
}
|