@lansweeper/multitenant-api-grpc 0.4.56 → 0.4.58
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/CHANGELOG.md +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/multitenant_grpc_pb.d.ts +17 -17
- package/gen-proto/multitenant_grpc_pb.js +33 -33
- package/gen-proto/multitenant_pb.d.ts +43 -40
- package/gen-proto/multitenant_pb.js +447 -417
- package/generated-go/multitenant.pb.go +1499 -1487
- package/generated-go/multitenant_grpc.pb.go +38 -38
- package/package.json +2 -2
- package/proto/multitenant.proto +10 -7
|
@@ -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"
|
|
@@ -64,6 +63,7 @@ const (
|
|
|
64
63
|
Multitenant_GetSitesByMsmpOrganizationId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSitesByMsmpOrganizationId"
|
|
65
64
|
Multitenant_GetInstallsByExternalIds_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetInstallsByExternalIds"
|
|
66
65
|
Multitenant_EnableCustomFieldsFederation_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/EnableCustomFieldsFederation"
|
|
66
|
+
Multitenant_IsCustomFieldsFederationEnabled_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/IsCustomFieldsFederationEnabled"
|
|
67
67
|
)
|
|
68
68
|
|
|
69
69
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -104,7 +104,6 @@ type MultitenantClient interface {
|
|
|
104
104
|
SendInviteLocalUsersMail(ctx context.Context, in *SendInviteLocalUsersMailRequest, opts ...grpc.CallOption) (*SendInviteLocalUsersMailResponse, error)
|
|
105
105
|
// Deprecated: Do not use.
|
|
106
106
|
AllProfileExists(ctx context.Context, in *AllProfileExistsRequest, opts ...grpc.CallOption) (*AllProfileExistsResponse, error)
|
|
107
|
-
GetSiteSubscription(ctx context.Context, in *GetSiteSubscriptionRequest, opts ...grpc.CallOption) (*GetSiteSubscriptionResponse, error)
|
|
108
107
|
CreateLinkingCode(ctx context.Context, in *CreateLinkingCodeRequest, opts ...grpc.CallOption) (*CreateLinkingCodeResponse, error)
|
|
109
108
|
GetSiteIdsWithIntegrationBySiteId(ctx context.Context, in *GetSiteIdsWithIntegrationData, opts ...grpc.CallOption) (*GetSiteIdsWithIntegrationData, error)
|
|
110
109
|
CheckStandardizedSoftwareEnabled(ctx context.Context, in *CheckStandardizedSoftwareEnabledRequest, opts ...grpc.CallOption) (*CheckStandardizedSoftwareEnabledResponse, error)
|
|
@@ -115,6 +114,7 @@ type MultitenantClient interface {
|
|
|
115
114
|
GetSitesByMsmpOrganizationId(ctx context.Context, in *GetSitesByMsmpOrganizationIdRequest, opts ...grpc.CallOption) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
116
115
|
GetInstallsByExternalIds(ctx context.Context, in *GetInstallsByExternalIdsRequest, opts ...grpc.CallOption) (*GetInstallsByExternalIdsResponse, error)
|
|
117
116
|
EnableCustomFieldsFederation(ctx context.Context, in *EnableCustomFieldsFederationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
117
|
+
IsCustomFieldsFederationEnabled(ctx context.Context, in *IsCustomFieldsFederationEnabledRequest, opts ...grpc.CallOption) (*IsCustomFieldsFederationEnabledResponse, error)
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
type multitenantClient struct {
|
|
@@ -456,16 +456,6 @@ func (c *multitenantClient) AllProfileExists(ctx context.Context, in *AllProfile
|
|
|
456
456
|
return out, nil
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
-
func (c *multitenantClient) GetSiteSubscription(ctx context.Context, in *GetSiteSubscriptionRequest, opts ...grpc.CallOption) (*GetSiteSubscriptionResponse, error) {
|
|
460
|
-
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
461
|
-
out := new(GetSiteSubscriptionResponse)
|
|
462
|
-
err := c.cc.Invoke(ctx, Multitenant_GetSiteSubscription_FullMethodName, in, out, cOpts...)
|
|
463
|
-
if err != nil {
|
|
464
|
-
return nil, err
|
|
465
|
-
}
|
|
466
|
-
return out, nil
|
|
467
|
-
}
|
|
468
|
-
|
|
469
459
|
func (c *multitenantClient) CreateLinkingCode(ctx context.Context, in *CreateLinkingCodeRequest, opts ...grpc.CallOption) (*CreateLinkingCodeResponse, error) {
|
|
470
460
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
471
461
|
out := new(CreateLinkingCodeResponse)
|
|
@@ -566,6 +556,16 @@ func (c *multitenantClient) EnableCustomFieldsFederation(ctx context.Context, in
|
|
|
566
556
|
return out, nil
|
|
567
557
|
}
|
|
568
558
|
|
|
559
|
+
func (c *multitenantClient) IsCustomFieldsFederationEnabled(ctx context.Context, in *IsCustomFieldsFederationEnabledRequest, opts ...grpc.CallOption) (*IsCustomFieldsFederationEnabledResponse, error) {
|
|
560
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
561
|
+
out := new(IsCustomFieldsFederationEnabledResponse)
|
|
562
|
+
err := c.cc.Invoke(ctx, Multitenant_IsCustomFieldsFederationEnabled_FullMethodName, in, out, cOpts...)
|
|
563
|
+
if err != nil {
|
|
564
|
+
return nil, err
|
|
565
|
+
}
|
|
566
|
+
return out, nil
|
|
567
|
+
}
|
|
568
|
+
|
|
569
569
|
// MultitenantServer is the server API for Multitenant service.
|
|
570
570
|
// All implementations must embed UnimplementedMultitenantServer
|
|
571
571
|
// for forward compatibility
|
|
@@ -604,7 +604,6 @@ type MultitenantServer interface {
|
|
|
604
604
|
SendInviteLocalUsersMail(context.Context, *SendInviteLocalUsersMailRequest) (*SendInviteLocalUsersMailResponse, error)
|
|
605
605
|
// Deprecated: Do not use.
|
|
606
606
|
AllProfileExists(context.Context, *AllProfileExistsRequest) (*AllProfileExistsResponse, error)
|
|
607
|
-
GetSiteSubscription(context.Context, *GetSiteSubscriptionRequest) (*GetSiteSubscriptionResponse, error)
|
|
608
607
|
CreateLinkingCode(context.Context, *CreateLinkingCodeRequest) (*CreateLinkingCodeResponse, error)
|
|
609
608
|
GetSiteIdsWithIntegrationBySiteId(context.Context, *GetSiteIdsWithIntegrationData) (*GetSiteIdsWithIntegrationData, error)
|
|
610
609
|
CheckStandardizedSoftwareEnabled(context.Context, *CheckStandardizedSoftwareEnabledRequest) (*CheckStandardizedSoftwareEnabledResponse, error)
|
|
@@ -615,6 +614,7 @@ type MultitenantServer interface {
|
|
|
615
614
|
GetSitesByMsmpOrganizationId(context.Context, *GetSitesByMsmpOrganizationIdRequest) (*GetSitesByMsmpOrganizationIdResponse, error)
|
|
616
615
|
GetInstallsByExternalIds(context.Context, *GetInstallsByExternalIdsRequest) (*GetInstallsByExternalIdsResponse, error)
|
|
617
616
|
EnableCustomFieldsFederation(context.Context, *EnableCustomFieldsFederationRequest) (*emptypb.Empty, error)
|
|
617
|
+
IsCustomFieldsFederationEnabled(context.Context, *IsCustomFieldsFederationEnabledRequest) (*IsCustomFieldsFederationEnabledResponse, error)
|
|
618
618
|
mustEmbedUnimplementedMultitenantServer()
|
|
619
619
|
}
|
|
620
620
|
|
|
@@ -721,9 +721,6 @@ func (UnimplementedMultitenantServer) SendInviteLocalUsersMail(context.Context,
|
|
|
721
721
|
func (UnimplementedMultitenantServer) AllProfileExists(context.Context, *AllProfileExistsRequest) (*AllProfileExistsResponse, error) {
|
|
722
722
|
return nil, status.Errorf(codes.Unimplemented, "method AllProfileExists not implemented")
|
|
723
723
|
}
|
|
724
|
-
func (UnimplementedMultitenantServer) GetSiteSubscription(context.Context, *GetSiteSubscriptionRequest) (*GetSiteSubscriptionResponse, error) {
|
|
725
|
-
return nil, status.Errorf(codes.Unimplemented, "method GetSiteSubscription not implemented")
|
|
726
|
-
}
|
|
727
724
|
func (UnimplementedMultitenantServer) CreateLinkingCode(context.Context, *CreateLinkingCodeRequest) (*CreateLinkingCodeResponse, error) {
|
|
728
725
|
return nil, status.Errorf(codes.Unimplemented, "method CreateLinkingCode not implemented")
|
|
729
726
|
}
|
|
@@ -754,6 +751,9 @@ func (UnimplementedMultitenantServer) GetInstallsByExternalIds(context.Context,
|
|
|
754
751
|
func (UnimplementedMultitenantServer) EnableCustomFieldsFederation(context.Context, *EnableCustomFieldsFederationRequest) (*emptypb.Empty, error) {
|
|
755
752
|
return nil, status.Errorf(codes.Unimplemented, "method EnableCustomFieldsFederation not implemented")
|
|
756
753
|
}
|
|
754
|
+
func (UnimplementedMultitenantServer) IsCustomFieldsFederationEnabled(context.Context, *IsCustomFieldsFederationEnabledRequest) (*IsCustomFieldsFederationEnabledResponse, error) {
|
|
755
|
+
return nil, status.Errorf(codes.Unimplemented, "method IsCustomFieldsFederationEnabled not implemented")
|
|
756
|
+
}
|
|
757
757
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
758
758
|
|
|
759
759
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1361,24 +1361,6 @@ func _Multitenant_AllProfileExists_Handler(srv interface{}, ctx context.Context,
|
|
|
1361
1361
|
return interceptor(ctx, in, info, handler)
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
|
-
func _Multitenant_GetSiteSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1365
|
-
in := new(GetSiteSubscriptionRequest)
|
|
1366
|
-
if err := dec(in); err != nil {
|
|
1367
|
-
return nil, err
|
|
1368
|
-
}
|
|
1369
|
-
if interceptor == nil {
|
|
1370
|
-
return srv.(MultitenantServer).GetSiteSubscription(ctx, in)
|
|
1371
|
-
}
|
|
1372
|
-
info := &grpc.UnaryServerInfo{
|
|
1373
|
-
Server: srv,
|
|
1374
|
-
FullMethod: Multitenant_GetSiteSubscription_FullMethodName,
|
|
1375
|
-
}
|
|
1376
|
-
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1377
|
-
return srv.(MultitenantServer).GetSiteSubscription(ctx, req.(*GetSiteSubscriptionRequest))
|
|
1378
|
-
}
|
|
1379
|
-
return interceptor(ctx, in, info, handler)
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
1364
|
func _Multitenant_CreateLinkingCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1383
1365
|
in := new(CreateLinkingCodeRequest)
|
|
1384
1366
|
if err := dec(in); err != nil {
|
|
@@ -1559,6 +1541,24 @@ func _Multitenant_EnableCustomFieldsFederation_Handler(srv interface{}, ctx cont
|
|
|
1559
1541
|
return interceptor(ctx, in, info, handler)
|
|
1560
1542
|
}
|
|
1561
1543
|
|
|
1544
|
+
func _Multitenant_IsCustomFieldsFederationEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1545
|
+
in := new(IsCustomFieldsFederationEnabledRequest)
|
|
1546
|
+
if err := dec(in); err != nil {
|
|
1547
|
+
return nil, err
|
|
1548
|
+
}
|
|
1549
|
+
if interceptor == nil {
|
|
1550
|
+
return srv.(MultitenantServer).IsCustomFieldsFederationEnabled(ctx, in)
|
|
1551
|
+
}
|
|
1552
|
+
info := &grpc.UnaryServerInfo{
|
|
1553
|
+
Server: srv,
|
|
1554
|
+
FullMethod: Multitenant_IsCustomFieldsFederationEnabled_FullMethodName,
|
|
1555
|
+
}
|
|
1556
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1557
|
+
return srv.(MultitenantServer).IsCustomFieldsFederationEnabled(ctx, req.(*IsCustomFieldsFederationEnabledRequest))
|
|
1558
|
+
}
|
|
1559
|
+
return interceptor(ctx, in, info, handler)
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
1562
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1563
1563
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1564
1564
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -1698,10 +1698,6 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1698
1698
|
MethodName: "AllProfileExists",
|
|
1699
1699
|
Handler: _Multitenant_AllProfileExists_Handler,
|
|
1700
1700
|
},
|
|
1701
|
-
{
|
|
1702
|
-
MethodName: "GetSiteSubscription",
|
|
1703
|
-
Handler: _Multitenant_GetSiteSubscription_Handler,
|
|
1704
|
-
},
|
|
1705
1701
|
{
|
|
1706
1702
|
MethodName: "CreateLinkingCode",
|
|
1707
1703
|
Handler: _Multitenant_CreateLinkingCode_Handler,
|
|
@@ -1742,6 +1738,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1742
1738
|
MethodName: "EnableCustomFieldsFederation",
|
|
1743
1739
|
Handler: _Multitenant_EnableCustomFieldsFederation_Handler,
|
|
1744
1740
|
},
|
|
1741
|
+
{
|
|
1742
|
+
MethodName: "IsCustomFieldsFederationEnabled",
|
|
1743
|
+
Handler: _Multitenant_IsCustomFieldsFederationEnabled_Handler,
|
|
1744
|
+
},
|
|
1745
1745
|
},
|
|
1746
1746
|
Streams: []grpc.StreamDesc{},
|
|
1747
1747
|
Metadata: "multitenant.proto",
|
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.58",
|
|
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": "e0a40279fa439f1016facc5e1773e2834c115d60"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -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 currentSubscriptionId = 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;
|
|
@@ -517,6 +512,14 @@ message EnableCustomFieldsFederationRequest {
|
|
|
517
512
|
string site_id = 1;
|
|
518
513
|
}
|
|
519
514
|
|
|
515
|
+
message IsCustomFieldsFederationEnabledRequest {
|
|
516
|
+
string site_id = 1;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
message IsCustomFieldsFederationEnabledResponse {
|
|
520
|
+
bool is_enabled = 1;
|
|
521
|
+
}
|
|
522
|
+
|
|
520
523
|
service Multitenant {
|
|
521
524
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
522
525
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
@@ -554,7 +557,6 @@ service Multitenant {
|
|
|
554
557
|
rpc AllProfileExists(AllProfileExistsRequest) returns (AllProfileExistsResponse) {
|
|
555
558
|
option deprecated = true;
|
|
556
559
|
}
|
|
557
|
-
rpc GetSiteSubscription(GetSiteSubscriptionRequest) returns (GetSiteSubscriptionResponse) {}
|
|
558
560
|
rpc CreateLinkingCode(CreateLinkingCodeRequest) returns (CreateLinkingCodeResponse) {}
|
|
559
561
|
rpc GetSiteIdsWithIntegrationBySiteId(GetSiteIdsWithIntegrationData) returns (GetSiteIdsWithIntegrationData) {}
|
|
560
562
|
rpc CheckStandardizedSoftwareEnabled(CheckStandardizedSoftwareEnabledRequest) returns (CheckStandardizedSoftwareEnabledResponse) {}
|
|
@@ -565,4 +567,5 @@ service Multitenant {
|
|
|
565
567
|
rpc GetSitesByMsmpOrganizationId(GetSitesByMsmpOrganizationIdRequest) returns (GetSitesByMsmpOrganizationIdResponse) {}
|
|
566
568
|
rpc GetInstallsByExternalIds(GetInstallsByExternalIdsRequest) returns (GetInstallsByExternalIdsResponse) {}
|
|
567
569
|
rpc EnableCustomFieldsFederation(EnableCustomFieldsFederationRequest) returns (google.protobuf.Empty) {}
|
|
570
|
+
rpc IsCustomFieldsFederationEnabled(IsCustomFieldsFederationEnabledRequest) returns (IsCustomFieldsFederationEnabledResponse) {}
|
|
568
571
|
}
|