@lansweeper/multitenant-api-grpc 0.4.53 → 0.4.55
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 +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/multitenant_grpc_pb.d.ts +17 -0
- package/gen-proto/multitenant_grpc_pb.js +33 -0
- package/gen-proto/multitenant_pb.d.ts +47 -0
- package/gen-proto/multitenant_pb.js +391 -1
- package/generated-go/multitenant.pb.go +1697 -1543
- package/generated-go/multitenant_grpc.pb.go +37 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +8 -0
|
@@ -61,6 +61,7 @@ const (
|
|
|
61
61
|
Multitenant_GetMsmpOrganizationList_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetMsmpOrganizationList"
|
|
62
62
|
Multitenant_GetMsmpOrganizationAccount_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetMsmpOrganizationAccount"
|
|
63
63
|
Multitenant_GetSitesByMsmpOrganizationId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSitesByMsmpOrganizationId"
|
|
64
|
+
Multitenant_GetInstallsByExternalIds_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetInstallsByExternalIds"
|
|
64
65
|
)
|
|
65
66
|
|
|
66
67
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -110,6 +111,7 @@ type MultitenantClient interface {
|
|
|
110
111
|
GetMsmpOrganizationList(ctx context.Context, in *GetMsmpOrganizationListRequest, opts ...grpc.CallOption) (*GetMsmpOrganizationListResponse, error)
|
|
111
112
|
GetMsmpOrganizationAccount(ctx context.Context, in *GetMsmpOrganizationAccountRequest, opts ...grpc.CallOption) (*GetMsmpOrganizationAccountResponse, error)
|
|
112
113
|
GetSitesByMsmpOrganizationId(ctx context.Context, in *GetSitesByMsmpOrganizationIdRequest, opts ...grpc.CallOption) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
114
|
+
GetInstallsByExternalIds(ctx context.Context, in *GetInstallsByExternalIdsRequest, opts ...grpc.CallOption) (*GetInstallsByExternalIdsResponse, error)
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
type multitenantClient struct {
|
|
@@ -499,6 +501,15 @@ func (c *multitenantClient) GetSitesByMsmpOrganizationId(ctx context.Context, in
|
|
|
499
501
|
return out, nil
|
|
500
502
|
}
|
|
501
503
|
|
|
504
|
+
func (c *multitenantClient) GetInstallsByExternalIds(ctx context.Context, in *GetInstallsByExternalIdsRequest, opts ...grpc.CallOption) (*GetInstallsByExternalIdsResponse, error) {
|
|
505
|
+
out := new(GetInstallsByExternalIdsResponse)
|
|
506
|
+
err := c.cc.Invoke(ctx, Multitenant_GetInstallsByExternalIds_FullMethodName, in, out, opts...)
|
|
507
|
+
if err != nil {
|
|
508
|
+
return nil, err
|
|
509
|
+
}
|
|
510
|
+
return out, nil
|
|
511
|
+
}
|
|
512
|
+
|
|
502
513
|
// MultitenantServer is the server API for Multitenant service.
|
|
503
514
|
// All implementations must embed UnimplementedMultitenantServer
|
|
504
515
|
// for forward compatibility
|
|
@@ -546,6 +557,7 @@ type MultitenantServer interface {
|
|
|
546
557
|
GetMsmpOrganizationList(context.Context, *GetMsmpOrganizationListRequest) (*GetMsmpOrganizationListResponse, error)
|
|
547
558
|
GetMsmpOrganizationAccount(context.Context, *GetMsmpOrganizationAccountRequest) (*GetMsmpOrganizationAccountResponse, error)
|
|
548
559
|
GetSitesByMsmpOrganizationId(context.Context, *GetSitesByMsmpOrganizationIdRequest) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
560
|
+
GetInstallsByExternalIds(context.Context, *GetInstallsByExternalIdsRequest) (*GetInstallsByExternalIdsResponse, error)
|
|
549
561
|
mustEmbedUnimplementedMultitenantServer()
|
|
550
562
|
}
|
|
551
563
|
|
|
@@ -679,6 +691,9 @@ func (UnimplementedMultitenantServer) GetMsmpOrganizationAccount(context.Context
|
|
|
679
691
|
func (UnimplementedMultitenantServer) GetSitesByMsmpOrganizationId(context.Context, *GetSitesByMsmpOrganizationIdRequest) (*GetSitesByMsmpOrganizationIdResponse, error) {
|
|
680
692
|
return nil, status.Errorf(codes.Unimplemented, "method GetSitesByMsmpOrganizationId not implemented")
|
|
681
693
|
}
|
|
694
|
+
func (UnimplementedMultitenantServer) GetInstallsByExternalIds(context.Context, *GetInstallsByExternalIdsRequest) (*GetInstallsByExternalIdsResponse, error) {
|
|
695
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetInstallsByExternalIds not implemented")
|
|
696
|
+
}
|
|
682
697
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
683
698
|
|
|
684
699
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1448,6 +1463,24 @@ func _Multitenant_GetSitesByMsmpOrganizationId_Handler(srv interface{}, ctx cont
|
|
|
1448
1463
|
return interceptor(ctx, in, info, handler)
|
|
1449
1464
|
}
|
|
1450
1465
|
|
|
1466
|
+
func _Multitenant_GetInstallsByExternalIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1467
|
+
in := new(GetInstallsByExternalIdsRequest)
|
|
1468
|
+
if err := dec(in); err != nil {
|
|
1469
|
+
return nil, err
|
|
1470
|
+
}
|
|
1471
|
+
if interceptor == nil {
|
|
1472
|
+
return srv.(MultitenantServer).GetInstallsByExternalIds(ctx, in)
|
|
1473
|
+
}
|
|
1474
|
+
info := &grpc.UnaryServerInfo{
|
|
1475
|
+
Server: srv,
|
|
1476
|
+
FullMethod: Multitenant_GetInstallsByExternalIds_FullMethodName,
|
|
1477
|
+
}
|
|
1478
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1479
|
+
return srv.(MultitenantServer).GetInstallsByExternalIds(ctx, req.(*GetInstallsByExternalIdsRequest))
|
|
1480
|
+
}
|
|
1481
|
+
return interceptor(ctx, in, info, handler)
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1451
1484
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1452
1485
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1453
1486
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -1623,6 +1656,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1623
1656
|
MethodName: "GetSitesByMsmpOrganizationId",
|
|
1624
1657
|
Handler: _Multitenant_GetSitesByMsmpOrganizationId_Handler,
|
|
1625
1658
|
},
|
|
1659
|
+
{
|
|
1660
|
+
MethodName: "GetInstallsByExternalIds",
|
|
1661
|
+
Handler: _Multitenant_GetInstallsByExternalIds_Handler,
|
|
1662
|
+
},
|
|
1626
1663
|
},
|
|
1627
1664
|
Streams: []grpc.StreamDesc{},
|
|
1628
1665
|
Metadata: "multitenant.proto",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/multitenant-api-grpc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.55",
|
|
4
4
|
"description": "Multitenant grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"prepublishOnly": "cp -r ../../shared/limits ./proto"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "ec556d82763f84f87c92b0263b19c976ec3e1768"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -117,6 +117,7 @@ message Install {
|
|
|
117
117
|
string license = 11;
|
|
118
118
|
string type = 12 [deprecated = true];
|
|
119
119
|
InstallType install_type = 13;
|
|
120
|
+
string external_id = 14;
|
|
120
121
|
}
|
|
121
122
|
message InstallCredentials {
|
|
122
123
|
string client_id = 1;
|
|
@@ -134,6 +135,12 @@ message GetInstallsByIdRequest {
|
|
|
134
135
|
message GetInstallsByIdResponse {
|
|
135
136
|
repeated Install install = 1;
|
|
136
137
|
}
|
|
138
|
+
message GetInstallsByExternalIdsRequest {
|
|
139
|
+
repeated string external_ids = 1;
|
|
140
|
+
}
|
|
141
|
+
message GetInstallsByExternalIdsResponse {
|
|
142
|
+
repeated Install install = 1;
|
|
143
|
+
}
|
|
137
144
|
message NullableInstallType {
|
|
138
145
|
oneof kind {
|
|
139
146
|
InstallType data = 1;
|
|
@@ -553,4 +560,5 @@ service Multitenant {
|
|
|
553
560
|
rpc GetMsmpOrganizationList(GetMsmpOrganizationListRequest) returns (GetMsmpOrganizationListResponse) {}
|
|
554
561
|
rpc GetMsmpOrganizationAccount(GetMsmpOrganizationAccountRequest) returns (GetMsmpOrganizationAccountResponse) {}
|
|
555
562
|
rpc GetSitesByMsmpOrganizationId(GetSitesByMsmpOrganizationIdRequest) returns (GetSitesByMsmpOrganizationIdResponse) {}
|
|
563
|
+
rpc GetInstallsByExternalIds(GetInstallsByExternalIdsRequest) returns (GetInstallsByExternalIdsResponse) {}
|
|
556
564
|
}
|