@restorecommerce/protos 6.0.0 → 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 (53) hide show
  1. package/CHANGELOG.md +19 -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 +14 -15
  18. package/io/restorecommerce/fulfillment_courier.proto +7 -7
  19. package/io/restorecommerce/fulfillment_product.proto +13 -12
  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 +18 -18
  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_group.proto +6 -6
  38. package/io/restorecommerce/product.proto +8 -8
  39. package/io/restorecommerce/product_category.proto +6 -6
  40. package/io/restorecommerce/product_prototype.proto +6 -6
  41. package/io/restorecommerce/rendering.proto +8 -8
  42. package/io/restorecommerce/resource_base.proto +12 -12
  43. package/io/restorecommerce/role.proto +6 -6
  44. package/io/restorecommerce/rule.proto +5 -5
  45. package/io/restorecommerce/search.proto +1 -1
  46. package/io/restorecommerce/shop.proto +5 -5
  47. package/io/restorecommerce/status.proto +7 -7
  48. package/io/restorecommerce/tax.proto +6 -6
  49. package/io/restorecommerce/tax_type.proto +5 -5
  50. package/io/restorecommerce/timezone.proto +6 -6
  51. package/io/restorecommerce/user.proto +81 -81
  52. package/package.json +2 -2
  53. package/google/protobuf/struct.proto +0 -96
@@ -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": "6.0.0",
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": "dd04e19687392aadd033d1a953a0ce91009524d8"
18
+ "gitHead": "2bce26eb836feec7f92e4c05fc3da68d6ac121f3"
19
19
  }
@@ -1,96 +0,0 @@
1
- /// Protocol Buffers - Google's data interchange format
2
- /// Copyright 2008 Google Inc. All rights reserved.
3
- /// https:///developers.google.com/protocol-buffers/
4
- ///
5
- /// Redistribution and use in source and binary forms, with or without
6
- /// modification, are permitted provided that the following conditions are
7
- /// met:
8
- ///
9
- /// * Redistributions of source code must retain the above copyright
10
- /// notice, this list of conditions and the following disclaimer.
11
- /// * Redistributions in binary form must reproduce the above
12
- /// copyright notice, this list of conditions and the following disclaimer
13
- /// in the documentation and/or other materials provided with the
14
- /// distribution.
15
- /// * Neither the name of Google Inc. nor the names of its
16
- /// contributors may be used to endorse or promote products derived from
17
- /// this software without specific prior written permission.
18
- ///
19
- /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- /// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- /// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- /// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- /// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- /// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- /// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- /// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- /// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- /// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- /// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
-
31
- syntax = "proto3";
32
-
33
- package google.protobuf;
34
-
35
- option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36
- option go_package = "github.com/golang/protobuf/ptypes/struct;structpb";
37
- option java_package = "com.google.protobuf";
38
- option java_outer_classname = "StructProto";
39
- option java_multiple_files = true;
40
- option java_generate_equals_and_hash = true;
41
- option objc_class_prefix = "GPB";
42
-
43
-
44
- /// `Struct` represents a structured data value, consisting of fields
45
- /// which map to dynamically typed values. In some languages, `Struct`
46
- /// might be supported by a native representation. For example, in
47
- /// scripting languages like JS a struct is represented as an
48
- /// object. The details of that representation are described together
49
- /// with the proto support for the language.
50
- ///
51
- /// The JSON representation for `Struct` is JSON object.
52
- message Struct {
53
- /// Unordered map of dynamically typed values.
54
- map<string, Value> fields = 1;
55
- }
56
-
57
- /// `Value` represents a dynamically typed value which can be either
58
- /// null, a number, a string, a boolean, a recursive struct value, or a
59
- /// list of values. A producer of value is expected to set one of that
60
- /// variants, absence of any variant indicates an error.
61
- ///
62
- /// The JSON representation for `Value` is JSON value.
63
- message Value {
64
- /// The kind of value.
65
- oneof kind {
66
- /// Represents a null value.
67
- NullValue null_value = 1;
68
- /// Represents a double value.
69
- double number_value = 2;
70
- /// Represents a string value.
71
- string string_value = 3;
72
- /// Represents a boolean value.
73
- bool bool_value = 4;
74
- /// Represents a structured value.
75
- Struct struct_value = 5;
76
- /// Represents a repeated `Value`.
77
- ListValue list_value = 6;
78
- }
79
- }
80
-
81
- /// `NullValue` is a singleton enumeration to represent the null value for the
82
- /// `Value` type union.
83
- ///
84
- /// The JSON representation for `NullValue` is JSON `null`.
85
- enum NullValue {
86
- /// Null value.
87
- NULL_VALUE = 0;
88
- }
89
-
90
- /// `ListValue` is a wrapper around a repeated field of values.
91
- ///
92
- /// The JSON representation for `ListValue` is JSON array.
93
- message ListValue {
94
- /// Repeated field of dynamically typed values.
95
- repeated Value values = 1;
96
- }