@lansweeper/multitenant-api-grpc 0.4.73 → 0.4.74

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.
@@ -68,7 +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
+ Multitenant_GetSites_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSites"
72
72
  Multitenant_CreateOwnerPersonalAccessToken_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateOwnerPersonalAccessToken"
73
73
  Multitenant_GetInstallationSettings_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetInstallationSettings"
74
74
  )
@@ -126,7 +126,7 @@ type MultitenantClient interface {
126
126
  GetSitePreview(ctx context.Context, in *GetSitePreviewRequest, opts ...grpc.CallOption) (*GetSitePreviewResponse, error)
127
127
  UpdateSiteSkipDataExport(ctx context.Context, in *UpdateSiteSkipDataExportRequest, opts ...grpc.CallOption) (*UpdateSiteSkipDataExportResponse, error)
128
128
  GetSiteHierarchyIds(ctx context.Context, in *GetSiteHierarchyIdsRequest, opts ...grpc.CallOption) (*GetSiteHierarchyIdsResponse, error)
129
- GetSitesIdsWithFederation(ctx context.Context, in *GetSitesIdsWithFederationRequest, opts ...grpc.CallOption) (*GetSitesIdsWithFederationResponse, error)
129
+ GetSites(ctx context.Context, in *GetSitesRequest, opts ...grpc.CallOption) (*GetSitesResponse, error)
130
130
  CreateOwnerPersonalAccessToken(ctx context.Context, in *CreateOwnerPersonalAccessTokenRequest, opts ...grpc.CallOption) (*CreateOwnerPersonalAccessTokenResponse, error)
131
131
  GetInstallationSettings(ctx context.Context, in *GetInstallationSettingsRequest, opts ...grpc.CallOption) (*GetInstallationSettingsResponse, error)
132
132
  }
@@ -620,10 +620,10 @@ func (c *multitenantClient) GetSiteHierarchyIds(ctx context.Context, in *GetSite
620
620
  return out, nil
621
621
  }
622
622
 
623
- func (c *multitenantClient) GetSitesIdsWithFederation(ctx context.Context, in *GetSitesIdsWithFederationRequest, opts ...grpc.CallOption) (*GetSitesIdsWithFederationResponse, error) {
623
+ func (c *multitenantClient) GetSites(ctx context.Context, in *GetSitesRequest, opts ...grpc.CallOption) (*GetSitesResponse, error) {
624
624
  cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
625
- out := new(GetSitesIdsWithFederationResponse)
626
- err := c.cc.Invoke(ctx, Multitenant_GetSitesIdsWithFederation_FullMethodName, in, out, cOpts...)
625
+ out := new(GetSitesResponse)
626
+ err := c.cc.Invoke(ctx, Multitenant_GetSites_FullMethodName, in, out, cOpts...)
627
627
  if err != nil {
628
628
  return nil, err
629
629
  }
@@ -703,7 +703,7 @@ type MultitenantServer interface {
703
703
  GetSitePreview(context.Context, *GetSitePreviewRequest) (*GetSitePreviewResponse, error)
704
704
  UpdateSiteSkipDataExport(context.Context, *UpdateSiteSkipDataExportRequest) (*UpdateSiteSkipDataExportResponse, error)
705
705
  GetSiteHierarchyIds(context.Context, *GetSiteHierarchyIdsRequest) (*GetSiteHierarchyIdsResponse, error)
706
- GetSitesIdsWithFederation(context.Context, *GetSitesIdsWithFederationRequest) (*GetSitesIdsWithFederationResponse, error)
706
+ GetSites(context.Context, *GetSitesRequest) (*GetSitesResponse, error)
707
707
  CreateOwnerPersonalAccessToken(context.Context, *CreateOwnerPersonalAccessTokenRequest) (*CreateOwnerPersonalAccessTokenResponse, error)
708
708
  GetInstallationSettings(context.Context, *GetInstallationSettingsRequest) (*GetInstallationSettingsResponse, error)
709
709
  mustEmbedUnimplementedMultitenantServer()
@@ -857,8 +857,8 @@ func (UnimplementedMultitenantServer) UpdateSiteSkipDataExport(context.Context,
857
857
  func (UnimplementedMultitenantServer) GetSiteHierarchyIds(context.Context, *GetSiteHierarchyIdsRequest) (*GetSiteHierarchyIdsResponse, error) {
858
858
  return nil, status.Errorf(codes.Unimplemented, "method GetSiteHierarchyIds not implemented")
859
859
  }
860
- func (UnimplementedMultitenantServer) GetSitesIdsWithFederation(context.Context, *GetSitesIdsWithFederationRequest) (*GetSitesIdsWithFederationResponse, error) {
861
- return nil, status.Errorf(codes.Unimplemented, "method GetSitesIdsWithFederation not implemented")
860
+ func (UnimplementedMultitenantServer) GetSites(context.Context, *GetSitesRequest) (*GetSitesResponse, error) {
861
+ return nil, status.Errorf(codes.Unimplemented, "method GetSites not implemented")
862
862
  }
863
863
  func (UnimplementedMultitenantServer) CreateOwnerPersonalAccessToken(context.Context, *CreateOwnerPersonalAccessTokenRequest) (*CreateOwnerPersonalAccessTokenResponse, error) {
864
864
  return nil, status.Errorf(codes.Unimplemented, "method CreateOwnerPersonalAccessToken not implemented")
@@ -1743,20 +1743,20 @@ func _Multitenant_GetSiteHierarchyIds_Handler(srv interface{}, ctx context.Conte
1743
1743
  return interceptor(ctx, in, info, handler)
1744
1744
  }
1745
1745
 
1746
- func _Multitenant_GetSitesIdsWithFederation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1747
- in := new(GetSitesIdsWithFederationRequest)
1746
+ func _Multitenant_GetSites_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1747
+ in := new(GetSitesRequest)
1748
1748
  if err := dec(in); err != nil {
1749
1749
  return nil, err
1750
1750
  }
1751
1751
  if interceptor == nil {
1752
- return srv.(MultitenantServer).GetSitesIdsWithFederation(ctx, in)
1752
+ return srv.(MultitenantServer).GetSites(ctx, in)
1753
1753
  }
1754
1754
  info := &grpc.UnaryServerInfo{
1755
1755
  Server: srv,
1756
- FullMethod: Multitenant_GetSitesIdsWithFederation_FullMethodName,
1756
+ FullMethod: Multitenant_GetSites_FullMethodName,
1757
1757
  }
1758
1758
  handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1759
- return srv.(MultitenantServer).GetSitesIdsWithFederation(ctx, req.(*GetSitesIdsWithFederationRequest))
1759
+ return srv.(MultitenantServer).GetSites(ctx, req.(*GetSitesRequest))
1760
1760
  }
1761
1761
  return interceptor(ctx, in, info, handler)
1762
1762
  }
@@ -1997,8 +1997,8 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
1997
1997
  Handler: _Multitenant_GetSiteHierarchyIds_Handler,
1998
1998
  },
1999
1999
  {
2000
- MethodName: "GetSitesIdsWithFederation",
2001
- Handler: _Multitenant_GetSitesIdsWithFederation_Handler,
2000
+ MethodName: "GetSites",
2001
+ Handler: _Multitenant_GetSites_Handler,
2002
2002
  },
2003
2003
  {
2004
2004
  MethodName: "CreateOwnerPersonalAccessToken",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/multitenant-api-grpc",
3
- "version": "0.4.73",
3
+ "version": "0.4.74",
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": "acfa3586db001a6d6ea8c4a195aad06f9f5affc2"
21
+ "gitHead": "39c6e4193eed658eaeb67ffa92fad35734e4d225"
22
22
  }
@@ -487,27 +487,38 @@ message GetSiteHierarchyIdsResponse {
487
487
  SiteHierarchyIdsPageInfo page_info = 3;
488
488
  }
489
489
 
490
- message GetSitesIdsWithFederationRequest {
491
- optional string offset_id = 1;
490
+ message GetSitesOptions {
491
+ optional int32 offset = 1;
492
492
  optional int32 limit = 2;
493
+ optional string order_by = 3;
494
+ optional string order_direction = 4;
493
495
  }
494
496
 
495
- message SitesIdsWithFederationItem{
496
- string site_id = 1;
497
- bool enabledMetadataFieldsFederation = 2;
498
- bool enabledCustomFieldsFederation = 3;
497
+ message GetSitesRequest {
498
+ optional string search = 1;
499
+ optional GetSitesOptions options = 2;
499
500
  }
500
501
 
501
- message SitesIdsWithFederationPageInfo{
502
- string offset_id = 1;
502
+ message GetSitesItemsMetadata {
503
+ bool enabled_metadata_fields_federation = 1;
504
+ bool enabled_custom_fields_federation = 2;
505
+ }
506
+
507
+ message GetSitesItems {
508
+ string id = 1;
509
+ optional GetSitesItemsMetadata metadata = 2;
510
+ }
511
+
512
+ message GetSitesPageInfo{
513
+ int32 offset = 1;
503
514
  int32 limit = 2;
504
515
  bool has_next_page = 3;
505
516
  }
506
517
 
507
- message GetSitesIdsWithFederationResponse {
518
+ message GetSitesResponse {
508
519
  int32 count = 1;
509
- repeated SitesIdsWithFederationItem items = 2;
510
- SitesIdsWithFederationPageInfo page_info = 3;
520
+ repeated GetSitesItems items = 2;
521
+ GetSitesPageInfo page_info = 3;
511
522
  }
512
523
 
513
524
  message MsmpPagination {
@@ -673,7 +684,7 @@ service Multitenant {
673
684
  rpc GetSitePreview(GetSitePreviewRequest) returns (GetSitePreviewResponse) {}
674
685
  rpc UpdateSiteSkipDataExport(UpdateSiteSkipDataExportRequest) returns (UpdateSiteSkipDataExportResponse) {}
675
686
  rpc GetSiteHierarchyIds(GetSiteHierarchyIdsRequest) returns (GetSiteHierarchyIdsResponse) {}
676
- rpc GetSitesIdsWithFederation(GetSitesIdsWithFederationRequest) returns (GetSitesIdsWithFederationResponse) {}
687
+ rpc GetSites(GetSitesRequest) returns (GetSitesResponse) {}
677
688
  rpc CreateOwnerPersonalAccessToken(CreateOwnerPersonalAccessTokenRequest) returns (CreateOwnerPersonalAccessTokenResponse) {}
678
689
  rpc GetInstallationSettings(GetInstallationSettingsRequest) returns (GetInstallationSettingsResponse) {}
679
690
  }