@restorecommerce/protos 5.0.1 → 6.1.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/io/restorecommerce/access_control.proto +8 -8
  3. package/io/restorecommerce/address.proto +6 -6
  4. package/io/restorecommerce/auth.proto +3 -3
  5. package/io/restorecommerce/authentication_log.proto +6 -6
  6. package/io/restorecommerce/code.proto +5 -5
  7. package/io/restorecommerce/command.proto +5 -5
  8. package/io/restorecommerce/commandinterface.proto +2 -2
  9. package/io/restorecommerce/contact_point.proto +6 -6
  10. package/io/restorecommerce/contact_point_type.proto +6 -6
  11. package/io/restorecommerce/country.proto +6 -6
  12. package/io/restorecommerce/credential.proto +6 -6
  13. package/io/restorecommerce/currency.proto +10 -10
  14. package/io/restorecommerce/customer.proto +5 -5
  15. package/io/restorecommerce/file.proto +1 -1
  16. package/io/restorecommerce/filter.proto +5 -5
  17. package/io/restorecommerce/fulfillment.proto +60 -29
  18. package/io/restorecommerce/fulfillment_courier.proto +20 -8
  19. package/io/restorecommerce/fulfillment_product.proto +36 -18
  20. package/io/restorecommerce/graph.proto +9 -9
  21. package/io/restorecommerce/image.proto +1 -1
  22. package/io/restorecommerce/invoice.proto +10 -10
  23. package/io/restorecommerce/job.proto +7 -7
  24. package/io/restorecommerce/locale.proto +6 -6
  25. package/io/restorecommerce/location.proto +6 -6
  26. package/io/restorecommerce/manufacturer.proto +6 -6
  27. package/io/restorecommerce/notification.proto +6 -6
  28. package/io/restorecommerce/notification_channel.proto +6 -6
  29. package/io/restorecommerce/oauth.proto +9 -9
  30. package/io/restorecommerce/order.proto +24 -22
  31. package/io/restorecommerce/organization.proto +7 -7
  32. package/io/restorecommerce/ostorage.proto +57 -57
  33. package/io/restorecommerce/payment.proto +15 -15
  34. package/io/restorecommerce/payment_method.proto +6 -6
  35. package/io/restorecommerce/policy.proto +5 -5
  36. package/io/restorecommerce/policy_set.proto +5 -5
  37. package/io/restorecommerce/price.proto +0 -10
  38. package/io/restorecommerce/price_group.proto +6 -6
  39. package/io/restorecommerce/product.proto +26 -16
  40. package/io/restorecommerce/product_category.proto +6 -6
  41. package/io/restorecommerce/product_prototype.proto +6 -6
  42. package/io/restorecommerce/rendering.proto +8 -8
  43. package/io/restorecommerce/resource_base.proto +12 -12
  44. package/io/restorecommerce/role.proto +6 -6
  45. package/io/restorecommerce/rule.proto +5 -5
  46. package/io/restorecommerce/search.proto +1 -1
  47. package/io/restorecommerce/shop.proto +5 -6
  48. package/io/restorecommerce/status.proto +7 -7
  49. package/io/restorecommerce/tax.proto +6 -6
  50. package/io/restorecommerce/tax_type.proto +5 -5
  51. package/io/restorecommerce/timezone.proto +6 -6
  52. package/io/restorecommerce/user.proto +81 -81
  53. package/package.json +2 -2
  54. package/google/protobuf/struct.proto +0 -96
@@ -27,12 +27,12 @@ message Sort {
27
27
  ASCENDING = 1;
28
28
  DESCENDING = 2;
29
29
  }
30
- string field = 1;
30
+ optional string field = 1;
31
31
  optional SortOrder order = 2;
32
32
  }
33
33
 
34
34
  message Filter {
35
- string field = 1;
35
+ optional string field = 1;
36
36
  enum Operation {
37
37
  eq = 0;
38
38
  lt = 1;
@@ -44,8 +44,8 @@ message Filter {
44
44
  in = 7;
45
45
  neq = 8;
46
46
  }
47
- Operation operation = 2;
48
- string value = 3;
47
+ optional Operation operation = 2;
48
+ optional string value = 3;
49
49
  enum ValueType {
50
50
  STRING = 0; // default value type if not specified
51
51
  NUMBER = 1;
@@ -94,7 +94,7 @@ message ReadRequest {
94
94
 
95
95
  repeated string custom_queries = 8;
96
96
  optional google.protobuf.Any custom_arguments = 9;
97
- io.restorecommerce.auth.Subject subject = 10;
97
+ optional io.restorecommerce.auth.Subject subject = 10;
98
98
  optional Search search = 11;
99
99
  }
100
100
 
@@ -103,34 +103,34 @@ message DeleteRequest {
103
103
  optional bool collection = 1;
104
104
  /// Delete specified documents
105
105
  repeated string ids = 2;
106
- io.restorecommerce.auth.Subject subject = 3;
106
+ optional io.restorecommerce.auth.Subject subject = 3;
107
107
  repeated string views = 4; // list of views to be dropped
108
108
  repeated string analyzers = 5; // list of analyzers to be deleted
109
109
  }
110
110
 
111
111
  message DeleteResponse {
112
112
  repeated io.restorecommerce.status.Status status = 1;
113
- io.restorecommerce.status.OperationStatus operation_status = 2;
113
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
114
114
  }
115
115
 
116
116
  /// List of resources
117
117
  message ResourceList {
118
118
  repeated Resource items = 1;
119
119
  optional uint32 total_count = 2;
120
- io.restorecommerce.auth.Subject subject = 3;
120
+ optional io.restorecommerce.auth.Subject subject = 3;
121
121
  }
122
122
 
123
123
  // ResourceList response
124
124
  message ResourceListResponse {
125
125
  repeated ResourceResponse items = 1;
126
- uint32 total_count = 2;
127
- io.restorecommerce.status.OperationStatus operation_status = 3;
126
+ optional uint32 total_count = 2;
127
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
128
128
  }
129
129
 
130
130
  // resource read response
131
131
  message ResourceResponse {
132
- Resource payload = 1;
133
- io.restorecommerce.status.Status status = 2;
132
+ optional Resource payload = 1;
133
+ optional io.restorecommerce.status.Status status = 2;
134
134
  }
135
135
 
136
136
  // Example resource
@@ -29,20 +29,20 @@ message Role {
29
29
  message RoleList {
30
30
  repeated Role items = 1;
31
31
  optional uint32 total_count = 2;
32
- io.restorecommerce.auth.Subject subject = 3;
32
+ optional io.restorecommerce.auth.Subject subject = 3;
33
33
  }
34
34
 
35
35
  message RoleListResponse {
36
36
  repeated RoleResponse items = 1;
37
- uint32 total_count = 2;
38
- io.restorecommerce.status.OperationStatus operation_status = 3;
37
+ optional uint32 total_count = 2;
38
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
39
39
  }
40
40
 
41
41
  message RoleResponse {
42
- Role payload = 1;
43
- io.restorecommerce.status.Status status = 2;
42
+ optional Role payload = 1;
43
+ optional io.restorecommerce.status.Status status = 2;
44
44
  }
45
45
 
46
46
  message Deleted {
47
- string id = 1;
47
+ optional string id = 1;
48
48
  }
@@ -51,18 +51,18 @@ message RuleRQ { // used for `whatIsAllowed` / reverse queries
51
51
  message RuleList {
52
52
  repeated Rule items = 1;
53
53
  optional uint32 total_count = 2;
54
- io.restorecommerce.auth.Subject subject = 3;
54
+ optional io.restorecommerce.auth.Subject subject = 3;
55
55
  }
56
56
 
57
57
  message RuleListResponse {
58
58
  repeated RuleResponse items = 1;
59
- uint32 total_count = 2;
60
- io.restorecommerce.status.OperationStatus operation_status = 3;
59
+ optional uint32 total_count = 2;
60
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
61
61
  }
62
62
 
63
63
  message RuleResponse {
64
- Rule payload = 1;
65
- io.restorecommerce.status.Status status = 2;
64
+ optional Rule payload = 1;
65
+ optional io.restorecommerce.status.Status status = 2;
66
66
  }
67
67
 
68
68
  // Query to pull resources from an external service
@@ -14,7 +14,7 @@ message SearchRequest {
14
14
  optional string collection = 1;
15
15
  optional string text = 2;
16
16
  repeated string acls = 3;
17
- io.restorecommerce.auth.Subject subject = 4;
17
+ optional io.restorecommerce.auth.Subject subject = 4;
18
18
  }
19
19
 
20
20
  message SearchResponse {
@@ -9,7 +9,6 @@ import "io/restorecommerce/status.proto";
9
9
  import "io/restorecommerce/options.proto";
10
10
 
11
11
  // Used by resolvers
12
- import "io/restorecommerce/user.proto";
13
12
  import "io/restorecommerce/address.proto";
14
13
  import "io/restorecommerce/contact_point.proto";
15
14
  import "io/restorecommerce/organization.proto";
@@ -30,18 +29,18 @@ service ShopService {
30
29
  message ShopList {
31
30
  repeated Shop items = 1;
32
31
  optional uint32 total_count = 2;
33
- io.restorecommerce.auth.Subject subject = 3;
32
+ optional io.restorecommerce.auth.Subject subject = 3;
34
33
  }
35
34
 
36
35
  message ShopListResponse {
37
36
  repeated ShopResponse items = 1;
38
- uint32 total_count = 2;
39
- io.restorecommerce.status.OperationStatus operation_status = 3;
37
+ optional uint32 total_count = 2;
38
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
40
39
  }
41
40
 
42
41
  message ShopResponse {
43
- Shop payload = 1;
44
- io.restorecommerce.status.Status status = 2;
42
+ optional Shop payload = 1;
43
+ optional io.restorecommerce.status.Status status = 2;
45
44
  }
46
45
 
47
46
  message Shop {
@@ -3,21 +3,21 @@ 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 OperationStatusObj {
12
- OperationStatus operation_status = 1;
12
+ optional OperationStatus operation_status = 1;
13
13
  }
14
14
 
15
15
  message OperationStatus {
16
- uint32 code = 1;
17
- string message = 2;
16
+ optional uint32 code = 1;
17
+ optional string message = 2;
18
18
  }
19
19
 
20
20
  message StatusListResponse {
21
21
  repeated Status status = 1;
22
- OperationStatus operation_status = 2;
22
+ optional OperationStatus operation_status = 2;
23
23
  }
@@ -26,24 +26,24 @@ service TaxService {
26
26
  }
27
27
 
28
28
  message Deleted {
29
- string id = 1;
29
+ optional string id = 1;
30
30
  }
31
31
 
32
32
  message TaxList {
33
33
  repeated Tax items = 1;
34
34
  optional uint32 total_count = 2;
35
- io.restorecommerce.auth.Subject subject = 3;
35
+ optional io.restorecommerce.auth.Subject subject = 3;
36
36
  }
37
37
 
38
38
  message TaxListResponse {
39
39
  repeated TaxResponse items = 1;
40
- uint32 total_count = 2;
41
- io.restorecommerce.status.OperationStatus operation_status = 3;
40
+ optional uint32 total_count = 2;
41
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
42
42
  }
43
43
 
44
44
  message TaxResponse {
45
- Tax payload = 1;
46
- io.restorecommerce.status.Status status = 2;
45
+ optional Tax payload = 1;
46
+ optional io.restorecommerce.status.Status status = 2;
47
47
  }
48
48
 
49
49
  message Tax {
@@ -28,18 +28,18 @@ message Deleted {
28
28
  message TaxTypeList {
29
29
  repeated TaxType items = 1;
30
30
  optional uint32 total_count = 2;
31
- io.restorecommerce.auth.Subject subject = 3;
31
+ optional io.restorecommerce.auth.Subject subject = 3;
32
32
  }
33
33
 
34
34
  message TaxTypeListResponse {
35
35
  repeated TaxTypeResponse items = 1;
36
- uint32 total_count = 2;
37
- io.restorecommerce.status.OperationStatus operation_status = 3;
36
+ optional uint32 total_count = 2;
37
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
38
38
  }
39
39
 
40
40
  message TaxTypeResponse {
41
- TaxType payload = 1;
42
- io.restorecommerce.status.Status status = 3;
41
+ optional TaxType payload = 1;
42
+ optional io.restorecommerce.status.Status status = 3;
43
43
  }
44
44
 
45
45
  message TaxType {
@@ -22,24 +22,24 @@ service TimezoneService {
22
22
  }
23
23
 
24
24
  message Deleted {
25
- string id = 1;
25
+ optional string id = 1;
26
26
  }
27
27
 
28
28
  message TimezoneList {
29
29
  repeated Timezone items = 1;
30
30
  optional uint32 total_count = 2;
31
- io.restorecommerce.auth.Subject subject = 3;
31
+ optional io.restorecommerce.auth.Subject subject = 3;
32
32
  }
33
33
 
34
34
  message TimezoneListResponse {
35
35
  repeated TimezoneResponse items = 1;
36
- uint32 total_count = 2;
37
- io.restorecommerce.status.OperationStatus operation_status = 3;
36
+ optional uint32 total_count = 2;
37
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
38
38
  }
39
39
 
40
40
  message TimezoneResponse {
41
- Timezone payload = 1;
42
- io.restorecommerce.status.Status status = 2;
41
+ optional Timezone payload = 1;
42
+ optional io.restorecommerce.status.Status status = 2;
43
43
  }
44
44
 
45
45
  message Timezone {
@@ -57,19 +57,19 @@ service UserService {
57
57
  * Either name or email can be provided.
58
58
  */
59
59
  message LoginRequest {
60
- string identifier = 1; // User name or email
60
+ optional string identifier = 1; // User name or email
61
61
  optional string password = 2; // Raw password
62
62
  optional string token = 3;
63
63
  }
64
64
 
65
65
  message OrgIDRequest {
66
66
  repeated string org_ids = 1;
67
- io.restorecommerce.auth.Subject subject = 2;
67
+ optional io.restorecommerce.auth.Subject subject = 2;
68
68
  }
69
69
 
70
70
  message DeleteUsersByOrgResponse {
71
71
  repeated string user_ids = 1;
72
- io.restorecommerce.status.OperationStatus operation_status = 2;
72
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
73
73
  }
74
74
 
75
75
  message FindRequest {
@@ -80,7 +80,7 @@ message FindRequest {
80
80
  }
81
81
 
82
82
  message FindByTokenRequest {
83
- string token = 1;
83
+ optional string token = 1;
84
84
  }
85
85
 
86
86
  enum UserType {
@@ -94,11 +94,11 @@ message RegisterRequest {
94
94
  optional string id = 1;
95
95
  optional bool guest = 2;
96
96
  optional io.restorecommerce.meta.Meta meta = 3;
97
- string name = 4;
97
+ optional string name = 4;
98
98
  optional string first_name = 5;
99
99
  optional string last_name = 6;
100
- string email = 7;
101
- string password = 8;
100
+ optional string email = 7;
101
+ optional string password = 8;
102
102
  optional string timezone_id = 9;
103
103
  optional string locale_id = 10;
104
104
 
@@ -108,62 +108,62 @@ message RegisterRequest {
108
108
  }
109
109
 
110
110
  message ActivateRequest {
111
- string identifier = 1; /// user name or email
112
- string activation_code = 2;
113
- io.restorecommerce.auth.Subject subject = 3;
111
+ optional string identifier = 1; /// user name or email
112
+ optional string activation_code = 2;
113
+ optional io.restorecommerce.auth.Subject subject = 3;
114
114
  }
115
115
 
116
116
  message ConfirmUserInvitationRequest {
117
- string identifier = 1; // user name or email
118
- string password = 2;
119
- string activation_code = 3;
120
- io.restorecommerce.auth.Subject subject = 4;
117
+ optional string identifier = 1; // user name or email
118
+ optional string password = 2;
119
+ optional string activation_code = 3;
120
+ optional io.restorecommerce.auth.Subject subject = 4;
121
121
  }
122
122
 
123
123
  message SendInvitationEmailRequest {
124
- string identifier = 1; // user name or email
125
- string invited_by_user_identifier = 2;
126
- io.restorecommerce.auth.Subject subject = 3;
124
+ optional string identifier = 1; // user name or email
125
+ optional string invited_by_user_identifier = 2;
126
+ optional io.restorecommerce.auth.Subject subject = 3;
127
127
  }
128
128
 
129
129
  message ChangePasswordRequest {
130
- string password = 2;
131
- string new_password = 3;
132
- io.restorecommerce.auth.Subject subject = 4;
130
+ optional string password = 2;
131
+ optional string new_password = 3;
132
+ optional io.restorecommerce.auth.Subject subject = 4;
133
133
  }
134
134
 
135
135
  message RequestPasswordChangeRequest {
136
- string identifier = 1; // user name or email
137
- io.restorecommerce.auth.Subject subject = 2;
136
+ optional string identifier = 1; // user name or email
137
+ optional io.restorecommerce.auth.Subject subject = 2;
138
138
  }
139
139
 
140
140
  message ConfirmPasswordChangeRequest {
141
- string identifier = 1; // user name or email
142
- string activation_code = 2;
143
- string password = 3;
144
- io.restorecommerce.auth.Subject subject = 4;
141
+ optional string identifier = 1; // user name or email
142
+ optional string activation_code = 2;
143
+ optional string password = 3;
144
+ optional io.restorecommerce.auth.Subject subject = 4;
145
145
  }
146
146
 
147
147
  message ChangeEmailRequest {
148
- string identifier = 1; // user name or email
149
- string new_email = 2;
150
- io.restorecommerce.auth.Subject subject = 3;
148
+ optional string identifier = 1; // user name or email
149
+ optional string new_email = 2;
150
+ optional io.restorecommerce.auth.Subject subject = 3;
151
151
  }
152
152
 
153
153
  message ConfirmEmailChangeRequest {
154
- string identifier = 1; // user name or email
155
- string activation_code = 2;
156
- io.restorecommerce.auth.Subject subject = 3;
154
+ optional string identifier = 1; // user name or email
155
+ optional string activation_code = 2;
156
+ optional io.restorecommerce.auth.Subject subject = 3;
157
157
  }
158
158
 
159
159
  message UnregisterRequest {
160
- string identifier = 1; /// User ID
161
- io.restorecommerce.auth.Subject subject = 2;
160
+ optional string identifier = 1; /// User ID
161
+ optional io.restorecommerce.auth.Subject subject = 2;
162
162
  }
163
163
 
164
164
  message SendActivationEmailRequest {
165
- string identifier = 1; /// User name or email
166
- io.restorecommerce.auth.Subject subject = 2;
165
+ optional string identifier = 1; /// User name or email
166
+ optional io.restorecommerce.auth.Subject subject = 2;
167
167
  }
168
168
 
169
169
  /**
@@ -175,7 +175,7 @@ message SendActivationEmailRequest {
175
175
  * unregistered,
176
176
  */
177
177
  message Deleted {
178
- string id = 1;
178
+ optional string id = 1;
179
179
  }
180
180
 
181
181
  /**
@@ -185,26 +185,26 @@ message Deleted {
185
185
  * passwordChanged,
186
186
  */
187
187
  message PasswordChanged {
188
- string id = 1; /// User ID
189
- string password_hash = 2;
188
+ optional string id = 1; /// User ID
189
+ optional string password_hash = 2;
190
190
  }
191
191
 
192
192
  message PasswordChangeRequested {
193
- string id = 1; // User ID
193
+ optional string id = 1; // User ID
194
194
  }
195
195
 
196
196
  /**
197
197
  * User email id changed event.
198
198
  */
199
199
  message EmailChangeRequested {
200
- string id = 1;
201
- string activation_code = 2;
202
- string new_email = 3;
200
+ optional string id = 1;
201
+ optional string activation_code = 2;
202
+ optional string new_email = 3;
203
203
  }
204
204
 
205
205
  message EmailChangeConfirmed {
206
- string id = 1; /// User ID
207
- string email = 2;
206
+ optional string id = 1; /// User ID
207
+ optional string email = 2;
208
208
  }
209
209
 
210
210
  /**
@@ -213,42 +213,42 @@ message EmailChangeConfirmed {
213
213
  message UserList {
214
214
  repeated User items = 1;
215
215
  optional uint32 total_count = 2;
216
- io.restorecommerce.auth.Subject subject = 3;
216
+ optional io.restorecommerce.auth.Subject subject = 3;
217
217
  }
218
218
 
219
219
  message UserListWithRoleResponse {
220
220
  repeated UserRoleResponse items = 1;
221
- uint32 total_count = 2;
222
- io.restorecommerce.status.OperationStatus operation_status = 3;
221
+ optional uint32 total_count = 2;
222
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
223
223
  }
224
224
 
225
225
  message UserRoleResponse {
226
- UserRole payload = 1;
227
- io.restorecommerce.status.Status status = 2;
226
+ optional UserRole payload = 1;
227
+ optional io.restorecommerce.status.Status status = 2;
228
228
  }
229
229
 
230
230
  message UserListResponse {
231
231
  repeated UserResponse items = 1;
232
- uint32 total_count = 2;
233
- io.restorecommerce.status.OperationStatus operation_status = 3;
232
+ optional uint32 total_count = 2;
233
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
234
234
  }
235
235
 
236
236
  message UserResponse {
237
- User payload = 1;
238
- io.restorecommerce.status.Status status = 2;
237
+ optional User payload = 1;
238
+ optional io.restorecommerce.status.Status status = 2;
239
239
  }
240
240
 
241
241
  /**
242
242
  * User activation request.
243
243
  */
244
244
  message Activate {
245
- string id = 1; /// User ID
245
+ optional string id = 1; /// User ID
246
246
  }
247
247
 
248
248
  message FindByRoleRequest {
249
- string role = 1;
249
+ optional string role = 1;
250
250
  repeated io.restorecommerce.attribute.Attribute attributes = 2;
251
- io.restorecommerce.auth.Subject subject = 3;
251
+ optional io.restorecommerce.auth.Subject subject = 3;
252
252
  }
253
253
 
254
254
  /**
@@ -311,19 +311,19 @@ message User {
311
311
  * A User resource with role
312
312
  */
313
313
  message UserRole {
314
- string id = 1; /// User ID, unique, key
315
- io.restorecommerce.meta.Meta meta = 2;
316
- string name = 3; // The name of the user, can be used for login
317
- string first_name = 4;
318
- string last_name = 5;
319
- string email = 6; /// Email address, can be used for login
320
- string new_email = 7; /// New email address; set by `requestEmailChange` and overrides actual email upon `confirmEmailChange`
321
- bool active = 8; /// If the user was activated via the activation process
322
- string activation_code = 9; /// Activation code used in the activation process
323
- string password = 10; /// Raw password, not stored
324
- string password_hash = 11; /// Encrypted password, stored
314
+ optional string id = 1; /// User ID, unique, key
315
+ optional io.restorecommerce.meta.Meta meta = 2;
316
+ optional string name = 3; // The name of the user, can be used for login
317
+ optional string first_name = 4;
318
+ optional string last_name = 5;
319
+ optional string email = 6; /// Email address, can be used for login
320
+ optional string new_email = 7; /// New email address; set by `requestEmailChange` and overrides actual email upon `confirmEmailChange`
321
+ optional bool active = 8; /// If the user was activated via the activation process
322
+ optional string activation_code = 9; /// Activation code used in the activation process
323
+ optional string password = 10; /// Raw password, not stored
324
+ optional string password_hash = 11; /// Encrypted password, stored
325
325
  repeated io.restorecommerce.auth.RoleAssociation role_associations = 12; // A user can have multiple roles and different attributes coupled with each role
326
- string timezone_id = 13 [
326
+ optional string timezone_id = 13 [
327
327
  (io.restorecommerce.options.resolver) = {
328
328
  target_type: ".io.restorecommerce.timezone.Timezone",
329
329
  target_service: "master_data",
@@ -332,7 +332,7 @@ message UserRole {
332
332
  field_name: "timezone",
333
333
  }
334
334
  ]; // timezone_id specifications
335
- string locale_id = 14 [
335
+ optional string locale_id = 14 [
336
336
  (io.restorecommerce.options.resolver) = {
337
337
  target_type: ".io.restorecommerce.locale.Locale",
338
338
  target_service: "master_data",
@@ -341,17 +341,17 @@ message UserRole {
341
341
  field_name: "locale",
342
342
  }
343
343
  ]; // locale specifications
344
- string default_scope = 15; // default hierarchical scope
345
- bool unauthenticated = 16; // true in case in case of `register`; set to false after activation
346
- 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.
347
- io.restorecommerce.image.Image image = 18;
348
- UserType user_type = 19;
349
- bool invite = 20; // For user invitation
350
- string invited_by_user_name = 21; // user who is inviting
351
- string invited_by_user_first_name = 22; // First name of user inviting
352
- string invited_by_user_last_name = 23; // Last name of user inviting
344
+ optional string default_scope = 15; // default hierarchical scope
345
+ optional bool unauthenticated = 16; // true in case in case of `register`; set to false after activation
346
+ 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.
347
+ optional io.restorecommerce.image.Image image = 18;
348
+ optional UserType user_type = 19;
349
+ optional bool invite = 20; // For user invitation
350
+ optional string invited_by_user_name = 21; // user who is inviting
351
+ optional string invited_by_user_first_name = 22; // First name of user inviting
352
+ optional string invited_by_user_last_name = 23; // Last name of user inviting
353
353
  repeated io.restorecommerce.auth.Tokens tokens = 24;
354
- double last_access = 25;
355
- google.protobuf.Any data = 26; /// additional data
354
+ optional double last_access = 25;
355
+ optional google.protobuf.Any data = 26; /// additional data
356
356
  repeated io.restorecommerce.role.Role roles = 27;
357
357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "5.0.1",
3
+ "version": "6.1.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": "40b9b296f7a67f4003279130b4ce5d63e0c406a0"
18
+ "gitHead": "2bce26eb836feec7f92e4c05fc3da68d6ac121f3"
19
19
  }