@lansweeper/multitenant-api-grpc 0.4.56 → 0.4.57
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 +40 -0
- package/gen-proto/multitenant_pb.js +304 -0
- package/generated-go/multitenant.pb.go +656 -514
- package/generated-go/multitenant_grpc.pb.go +38 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +9 -0
|
@@ -64,6 +64,7 @@ const (
|
|
|
64
64
|
Multitenant_GetSitesByMsmpOrganizationId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSitesByMsmpOrganizationId"
|
|
65
65
|
Multitenant_GetInstallsByExternalIds_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetInstallsByExternalIds"
|
|
66
66
|
Multitenant_EnableCustomFieldsFederation_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/EnableCustomFieldsFederation"
|
|
67
|
+
Multitenant_IsCustomFieldsFederationEnabled_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/IsCustomFieldsFederationEnabled"
|
|
67
68
|
)
|
|
68
69
|
|
|
69
70
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -115,6 +116,7 @@ type MultitenantClient interface {
|
|
|
115
116
|
GetSitesByMsmpOrganizationId(ctx context.Context, in *GetSitesByMsmpOrganizationIdRequest, opts ...grpc.CallOption) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
116
117
|
GetInstallsByExternalIds(ctx context.Context, in *GetInstallsByExternalIdsRequest, opts ...grpc.CallOption) (*GetInstallsByExternalIdsResponse, error)
|
|
117
118
|
EnableCustomFieldsFederation(ctx context.Context, in *EnableCustomFieldsFederationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
119
|
+
IsCustomFieldsFederationEnabled(ctx context.Context, in *IsCustomFieldsFederationEnabledRequest, opts ...grpc.CallOption) (*IsCustomFieldsFederationEnabledResponse, error)
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
type multitenantClient struct {
|
|
@@ -566,6 +568,16 @@ func (c *multitenantClient) EnableCustomFieldsFederation(ctx context.Context, in
|
|
|
566
568
|
return out, nil
|
|
567
569
|
}
|
|
568
570
|
|
|
571
|
+
func (c *multitenantClient) IsCustomFieldsFederationEnabled(ctx context.Context, in *IsCustomFieldsFederationEnabledRequest, opts ...grpc.CallOption) (*IsCustomFieldsFederationEnabledResponse, error) {
|
|
572
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
573
|
+
out := new(IsCustomFieldsFederationEnabledResponse)
|
|
574
|
+
err := c.cc.Invoke(ctx, Multitenant_IsCustomFieldsFederationEnabled_FullMethodName, in, out, cOpts...)
|
|
575
|
+
if err != nil {
|
|
576
|
+
return nil, err
|
|
577
|
+
}
|
|
578
|
+
return out, nil
|
|
579
|
+
}
|
|
580
|
+
|
|
569
581
|
// MultitenantServer is the server API for Multitenant service.
|
|
570
582
|
// All implementations must embed UnimplementedMultitenantServer
|
|
571
583
|
// for forward compatibility
|
|
@@ -615,6 +627,7 @@ type MultitenantServer interface {
|
|
|
615
627
|
GetSitesByMsmpOrganizationId(context.Context, *GetSitesByMsmpOrganizationIdRequest) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
616
628
|
GetInstallsByExternalIds(context.Context, *GetInstallsByExternalIdsRequest) (*GetInstallsByExternalIdsResponse, error)
|
|
617
629
|
EnableCustomFieldsFederation(context.Context, *EnableCustomFieldsFederationRequest) (*emptypb.Empty, error)
|
|
630
|
+
IsCustomFieldsFederationEnabled(context.Context, *IsCustomFieldsFederationEnabledRequest) (*IsCustomFieldsFederationEnabledResponse, error)
|
|
618
631
|
mustEmbedUnimplementedMultitenantServer()
|
|
619
632
|
}
|
|
620
633
|
|
|
@@ -754,6 +767,9 @@ func (UnimplementedMultitenantServer) GetInstallsByExternalIds(context.Context,
|
|
|
754
767
|
func (UnimplementedMultitenantServer) EnableCustomFieldsFederation(context.Context, *EnableCustomFieldsFederationRequest) (*emptypb.Empty, error) {
|
|
755
768
|
return nil, status.Errorf(codes.Unimplemented, "method EnableCustomFieldsFederation not implemented")
|
|
756
769
|
}
|
|
770
|
+
func (UnimplementedMultitenantServer) IsCustomFieldsFederationEnabled(context.Context, *IsCustomFieldsFederationEnabledRequest) (*IsCustomFieldsFederationEnabledResponse, error) {
|
|
771
|
+
return nil, status.Errorf(codes.Unimplemented, "method IsCustomFieldsFederationEnabled not implemented")
|
|
772
|
+
}
|
|
757
773
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
758
774
|
|
|
759
775
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1559,6 +1575,24 @@ func _Multitenant_EnableCustomFieldsFederation_Handler(srv interface{}, ctx cont
|
|
|
1559
1575
|
return interceptor(ctx, in, info, handler)
|
|
1560
1576
|
}
|
|
1561
1577
|
|
|
1578
|
+
func _Multitenant_IsCustomFieldsFederationEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1579
|
+
in := new(IsCustomFieldsFederationEnabledRequest)
|
|
1580
|
+
if err := dec(in); err != nil {
|
|
1581
|
+
return nil, err
|
|
1582
|
+
}
|
|
1583
|
+
if interceptor == nil {
|
|
1584
|
+
return srv.(MultitenantServer).IsCustomFieldsFederationEnabled(ctx, in)
|
|
1585
|
+
}
|
|
1586
|
+
info := &grpc.UnaryServerInfo{
|
|
1587
|
+
Server: srv,
|
|
1588
|
+
FullMethod: Multitenant_IsCustomFieldsFederationEnabled_FullMethodName,
|
|
1589
|
+
}
|
|
1590
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1591
|
+
return srv.(MultitenantServer).IsCustomFieldsFederationEnabled(ctx, req.(*IsCustomFieldsFederationEnabledRequest))
|
|
1592
|
+
}
|
|
1593
|
+
return interceptor(ctx, in, info, handler)
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1562
1596
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1563
1597
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1564
1598
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -1742,6 +1776,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1742
1776
|
MethodName: "EnableCustomFieldsFederation",
|
|
1743
1777
|
Handler: _Multitenant_EnableCustomFieldsFederation_Handler,
|
|
1744
1778
|
},
|
|
1779
|
+
{
|
|
1780
|
+
MethodName: "IsCustomFieldsFederationEnabled",
|
|
1781
|
+
Handler: _Multitenant_IsCustomFieldsFederationEnabled_Handler,
|
|
1782
|
+
},
|
|
1745
1783
|
},
|
|
1746
1784
|
Streams: []grpc.StreamDesc{},
|
|
1747
1785
|
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.57",
|
|
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": "d91a14ed3b2c7572d8363d0bc47cfbf478aceaf2"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -517,6 +517,14 @@ message EnableCustomFieldsFederationRequest {
|
|
|
517
517
|
string site_id = 1;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
+
message IsCustomFieldsFederationEnabledRequest {
|
|
521
|
+
string site_id = 1;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
message IsCustomFieldsFederationEnabledResponse {
|
|
525
|
+
bool is_enabled = 1;
|
|
526
|
+
}
|
|
527
|
+
|
|
520
528
|
service Multitenant {
|
|
521
529
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
522
530
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
@@ -565,4 +573,5 @@ service Multitenant {
|
|
|
565
573
|
rpc GetSitesByMsmpOrganizationId(GetSitesByMsmpOrganizationIdRequest) returns (GetSitesByMsmpOrganizationIdResponse) {}
|
|
566
574
|
rpc GetInstallsByExternalIds(GetInstallsByExternalIdsRequest) returns (GetInstallsByExternalIdsResponse) {}
|
|
567
575
|
rpc EnableCustomFieldsFederation(EnableCustomFieldsFederationRequest) returns (google.protobuf.Empty) {}
|
|
576
|
+
rpc IsCustomFieldsFederationEnabled(IsCustomFieldsFederationEnabledRequest) returns (IsCustomFieldsFederationEnabledResponse) {}
|
|
568
577
|
}
|