@lansweeper/multitenant-api-grpc 0.4.37 → 0.4.39
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/.ignorecompat +0 -0
- package/CHANGELOG.md +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/index.d.ts +1 -0
- package/gen-proto/index.js +3 -1
- package/gen-proto/limits/limits_grpc_pb.js +1 -0
- package/gen-proto/limits/limits_pb.d.ts +81 -0
- package/gen-proto/limits/limits_pb.js +514 -0
- package/gen-proto/multitenant_grpc_pb.d.ts +18 -0
- package/gen-proto/multitenant_grpc_pb.js +34 -0
- package/gen-proto/multitenant_pb.d.ts +45 -0
- package/gen-proto/multitenant_pb.js +343 -2
- package/generated-go/multitenant.pb.go +1223 -1070
- package/generated-go/multitenant_grpc.pb.go +38 -1
- package/package.json +5 -2
- package/proto/limits/limits.proto +29 -0
- package/proto/multitenant.proto +13 -124
- package/protodeps.yaml +4 -0
package/gen-proto/index.d.ts
CHANGED
package/gen-proto/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
const multitenant_grpc_pb = require("./multitenant_grpc_pb");
|
|
2
2
|
const multitenant_pb = require("./multitenant_pb");
|
|
3
|
-
|
|
3
|
+
const limits_grpc_pb = require("./limits/limits_grpc_pb");
|
|
4
|
+
const limits_pb = require("./limits/limits_pb");
|
|
5
|
+
Object.assign(exports, multitenant_grpc_pb, multitenant_pb, limits_grpc_pb, limits_pb)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// package: lansweeper.shared.limits.v1
|
|
2
|
+
// file: limits/limits.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class CalculateRiskInsights extends jspb.Message {
|
|
10
|
+
|
|
11
|
+
hasFromYear(): boolean;
|
|
12
|
+
clearFromYear(): void;
|
|
13
|
+
getFromYear(): string | undefined;
|
|
14
|
+
setFromYear(value: string): CalculateRiskInsights;
|
|
15
|
+
|
|
16
|
+
hasFromSeverity(): boolean;
|
|
17
|
+
clearFromSeverity(): void;
|
|
18
|
+
getFromSeverity(): RiskInsightsSeverity | undefined;
|
|
19
|
+
setFromSeverity(value: RiskInsightsSeverity): CalculateRiskInsights;
|
|
20
|
+
|
|
21
|
+
hasMax(): boolean;
|
|
22
|
+
clearMax(): void;
|
|
23
|
+
getMax(): number | undefined;
|
|
24
|
+
setMax(value: number): CalculateRiskInsights;
|
|
25
|
+
|
|
26
|
+
serializeBinary(): Uint8Array;
|
|
27
|
+
toObject(includeInstance?: boolean): CalculateRiskInsights.AsObject;
|
|
28
|
+
static toObject(includeInstance: boolean, msg: CalculateRiskInsights): CalculateRiskInsights.AsObject;
|
|
29
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
30
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
31
|
+
static serializeBinaryToWriter(message: CalculateRiskInsights, writer: jspb.BinaryWriter): void;
|
|
32
|
+
static deserializeBinary(bytes: Uint8Array): CalculateRiskInsights;
|
|
33
|
+
static deserializeBinaryFromReader(message: CalculateRiskInsights, reader: jspb.BinaryReader): CalculateRiskInsights;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace CalculateRiskInsights {
|
|
37
|
+
export type AsObject = {
|
|
38
|
+
fromYear?: string,
|
|
39
|
+
fromSeverity?: RiskInsightsSeverity,
|
|
40
|
+
max?: number,
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class SiteLimits extends jspb.Message {
|
|
45
|
+
getTier(): SiteLimitsTiers;
|
|
46
|
+
setTier(value: SiteLimitsTiers): SiteLimits;
|
|
47
|
+
|
|
48
|
+
hasCalculateRiskInsights(): boolean;
|
|
49
|
+
clearCalculateRiskInsights(): void;
|
|
50
|
+
getCalculateRiskInsights(): CalculateRiskInsights | undefined;
|
|
51
|
+
setCalculateRiskInsights(value?: CalculateRiskInsights): SiteLimits;
|
|
52
|
+
|
|
53
|
+
serializeBinary(): Uint8Array;
|
|
54
|
+
toObject(includeInstance?: boolean): SiteLimits.AsObject;
|
|
55
|
+
static toObject(includeInstance: boolean, msg: SiteLimits): SiteLimits.AsObject;
|
|
56
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
57
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
58
|
+
static serializeBinaryToWriter(message: SiteLimits, writer: jspb.BinaryWriter): void;
|
|
59
|
+
static deserializeBinary(bytes: Uint8Array): SiteLimits;
|
|
60
|
+
static deserializeBinaryFromReader(message: SiteLimits, reader: jspb.BinaryReader): SiteLimits;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export namespace SiteLimits {
|
|
64
|
+
export type AsObject = {
|
|
65
|
+
tier: SiteLimitsTiers,
|
|
66
|
+
calculateRiskInsights?: CalculateRiskInsights.AsObject,
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export enum SiteLimitsTiers {
|
|
71
|
+
SUBSCRIPTION_TYPE_VALUE_STARTER = 0,
|
|
72
|
+
SUBSCRIPTION_TYPE_VALUE_PRO = 1,
|
|
73
|
+
SUBSCRIPTION_TYPE_VALUE_ENTERPRISE = 2,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export enum RiskInsightsSeverity {
|
|
77
|
+
RISK_INSIGHT_SEVERITY_LOW = 0,
|
|
78
|
+
RISK_INSIGHT_SEVERITY_MEDIUM = 1,
|
|
79
|
+
RISK_INSIGHT_SEVERITY_HIGH = 2,
|
|
80
|
+
RISK_INSIGHT_SEVERITY_CRITICAL = 3,
|
|
81
|
+
}
|
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
// source: limits/limits.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.CalculateRiskInsights', null, global);
|
|
25
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.RiskInsightsSeverity', null, global);
|
|
26
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.SiteLimits', null, global);
|
|
27
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.SiteLimitsTiers', null, global);
|
|
28
|
+
/**
|
|
29
|
+
* Generated by JsPbCodeGenerator.
|
|
30
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
31
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
32
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
33
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
34
|
+
* valid.
|
|
35
|
+
* @extends {jspb.Message}
|
|
36
|
+
* @constructor
|
|
37
|
+
*/
|
|
38
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights = function(opt_data) {
|
|
39
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
40
|
+
};
|
|
41
|
+
goog.inherits(proto.lansweeper.shared.limits.v1.CalculateRiskInsights, jspb.Message);
|
|
42
|
+
if (goog.DEBUG && !COMPILED) {
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @override
|
|
46
|
+
*/
|
|
47
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.displayName = 'proto.lansweeper.shared.limits.v1.CalculateRiskInsights';
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Generated by JsPbCodeGenerator.
|
|
51
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
52
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
53
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
54
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
55
|
+
* valid.
|
|
56
|
+
* @extends {jspb.Message}
|
|
57
|
+
* @constructor
|
|
58
|
+
*/
|
|
59
|
+
proto.lansweeper.shared.limits.v1.SiteLimits = function(opt_data) {
|
|
60
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
61
|
+
};
|
|
62
|
+
goog.inherits(proto.lansweeper.shared.limits.v1.SiteLimits, jspb.Message);
|
|
63
|
+
if (goog.DEBUG && !COMPILED) {
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
* @override
|
|
67
|
+
*/
|
|
68
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.displayName = 'proto.lansweeper.shared.limits.v1.SiteLimits';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
74
|
+
/**
|
|
75
|
+
* Creates an object representation of this proto.
|
|
76
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77
|
+
* Optional fields that are not set will be set to undefined.
|
|
78
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79
|
+
* For the list of reserved names please see:
|
|
80
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
81
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
82
|
+
* JSPB instance for transitional soy proto support:
|
|
83
|
+
* http://goto/soy-param-migration
|
|
84
|
+
* @return {!Object}
|
|
85
|
+
*/
|
|
86
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.toObject = function(opt_includeInstance) {
|
|
87
|
+
return proto.lansweeper.shared.limits.v1.CalculateRiskInsights.toObject(opt_includeInstance, this);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Static version of the {@see toObject} method.
|
|
93
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
94
|
+
* the JSPB instance for transitional soy proto support:
|
|
95
|
+
* http://goto/soy-param-migration
|
|
96
|
+
* @param {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} msg The msg instance to transform.
|
|
97
|
+
* @return {!Object}
|
|
98
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
99
|
+
*/
|
|
100
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.toObject = function(includeInstance, msg) {
|
|
101
|
+
var f, obj = {
|
|
102
|
+
fromYear: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
103
|
+
fromSeverity: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
104
|
+
max: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
if (includeInstance) {
|
|
108
|
+
obj.$jspbMessageInstance = msg;
|
|
109
|
+
}
|
|
110
|
+
return obj;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Deserializes binary data (in protobuf wire format).
|
|
117
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
118
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights}
|
|
119
|
+
*/
|
|
120
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.deserializeBinary = function(bytes) {
|
|
121
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
122
|
+
var msg = new proto.lansweeper.shared.limits.v1.CalculateRiskInsights;
|
|
123
|
+
return proto.lansweeper.shared.limits.v1.CalculateRiskInsights.deserializeBinaryFromReader(msg, reader);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
129
|
+
* given reader into the given message object.
|
|
130
|
+
* @param {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} msg The message object to deserialize into.
|
|
131
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
132
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights}
|
|
133
|
+
*/
|
|
134
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.deserializeBinaryFromReader = function(msg, reader) {
|
|
135
|
+
while (reader.nextField()) {
|
|
136
|
+
if (reader.isEndGroup()) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
var field = reader.getFieldNumber();
|
|
140
|
+
switch (field) {
|
|
141
|
+
case 1:
|
|
142
|
+
var value = /** @type {string} */ (reader.readString());
|
|
143
|
+
msg.setFromYear(value);
|
|
144
|
+
break;
|
|
145
|
+
case 2:
|
|
146
|
+
var value = /** @type {!proto.lansweeper.shared.limits.v1.RiskInsightsSeverity} */ (reader.readEnum());
|
|
147
|
+
msg.setFromSeverity(value);
|
|
148
|
+
break;
|
|
149
|
+
case 3:
|
|
150
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
151
|
+
msg.setMax(value);
|
|
152
|
+
break;
|
|
153
|
+
default:
|
|
154
|
+
reader.skipField();
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return msg;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
164
|
+
* @return {!Uint8Array}
|
|
165
|
+
*/
|
|
166
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.serializeBinary = function() {
|
|
167
|
+
var writer = new jspb.BinaryWriter();
|
|
168
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.serializeBinaryToWriter(this, writer);
|
|
169
|
+
return writer.getResultBuffer();
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
175
|
+
* format), writing to the given BinaryWriter.
|
|
176
|
+
* @param {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} message
|
|
177
|
+
* @param {!jspb.BinaryWriter} writer
|
|
178
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
179
|
+
*/
|
|
180
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.serializeBinaryToWriter = function(message, writer) {
|
|
181
|
+
var f = undefined;
|
|
182
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
183
|
+
if (f != null) {
|
|
184
|
+
writer.writeString(
|
|
185
|
+
1,
|
|
186
|
+
f
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
f = /** @type {!proto.lansweeper.shared.limits.v1.RiskInsightsSeverity} */ (jspb.Message.getField(message, 2));
|
|
190
|
+
if (f != null) {
|
|
191
|
+
writer.writeEnum(
|
|
192
|
+
2,
|
|
193
|
+
f
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
197
|
+
if (f != null) {
|
|
198
|
+
writer.writeInt32(
|
|
199
|
+
3,
|
|
200
|
+
f
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* optional string from_year = 1;
|
|
208
|
+
* @return {string}
|
|
209
|
+
*/
|
|
210
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.getFromYear = function() {
|
|
211
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @param {string} value
|
|
217
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} returns this
|
|
218
|
+
*/
|
|
219
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.setFromYear = function(value) {
|
|
220
|
+
return jspb.Message.setField(this, 1, value);
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Clears the field making it undefined.
|
|
226
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} returns this
|
|
227
|
+
*/
|
|
228
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.clearFromYear = function() {
|
|
229
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Returns whether this field is set.
|
|
235
|
+
* @return {boolean}
|
|
236
|
+
*/
|
|
237
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.hasFromYear = function() {
|
|
238
|
+
return jspb.Message.getField(this, 1) != null;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* optional RiskInsightsSeverity from_severity = 2;
|
|
244
|
+
* @return {!proto.lansweeper.shared.limits.v1.RiskInsightsSeverity}
|
|
245
|
+
*/
|
|
246
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.getFromSeverity = function() {
|
|
247
|
+
return /** @type {!proto.lansweeper.shared.limits.v1.RiskInsightsSeverity} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @param {!proto.lansweeper.shared.limits.v1.RiskInsightsSeverity} value
|
|
253
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} returns this
|
|
254
|
+
*/
|
|
255
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.setFromSeverity = function(value) {
|
|
256
|
+
return jspb.Message.setField(this, 2, value);
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Clears the field making it undefined.
|
|
262
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} returns this
|
|
263
|
+
*/
|
|
264
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.clearFromSeverity = function() {
|
|
265
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Returns whether this field is set.
|
|
271
|
+
* @return {boolean}
|
|
272
|
+
*/
|
|
273
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.hasFromSeverity = function() {
|
|
274
|
+
return jspb.Message.getField(this, 2) != null;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* optional int32 max = 3;
|
|
280
|
+
* @return {number}
|
|
281
|
+
*/
|
|
282
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.getMax = function() {
|
|
283
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @param {number} value
|
|
289
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} returns this
|
|
290
|
+
*/
|
|
291
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.setMax = function(value) {
|
|
292
|
+
return jspb.Message.setField(this, 3, value);
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Clears the field making it undefined.
|
|
298
|
+
* @return {!proto.lansweeper.shared.limits.v1.CalculateRiskInsights} returns this
|
|
299
|
+
*/
|
|
300
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.clearMax = function() {
|
|
301
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Returns whether this field is set.
|
|
307
|
+
* @return {boolean}
|
|
308
|
+
*/
|
|
309
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.hasMax = function() {
|
|
310
|
+
return jspb.Message.getField(this, 3) != null;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
318
|
+
/**
|
|
319
|
+
* Creates an object representation of this proto.
|
|
320
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
321
|
+
* Optional fields that are not set will be set to undefined.
|
|
322
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
323
|
+
* For the list of reserved names please see:
|
|
324
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
325
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
326
|
+
* JSPB instance for transitional soy proto support:
|
|
327
|
+
* http://goto/soy-param-migration
|
|
328
|
+
* @return {!Object}
|
|
329
|
+
*/
|
|
330
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.toObject = function(opt_includeInstance) {
|
|
331
|
+
return proto.lansweeper.shared.limits.v1.SiteLimits.toObject(opt_includeInstance, this);
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Static version of the {@see toObject} method.
|
|
337
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
338
|
+
* the JSPB instance for transitional soy proto support:
|
|
339
|
+
* http://goto/soy-param-migration
|
|
340
|
+
* @param {!proto.lansweeper.shared.limits.v1.SiteLimits} msg The msg instance to transform.
|
|
341
|
+
* @return {!Object}
|
|
342
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
343
|
+
*/
|
|
344
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.toObject = function(includeInstance, msg) {
|
|
345
|
+
var f, obj = {
|
|
346
|
+
tier: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
347
|
+
calculateRiskInsights: (f = msg.getCalculateRiskInsights()) && proto.lansweeper.shared.limits.v1.CalculateRiskInsights.toObject(includeInstance, f)
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
if (includeInstance) {
|
|
351
|
+
obj.$jspbMessageInstance = msg;
|
|
352
|
+
}
|
|
353
|
+
return obj;
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Deserializes binary data (in protobuf wire format).
|
|
360
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
361
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits}
|
|
362
|
+
*/
|
|
363
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinary = function(bytes) {
|
|
364
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
365
|
+
var msg = new proto.lansweeper.shared.limits.v1.SiteLimits;
|
|
366
|
+
return proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinaryFromReader(msg, reader);
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
372
|
+
* given reader into the given message object.
|
|
373
|
+
* @param {!proto.lansweeper.shared.limits.v1.SiteLimits} msg The message object to deserialize into.
|
|
374
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
375
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits}
|
|
376
|
+
*/
|
|
377
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinaryFromReader = function(msg, reader) {
|
|
378
|
+
while (reader.nextField()) {
|
|
379
|
+
if (reader.isEndGroup()) {
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
var field = reader.getFieldNumber();
|
|
383
|
+
switch (field) {
|
|
384
|
+
case 1:
|
|
385
|
+
var value = /** @type {!proto.lansweeper.shared.limits.v1.SiteLimitsTiers} */ (reader.readEnum());
|
|
386
|
+
msg.setTier(value);
|
|
387
|
+
break;
|
|
388
|
+
case 2:
|
|
389
|
+
var value = new proto.lansweeper.shared.limits.v1.CalculateRiskInsights;
|
|
390
|
+
reader.readMessage(value,proto.lansweeper.shared.limits.v1.CalculateRiskInsights.deserializeBinaryFromReader);
|
|
391
|
+
msg.setCalculateRiskInsights(value);
|
|
392
|
+
break;
|
|
393
|
+
default:
|
|
394
|
+
reader.skipField();
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return msg;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
404
|
+
* @return {!Uint8Array}
|
|
405
|
+
*/
|
|
406
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.serializeBinary = function() {
|
|
407
|
+
var writer = new jspb.BinaryWriter();
|
|
408
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter(this, writer);
|
|
409
|
+
return writer.getResultBuffer();
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
415
|
+
* format), writing to the given BinaryWriter.
|
|
416
|
+
* @param {!proto.lansweeper.shared.limits.v1.SiteLimits} message
|
|
417
|
+
* @param {!jspb.BinaryWriter} writer
|
|
418
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
419
|
+
*/
|
|
420
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter = function(message, writer) {
|
|
421
|
+
var f = undefined;
|
|
422
|
+
f = message.getTier();
|
|
423
|
+
if (f !== 0.0) {
|
|
424
|
+
writer.writeEnum(
|
|
425
|
+
1,
|
|
426
|
+
f
|
|
427
|
+
);
|
|
428
|
+
}
|
|
429
|
+
f = message.getCalculateRiskInsights();
|
|
430
|
+
if (f != null) {
|
|
431
|
+
writer.writeMessage(
|
|
432
|
+
2,
|
|
433
|
+
f,
|
|
434
|
+
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.serializeBinaryToWriter
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* optional SiteLimitsTiers tier = 1;
|
|
442
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimitsTiers}
|
|
443
|
+
*/
|
|
444
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.getTier = function() {
|
|
445
|
+
return /** @type {!proto.lansweeper.shared.limits.v1.SiteLimitsTiers} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* @param {!proto.lansweeper.shared.limits.v1.SiteLimitsTiers} value
|
|
451
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
452
|
+
*/
|
|
453
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setTier = function(value) {
|
|
454
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* optional CalculateRiskInsights calculate_risk_insights = 2;
|
|
460
|
+
* @return {?proto.lansweeper.shared.limits.v1.CalculateRiskInsights}
|
|
461
|
+
*/
|
|
462
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.getCalculateRiskInsights = function() {
|
|
463
|
+
return /** @type{?proto.lansweeper.shared.limits.v1.CalculateRiskInsights} */ (
|
|
464
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.CalculateRiskInsights, 2));
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @param {?proto.lansweeper.shared.limits.v1.CalculateRiskInsights|undefined} value
|
|
470
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
471
|
+
*/
|
|
472
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setCalculateRiskInsights = function(value) {
|
|
473
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Clears the message field making it undefined.
|
|
479
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
480
|
+
*/
|
|
481
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.clearCalculateRiskInsights = function() {
|
|
482
|
+
return this.setCalculateRiskInsights(undefined);
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Returns whether this field is set.
|
|
488
|
+
* @return {boolean}
|
|
489
|
+
*/
|
|
490
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasCalculateRiskInsights = function() {
|
|
491
|
+
return jspb.Message.getField(this, 2) != null;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @enum {number}
|
|
497
|
+
*/
|
|
498
|
+
proto.lansweeper.shared.limits.v1.SiteLimitsTiers = {
|
|
499
|
+
SUBSCRIPTION_TYPE_VALUE_STARTER: 0,
|
|
500
|
+
SUBSCRIPTION_TYPE_VALUE_PRO: 1,
|
|
501
|
+
SUBSCRIPTION_TYPE_VALUE_ENTERPRISE: 2
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* @enum {number}
|
|
506
|
+
*/
|
|
507
|
+
proto.lansweeper.shared.limits.v1.RiskInsightsSeverity = {
|
|
508
|
+
RISK_INSIGHT_SEVERITY_LOW: 0,
|
|
509
|
+
RISK_INSIGHT_SEVERITY_MEDIUM: 1,
|
|
510
|
+
RISK_INSIGHT_SEVERITY_HIGH: 2,
|
|
511
|
+
RISK_INSIGHT_SEVERITY_CRITICAL: 3
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
goog.object.extend(exports, proto.lansweeper.shared.limits.v1);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
8
|
import * as multitenant_pb from "./multitenant_pb";
|
|
9
|
+
import * as limits_limits_pb from "./limits/limits_pb";
|
|
9
10
|
|
|
10
11
|
interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
12
|
checkAccessToSiteByAccountId: IMultitenantService_ICheckAccessToSiteByAccountId;
|
|
@@ -43,6 +44,7 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
|
|
|
43
44
|
getSiteIdsWithIntegrationBySiteId: IMultitenantService_IGetSiteIdsWithIntegrationBySiteId;
|
|
44
45
|
checkStandardizedSoftwareEnabled: IMultitenantService_ICheckStandardizedSoftwareEnabled;
|
|
45
46
|
updateSiteMetadata: IMultitenantService_IUpdateSiteMetadata;
|
|
47
|
+
getSiteLimits: IMultitenantService_IGetSiteLimits;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
|
|
@@ -360,6 +362,15 @@ interface IMultitenantService_IUpdateSiteMetadata extends grpc.MethodDefinition<
|
|
|
360
362
|
responseSerialize: grpc.serialize<multitenant_pb.UpdateSiteMetadataResponse>;
|
|
361
363
|
responseDeserialize: grpc.deserialize<multitenant_pb.UpdateSiteMetadataResponse>;
|
|
362
364
|
}
|
|
365
|
+
interface IMultitenantService_IGetSiteLimits extends grpc.MethodDefinition<multitenant_pb.GetSiteLimitsRequest, multitenant_pb.GetSiteLimitsResponse> {
|
|
366
|
+
path: "/lansweeper.multitenant.v1.Multitenant/GetSiteLimits";
|
|
367
|
+
requestStream: false;
|
|
368
|
+
responseStream: false;
|
|
369
|
+
requestSerialize: grpc.serialize<multitenant_pb.GetSiteLimitsRequest>;
|
|
370
|
+
requestDeserialize: grpc.deserialize<multitenant_pb.GetSiteLimitsRequest>;
|
|
371
|
+
responseSerialize: grpc.serialize<multitenant_pb.GetSiteLimitsResponse>;
|
|
372
|
+
responseDeserialize: grpc.deserialize<multitenant_pb.GetSiteLimitsResponse>;
|
|
373
|
+
}
|
|
363
374
|
|
|
364
375
|
export const MultitenantService: IMultitenantService;
|
|
365
376
|
|
|
@@ -399,6 +410,7 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
|
|
|
399
410
|
getSiteIdsWithIntegrationBySiteId: grpc.handleUnaryCall<multitenant_pb.GetSiteIdsWithIntegrationData, multitenant_pb.GetSiteIdsWithIntegrationData>;
|
|
400
411
|
checkStandardizedSoftwareEnabled: grpc.handleUnaryCall<multitenant_pb.CheckStandardizedSoftwareEnabledRequest, multitenant_pb.CheckStandardizedSoftwareEnabledResponse>;
|
|
401
412
|
updateSiteMetadata: grpc.handleUnaryCall<multitenant_pb.UpdateSiteMetadataRequest, multitenant_pb.UpdateSiteMetadataResponse>;
|
|
413
|
+
getSiteLimits: grpc.handleUnaryCall<multitenant_pb.GetSiteLimitsRequest, multitenant_pb.GetSiteLimitsResponse>;
|
|
402
414
|
}
|
|
403
415
|
|
|
404
416
|
export interface IMultitenantClient {
|
|
@@ -507,6 +519,9 @@ export interface IMultitenantClient {
|
|
|
507
519
|
updateSiteMetadata(request: multitenant_pb.UpdateSiteMetadataRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.UpdateSiteMetadataResponse) => void): grpc.ClientUnaryCall;
|
|
508
520
|
updateSiteMetadata(request: multitenant_pb.UpdateSiteMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.UpdateSiteMetadataResponse) => void): grpc.ClientUnaryCall;
|
|
509
521
|
updateSiteMetadata(request: multitenant_pb.UpdateSiteMetadataRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.UpdateSiteMetadataResponse) => void): grpc.ClientUnaryCall;
|
|
522
|
+
getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
|
|
523
|
+
getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
|
|
524
|
+
getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
|
|
510
525
|
}
|
|
511
526
|
|
|
512
527
|
export class MultitenantClient extends grpc.Client implements IMultitenantClient {
|
|
@@ -616,4 +631,7 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
|
|
|
616
631
|
public updateSiteMetadata(request: multitenant_pb.UpdateSiteMetadataRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.UpdateSiteMetadataResponse) => void): grpc.ClientUnaryCall;
|
|
617
632
|
public updateSiteMetadata(request: multitenant_pb.UpdateSiteMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.UpdateSiteMetadataResponse) => void): grpc.ClientUnaryCall;
|
|
618
633
|
public updateSiteMetadata(request: multitenant_pb.UpdateSiteMetadataRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.UpdateSiteMetadataResponse) => void): grpc.ClientUnaryCall;
|
|
634
|
+
public getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
|
|
635
|
+
public getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
|
|
636
|
+
public getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
|
|
619
637
|
}
|