@lansweeper/multitenant-api-grpc 0.4.26 → 0.4.27

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.
@@ -50,6 +50,7 @@ const (
50
50
  Multitenant_AllProfileExists_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/AllProfileExists"
51
51
  Multitenant_GetSiteSubscription_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteSubscription"
52
52
  Multitenant_CreateLinkingCode_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateLinkingCode"
53
+ Multitenant_GetSiteIdsWithIntegrationBySiteId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId"
53
54
  )
54
55
 
55
56
  // MultitenantClient is the client API for Multitenant service.
@@ -88,6 +89,7 @@ type MultitenantClient interface {
88
89
  AllProfileExists(ctx context.Context, in *AllProfileExistsRequest, opts ...grpc.CallOption) (*AllProfileExistsResponse, error)
89
90
  GetSiteSubscription(ctx context.Context, in *GetSiteSubscriptionRequest, opts ...grpc.CallOption) (*GetSiteSubscriptionResponse, error)
90
91
  CreateLinkingCode(ctx context.Context, in *CreateLinkingCodeRequest, opts ...grpc.CallOption) (*CreateLinkingCodeResponse, error)
92
+ GetSiteIdsWithIntegrationBySiteId(ctx context.Context, in *GetSiteIdsWithIntegrationData, opts ...grpc.CallOption) (*GetSiteIdsWithIntegrationData, error)
91
93
  }
92
94
 
93
95
  type multitenantClient struct {
@@ -378,6 +380,15 @@ func (c *multitenantClient) CreateLinkingCode(ctx context.Context, in *CreateLin
378
380
  return out, nil
379
381
  }
380
382
 
383
+ func (c *multitenantClient) GetSiteIdsWithIntegrationBySiteId(ctx context.Context, in *GetSiteIdsWithIntegrationData, opts ...grpc.CallOption) (*GetSiteIdsWithIntegrationData, error) {
384
+ out := new(GetSiteIdsWithIntegrationData)
385
+ err := c.cc.Invoke(ctx, Multitenant_GetSiteIdsWithIntegrationBySiteId_FullMethodName, in, out, opts...)
386
+ if err != nil {
387
+ return nil, err
388
+ }
389
+ return out, nil
390
+ }
391
+
381
392
  // MultitenantServer is the server API for Multitenant service.
382
393
  // All implementations must embed UnimplementedMultitenantServer
383
394
  // for forward compatibility
@@ -414,6 +425,7 @@ type MultitenantServer interface {
414
425
  AllProfileExists(context.Context, *AllProfileExistsRequest) (*AllProfileExistsResponse, error)
415
426
  GetSiteSubscription(context.Context, *GetSiteSubscriptionRequest) (*GetSiteSubscriptionResponse, error)
416
427
  CreateLinkingCode(context.Context, *CreateLinkingCodeRequest) (*CreateLinkingCodeResponse, error)
428
+ GetSiteIdsWithIntegrationBySiteId(context.Context, *GetSiteIdsWithIntegrationData) (*GetSiteIdsWithIntegrationData, error)
417
429
  mustEmbedUnimplementedMultitenantServer()
418
430
  }
419
431
 
@@ -514,6 +526,9 @@ func (UnimplementedMultitenantServer) GetSiteSubscription(context.Context, *GetS
514
526
  func (UnimplementedMultitenantServer) CreateLinkingCode(context.Context, *CreateLinkingCodeRequest) (*CreateLinkingCodeResponse, error) {
515
527
  return nil, status.Errorf(codes.Unimplemented, "method CreateLinkingCode not implemented")
516
528
  }
529
+ func (UnimplementedMultitenantServer) GetSiteIdsWithIntegrationBySiteId(context.Context, *GetSiteIdsWithIntegrationData) (*GetSiteIdsWithIntegrationData, error) {
530
+ return nil, status.Errorf(codes.Unimplemented, "method GetSiteIdsWithIntegrationBySiteId not implemented")
531
+ }
517
532
  func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
518
533
 
519
534
  // UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
@@ -1085,6 +1100,24 @@ func _Multitenant_CreateLinkingCode_Handler(srv interface{}, ctx context.Context
1085
1100
  return interceptor(ctx, in, info, handler)
1086
1101
  }
1087
1102
 
1103
+ func _Multitenant_GetSiteIdsWithIntegrationBySiteId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1104
+ in := new(GetSiteIdsWithIntegrationData)
1105
+ if err := dec(in); err != nil {
1106
+ return nil, err
1107
+ }
1108
+ if interceptor == nil {
1109
+ return srv.(MultitenantServer).GetSiteIdsWithIntegrationBySiteId(ctx, in)
1110
+ }
1111
+ info := &grpc.UnaryServerInfo{
1112
+ Server: srv,
1113
+ FullMethod: Multitenant_GetSiteIdsWithIntegrationBySiteId_FullMethodName,
1114
+ }
1115
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1116
+ return srv.(MultitenantServer).GetSiteIdsWithIntegrationBySiteId(ctx, req.(*GetSiteIdsWithIntegrationData))
1117
+ }
1118
+ return interceptor(ctx, in, info, handler)
1119
+ }
1120
+
1088
1121
  // Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
1089
1122
  // It's only intended for direct use with grpc.RegisterService,
1090
1123
  // and not to be introspected or modified (even as a copy)
@@ -1216,6 +1249,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
1216
1249
  MethodName: "CreateLinkingCode",
1217
1250
  Handler: _Multitenant_CreateLinkingCode_Handler,
1218
1251
  },
1252
+ {
1253
+ MethodName: "GetSiteIdsWithIntegrationBySiteId",
1254
+ Handler: _Multitenant_GetSiteIdsWithIntegrationBySiteId_Handler,
1255
+ },
1219
1256
  },
1220
1257
  Streams: []grpc.StreamDesc{},
1221
1258
  Metadata: "packages/multitenant/grpc/proto/multitenant.proto",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/multitenant-api-grpc",
3
- "version": "0.4.26",
3
+ "version": "0.4.27",
4
4
  "description": "Multitenant grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -15,5 +15,5 @@
15
15
  "peerDependencies": {
16
16
  "@grpc/grpc-js": "^1.6.2"
17
17
  },
18
- "gitHead": "85f94d6bc6cb1b7a8e0c01041d2870db2c7b9512"
18
+ "gitHead": "e183058922daf5c10bd24c1fd0f1d34bcaae2527"
19
19
  }
@@ -462,6 +462,10 @@ message CreateLinkingCodeResponse {
462
462
  string code = 1;
463
463
  }
464
464
 
465
+ message GetSiteIdsWithIntegrationData {
466
+ repeated string site_ids = 1;
467
+ }
468
+
465
469
  service Multitenant {
466
470
  rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
467
471
 
@@ -526,4 +530,6 @@ service Multitenant {
526
530
  rpc GetSiteSubscription(GetSiteSubscriptionRequest) returns (GetSiteSubscriptionResponse) {}
527
531
 
528
532
  rpc CreateLinkingCode(CreateLinkingCodeRequest) returns (CreateLinkingCodeResponse) {}
533
+
534
+ rpc GetSiteIdsWithIntegrationBySiteId(GetSiteIdsWithIntegrationData) returns (GetSiteIdsWithIntegrationData) {}
529
535
  }