@restorecommerce/protos 0.7.2 → 1.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 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
+ # [1.0.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.7.2...@restorecommerce/protos@1.0.0) (2022-08-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * move to fully typed grpc client and server ([aeee2f2](https://github.com/restorecommerce/libs/commit/aeee2f2b7ca470223d7bc42fd7cafd4bb8387796))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.7.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.7.1...@restorecommerce/protos@0.7.2) (2022-06-14)
7
18
 
8
19
 
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+ package echo;
3
+
4
+ // import "google/protobuf/wrappers.proto";
5
+ import "google/protobuf/any.proto";
6
+
7
+ // The greeting service definition.
8
+ service EchoService {
9
+ // Sends a greeting
10
+ rpc echoUnary (EchoRequest) returns (EchoResponse) {}
11
+ rpc echoServerStream (EchoRequest) returns (stream EchoResponse) {}
12
+ rpc echoClientStream (stream EchoRequest) returns (EchoResponse) {}
13
+ rpc echoBidiStream (stream EchoRequest) returns (stream EchoResponse) {}
14
+ }
15
+
16
+ message EchoRequest {
17
+ string message = 1;
18
+ google.protobuf.Any test = 2;
19
+ }
20
+
21
+ message EchoResponse {
22
+ string message = 1;
23
+ google.protobuf.Any test = 2;
24
+ }
@@ -129,9 +129,4 @@ message ResourceResponse {
129
129
  message Resource {
130
130
  string id = 1;
131
131
  io.restorecommerce.meta.Meta meta = 2;
132
- int32 value = 3;
133
- string text = 4;
134
- bool active = 5;
135
- double created = 6;
136
- string status = 7;
137
- }
132
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "0.7.2",
3
+ "version": "1.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": "b17ad8be6c9df59d7966a755b2a50f1734a02b5f"
18
+ "gitHead": "2b25803ec9494c298f4f008a55485bc201c83bb8"
19
19
  }
package/test/test.proto CHANGED
@@ -5,6 +5,7 @@ import "google/protobuf/any.proto";
5
5
  import "io/restorecommerce/resource_base.proto";
6
6
  import "io/restorecommerce/meta.proto";
7
7
  import "io/restorecommerce/status.proto";
8
+ import "io/restorecommerce/auth.proto";
8
9
 
9
10
  service Test {
10
11
  rpc Test (TestRequest) returns (TestResponse);
@@ -24,6 +25,14 @@ service Stream {
24
25
  rpc RequestStream (stream TestRequest) returns (TestResponse);
25
26
  }
26
27
 
28
+ service CRUD {
29
+ rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (ResourceListResponse);
30
+ rpc Create (ResourceList) returns (ResourceListResponse);
31
+ rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
32
+ rpc Update (ResourceList) returns (ResourceListResponse);
33
+ rpc Upsert (ResourceList) returns (ResourceListResponse);
34
+ }
35
+
27
36
  message TestRequest {
28
37
  string value = 1;
29
38
  }
@@ -69,3 +78,32 @@ message TestBufferedDataListResponse {
69
78
  message ExtendMe {
70
79
  int32 bar = 126;
71
80
  }
81
+
82
+ message ResourceList {
83
+ repeated Resource items = 1;
84
+ uint32 total_count = 2;
85
+ io.restorecommerce.auth.Subject subject = 3;
86
+ }
87
+
88
+ message ResourceListResponse {
89
+ repeated ResourceResponse items = 1;
90
+ uint32 total_count = 2;
91
+ io.restorecommerce.status.OperationStatus operation_status = 3;
92
+ }
93
+
94
+ message ResourceResponse {
95
+ Resource payload = 1;
96
+ io.restorecommerce.status.Status status = 2;
97
+ }
98
+
99
+ /// Example resource
100
+ message Resource {
101
+ string id = 1;
102
+ io.restorecommerce.meta.Meta meta = 2;
103
+ int32 value = 3;
104
+ string text = 4;
105
+ bool active = 5;
106
+ double created = 6;
107
+ string status = 7;
108
+ optional google.protobuf.Any data = 8;
109
+ }