@lansweeper/multitenant-api-grpc 0.4.82 → 0.4.83
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 +4 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/multitenant_grpc_pb.d.ts +17 -0
- package/gen-proto/multitenant_grpc_pb.js +33 -0
- package/gen-proto/multitenant_pb.d.ts +46 -0
- package/gen-proto/multitenant_pb.js +352 -0
- package/generated-go/multitenant.pb.go +276 -125
- package/generated-go/multitenant_grpc.pb.go +38 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +11 -0
|
@@ -72,6 +72,7 @@ const (
|
|
|
72
72
|
Multitenant_CreateOwnerPersonalAccessToken_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateOwnerPersonalAccessToken"
|
|
73
73
|
Multitenant_GetInstallationSettings_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetInstallationSettings"
|
|
74
74
|
Multitenant_CreateFlowBuilderBotAccount_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateFlowBuilderBotAccount"
|
|
75
|
+
Multitenant_GetManualInstallation_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetManualInstallation"
|
|
75
76
|
)
|
|
76
77
|
|
|
77
78
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -131,6 +132,7 @@ type MultitenantClient interface {
|
|
|
131
132
|
CreateOwnerPersonalAccessToken(ctx context.Context, in *CreateOwnerPersonalAccessTokenRequest, opts ...grpc.CallOption) (*CreateOwnerPersonalAccessTokenResponse, error)
|
|
132
133
|
GetInstallationSettings(ctx context.Context, in *GetInstallationSettingsRequest, opts ...grpc.CallOption) (*GetInstallationSettingsResponse, error)
|
|
133
134
|
CreateFlowBuilderBotAccount(ctx context.Context, in *CreateFlowBuilderBotAccountRequest, opts ...grpc.CallOption) (*CreateFlowBuilderBotAccountResponse, error)
|
|
135
|
+
GetManualInstallation(ctx context.Context, in *GetManualInstallationRequest, opts ...grpc.CallOption) (*GetManualInstallationResponse, error)
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
type multitenantClient struct {
|
|
@@ -662,6 +664,16 @@ func (c *multitenantClient) CreateFlowBuilderBotAccount(ctx context.Context, in
|
|
|
662
664
|
return out, nil
|
|
663
665
|
}
|
|
664
666
|
|
|
667
|
+
func (c *multitenantClient) GetManualInstallation(ctx context.Context, in *GetManualInstallationRequest, opts ...grpc.CallOption) (*GetManualInstallationResponse, error) {
|
|
668
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
669
|
+
out := new(GetManualInstallationResponse)
|
|
670
|
+
err := c.cc.Invoke(ctx, Multitenant_GetManualInstallation_FullMethodName, in, out, cOpts...)
|
|
671
|
+
if err != nil {
|
|
672
|
+
return nil, err
|
|
673
|
+
}
|
|
674
|
+
return out, nil
|
|
675
|
+
}
|
|
676
|
+
|
|
665
677
|
// MultitenantServer is the server API for Multitenant service.
|
|
666
678
|
// All implementations must embed UnimplementedMultitenantServer
|
|
667
679
|
// for forward compatibility
|
|
@@ -719,6 +731,7 @@ type MultitenantServer interface {
|
|
|
719
731
|
CreateOwnerPersonalAccessToken(context.Context, *CreateOwnerPersonalAccessTokenRequest) (*CreateOwnerPersonalAccessTokenResponse, error)
|
|
720
732
|
GetInstallationSettings(context.Context, *GetInstallationSettingsRequest) (*GetInstallationSettingsResponse, error)
|
|
721
733
|
CreateFlowBuilderBotAccount(context.Context, *CreateFlowBuilderBotAccountRequest) (*CreateFlowBuilderBotAccountResponse, error)
|
|
734
|
+
GetManualInstallation(context.Context, *GetManualInstallationRequest) (*GetManualInstallationResponse, error)
|
|
722
735
|
mustEmbedUnimplementedMultitenantServer()
|
|
723
736
|
}
|
|
724
737
|
|
|
@@ -882,6 +895,9 @@ func (UnimplementedMultitenantServer) GetInstallationSettings(context.Context, *
|
|
|
882
895
|
func (UnimplementedMultitenantServer) CreateFlowBuilderBotAccount(context.Context, *CreateFlowBuilderBotAccountRequest) (*CreateFlowBuilderBotAccountResponse, error) {
|
|
883
896
|
return nil, status.Errorf(codes.Unimplemented, "method CreateFlowBuilderBotAccount not implemented")
|
|
884
897
|
}
|
|
898
|
+
func (UnimplementedMultitenantServer) GetManualInstallation(context.Context, *GetManualInstallationRequest) (*GetManualInstallationResponse, error) {
|
|
899
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetManualInstallation not implemented")
|
|
900
|
+
}
|
|
885
901
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
886
902
|
|
|
887
903
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1831,6 +1847,24 @@ func _Multitenant_CreateFlowBuilderBotAccount_Handler(srv interface{}, ctx conte
|
|
|
1831
1847
|
return interceptor(ctx, in, info, handler)
|
|
1832
1848
|
}
|
|
1833
1849
|
|
|
1850
|
+
func _Multitenant_GetManualInstallation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1851
|
+
in := new(GetManualInstallationRequest)
|
|
1852
|
+
if err := dec(in); err != nil {
|
|
1853
|
+
return nil, err
|
|
1854
|
+
}
|
|
1855
|
+
if interceptor == nil {
|
|
1856
|
+
return srv.(MultitenantServer).GetManualInstallation(ctx, in)
|
|
1857
|
+
}
|
|
1858
|
+
info := &grpc.UnaryServerInfo{
|
|
1859
|
+
Server: srv,
|
|
1860
|
+
FullMethod: Multitenant_GetManualInstallation_FullMethodName,
|
|
1861
|
+
}
|
|
1862
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1863
|
+
return srv.(MultitenantServer).GetManualInstallation(ctx, req.(*GetManualInstallationRequest))
|
|
1864
|
+
}
|
|
1865
|
+
return interceptor(ctx, in, info, handler)
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1834
1868
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1835
1869
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1836
1870
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -2046,6 +2080,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
2046
2080
|
MethodName: "CreateFlowBuilderBotAccount",
|
|
2047
2081
|
Handler: _Multitenant_CreateFlowBuilderBotAccount_Handler,
|
|
2048
2082
|
},
|
|
2083
|
+
{
|
|
2084
|
+
MethodName: "GetManualInstallation",
|
|
2085
|
+
Handler: _Multitenant_GetManualInstallation_Handler,
|
|
2086
|
+
},
|
|
2049
2087
|
},
|
|
2050
2088
|
Streams: []grpc.StreamDesc{},
|
|
2051
2089
|
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.83",
|
|
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": "d9e7898e0779a0983d039910965084a26bf419ff"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -646,6 +646,15 @@ message CreateFlowBuilderBotAccountResponse {
|
|
|
646
646
|
string account_id = 1;
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
+
message GetManualInstallationRequest {
|
|
650
|
+
string site_id = 1;
|
|
651
|
+
optional string user_id = 2;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
message GetManualInstallationResponse {
|
|
655
|
+
string manual_install_id = 1;
|
|
656
|
+
}
|
|
657
|
+
|
|
649
658
|
service Multitenant {
|
|
650
659
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
651
660
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
@@ -702,4 +711,6 @@ service Multitenant {
|
|
|
702
711
|
rpc CreateOwnerPersonalAccessToken(CreateOwnerPersonalAccessTokenRequest) returns (CreateOwnerPersonalAccessTokenResponse) {}
|
|
703
712
|
rpc GetInstallationSettings(GetInstallationSettingsRequest) returns (GetInstallationSettingsResponse) {}
|
|
704
713
|
rpc CreateFlowBuilderBotAccount(CreateFlowBuilderBotAccountRequest) returns (CreateFlowBuilderBotAccountResponse) {}
|
|
714
|
+
rpc GetManualInstallation(GetManualInstallationRequest) returns (GetManualInstallationResponse) {}
|
|
715
|
+
|
|
705
716
|
}
|