@restorecommerce/protos 0.6.7 → 0.6.8

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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.6.8](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.6.7...@restorecommerce/protos@0.6.8) (2022-04-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **protos:** updated user proto read rpc to return the Roles associated with the user ([ce87ee1](https://github.com/restorecommerce/libs/commit/ce87ee1998061d0addaa9f191174a18138fc2a05))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.6.7](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.6.6...@restorecommerce/protos@0.6.7) (2022-04-20)
7
18
 
8
19
  **Note:** Version bump only for package @restorecommerce/protos
@@ -9,12 +9,13 @@ import "io/restorecommerce/attribute.proto";
9
9
  import "io/restorecommerce/image.proto";
10
10
  import "io/restorecommerce/status.proto";
11
11
  import "google/protobuf/any.proto";
12
+ import "io/restorecommerce/role.proto";
12
13
 
13
14
  /**
14
15
  * The microservice for the user resource.
15
16
  */
16
17
  service Service {
17
- rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (UserListResponse);
18
+ rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (UserListWithRoleResponse);
18
19
  rpc Create (UserList) returns (UserListResponse);
19
20
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
20
21
  rpc Update (UserList) returns (UserListResponse);
@@ -203,6 +204,17 @@ message UserList {
203
204
  io.restorecommerce.auth.Subject subject = 3;
204
205
  }
205
206
 
207
+ message UserListWithRoleResponse {
208
+ repeated UserRoleResponse items = 1;
209
+ uint32 total_count = 2;
210
+ io.restorecommerce.status.OperationStatus operation_status = 3;
211
+ }
212
+
213
+ message UserRoleResponse {
214
+ UserRole payload = 1;
215
+ io.restorecommerce.status.Status status = 2;
216
+ }
217
+
206
218
  message UserListResponse {
207
219
  repeated UserResponse items = 1;
208
220
  uint32 total_count = 2;
@@ -258,3 +270,36 @@ message User {
258
270
  double last_access = 25;
259
271
  google.protobuf.Any data = 26; /// additional data
260
272
  }
273
+
274
+ /**
275
+ * A User resource with role
276
+ */
277
+ message UserRole {
278
+ string id = 1; /// User ID, unique, key
279
+ io.restorecommerce.meta.Meta meta = 2;
280
+ string name = 3; // The name of the user, can be used for login
281
+ string first_name = 4;
282
+ string last_name = 5;
283
+ string email = 6; /// Email address, can be used for login
284
+ string new_email = 7; /// New email address; set by `requestEmailChange` and overrides actual email upon `confirmEmailChange`
285
+ bool active = 8; /// If the user was activated via the activation process
286
+ string activation_code = 9; /// Activation code used in the activation process
287
+ string password = 10; /// Raw password, not stored
288
+ string password_hash = 11; /// Encrypted password, stored
289
+ repeated io.restorecommerce.auth.RoleAssociation role_associations = 12; // A user can have multiple roles and different attributes coupled with each role
290
+ string timezone_id = 13; // timezone_id specifications
291
+ string locale_id = 14; // locale specifications
292
+ string default_scope = 15; // default hierarchical scope
293
+ bool unauthenticated = 16; // true in case in case of `register`; set to false after activation
294
+ 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.
295
+ io.restorecommerce.image.Image image = 18;
296
+ UserType user_type = 19;
297
+ bool invite = 20; // For user invitation
298
+ string invited_by_user_name = 21; // user who is inviting
299
+ string invited_by_user_first_name = 22; // First name of user inviting
300
+ string invited_by_user_last_name = 23; // Last name of user inviting
301
+ repeated io.restorecommerce.auth.Tokens tokens = 24;
302
+ double last_access = 25;
303
+ google.protobuf.Any data = 26; /// additional data
304
+ repeated io.restorecommerce.role.Role role = 27;
305
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
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": "bc9bea7088f12bf1e539559cb840ec4c66b2a5f9"
18
+ "gitHead": "600de085c57a766fb29a20b4b10c83e9235034ab"
19
19
  }