@lansweeper/multitenant-api-grpc 0.4.50 → 0.4.52
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 +170 -0
- package/gen-proto/multitenant_pb.js +1668 -264
- package/generated-go/multitenant.pb.go +1143 -583
- package/generated-go/multitenant_grpc.pb.go +74 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +40 -0
|
@@ -59,6 +59,8 @@ const (
|
|
|
59
59
|
Multitenant_UpdateSiteMetadata_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/UpdateSiteMetadata"
|
|
60
60
|
Multitenant_GetSiteLimits_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteLimits"
|
|
61
61
|
Multitenant_GetMsmpOrganizationList_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetMsmpOrganizationList"
|
|
62
|
+
Multitenant_GetMsmpOrganizationAccount_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetMsmpOrganizationAccount"
|
|
63
|
+
Multitenant_GetSitesByMsmpOrganizationId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSitesByMsmpOrganizationId"
|
|
62
64
|
)
|
|
63
65
|
|
|
64
66
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -106,6 +108,8 @@ type MultitenantClient interface {
|
|
|
106
108
|
UpdateSiteMetadata(ctx context.Context, in *UpdateSiteMetadataRequest, opts ...grpc.CallOption) (*UpdateSiteMetadataResponse, error)
|
|
107
109
|
GetSiteLimits(ctx context.Context, in *GetSiteLimitsRequest, opts ...grpc.CallOption) (*GetSiteLimitsResponse, error)
|
|
108
110
|
GetMsmpOrganizationList(ctx context.Context, in *GetMsmpOrganizationListRequest, opts ...grpc.CallOption) (*GetMsmpOrganizationListResponse, error)
|
|
111
|
+
GetMsmpOrganizationAccount(ctx context.Context, in *GetMsmpOrganizationAccountRequest, opts ...grpc.CallOption) (*GetMsmpOrganizationAccountResponse, error)
|
|
112
|
+
GetSitesByMsmpOrganizationId(ctx context.Context, in *GetSitesByMsmpOrganizationIdRequest, opts ...grpc.CallOption) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
type multitenantClient struct {
|
|
@@ -477,6 +481,24 @@ func (c *multitenantClient) GetMsmpOrganizationList(ctx context.Context, in *Get
|
|
|
477
481
|
return out, nil
|
|
478
482
|
}
|
|
479
483
|
|
|
484
|
+
func (c *multitenantClient) GetMsmpOrganizationAccount(ctx context.Context, in *GetMsmpOrganizationAccountRequest, opts ...grpc.CallOption) (*GetMsmpOrganizationAccountResponse, error) {
|
|
485
|
+
out := new(GetMsmpOrganizationAccountResponse)
|
|
486
|
+
err := c.cc.Invoke(ctx, Multitenant_GetMsmpOrganizationAccount_FullMethodName, in, out, opts...)
|
|
487
|
+
if err != nil {
|
|
488
|
+
return nil, err
|
|
489
|
+
}
|
|
490
|
+
return out, nil
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
func (c *multitenantClient) GetSitesByMsmpOrganizationId(ctx context.Context, in *GetSitesByMsmpOrganizationIdRequest, opts ...grpc.CallOption) (*GetSitesByMsmpOrganizationIdResponse, error) {
|
|
494
|
+
out := new(GetSitesByMsmpOrganizationIdResponse)
|
|
495
|
+
err := c.cc.Invoke(ctx, Multitenant_GetSitesByMsmpOrganizationId_FullMethodName, in, out, opts...)
|
|
496
|
+
if err != nil {
|
|
497
|
+
return nil, err
|
|
498
|
+
}
|
|
499
|
+
return out, nil
|
|
500
|
+
}
|
|
501
|
+
|
|
480
502
|
// MultitenantServer is the server API for Multitenant service.
|
|
481
503
|
// All implementations must embed UnimplementedMultitenantServer
|
|
482
504
|
// for forward compatibility
|
|
@@ -522,6 +544,8 @@ type MultitenantServer interface {
|
|
|
522
544
|
UpdateSiteMetadata(context.Context, *UpdateSiteMetadataRequest) (*UpdateSiteMetadataResponse, error)
|
|
523
545
|
GetSiteLimits(context.Context, *GetSiteLimitsRequest) (*GetSiteLimitsResponse, error)
|
|
524
546
|
GetMsmpOrganizationList(context.Context, *GetMsmpOrganizationListRequest) (*GetMsmpOrganizationListResponse, error)
|
|
547
|
+
GetMsmpOrganizationAccount(context.Context, *GetMsmpOrganizationAccountRequest) (*GetMsmpOrganizationAccountResponse, error)
|
|
548
|
+
GetSitesByMsmpOrganizationId(context.Context, *GetSitesByMsmpOrganizationIdRequest) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
525
549
|
mustEmbedUnimplementedMultitenantServer()
|
|
526
550
|
}
|
|
527
551
|
|
|
@@ -649,6 +673,12 @@ func (UnimplementedMultitenantServer) GetSiteLimits(context.Context, *GetSiteLim
|
|
|
649
673
|
func (UnimplementedMultitenantServer) GetMsmpOrganizationList(context.Context, *GetMsmpOrganizationListRequest) (*GetMsmpOrganizationListResponse, error) {
|
|
650
674
|
return nil, status.Errorf(codes.Unimplemented, "method GetMsmpOrganizationList not implemented")
|
|
651
675
|
}
|
|
676
|
+
func (UnimplementedMultitenantServer) GetMsmpOrganizationAccount(context.Context, *GetMsmpOrganizationAccountRequest) (*GetMsmpOrganizationAccountResponse, error) {
|
|
677
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetMsmpOrganizationAccount not implemented")
|
|
678
|
+
}
|
|
679
|
+
func (UnimplementedMultitenantServer) GetSitesByMsmpOrganizationId(context.Context, *GetSitesByMsmpOrganizationIdRequest) (*GetSitesByMsmpOrganizationIdResponse, error) {
|
|
680
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetSitesByMsmpOrganizationId not implemented")
|
|
681
|
+
}
|
|
652
682
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
653
683
|
|
|
654
684
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1382,6 +1412,42 @@ func _Multitenant_GetMsmpOrganizationList_Handler(srv interface{}, ctx context.C
|
|
|
1382
1412
|
return interceptor(ctx, in, info, handler)
|
|
1383
1413
|
}
|
|
1384
1414
|
|
|
1415
|
+
func _Multitenant_GetMsmpOrganizationAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1416
|
+
in := new(GetMsmpOrganizationAccountRequest)
|
|
1417
|
+
if err := dec(in); err != nil {
|
|
1418
|
+
return nil, err
|
|
1419
|
+
}
|
|
1420
|
+
if interceptor == nil {
|
|
1421
|
+
return srv.(MultitenantServer).GetMsmpOrganizationAccount(ctx, in)
|
|
1422
|
+
}
|
|
1423
|
+
info := &grpc.UnaryServerInfo{
|
|
1424
|
+
Server: srv,
|
|
1425
|
+
FullMethod: Multitenant_GetMsmpOrganizationAccount_FullMethodName,
|
|
1426
|
+
}
|
|
1427
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1428
|
+
return srv.(MultitenantServer).GetMsmpOrganizationAccount(ctx, req.(*GetMsmpOrganizationAccountRequest))
|
|
1429
|
+
}
|
|
1430
|
+
return interceptor(ctx, in, info, handler)
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
func _Multitenant_GetSitesByMsmpOrganizationId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1434
|
+
in := new(GetSitesByMsmpOrganizationIdRequest)
|
|
1435
|
+
if err := dec(in); err != nil {
|
|
1436
|
+
return nil, err
|
|
1437
|
+
}
|
|
1438
|
+
if interceptor == nil {
|
|
1439
|
+
return srv.(MultitenantServer).GetSitesByMsmpOrganizationId(ctx, in)
|
|
1440
|
+
}
|
|
1441
|
+
info := &grpc.UnaryServerInfo{
|
|
1442
|
+
Server: srv,
|
|
1443
|
+
FullMethod: Multitenant_GetSitesByMsmpOrganizationId_FullMethodName,
|
|
1444
|
+
}
|
|
1445
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1446
|
+
return srv.(MultitenantServer).GetSitesByMsmpOrganizationId(ctx, req.(*GetSitesByMsmpOrganizationIdRequest))
|
|
1447
|
+
}
|
|
1448
|
+
return interceptor(ctx, in, info, handler)
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1385
1451
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1386
1452
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1387
1453
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -1549,6 +1615,14 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1549
1615
|
MethodName: "GetMsmpOrganizationList",
|
|
1550
1616
|
Handler: _Multitenant_GetMsmpOrganizationList_Handler,
|
|
1551
1617
|
},
|
|
1618
|
+
{
|
|
1619
|
+
MethodName: "GetMsmpOrganizationAccount",
|
|
1620
|
+
Handler: _Multitenant_GetMsmpOrganizationAccount_Handler,
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
MethodName: "GetSitesByMsmpOrganizationId",
|
|
1624
|
+
Handler: _Multitenant_GetSitesByMsmpOrganizationId_Handler,
|
|
1625
|
+
},
|
|
1552
1626
|
},
|
|
1553
1627
|
Streams: []grpc.StreamDesc{},
|
|
1554
1628
|
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.52",
|
|
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": "d133c46276aa65cd4dd085b90a662dfe0f847613"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -442,6 +442,18 @@ message GetSiteLimitsResponse {
|
|
|
442
442
|
map<string, lansweeper.shared.limits.v1.SiteLimits> site_limits = 1;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
+
message MsmpPagination {
|
|
446
|
+
int32 offset = 1;
|
|
447
|
+
int32 limit = 2;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
message MsmpPaginationInfo {
|
|
451
|
+
int32 total = 1;
|
|
452
|
+
int32 offset = 2;
|
|
453
|
+
int32 limit = 3;
|
|
454
|
+
bool has_next_page = 4;
|
|
455
|
+
}
|
|
456
|
+
|
|
445
457
|
message GetMsmpOrganizationListRequest {
|
|
446
458
|
string user_id = 1;
|
|
447
459
|
message MsmpPaginationRequest {
|
|
@@ -449,6 +461,7 @@ message GetMsmpOrganizationListRequest {
|
|
|
449
461
|
int32 limit = 2;
|
|
450
462
|
}
|
|
451
463
|
MsmpPaginationRequest msmp_pagination = 2;
|
|
464
|
+
string trace_id = 3;
|
|
452
465
|
}
|
|
453
466
|
|
|
454
467
|
message GetMsmpOrganizationListResponse {
|
|
@@ -466,6 +479,31 @@ message GetMsmpOrganizationListResponse {
|
|
|
466
479
|
MsmpPageInfo msmp_page_info = 2;
|
|
467
480
|
}
|
|
468
481
|
|
|
482
|
+
message GetMsmpOrganizationAccountRequest {
|
|
483
|
+
string user_id = 1;
|
|
484
|
+
string msmp_organization_id = 2;
|
|
485
|
+
string trace_id = 3;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
message GetMsmpOrganizationAccountResponse {
|
|
489
|
+
string id = 1;
|
|
490
|
+
string role = 2;
|
|
491
|
+
bool is_pending = 3;
|
|
492
|
+
bool has_accessed_multi_site_management_portal = 4;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
message GetSitesByMsmpOrganizationIdRequest {
|
|
496
|
+
string user_id = 1;
|
|
497
|
+
string msmp_organization_id = 2;
|
|
498
|
+
MsmpPagination msmp_pagination = 3;
|
|
499
|
+
string trace_id = 4;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
message GetSitesByMsmpOrganizationIdResponse {
|
|
503
|
+
repeated PreviewSite sites = 1;
|
|
504
|
+
MsmpPaginationInfo msmp_pagination_info = 2;
|
|
505
|
+
}
|
|
506
|
+
|
|
469
507
|
service Multitenant {
|
|
470
508
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
471
509
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
@@ -512,4 +550,6 @@ service Multitenant {
|
|
|
512
550
|
rpc UpdateSiteMetadata(UpdateSiteMetadataRequest) returns (UpdateSiteMetadataResponse) {}
|
|
513
551
|
rpc GetSiteLimits(GetSiteLimitsRequest) returns (GetSiteLimitsResponse) {}
|
|
514
552
|
rpc GetMsmpOrganizationList(GetMsmpOrganizationListRequest) returns (GetMsmpOrganizationListResponse) {}
|
|
553
|
+
rpc GetMsmpOrganizationAccount(GetMsmpOrganizationAccountRequest) returns (GetMsmpOrganizationAccountResponse) {}
|
|
554
|
+
rpc GetSitesByMsmpOrganizationId(GetSitesByMsmpOrganizationIdRequest) returns (GetSitesByMsmpOrganizationIdResponse) {}
|
|
515
555
|
}
|