@restorecommerce/protos 6.1.0 → 6.1.2

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,22 @@
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
+ ## [6.1.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.1.1...@restorecommerce/protos@6.1.2) (2023-09-28)
7
+
8
+ **Note:** Version bump only for package @restorecommerce/protos
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.1.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.1.0...@restorecommerce/protos@6.1.1) (2023-09-18)
15
+
16
+ **Note:** Version bump only for package @restorecommerce/protos
17
+
18
+
19
+
20
+
21
+
6
22
  # [6.1.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.0.0...@restorecommerce/protos@6.1.0) (2023-09-18)
7
23
 
8
24
 
package/echo/echo.proto CHANGED
@@ -14,11 +14,11 @@ service EchoService {
14
14
  }
15
15
 
16
16
  message EchoRequest {
17
- string message = 1;
18
- google.protobuf.Any test = 2;
17
+ optional string message = 1;
18
+ optional google.protobuf.Any test = 2;
19
19
  }
20
20
 
21
21
  message EchoResponse {
22
- string message = 1;
23
- google.protobuf.Any test = 2;
22
+ optional string message = 1;
23
+ optional google.protobuf.Any test = 2;
24
24
  }
@@ -1,6 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- package io.restorecommerce.code;
3
+ package io.restorecommerce.unit_code;
4
4
 
5
5
  import "io/restorecommerce/resource_base.proto";
6
6
  import "io/restorecommerce/meta.proto";
@@ -8,34 +8,34 @@ import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/status.proto";
9
9
  import "io/restorecommerce/options.proto";
10
10
 
11
- service CodeService {
12
- rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (CodeListResponse) {
11
+ service UnitCodeService {
12
+ rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (UnitCodeListResponse) {
13
13
  option (io.restorecommerce.options.is_query) = true;
14
14
  };
15
- rpc Create (CodeList) returns (CodeListResponse);
15
+ rpc Create (UnitCodeList) returns (UnitCodeListResponse);
16
16
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
17
- rpc Update (CodeList) returns (CodeListResponse);
18
- rpc Upsert (CodeList) returns (CodeListResponse);
17
+ rpc Update (UnitCodeList) returns (UnitCodeListResponse);
18
+ rpc Upsert (UnitCodeList) returns (UnitCodeListResponse);
19
19
  }
20
20
 
21
- message CodeList {
22
- repeated Code items = 1;
21
+ message UnitCodeList {
22
+ repeated UnitCode items = 1;
23
23
  optional uint32 total_count = 2;
24
24
  optional io.restorecommerce.auth.Subject subject = 3;
25
25
  }
26
26
 
27
- message CodeListResponse {
28
- repeated CodeResponse items = 1;
27
+ message UnitCodeListResponse {
28
+ repeated UnitCodeResponse items = 1;
29
29
  optional uint32 total_count = 2;
30
30
  optional io.restorecommerce.status.OperationStatus operation_status = 3;
31
31
  }
32
32
 
33
- message CodeResponse {
34
- optional Code payload = 1;
33
+ message UnitCodeResponse {
34
+ optional UnitCode payload = 1;
35
35
  optional io.restorecommerce.status.Status status = 2;
36
36
  }
37
37
 
38
- message Code {
38
+ message UnitCode {
39
39
  optional string id = 1;
40
40
  optional io.restorecommerce.meta.Meta meta = 2;
41
41
  optional StatusCode status = 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "6.1.0",
3
+ "version": "6.1.2",
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": "2bce26eb836feec7f92e4c05fc3da68d6ac121f3"
18
+ "gitHead": "49a44b805bed0b3072587e2c95c2bd1488810eae"
19
19
  }
package/test/test.proto CHANGED
@@ -35,76 +35,76 @@ service CRUD {
35
35
  }
36
36
 
37
37
  message TestRequest {
38
- string value = 1;
38
+ optional string value = 1;
39
39
  }
40
40
 
41
41
  message StreamTestResponse {
42
- string result = 1;
42
+ optional string result = 1;
43
43
  }
44
44
 
45
45
  message TestResponse {
46
- string result = 1;
47
- io.restorecommerce.status.Status status = 4;
46
+ optional string result = 1;
47
+ optional io.restorecommerce.status.Status status = 4;
48
48
  }
49
49
 
50
50
  message TestEvent {
51
- string value = 1;
52
- int32 count = 2;
51
+ optional string value = 1;
52
+ optional int32 count = 2;
53
53
  };
54
54
 
55
55
  message TestBufferedData {
56
- string id = 1;
57
- io.restorecommerce.meta.Meta meta = 2;
58
- string value = 3;
59
- int32 count = 4;
60
- google.protobuf.Any data = 5;
56
+ optional string id = 1;
57
+ optional io.restorecommerce.meta.Meta meta = 2;
58
+ optional string value = 3;
59
+ optional int32 count = 4;
60
+ optional google.protobuf.Any data = 5;
61
61
  }
62
62
 
63
63
  message TestBufferedDataList {
64
64
  repeated TestBufferedData items = 1;
65
- uint32 total_count = 2;
65
+ optional uint32 total_count = 2;
66
66
  }
67
67
 
68
68
  message TestBufferedDataResponse {
69
- TestBufferedData payload = 1;
70
- io.restorecommerce.status.Status status = 2;
69
+ optional TestBufferedData payload = 1;
70
+ optional io.restorecommerce.status.Status status = 2;
71
71
  }
72
72
 
73
73
  message TestBufferedDataListResponse {
74
74
  repeated TestBufferedDataResponse items = 1;
75
- uint32 total_count = 2;
76
- io.restorecommerce.status.OperationStatus operation_status = 3;
75
+ optional uint32 total_count = 2;
76
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
77
77
  }
78
78
 
79
79
  message ExtendMe {
80
- int32 bar = 126;
80
+ optional int32 bar = 126;
81
81
  }
82
82
 
83
83
  message ResourceList {
84
84
  repeated Resource items = 1;
85
- uint32 total_count = 2;
86
- io.restorecommerce.auth.Subject subject = 3;
85
+ optional uint32 total_count = 2;
86
+ optional io.restorecommerce.auth.Subject subject = 3;
87
87
  }
88
88
 
89
89
  message ResourceListResponse {
90
90
  repeated ResourceResponse items = 1;
91
- uint32 total_count = 2;
92
- io.restorecommerce.status.OperationStatus operation_status = 3;
91
+ optional uint32 total_count = 2;
92
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
93
93
  }
94
94
 
95
95
  message ResourceResponse {
96
- Resource payload = 1;
97
- io.restorecommerce.status.Status status = 2;
96
+ optional Resource payload = 1;
97
+ optional io.restorecommerce.status.Status status = 2;
98
98
  }
99
99
 
100
100
  /// Example resource
101
101
  message Resource {
102
- string id = 1;
103
- io.restorecommerce.meta.Meta meta = 2;
104
- int32 value = 3;
105
- string text = 4;
106
- bool active = 5;
107
- google.protobuf.Timestamp created = 6;
108
- string status = 7;
102
+ optional string id = 1;
103
+ optional io.restorecommerce.meta.Meta meta = 2;
104
+ optional int32 value = 3;
105
+ optional string text = 4;
106
+ optional bool active = 5;
107
+ optional google.protobuf.Timestamp created = 6;
108
+ optional string status = 7;
109
109
  optional google.protobuf.Any data = 8;
110
110
  }