@lansweeper/multitenant-api-grpc 0.4.34 → 0.4.35
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 +8 -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 +40 -0
- package/gen-proto/multitenant_pb.js +304 -0
- package/generated-go/multitenant.pb.go +524 -382
- package/generated-go/multitenant_grpc.pb.go +37 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +10 -0
|
@@ -51,6 +51,7 @@ const (
|
|
|
51
51
|
Multitenant_GetSiteSubscription_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteSubscription"
|
|
52
52
|
Multitenant_CreateLinkingCode_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateLinkingCode"
|
|
53
53
|
Multitenant_GetSiteIdsWithIntegrationBySiteId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId"
|
|
54
|
+
Multitenant_CheckStandardizedSoftwareEnabled_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CheckStandardizedSoftwareEnabled"
|
|
54
55
|
)
|
|
55
56
|
|
|
56
57
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -90,6 +91,7 @@ type MultitenantClient interface {
|
|
|
90
91
|
GetSiteSubscription(ctx context.Context, in *GetSiteSubscriptionRequest, opts ...grpc.CallOption) (*GetSiteSubscriptionResponse, error)
|
|
91
92
|
CreateLinkingCode(ctx context.Context, in *CreateLinkingCodeRequest, opts ...grpc.CallOption) (*CreateLinkingCodeResponse, error)
|
|
92
93
|
GetSiteIdsWithIntegrationBySiteId(ctx context.Context, in *GetSiteIdsWithIntegrationData, opts ...grpc.CallOption) (*GetSiteIdsWithIntegrationData, error)
|
|
94
|
+
CheckStandardizedSoftwareEnabled(ctx context.Context, in *CheckStandardizedSoftwareEnabledRequest, opts ...grpc.CallOption) (*CheckStandardizedSoftwareEnabledResponse, error)
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
type multitenantClient struct {
|
|
@@ -389,6 +391,15 @@ func (c *multitenantClient) GetSiteIdsWithIntegrationBySiteId(ctx context.Contex
|
|
|
389
391
|
return out, nil
|
|
390
392
|
}
|
|
391
393
|
|
|
394
|
+
func (c *multitenantClient) CheckStandardizedSoftwareEnabled(ctx context.Context, in *CheckStandardizedSoftwareEnabledRequest, opts ...grpc.CallOption) (*CheckStandardizedSoftwareEnabledResponse, error) {
|
|
395
|
+
out := new(CheckStandardizedSoftwareEnabledResponse)
|
|
396
|
+
err := c.cc.Invoke(ctx, Multitenant_CheckStandardizedSoftwareEnabled_FullMethodName, in, out, opts...)
|
|
397
|
+
if err != nil {
|
|
398
|
+
return nil, err
|
|
399
|
+
}
|
|
400
|
+
return out, nil
|
|
401
|
+
}
|
|
402
|
+
|
|
392
403
|
// MultitenantServer is the server API for Multitenant service.
|
|
393
404
|
// All implementations must embed UnimplementedMultitenantServer
|
|
394
405
|
// for forward compatibility
|
|
@@ -426,6 +437,7 @@ type MultitenantServer interface {
|
|
|
426
437
|
GetSiteSubscription(context.Context, *GetSiteSubscriptionRequest) (*GetSiteSubscriptionResponse, error)
|
|
427
438
|
CreateLinkingCode(context.Context, *CreateLinkingCodeRequest) (*CreateLinkingCodeResponse, error)
|
|
428
439
|
GetSiteIdsWithIntegrationBySiteId(context.Context, *GetSiteIdsWithIntegrationData) (*GetSiteIdsWithIntegrationData, error)
|
|
440
|
+
CheckStandardizedSoftwareEnabled(context.Context, *CheckStandardizedSoftwareEnabledRequest) (*CheckStandardizedSoftwareEnabledResponse, error)
|
|
429
441
|
mustEmbedUnimplementedMultitenantServer()
|
|
430
442
|
}
|
|
431
443
|
|
|
@@ -529,6 +541,9 @@ func (UnimplementedMultitenantServer) CreateLinkingCode(context.Context, *Create
|
|
|
529
541
|
func (UnimplementedMultitenantServer) GetSiteIdsWithIntegrationBySiteId(context.Context, *GetSiteIdsWithIntegrationData) (*GetSiteIdsWithIntegrationData, error) {
|
|
530
542
|
return nil, status.Errorf(codes.Unimplemented, "method GetSiteIdsWithIntegrationBySiteId not implemented")
|
|
531
543
|
}
|
|
544
|
+
func (UnimplementedMultitenantServer) CheckStandardizedSoftwareEnabled(context.Context, *CheckStandardizedSoftwareEnabledRequest) (*CheckStandardizedSoftwareEnabledResponse, error) {
|
|
545
|
+
return nil, status.Errorf(codes.Unimplemented, "method CheckStandardizedSoftwareEnabled not implemented")
|
|
546
|
+
}
|
|
532
547
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
533
548
|
|
|
534
549
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1118,6 +1133,24 @@ func _Multitenant_GetSiteIdsWithIntegrationBySiteId_Handler(srv interface{}, ctx
|
|
|
1118
1133
|
return interceptor(ctx, in, info, handler)
|
|
1119
1134
|
}
|
|
1120
1135
|
|
|
1136
|
+
func _Multitenant_CheckStandardizedSoftwareEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1137
|
+
in := new(CheckStandardizedSoftwareEnabledRequest)
|
|
1138
|
+
if err := dec(in); err != nil {
|
|
1139
|
+
return nil, err
|
|
1140
|
+
}
|
|
1141
|
+
if interceptor == nil {
|
|
1142
|
+
return srv.(MultitenantServer).CheckStandardizedSoftwareEnabled(ctx, in)
|
|
1143
|
+
}
|
|
1144
|
+
info := &grpc.UnaryServerInfo{
|
|
1145
|
+
Server: srv,
|
|
1146
|
+
FullMethod: Multitenant_CheckStandardizedSoftwareEnabled_FullMethodName,
|
|
1147
|
+
}
|
|
1148
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1149
|
+
return srv.(MultitenantServer).CheckStandardizedSoftwareEnabled(ctx, req.(*CheckStandardizedSoftwareEnabledRequest))
|
|
1150
|
+
}
|
|
1151
|
+
return interceptor(ctx, in, info, handler)
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1121
1154
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1122
1155
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1123
1156
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -1253,6 +1286,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
1253
1286
|
MethodName: "GetSiteIdsWithIntegrationBySiteId",
|
|
1254
1287
|
Handler: _Multitenant_GetSiteIdsWithIntegrationBySiteId_Handler,
|
|
1255
1288
|
},
|
|
1289
|
+
{
|
|
1290
|
+
MethodName: "CheckStandardizedSoftwareEnabled",
|
|
1291
|
+
Handler: _Multitenant_CheckStandardizedSoftwareEnabled_Handler,
|
|
1292
|
+
},
|
|
1256
1293
|
},
|
|
1257
1294
|
Streams: []grpc.StreamDesc{},
|
|
1258
1295
|
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.35",
|
|
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": "
|
|
18
|
+
"gitHead": "05ac47f8d9adcf418b5f97575c345f39a3e7f324"
|
|
19
19
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -477,6 +477,14 @@ message GetSiteIdsWithIntegrationData {
|
|
|
477
477
|
repeated string site_ids = 1;
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
+
message CheckStandardizedSoftwareEnabledRequest {
|
|
481
|
+
string site_id = 1;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
message CheckStandardizedSoftwareEnabledResponse {
|
|
485
|
+
bool is_enabled = 1;
|
|
486
|
+
}
|
|
487
|
+
|
|
480
488
|
service Multitenant {
|
|
481
489
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
482
490
|
|
|
@@ -543,4 +551,6 @@ service Multitenant {
|
|
|
543
551
|
rpc CreateLinkingCode(CreateLinkingCodeRequest) returns (CreateLinkingCodeResponse) {}
|
|
544
552
|
|
|
545
553
|
rpc GetSiteIdsWithIntegrationBySiteId(GetSiteIdsWithIntegrationData) returns (GetSiteIdsWithIntegrationData) {}
|
|
554
|
+
|
|
555
|
+
rpc CheckStandardizedSoftwareEnabled(CheckStandardizedSoftwareEnabledRequest) returns (CheckStandardizedSoftwareEnabledResponse) {}
|
|
546
556
|
}
|