@restorecommerce/protos 3.0.1 → 3.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.
- package/CHANGELOG.md +11 -0
- package/io/restorecommerce/code.proto +78 -0
- package/package.json +2 -2
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
|
+
# [3.1.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@3.0.1...@restorecommerce/protos@3.1.0) (2023-06-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add unit codes ([95b4d36](https://github.com/restorecommerce/libs/commit/95b4d3635a4ef8670f3400271a9ccfb92b7fcf98))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.0.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@3.0.0...@restorecommerce/protos@3.0.1) (2023-05-29)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package io.restorecommerce.code;
|
|
4
|
+
|
|
5
|
+
import "io/restorecommerce/resource_base.proto";
|
|
6
|
+
import "io/restorecommerce/meta.proto";
|
|
7
|
+
import "io/restorecommerce/auth.proto";
|
|
8
|
+
import "io/restorecommerce/status.proto";
|
|
9
|
+
import "io/restorecommerce/options.proto";
|
|
10
|
+
|
|
11
|
+
service CodeService {
|
|
12
|
+
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (CodeListResponse) {
|
|
13
|
+
option (io.restorecommerce.options.is_query) = true;
|
|
14
|
+
};
|
|
15
|
+
rpc Create (CodeList) returns (CodeListResponse);
|
|
16
|
+
rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
|
|
17
|
+
rpc Update (CodeList) returns (CodeListResponse);
|
|
18
|
+
rpc Upsert (CodeList) returns (CodeListResponse);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message CodeList {
|
|
22
|
+
repeated Code items = 1;
|
|
23
|
+
optional uint32 total_count = 2;
|
|
24
|
+
io.restorecommerce.auth.Subject subject = 3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message CodeListResponse {
|
|
28
|
+
repeated CodeResponse items = 1;
|
|
29
|
+
uint32 total_count = 2;
|
|
30
|
+
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message CodeResponse {
|
|
34
|
+
Code payload = 1;
|
|
35
|
+
io.restorecommerce.status.Status status = 2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message Code {
|
|
39
|
+
optional string id = 1;
|
|
40
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
41
|
+
optional Status status = 3;
|
|
42
|
+
optional string common_code = 4;
|
|
43
|
+
optional string name = 5;
|
|
44
|
+
optional string description = 6;
|
|
45
|
+
optional string level_category = 7;
|
|
46
|
+
optional string symbol = 8;
|
|
47
|
+
optional string conversion_factor = 9;
|
|
48
|
+
optional string group_number = 10;
|
|
49
|
+
optional Sector sector = 11;
|
|
50
|
+
optional string group_id = 12;
|
|
51
|
+
optional string quantity = 13;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
enum Status {
|
|
55
|
+
ADDED = 0;
|
|
56
|
+
CHANGED_NAME = 1;
|
|
57
|
+
CHANGED_CHARACTERISTIC = 2;
|
|
58
|
+
DEPRECATED = 3;
|
|
59
|
+
MARKED_AS_DELETED = 4;
|
|
60
|
+
REINSTATED = 5;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
enum Sector {
|
|
64
|
+
UNKNOWN = 0;
|
|
65
|
+
ACOUSTICS = 1;
|
|
66
|
+
ATOMIC_AND_NUCLEAR_PHYSICS = 2;
|
|
67
|
+
CHARACTERISTIC_NUMBERS = 3;
|
|
68
|
+
ELECTRICITY_AND_MAGNETISM = 4;
|
|
69
|
+
HEAT = 5;
|
|
70
|
+
LIGHT_AND_RELATED_ELECTROMAGNETIC_RADIATIONS = 6;
|
|
71
|
+
MECHANICS = 7;
|
|
72
|
+
MISCELLANEOUS = 8;
|
|
73
|
+
NUCLEAR_REACTIONS_AND_IONIZING_RADIATIONS = 9;
|
|
74
|
+
PERIODIC_AND_RELATED_PHASES = 10;
|
|
75
|
+
PHYSICAL_CHEMISTRY_AND_MOLECULAR_PHYSICS = 11;
|
|
76
|
+
SOLID_STATE_PHYSICS = 12;
|
|
77
|
+
SPACE_AND_TIME = 13;
|
|
78
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.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": "
|
|
18
|
+
"gitHead": "e093e8f0503789578353aeb73a8b39950c24f880"
|
|
19
19
|
}
|