@lansweeper/multitenant-api-grpc 0.4.57 → 0.4.59

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.
@@ -53,7 +53,6 @@ const (
53
53
  Multitenant_AllProfilesExist_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/AllProfilesExist"
54
54
  Multitenant_SendInviteLocalUsersMail_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/SendInviteLocalUsersMail"
55
55
  Multitenant_AllProfileExists_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/AllProfileExists"
56
- Multitenant_GetSiteSubscription_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteSubscription"
57
56
  Multitenant_CreateLinkingCode_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateLinkingCode"
58
57
  Multitenant_GetSiteIdsWithIntegrationBySiteId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId"
59
58
  Multitenant_CheckStandardizedSoftwareEnabled_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CheckStandardizedSoftwareEnabled"
@@ -105,7 +104,6 @@ type MultitenantClient interface {
105
104
  SendInviteLocalUsersMail(ctx context.Context, in *SendInviteLocalUsersMailRequest, opts ...grpc.CallOption) (*SendInviteLocalUsersMailResponse, error)
106
105
  // Deprecated: Do not use.
107
106
  AllProfileExists(ctx context.Context, in *AllProfileExistsRequest, opts ...grpc.CallOption) (*AllProfileExistsResponse, error)
108
- GetSiteSubscription(ctx context.Context, in *GetSiteSubscriptionRequest, opts ...grpc.CallOption) (*GetSiteSubscriptionResponse, error)
109
107
  CreateLinkingCode(ctx context.Context, in *CreateLinkingCodeRequest, opts ...grpc.CallOption) (*CreateLinkingCodeResponse, error)
110
108
  GetSiteIdsWithIntegrationBySiteId(ctx context.Context, in *GetSiteIdsWithIntegrationData, opts ...grpc.CallOption) (*GetSiteIdsWithIntegrationData, error)
111
109
  CheckStandardizedSoftwareEnabled(ctx context.Context, in *CheckStandardizedSoftwareEnabledRequest, opts ...grpc.CallOption) (*CheckStandardizedSoftwareEnabledResponse, error)
@@ -458,16 +456,6 @@ func (c *multitenantClient) AllProfileExists(ctx context.Context, in *AllProfile
458
456
  return out, nil
459
457
  }
460
458
 
461
- func (c *multitenantClient) GetSiteSubscription(ctx context.Context, in *GetSiteSubscriptionRequest, opts ...grpc.CallOption) (*GetSiteSubscriptionResponse, error) {
462
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
463
- out := new(GetSiteSubscriptionResponse)
464
- err := c.cc.Invoke(ctx, Multitenant_GetSiteSubscription_FullMethodName, in, out, cOpts...)
465
- if err != nil {
466
- return nil, err
467
- }
468
- return out, nil
469
- }
470
-
471
459
  func (c *multitenantClient) CreateLinkingCode(ctx context.Context, in *CreateLinkingCodeRequest, opts ...grpc.CallOption) (*CreateLinkingCodeResponse, error) {
472
460
  cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
473
461
  out := new(CreateLinkingCodeResponse)
@@ -616,7 +604,6 @@ type MultitenantServer interface {
616
604
  SendInviteLocalUsersMail(context.Context, *SendInviteLocalUsersMailRequest) (*SendInviteLocalUsersMailResponse, error)
617
605
  // Deprecated: Do not use.
618
606
  AllProfileExists(context.Context, *AllProfileExistsRequest) (*AllProfileExistsResponse, error)
619
- GetSiteSubscription(context.Context, *GetSiteSubscriptionRequest) (*GetSiteSubscriptionResponse, error)
620
607
  CreateLinkingCode(context.Context, *CreateLinkingCodeRequest) (*CreateLinkingCodeResponse, error)
621
608
  GetSiteIdsWithIntegrationBySiteId(context.Context, *GetSiteIdsWithIntegrationData) (*GetSiteIdsWithIntegrationData, error)
622
609
  CheckStandardizedSoftwareEnabled(context.Context, *CheckStandardizedSoftwareEnabledRequest) (*CheckStandardizedSoftwareEnabledResponse, error)
@@ -734,9 +721,6 @@ func (UnimplementedMultitenantServer) SendInviteLocalUsersMail(context.Context,
734
721
  func (UnimplementedMultitenantServer) AllProfileExists(context.Context, *AllProfileExistsRequest) (*AllProfileExistsResponse, error) {
735
722
  return nil, status.Errorf(codes.Unimplemented, "method AllProfileExists not implemented")
736
723
  }
737
- func (UnimplementedMultitenantServer) GetSiteSubscription(context.Context, *GetSiteSubscriptionRequest) (*GetSiteSubscriptionResponse, error) {
738
- return nil, status.Errorf(codes.Unimplemented, "method GetSiteSubscription not implemented")
739
- }
740
724
  func (UnimplementedMultitenantServer) CreateLinkingCode(context.Context, *CreateLinkingCodeRequest) (*CreateLinkingCodeResponse, error) {
741
725
  return nil, status.Errorf(codes.Unimplemented, "method CreateLinkingCode not implemented")
742
726
  }
@@ -1377,24 +1361,6 @@ func _Multitenant_AllProfileExists_Handler(srv interface{}, ctx context.Context,
1377
1361
  return interceptor(ctx, in, info, handler)
1378
1362
  }
1379
1363
 
1380
- func _Multitenant_GetSiteSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1381
- in := new(GetSiteSubscriptionRequest)
1382
- if err := dec(in); err != nil {
1383
- return nil, err
1384
- }
1385
- if interceptor == nil {
1386
- return srv.(MultitenantServer).GetSiteSubscription(ctx, in)
1387
- }
1388
- info := &grpc.UnaryServerInfo{
1389
- Server: srv,
1390
- FullMethod: Multitenant_GetSiteSubscription_FullMethodName,
1391
- }
1392
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1393
- return srv.(MultitenantServer).GetSiteSubscription(ctx, req.(*GetSiteSubscriptionRequest))
1394
- }
1395
- return interceptor(ctx, in, info, handler)
1396
- }
1397
-
1398
1364
  func _Multitenant_CreateLinkingCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1399
1365
  in := new(CreateLinkingCodeRequest)
1400
1366
  if err := dec(in); err != nil {
@@ -1732,10 +1698,6 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
1732
1698
  MethodName: "AllProfileExists",
1733
1699
  Handler: _Multitenant_AllProfileExists_Handler,
1734
1700
  },
1735
- {
1736
- MethodName: "GetSiteSubscription",
1737
- Handler: _Multitenant_GetSiteSubscription_Handler,
1738
- },
1739
1701
  {
1740
1702
  MethodName: "CreateLinkingCode",
1741
1703
  Handler: _Multitenant_CreateLinkingCode_Handler,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/multitenant-api-grpc",
3
- "version": "0.4.57",
3
+ "version": "0.4.59",
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": "d91a14ed3b2c7572d8363d0bc47cfbf478aceaf2"
21
+ "gitHead": "e57857a3685c228c898242a9f78505fb2e4ee15a"
22
22
  }
@@ -47,6 +47,7 @@ message PreviewSite {
47
47
  string logo_url = 4;
48
48
  SiteMode mode = 5;
49
49
  PreviewAccount created_by = 6;
50
+ string current_subscription_id = 7;
50
51
  }
51
52
  message PatchSiteModeRequest {
52
53
  string id = 1;
@@ -412,12 +413,6 @@ message SendInviteLocalUsersMailRequest{
412
413
  message SendInviteLocalUsersMailResponse{
413
414
  bool sent = 1;
414
415
  }
415
- message GetSiteSubscriptionRequest {
416
- string site_id = 1;
417
- }
418
- message GetSiteSubscriptionResponse {
419
- SubscriptionType type = 1;
420
- }
421
416
  message CreateLinkingCodeRequest {
422
417
  string site_id = 1;
423
418
  string account_id = 2;
@@ -562,7 +557,6 @@ service Multitenant {
562
557
  rpc AllProfileExists(AllProfileExistsRequest) returns (AllProfileExistsResponse) {
563
558
  option deprecated = true;
564
559
  }
565
- rpc GetSiteSubscription(GetSiteSubscriptionRequest) returns (GetSiteSubscriptionResponse) {}
566
560
  rpc CreateLinkingCode(CreateLinkingCodeRequest) returns (CreateLinkingCodeResponse) {}
567
561
  rpc GetSiteIdsWithIntegrationBySiteId(GetSiteIdsWithIntegrationData) returns (GetSiteIdsWithIntegrationData) {}
568
562
  rpc CheckStandardizedSoftwareEnabled(CheckStandardizedSoftwareEnabledRequest) returns (CheckStandardizedSoftwareEnabledResponse) {}