@lansweeper/multitenant-api-grpc 0.4.49 → 0.4.50
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/multitenant_grpc_pb.d.ts +17 -0
- package/gen-proto/multitenant_grpc_pb.js +33 -0
- package/gen-proto/multitenant_pb.d.ts +133 -0
- package/gen-proto/multitenant_pb.js +1042 -0
- package/generated-go/multitenant.pb.go +943 -529
- package/generated-go/multitenant_grpc.pb.go +37 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +25 -0
|
@@ -58,6 +58,7 @@ const (
|
|
|
58
58
|
Multitenant_CheckStandardizedSoftwareEnabled_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CheckStandardizedSoftwareEnabled"
|
|
59
59
|
Multitenant_UpdateSiteMetadata_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/UpdateSiteMetadata"
|
|
60
60
|
Multitenant_GetSiteLimits_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteLimits"
|
|
61
|
+
Multitenant_GetMsmpOrganizationList_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetMsmpOrganizationList"
|
|
61
62
|
)
|
|
62
63
|
|
|
63
64
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -104,6 +105,7 @@ type MultitenantClient interface {
|
|
|
104
105
|
CheckStandardizedSoftwareEnabled(ctx context.Context, in *CheckStandardizedSoftwareEnabledRequest, opts ...grpc.CallOption) (*CheckStandardizedSoftwareEnabledResponse, error)
|
|
105
106
|
UpdateSiteMetadata(ctx context.Context, in *UpdateSiteMetadataRequest, opts ...grpc.CallOption) (*UpdateSiteMetadataResponse, error)
|
|
106
107
|
GetSiteLimits(ctx context.Context, in *GetSiteLimitsRequest, opts ...grpc.CallOption) (*GetSiteLimitsResponse, error)
|
|
108
|
+
GetMsmpOrganizationList(ctx context.Context, in *GetMsmpOrganizationListRequest, opts ...grpc.CallOption) (*GetMsmpOrganizationListResponse, error)
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
type multitenantClient struct {
|
|
@@ -466,6 +468,15 @@ func (c *multitenantClient) GetSiteLimits(ctx context.Context, in *GetSiteLimits
|
|
|
466
468
|
return out, nil
|
|
467
469
|
}
|
|
468
470
|
|
|
471
|
+
func (c *multitenantClient) GetMsmpOrganizationList(ctx context.Context, in *GetMsmpOrganizationListRequest, opts ...grpc.CallOption) (*GetMsmpOrganizationListResponse, error) {
|
|
472
|
+
out := new(GetMsmpOrganizationListResponse)
|
|
473
|
+
err := c.cc.Invoke(ctx, Multitenant_GetMsmpOrganizationList_FullMethodName, in, out, opts...)
|
|
474
|
+
if err != nil {
|
|
475
|
+
return nil, err
|
|
476
|
+
}
|
|
477
|
+
return out, nil
|
|
478
|
+
}
|
|
479
|
+
|
|
469
480
|
// MultitenantServer is the server API for Multitenant service.
|
|
470
481
|
// All implementations must embed UnimplementedMultitenantServer
|
|
471
482
|
// for forward compatibility
|
|
@@ -510,6 +521,7 @@ type MultitenantServer interface {
|
|
|
510
521
|
CheckStandardizedSoftwareEnabled(context.Context, *CheckStandardizedSoftwareEnabledRequest) (*CheckStandardizedSoftwareEnabledResponse, error)
|
|
511
522
|
UpdateSiteMetadata(context.Context, *UpdateSiteMetadataRequest) (*UpdateSiteMetadataResponse, error)
|
|
512
523
|
GetSiteLimits(context.Context, *GetSiteLimitsRequest) (*GetSiteLimitsResponse, error)
|
|
524
|
+
GetMsmpOrganizationList(context.Context, *GetMsmpOrganizationListRequest) (*GetMsmpOrganizationListResponse, error)
|
|
513
525
|
mustEmbedUnimplementedMultitenantServer()
|
|
514
526
|
}
|
|
515
527
|
|
|
@@ -634,6 +646,9 @@ func (UnimplementedMultitenantServer) UpdateSiteMetadata(context.Context, *Updat
|
|
|
634
646
|
func (UnimplementedMultitenantServer) GetSiteLimits(context.Context, *GetSiteLimitsRequest) (*GetSiteLimitsResponse, error) {
|
|
635
647
|
return nil, status.Errorf(codes.Unimplemented, "method GetSiteLimits not implemented")
|
|
636
648
|
}
|
|
649
|
+
func (UnimplementedMultitenantServer) GetMsmpOrganizationList(context.Context, *GetMsmpOrganizationListRequest) (*GetMsmpOrganizationListResponse, error) {
|
|
650
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetMsmpOrganizationList not implemented")
|
|
651
|
+
}
|
|
637
652
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
638
653
|
|
|
639
654
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1349,6 +1364,24 @@ func _Multitenant_GetSiteLimits_Handler(srv interface{}, ctx context.Context, de
|
|
|
1349
1364
|
return interceptor(ctx, in, info, handler)
|
|
1350
1365
|
}
|
|
1351
1366
|
|
|
1367
|
+
func _Multitenant_GetMsmpOrganizationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1368
|
+
in := new(GetMsmpOrganizationListRequest)
|
|
1369
|
+
if err := dec(in); err != nil {
|
|
1370
|
+
return nil, err
|
|
1371
|
+
}
|
|
1372
|
+
if interceptor == nil {
|
|
1373
|
+
return srv.(MultitenantServer).GetMsmpOrganizationList(ctx, in)
|
|
1374
|
+
}
|
|
1375
|
+
info := &grpc.UnaryServerInfo{
|
|
1376
|
+
Server: srv,
|
|
1377
|
+
FullMethod: Multitenant_GetMsmpOrganizationList_FullMethodName,
|
|
1378
|
+
}
|
|
1379
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1380
|
+
return srv.(MultitenantServer).GetMsmpOrganizationList(ctx, req.(*GetMsmpOrganizationListRequest))
|
|
1381
|
+
}
|
|
1382
|
+
return interceptor(ctx, in, info, handler)
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1352
1385
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1353
1386
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1354
1387
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -1512,6 +1545,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1512
1545
|
MethodName: "GetSiteLimits",
|
|
1513
1546
|
Handler: _Multitenant_GetSiteLimits_Handler,
|
|
1514
1547
|
},
|
|
1548
|
+
{
|
|
1549
|
+
MethodName: "GetMsmpOrganizationList",
|
|
1550
|
+
Handler: _Multitenant_GetMsmpOrganizationList_Handler,
|
|
1551
|
+
},
|
|
1515
1552
|
},
|
|
1516
1553
|
Streams: []grpc.StreamDesc{},
|
|
1517
1554
|
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.50",
|
|
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": "155385140c246f15c2f34b5012dd7b4b24220851"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -442,6 +442,30 @@ message GetSiteLimitsResponse {
|
|
|
442
442
|
map<string, lansweeper.shared.limits.v1.SiteLimits> site_limits = 1;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
+
message GetMsmpOrganizationListRequest {
|
|
446
|
+
string user_id = 1;
|
|
447
|
+
message MsmpPaginationRequest {
|
|
448
|
+
int32 offset = 1;
|
|
449
|
+
int32 limit = 2;
|
|
450
|
+
}
|
|
451
|
+
MsmpPaginationRequest msmp_pagination = 2;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
message GetMsmpOrganizationListResponse {
|
|
455
|
+
message MsmpOrganization {
|
|
456
|
+
string id = 1;
|
|
457
|
+
string name = 2;
|
|
458
|
+
}
|
|
459
|
+
repeated MsmpOrganization organizations = 1;
|
|
460
|
+
message MsmpPageInfo {
|
|
461
|
+
int32 total = 1;
|
|
462
|
+
int32 offset = 2;
|
|
463
|
+
int32 limit = 3;
|
|
464
|
+
bool has_next_page = 4;
|
|
465
|
+
}
|
|
466
|
+
MsmpPageInfo msmp_page_info = 2;
|
|
467
|
+
}
|
|
468
|
+
|
|
445
469
|
service Multitenant {
|
|
446
470
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
447
471
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
@@ -487,4 +511,5 @@ service Multitenant {
|
|
|
487
511
|
|
|
488
512
|
rpc UpdateSiteMetadata(UpdateSiteMetadataRequest) returns (UpdateSiteMetadataResponse) {}
|
|
489
513
|
rpc GetSiteLimits(GetSiteLimitsRequest) returns (GetSiteLimitsResponse) {}
|
|
514
|
+
rpc GetMsmpOrganizationList(GetMsmpOrganizationListRequest) returns (GetMsmpOrganizationListResponse) {}
|
|
490
515
|
}
|