@lansweeper/integrations-limit-checker-grpc 0.2.12 → 0.2.14
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/limit_checker_api_grpc_pb.d.ts +17 -0
- package/gen-proto/limit_checker_api_grpc_pb.js +33 -0
- package/gen-proto/limit_checker_api_pb.d.ts +46 -0
- package/gen-proto/limit_checker_api_pb.js +364 -0
- package/generated-go/limit_checker_api.pb.go +280 -119
- package/generated-go/limit_checker_api_grpc.pb.go +38 -0
- package/package.json +8 -3
- package/proto/limit_checker_api.proto +11 -0
|
@@ -20,6 +20,7 @@ const _ = grpc.SupportPackageIsVersion8
|
|
|
20
20
|
|
|
21
21
|
const (
|
|
22
22
|
IntegrationsLimitChecker_ExportStatusLimitChecker_FullMethodName = "/lansweeper.integrationslimitchecker.v1.IntegrationsLimitChecker/ExportStatusLimitChecker"
|
|
23
|
+
IntegrationsLimitChecker_ExportStatusLimitCheckerOrg_FullMethodName = "/lansweeper.integrationslimitchecker.v1.IntegrationsLimitChecker/ExportStatusLimitCheckerOrg"
|
|
23
24
|
IntegrationsLimitChecker_ReportFullExportStatusLimitChecker_FullMethodName = "/lansweeper.integrationslimitchecker.v1.IntegrationsLimitChecker/ReportFullExportStatusLimitChecker"
|
|
24
25
|
IntegrationsLimitChecker_ScanNowLimitChecker_FullMethodName = "/lansweeper.integrationslimitchecker.v1.IntegrationsLimitChecker/ScanNowLimitChecker"
|
|
25
26
|
IntegrationsLimitChecker_UpdateAssetLimitChecker_FullMethodName = "/lansweeper.integrationslimitchecker.v1.IntegrationsLimitChecker/UpdateAssetLimitChecker"
|
|
@@ -30,6 +31,7 @@ const (
|
|
|
30
31
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
31
32
|
type IntegrationsLimitCheckerClient interface {
|
|
32
33
|
ExportStatusLimitChecker(ctx context.Context, in *ExportStatusLimitCheckerRequest, opts ...grpc.CallOption) (*ExportStatusLimitCheckerResponse, error)
|
|
34
|
+
ExportStatusLimitCheckerOrg(ctx context.Context, in *ExportStatusLimitCheckerOrgRequest, opts ...grpc.CallOption) (*ExportStatusLimitCheckerOrgResponse, error)
|
|
33
35
|
ReportFullExportStatusLimitChecker(ctx context.Context, in *ReportFullExportStatusLimitCheckerRequest, opts ...grpc.CallOption) (*ReportFullExportStatusLimitCheckerResponse, error)
|
|
34
36
|
ScanNowLimitChecker(ctx context.Context, in *ScanNowLimitCheckerRequest, opts ...grpc.CallOption) (*ScanNowLimitCheckerResponse, error)
|
|
35
37
|
UpdateAssetLimitChecker(ctx context.Context, in *UpdateAssetLimitCheckerRequest, opts ...grpc.CallOption) (*UpdateAssetLimitCheckerResponse, error)
|
|
@@ -53,6 +55,16 @@ func (c *integrationsLimitCheckerClient) ExportStatusLimitChecker(ctx context.Co
|
|
|
53
55
|
return out, nil
|
|
54
56
|
}
|
|
55
57
|
|
|
58
|
+
func (c *integrationsLimitCheckerClient) ExportStatusLimitCheckerOrg(ctx context.Context, in *ExportStatusLimitCheckerOrgRequest, opts ...grpc.CallOption) (*ExportStatusLimitCheckerOrgResponse, error) {
|
|
59
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
60
|
+
out := new(ExportStatusLimitCheckerOrgResponse)
|
|
61
|
+
err := c.cc.Invoke(ctx, IntegrationsLimitChecker_ExportStatusLimitCheckerOrg_FullMethodName, in, out, cOpts...)
|
|
62
|
+
if err != nil {
|
|
63
|
+
return nil, err
|
|
64
|
+
}
|
|
65
|
+
return out, nil
|
|
66
|
+
}
|
|
67
|
+
|
|
56
68
|
func (c *integrationsLimitCheckerClient) ReportFullExportStatusLimitChecker(ctx context.Context, in *ReportFullExportStatusLimitCheckerRequest, opts ...grpc.CallOption) (*ReportFullExportStatusLimitCheckerResponse, error) {
|
|
57
69
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
58
70
|
out := new(ReportFullExportStatusLimitCheckerResponse)
|
|
@@ -88,6 +100,7 @@ func (c *integrationsLimitCheckerClient) UpdateAssetLimitChecker(ctx context.Con
|
|
|
88
100
|
// for forward compatibility
|
|
89
101
|
type IntegrationsLimitCheckerServer interface {
|
|
90
102
|
ExportStatusLimitChecker(context.Context, *ExportStatusLimitCheckerRequest) (*ExportStatusLimitCheckerResponse, error)
|
|
103
|
+
ExportStatusLimitCheckerOrg(context.Context, *ExportStatusLimitCheckerOrgRequest) (*ExportStatusLimitCheckerOrgResponse, error)
|
|
91
104
|
ReportFullExportStatusLimitChecker(context.Context, *ReportFullExportStatusLimitCheckerRequest) (*ReportFullExportStatusLimitCheckerResponse, error)
|
|
92
105
|
ScanNowLimitChecker(context.Context, *ScanNowLimitCheckerRequest) (*ScanNowLimitCheckerResponse, error)
|
|
93
106
|
UpdateAssetLimitChecker(context.Context, *UpdateAssetLimitCheckerRequest) (*UpdateAssetLimitCheckerResponse, error)
|
|
@@ -101,6 +114,9 @@ type UnimplementedIntegrationsLimitCheckerServer struct {
|
|
|
101
114
|
func (UnimplementedIntegrationsLimitCheckerServer) ExportStatusLimitChecker(context.Context, *ExportStatusLimitCheckerRequest) (*ExportStatusLimitCheckerResponse, error) {
|
|
102
115
|
return nil, status.Errorf(codes.Unimplemented, "method ExportStatusLimitChecker not implemented")
|
|
103
116
|
}
|
|
117
|
+
func (UnimplementedIntegrationsLimitCheckerServer) ExportStatusLimitCheckerOrg(context.Context, *ExportStatusLimitCheckerOrgRequest) (*ExportStatusLimitCheckerOrgResponse, error) {
|
|
118
|
+
return nil, status.Errorf(codes.Unimplemented, "method ExportStatusLimitCheckerOrg not implemented")
|
|
119
|
+
}
|
|
104
120
|
func (UnimplementedIntegrationsLimitCheckerServer) ReportFullExportStatusLimitChecker(context.Context, *ReportFullExportStatusLimitCheckerRequest) (*ReportFullExportStatusLimitCheckerResponse, error) {
|
|
105
121
|
return nil, status.Errorf(codes.Unimplemented, "method ReportFullExportStatusLimitChecker not implemented")
|
|
106
122
|
}
|
|
@@ -142,6 +158,24 @@ func _IntegrationsLimitChecker_ExportStatusLimitChecker_Handler(srv interface{},
|
|
|
142
158
|
return interceptor(ctx, in, info, handler)
|
|
143
159
|
}
|
|
144
160
|
|
|
161
|
+
func _IntegrationsLimitChecker_ExportStatusLimitCheckerOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
162
|
+
in := new(ExportStatusLimitCheckerOrgRequest)
|
|
163
|
+
if err := dec(in); err != nil {
|
|
164
|
+
return nil, err
|
|
165
|
+
}
|
|
166
|
+
if interceptor == nil {
|
|
167
|
+
return srv.(IntegrationsLimitCheckerServer).ExportStatusLimitCheckerOrg(ctx, in)
|
|
168
|
+
}
|
|
169
|
+
info := &grpc.UnaryServerInfo{
|
|
170
|
+
Server: srv,
|
|
171
|
+
FullMethod: IntegrationsLimitChecker_ExportStatusLimitCheckerOrg_FullMethodName,
|
|
172
|
+
}
|
|
173
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
174
|
+
return srv.(IntegrationsLimitCheckerServer).ExportStatusLimitCheckerOrg(ctx, req.(*ExportStatusLimitCheckerOrgRequest))
|
|
175
|
+
}
|
|
176
|
+
return interceptor(ctx, in, info, handler)
|
|
177
|
+
}
|
|
178
|
+
|
|
145
179
|
func _IntegrationsLimitChecker_ReportFullExportStatusLimitChecker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
146
180
|
in := new(ReportFullExportStatusLimitCheckerRequest)
|
|
147
181
|
if err := dec(in); err != nil {
|
|
@@ -207,6 +241,10 @@ var IntegrationsLimitChecker_ServiceDesc = grpc.ServiceDesc{
|
|
|
207
241
|
MethodName: "ExportStatusLimitChecker",
|
|
208
242
|
Handler: _IntegrationsLimitChecker_ExportStatusLimitChecker_Handler,
|
|
209
243
|
},
|
|
244
|
+
{
|
|
245
|
+
MethodName: "ExportStatusLimitCheckerOrg",
|
|
246
|
+
Handler: _IntegrationsLimitChecker_ExportStatusLimitCheckerOrg_Handler,
|
|
247
|
+
},
|
|
210
248
|
{
|
|
211
249
|
MethodName: "ReportFullExportStatusLimitChecker",
|
|
212
250
|
Handler: _IntegrationsLimitChecker_ReportFullExportStatusLimitChecker_Handler,
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/integrations-limit-checker-grpc",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Limit Checker GRPC Integration",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@grpc/grpc-js": "^1.5.1",
|
|
10
9
|
"google-protobuf": "^3.17.0"
|
|
11
10
|
},
|
|
12
|
-
"
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@grpc/grpc-js": "^1.6.2"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@grpc/grpc-js": "^1.6.2"
|
|
16
|
+
},
|
|
17
|
+
"gitHead": "00eb4380674287bdad040747b0b74ef7efde4dec"
|
|
13
18
|
}
|
|
@@ -9,10 +9,20 @@ message ExportStatusLimitCheckerRequest {
|
|
|
9
9
|
string traceId = 2;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
message ExportStatusLimitCheckerOrgRequest {
|
|
13
|
+
string clientId = 1;
|
|
14
|
+
string traceId = 2;
|
|
15
|
+
string exportId = 3;
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
message ExportStatusLimitCheckerResponse {
|
|
13
19
|
string message = 1;
|
|
14
20
|
}
|
|
15
21
|
|
|
22
|
+
message ExportStatusLimitCheckerOrgResponse {
|
|
23
|
+
string message = 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
16
26
|
message ReportFullExportStatusLimitCheckerRequest {
|
|
17
27
|
string app_id = 1;
|
|
18
28
|
string trace_id = 2;
|
|
@@ -43,6 +53,7 @@ message UpdateAssetLimitCheckerResponse {
|
|
|
43
53
|
|
|
44
54
|
service IntegrationsLimitChecker {
|
|
45
55
|
rpc ExportStatusLimitChecker (ExportStatusLimitCheckerRequest) returns (ExportStatusLimitCheckerResponse) {}
|
|
56
|
+
rpc ExportStatusLimitCheckerOrg (ExportStatusLimitCheckerOrgRequest) returns (ExportStatusLimitCheckerOrgResponse) {}
|
|
46
57
|
rpc ReportFullExportStatusLimitChecker (ReportFullExportStatusLimitCheckerRequest) returns (ReportFullExportStatusLimitCheckerResponse) {}
|
|
47
58
|
rpc ScanNowLimitChecker (ScanNowLimitCheckerRequest) returns (ScanNowLimitCheckerResponse) {}
|
|
48
59
|
rpc UpdateAssetLimitChecker (UpdateAssetLimitCheckerRequest) returns (UpdateAssetLimitCheckerResponse) {}
|