@restorecommerce/protos 0.5.0 → 0.6.3

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,36 @@
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.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.6.0...@restorecommerce/protos@0.6.3) (2022-02-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **protos:** added data field for user and created time stamp for role associations ([cf14968](https://github.com/restorecommerce/libs/commit/cf14968aa1575ef83fde4b73780ba80fd3bf0188))
12
+ * **protos:** fix auth proto ([b5e7f41](https://github.com/restorecommerce/libs/commit/b5e7f410bad2c1786e69186555584f591cd0c48b))
13
+
14
+
15
+
16
+
17
+
18
+ # [0.6.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.5.0...@restorecommerce/protos@0.6.0) (2022-02-09)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **protos:** added type for location ([d332fdd](https://github.com/restorecommerce/libs/commit/d332fdd687b361381259b77beddc4d646ad6d718))
24
+ * **protos:** removed children_ids for location proto ([4908e7c](https://github.com/restorecommerce/libs/commit/4908e7c36312bb2a45e9402c357be8f0e0a5ffd0))
25
+ * **protos:** up organization proto to remove children_ids ([b0b8741](https://github.com/restorecommerce/libs/commit/b0b8741e2ad3b0cbec605ebbfdca75e50e7c0f61))
26
+
27
+
28
+ ### Features
29
+
30
+ * add oauth ([3e7798e](https://github.com/restorecommerce/libs/commit/3e7798e3aa10ef092872928f5254cd5fbb125f3b))
31
+
32
+
33
+
34
+
35
+
6
36
  # [0.5.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.11...@restorecommerce/protos@0.5.0) (2022-01-28)
7
37
 
8
38
 
@@ -301,4 +331,4 @@ Updated user proto to include auth_context and roles proto to include `assignabl
301
331
 
302
332
  ### 0.0.1 (January 29th, 2020)
303
333
 
304
- Initial share.
334
+ Initial share
@@ -35,6 +35,7 @@ message RoleAssociation {
35
35
  string role = 1; // role ID
36
36
  repeated io.restorecommerce.attribute.Attribute attributes = 2; // useful attributes for RBAC/ABAC like organizational scope
37
37
  string id = 3; // identifier for role_association
38
+ double created = 4; // timestamp when the role was created
38
39
  }
39
40
 
40
41
  message HierarchicalScopesRequest {
@@ -47,7 +47,7 @@ message Location {
47
47
  string description = 4;
48
48
  string organization_id = 5; // Organization to which this location is linked
49
49
  string parent_id = 6; // Location which may contain this location; may be null
50
- repeated string children_ids = 7; // Locations contained in this location
51
50
  string address_id = 8;
52
51
  google.protobuf.Any data = 9; /// additional data
52
+ string type = 10; // location type
53
53
  }
@@ -0,0 +1,31 @@
1
+ syntax = "proto3";
2
+
3
+ package io.restorecommerce.oauth;
4
+
5
+ import "io/restorecommerce/user.proto";
6
+ import "google/protobuf/empty.proto";
7
+
8
+ service Service {
9
+ rpc AvailableServices(google.protobuf.Empty) returns (ServicesResponse);
10
+ rpc GenerateLinks(google.protobuf.Empty) returns (GenerateLinksResponse);
11
+ rpc ExchangeCode(ExchangeCodeRequest) returns (ExchangeCodeResponse);
12
+ }
13
+
14
+ message ServicesResponse {
15
+ repeated string services = 1;
16
+ }
17
+
18
+ message GenerateLinksResponse {
19
+ map<string, string> links = 1;
20
+ }
21
+
22
+ message ExchangeCodeRequest {
23
+ string service = 1;
24
+ string code = 2;
25
+ string state = 3;
26
+ }
27
+
28
+ message ExchangeCodeResponse {
29
+ io.restorecommerce.user.UserResponse user = 1;
30
+ string email = 2;
31
+ }
@@ -48,7 +48,6 @@ message Organization {
48
48
  io.restorecommerce.meta.Meta meta = 2;
49
49
  string address_id = 3; /// Address for the organization
50
50
  string parent_id = 4; // Hierarchically superior organization; may be null
51
- repeated string children_ids = 5; // Hierarchically inferior organizations; may be null/empty
52
51
  repeated string contact_point_ids = 6; // list of possible legal addresses of different types
53
52
  string website = 7;
54
53
  string email = 8;
@@ -8,6 +8,7 @@ import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/attribute.proto";
9
9
  import "io/restorecommerce/image.proto";
10
10
  import "io/restorecommerce/status.proto";
11
+ import "google/protobuf/any.proto";
11
12
 
12
13
  /**
13
14
  * The microservice for the user resource.
@@ -255,4 +256,5 @@ message User {
255
256
  string invited_by_user_last_name = 23; // Last name of user inviting
256
257
  repeated io.restorecommerce.auth.Tokens tokens = 24;
257
258
  double last_access = 25;
259
+ google.protobuf.Any data = 26; /// additional data
258
260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "0.5.0",
3
+ "version": "0.6.3",
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": "39da173ebfb2496f76bd0cb8f041925b2be775ea"
18
+ "gitHead": "e97bbfe2fe8166dfe1cd47ae60bce54347a4f1c9"
19
19
  }