@lansweeper/multitenant-api-grpc 0.4.71 → 0.4.73
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/.ignorecompat +0 -0
- 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 +112 -0
- package/gen-proto/multitenant_pb.js +905 -0
- package/generated-go/multitenant.pb.go +1245 -893
- package/generated-go/multitenant_grpc.pb.go +38 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +24 -0
|
@@ -68,6 +68,7 @@ const (
|
|
|
68
68
|
Multitenant_GetSitePreview_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSitePreview"
|
|
69
69
|
Multitenant_UpdateSiteSkipDataExport_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/UpdateSiteSkipDataExport"
|
|
70
70
|
Multitenant_GetSiteHierarchyIds_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteHierarchyIds"
|
|
71
|
+
Multitenant_GetSitesIdsWithFederation_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSitesIdsWithFederation"
|
|
71
72
|
Multitenant_CreateOwnerPersonalAccessToken_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateOwnerPersonalAccessToken"
|
|
72
73
|
Multitenant_GetInstallationSettings_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetInstallationSettings"
|
|
73
74
|
)
|
|
@@ -125,6 +126,7 @@ type MultitenantClient interface {
|
|
|
125
126
|
GetSitePreview(ctx context.Context, in *GetSitePreviewRequest, opts ...grpc.CallOption) (*GetSitePreviewResponse, error)
|
|
126
127
|
UpdateSiteSkipDataExport(ctx context.Context, in *UpdateSiteSkipDataExportRequest, opts ...grpc.CallOption) (*UpdateSiteSkipDataExportResponse, error)
|
|
127
128
|
GetSiteHierarchyIds(ctx context.Context, in *GetSiteHierarchyIdsRequest, opts ...grpc.CallOption) (*GetSiteHierarchyIdsResponse, error)
|
|
129
|
+
GetSitesIdsWithFederation(ctx context.Context, in *GetSitesIdsWithFederationRequest, opts ...grpc.CallOption) (*GetSitesIdsWithFederationResponse, error)
|
|
128
130
|
CreateOwnerPersonalAccessToken(ctx context.Context, in *CreateOwnerPersonalAccessTokenRequest, opts ...grpc.CallOption) (*CreateOwnerPersonalAccessTokenResponse, error)
|
|
129
131
|
GetInstallationSettings(ctx context.Context, in *GetInstallationSettingsRequest, opts ...grpc.CallOption) (*GetInstallationSettingsResponse, error)
|
|
130
132
|
}
|
|
@@ -618,6 +620,16 @@ func (c *multitenantClient) GetSiteHierarchyIds(ctx context.Context, in *GetSite
|
|
|
618
620
|
return out, nil
|
|
619
621
|
}
|
|
620
622
|
|
|
623
|
+
func (c *multitenantClient) GetSitesIdsWithFederation(ctx context.Context, in *GetSitesIdsWithFederationRequest, opts ...grpc.CallOption) (*GetSitesIdsWithFederationResponse, error) {
|
|
624
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
625
|
+
out := new(GetSitesIdsWithFederationResponse)
|
|
626
|
+
err := c.cc.Invoke(ctx, Multitenant_GetSitesIdsWithFederation_FullMethodName, in, out, cOpts...)
|
|
627
|
+
if err != nil {
|
|
628
|
+
return nil, err
|
|
629
|
+
}
|
|
630
|
+
return out, nil
|
|
631
|
+
}
|
|
632
|
+
|
|
621
633
|
func (c *multitenantClient) CreateOwnerPersonalAccessToken(ctx context.Context, in *CreateOwnerPersonalAccessTokenRequest, opts ...grpc.CallOption) (*CreateOwnerPersonalAccessTokenResponse, error) {
|
|
622
634
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
623
635
|
out := new(CreateOwnerPersonalAccessTokenResponse)
|
|
@@ -691,6 +703,7 @@ type MultitenantServer interface {
|
|
|
691
703
|
GetSitePreview(context.Context, *GetSitePreviewRequest) (*GetSitePreviewResponse, error)
|
|
692
704
|
UpdateSiteSkipDataExport(context.Context, *UpdateSiteSkipDataExportRequest) (*UpdateSiteSkipDataExportResponse, error)
|
|
693
705
|
GetSiteHierarchyIds(context.Context, *GetSiteHierarchyIdsRequest) (*GetSiteHierarchyIdsResponse, error)
|
|
706
|
+
GetSitesIdsWithFederation(context.Context, *GetSitesIdsWithFederationRequest) (*GetSitesIdsWithFederationResponse, error)
|
|
694
707
|
CreateOwnerPersonalAccessToken(context.Context, *CreateOwnerPersonalAccessTokenRequest) (*CreateOwnerPersonalAccessTokenResponse, error)
|
|
695
708
|
GetInstallationSettings(context.Context, *GetInstallationSettingsRequest) (*GetInstallationSettingsResponse, error)
|
|
696
709
|
mustEmbedUnimplementedMultitenantServer()
|
|
@@ -844,6 +857,9 @@ func (UnimplementedMultitenantServer) UpdateSiteSkipDataExport(context.Context,
|
|
|
844
857
|
func (UnimplementedMultitenantServer) GetSiteHierarchyIds(context.Context, *GetSiteHierarchyIdsRequest) (*GetSiteHierarchyIdsResponse, error) {
|
|
845
858
|
return nil, status.Errorf(codes.Unimplemented, "method GetSiteHierarchyIds not implemented")
|
|
846
859
|
}
|
|
860
|
+
func (UnimplementedMultitenantServer) GetSitesIdsWithFederation(context.Context, *GetSitesIdsWithFederationRequest) (*GetSitesIdsWithFederationResponse, error) {
|
|
861
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetSitesIdsWithFederation not implemented")
|
|
862
|
+
}
|
|
847
863
|
func (UnimplementedMultitenantServer) CreateOwnerPersonalAccessToken(context.Context, *CreateOwnerPersonalAccessTokenRequest) (*CreateOwnerPersonalAccessTokenResponse, error) {
|
|
848
864
|
return nil, status.Errorf(codes.Unimplemented, "method CreateOwnerPersonalAccessToken not implemented")
|
|
849
865
|
}
|
|
@@ -1727,6 +1743,24 @@ func _Multitenant_GetSiteHierarchyIds_Handler(srv interface{}, ctx context.Conte
|
|
|
1727
1743
|
return interceptor(ctx, in, info, handler)
|
|
1728
1744
|
}
|
|
1729
1745
|
|
|
1746
|
+
func _Multitenant_GetSitesIdsWithFederation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1747
|
+
in := new(GetSitesIdsWithFederationRequest)
|
|
1748
|
+
if err := dec(in); err != nil {
|
|
1749
|
+
return nil, err
|
|
1750
|
+
}
|
|
1751
|
+
if interceptor == nil {
|
|
1752
|
+
return srv.(MultitenantServer).GetSitesIdsWithFederation(ctx, in)
|
|
1753
|
+
}
|
|
1754
|
+
info := &grpc.UnaryServerInfo{
|
|
1755
|
+
Server: srv,
|
|
1756
|
+
FullMethod: Multitenant_GetSitesIdsWithFederation_FullMethodName,
|
|
1757
|
+
}
|
|
1758
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1759
|
+
return srv.(MultitenantServer).GetSitesIdsWithFederation(ctx, req.(*GetSitesIdsWithFederationRequest))
|
|
1760
|
+
}
|
|
1761
|
+
return interceptor(ctx, in, info, handler)
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1730
1764
|
func _Multitenant_CreateOwnerPersonalAccessToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1731
1765
|
in := new(CreateOwnerPersonalAccessTokenRequest)
|
|
1732
1766
|
if err := dec(in); err != nil {
|
|
@@ -1962,6 +1996,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1962
1996
|
MethodName: "GetSiteHierarchyIds",
|
|
1963
1997
|
Handler: _Multitenant_GetSiteHierarchyIds_Handler,
|
|
1964
1998
|
},
|
|
1999
|
+
{
|
|
2000
|
+
MethodName: "GetSitesIdsWithFederation",
|
|
2001
|
+
Handler: _Multitenant_GetSitesIdsWithFederation_Handler,
|
|
2002
|
+
},
|
|
1965
2003
|
{
|
|
1966
2004
|
MethodName: "CreateOwnerPersonalAccessToken",
|
|
1967
2005
|
Handler: _Multitenant_CreateOwnerPersonalAccessToken_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.73",
|
|
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": "acfa3586db001a6d6ea8c4a195aad06f9f5affc2"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -487,6 +487,29 @@ message GetSiteHierarchyIdsResponse {
|
|
|
487
487
|
SiteHierarchyIdsPageInfo page_info = 3;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
+
message GetSitesIdsWithFederationRequest {
|
|
491
|
+
optional string offset_id = 1;
|
|
492
|
+
optional int32 limit = 2;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
message SitesIdsWithFederationItem{
|
|
496
|
+
string site_id = 1;
|
|
497
|
+
bool enabledMetadataFieldsFederation = 2;
|
|
498
|
+
bool enabledCustomFieldsFederation = 3;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
message SitesIdsWithFederationPageInfo{
|
|
502
|
+
string offset_id = 1;
|
|
503
|
+
int32 limit = 2;
|
|
504
|
+
bool has_next_page = 3;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
message GetSitesIdsWithFederationResponse {
|
|
508
|
+
int32 count = 1;
|
|
509
|
+
repeated SitesIdsWithFederationItem items = 2;
|
|
510
|
+
SitesIdsWithFederationPageInfo page_info = 3;
|
|
511
|
+
}
|
|
512
|
+
|
|
490
513
|
message MsmpPagination {
|
|
491
514
|
int32 offset = 1;
|
|
492
515
|
int32 limit = 2;
|
|
@@ -650,6 +673,7 @@ service Multitenant {
|
|
|
650
673
|
rpc GetSitePreview(GetSitePreviewRequest) returns (GetSitePreviewResponse) {}
|
|
651
674
|
rpc UpdateSiteSkipDataExport(UpdateSiteSkipDataExportRequest) returns (UpdateSiteSkipDataExportResponse) {}
|
|
652
675
|
rpc GetSiteHierarchyIds(GetSiteHierarchyIdsRequest) returns (GetSiteHierarchyIdsResponse) {}
|
|
676
|
+
rpc GetSitesIdsWithFederation(GetSitesIdsWithFederationRequest) returns (GetSitesIdsWithFederationResponse) {}
|
|
653
677
|
rpc CreateOwnerPersonalAccessToken(CreateOwnerPersonalAccessTokenRequest) returns (CreateOwnerPersonalAccessTokenResponse) {}
|
|
654
678
|
rpc GetInstallationSettings(GetInstallationSettingsRequest) returns (GetInstallationSettingsResponse) {}
|
|
655
679
|
}
|