@lansweeper/multitenant-api-grpc 0.4.26 → 0.4.28

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.
@@ -2,7 +2,7 @@
2
2
  // versions:
3
3
  // - protoc-gen-go-grpc v1.3.0
4
4
  // - protoc v3.15.6
5
- // source: packages/multitenant/grpc/proto/multitenant.proto
5
+ // source: multitenant.proto
6
6
 
7
7
  package generated_go
8
8
 
@@ -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,7 +1249,11 @@ 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
- Metadata: "packages/multitenant/grpc/proto/multitenant.proto",
1258
+ Metadata: "multitenant.proto",
1222
1259
  }
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.28",
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": "4b828a504a64bfb6b9b20444158452aaa276bb29"
19
19
  }
@@ -174,6 +174,8 @@ message CreateInstallRequest{
174
174
  bool create_sqs_queue = 8;
175
175
  string global_id = 9;
176
176
  InstallType type = 10;
177
+ string client_id = 11;
178
+
177
179
  }
178
180
 
179
181
  enum InstallType {
@@ -193,6 +195,7 @@ message CreateAndLinkInstallRequest{
193
195
  string global_id = 4;
194
196
  InstallType type = 5;
195
197
  string created_by_id = 6;
198
+ string client_id = 7;
196
199
  }
197
200
 
198
201
  message CreateAndLinkInstallResponse{
@@ -462,6 +465,10 @@ message CreateLinkingCodeResponse {
462
465
  string code = 1;
463
466
  }
464
467
 
468
+ message GetSiteIdsWithIntegrationData {
469
+ repeated string site_ids = 1;
470
+ }
471
+
465
472
  service Multitenant {
466
473
  rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
467
474
 
@@ -526,4 +533,6 @@ service Multitenant {
526
533
  rpc GetSiteSubscription(GetSiteSubscriptionRequest) returns (GetSiteSubscriptionResponse) {}
527
534
 
528
535
  rpc CreateLinkingCode(CreateLinkingCodeRequest) returns (CreateLinkingCodeResponse) {}
536
+
537
+ rpc GetSiteIdsWithIntegrationBySiteId(GetSiteIdsWithIntegrationData) returns (GetSiteIdsWithIntegrationData) {}
529
538
  }