@lansweeper/multitenant-api-grpc 0.4.47 → 0.4.49
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 +34 -0
- package/gen-proto/multitenant_grpc_pb.js +66 -0
- package/gen-proto/multitenant_pb.d.ts +94 -0
- package/gen-proto/multitenant_pb.js +946 -166
- package/generated-go/multitenant.pb.go +1859 -1547
- package/generated-go/multitenant_grpc.pb.go +74 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +16 -0
|
@@ -22,6 +22,8 @@ const (
|
|
|
22
22
|
Multitenant_CheckAccessToSiteByAccountId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CheckAccessToSiteByAccountId"
|
|
23
23
|
Multitenant_CheckAccessToSiteByClientId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CheckAccessToSiteByClientId"
|
|
24
24
|
Multitenant_GetPreviewAccountById_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetPreviewAccountById"
|
|
25
|
+
Multitenant_SearchPreviewAccountsBySiteIds_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/SearchPreviewAccountsBySiteIds"
|
|
26
|
+
Multitenant_GetPreviewAccountsByAccountIds_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetPreviewAccountsByAccountIds"
|
|
25
27
|
Multitenant_ListProfilesByAccountId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/ListProfilesByAccountId"
|
|
26
28
|
Multitenant_ListAuthorizedLinkProfiles_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/ListAuthorizedLinkProfiles"
|
|
27
29
|
Multitenant_PatchSiteMode_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/PatchSiteMode"
|
|
@@ -65,6 +67,8 @@ type MultitenantClient interface {
|
|
|
65
67
|
CheckAccessToSiteByAccountId(ctx context.Context, in *CheckAccessToSiteByAccountIdRequest, opts ...grpc.CallOption) (*CheckAccessToSiteByAccountIdResponse, error)
|
|
66
68
|
CheckAccessToSiteByClientId(ctx context.Context, in *CheckAccessToSiteByClientIdRequest, opts ...grpc.CallOption) (*CheckAccessToSiteByClientIdResponse, error)
|
|
67
69
|
GetPreviewAccountById(ctx context.Context, in *GetPreviewAccountByIdRequest, opts ...grpc.CallOption) (*GetPreviewAccountByIdResponse, error)
|
|
70
|
+
SearchPreviewAccountsBySiteIds(ctx context.Context, in *SearchPreviewAccountsBySiteIdsRequest, opts ...grpc.CallOption) (*SearchPreviewAccountsBySiteIdsResponse, error)
|
|
71
|
+
GetPreviewAccountsByAccountIds(ctx context.Context, in *GetPreviewAccountsByAccountIdsRequest, opts ...grpc.CallOption) (*GetPreviewAccountsByAccountIdsResponse, error)
|
|
68
72
|
ListProfilesByAccountId(ctx context.Context, in *ListProfilesByAccountIdRequest, opts ...grpc.CallOption) (*ListProfilesByAccountIdResponse, error)
|
|
69
73
|
ListAuthorizedLinkProfiles(ctx context.Context, in *ListAuthorizedLinkProfilesRequest, opts ...grpc.CallOption) (*ListAuthorizedLinkProfilesResponse, error)
|
|
70
74
|
PatchSiteMode(ctx context.Context, in *PatchSiteModeRequest, opts ...grpc.CallOption) (*PatchSiteModeResponse, error)
|
|
@@ -137,6 +141,24 @@ func (c *multitenantClient) GetPreviewAccountById(ctx context.Context, in *GetPr
|
|
|
137
141
|
return out, nil
|
|
138
142
|
}
|
|
139
143
|
|
|
144
|
+
func (c *multitenantClient) SearchPreviewAccountsBySiteIds(ctx context.Context, in *SearchPreviewAccountsBySiteIdsRequest, opts ...grpc.CallOption) (*SearchPreviewAccountsBySiteIdsResponse, error) {
|
|
145
|
+
out := new(SearchPreviewAccountsBySiteIdsResponse)
|
|
146
|
+
err := c.cc.Invoke(ctx, Multitenant_SearchPreviewAccountsBySiteIds_FullMethodName, in, out, opts...)
|
|
147
|
+
if err != nil {
|
|
148
|
+
return nil, err
|
|
149
|
+
}
|
|
150
|
+
return out, nil
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
func (c *multitenantClient) GetPreviewAccountsByAccountIds(ctx context.Context, in *GetPreviewAccountsByAccountIdsRequest, opts ...grpc.CallOption) (*GetPreviewAccountsByAccountIdsResponse, error) {
|
|
154
|
+
out := new(GetPreviewAccountsByAccountIdsResponse)
|
|
155
|
+
err := c.cc.Invoke(ctx, Multitenant_GetPreviewAccountsByAccountIds_FullMethodName, in, out, opts...)
|
|
156
|
+
if err != nil {
|
|
157
|
+
return nil, err
|
|
158
|
+
}
|
|
159
|
+
return out, nil
|
|
160
|
+
}
|
|
161
|
+
|
|
140
162
|
func (c *multitenantClient) ListProfilesByAccountId(ctx context.Context, in *ListProfilesByAccountIdRequest, opts ...grpc.CallOption) (*ListProfilesByAccountIdResponse, error) {
|
|
141
163
|
out := new(ListProfilesByAccountIdResponse)
|
|
142
164
|
err := c.cc.Invoke(ctx, Multitenant_ListProfilesByAccountId_FullMethodName, in, out, opts...)
|
|
@@ -451,6 +473,8 @@ type MultitenantServer interface {
|
|
|
451
473
|
CheckAccessToSiteByAccountId(context.Context, *CheckAccessToSiteByAccountIdRequest) (*CheckAccessToSiteByAccountIdResponse, error)
|
|
452
474
|
CheckAccessToSiteByClientId(context.Context, *CheckAccessToSiteByClientIdRequest) (*CheckAccessToSiteByClientIdResponse, error)
|
|
453
475
|
GetPreviewAccountById(context.Context, *GetPreviewAccountByIdRequest) (*GetPreviewAccountByIdResponse, error)
|
|
476
|
+
SearchPreviewAccountsBySiteIds(context.Context, *SearchPreviewAccountsBySiteIdsRequest) (*SearchPreviewAccountsBySiteIdsResponse, error)
|
|
477
|
+
GetPreviewAccountsByAccountIds(context.Context, *GetPreviewAccountsByAccountIdsRequest) (*GetPreviewAccountsByAccountIdsResponse, error)
|
|
454
478
|
ListProfilesByAccountId(context.Context, *ListProfilesByAccountIdRequest) (*ListProfilesByAccountIdResponse, error)
|
|
455
479
|
ListAuthorizedLinkProfiles(context.Context, *ListAuthorizedLinkProfilesRequest) (*ListAuthorizedLinkProfilesResponse, error)
|
|
456
480
|
PatchSiteMode(context.Context, *PatchSiteModeRequest) (*PatchSiteModeResponse, error)
|
|
@@ -502,6 +526,12 @@ func (UnimplementedMultitenantServer) CheckAccessToSiteByClientId(context.Contex
|
|
|
502
526
|
func (UnimplementedMultitenantServer) GetPreviewAccountById(context.Context, *GetPreviewAccountByIdRequest) (*GetPreviewAccountByIdResponse, error) {
|
|
503
527
|
return nil, status.Errorf(codes.Unimplemented, "method GetPreviewAccountById not implemented")
|
|
504
528
|
}
|
|
529
|
+
func (UnimplementedMultitenantServer) SearchPreviewAccountsBySiteIds(context.Context, *SearchPreviewAccountsBySiteIdsRequest) (*SearchPreviewAccountsBySiteIdsResponse, error) {
|
|
530
|
+
return nil, status.Errorf(codes.Unimplemented, "method SearchPreviewAccountsBySiteIds not implemented")
|
|
531
|
+
}
|
|
532
|
+
func (UnimplementedMultitenantServer) GetPreviewAccountsByAccountIds(context.Context, *GetPreviewAccountsByAccountIdsRequest) (*GetPreviewAccountsByAccountIdsResponse, error) {
|
|
533
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetPreviewAccountsByAccountIds not implemented")
|
|
534
|
+
}
|
|
505
535
|
func (UnimplementedMultitenantServer) ListProfilesByAccountId(context.Context, *ListProfilesByAccountIdRequest) (*ListProfilesByAccountIdResponse, error) {
|
|
506
536
|
return nil, status.Errorf(codes.Unimplemented, "method ListProfilesByAccountId not implemented")
|
|
507
537
|
}
|
|
@@ -671,6 +701,42 @@ func _Multitenant_GetPreviewAccountById_Handler(srv interface{}, ctx context.Con
|
|
|
671
701
|
return interceptor(ctx, in, info, handler)
|
|
672
702
|
}
|
|
673
703
|
|
|
704
|
+
func _Multitenant_SearchPreviewAccountsBySiteIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
705
|
+
in := new(SearchPreviewAccountsBySiteIdsRequest)
|
|
706
|
+
if err := dec(in); err != nil {
|
|
707
|
+
return nil, err
|
|
708
|
+
}
|
|
709
|
+
if interceptor == nil {
|
|
710
|
+
return srv.(MultitenantServer).SearchPreviewAccountsBySiteIds(ctx, in)
|
|
711
|
+
}
|
|
712
|
+
info := &grpc.UnaryServerInfo{
|
|
713
|
+
Server: srv,
|
|
714
|
+
FullMethod: Multitenant_SearchPreviewAccountsBySiteIds_FullMethodName,
|
|
715
|
+
}
|
|
716
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
717
|
+
return srv.(MultitenantServer).SearchPreviewAccountsBySiteIds(ctx, req.(*SearchPreviewAccountsBySiteIdsRequest))
|
|
718
|
+
}
|
|
719
|
+
return interceptor(ctx, in, info, handler)
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
func _Multitenant_GetPreviewAccountsByAccountIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
723
|
+
in := new(GetPreviewAccountsByAccountIdsRequest)
|
|
724
|
+
if err := dec(in); err != nil {
|
|
725
|
+
return nil, err
|
|
726
|
+
}
|
|
727
|
+
if interceptor == nil {
|
|
728
|
+
return srv.(MultitenantServer).GetPreviewAccountsByAccountIds(ctx, in)
|
|
729
|
+
}
|
|
730
|
+
info := &grpc.UnaryServerInfo{
|
|
731
|
+
Server: srv,
|
|
732
|
+
FullMethod: Multitenant_GetPreviewAccountsByAccountIds_FullMethodName,
|
|
733
|
+
}
|
|
734
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
735
|
+
return srv.(MultitenantServer).GetPreviewAccountsByAccountIds(ctx, req.(*GetPreviewAccountsByAccountIdsRequest))
|
|
736
|
+
}
|
|
737
|
+
return interceptor(ctx, in, info, handler)
|
|
738
|
+
}
|
|
739
|
+
|
|
674
740
|
func _Multitenant_ListProfilesByAccountId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
675
741
|
in := new(ListProfilesByAccountIdRequest)
|
|
676
742
|
if err := dec(in); err != nil {
|
|
@@ -1302,6 +1368,14 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1302
1368
|
MethodName: "GetPreviewAccountById",
|
|
1303
1369
|
Handler: _Multitenant_GetPreviewAccountById_Handler,
|
|
1304
1370
|
},
|
|
1371
|
+
{
|
|
1372
|
+
MethodName: "SearchPreviewAccountsBySiteIds",
|
|
1373
|
+
Handler: _Multitenant_SearchPreviewAccountsBySiteIds_Handler,
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
MethodName: "GetPreviewAccountsByAccountIds",
|
|
1377
|
+
Handler: _Multitenant_GetPreviewAccountsByAccountIds_Handler,
|
|
1378
|
+
},
|
|
1305
1379
|
{
|
|
1306
1380
|
MethodName: "ListProfilesByAccountId",
|
|
1307
1381
|
Handler: _Multitenant_ListProfilesByAccountId_Handler,
|
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.49",
|
|
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": "9f453365d6e1092838d62dcb4ce7afa105de40da"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -18,6 +18,19 @@ message GetPreviewAccountByIdRequest {
|
|
|
18
18
|
message GetPreviewAccountByIdResponse {
|
|
19
19
|
PreviewAccount account = 1;
|
|
20
20
|
}
|
|
21
|
+
message SearchPreviewAccountsBySiteIdsRequest {
|
|
22
|
+
repeated string site_ids = 1;
|
|
23
|
+
string search = 2;
|
|
24
|
+
}
|
|
25
|
+
message SearchPreviewAccountsBySiteIdsResponse {
|
|
26
|
+
repeated PreviewAccount accounts = 1;
|
|
27
|
+
}
|
|
28
|
+
message GetPreviewAccountsByAccountIdsRequest {
|
|
29
|
+
repeated string account_ids = 1;
|
|
30
|
+
}
|
|
31
|
+
message GetPreviewAccountsByAccountIdsResponse {
|
|
32
|
+
repeated PreviewAccount accounts = 1;
|
|
33
|
+
}
|
|
21
34
|
enum SiteMode {
|
|
22
35
|
UNESPECIFIED = 0;
|
|
23
36
|
CLOUD_NATIVE = 1;
|
|
@@ -49,6 +62,7 @@ message Profile {
|
|
|
49
62
|
message ListProfilesByAccountIdRequest{
|
|
50
63
|
string account_id = 1;
|
|
51
64
|
bool include_blocks = 2;
|
|
65
|
+
bool being_owner_or_administrator = 3;
|
|
52
66
|
}
|
|
53
67
|
message ListProfilesByAccountIdResponse {
|
|
54
68
|
repeated Profile profile = 1;
|
|
@@ -432,6 +446,8 @@ service Multitenant {
|
|
|
432
446
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
433
447
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
434
448
|
rpc GetPreviewAccountById(GetPreviewAccountByIdRequest) returns (GetPreviewAccountByIdResponse) {}
|
|
449
|
+
rpc SearchPreviewAccountsBySiteIds(SearchPreviewAccountsBySiteIdsRequest) returns (SearchPreviewAccountsBySiteIdsResponse) {}
|
|
450
|
+
rpc GetPreviewAccountsByAccountIds(GetPreviewAccountsByAccountIdsRequest) returns (GetPreviewAccountsByAccountIdsResponse) {}
|
|
435
451
|
rpc ListProfilesByAccountId(ListProfilesByAccountIdRequest) returns (ListProfilesByAccountIdResponse) {}
|
|
436
452
|
|
|
437
453
|
rpc ListAuthorizedLinkProfiles(ListAuthorizedLinkProfilesRequest) returns (ListAuthorizedLinkProfilesResponse) {}
|