@wix/bex-utils 2.77.0 → 2.79.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-offer-event/build/cjs/builders.impl.d.ts +22 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/builders.impl.js +275 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/http.impl.d.ts +50 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/http.impl.js +250 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/meta.impl.d.ts +16 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/meta.impl.js +81 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/meta.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/client/proto-generated.d.ts +7116 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/proto-generated.d.ts +3557 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/proto-generated.js +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/server/proto-generated.d.ts +7113 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/rpc.impl.d.ts +59 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/rpc.impl.js +109 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/types.impl.d.ts +343 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/types.impl.js +42 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/builders.impl.d.ts +22 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/builders.impl.js +239 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/http.impl.d.ts +50 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/http.impl.js +244 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/meta.impl.d.ts +16 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/meta.impl.js +56 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/meta.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/rpc.impl.d.ts +59 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/rpc.impl.js +84 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/types.impl.d.ts +343 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/types.impl.js +39 -0
- package/@wix/ambassador-dealer-v1-offer-event/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-offer-event/builders/package.json +7 -0
- package/@wix/ambassador-dealer-v1-offer-event/http/package.json +7 -0
- package/@wix/ambassador-dealer-v1-offer-event/meta/package.json +7 -0
- package/@wix/ambassador-dealer-v1-offer-event/package.json +52 -0
- package/@wix/ambassador-dealer-v1-offer-event/rpc/package.json +6 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/annotations.proto +451 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/api_errors.proto +142 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/callback.proto +163 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/entity.proto +127 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/errors.proto +127 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/permissions.proto +46 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/subscription.proto +32 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/api/validations.proto +142 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/media.proto +280 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/query.proto +799 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/spi.proto +85 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/common/wixlink.proto +203 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/dealerOfferEvents/api/v1/dealer-offer-events.proto +211 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/dealerOfferEvents/api/v1/event.proto +131 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/spi/definitions.proto +187 -0
- package/@wix/ambassador-dealer-v1-offer-event/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-dealer-v1-offer-event/types/package.json +7 -0
- package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +4 -0
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/package.json +5 -4
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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/errors.proto";
|
|
11
|
+
|
|
12
|
+
message BulkActionMetadata {
|
|
13
|
+
// Number of items that were successfully processed.
|
|
14
|
+
int32 total_successes = 1;
|
|
15
|
+
// Number of items that couldn't be processed.
|
|
16
|
+
int32 total_failures = 2;
|
|
17
|
+
// Number of failures without details because detailed failure threshold was exceeded.
|
|
18
|
+
int32 undetailed_failures = 3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message ItemMetadata {
|
|
22
|
+
// Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
23
|
+
google.protobuf.StringValue id = 1;
|
|
24
|
+
// Index of the item within the request array. Allows for correlation between request and response items.
|
|
25
|
+
int32 original_index = 2;
|
|
26
|
+
// Whether the requested action was successful for this item. When `false`, the `error` field is populated.
|
|
27
|
+
bool success = 3;
|
|
28
|
+
// Details about the error in case of failure.
|
|
29
|
+
.wix.api.ApplicationError error = 4;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
enum BulkActionType {
|
|
33
|
+
UNKNOWN_ACTION_TYPE = 0;
|
|
34
|
+
INSERT = 1;
|
|
35
|
+
UPDATE = 2;
|
|
36
|
+
DELETE = 3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
|
|
41
|
+
Example for using it in your service:
|
|
42
|
+
|
|
43
|
+
message BulkOrderResult {
|
|
44
|
+
ItemMetadata item_metadata = 1;
|
|
45
|
+
Order item = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message BulkArchiveOrdersResponse {
|
|
49
|
+
repeated BulkOrderResult results = 1;
|
|
50
|
+
BulkActionMetadata bulk_action_metadata = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
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/validations.proto";
|
|
10
|
+
import "wix/api/annotations.proto";
|
|
11
|
+
|
|
12
|
+
message IdentificationData {
|
|
13
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
14
|
+
field: "identity_type"
|
|
15
|
+
field: "anonymous_visitor_id"
|
|
16
|
+
field: "member_id"
|
|
17
|
+
field: "wix_user_id"
|
|
18
|
+
field: "app_id"
|
|
19
|
+
};
|
|
20
|
+
enum IdentityType {
|
|
21
|
+
UNKNOWN = 0;
|
|
22
|
+
ANONYMOUS_VISITOR = 1;
|
|
23
|
+
MEMBER = 2;
|
|
24
|
+
WIX_USER = 3;
|
|
25
|
+
APP = 4;
|
|
26
|
+
}
|
|
27
|
+
// ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
|
|
28
|
+
google.protobuf.StringValue contact_id = 1 [(.wix.api.format) = GUID, (.wix.api.referenced_entity) = "wix.contacts.v4.contact"];
|
|
29
|
+
IdentityType identity_type = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
30
|
+
oneof id {
|
|
31
|
+
// ID of a site visitor that has not logged in to the site.
|
|
32
|
+
string anonymous_visitor_id = 2 [(.wix.api.format) = GUID];
|
|
33
|
+
// ID of a site visitor that has logged in to the site.
|
|
34
|
+
string member_id = 3 [(.wix.api.format) = GUID, (.wix.api.referenced_entity) = "wix.members.v1.member"];
|
|
35
|
+
// ID of a Wix user (site owner, contributor, etc.).
|
|
36
|
+
string wix_user_id = 4 [(.wix.api.format) = GUID];
|
|
37
|
+
// ID of an app.
|
|
38
|
+
string app_id = 5 [(.wix.api.format) = GUID];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,280 @@
|
|
|
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 "wix/api/annotations.proto";
|
|
9
|
+
import "wix/common/image.proto";
|
|
10
|
+
import "google/protobuf/wrappers.proto";
|
|
11
|
+
import "google/protobuf/timestamp.proto";
|
|
12
|
+
import "wix/api/validations.proto";
|
|
13
|
+
|
|
14
|
+
// flynt-disable deleted-field-enum-reserved
|
|
15
|
+
message Image {
|
|
16
|
+
// enum TextDetection{
|
|
17
|
+
// // No detection was made
|
|
18
|
+
// UNKNOWN_TEXT_DETECTION = 0;
|
|
19
|
+
// // The image contains text
|
|
20
|
+
// CONTAINS_TEXT = 1;
|
|
21
|
+
// // The image does not contain text
|
|
22
|
+
// NO_TEXT = 2;
|
|
23
|
+
// }
|
|
24
|
+
// enum AnimationDetection{
|
|
25
|
+
// // No detection was made
|
|
26
|
+
// UNKNOWN_ANIMATION_DETECTION = 0;
|
|
27
|
+
// // The image contains animation
|
|
28
|
+
// CONTAINS_ANIMATION = 1;
|
|
29
|
+
// // The image does not contain animation
|
|
30
|
+
// NO_ANIMATION = 2;
|
|
31
|
+
// }
|
|
32
|
+
// message ImageContent{
|
|
33
|
+
// // Text detection
|
|
34
|
+
// TextDetection text = 1;
|
|
35
|
+
// // Animation detection
|
|
36
|
+
// AnimationDetection animation = 2;
|
|
37
|
+
// }
|
|
38
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
39
|
+
field: "id"
|
|
40
|
+
field: "height"
|
|
41
|
+
field: "width"
|
|
42
|
+
};
|
|
43
|
+
// WixMedia image ID.
|
|
44
|
+
string id = 1;
|
|
45
|
+
// Image URL.
|
|
46
|
+
string url = 2;
|
|
47
|
+
// Original image height.
|
|
48
|
+
int32 height = 3 [(.wix.api.readOnly) = true];
|
|
49
|
+
// Original image width.
|
|
50
|
+
int32 width = 4 [(.wix.api.readOnly) = true];
|
|
51
|
+
// Image alt text.
|
|
52
|
+
google.protobuf.StringValue alt_text = 5;
|
|
53
|
+
// Image URL expiration date (when relevant).
|
|
54
|
+
google.protobuf.Timestamp url_expiration_date = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
55
|
+
// Image filename.
|
|
56
|
+
google.protobuf.StringValue filename = 7 [(.wix.api.readOnly) = true];
|
|
57
|
+
// Image size in bytes.
|
|
58
|
+
google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
59
|
+
// Focal point of the image.
|
|
60
|
+
FocalPoint focal_point = 9 [(.wix.api.field_exposure) = PRIVATE];
|
|
61
|
+
// Details about the image content.
|
|
62
|
+
// ImageContent image_content = 10 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = INTERNAL];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Deprecated - use VideoV2
|
|
66
|
+
message Video {
|
|
67
|
+
option deprecated = true;
|
|
68
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
69
|
+
field: "id"
|
|
70
|
+
field: "url"
|
|
71
|
+
field: "height"
|
|
72
|
+
field: "width"
|
|
73
|
+
};
|
|
74
|
+
// WixMedia ID
|
|
75
|
+
string id = 1;
|
|
76
|
+
// URL of video
|
|
77
|
+
string url = 2;
|
|
78
|
+
// Original image height
|
|
79
|
+
int32 height = 3 [(.wix.api.readOnly) = true];
|
|
80
|
+
// Original image width
|
|
81
|
+
int32 width = 4 [(.wix.api.readOnly) = true];
|
|
82
|
+
// Video poster
|
|
83
|
+
Image thumbnail = 5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message VideoV2 {
|
|
87
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
88
|
+
field: "id"
|
|
89
|
+
field: "resolutions"
|
|
90
|
+
};
|
|
91
|
+
// WixMedia ID.
|
|
92
|
+
string id = 1;
|
|
93
|
+
// Original video URL.
|
|
94
|
+
string url = 4 [(.wix.api.field_exposure) = PRIVATE];
|
|
95
|
+
// Available resolutions for the video, starting with the optimal resolution.
|
|
96
|
+
repeated VideoResolution resolutions = 2 [(.wix.api.readOnly) = true, (.wix.api.maxSize) = 100];
|
|
97
|
+
// Video filename.
|
|
98
|
+
google.protobuf.StringValue filename = 3 [(.wix.api.readOnly) = true];
|
|
99
|
+
// Video posters.
|
|
100
|
+
repeated Image posters = 5 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
101
|
+
// Original video size in bytes.
|
|
102
|
+
google.protobuf.StringValue size_in_bytes = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
103
|
+
// Video URL expiration date (when relevant).
|
|
104
|
+
google.protobuf.Timestamp url_expiration_date = 7 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
105
|
+
// Original video duration in milliseconds.
|
|
106
|
+
google.protobuf.Int32Value duration_in_milliseconds = 8 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0];
|
|
107
|
+
// A short title for the video. will be used for SEO purposes.
|
|
108
|
+
google.protobuf.StringValue title = 9 [(wix.api.maxLength) = 300, (.wix.api.field_exposure) = PRIVATE];
|
|
109
|
+
// A long description for the video. will be used for SEO purposes.
|
|
110
|
+
google.protobuf.StringValue description = 10 [(wix.api.maxLength) = 2000, (.wix.api.field_exposure) = PRIVATE];
|
|
111
|
+
// Original video height.
|
|
112
|
+
google.protobuf.Int32Value height = 11 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.min) = 0];
|
|
113
|
+
// Original video width.
|
|
114
|
+
google.protobuf.Int32Value width = 12 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.min) = 0];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message VideoResolution {
|
|
118
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
119
|
+
field: "url"
|
|
120
|
+
field: "height"
|
|
121
|
+
field: "width"
|
|
122
|
+
field: "poster"
|
|
123
|
+
field: "format"
|
|
124
|
+
};
|
|
125
|
+
// Video URL.
|
|
126
|
+
string url = 2;
|
|
127
|
+
// Video height.
|
|
128
|
+
int32 height = 3;
|
|
129
|
+
// Video width.
|
|
130
|
+
int32 width = 4;
|
|
131
|
+
// Deprecated. Use the `posters` property in the parent entity instead.
|
|
132
|
+
Image poster = 5 [(.wix.api.field_exposure) = PRIVATE, deprecated = true];
|
|
133
|
+
// Video format for example, mp4, hls.
|
|
134
|
+
string format = 6;
|
|
135
|
+
// Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
136
|
+
google.protobuf.Timestamp url_expiration_date = 7 [(.wix.api.field_exposure) = PRIVATE, deprecated = true];
|
|
137
|
+
// Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
138
|
+
google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE, deprecated = true];
|
|
139
|
+
// Video quality. For example: 480p, 720p.
|
|
140
|
+
google.protobuf.StringValue quality = 9 [(.wix.api.field_exposure) = PRIVATE];
|
|
141
|
+
// Video filename.
|
|
142
|
+
google.protobuf.StringValue filename = 10 [(.wix.api.field_exposure) = PRIVATE];
|
|
143
|
+
// Video duration in seconds.
|
|
144
|
+
google.protobuf.Int32Value duration_in_seconds = 11 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0, (.wix.api.field_deprecated) = {
|
|
145
|
+
replaced_by: "duration_in_milliseconds"
|
|
146
|
+
target_removal_date: "2024-08-01"
|
|
147
|
+
}];
|
|
148
|
+
// Video duration in milliseconds.
|
|
149
|
+
google.protobuf.Int32Value duration_in_milliseconds = 12 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0];
|
|
150
|
+
|
|
151
|
+
// When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
152
|
+
// In order to access private assets, make a request to:
|
|
153
|
+
// `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
154
|
+
google.protobuf.BoolValue private = 30 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
155
|
+
// Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
156
|
+
// Can be used to request a download for the specific video resolution.
|
|
157
|
+
// For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
158
|
+
google.protobuf.StringValue asset_key = 31 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message Audio {
|
|
162
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
163
|
+
field: "id"
|
|
164
|
+
field: "url"
|
|
165
|
+
};
|
|
166
|
+
// WixMedia ID.
|
|
167
|
+
string id = 1;
|
|
168
|
+
// Audio URL.
|
|
169
|
+
string url = 2;
|
|
170
|
+
// Audio URL expiration date (when relevant).
|
|
171
|
+
google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
172
|
+
// Audio size in bytes.
|
|
173
|
+
google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
174
|
+
// Audio filename.
|
|
175
|
+
google.protobuf.StringValue filename = 5 [(.wix.api.readOnly) = true];
|
|
176
|
+
// Audio duration in milliseconds.
|
|
177
|
+
google.protobuf.Int32Value duration = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.min) = 0];
|
|
178
|
+
|
|
179
|
+
// When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
180
|
+
// In order to access private assets, make a request to:
|
|
181
|
+
// `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
182
|
+
google.protobuf.BoolValue private = 30 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
183
|
+
// Key to identify the object relationship to the original media in WixMedia.
|
|
184
|
+
// Can be used to request a download for the specific asset.
|
|
185
|
+
// For example: 128-30kbs.mp3, 320kbs.mp3, 128kbs.mp3
|
|
186
|
+
google.protobuf.StringValue asset_key = 31 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
187
|
+
// Audio format.
|
|
188
|
+
google.protobuf.StringValue format = 32 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
189
|
+
// Audio quality.
|
|
190
|
+
google.protobuf.StringValue quality = 33 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
message Document {
|
|
194
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
195
|
+
field: "id"
|
|
196
|
+
field: "url"
|
|
197
|
+
};
|
|
198
|
+
// WixMedia ID.
|
|
199
|
+
string id = 1;
|
|
200
|
+
// Document URL.
|
|
201
|
+
string url = 2;
|
|
202
|
+
// Document URL expiration date (when relevant).
|
|
203
|
+
google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.field_exposure) = PRIVATE];
|
|
204
|
+
// Document size in bytes.
|
|
205
|
+
google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
206
|
+
// Document filename.
|
|
207
|
+
google.protobuf.StringValue filename = 5;
|
|
208
|
+
// Document thumbnail.
|
|
209
|
+
Image thumbnail = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
message Model3D {
|
|
213
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
214
|
+
field: "id"
|
|
215
|
+
};
|
|
216
|
+
// WixMedia 3D ID.
|
|
217
|
+
string id = 1;
|
|
218
|
+
// 3D URL.
|
|
219
|
+
string url = 2;
|
|
220
|
+
// 3D thumbnail Image
|
|
221
|
+
Image thumbnail = 3;
|
|
222
|
+
// 3D alt text.
|
|
223
|
+
google.protobuf.StringValue alt_text = 5;
|
|
224
|
+
// 3D URL expiration date (when relevant).
|
|
225
|
+
google.protobuf.Timestamp url_expiration_date = 6 [(.wix.api.readOnly) = true];
|
|
226
|
+
// 3D filename.
|
|
227
|
+
google.protobuf.StringValue filename = 7 [(.wix.api.readOnly) = true];
|
|
228
|
+
// 3D size in bytes.
|
|
229
|
+
google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.readOnly) = true, (.wix.api.format) = DECIMAL_VALUE];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
message Archive {
|
|
234
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
235
|
+
field: "id"
|
|
236
|
+
};
|
|
237
|
+
// WixMedia ID.
|
|
238
|
+
string id = 1;
|
|
239
|
+
// Archive URL.
|
|
240
|
+
string url = 2;
|
|
241
|
+
// Archive URL expiration date (when relevant).
|
|
242
|
+
google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.readOnly) = true];
|
|
243
|
+
// Archive size in bytes.
|
|
244
|
+
google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.format) = DECIMAL_VALUE];
|
|
245
|
+
// Archive filename.
|
|
246
|
+
google.protobuf.StringValue filename = 5;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
// Deprecated - Copy this message into your service, do not reference it
|
|
253
|
+
message MediaItem {
|
|
254
|
+
option deprecated = true;
|
|
255
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
256
|
+
field: "image"
|
|
257
|
+
};
|
|
258
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
259
|
+
field: "video"
|
|
260
|
+
};
|
|
261
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
262
|
+
field: "document"
|
|
263
|
+
};
|
|
264
|
+
oneof media {
|
|
265
|
+
Image image = 1; // WixMedia image
|
|
266
|
+
Video video = 2; // WixMedia video
|
|
267
|
+
Document document = 3; // WixMedia document
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
message FocalPoint {
|
|
272
|
+
// X-coordinate of the focal point.
|
|
273
|
+
double x = 1;
|
|
274
|
+
// Y-coordinate of the focal point.
|
|
275
|
+
double y = 2;
|
|
276
|
+
// crop by height
|
|
277
|
+
google.protobuf.Int32Value height = 3;
|
|
278
|
+
// crop by width
|
|
279
|
+
google.protobuf.Int32Value width = 4;
|
|
280
|
+
}
|