@lansweeper/installer-grpc 0.0.3 → 0.0.4
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 +8 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/installer_pb.d.ts +3 -0
- package/gen-proto/installer_pb.js +31 -1
- package/generated-go/installer.pb.go +30 -21
- package/package.json +2 -2
- package/proto/installer.proto +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [0.0.4](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/installer-grpc@0.0.3...@lansweeper/installer-grpc@0.0.4) (2022-11-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @lansweeper/installer-grpc
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.0.3](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/installer-grpc@0.0.2...@lansweeper/installer-grpc@0.0.3) (2022-11-28)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @lansweeper/installer-grpc
|
package/gen-proto/image.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":[{"name":"proto/installer.proto","package":"lansweeper.installer.v1","messageType":[{"name":"GenerateInstallerRequest","field":[{"name":"client_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientId"},{"name":"client_secret","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientSecret"}]},{"name":"GenerateInstallerResponse","field":[{"name":"success","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"success"}]},{"name":"NullableString","field":[{"name":"data","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","oneofIndex":0,"jsonName":"data"}],"oneofDecl":[{"name":"kind"}]},{"name":"GetInstallerUrlRequest","field":[{"name":"client_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.installer.v1.NullableString","jsonName":"clientId"}]},{"name":"GetInstallerUrlResponse","field":[{"name":"url","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"url"}]}],"service":[{"name":"InstallerService","method":[{"name":"GenerateInstaller","inputType":".lansweeper.installer.v1.GenerateInstallerRequest","outputType":".lansweeper.installer.v1.GenerateInstallerResponse","options":{}},{"name":"GetInstallerUrl","inputType":".lansweeper.installer.v1.GetInstallerUrlRequest","outputType":".lansweeper.installer.v1.GetInstallerUrlResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,
|
|
1
|
+
{"file":[{"name":"proto/installer.proto","package":"lansweeper.installer.v1","messageType":[{"name":"GenerateInstallerRequest","field":[{"name":"client_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientId"},{"name":"client_secret","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientSecret"}]},{"name":"GenerateInstallerResponse","field":[{"name":"success","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"success"}]},{"name":"NullableString","field":[{"name":"data","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","oneofIndex":0,"jsonName":"data"}],"oneofDecl":[{"name":"kind"}]},{"name":"GetInstallerUrlRequest","field":[{"name":"client_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.installer.v1.NullableString","jsonName":"clientId"}]},{"name":"GetInstallerUrlResponse","field":[{"name":"url","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"url"},{"name":"success","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"success"}]}],"service":[{"name":"InstallerService","method":[{"name":"GenerateInstaller","inputType":".lansweeper.installer.v1.GenerateInstallerRequest","outputType":".lansweeper.installer.v1.GenerateInstallerResponse","options":{}},{"name":"GetInstallerUrl","inputType":".lansweeper.installer.v1.GetInstallerUrlRequest","outputType":".lansweeper.installer.v1.GetInstallerUrlResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,33,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,32]},{"path":[8],"span":[4,0,37]},{"path":[8,11],"span":[4,0,37]},{"path":[4,0],"span":[6,0,9,1]},{"path":[4,0,1],"span":[6,8,32]},{"path":[4,0,2,0],"span":[7,4,25]},{"path":[4,0,2,0,5],"span":[7,4,10]},{"path":[4,0,2,0,1],"span":[7,11,20]},{"path":[4,0,2,0,3],"span":[7,23,24]},{"path":[4,0,2,1],"span":[8,4,29]},{"path":[4,0,2,1,5],"span":[8,4,10]},{"path":[4,0,2,1,1],"span":[8,11,24]},{"path":[4,0,2,1,3],"span":[8,27,28]},{"path":[4,1],"span":[11,0,13,1]},{"path":[4,1,1],"span":[11,8,33]},{"path":[4,1,2,0],"span":[12,4,21]},{"path":[4,1,2,0,5],"span":[12,4,8]},{"path":[4,1,2,0,1],"span":[12,9,16]},{"path":[4,1,2,0,3],"span":[12,19,20]},{"path":[4,2],"span":[15,0,19,1]},{"path":[4,2,1],"span":[15,8,22]},{"path":[4,2,8,0],"span":[16,2,18,3]},{"path":[4,2,8,0,1],"span":[16,8,12]},{"path":[4,2,2,0],"span":[17,6,22]},{"path":[4,2,2,0,5],"span":[17,6,12]},{"path":[4,2,2,0,1],"span":[17,13,17]},{"path":[4,2,2,0,3],"span":[17,20,21]},{"path":[4,3],"span":[21,0,23,1]},{"path":[4,3,1],"span":[21,8,30]},{"path":[4,3,2,0],"span":[22,2,31]},{"path":[4,3,2,0,6],"span":[22,2,16]},{"path":[4,3,2,0,1],"span":[22,17,26]},{"path":[4,3,2,0,3],"span":[22,29,30]},{"path":[4,4],"span":[25,0,28,1]},{"path":[4,4,1],"span":[25,8,31]},{"path":[4,4,2,0],"span":[26,2,17]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,12]},{"path":[4,4,2,0,3],"span":[26,15,16]},{"path":[4,4,2,1],"span":[27,2,19]},{"path":[4,4,2,1,5],"span":[27,2,6]},{"path":[4,4,2,1,1],"span":[27,7,14]},{"path":[4,4,2,1,3],"span":[27,17,18]},{"path":[6,0],"span":[30,0,33,1]},{"path":[6,0,1],"span":[30,8,24]},{"path":[6,0,2,0],"span":[31,4,90]},{"path":[6,0,2,0,1],"span":[31,8,25]},{"path":[6,0,2,0,2],"span":[31,26,50]},{"path":[6,0,2,0,3],"span":[31,61,86]},{"path":[6,0,2,1],"span":[32,4,84]},{"path":[6,0,2,1,1],"span":[32,8,23]},{"path":[6,0,2,1,2],"span":[32,24,46]},{"path":[6,0,2,1,3],"span":[32,57,80]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
|
@@ -106,6 +106,8 @@ export namespace GetInstallerUrlRequest {
|
|
|
106
106
|
export class GetInstallerUrlResponse extends jspb.Message {
|
|
107
107
|
getUrl(): string;
|
|
108
108
|
setUrl(value: string): GetInstallerUrlResponse;
|
|
109
|
+
getSuccess(): boolean;
|
|
110
|
+
setSuccess(value: boolean): GetInstallerUrlResponse;
|
|
109
111
|
|
|
110
112
|
serializeBinary(): Uint8Array;
|
|
111
113
|
toObject(includeInstance?: boolean): GetInstallerUrlResponse.AsObject;
|
|
@@ -120,5 +122,6 @@ export class GetInstallerUrlResponse extends jspb.Message {
|
|
|
120
122
|
export namespace GetInstallerUrlResponse {
|
|
121
123
|
export type AsObject = {
|
|
122
124
|
url: string,
|
|
125
|
+
success: boolean,
|
|
123
126
|
}
|
|
124
127
|
}
|
|
@@ -772,7 +772,8 @@ proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.toObject = funct
|
|
|
772
772
|
*/
|
|
773
773
|
proto.lansweeper.installer.v1.GetInstallerUrlResponse.toObject = function(includeInstance, msg) {
|
|
774
774
|
var f, obj = {
|
|
775
|
-
url: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
775
|
+
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
776
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
776
777
|
};
|
|
777
778
|
|
|
778
779
|
if (includeInstance) {
|
|
@@ -813,6 +814,10 @@ proto.lansweeper.installer.v1.GetInstallerUrlResponse.deserializeBinaryFromReade
|
|
|
813
814
|
var value = /** @type {string} */ (reader.readString());
|
|
814
815
|
msg.setUrl(value);
|
|
815
816
|
break;
|
|
817
|
+
case 2:
|
|
818
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
819
|
+
msg.setSuccess(value);
|
|
820
|
+
break;
|
|
816
821
|
default:
|
|
817
822
|
reader.skipField();
|
|
818
823
|
break;
|
|
@@ -849,6 +854,13 @@ proto.lansweeper.installer.v1.GetInstallerUrlResponse.serializeBinaryToWriter =
|
|
|
849
854
|
f
|
|
850
855
|
);
|
|
851
856
|
}
|
|
857
|
+
f = message.getSuccess();
|
|
858
|
+
if (f) {
|
|
859
|
+
writer.writeBool(
|
|
860
|
+
2,
|
|
861
|
+
f
|
|
862
|
+
);
|
|
863
|
+
}
|
|
852
864
|
};
|
|
853
865
|
|
|
854
866
|
|
|
@@ -870,4 +882,22 @@ proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.setUrl = functio
|
|
|
870
882
|
};
|
|
871
883
|
|
|
872
884
|
|
|
885
|
+
/**
|
|
886
|
+
* optional bool success = 2;
|
|
887
|
+
* @return {boolean}
|
|
888
|
+
*/
|
|
889
|
+
proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.getSuccess = function() {
|
|
890
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* @param {boolean} value
|
|
896
|
+
* @return {!proto.lansweeper.installer.v1.GetInstallerUrlResponse} returns this
|
|
897
|
+
*/
|
|
898
|
+
proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.setSuccess = function(value) {
|
|
899
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
|
|
873
903
|
goog.object.extend(exports, proto.lansweeper.installer.v1);
|
|
@@ -128,7 +128,6 @@ type NullableString struct {
|
|
|
128
128
|
unknownFields protoimpl.UnknownFields
|
|
129
129
|
|
|
130
130
|
// Types that are assignable to Kind:
|
|
131
|
-
//
|
|
132
131
|
// *NullableString_Data
|
|
133
132
|
Kind isNullableString_Kind `protobuf_oneof:"kind"`
|
|
134
133
|
}
|
|
@@ -241,7 +240,8 @@ type GetInstallerUrlResponse struct {
|
|
|
241
240
|
sizeCache protoimpl.SizeCache
|
|
242
241
|
unknownFields protoimpl.UnknownFields
|
|
243
242
|
|
|
244
|
-
Url
|
|
243
|
+
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
244
|
+
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
func (x *GetInstallerUrlResponse) Reset() {
|
|
@@ -283,6 +283,13 @@ func (x *GetInstallerUrlResponse) GetUrl() string {
|
|
|
283
283
|
return ""
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
+
func (x *GetInstallerUrlResponse) GetSuccess() bool {
|
|
287
|
+
if x != nil {
|
|
288
|
+
return x.Success
|
|
289
|
+
}
|
|
290
|
+
return false
|
|
291
|
+
}
|
|
292
|
+
|
|
286
293
|
var File_proto_installer_proto protoreflect.FileDescriptor
|
|
287
294
|
|
|
288
295
|
var file_proto_installer_proto_rawDesc = []byte{
|
|
@@ -307,28 +314,30 @@ var file_proto_installer_proto_rawDesc = []byte{
|
|
|
307
314
|
0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e,
|
|
308
315
|
0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6c,
|
|
309
316
|
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x63, 0x6c, 0x69,
|
|
310
|
-
0x65, 0x6e, 0x74, 0x49, 0x64, 0x22,
|
|
317
|
+
0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
|
|
311
318
|
0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
312
319
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
|
313
|
-
0x72, 0x6c,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
0x6c, 0x65, 0x72,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
322
|
-
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
|
|
323
|
-
0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77,
|
|
324
|
-
0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e,
|
|
325
|
-
0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55,
|
|
326
|
-
0x72, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x73,
|
|
320
|
+
0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20,
|
|
321
|
+
0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x32, 0x88, 0x02, 0x0a,
|
|
322
|
+
0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
323
|
+
0x65, 0x12, 0x7c, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73,
|
|
324
|
+
0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65,
|
|
325
|
+
0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31,
|
|
326
|
+
0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c,
|
|
327
|
+
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6c, 0x61, 0x6e, 0x73,
|
|
327
328
|
0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72,
|
|
328
|
-
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
|
|
330
|
+
0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
|
|
331
|
+
0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55,
|
|
332
|
+
0x72, 0x6c, 0x12, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e,
|
|
333
|
+
0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
|
|
334
|
+
0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75,
|
|
335
|
+
0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72,
|
|
336
|
+
0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
|
|
337
|
+
0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73,
|
|
338
|
+
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x2e, 0x2f, 0x67, 0x65, 0x6e,
|
|
339
|
+
0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
340
|
+
0x33,
|
|
332
341
|
}
|
|
333
342
|
|
|
334
343
|
var (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/installer-grpc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Installer grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@grpc/grpc-js": "^1.6.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "74677022bfe0941a61ad1b1de9e177937799a057"
|
|
19
19
|
}
|