@lansweeper/multitenant-api-grpc 0.4.26 → 0.4.27

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.
@@ -39,6 +39,7 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
39
39
  allProfileExists: IMultitenantService_IAllProfileExists;
40
40
  getSiteSubscription: IMultitenantService_IGetSiteSubscription;
41
41
  createLinkingCode: IMultitenantService_ICreateLinkingCode;
42
+ getSiteIdsWithIntegrationBySiteId: IMultitenantService_IGetSiteIdsWithIntegrationBySiteId;
42
43
  }
43
44
 
44
45
  interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
@@ -320,6 +321,15 @@ interface IMultitenantService_ICreateLinkingCode extends grpc.MethodDefinition<m
320
321
  responseSerialize: grpc.serialize<multitenant_pb.CreateLinkingCodeResponse>;
321
322
  responseDeserialize: grpc.deserialize<multitenant_pb.CreateLinkingCodeResponse>;
322
323
  }
324
+ interface IMultitenantService_IGetSiteIdsWithIntegrationBySiteId extends grpc.MethodDefinition<multitenant_pb.GetSiteIdsWithIntegrationData, multitenant_pb.GetSiteIdsWithIntegrationData> {
325
+ path: "/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId";
326
+ requestStream: false;
327
+ responseStream: false;
328
+ requestSerialize: grpc.serialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
329
+ requestDeserialize: grpc.deserialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
330
+ responseSerialize: grpc.serialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
331
+ responseDeserialize: grpc.deserialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
332
+ }
323
333
 
324
334
  export const MultitenantService: IMultitenantService;
325
335
 
@@ -355,6 +365,7 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
355
365
  allProfileExists: grpc.handleUnaryCall<multitenant_pb.AllProfileExistsRequest, multitenant_pb.AllProfileExistsResponse>;
356
366
  getSiteSubscription: grpc.handleUnaryCall<multitenant_pb.GetSiteSubscriptionRequest, multitenant_pb.GetSiteSubscriptionResponse>;
357
367
  createLinkingCode: grpc.handleUnaryCall<multitenant_pb.CreateLinkingCodeRequest, multitenant_pb.CreateLinkingCodeResponse>;
368
+ getSiteIdsWithIntegrationBySiteId: grpc.handleUnaryCall<multitenant_pb.GetSiteIdsWithIntegrationData, multitenant_pb.GetSiteIdsWithIntegrationData>;
358
369
  }
359
370
 
360
371
  export interface IMultitenantClient {
@@ -451,6 +462,9 @@ export interface IMultitenantClient {
451
462
  createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
452
463
  createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
453
464
  createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
465
+ getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
466
+ getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
467
+ getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
454
468
  }
455
469
 
456
470
  export class MultitenantClient extends grpc.Client implements IMultitenantClient {
@@ -548,4 +562,7 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
548
562
  public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
549
563
  public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
550
564
  public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
565
+ public getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
566
+ public getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
567
+ public getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
551
568
  }
@@ -400,6 +400,17 @@ function deserialize_lansweeper_multitenant_v1_GetPreviewAccountByIdResponse(buf
400
400
  return multitenant_pb.GetPreviewAccountByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
401
401
  }
402
402
 
403
+ function serialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData(arg) {
404
+ if (!(arg instanceof multitenant_pb.GetSiteIdsWithIntegrationData)) {
405
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData');
406
+ }
407
+ return Buffer.from(arg.serializeBinary());
408
+ }
409
+
410
+ function deserialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData(buffer_arg) {
411
+ return multitenant_pb.GetSiteIdsWithIntegrationData.deserializeBinary(new Uint8Array(buffer_arg));
412
+ }
413
+
403
414
  function serialize_lansweeper_multitenant_v1_GetSiteSubscriptionRequest(arg) {
404
415
  if (!(arg instanceof multitenant_pb.GetSiteSubscriptionRequest)) {
405
416
  throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteSubscriptionRequest');
@@ -1029,6 +1040,17 @@ var MultitenantService = exports.MultitenantService = {
1029
1040
  responseSerialize: serialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse,
1030
1041
  responseDeserialize: deserialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse,
1031
1042
  },
1043
+ getSiteIdsWithIntegrationBySiteId: {
1044
+ path: '/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId',
1045
+ requestStream: false,
1046
+ responseStream: false,
1047
+ requestType: multitenant_pb.GetSiteIdsWithIntegrationData,
1048
+ responseType: multitenant_pb.GetSiteIdsWithIntegrationData,
1049
+ requestSerialize: serialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
1050
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
1051
+ responseSerialize: serialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
1052
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
1053
+ },
1032
1054
  };
1033
1055
 
1034
1056
  exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
@@ -2019,6 +2019,28 @@ export namespace CreateLinkingCodeResponse {
2019
2019
  }
2020
2020
  }
2021
2021
 
2022
+ export class GetSiteIdsWithIntegrationData extends jspb.Message {
2023
+ clearSiteIdsList(): void;
2024
+ getSiteIdsList(): Array<string>;
2025
+ setSiteIdsList(value: Array<string>): GetSiteIdsWithIntegrationData;
2026
+ addSiteIds(value: string, index?: number): string;
2027
+
2028
+ serializeBinary(): Uint8Array;
2029
+ toObject(includeInstance?: boolean): GetSiteIdsWithIntegrationData.AsObject;
2030
+ static toObject(includeInstance: boolean, msg: GetSiteIdsWithIntegrationData): GetSiteIdsWithIntegrationData.AsObject;
2031
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2032
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2033
+ static serializeBinaryToWriter(message: GetSiteIdsWithIntegrationData, writer: jspb.BinaryWriter): void;
2034
+ static deserializeBinary(bytes: Uint8Array): GetSiteIdsWithIntegrationData;
2035
+ static deserializeBinaryFromReader(message: GetSiteIdsWithIntegrationData, reader: jspb.BinaryReader): GetSiteIdsWithIntegrationData;
2036
+ }
2037
+
2038
+ export namespace GetSiteIdsWithIntegrationData {
2039
+ export type AsObject = {
2040
+ siteIdsList: Array<string>,
2041
+ }
2042
+ }
2043
+
2022
2044
  export enum SiteMode {
2023
2045
  UNESPECIFIED = 0,
2024
2046
  CLOUD_NATIVE = 1,
@@ -54,6 +54,7 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest
54
54
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountResponse', null, global);
55
55
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest', null, global);
56
56
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
57
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData', null, global);
57
58
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest', null, global);
58
59
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse', null, global);
59
60
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsRequest', null, global);
@@ -1758,6 +1759,27 @@ if (goog.DEBUG && !COMPILED) {
1758
1759
  */
1759
1760
  proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.displayName = 'proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse';
1760
1761
  }
1762
+ /**
1763
+ * Generated by JsPbCodeGenerator.
1764
+ * @param {Array=} opt_data Optional initial data array, typically from a
1765
+ * server response, or constructed directly in Javascript. The array is used
1766
+ * in place and becomes part of the constructed object. It is not cloned.
1767
+ * If no data is provided, the constructed object will be empty, but still
1768
+ * valid.
1769
+ * @extends {jspb.Message}
1770
+ * @constructor
1771
+ */
1772
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData = function(opt_data) {
1773
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.repeatedFields_, null);
1774
+ };
1775
+ goog.inherits(proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData, jspb.Message);
1776
+ if (goog.DEBUG && !COMPILED) {
1777
+ /**
1778
+ * @public
1779
+ * @override
1780
+ */
1781
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.displayName = 'proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData';
1782
+ }
1761
1783
 
1762
1784
 
1763
1785
 
@@ -16138,6 +16160,162 @@ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.prototype.setCode = fu
16138
16160
  };
16139
16161
 
16140
16162
 
16163
+
16164
+ /**
16165
+ * List of repeated fields within this message type.
16166
+ * @private {!Array<number>}
16167
+ * @const
16168
+ */
16169
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.repeatedFields_ = [1];
16170
+
16171
+
16172
+
16173
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16174
+ /**
16175
+ * Creates an object representation of this proto.
16176
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16177
+ * Optional fields that are not set will be set to undefined.
16178
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16179
+ * For the list of reserved names please see:
16180
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16181
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16182
+ * JSPB instance for transitional soy proto support:
16183
+ * http://goto/soy-param-migration
16184
+ * @return {!Object}
16185
+ */
16186
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.prototype.toObject = function(opt_includeInstance) {
16187
+ return proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.toObject(opt_includeInstance, this);
16188
+ };
16189
+
16190
+
16191
+ /**
16192
+ * Static version of the {@see toObject} method.
16193
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16194
+ * the JSPB instance for transitional soy proto support:
16195
+ * http://goto/soy-param-migration
16196
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData} msg The msg instance to transform.
16197
+ * @return {!Object}
16198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16199
+ */
16200
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.toObject = function(includeInstance, msg) {
16201
+ var f, obj = {
16202
+ siteIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
16203
+ };
16204
+
16205
+ if (includeInstance) {
16206
+ obj.$jspbMessageInstance = msg;
16207
+ }
16208
+ return obj;
16209
+ };
16210
+ }
16211
+
16212
+
16213
+ /**
16214
+ * Deserializes binary data (in protobuf wire format).
16215
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16216
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData}
16217
+ */
16218
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.deserializeBinary = function(bytes) {
16219
+ var reader = new jspb.BinaryReader(bytes);
16220
+ var msg = new proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData;
16221
+ return proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.deserializeBinaryFromReader(msg, reader);
16222
+ };
16223
+
16224
+
16225
+ /**
16226
+ * Deserializes binary data (in protobuf wire format) from the
16227
+ * given reader into the given message object.
16228
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData} msg The message object to deserialize into.
16229
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16230
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData}
16231
+ */
16232
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.deserializeBinaryFromReader = function(msg, reader) {
16233
+ while (reader.nextField()) {
16234
+ if (reader.isEndGroup()) {
16235
+ break;
16236
+ }
16237
+ var field = reader.getFieldNumber();
16238
+ switch (field) {
16239
+ case 1:
16240
+ var value = /** @type {string} */ (reader.readString());
16241
+ msg.addSiteIds(value);
16242
+ break;
16243
+ default:
16244
+ reader.skipField();
16245
+ break;
16246
+ }
16247
+ }
16248
+ return msg;
16249
+ };
16250
+
16251
+
16252
+ /**
16253
+ * Serializes the message to binary data (in protobuf wire format).
16254
+ * @return {!Uint8Array}
16255
+ */
16256
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.prototype.serializeBinary = function() {
16257
+ var writer = new jspb.BinaryWriter();
16258
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.serializeBinaryToWriter(this, writer);
16259
+ return writer.getResultBuffer();
16260
+ };
16261
+
16262
+
16263
+ /**
16264
+ * Serializes the given message to binary data (in protobuf wire
16265
+ * format), writing to the given BinaryWriter.
16266
+ * @param {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData} message
16267
+ * @param {!jspb.BinaryWriter} writer
16268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16269
+ */
16270
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.serializeBinaryToWriter = function(message, writer) {
16271
+ var f = undefined;
16272
+ f = message.getSiteIdsList();
16273
+ if (f.length > 0) {
16274
+ writer.writeRepeatedString(
16275
+ 1,
16276
+ f
16277
+ );
16278
+ }
16279
+ };
16280
+
16281
+
16282
+ /**
16283
+ * repeated string site_ids = 1;
16284
+ * @return {!Array<string>}
16285
+ */
16286
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.prototype.getSiteIdsList = function() {
16287
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
16288
+ };
16289
+
16290
+
16291
+ /**
16292
+ * @param {!Array<string>} value
16293
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData} returns this
16294
+ */
16295
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.prototype.setSiteIdsList = function(value) {
16296
+ return jspb.Message.setField(this, 1, value || []);
16297
+ };
16298
+
16299
+
16300
+ /**
16301
+ * @param {string} value
16302
+ * @param {number=} opt_index
16303
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData} returns this
16304
+ */
16305
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.prototype.addSiteIds = function(value, opt_index) {
16306
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
16307
+ };
16308
+
16309
+
16310
+ /**
16311
+ * Clears the list making it empty but non-null.
16312
+ * @return {!proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData} returns this
16313
+ */
16314
+ proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData.prototype.clearSiteIdsList = function() {
16315
+ return this.setSiteIdsList([]);
16316
+ };
16317
+
16318
+
16141
16319
  /**
16142
16320
  * @enum {number}
16143
16321
  */