@lansweeper/asserver-grpc 2.2.2 → 2.2.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 +11 -0
- package/gen-proto/image.json +1 -1
- package/package.json +5 -2
- package/proto/shared/stream.proto +36 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/asserver-grpc",
|
|
3
3
|
"description": "asserver-grpc.",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.3",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -9,5 +9,8 @@
|
|
|
9
9
|
"google-protobuf": "^3.12.4",
|
|
10
10
|
"grpc": "^1.24.3"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prepublishOnly": "cp -r ../../shared ./proto"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "357f938576ebcb8c0d9f3f76498c20a44a531e9c"
|
|
13
16
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option csharp_namespace = "Lansweeper.Stream.GRPC";
|
|
4
|
+
|
|
5
|
+
package lansweeper.stream.v1;
|
|
6
|
+
|
|
7
|
+
message StringList {
|
|
8
|
+
repeated string items = 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message NullableStringList {
|
|
12
|
+
oneof kind {
|
|
13
|
+
StringList data = 1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
enum SyncType {
|
|
18
|
+
FULLLSYNC = 0;
|
|
19
|
+
REGULARSYNC = 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
enum Action {
|
|
23
|
+
INSERT = 0;
|
|
24
|
+
UPDATE = 1;
|
|
25
|
+
DELETE = 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message Headers {
|
|
29
|
+
string entity_name = 1;
|
|
30
|
+
string entity_id = 2;
|
|
31
|
+
string entity_key = 3;
|
|
32
|
+
SyncType sync_type = 4;
|
|
33
|
+
Action action = 5;
|
|
34
|
+
NullableStringList properties_changed = 6;
|
|
35
|
+
NullableStringList policies = 7;
|
|
36
|
+
}
|