@wix/bex-utils 2.39.0 → 2.40.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-infra-asyncjobs-v1-async-job/build/cjs/builders.impl.d.ts +47 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/builders.impl.js +524 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/crud/http.impl.js +5 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/crud/rpc.impl.d.ts +11 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/crud/rpc.impl.js +41 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/http.impl.d.ts +16 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/http.impl.js +249 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/meta.impl.d.ts +30 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/meta.impl.js +157 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/meta.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/proto/client/proto-generated.d.ts +7218 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/proto/proto-generated.d.ts +3608 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/proto/proto-generated.js +59567 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/proto/server/proto-generated.d.ts +7211 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/rpc.impl.d.ts +25 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/rpc.impl.js +123 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/types.impl.d.ts +469 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/types.impl.js +52 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/builders.impl.d.ts +47 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/builders.impl.js +463 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/crud/http.impl.js +2 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/crud/rpc.impl.d.ts +11 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/crud/rpc.impl.js +34 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/http.impl.d.ts +16 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/http.impl.js +239 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/meta.impl.d.ts +30 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/meta.impl.js +128 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/meta.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/rpc.impl.d.ts +25 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/rpc.impl.js +94 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/types.impl.d.ts +469 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/types.impl.js +49 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/builders/package.json +7 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/crud/http/package.json +7 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/crud/rpc/package.json +6 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/http/package.json +7 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/meta/package.json +7 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/package.json +53 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/rpc/package.json +6 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/annotations.proto +395 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/callback.proto +157 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/entity.proto +122 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/errors.proto +121 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/subscription.proto +32 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/validations.proto +142 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/media.proto +253 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/query.proto +795 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/spi.proto +85 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/common/wixlink.proto +203 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJob.proto +156 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobItem.proto +33 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobService.proto +339 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/infra/asyncjobs/v1/upstream/wix/common/paging.proto +36 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/spi/definitions.proto +186 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-infra-asyncjobs-v1-async-job/types/package.json +7 -0
- package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/FocusableWrapper/scrollAndFocus.js +3 -1
- package/dist/cjs/FocusableWrapper/scrollAndFocus.js.map +1 -1
- package/dist/esm/FocusableWrapper/scrollAndFocus.js +4 -1
- package/dist/esm/FocusableWrapper/scrollAndFocus.js.map +1 -1
- package/dist/types/FocusableWrapper/scrollAndFocus.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
syntax = "proto2";
|
|
2
|
+
|
|
3
|
+
package wix.api;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/descriptor.proto";
|
|
6
|
+
import "wix/api/annotations.proto";
|
|
7
|
+
import "wix/api/callback.proto";
|
|
8
|
+
|
|
9
|
+
option java_multiple_files = true;
|
|
10
|
+
option java_outer_classname = "EntityProto";
|
|
11
|
+
option java_package = "com.wix.api";
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
Marks that message X is the "main" entity of service Y
|
|
15
|
+
Key requirement for DomainEvents used in callback/event
|
|
16
|
+
|
|
17
|
+
package com.wixpress.examples;
|
|
18
|
+
|
|
19
|
+
service BlooperService {
|
|
20
|
+
option (wix.api.service_entity).message = "com.wixpress.examples.Blooper"; //the "main" entity
|
|
21
|
+
rpc Update (BlooperRequest) returns (BlooperResponse) {
|
|
22
|
+
//...
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message Blooper {
|
|
27
|
+
option (wix.api.entity) = {
|
|
28
|
+
fqdn: "wix.examples.Blooper" // A fully qualified domain name for this entity. Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
29
|
+
exposure: PUBLIC //Optional exposure field. Will be used by systems like corvid and webhooks to decide if to expose events related to this entity to external parties
|
|
30
|
+
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
extend google.protobuf.ServiceOptions {
|
|
36
|
+
optional ServiceEntity service_entity = 50500;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message ServiceEntity {
|
|
40
|
+
required string message = 1;
|
|
41
|
+
optional string namespace = 50501; // use to avoid naming collisions between functions listed under the same fqdn/entity. Business Schema service shall use it using this hierarchy: [Entity > namespace > action]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
extend google.protobuf.MessageOptions {
|
|
45
|
+
optional Entity entity = 50500;
|
|
46
|
+
repeated DomainEvent domain_event = 50501;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message Entity {
|
|
50
|
+
required string fqdn = 1;
|
|
51
|
+
optional Exposure exposure = 2 [deprecated=true];
|
|
52
|
+
repeated MessageAppendix appendix_files = 3; // declare external configuration info
|
|
53
|
+
optional string old_fqdn_for_backwards_compatibility = 4; // Topic name for domain events will be based on this attribute if present (only for known legacy FQDNs)
|
|
54
|
+
optional Segment.SegmentName segment = 5; // the cluster to which domain events will be produced
|
|
55
|
+
repeated string implements = 6; // FQDNs of interfaces (i.e. SPIs) that this entity implements. Must begin with `wix.interfaces.`
|
|
56
|
+
optional Extensible extensible = 7; // Indicates that this entity can be extended by apps using data-extension mechanism.
|
|
57
|
+
optional bool trashbin = 8; // Indicates whether trash-bin is exposed on this entity.
|
|
58
|
+
optional string plural = 9; // plural form of this entity. e.g. singular: `entity`; plural: `entities`;
|
|
59
|
+
optional string domain_events_read_permission = 10; // permission to consume all event types of this entity from topic. affects internal/external consumers. For external webhook subscribers - MAY be overridden by event/callback `permission` field.
|
|
60
|
+
optional string app_def_id = 11; // the app in devcenter that owns this entity
|
|
61
|
+
optional DomainEventOptions domain_events = 12;
|
|
62
|
+
optional Taggable taggable = 13; // Indicates whether this entity supports tagging
|
|
63
|
+
optional QueryOptions query_options = 14;
|
|
64
|
+
optional Exposure events_exposure = 15; // default events exposure, may be overridden in `wix.api.domain_event`
|
|
65
|
+
optional Maturity events_maturity = 16; // default events maturity, may be overridden in `wix.api.domain_event`
|
|
66
|
+
optional Persistence persistence = 17; // persistence config: type and tenancy model
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message Persistence {
|
|
70
|
+
enum Type {
|
|
71
|
+
STANDARD = 0; // multiple records per tenant
|
|
72
|
+
SINGLETON = 1; // single record per tenant
|
|
73
|
+
NONE = 2; // zero records per tenant - stateless
|
|
74
|
+
}
|
|
75
|
+
optional Type type = 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message Extensible {
|
|
79
|
+
|
|
80
|
+
optional string nested_extension_field_path = 1;
|
|
81
|
+
// Indicates whether this entity supports filtering by extended fields which are marked in schema as `x-wix-filterable`
|
|
82
|
+
optional bool filterable = 2;
|
|
83
|
+
repeated NestedExtensionPointMapping nested_extension_point_mappings = 3; // mappings for nested extensionPoint
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message NestedExtensionPointMapping {
|
|
87
|
+
required string extension_point = 1; // the logical name of the extension point
|
|
88
|
+
required string path = 2; // the path to the parent object that contains the `extended_fields` field
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message MessageAppendix {
|
|
92
|
+
enum Type {
|
|
93
|
+
UNKNOWN_APPENDIX_TYPE = 0;
|
|
94
|
+
AUTO_VELO = 1; // auto velo configuration
|
|
95
|
+
DOCS_CONF = 2; // wix docs configuration: `documentation.yaml`
|
|
96
|
+
MULTILINGUAL = 3; // wix multilingual configuration
|
|
97
|
+
SEARCH = 4; // nile search configuration
|
|
98
|
+
AUTO_SDK = 5; // auto sdk configuration
|
|
99
|
+
}
|
|
100
|
+
required Type type = 1; // appendix type
|
|
101
|
+
required string path = 2; // absolute from module root
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message DomainEventOptions {
|
|
105
|
+
optional bool event_sequence_number = 1; // indicated whenever `entity_event_sequence` in the envelope is set/populated for CUD events.
|
|
106
|
+
optional bool deleted_include_entity = 2; // indicated whenever `deleted_entity_as_json` is set/populated for EntityDeletedEvent events.
|
|
107
|
+
optional bool updated_include_modified_fields = 3; // indicated whenever `modified_fields` is set/populated for EntityUpdatedEvent events.
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message Taggable {}
|
|
111
|
+
|
|
112
|
+
message QueryOptions {
|
|
113
|
+
required Wql wql = 1; // mark fields that are available for filtering and sorting via WixQueryLanguage
|
|
114
|
+
repeated Search search = 2; // mark fields that are available for search
|
|
115
|
+
repeated NamedQueryOptions additional_query_options = 10; //additional query options
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message NamedQueryOptions {
|
|
119
|
+
required string name = 1; // additional options should be named
|
|
120
|
+
required Wql wql = 2; // mark fields that are available for filtering and sorting via WixQueryLanguage
|
|
121
|
+
repeated Search search = 3; // mark fields that are available for search
|
|
122
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.api;
|
|
4
|
+
|
|
5
|
+
option java_package = "com.wix.api";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/struct.proto";
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
|
|
10
|
+
message Details {
|
|
11
|
+
oneof kind {
|
|
12
|
+
ApplicationError application_error = 1;
|
|
13
|
+
ValidationError validation_error = 2;
|
|
14
|
+
SystemError system_error = 4;
|
|
15
|
+
}
|
|
16
|
+
map<string, string> tracing = 3 [deprecated = true]; // deprecated in API's - to enable migration from rendering arbitrary tracing to rest response
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message ApplicationError {
|
|
20
|
+
// Error code.
|
|
21
|
+
string code = 1;
|
|
22
|
+
// Description of the error.
|
|
23
|
+
string description = 2;
|
|
24
|
+
// Data related to the error.
|
|
25
|
+
google.protobuf.Struct data = 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message SystemError {
|
|
29
|
+
// Error code.
|
|
30
|
+
google.protobuf.StringValue errorCode = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
example result:
|
|
35
|
+
{
|
|
36
|
+
"fieldViolations": [
|
|
37
|
+
{
|
|
38
|
+
"field": "fieldA",
|
|
39
|
+
"description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
|
|
40
|
+
"violatedRule": "OTHER",
|
|
41
|
+
"ruleName": "INVALID_NOTE",
|
|
42
|
+
"data": {
|
|
43
|
+
"value": "FI"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"field": "fieldB",
|
|
48
|
+
"description": "field value out of range. supported range: [0-20]",
|
|
49
|
+
"violatedRule": "MAX",
|
|
50
|
+
"data": {
|
|
51
|
+
"threshold": 20
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"field": "fieldC",
|
|
56
|
+
"description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
|
|
57
|
+
"violatedRule": "FORMAT",
|
|
58
|
+
"data": {
|
|
59
|
+
"type": "PHONE"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
**/
|
|
65
|
+
message ValidationError {
|
|
66
|
+
enum RuleType {
|
|
67
|
+
VALIDATION = 0;
|
|
68
|
+
OTHER = 1;
|
|
69
|
+
MAX = 2;
|
|
70
|
+
MIN = 3;
|
|
71
|
+
MAX_LENGTH = 4;
|
|
72
|
+
MIN_LENGTH = 5;
|
|
73
|
+
MAX_SIZE = 6;
|
|
74
|
+
MIN_SIZE = 7;
|
|
75
|
+
FORMAT = 8;
|
|
76
|
+
DECIMAL_LTE = 9;
|
|
77
|
+
DECIMAL_GTE = 10;
|
|
78
|
+
DECIMAL_LT = 11;
|
|
79
|
+
DECIMAL_GT = 12;
|
|
80
|
+
DECIMAL_MAX_SCALE = 13;
|
|
81
|
+
INVALID_ENUM_VALUE = 14;
|
|
82
|
+
REQUIRED_FIELD = 15;
|
|
83
|
+
FIELD_NOT_ALLOWED = 16;
|
|
84
|
+
ONE_OF_ALIGNMENT = 17;
|
|
85
|
+
EXACT_LENGTH = 18;
|
|
86
|
+
EXACT_SIZE = 19;
|
|
87
|
+
}
|
|
88
|
+
message FieldViolation {
|
|
89
|
+
string field = 1;
|
|
90
|
+
string description = 2;
|
|
91
|
+
RuleType violated_rule = 3;
|
|
92
|
+
google.protobuf.StringValue rule_name = 4; // applicable when violated_rule=OTHER
|
|
93
|
+
google.protobuf.Struct data = 5;
|
|
94
|
+
}
|
|
95
|
+
repeated FieldViolation field_violations = 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// for all kinds of min/max violations - match to type provided in annotation
|
|
99
|
+
message LimitRuleInt32DataPayload {
|
|
100
|
+
int32 threshold = 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// for all kinds of min/max violations - match to type provided in annotation
|
|
104
|
+
message LimitRuleDoubleDataPayload {
|
|
105
|
+
double threshold = 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// for all kinds of min/max violations - match to type provided in annotation
|
|
109
|
+
message LimitRuleStringDataPayload {
|
|
110
|
+
string threshold = 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// for format violations
|
|
114
|
+
message FormatRuleDataPayload {
|
|
115
|
+
string type = 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// for enum violations
|
|
119
|
+
message EnumRuleDataPayload {
|
|
120
|
+
repeated string supported = 1;
|
|
121
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 = "IdempotencyProto";
|
|
9
|
+
option java_package = "com.wix.api";
|
|
10
|
+
|
|
11
|
+
/* Idempotency annotation for Loom Prime
|
|
12
|
+
Configures idempotency for the method.
|
|
13
|
+
See ExecutionGuard README for more details: https://github.com/wix-private/server-infra/blob/master/aglianico/execution-guard/README.md#loom-prime-with-zero-code
|
|
14
|
+
|
|
15
|
+
[NOTE]:
|
|
16
|
+
The annotation affects only Loom Prime services.
|
|
17
|
+
Any other service will ignore this annotation.
|
|
18
|
+
*/
|
|
19
|
+
extend google.protobuf.MethodOptions {
|
|
20
|
+
optional Idempotency idempotency = 50153;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message Idempotency {
|
|
24
|
+
optional string key = 1;
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 = "PermissionsProto";
|
|
9
|
+
option java_package = "com.wix.api";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Annotation for method permission rules
|
|
13
|
+
* example usage:
|
|
14
|
+
* import "wix/api/permissions.proto";
|
|
15
|
+
* service Bloop {
|
|
16
|
+
* rpc Create (CreateBloopRequest) returns (CreateBloopResponse) {
|
|
17
|
+
* option (wix.api.permission).name = "SOME_PERMISSION_NAME";
|
|
18
|
+
* }
|
|
19
|
+
* rpc SpecialDelete (SpecialDeleteBloopRequest) returns (SpecialDeleteResponse) {
|
|
20
|
+
* option (wix.api.permission) = {
|
|
21
|
+
* name: "SOME_PERMISSION_NAME"
|
|
22
|
+
* type: MANUAL
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
**/
|
|
27
|
+
extend google.protobuf.MethodOptions {
|
|
28
|
+
optional PermissionRule permission = 50301;
|
|
29
|
+
repeated PermissionRule additional_permission = 50302;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message PermissionRule {
|
|
33
|
+
optional string name = 1;
|
|
34
|
+
optional PermissionType type = 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
enum PermissionType {
|
|
38
|
+
AUTO = 0;
|
|
39
|
+
MANUAL = 1;
|
|
40
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 = "SlaProto";
|
|
9
|
+
option java_package = "com.wix.api";
|
|
10
|
+
|
|
11
|
+
extend google.protobuf.MethodOptions {
|
|
12
|
+
optional Sla sla = 50700;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message Sla {
|
|
16
|
+
/*
|
|
17
|
+
* Number of milliseconds after which the method will timeout
|
|
18
|
+
* and return TIMEOUT (504) response for http or DEADLINE_EXCEEDED
|
|
19
|
+
* for grpc.
|
|
20
|
+
* This default deadline will be applied automatically
|
|
21
|
+
* iff request does not contain deadline information.
|
|
22
|
+
*/
|
|
23
|
+
optional int32 response_time_ms = 1;
|
|
24
|
+
}
|
package/@wix/ambassador-infra-asyncjobs-v1-async-job/src/main/proto/wix/api/subscription.proto
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax = "proto2";
|
|
2
|
+
|
|
3
|
+
package wix.api;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/descriptor.proto";
|
|
6
|
+
import "wix/api/callback.proto";
|
|
7
|
+
|
|
8
|
+
option java_multiple_files = true;
|
|
9
|
+
option java_outer_classname = "SubscriptionProto";
|
|
10
|
+
option java_package = "com.wix.api";
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
Marks a method as a topic consumer.
|
|
14
|
+
service BlooperService {
|
|
15
|
+
rpc Update (BlooperUpdateNotification) returns (google.protobuf.Empty) {
|
|
16
|
+
option (wix.api.subscription) = {
|
|
17
|
+
topic: "Blooper.Update"
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
*/
|
|
22
|
+
extend google.protobuf.MethodOptions {
|
|
23
|
+
optional Subscription subscription = 50400;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message Subscription {
|
|
27
|
+
optional string topic = 1;
|
|
28
|
+
optional Segment.SegmentName segment = 4; // currently defaults to "legacy", will be `required` when legacy cluster is removed
|
|
29
|
+
optional bool batch = 2 [deprecated = true];
|
|
30
|
+
optional string entity = 3;
|
|
31
|
+
optional bool dynamic = 5;
|
|
32
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
syntax = "proto2";
|
|
2
|
+
|
|
3
|
+
package wix.api;
|
|
4
|
+
|
|
5
|
+
import "wix/api/api_errors.proto";
|
|
6
|
+
import "google/protobuf/descriptor.proto";
|
|
7
|
+
|
|
8
|
+
option java_multiple_files = true;
|
|
9
|
+
option java_outer_classname = "ValidationsProto";
|
|
10
|
+
option java_package = "com.wix.api";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Annotation for field validation rules
|
|
14
|
+
* example usage:
|
|
15
|
+
* import "wix/api/validations.proto";
|
|
16
|
+
*
|
|
17
|
+
* message User {
|
|
18
|
+
* string id = 1 [(wix.api.readOnly)=true, (wix.api.format)=GUID];
|
|
19
|
+
* double age = 2 [(wix.api.max)=120, (wix.api.min)=0];
|
|
20
|
+
* string email = 3 [(wix.api.format)=EMAIL];
|
|
21
|
+
* string username = 4 [(wix.api.minLength)=3];
|
|
22
|
+
* string phone = 5 [(wix.api.format)=PHONE];
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* message Invoice {
|
|
26
|
+
* string id = 1 [(wix.api.readOnly)=true, (wix.api.format)=GUID];
|
|
27
|
+
* string amount_paid = 2 [(wix.api.decimalValue) = { gte: "0.01" lt: "10" maxScale: 2 }];
|
|
28
|
+
* }
|
|
29
|
+
**/
|
|
30
|
+
extend google.protobuf.FieldOptions {
|
|
31
|
+
// max possible value
|
|
32
|
+
optional double max = 50201;
|
|
33
|
+
// min possible value
|
|
34
|
+
optional double min = 50202;
|
|
35
|
+
// max length for strings
|
|
36
|
+
optional int32 maxLength = 50203;
|
|
37
|
+
// min length for strings
|
|
38
|
+
optional int32 minLength = 50204;
|
|
39
|
+
// exact length for strings
|
|
40
|
+
optional int32 exactLength = 50206;
|
|
41
|
+
// max size for repeated field, map
|
|
42
|
+
optional int32 maxSize = 50209;
|
|
43
|
+
// min size for repeated field, map
|
|
44
|
+
optional int32 minSize = 50210;
|
|
45
|
+
// exact size for repeated field, map
|
|
46
|
+
optional int32 exactSize = 50213;
|
|
47
|
+
// common known formats like email, URI, etc.
|
|
48
|
+
optional Format format = 50205;
|
|
49
|
+
// indicates this field cannot be set by the client. E.g. Id field assigned by the server
|
|
50
|
+
optional bool readOnly = 50208;
|
|
51
|
+
// indicates this field can be set by the client, but can never be changed or updated
|
|
52
|
+
optional bool immutable = 50212;
|
|
53
|
+
// indicates this field is input-only, it will NOT be returned in output response
|
|
54
|
+
optional bool writeOnly = 50154;
|
|
55
|
+
// decimal value format
|
|
56
|
+
optional DecimalValueOptions decimalValue = 50211;
|
|
57
|
+
// declare custom field validation for all methods
|
|
58
|
+
optional CustomValidationError custom_validation = 50214;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Decimal value validation rules.
|
|
63
|
+
* Based on java.math.BigDecimal, implies (wix.api.format) = DECIMAL_VALUE
|
|
64
|
+
*/
|
|
65
|
+
message DecimalValueOptions {
|
|
66
|
+
optional string lte = 1; // less than or equal
|
|
67
|
+
optional string gte = 2; // greater than or equal
|
|
68
|
+
optional string lt = 3; // less than
|
|
69
|
+
optional string gt = 4; // greater than
|
|
70
|
+
optional int32 maxScale = 5; // max number of fractional digits
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Annotation for method validation rules
|
|
75
|
+
* example usage:
|
|
76
|
+
* import "wix/api/validations.proto";
|
|
77
|
+
* service Bloop {
|
|
78
|
+
* rpc Create (CreateBloopRequest) returns (CreateBloopResponse) {
|
|
79
|
+
* option (wix.api.required) = "CreateBloopRequest.Bloop.name";
|
|
80
|
+
* }
|
|
81
|
+
* }
|
|
82
|
+
**/
|
|
83
|
+
extend google.protobuf.MethodOptions {
|
|
84
|
+
// Specify which fields are required in this method.
|
|
85
|
+
// Annotating a nested field as `required` does not imply that the whole path to that field is required, eg.
|
|
86
|
+
// `option (wix.api.required) = "person.pet.name";` means that if a `person` has a `pet`, then the `pet` must have
|
|
87
|
+
// a `name` set; it does not mean that `person` or `person.pet` themselves are required - these fields should be
|
|
88
|
+
// annotated individually if needed.
|
|
89
|
+
// This option can be repeated multiple times to specify multiple fields.
|
|
90
|
+
// example use:
|
|
91
|
+
// option (wix.api.required) = "userId";
|
|
92
|
+
// option (wix.api.required) = "userName";
|
|
93
|
+
repeated string required = 50200;
|
|
94
|
+
// Specify list of `immutable` fields which can be writable in this method.
|
|
95
|
+
// Most common in Create methods
|
|
96
|
+
// Only `immutable` AND NOT `readOnly` fields are allowed to be referenced via this annotation
|
|
97
|
+
// example use:
|
|
98
|
+
// option (wix.api.writable) = "id"; // user-generated id is enabled
|
|
99
|
+
repeated string writable = 50213;
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
extend google.protobuf.OneofOptions {
|
|
104
|
+
// name of the enum field that must be aligned with this oneof (AIP 7015)
|
|
105
|
+
// ADR 038: Linking oneOf with Enum: https://github.com/wix-private/server-infra/blob/master/framework/docs/adr/adr-038-aligned-with-enum.md
|
|
106
|
+
optional AlignedWithEnum aligned_with_enum = 50800;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message AlignedWithEnum {
|
|
110
|
+
required string field = 1;
|
|
111
|
+
// defaults to _options if not specified
|
|
112
|
+
optional string suffix = 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
enum Format {
|
|
116
|
+
EMAIL = 0;
|
|
117
|
+
HOSTNAME = 1;
|
|
118
|
+
IPV4 = 2;
|
|
119
|
+
IPV6 = 3;
|
|
120
|
+
URI = 4;
|
|
121
|
+
WEB_URL = 5; // HTTP or HTTPS
|
|
122
|
+
PHONE = 7;
|
|
123
|
+
CREDIT_CARD = 8;
|
|
124
|
+
GUID = 9;
|
|
125
|
+
COUNTRY = 10; // 2 letters ISO-3166-1
|
|
126
|
+
LANGUAGE = 11; // 2 letters ISO-639-1
|
|
127
|
+
/*
|
|
128
|
+
Use this on string or stringValue types to validate the format of that field is same as a decimal value.
|
|
129
|
+
This will ensure keeping the precision of decimal value, such as when passing monetary values.
|
|
130
|
+
*/
|
|
131
|
+
DECIMAL_VALUE = 12;
|
|
132
|
+
CURRENCY = 13; // 3 letters - all available currencies
|
|
133
|
+
LANGUAGE_TAG = 14; // IETF BCP 47 language tag (e.g. en-US)
|
|
134
|
+
COLOR_HEX = 15; // hex color format as defined by the MDN https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color
|
|
135
|
+
LOCAL_DATE = 16; // ISO-8601 extended local date format (YYYY-MM-DD)
|
|
136
|
+
LOCAL_TIME = 17; // ISO-8601 extended local time format (hh:mm[:ss][.sss])
|
|
137
|
+
LOCAL_DATE_TIME = 18; // ISO-8601 extended local date-time format (YYYY-MM-DDThh:mm[:ss][.sss])
|
|
138
|
+
URL_SLUG = 19;
|
|
139
|
+
SYSTEM_SLUG = 20;
|
|
140
|
+
SECURE_WEB_URL = 21; // HTTPS only
|
|
141
|
+
SUBDIVISION = 22; // ISO-3166-2
|
|
142
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.common;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.wix.common";
|
|
7
|
+
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
import "wix/api/annotations.proto";
|
|
10
|
+
import "wix/api/validations.proto";
|
|
11
|
+
|
|
12
|
+
// A common address format to use if you plan to store addresses in your service
|
|
13
|
+
|
|
14
|
+
// Physical address
|
|
15
|
+
message Address {
|
|
16
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
17
|
+
field: "country"
|
|
18
|
+
field: "subdivision"
|
|
19
|
+
field: "city"
|
|
20
|
+
field: "postal_code"
|
|
21
|
+
field: "street_address"
|
|
22
|
+
field: "formatted_address"
|
|
23
|
+
};
|
|
24
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
25
|
+
field: "country"
|
|
26
|
+
field: "subdivision"
|
|
27
|
+
field: "city"
|
|
28
|
+
field: "postal_code"
|
|
29
|
+
field: "address_line"
|
|
30
|
+
field: "address_line_2"
|
|
31
|
+
field: "formatted_address"
|
|
32
|
+
};
|
|
33
|
+
google.protobuf.StringValue country = 1 [(.wix.api.format) = COUNTRY]; // Country code.
|
|
34
|
+
google.protobuf.StringValue subdivision = 2; // Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY
|
|
35
|
+
google.protobuf.StringValue subdivision_iso_3166_2 = 14 [(.wix.api.maxLength) = 20, (.wix.api.field_exposure) = PRIVATE]; // Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2), e.g. US-NY
|
|
36
|
+
google.protobuf.StringValue city = 3 [(.wix.api.pii) = true]; // City name.
|
|
37
|
+
google.protobuf.StringValue postal_code = 4 [(.wix.api.pii) = true]; // Zip/postal code.
|
|
38
|
+
oneof street {
|
|
39
|
+
StreetAddress street_address = 5; // Street name and number.
|
|
40
|
+
google.protobuf.StringValue address_line = 6 [(.wix.api.pii) = true]; // Main address line, usually street and number as free text.
|
|
41
|
+
}
|
|
42
|
+
google.protobuf.StringValue address_line_2 = 7 [(.wix.api.pii) = true]; // Free text providing more detailed address info. Usually contains Apt, Suite, and Floor.
|
|
43
|
+
|
|
44
|
+
google.protobuf.StringValue formatted_address = 8 [(.wix.api.pii) = true, (.wix.api.field_exposure) = PRIVATE]; // A string containing the full address of this location.
|
|
45
|
+
google.protobuf.StringValue hint = 9 [(.wix.api.pii) = true, (.wix.api.field_exposure) = PRIVATE]; // Free text to help find the address.
|
|
46
|
+
AddressLocation geocode = 10 [(.wix.api.field_exposure) = PRIVATE]; // Coordinates of the physical address.
|
|
47
|
+
google.protobuf.StringValue country_fullname = 11 [(.wix.api.pii) = false, (.wix.api.field_exposure) = PRIVATE]; // Country full name.
|
|
48
|
+
google.protobuf.StringValue subdivision_fullname = 13 [(.wix.api.pii) = false, (.wix.api.field_exposure) = PRIVATE]; // Subdivision full name.
|
|
49
|
+
repeated Subdivision subdivisions = 12 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.maxSize) = 6]; // Multi-level subdivisions from top to bottom.
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message Subdivision {
|
|
53
|
+
enum SubdivisionType {
|
|
54
|
+
UNKNOWN_SUBDIVISION_TYPE = 0;
|
|
55
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = 1; // State
|
|
56
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = 2; // County
|
|
57
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = 3; // City/town
|
|
58
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = 4; // Neighborhood/quarter
|
|
59
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = 5; // Street/block
|
|
60
|
+
COUNTRY = 6; // ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder.
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Subdivision Concordance values
|
|
64
|
+
message StandardDetails {
|
|
65
|
+
google.protobuf.StringValue iso_3166_2 = 1 [(.wix.api.maxLength) = 20]; // subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
69
|
+
field: "code"
|
|
70
|
+
};
|
|
71
|
+
string code = 1; // Short subdivision code.
|
|
72
|
+
string name = 2; // Subdivision full name.
|
|
73
|
+
SubdivisionType type = 3 [(.wix.api.field_exposure) = PRIVATE]; // Subdivision level
|
|
74
|
+
google.protobuf.StringValue type_info = 4 [(.wix.api.field_exposure) = PRIVATE]; // Free text description of subdivision type.
|
|
75
|
+
StandardDetails standard_details = 5 [(.wix.api.field_exposure) = PRIVATE]; // Standard organizations details (e.g. ISO).
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message StreetAddress {
|
|
79
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
80
|
+
field: "number"
|
|
81
|
+
field: "name"
|
|
82
|
+
};
|
|
83
|
+
string number = 1 [(.wix.api.pii) = true]; // Street number.
|
|
84
|
+
string name = 2 [(.wix.api.pii) = true]; // Street name.
|
|
85
|
+
string apt = 3 [(.wix.api.pii) = true, (.wix.api.field_exposure) = PRIVATE]; // Apartment number.
|
|
86
|
+
google.protobuf.StringValue formatted_address_line = 4 [(.wix.api.pii) = true, (.wix.api.field_exposure) = PRIVATE]; // Optional address line 1
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
//Contact details for the address
|
|
90
|
+
message AddressContactDetails {
|
|
91
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
92
|
+
field: "full_name"
|
|
93
|
+
};
|
|
94
|
+
google.protobuf.StringValue full_name = 1 [(.wix.api.pii) = true]; // Contact's full name.
|
|
95
|
+
google.protobuf.StringValue phone = 2 [(.wix.api.pii) = true, (.wix.api.format) = PHONE]; // Contact's phone number.
|
|
96
|
+
google.protobuf.StringValue company = 3; // Contact's company name.
|
|
97
|
+
google.protobuf.StringValue email = 4 [(.wix.api.pii) = true, (.wix.api.format) = EMAIL]; // Email associated with the address.
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
//Full contact details for an address
|
|
101
|
+
message FullAddressContactDetails {
|
|
102
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
103
|
+
field: "first_name"
|
|
104
|
+
field: "last_name"
|
|
105
|
+
};
|
|
106
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
107
|
+
field: "full_name"
|
|
108
|
+
};
|
|
109
|
+
google.protobuf.StringValue first_name = 1 [(.wix.api.pii) = true]; // Contact's first name.
|
|
110
|
+
google.protobuf.StringValue last_name = 2 [(.wix.api.pii) = true]; // Contact's last name.
|
|
111
|
+
google.protobuf.StringValue full_name = 8 [(.wix.api.pii) = true, (.wix.api.field_exposure) = PRIVATE]; // Contact's full name.
|
|
112
|
+
google.protobuf.StringValue phone = 3 [(.wix.api.pii) = true, (.wix.api.format) = PHONE]; // Contact's phone number.
|
|
113
|
+
google.protobuf.StringValue company = 4; // Contact's company name.
|
|
114
|
+
google.protobuf.StringValue email = 5 [(.wix.api.pii) = true, (.wix.api.format) = EMAIL]; // Email associated with the address.
|
|
115
|
+
VatId vat_id = 7; // Tax info. Currently usable only in Brazil.
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message VatId {
|
|
119
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
120
|
+
field: "id"
|
|
121
|
+
field: "type"
|
|
122
|
+
};
|
|
123
|
+
string id = 1 [(.wix.api.pii) = true]; // Customer's tax ID.
|
|
124
|
+
/*
|
|
125
|
+
Tax type.
|
|
126
|
+
|
|
127
|
+
Supported values:
|
|
128
|
+
+ `CPF`: for individual tax payers
|
|
129
|
+
+ `CNPJ`: for corporations
|
|
130
|
+
*/
|
|
131
|
+
VatType type = 2;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// tax info types
|
|
135
|
+
enum VatType {
|
|
136
|
+
UNSPECIFIED = 0;
|
|
137
|
+
CPF = 1; // CPF - for individual tax payers.
|
|
138
|
+
CNPJ = 2; // CNPJ - for corporations
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
message AddressLocation {
|
|
142
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
143
|
+
field: "latitude"
|
|
144
|
+
field: "longitude"
|
|
145
|
+
};
|
|
146
|
+
google.protobuf.DoubleValue latitude = 1 [(.wix.api.pii) = true]; // Address latitude.
|
|
147
|
+
google.protobuf.DoubleValue longitude = 2 [(.wix.api.pii) = true]; // Address longitude.
|
|
148
|
+
}
|