@lansweeper/install-status-grpc 0.0.1

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.
@@ -0,0 +1 @@
1
+ {"file":[{"name":"proto/install_status.proto","package":"lansweeper.installstatus.v1","messageType":[{"name":"InstallStatusProcess","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"process","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.installstatus.v1.Type","jsonName":"process"},{"name":"date","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"date"}]}],"enumType":[{"name":"Type","value":[{"name":"UNKNOWN","number":0},{"name":"SYNC","number":1},{"name":"COMMAND","number":2},{"name":"SCANNINGQUEUE","number":4},{"name":"SCANNINGSTATUS","number":5}]}],"sourceCodeInfo":{"location":[{"span":[0,0,16,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,36]},{"path":[5,0],"span":[4,0,10,1]},{"path":[5,0,1],"span":[4,5,9]},{"path":[5,0,2,0],"span":[5,2,14]},{"path":[5,0,2,0,1],"span":[5,2,9]},{"path":[5,0,2,0,2],"span":[5,12,13]},{"path":[5,0,2,1],"span":[6,2,11]},{"path":[5,0,2,1,1],"span":[6,2,6]},{"path":[5,0,2,1,2],"span":[6,9,10]},{"path":[5,0,2,2],"span":[7,2,14]},{"path":[5,0,2,2,1],"span":[7,2,9]},{"path":[5,0,2,2,2],"span":[7,12,13]},{"path":[5,0,2,3],"span":[8,2,20]},{"path":[5,0,2,3,1],"span":[8,2,15]},{"path":[5,0,2,3,2],"span":[8,18,19]},{"path":[5,0,2,4],"span":[9,2,21]},{"path":[5,0,2,4,1],"span":[9,2,16]},{"path":[5,0,2,4,2],"span":[9,19,20]},{"path":[4,0],"span":[12,0,16,1]},{"path":[4,0,1],"span":[12,8,28]},{"path":[4,0,2,0],"span":[13,2,25]},{"path":[4,0,2,0,5],"span":[13,2,8]},{"path":[4,0,2,0,1],"span":[13,9,20]},{"path":[4,0,2,0,3],"span":[13,23,24]},{"path":[4,0,2,1],"span":[14,2,19]},{"path":[4,0,2,1,6],"span":[14,2,6]},{"path":[4,0,2,1,1],"span":[14,7,14]},{"path":[4,0,2,1,3],"span":[14,17,18]},{"path":[4,0,2,2],"span":[15,2,18]},{"path":[4,0,2,2,5],"span":[15,2,8]},{"path":[4,0,2,2,1],"span":[15,9,13]},{"path":[4,0,2,2,3],"span":[15,16,17]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -0,0 +1 @@
1
+ export * from "./install_status_pb.d";
@@ -0,0 +1,3 @@
1
+ const install_status_grpc_pb = require("./install_status_grpc_pb");
2
+ const install_status_pb = require("./install_status_pb");
3
+ Object.assign(exports, install_status_grpc_pb, install_status_pb)
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,41 @@
1
+ // package: lansweeper.installstatus.v1
2
+ // file: install_status.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+
9
+ export class InstallStatusProcess extends jspb.Message {
10
+ getInstallKey(): string;
11
+ setInstallKey(value: string): InstallStatusProcess;
12
+ getProcess(): Type;
13
+ setProcess(value: Type): InstallStatusProcess;
14
+ getDate(): string;
15
+ setDate(value: string): InstallStatusProcess;
16
+
17
+ serializeBinary(): Uint8Array;
18
+ toObject(includeInstance?: boolean): InstallStatusProcess.AsObject;
19
+ static toObject(includeInstance: boolean, msg: InstallStatusProcess): InstallStatusProcess.AsObject;
20
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
21
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
22
+ static serializeBinaryToWriter(message: InstallStatusProcess, writer: jspb.BinaryWriter): void;
23
+ static deserializeBinary(bytes: Uint8Array): InstallStatusProcess;
24
+ static deserializeBinaryFromReader(message: InstallStatusProcess, reader: jspb.BinaryReader): InstallStatusProcess;
25
+ }
26
+
27
+ export namespace InstallStatusProcess {
28
+ export type AsObject = {
29
+ installKey: string,
30
+ process: Type,
31
+ date: string,
32
+ }
33
+ }
34
+
35
+ export enum Type {
36
+ UNKNOWN = 0,
37
+ SYNC = 1,
38
+ COMMAND = 2,
39
+ SCANNINGQUEUE = 4,
40
+ SCANNINGSTATUS = 5,
41
+ }
@@ -0,0 +1,242 @@
1
+ // source: install_status.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = Function('return this')();
17
+
18
+ goog.exportSymbol('proto.lansweeper.installstatus.v1.InstallStatusProcess', null, global);
19
+ goog.exportSymbol('proto.lansweeper.installstatus.v1.Type', null, global);
20
+ /**
21
+ * Generated by JsPbCodeGenerator.
22
+ * @param {Array=} opt_data Optional initial data array, typically from a
23
+ * server response, or constructed directly in Javascript. The array is used
24
+ * in place and becomes part of the constructed object. It is not cloned.
25
+ * If no data is provided, the constructed object will be empty, but still
26
+ * valid.
27
+ * @extends {jspb.Message}
28
+ * @constructor
29
+ */
30
+ proto.lansweeper.installstatus.v1.InstallStatusProcess = function(opt_data) {
31
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
32
+ };
33
+ goog.inherits(proto.lansweeper.installstatus.v1.InstallStatusProcess, jspb.Message);
34
+ if (goog.DEBUG && !COMPILED) {
35
+ /**
36
+ * @public
37
+ * @override
38
+ */
39
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.displayName = 'proto.lansweeper.installstatus.v1.InstallStatusProcess';
40
+ }
41
+
42
+
43
+
44
+ if (jspb.Message.GENERATE_TO_OBJECT) {
45
+ /**
46
+ * Creates an object representation of this proto.
47
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
48
+ * Optional fields that are not set will be set to undefined.
49
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50
+ * For the list of reserved names please see:
51
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53
+ * JSPB instance for transitional soy proto support:
54
+ * http://goto/soy-param-migration
55
+ * @return {!Object}
56
+ */
57
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.toObject = function(opt_includeInstance) {
58
+ return proto.lansweeper.installstatus.v1.InstallStatusProcess.toObject(opt_includeInstance, this);
59
+ };
60
+
61
+
62
+ /**
63
+ * Static version of the {@see toObject} method.
64
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
65
+ * the JSPB instance for transitional soy proto support:
66
+ * http://goto/soy-param-migration
67
+ * @param {!proto.lansweeper.installstatus.v1.InstallStatusProcess} msg The msg instance to transform.
68
+ * @return {!Object}
69
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70
+ */
71
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.toObject = function(includeInstance, msg) {
72
+ var f, obj = {
73
+ installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
74
+ process: jspb.Message.getFieldWithDefault(msg, 2, 0),
75
+ date: jspb.Message.getFieldWithDefault(msg, 3, "")
76
+ };
77
+
78
+ if (includeInstance) {
79
+ obj.$jspbMessageInstance = msg;
80
+ }
81
+ return obj;
82
+ };
83
+ }
84
+
85
+
86
+ /**
87
+ * Deserializes binary data (in protobuf wire format).
88
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
89
+ * @return {!proto.lansweeper.installstatus.v1.InstallStatusProcess}
90
+ */
91
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.deserializeBinary = function(bytes) {
92
+ var reader = new jspb.BinaryReader(bytes);
93
+ var msg = new proto.lansweeper.installstatus.v1.InstallStatusProcess;
94
+ return proto.lansweeper.installstatus.v1.InstallStatusProcess.deserializeBinaryFromReader(msg, reader);
95
+ };
96
+
97
+
98
+ /**
99
+ * Deserializes binary data (in protobuf wire format) from the
100
+ * given reader into the given message object.
101
+ * @param {!proto.lansweeper.installstatus.v1.InstallStatusProcess} msg The message object to deserialize into.
102
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
103
+ * @return {!proto.lansweeper.installstatus.v1.InstallStatusProcess}
104
+ */
105
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.deserializeBinaryFromReader = function(msg, reader) {
106
+ while (reader.nextField()) {
107
+ if (reader.isEndGroup()) {
108
+ break;
109
+ }
110
+ var field = reader.getFieldNumber();
111
+ switch (field) {
112
+ case 1:
113
+ var value = /** @type {string} */ (reader.readString());
114
+ msg.setInstallKey(value);
115
+ break;
116
+ case 2:
117
+ var value = /** @type {!proto.lansweeper.installstatus.v1.Type} */ (reader.readEnum());
118
+ msg.setProcess(value);
119
+ break;
120
+ case 3:
121
+ var value = /** @type {string} */ (reader.readString());
122
+ msg.setDate(value);
123
+ break;
124
+ default:
125
+ reader.skipField();
126
+ break;
127
+ }
128
+ }
129
+ return msg;
130
+ };
131
+
132
+
133
+ /**
134
+ * Serializes the message to binary data (in protobuf wire format).
135
+ * @return {!Uint8Array}
136
+ */
137
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.serializeBinary = function() {
138
+ var writer = new jspb.BinaryWriter();
139
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.serializeBinaryToWriter(this, writer);
140
+ return writer.getResultBuffer();
141
+ };
142
+
143
+
144
+ /**
145
+ * Serializes the given message to binary data (in protobuf wire
146
+ * format), writing to the given BinaryWriter.
147
+ * @param {!proto.lansweeper.installstatus.v1.InstallStatusProcess} message
148
+ * @param {!jspb.BinaryWriter} writer
149
+ * @suppress {unusedLocalVariables} f is only used for nested messages
150
+ */
151
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.serializeBinaryToWriter = function(message, writer) {
152
+ var f = undefined;
153
+ f = message.getInstallKey();
154
+ if (f.length > 0) {
155
+ writer.writeString(
156
+ 1,
157
+ f
158
+ );
159
+ }
160
+ f = message.getProcess();
161
+ if (f !== 0.0) {
162
+ writer.writeEnum(
163
+ 2,
164
+ f
165
+ );
166
+ }
167
+ f = message.getDate();
168
+ if (f.length > 0) {
169
+ writer.writeString(
170
+ 3,
171
+ f
172
+ );
173
+ }
174
+ };
175
+
176
+
177
+ /**
178
+ * optional string install_key = 1;
179
+ * @return {string}
180
+ */
181
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.getInstallKey = function() {
182
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
183
+ };
184
+
185
+
186
+ /**
187
+ * @param {string} value
188
+ * @return {!proto.lansweeper.installstatus.v1.InstallStatusProcess} returns this
189
+ */
190
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.setInstallKey = function(value) {
191
+ return jspb.Message.setProto3StringField(this, 1, value);
192
+ };
193
+
194
+
195
+ /**
196
+ * optional Type process = 2;
197
+ * @return {!proto.lansweeper.installstatus.v1.Type}
198
+ */
199
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.getProcess = function() {
200
+ return /** @type {!proto.lansweeper.installstatus.v1.Type} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
201
+ };
202
+
203
+
204
+ /**
205
+ * @param {!proto.lansweeper.installstatus.v1.Type} value
206
+ * @return {!proto.lansweeper.installstatus.v1.InstallStatusProcess} returns this
207
+ */
208
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.setProcess = function(value) {
209
+ return jspb.Message.setProto3EnumField(this, 2, value);
210
+ };
211
+
212
+
213
+ /**
214
+ * optional string date = 3;
215
+ * @return {string}
216
+ */
217
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.getDate = function() {
218
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
219
+ };
220
+
221
+
222
+ /**
223
+ * @param {string} value
224
+ * @return {!proto.lansweeper.installstatus.v1.InstallStatusProcess} returns this
225
+ */
226
+ proto.lansweeper.installstatus.v1.InstallStatusProcess.prototype.setDate = function(value) {
227
+ return jspb.Message.setProto3StringField(this, 3, value);
228
+ };
229
+
230
+
231
+ /**
232
+ * @enum {number}
233
+ */
234
+ proto.lansweeper.installstatus.v1.Type = {
235
+ UNKNOWN: 0,
236
+ SYNC: 1,
237
+ COMMAND: 2,
238
+ SCANNINGQUEUE: 4,
239
+ SCANNINGSTATUS: 5
240
+ };
241
+
242
+ goog.object.extend(exports, proto.lansweeper.installstatus.v1);
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@lansweeper/install-status-grpc",
3
+ "version": "0.0.1",
4
+ "description": "Install status grpc",
5
+ "main": "gen-proto/index.js",
6
+ "types": "gen-proto/index.d.ts",
7
+ "license": "MIT",
8
+ "files": [
9
+ "gen-proto",
10
+ "proto"
11
+ ],
12
+ "dependencies": {
13
+ "@grpc/grpc-js": "^1.5.1",
14
+ "google-protobuf": "^3.17.0"
15
+ },
16
+ "devDependencies": {
17
+ "@types/google-protobuf": "^3.15.5"
18
+ },
19
+ "gitHead": "50cbd50fbfb0367e46b4c67de6eede55ec66d76a"
20
+ }
@@ -0,0 +1,17 @@
1
+ syntax = "proto3";
2
+
3
+ package lansweeper.installstatus.v1;
4
+
5
+ enum Type {
6
+ UNKNOWN = 0;
7
+ SYNC = 1;
8
+ COMMAND = 2;
9
+ SCANNINGQUEUE = 4;
10
+ SCANNINGSTATUS = 5;
11
+ }
12
+
13
+ message InstallStatusProcess {
14
+ string install_key = 1;
15
+ Type process = 2;
16
+ string date = 3;
17
+ }