@restorecommerce/protos 2.0.2 → 3.0.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/CHANGELOG.md +325 -0
- package/google/protobuf/timestamp.proto +147 -0
- package/io/restorecommerce/access_control.proto +1 -3
- package/io/restorecommerce/address.proto +38 -37
- package/io/restorecommerce/attribute.proto +3 -3
- 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/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 +10 -10
- package/io/restorecommerce/image.proto +13 -12
- package/io/restorecommerce/invoice.proto +47 -49
- package/io/restorecommerce/job.proto +43 -45
- 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 +3 -3
- 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 +28 -30
- 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/resource_base.proto +15 -15
- package/io/restorecommerce/role.proto +6 -8
- package/io/restorecommerce/rule.proto +18 -20
- package/io/restorecommerce/search.proto +3 -5
- 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 +45 -48
- package/package.json +2 -2
|
@@ -17,8 +17,8 @@ service Service {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
message FieldFilter {
|
|
20
|
-
string name = 1;
|
|
21
|
-
bool include = 2;
|
|
20
|
+
optional string name = 1;
|
|
21
|
+
optional bool include = 2;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
message Sort {
|
|
@@ -28,7 +28,7 @@ message Sort {
|
|
|
28
28
|
DESCENDING = 2;
|
|
29
29
|
}
|
|
30
30
|
string field = 1;
|
|
31
|
-
SortOrder order = 2;
|
|
31
|
+
optional SortOrder order = 2;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
message Filter {
|
|
@@ -53,7 +53,7 @@ message Filter {
|
|
|
53
53
|
DATE = 3;
|
|
54
54
|
ARRAY = 4;
|
|
55
55
|
}
|
|
56
|
-
ValueType type = 4;
|
|
56
|
+
optional ValueType type = 4;
|
|
57
57
|
repeated io.restorecommerce.filter.FilterOp filters = 5; // for nested filtering and to make optional its in separate filter.proto file
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -63,18 +63,18 @@ message FilterOp {
|
|
|
63
63
|
and = 0;
|
|
64
64
|
or = 1;
|
|
65
65
|
}
|
|
66
|
-
Operator operator = 2;
|
|
66
|
+
optional Operator operator = 2;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
message Search {
|
|
70
|
-
string search = 1; // search string
|
|
70
|
+
optional string search = 1; // search string
|
|
71
71
|
repeated string fields = 2; // list of fields to be searched on entity (if not specified all indexed fields will be searched)
|
|
72
|
-
bool case_sensitive = 3; // default search is case insensitive
|
|
72
|
+
optional bool case_sensitive = 3; // default search is case insensitive
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
message ReadRequest {
|
|
76
|
-
uint32 offset = 1;
|
|
77
|
-
uint32 limit = 2;
|
|
76
|
+
optional uint32 offset = 1;
|
|
77
|
+
optional uint32 limit = 2;
|
|
78
78
|
repeated Sort sort = 3;
|
|
79
79
|
|
|
80
80
|
/// Filter based on fieldName|operation, value|list
|
|
@@ -93,14 +93,14 @@ message ReadRequest {
|
|
|
93
93
|
repeated string locales_limiter = 7;
|
|
94
94
|
|
|
95
95
|
repeated string custom_queries = 8;
|
|
96
|
-
google.protobuf.Any custom_arguments = 9;
|
|
96
|
+
optional google.protobuf.Any custom_arguments = 9;
|
|
97
97
|
io.restorecommerce.auth.Subject subject = 10;
|
|
98
|
-
Search search = 11;
|
|
98
|
+
optional Search search = 11;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
message DeleteRequest {
|
|
102
102
|
/// Request to purge the whole collection
|
|
103
|
-
bool collection = 1;
|
|
103
|
+
optional bool collection = 1;
|
|
104
104
|
/// Delete specified documents
|
|
105
105
|
repeated string ids = 2;
|
|
106
106
|
io.restorecommerce.auth.Subject subject = 3;
|
|
@@ -116,7 +116,7 @@ message DeleteResponse {
|
|
|
116
116
|
/// List of resources
|
|
117
117
|
message ResourceList {
|
|
118
118
|
repeated Resource items = 1;
|
|
119
|
-
uint32 total_count = 2;
|
|
119
|
+
optional uint32 total_count = 2;
|
|
120
120
|
io.restorecommerce.auth.Subject subject = 3;
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -135,6 +135,6 @@ message ResourceResponse {
|
|
|
135
135
|
|
|
136
136
|
/// Example resource
|
|
137
137
|
message Resource {
|
|
138
|
-
string id = 1;
|
|
139
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
138
|
+
optional string id = 1;
|
|
139
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
140
140
|
}
|
|
@@ -8,9 +8,7 @@ import "io/restorecommerce/auth.proto";
|
|
|
8
8
|
import "io/restorecommerce/status.proto";
|
|
9
9
|
import "io/restorecommerce/options.proto";
|
|
10
10
|
|
|
11
|
-
service
|
|
12
|
-
option (io.restorecommerce.options.service_name) = "role";
|
|
13
|
-
|
|
11
|
+
service RoleService {
|
|
14
12
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (RoleListResponse) {
|
|
15
13
|
option (io.restorecommerce.options.is_query) = true;
|
|
16
14
|
};
|
|
@@ -21,16 +19,16 @@ service Service {
|
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
message Role {
|
|
24
|
-
string id = 1;
|
|
25
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
26
|
-
string name = 3; // specifies the role of the user
|
|
27
|
-
string description = 4;
|
|
22
|
+
optional string id = 1;
|
|
23
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
24
|
+
optional string name = 3; // specifies the role of the user
|
|
25
|
+
optional string description = 4;
|
|
28
26
|
repeated string assignable_by_roles = 5; // role id who can assign this role
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
message RoleList {
|
|
32
30
|
repeated Role items = 1;
|
|
33
|
-
uint32 total_count = 2;
|
|
31
|
+
optional uint32 total_count = 2;
|
|
34
32
|
io.restorecommerce.auth.Subject subject = 3;
|
|
35
33
|
}
|
|
36
34
|
|
|
@@ -28,29 +28,29 @@ enum Effect {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
message Rule {
|
|
31
|
-
string id = 1;
|
|
32
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
33
|
-
string name = 3;
|
|
34
|
-
string description = 4;
|
|
35
|
-
Target target = 5;
|
|
36
|
-
ContextQuery context_query = 6;
|
|
37
|
-
string condition = 7; // JS code
|
|
38
|
-
Effect effect = 8;
|
|
39
|
-
bool evaluation_cacheable = 9;
|
|
31
|
+
optional string id = 1;
|
|
32
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
33
|
+
optional string name = 3;
|
|
34
|
+
optional string description = 4;
|
|
35
|
+
optional Target target = 5;
|
|
36
|
+
optional ContextQuery context_query = 6;
|
|
37
|
+
optional string condition = 7; // JS code
|
|
38
|
+
optional Effect effect = 8;
|
|
39
|
+
optional bool evaluation_cacheable = 9;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message RuleRQ { // used for `whatIsAllowed` / reverse queries
|
|
43
|
-
string id = 1;
|
|
44
|
-
Target target = 2;
|
|
45
|
-
Effect effect = 3;
|
|
46
|
-
string condition = 4;
|
|
47
|
-
ContextQuery context_query = 5;
|
|
48
|
-
bool evaluation_cacheable = 6;
|
|
43
|
+
optional string id = 1;
|
|
44
|
+
optional Target target = 2;
|
|
45
|
+
optional Effect effect = 3;
|
|
46
|
+
optional string condition = 4;
|
|
47
|
+
optional ContextQuery context_query = 5;
|
|
48
|
+
optional bool evaluation_cacheable = 6;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
message RuleList {
|
|
52
52
|
repeated Rule items = 1;
|
|
53
|
-
uint32 total_count = 2;
|
|
53
|
+
optional uint32 total_count = 2;
|
|
54
54
|
io.restorecommerce.auth.Subject subject = 3;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -70,12 +70,10 @@ message RuleResponse {
|
|
|
70
70
|
// The retrieved data can then be passed onto the request's context
|
|
71
71
|
message ContextQuery {
|
|
72
72
|
repeated io.restorecommerce.filter.FilterOp filters = 1;
|
|
73
|
-
string query = 2;
|
|
73
|
+
optional string query = 2;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
service
|
|
77
|
-
option (io.restorecommerce.options.service_name) = "rule";
|
|
78
|
-
|
|
76
|
+
service RuleService {
|
|
79
77
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (RuleListResponse) {
|
|
80
78
|
option (io.restorecommerce.options.is_query) = true;
|
|
81
79
|
};
|
|
@@ -6,15 +6,13 @@ import "io/restorecommerce/auth.proto";
|
|
|
6
6
|
import "io/restorecommerce/options.proto";
|
|
7
7
|
|
|
8
8
|
// Service provides the CRUD operations
|
|
9
|
-
service
|
|
10
|
-
option (io.restorecommerce.options.service_name) = "search";
|
|
11
|
-
|
|
9
|
+
service SearchService {
|
|
12
10
|
rpc Search (SearchRequest) returns (SearchResponse);
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
message SearchRequest {
|
|
16
|
-
string collection = 1;
|
|
17
|
-
string text = 2;
|
|
14
|
+
optional string collection = 1;
|
|
15
|
+
optional string text = 2;
|
|
18
16
|
repeated string acl = 3;
|
|
19
17
|
io.restorecommerce.auth.Subject subject = 4;
|
|
20
18
|
}
|
|
@@ -3,24 +3,29 @@ syntax = "proto3";
|
|
|
3
3
|
package io.restorecommerce.status;
|
|
4
4
|
|
|
5
5
|
message Status {
|
|
6
|
-
string id = 1;
|
|
7
|
-
uint32 code = 2;
|
|
8
|
-
string message = 3;
|
|
6
|
+
optional string id = 1;
|
|
7
|
+
optional uint32 code = 2;
|
|
8
|
+
optional string message = 3;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
message StatusArray {
|
|
12
|
-
repeated Status status = 1;
|
|
12
|
+
repeated Status status = 1;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
message StatusObj {
|
|
16
|
-
Status status = 1;
|
|
16
|
+
optional Status status = 1;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
message OperationStatusObj {
|
|
20
|
-
OperationStatus operation_status = 1;
|
|
20
|
+
optional OperationStatus operation_status = 1;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
message OperationStatus {
|
|
24
|
-
uint32 code = 1;
|
|
25
|
-
string message = 2;
|
|
24
|
+
optional uint32 code = 1;
|
|
25
|
+
optional string message = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message StatusListResponse {
|
|
29
|
+
repeated Status status = 1;
|
|
30
|
+
optional OperationStatus operation_status = 2;
|
|
26
31
|
}
|
|
@@ -15,9 +15,7 @@ import "io/restorecommerce/tax_type.proto";
|
|
|
15
15
|
/*
|
|
16
16
|
* Microservice definition.
|
|
17
17
|
*/
|
|
18
|
-
service
|
|
19
|
-
option (io.restorecommerce.options.service_name) = "tax";
|
|
20
|
-
|
|
18
|
+
service TaxService {
|
|
21
19
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (TaxListResponse) {
|
|
22
20
|
option (io.restorecommerce.options.is_query) = true;
|
|
23
21
|
};
|
|
@@ -33,7 +31,7 @@ message Deleted {
|
|
|
33
31
|
|
|
34
32
|
message TaxList {
|
|
35
33
|
repeated Tax items = 1;
|
|
36
|
-
uint32 total_count = 2;
|
|
34
|
+
optional uint32 total_count = 2;
|
|
37
35
|
io.restorecommerce.auth.Subject subject = 3;
|
|
38
36
|
}
|
|
39
37
|
|
|
@@ -49,9 +47,9 @@ message TaxResponse {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
message Tax {
|
|
52
|
-
string id = 1;
|
|
53
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
54
|
-
string country_id = 3 [
|
|
50
|
+
optional string id = 1;
|
|
51
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
52
|
+
optional string country_id = 3 [
|
|
55
53
|
(io.restorecommerce.options.resolver) = {
|
|
56
54
|
target_type: ".io.restorecommerce.country.Country",
|
|
57
55
|
target_service: "resource",
|
|
@@ -60,9 +58,9 @@ message Tax {
|
|
|
60
58
|
field_name: "country",
|
|
61
59
|
}
|
|
62
60
|
];
|
|
63
|
-
double rate = 4;
|
|
64
|
-
string variant = 5;
|
|
65
|
-
string type_id = 6 [
|
|
61
|
+
optional double rate = 4;
|
|
62
|
+
optional string variant = 5;
|
|
63
|
+
optional string type_id = 6 [
|
|
66
64
|
(io.restorecommerce.options.resolver) = {
|
|
67
65
|
target_type: ".io.restorecommerce.tax_type.TaxType",
|
|
68
66
|
target_service: "resource",
|
|
@@ -72,3 +70,8 @@ message Tax {
|
|
|
72
70
|
}
|
|
73
71
|
];
|
|
74
72
|
}
|
|
73
|
+
|
|
74
|
+
message VAT {
|
|
75
|
+
optional string tax_id = 1;
|
|
76
|
+
optional double vat = 2;
|
|
77
|
+
}
|
|
@@ -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) = "tax_type";
|
|
16
|
-
|
|
14
|
+
service TaxTypeService {
|
|
17
15
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (TaxTypeListResponse) {
|
|
18
16
|
option (io.restorecommerce.options.is_query) = true;
|
|
19
17
|
};
|
|
@@ -23,13 +21,18 @@ service Service {
|
|
|
23
21
|
rpc Upsert (TaxTypeList) returns (TaxTypeListResponse);
|
|
24
22
|
}
|
|
25
23
|
|
|
24
|
+
enum Behavior {
|
|
25
|
+
NONE = 0;
|
|
26
|
+
ADDITIVE_ON_GROSS = 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
26
29
|
message Deleted {
|
|
27
|
-
string id = 1;
|
|
30
|
+
optional string id = 1;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
message TaxTypeList {
|
|
31
34
|
repeated TaxType items = 1;
|
|
32
|
-
uint32 total_count = 2;
|
|
35
|
+
optional uint32 total_count = 2;
|
|
33
36
|
io.restorecommerce.auth.Subject subject = 3;
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -45,8 +48,9 @@ message TaxTypeResponse {
|
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
message TaxType {
|
|
48
|
-
string id = 1;
|
|
49
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
50
|
-
string type = 3;
|
|
51
|
-
string description = 4;
|
|
51
|
+
optional string id = 1;
|
|
52
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
53
|
+
optional string type = 3;
|
|
54
|
+
optional string description = 4;
|
|
55
|
+
optional Behavior behavior = 5;
|
|
52
56
|
}
|
|
@@ -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) = "timezone";
|
|
16
|
-
|
|
14
|
+
service TimezoneService {
|
|
17
15
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (TimezoneListResponse) {
|
|
18
16
|
option (io.restorecommerce.options.is_query) = true;
|
|
19
17
|
};
|
|
@@ -29,7 +27,7 @@ message Deleted {
|
|
|
29
27
|
|
|
30
28
|
message TimezoneList {
|
|
31
29
|
repeated Timezone 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,7 +43,7 @@ message TimezoneResponse {
|
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
message Timezone {
|
|
48
|
-
string id = 1;
|
|
49
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
50
|
-
string description = 3;
|
|
46
|
+
optional string id = 1;
|
|
47
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
48
|
+
optional string description = 3;
|
|
51
49
|
}
|
|
@@ -9,9 +9,7 @@ import "io/restorecommerce/options.proto";
|
|
|
9
9
|
/*
|
|
10
10
|
* Microservice definition.
|
|
11
11
|
*/
|
|
12
|
-
service
|
|
13
|
-
option (io.restorecommerce.options.service_name) = "token";
|
|
14
|
-
|
|
12
|
+
service TokenService {
|
|
15
13
|
rpc upsert (TokenData) returns (google.protobuf.Any); // creates or upserts ID_token to `Redis` and returns sucess or failure message
|
|
16
14
|
rpc find (Identifier) returns (google.protobuf.Any) {
|
|
17
15
|
option (io.restorecommerce.options.is_query) = true;
|
|
@@ -22,20 +20,20 @@ service Service {
|
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
message TokenData {
|
|
25
|
-
string id = 1;
|
|
26
|
-
google.protobuf.Any payload = 2;
|
|
27
|
-
double expires_in = 3;
|
|
28
|
-
string type = 4;
|
|
29
|
-
io.restorecommerce.auth.Subject subject = 5;
|
|
23
|
+
optional string id = 1;
|
|
24
|
+
optional google.protobuf.Any payload = 2;
|
|
25
|
+
optional double expires_in = 3;
|
|
26
|
+
optional string type = 4;
|
|
27
|
+
optional io.restorecommerce.auth.Subject subject = 5;
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
message Identifier {
|
|
33
|
-
string id = 1;
|
|
34
|
-
string type = 2;
|
|
35
|
-
io.restorecommerce.auth.Subject subject = 3;
|
|
31
|
+
optional string id = 1;
|
|
32
|
+
optional string type = 2;
|
|
33
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
message GrantId {
|
|
39
|
-
string grant_id = 1;
|
|
40
|
-
io.restorecommerce.auth.Subject subject = 2;
|
|
37
|
+
optional string grant_id = 1;
|
|
38
|
+
optional io.restorecommerce.auth.Subject subject = 2;
|
|
41
39
|
}
|
|
@@ -19,9 +19,7 @@ import "io/restorecommerce/locale.proto";
|
|
|
19
19
|
/**
|
|
20
20
|
* The microservice for the user resource.
|
|
21
21
|
*/
|
|
22
|
-
service
|
|
23
|
-
option (io.restorecommerce.options.service_name) = "user";
|
|
24
|
-
|
|
22
|
+
service UserService {
|
|
25
23
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (UserListWithRoleResponse) {
|
|
26
24
|
option (io.restorecommerce.options.is_query) = true;
|
|
27
25
|
};
|
|
@@ -60,8 +58,8 @@ service Service {
|
|
|
60
58
|
*/
|
|
61
59
|
message LoginRequest {
|
|
62
60
|
string identifier = 1; // User name or email
|
|
63
|
-
string password = 2; // Raw password
|
|
64
|
-
string token = 3;
|
|
61
|
+
optional string password = 2; // Raw password
|
|
62
|
+
optional string token = 3;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
message OrgIDRequest {
|
|
@@ -75,9 +73,9 @@ message DeleteUsersByOrgResponse {
|
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
message FindRequest {
|
|
78
|
-
string id = 1; /// User ID
|
|
79
|
-
string name = 2;
|
|
80
|
-
string email = 3;
|
|
76
|
+
optional string id = 1; /// User ID
|
|
77
|
+
optional string name = 2;
|
|
78
|
+
optional string email = 3;
|
|
81
79
|
io.restorecommerce.auth.Subject subject = 4;
|
|
82
80
|
}
|
|
83
81
|
|
|
@@ -93,20 +91,20 @@ enum UserType {
|
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
message RegisterRequest {
|
|
96
|
-
string id = 1;
|
|
97
|
-
bool guest = 2;
|
|
98
|
-
io.restorecommerce.meta.Meta meta = 3;
|
|
99
|
-
string name = 4;
|
|
100
|
-
string first_name = 5;
|
|
101
|
-
string last_name = 6;
|
|
102
|
-
string email = 7;
|
|
103
|
-
string password = 8;
|
|
104
|
-
string timezone_id = 9;
|
|
105
|
-
string locale_id = 10;
|
|
106
|
-
|
|
107
|
-
string default_scope = 11; // default hierarchical scope
|
|
108
|
-
UserType user_type = 12;
|
|
109
|
-
string captcha_code = 13;
|
|
94
|
+
optional string id = 1;
|
|
95
|
+
optional bool guest = 2;
|
|
96
|
+
optional io.restorecommerce.meta.Meta meta = 3;
|
|
97
|
+
optional string name = 4;
|
|
98
|
+
optional string first_name = 5;
|
|
99
|
+
optional string last_name = 6;
|
|
100
|
+
optional string email = 7;
|
|
101
|
+
optional string password = 8;
|
|
102
|
+
optional string timezone_id = 9;
|
|
103
|
+
optional string locale_id = 10;
|
|
104
|
+
|
|
105
|
+
optional string default_scope = 11; // default hierarchical scope
|
|
106
|
+
optional UserType user_type = 12;
|
|
107
|
+
optional string captcha_code = 13;
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
message ActivateRequest {
|
|
@@ -129,7 +127,6 @@ message SendInvitationEmailRequest {
|
|
|
129
127
|
}
|
|
130
128
|
|
|
131
129
|
message ChangePasswordRequest {
|
|
132
|
-
string identifier = 1; /// user name or email
|
|
133
130
|
string password = 2;
|
|
134
131
|
string new_password = 3;
|
|
135
132
|
io.restorecommerce.auth.Subject subject = 4;
|
|
@@ -215,7 +212,7 @@ message EmailChangeConfirmed {
|
|
|
215
212
|
*/
|
|
216
213
|
message UserList {
|
|
217
214
|
repeated User items = 1;
|
|
218
|
-
uint32 total_count = 2;
|
|
215
|
+
optional uint32 total_count = 2;
|
|
219
216
|
io.restorecommerce.auth.Subject subject = 3;
|
|
220
217
|
}
|
|
221
218
|
|
|
@@ -266,19 +263,19 @@ message User {
|
|
|
266
263
|
deleted: "userDeleted"
|
|
267
264
|
};
|
|
268
265
|
|
|
269
|
-
string id = 1; /// User ID, unique, key
|
|
270
|
-
io.restorecommerce.meta.Meta meta = 2;
|
|
271
|
-
string name = 3; // The name of the user, can be used for login
|
|
272
|
-
string first_name = 4;
|
|
273
|
-
string last_name = 5;
|
|
274
|
-
string email = 6; /// Email address, can be used for login
|
|
275
|
-
string new_email = 7; /// New email address; set by `requestEmailChange` and overrides actual email upon `confirmEmailChange`
|
|
276
|
-
bool active = 8; /// If the user was activated via the activation process
|
|
277
|
-
string activation_code = 9; /// Activation code used in the activation process
|
|
278
|
-
string password = 10; /// Raw password, not stored
|
|
279
|
-
string password_hash = 11; /// Encrypted password, stored
|
|
266
|
+
optional string id = 1; /// User ID, unique, key
|
|
267
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
268
|
+
optional string name = 3; // The name of the user, can be used for login
|
|
269
|
+
optional string first_name = 4;
|
|
270
|
+
optional string last_name = 5;
|
|
271
|
+
optional string email = 6; /// Email address, can be used for login
|
|
272
|
+
optional string new_email = 7; /// New email address; set by `requestEmailChange` and overrides actual email upon `confirmEmailChange`
|
|
273
|
+
optional bool active = 8; /// If the user was activated via the activation process
|
|
274
|
+
optional string activation_code = 9; /// Activation code used in the activation process
|
|
275
|
+
optional string password = 10; /// Raw password, not stored
|
|
276
|
+
optional string password_hash = 11; /// Encrypted password, stored
|
|
280
277
|
repeated io.restorecommerce.auth.RoleAssociation role_associations = 12; // A user can have multiple roles and different attributes coupled with each role
|
|
281
|
-
string timezone_id = 13 [
|
|
278
|
+
optional string timezone_id = 13 [
|
|
282
279
|
(io.restorecommerce.options.resolver) = {
|
|
283
280
|
target_type: ".io.restorecommerce.timezone.Timezone",
|
|
284
281
|
target_service: "resource",
|
|
@@ -287,7 +284,7 @@ message User {
|
|
|
287
284
|
field_name: "timezone",
|
|
288
285
|
}
|
|
289
286
|
]; // timezone_id specifications
|
|
290
|
-
string locale_id = 14 [
|
|
287
|
+
optional string locale_id = 14 [
|
|
291
288
|
(io.restorecommerce.options.resolver) = {
|
|
292
289
|
target_type: ".io.restorecommerce.locale.Locale",
|
|
293
290
|
target_service: "resource",
|
|
@@ -296,18 +293,18 @@ message User {
|
|
|
296
293
|
field_name: "locale",
|
|
297
294
|
}
|
|
298
295
|
]; // locale specifications
|
|
299
|
-
string default_scope = 15; // default hierarchical scope
|
|
300
|
-
bool unauthenticated = 16; // true in case in case of `register`; set to false after activation
|
|
301
|
-
bool guest = 17; /// Is the user a guest. A guest is a automatically generated user which can later be turned in a non-guest user.
|
|
302
|
-
io.restorecommerce.image.Image image = 18;
|
|
303
|
-
UserType user_type = 19;
|
|
304
|
-
bool invite = 20; // For user invitation
|
|
305
|
-
string invited_by_user_name = 21; // user who is inviting
|
|
306
|
-
string invited_by_user_first_name = 22; // First name of user inviting
|
|
307
|
-
string invited_by_user_last_name = 23; // Last name of user inviting
|
|
296
|
+
optional string default_scope = 15; // default hierarchical scope
|
|
297
|
+
optional bool unauthenticated = 16; // true in case in case of `register`; set to false after activation
|
|
298
|
+
optional bool guest = 17; /// Is the user a guest. A guest is a automatically generated user which can later be turned in a non-guest user.
|
|
299
|
+
optional io.restorecommerce.image.Image image = 18;
|
|
300
|
+
optional UserType user_type = 19;
|
|
301
|
+
optional bool invite = 20; // For user invitation
|
|
302
|
+
optional string invited_by_user_name = 21; // user who is inviting
|
|
303
|
+
optional string invited_by_user_first_name = 22; // First name of user inviting
|
|
304
|
+
optional string invited_by_user_last_name = 23; // Last name of user inviting
|
|
308
305
|
repeated io.restorecommerce.auth.Tokens tokens = 24;
|
|
309
|
-
double last_access = 25;
|
|
310
|
-
google.protobuf.Any data = 26; /// additional data
|
|
306
|
+
optional double last_access = 25;
|
|
307
|
+
optional google.protobuf.Any data = 26; /// additional data
|
|
311
308
|
}
|
|
312
309
|
|
|
313
310
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Protobuf descriptors for Restorecommerce services",
|
|
5
5
|
"author": "n-fuse GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"protobufs"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "95e7a13093fcfb008bb420881d1fdff5f081ed18"
|
|
19
19
|
}
|