@restorecommerce/protos 2.0.2 → 3.0.1
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/CHANGELOG.md +336 -0
- package/google/protobuf/timestamp.proto +147 -0
- package/io/restorecommerce/access_control.proto +3 -5
- package/io/restorecommerce/address.proto +38 -37
- package/io/restorecommerce/attribute.proto +4 -4
- package/io/restorecommerce/auth.proto +15 -15
- package/io/restorecommerce/authentication_log.proto +12 -14
- package/io/restorecommerce/command.proto +10 -12
- package/io/restorecommerce/commandinterface.proto +3 -4
- package/io/restorecommerce/contact_point.proto +11 -13
- package/io/restorecommerce/contact_point_type.proto +5 -7
- package/io/restorecommerce/country.proto +7 -9
- package/io/restorecommerce/credential.proto +9 -9
- package/io/restorecommerce/customer.proto +9 -11
- package/io/restorecommerce/file.proto +23 -0
- package/io/restorecommerce/filter.proto +1 -1
- package/io/restorecommerce/fulfillment.proto +87 -104
- package/io/restorecommerce/fulfillment_courier.proto +15 -17
- package/io/restorecommerce/fulfillment_product.proto +44 -47
- package/io/restorecommerce/geometry.proto +23 -0
- package/io/restorecommerce/graph.proto +17 -17
- package/io/restorecommerce/image.proto +13 -12
- package/io/restorecommerce/invoice.proto +49 -51
- package/io/restorecommerce/job.proto +44 -46
- package/io/restorecommerce/locale.proto +6 -8
- package/io/restorecommerce/location.proto +11 -13
- package/io/restorecommerce/manufacturer.proto +6 -8
- package/io/restorecommerce/meta.proto +5 -5
- package/io/restorecommerce/notification.proto +8 -10
- package/io/restorecommerce/notification_channel.proto +6 -6
- package/io/restorecommerce/notification_req.proto +16 -16
- package/io/restorecommerce/oauth.proto +1 -1
- package/io/restorecommerce/order.proto +65 -72
- package/io/restorecommerce/organization.proto +15 -17
- package/io/restorecommerce/ostorage.proto +31 -33
- package/io/restorecommerce/payment.proto +32 -34
- package/io/restorecommerce/payment_method.proto +7 -7
- package/io/restorecommerce/policy.proto +16 -18
- package/io/restorecommerce/policy_set.proto +12 -14
- package/io/restorecommerce/price_group.proto +6 -8
- package/io/restorecommerce/product.proto +146 -48
- package/io/restorecommerce/product_category.proto +10 -12
- package/io/restorecommerce/product_prototype.proto +8 -10
- package/io/restorecommerce/rendering.proto +2 -2
- package/io/restorecommerce/resource_base.proto +20 -20
- package/io/restorecommerce/role.proto +6 -8
- package/io/restorecommerce/rule.proto +20 -22
- package/io/restorecommerce/search.proto +4 -6
- package/io/restorecommerce/status.proto +13 -8
- package/io/restorecommerce/tax.proto +13 -10
- package/io/restorecommerce/tax_type.proto +13 -9
- package/io/restorecommerce/timezone.proto +5 -7
- package/io/restorecommerce/token.proto +11 -13
- package/io/restorecommerce/user.proto +46 -49
- package/package.json +2 -2
|
@@ -7,33 +7,33 @@ import "io/restorecommerce/attribute.proto";
|
|
|
7
7
|
* Subject of creating User
|
|
8
8
|
*/
|
|
9
9
|
message Subject {
|
|
10
|
-
string id = 1; // user id
|
|
11
|
-
string scope = 2; // target scope (ID of the target scoping entity)
|
|
12
|
-
bool unauthenticated = 3; // for unauthenticated context
|
|
13
|
-
string token = 4;
|
|
10
|
+
optional string id = 1; // user id
|
|
11
|
+
optional string scope = 2; // target scope (ID of the target scoping entity)
|
|
12
|
+
optional bool unauthenticated = 3; // for unauthenticated context
|
|
13
|
+
optional string token = 4;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
message Tokens {
|
|
17
|
-
string name = 1; // token name
|
|
18
|
-
double expires_in = 2; // expiration date for token
|
|
19
|
-
string token = 3; // token
|
|
17
|
+
optional string name = 1; // token name
|
|
18
|
+
optional double expires_in = 2; // expiration date for token
|
|
19
|
+
optional string token = 3; // token
|
|
20
20
|
repeated string scopes = 4; // identifier for role_association
|
|
21
|
-
string type = 5; // type of token eg: access_token, refresh_token
|
|
22
|
-
bool interactive = 6;
|
|
23
|
-
double last_login = 7;
|
|
21
|
+
optional string type = 5; // type of token eg: access_token, refresh_token
|
|
22
|
+
optional bool interactive = 6;
|
|
23
|
+
optional double last_login = 7;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message HierarchicalScope {
|
|
27
|
-
string id = 1; // root node
|
|
27
|
+
optional string id = 1; // root node
|
|
28
28
|
repeated HierarchicalScope children = 2; // children nodes
|
|
29
|
-
string role = 3; // role identifier associated with root node scope
|
|
29
|
+
optional string role = 3; // role identifier associated with root node scope
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
message RoleAssociation {
|
|
33
|
-
string role = 1; // role ID
|
|
33
|
+
optional string role = 1; // role ID
|
|
34
34
|
repeated io.restorecommerce.attribute.Attribute attributes = 2; // useful attributes for RBAC/ABAC like organizational scope
|
|
35
|
-
string id = 3; // identifier for role_association
|
|
36
|
-
double created = 4; // timestamp when the role was created
|
|
35
|
+
optional string id = 3; // identifier for role_association
|
|
36
|
+
optional double created = 4; // timestamp when the role was created
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
message HierarchicalScopesRequest {
|
|
@@ -11,9 +11,7 @@ import "io/restorecommerce/options.proto";
|
|
|
11
11
|
/*
|
|
12
12
|
* Microservice definition.
|
|
13
13
|
*/
|
|
14
|
-
service
|
|
15
|
-
option (io.restorecommerce.options.service_name) = "authentication_log";
|
|
16
|
-
|
|
14
|
+
service AuthenticationLogService {
|
|
17
15
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (AuthenticationLogListResponse) {
|
|
18
16
|
option (io.restorecommerce.options.is_query) = true;
|
|
19
17
|
};
|
|
@@ -25,7 +23,7 @@ service Service {
|
|
|
25
23
|
|
|
26
24
|
message AuthenticationLogList {
|
|
27
25
|
repeated AuthenticationLog items = 1;
|
|
28
|
-
uint32 total_count = 2;
|
|
26
|
+
optional uint32 total_count = 2;
|
|
29
27
|
io.restorecommerce.auth.Subject subject = 3;
|
|
30
28
|
}
|
|
31
29
|
|
|
@@ -44,16 +42,16 @@ message AuthenticationLogResponse {
|
|
|
44
42
|
* Authentication Log
|
|
45
43
|
*/
|
|
46
44
|
message AuthenticationLog {
|
|
47
|
-
string id = 1; // log id
|
|
48
|
-
string ipv4_address = 2;
|
|
49
|
-
string ipv6_address = 3;
|
|
50
|
-
string operating_system = 4;
|
|
51
|
-
string user_agent = 5;
|
|
52
|
-
double date = 6; // time stamp of login, logout or token update
|
|
53
|
-
string activity = 7; // login, logout
|
|
54
|
-
io.restorecommerce.meta.Meta meta = 8; // meta info
|
|
55
|
-
string subject_id = 9; // subject id
|
|
56
|
-
string token_name = 10; // token name associated with io.restorecommerce.auth.Token.token_name
|
|
45
|
+
optional string id = 1; // log id
|
|
46
|
+
optional string ipv4_address = 2;
|
|
47
|
+
optional string ipv6_address = 3;
|
|
48
|
+
optional string operating_system = 4;
|
|
49
|
+
optional string user_agent = 5;
|
|
50
|
+
optional double date = 6; // time stamp of login, logout or token update
|
|
51
|
+
optional string activity = 7; // login, logout
|
|
52
|
+
optional io.restorecommerce.meta.Meta meta = 8; // meta info
|
|
53
|
+
optional string subject_id = 9; // subject id
|
|
54
|
+
optional string token_name = 10; // token name associated with io.restorecommerce.auth.Token.token_name
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
message Deleted {
|
|
@@ -10,11 +10,11 @@ import "io/restorecommerce/options.proto";
|
|
|
10
10
|
|
|
11
11
|
// command resource
|
|
12
12
|
message Command {
|
|
13
|
-
string id = 1;
|
|
14
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
15
|
-
string name = 3; // command name
|
|
13
|
+
optional string id = 1;
|
|
14
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
15
|
+
optional string name = 3; // command name
|
|
16
16
|
repeated CommandParameter parameters = 4; // all possible parameters
|
|
17
|
-
string description = 5; // command description
|
|
17
|
+
optional string description = 5; // command description
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
message CommandParameter {
|
|
@@ -26,15 +26,15 @@ message CommandParameter {
|
|
|
26
26
|
string_value = 4;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
string field = 1; // field name
|
|
30
|
-
string description = 2; // field description
|
|
31
|
-
ParameterType type = 3; // field's type
|
|
32
|
-
string properties = 4; // dump properties in case of `object_value``
|
|
29
|
+
optional string field = 1; // field name
|
|
30
|
+
optional string description = 2; // field description
|
|
31
|
+
optional ParameterType type = 3; // field's type
|
|
32
|
+
optional string properties = 4; // dump properties in case of `object_value``
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
message CommandList {
|
|
36
36
|
repeated Command items = 1;
|
|
37
|
-
uint32 total_count = 2;
|
|
37
|
+
optional uint32 total_count = 2;
|
|
38
38
|
io.restorecommerce.auth.Subject subject = 3;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -49,9 +49,7 @@ message CommandResponse {
|
|
|
49
49
|
io.restorecommerce.status.Status status = 2;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
service
|
|
53
|
-
option (io.restorecommerce.options.service_name) = "command";
|
|
54
|
-
|
|
52
|
+
service CommandService {
|
|
55
53
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (CommandListResponse) {
|
|
56
54
|
option (io.restorecommerce.options.is_query) = true;
|
|
57
55
|
};
|
|
@@ -9,8 +9,8 @@ import "io/restorecommerce/options.proto";
|
|
|
9
9
|
// used to send requests through Kafka or gRPC
|
|
10
10
|
message CommandRequest {
|
|
11
11
|
// command identifier (used to demultiplex operation in the command implementation)
|
|
12
|
-
string name = 1;
|
|
13
|
-
google.protobuf.Any payload = 2; // variable payload
|
|
12
|
+
optional string name = 1;
|
|
13
|
+
optional google.protobuf.Any payload = 2; // variable payload
|
|
14
14
|
io.restorecommerce.auth.Subject subject = 3;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -26,7 +26,6 @@ message CommandResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* RPC service for executing commands
|
|
28
28
|
*/
|
|
29
|
-
service
|
|
30
|
-
option (io.restorecommerce.options.service_name) = "commandinterface";
|
|
29
|
+
service CommandInterfaceService {
|
|
31
30
|
rpc Command(CommandRequest) returns (google.protobuf.Any);
|
|
32
31
|
}
|
|
@@ -14,9 +14,7 @@ import "io/restorecommerce/contact_point_type.proto";
|
|
|
14
14
|
import "io/restorecommerce/timezone.proto";
|
|
15
15
|
import "io/restorecommerce/locale.proto";
|
|
16
16
|
|
|
17
|
-
service
|
|
18
|
-
option (io.restorecommerce.options.service_name) = "contact_point";
|
|
19
|
-
|
|
17
|
+
service ContactPointService {
|
|
20
18
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (ContactPointListResponse) {
|
|
21
19
|
option (io.restorecommerce.options.is_query) = true;
|
|
22
20
|
};
|
|
@@ -32,7 +30,7 @@ message Deleted {
|
|
|
32
30
|
|
|
33
31
|
message ContactPointList {
|
|
34
32
|
repeated ContactPoint items = 1;
|
|
35
|
-
uint32 total_count = 2;
|
|
33
|
+
optional uint32 total_count = 2;
|
|
36
34
|
io.restorecommerce.auth.Subject subject = 3;
|
|
37
35
|
}
|
|
38
36
|
|
|
@@ -48,9 +46,9 @@ message ContactPointResponse {
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
message ContactPoint {
|
|
51
|
-
string id = 1;
|
|
52
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
53
|
-
string physical_address_id = 3 [
|
|
49
|
+
optional string id = 1;
|
|
50
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
51
|
+
optional string physical_address_id = 3 [
|
|
54
52
|
(io.restorecommerce.options.resolver) = {
|
|
55
53
|
target_type: ".io.restorecommerce.address.Address",
|
|
56
54
|
target_service: "resource",
|
|
@@ -59,9 +57,9 @@ message ContactPoint {
|
|
|
59
57
|
field_name: "physicalAddress",
|
|
60
58
|
}
|
|
61
59
|
];
|
|
62
|
-
string website = 5;
|
|
63
|
-
string email = 6;
|
|
64
|
-
string contact_point_type_id = 7 [
|
|
60
|
+
optional string website = 5;
|
|
61
|
+
optional string email = 6;
|
|
62
|
+
optional string contact_point_type_id = 7 [
|
|
65
63
|
(io.restorecommerce.options.resolver) = {
|
|
66
64
|
target_type: ".io.restorecommerce.contact_point_type.ContactPointType",
|
|
67
65
|
target_service: "resource",
|
|
@@ -70,8 +68,8 @@ message ContactPoint {
|
|
|
70
68
|
field_name: "contactPointType",
|
|
71
69
|
}
|
|
72
70
|
];
|
|
73
|
-
string telephone = 8;
|
|
74
|
-
string timezone_id = 9 [
|
|
71
|
+
optional string telephone = 8;
|
|
72
|
+
optional string timezone_id = 9 [
|
|
75
73
|
(io.restorecommerce.options.resolver) = {
|
|
76
74
|
target_type: ".io.restorecommerce.timezone.Timezone",
|
|
77
75
|
target_service: "resource",
|
|
@@ -80,7 +78,7 @@ message ContactPoint {
|
|
|
80
78
|
field_name: "timezone",
|
|
81
79
|
}
|
|
82
80
|
];
|
|
83
|
-
string locale_id = 10 [
|
|
81
|
+
optional string locale_id = 10 [
|
|
84
82
|
(io.restorecommerce.options.resolver) = {
|
|
85
83
|
target_type: ".io.restorecommerce.locale.Locale",
|
|
86
84
|
target_service: "resource",
|
|
@@ -11,9 +11,7 @@ import "io/restorecommerce/options.proto";
|
|
|
11
11
|
/*
|
|
12
12
|
* Microservice definition.
|
|
13
13
|
*/
|
|
14
|
-
service
|
|
15
|
-
option (io.restorecommerce.options.service_name) = "contact_point_type";
|
|
16
|
-
|
|
14
|
+
service ContactPointTypeService {
|
|
17
15
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (ContactPointTypeListResponse) {
|
|
18
16
|
option (io.restorecommerce.options.is_query) = true;
|
|
19
17
|
};
|
|
@@ -29,14 +27,14 @@ message Deleted {
|
|
|
29
27
|
|
|
30
28
|
message ContactPointTypeList {
|
|
31
29
|
repeated ContactPointType items = 1;
|
|
32
|
-
uint32 total_count = 2;
|
|
30
|
+
optional uint32 total_count = 2;
|
|
33
31
|
io.restorecommerce.auth.Subject subject = 3;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
message ContactPointType {
|
|
37
|
-
string id = 1;
|
|
38
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
39
|
-
string type = 3;
|
|
35
|
+
optional string id = 1;
|
|
36
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
37
|
+
optional string type = 3;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
message ContactPointTypeListResponse {
|
|
@@ -11,9 +11,7 @@ import "io/restorecommerce/options.proto";
|
|
|
11
11
|
/*
|
|
12
12
|
* Microservice definition.
|
|
13
13
|
*/
|
|
14
|
-
service
|
|
15
|
-
option (io.restorecommerce.options.service_name) = "country";
|
|
16
|
-
|
|
14
|
+
service CountryService {
|
|
17
15
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (CountryListResponse) {
|
|
18
16
|
option (io.restorecommerce.options.is_query) = true;
|
|
19
17
|
};
|
|
@@ -29,7 +27,7 @@ message Deleted {
|
|
|
29
27
|
|
|
30
28
|
message CountryList {
|
|
31
29
|
repeated Country items = 1;
|
|
32
|
-
uint32 total_count = 2;
|
|
30
|
+
optional uint32 total_count = 2;
|
|
33
31
|
io.restorecommerce.auth.Subject subject = 3;
|
|
34
32
|
}
|
|
35
33
|
|
|
@@ -45,10 +43,10 @@ message CountryResponse {
|
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
message Country {
|
|
48
|
-
string id = 1;
|
|
49
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
50
|
-
string name = 3;
|
|
51
|
-
string country_code = 4;
|
|
52
|
-
string geographical_name = 5;
|
|
46
|
+
optional string id = 1;
|
|
47
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
48
|
+
optional string name = 3;
|
|
49
|
+
optional string country_code = 4;
|
|
50
|
+
optional string geographical_name = 5;
|
|
53
51
|
repeated string economic_areas = 6;
|
|
54
52
|
}
|
|
@@ -11,7 +11,7 @@ import "io/restorecommerce/status.proto";
|
|
|
11
11
|
/*
|
|
12
12
|
* Microservice definition.
|
|
13
13
|
*/
|
|
14
|
-
service
|
|
14
|
+
service CredentialService {
|
|
15
15
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (CredentialListResponse);
|
|
16
16
|
rpc Create (CredentialList) returns (CredentialListResponse);
|
|
17
17
|
rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
|
|
@@ -25,7 +25,7 @@ message Deleted {
|
|
|
25
25
|
|
|
26
26
|
message CredentialList {
|
|
27
27
|
repeated Credential items = 1;
|
|
28
|
-
uint32 total_count = 2;
|
|
28
|
+
optional uint32 total_count = 2;
|
|
29
29
|
io.restorecommerce.auth.Subject subject = 3;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -41,11 +41,11 @@ message CredentialResponse {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
message Credential {
|
|
44
|
-
string id = 1;
|
|
45
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
46
|
-
string name = 3;
|
|
47
|
-
string description = 4;
|
|
48
|
-
string user = 5;
|
|
49
|
-
string pass = 6;
|
|
50
|
-
google.protobuf.Any credentials = 7; /// additional credentials as auth key or certificates etc
|
|
44
|
+
optional string id = 1;
|
|
45
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
46
|
+
optional string name = 3;
|
|
47
|
+
optional string description = 4;
|
|
48
|
+
optional string user = 5;
|
|
49
|
+
optional string pass = 6;
|
|
50
|
+
optional google.protobuf.Any credentials = 7; /// additional credentials as auth key or certificates etc
|
|
51
51
|
}
|
|
@@ -17,9 +17,7 @@ import "io/restorecommerce/organization.proto";
|
|
|
17
17
|
/*
|
|
18
18
|
Microservice definition.
|
|
19
19
|
*/
|
|
20
|
-
service
|
|
21
|
-
option (io.restorecommerce.options.service_name) = "customer";
|
|
22
|
-
|
|
20
|
+
service CustomerService {
|
|
23
21
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (CustomerListResponse) {
|
|
24
22
|
option (io.restorecommerce.options.is_query) = true;
|
|
25
23
|
};
|
|
@@ -31,7 +29,7 @@ service Service {
|
|
|
31
29
|
|
|
32
30
|
message CustomerList {
|
|
33
31
|
repeated Customer items = 1;
|
|
34
|
-
uint32 total_count = 2;
|
|
32
|
+
optional uint32 total_count = 2;
|
|
35
33
|
io.restorecommerce.auth.Subject subject = 3;
|
|
36
34
|
}
|
|
37
35
|
|
|
@@ -47,8 +45,8 @@ message CustomerResponse {
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
message Customer {
|
|
50
|
-
string id = 1;
|
|
51
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
48
|
+
optional string id = 1;
|
|
49
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
52
50
|
oneof customer {
|
|
53
51
|
IndividualUser individual_user = 3;
|
|
54
52
|
OrgUser org_user = 4;
|
|
@@ -57,7 +55,7 @@ message Customer {
|
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
message IndividualUser {
|
|
60
|
-
string user_id = 1 [
|
|
58
|
+
optional string user_id = 1 [
|
|
61
59
|
(io.restorecommerce.options.resolver) = {
|
|
62
60
|
target_type: ".io.restorecommerce.user.User",
|
|
63
61
|
target_service: "identity",
|
|
@@ -66,7 +64,7 @@ message IndividualUser {
|
|
|
66
64
|
field_name: "user",
|
|
67
65
|
}
|
|
68
66
|
];
|
|
69
|
-
string address_id = 2 [
|
|
67
|
+
optional string address_id = 2 [
|
|
70
68
|
(io.restorecommerce.options.resolver) = {
|
|
71
69
|
target_type: ".io.restorecommerce.address.Address",
|
|
72
70
|
target_service: "resource",
|
|
@@ -87,7 +85,7 @@ message IndividualUser {
|
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
message OrgUser {
|
|
90
|
-
string user_id = 1 [
|
|
88
|
+
optional string user_id = 1 [
|
|
91
89
|
(io.restorecommerce.options.resolver) = {
|
|
92
90
|
target_type: ".io.restorecommerce.user.User",
|
|
93
91
|
target_service: "identity",
|
|
@@ -96,7 +94,7 @@ message OrgUser {
|
|
|
96
94
|
field_name: "user",
|
|
97
95
|
}
|
|
98
96
|
];
|
|
99
|
-
string organization_id = 2 [
|
|
97
|
+
optional string organization_id = 2 [
|
|
100
98
|
(io.restorecommerce.options.resolver) = {
|
|
101
99
|
target_type: ".io.restorecommerce.organization.Organization",
|
|
102
100
|
target_service: "resource",
|
|
@@ -109,7 +107,7 @@ message OrgUser {
|
|
|
109
107
|
|
|
110
108
|
message Guest {
|
|
111
109
|
bool guest = 1;
|
|
112
|
-
string address_id = 2 [
|
|
110
|
+
optional string address_id = 2 [
|
|
113
111
|
(io.restorecommerce.options.resolver) = {
|
|
114
112
|
target_type: ".io.restorecommerce.address.Address",
|
|
115
113
|
target_service: "resource",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package io.restorecommerce.file;
|
|
4
|
+
|
|
5
|
+
message File {
|
|
6
|
+
optional string id = 1;
|
|
7
|
+
optional int64 index = 2;
|
|
8
|
+
optional string caption = 3;
|
|
9
|
+
optional string filename = 4;
|
|
10
|
+
optional string content_type = 5;
|
|
11
|
+
optional string url = 6;
|
|
12
|
+
optional int64 bytes = 7;
|
|
13
|
+
repeated string tags = 8;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message FileList {
|
|
17
|
+
repeated File items = 1;
|
|
18
|
+
optional uint32 total_count = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message Deleted {
|
|
22
|
+
string id = 1;
|
|
23
|
+
}
|