@lansweeper/multitenant-api-grpc 0.4.49 → 0.4.50

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.
@@ -48,6 +48,7 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
48
48
  checkStandardizedSoftwareEnabled: IMultitenantService_ICheckStandardizedSoftwareEnabled;
49
49
  updateSiteMetadata: IMultitenantService_IUpdateSiteMetadata;
50
50
  getSiteLimits: IMultitenantService_IGetSiteLimits;
51
+ getMsmpOrganizationList: IMultitenantService_IGetMsmpOrganizationList;
51
52
  }
52
53
 
53
54
  interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
@@ -401,6 +402,15 @@ interface IMultitenantService_IGetSiteLimits extends grpc.MethodDefinition<multi
401
402
  responseSerialize: grpc.serialize<multitenant_pb.GetSiteLimitsResponse>;
402
403
  responseDeserialize: grpc.deserialize<multitenant_pb.GetSiteLimitsResponse>;
403
404
  }
405
+ interface IMultitenantService_IGetMsmpOrganizationList extends grpc.MethodDefinition<multitenant_pb.GetMsmpOrganizationListRequest, multitenant_pb.GetMsmpOrganizationListResponse> {
406
+ path: "/lansweeper.multitenant.v1.Multitenant/GetMsmpOrganizationList";
407
+ requestStream: false;
408
+ responseStream: false;
409
+ requestSerialize: grpc.serialize<multitenant_pb.GetMsmpOrganizationListRequest>;
410
+ requestDeserialize: grpc.deserialize<multitenant_pb.GetMsmpOrganizationListRequest>;
411
+ responseSerialize: grpc.serialize<multitenant_pb.GetMsmpOrganizationListResponse>;
412
+ responseDeserialize: grpc.deserialize<multitenant_pb.GetMsmpOrganizationListResponse>;
413
+ }
404
414
 
405
415
  export const MultitenantService: IMultitenantService;
406
416
 
@@ -444,6 +454,7 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
444
454
  checkStandardizedSoftwareEnabled: grpc.handleUnaryCall<multitenant_pb.CheckStandardizedSoftwareEnabledRequest, multitenant_pb.CheckStandardizedSoftwareEnabledResponse>;
445
455
  updateSiteMetadata: grpc.handleUnaryCall<multitenant_pb.UpdateSiteMetadataRequest, multitenant_pb.UpdateSiteMetadataResponse>;
446
456
  getSiteLimits: grpc.handleUnaryCall<multitenant_pb.GetSiteLimitsRequest, multitenant_pb.GetSiteLimitsResponse>;
457
+ getMsmpOrganizationList: grpc.handleUnaryCall<multitenant_pb.GetMsmpOrganizationListRequest, multitenant_pb.GetMsmpOrganizationListResponse>;
447
458
  }
448
459
 
449
460
  export interface IMultitenantClient {
@@ -564,6 +575,9 @@ export interface IMultitenantClient {
564
575
  getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
565
576
  getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
566
577
  getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
578
+ getMsmpOrganizationList(request: multitenant_pb.GetMsmpOrganizationListRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetMsmpOrganizationListResponse) => void): grpc.ClientUnaryCall;
579
+ getMsmpOrganizationList(request: multitenant_pb.GetMsmpOrganizationListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetMsmpOrganizationListResponse) => void): grpc.ClientUnaryCall;
580
+ getMsmpOrganizationList(request: multitenant_pb.GetMsmpOrganizationListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetMsmpOrganizationListResponse) => void): grpc.ClientUnaryCall;
567
581
  }
568
582
 
569
583
  export class MultitenantClient extends grpc.Client implements IMultitenantClient {
@@ -685,4 +699,7 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
685
699
  public getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
686
700
  public getSiteLimits(request: multitenant_pb.GetSiteLimitsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteLimitsResponse) => void): grpc.ClientUnaryCall;
687
701
  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;
702
+ public getMsmpOrganizationList(request: multitenant_pb.GetMsmpOrganizationListRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetMsmpOrganizationListResponse) => void): grpc.ClientUnaryCall;
703
+ public getMsmpOrganizationList(request: multitenant_pb.GetMsmpOrganizationListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetMsmpOrganizationListResponse) => void): grpc.ClientUnaryCall;
704
+ public getMsmpOrganizationList(request: multitenant_pb.GetMsmpOrganizationListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetMsmpOrganizationListResponse) => void): grpc.ClientUnaryCall;
688
705
  }
@@ -445,6 +445,28 @@ function deserialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesRespon
445
445
  return multitenant_pb.GetInstallsForMultipleSitesResponse.deserializeBinary(new Uint8Array(buffer_arg));
446
446
  }
447
447
 
448
+ function serialize_lansweeper_multitenant_v1_GetMsmpOrganizationListRequest(arg) {
449
+ if (!(arg instanceof multitenant_pb.GetMsmpOrganizationListRequest)) {
450
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.GetMsmpOrganizationListRequest');
451
+ }
452
+ return Buffer.from(arg.serializeBinary());
453
+ }
454
+
455
+ function deserialize_lansweeper_multitenant_v1_GetMsmpOrganizationListRequest(buffer_arg) {
456
+ return multitenant_pb.GetMsmpOrganizationListRequest.deserializeBinary(new Uint8Array(buffer_arg));
457
+ }
458
+
459
+ function serialize_lansweeper_multitenant_v1_GetMsmpOrganizationListResponse(arg) {
460
+ if (!(arg instanceof multitenant_pb.GetMsmpOrganizationListResponse)) {
461
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.GetMsmpOrganizationListResponse');
462
+ }
463
+ return Buffer.from(arg.serializeBinary());
464
+ }
465
+
466
+ function deserialize_lansweeper_multitenant_v1_GetMsmpOrganizationListResponse(buffer_arg) {
467
+ return multitenant_pb.GetMsmpOrganizationListResponse.deserializeBinary(new Uint8Array(buffer_arg));
468
+ }
469
+
448
470
  function serialize_lansweeper_multitenant_v1_GetPreviewAccountByIdRequest(arg) {
449
471
  if (!(arg instanceof multitenant_pb.GetPreviewAccountByIdRequest)) {
450
472
  throw new Error('Expected argument of type lansweeper.multitenant.v1.GetPreviewAccountByIdRequest');
@@ -1283,6 +1305,17 @@ var MultitenantService = exports.MultitenantService = {
1283
1305
  responseSerialize: serialize_lansweeper_multitenant_v1_GetSiteLimitsResponse,
1284
1306
  responseDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteLimitsResponse,
1285
1307
  },
1308
+ getMsmpOrganizationList: {
1309
+ path: '/lansweeper.multitenant.v1.Multitenant/GetMsmpOrganizationList',
1310
+ requestStream: false,
1311
+ responseStream: false,
1312
+ requestType: multitenant_pb.GetMsmpOrganizationListRequest,
1313
+ responseType: multitenant_pb.GetMsmpOrganizationListResponse,
1314
+ requestSerialize: serialize_lansweeper_multitenant_v1_GetMsmpOrganizationListRequest,
1315
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_GetMsmpOrganizationListRequest,
1316
+ responseSerialize: serialize_lansweeper_multitenant_v1_GetMsmpOrganizationListResponse,
1317
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_GetMsmpOrganizationListResponse,
1318
+ },
1286
1319
  };
1287
1320
 
1288
1321
  exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
@@ -2379,6 +2379,139 @@ export namespace GetSiteLimitsResponse {
2379
2379
  }
2380
2380
  }
2381
2381
 
2382
+ export class GetMsmpOrganizationListRequest extends jspb.Message {
2383
+ getUserId(): string;
2384
+ setUserId(value: string): GetMsmpOrganizationListRequest;
2385
+
2386
+ hasMsmpPagination(): boolean;
2387
+ clearMsmpPagination(): void;
2388
+ getMsmpPagination(): GetMsmpOrganizationListRequest.MsmpPaginationRequest | undefined;
2389
+ setMsmpPagination(value?: GetMsmpOrganizationListRequest.MsmpPaginationRequest): GetMsmpOrganizationListRequest;
2390
+
2391
+ serializeBinary(): Uint8Array;
2392
+ toObject(includeInstance?: boolean): GetMsmpOrganizationListRequest.AsObject;
2393
+ static toObject(includeInstance: boolean, msg: GetMsmpOrganizationListRequest): GetMsmpOrganizationListRequest.AsObject;
2394
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2395
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2396
+ static serializeBinaryToWriter(message: GetMsmpOrganizationListRequest, writer: jspb.BinaryWriter): void;
2397
+ static deserializeBinary(bytes: Uint8Array): GetMsmpOrganizationListRequest;
2398
+ static deserializeBinaryFromReader(message: GetMsmpOrganizationListRequest, reader: jspb.BinaryReader): GetMsmpOrganizationListRequest;
2399
+ }
2400
+
2401
+ export namespace GetMsmpOrganizationListRequest {
2402
+ export type AsObject = {
2403
+ userId: string,
2404
+ msmpPagination?: GetMsmpOrganizationListRequest.MsmpPaginationRequest.AsObject,
2405
+ }
2406
+
2407
+
2408
+ export class MsmpPaginationRequest extends jspb.Message {
2409
+ getOffset(): number;
2410
+ setOffset(value: number): MsmpPaginationRequest;
2411
+ getLimit(): number;
2412
+ setLimit(value: number): MsmpPaginationRequest;
2413
+
2414
+ serializeBinary(): Uint8Array;
2415
+ toObject(includeInstance?: boolean): MsmpPaginationRequest.AsObject;
2416
+ static toObject(includeInstance: boolean, msg: MsmpPaginationRequest): MsmpPaginationRequest.AsObject;
2417
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2418
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2419
+ static serializeBinaryToWriter(message: MsmpPaginationRequest, writer: jspb.BinaryWriter): void;
2420
+ static deserializeBinary(bytes: Uint8Array): MsmpPaginationRequest;
2421
+ static deserializeBinaryFromReader(message: MsmpPaginationRequest, reader: jspb.BinaryReader): MsmpPaginationRequest;
2422
+ }
2423
+
2424
+ export namespace MsmpPaginationRequest {
2425
+ export type AsObject = {
2426
+ offset: number,
2427
+ limit: number,
2428
+ }
2429
+ }
2430
+
2431
+ }
2432
+
2433
+ export class GetMsmpOrganizationListResponse extends jspb.Message {
2434
+ clearOrganizationsList(): void;
2435
+ getOrganizationsList(): Array<GetMsmpOrganizationListResponse.MsmpOrganization>;
2436
+ setOrganizationsList(value: Array<GetMsmpOrganizationListResponse.MsmpOrganization>): GetMsmpOrganizationListResponse;
2437
+ addOrganizations(value?: GetMsmpOrganizationListResponse.MsmpOrganization, index?: number): GetMsmpOrganizationListResponse.MsmpOrganization;
2438
+
2439
+ hasMsmpPageInfo(): boolean;
2440
+ clearMsmpPageInfo(): void;
2441
+ getMsmpPageInfo(): GetMsmpOrganizationListResponse.MsmpPageInfo | undefined;
2442
+ setMsmpPageInfo(value?: GetMsmpOrganizationListResponse.MsmpPageInfo): GetMsmpOrganizationListResponse;
2443
+
2444
+ serializeBinary(): Uint8Array;
2445
+ toObject(includeInstance?: boolean): GetMsmpOrganizationListResponse.AsObject;
2446
+ static toObject(includeInstance: boolean, msg: GetMsmpOrganizationListResponse): GetMsmpOrganizationListResponse.AsObject;
2447
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2448
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2449
+ static serializeBinaryToWriter(message: GetMsmpOrganizationListResponse, writer: jspb.BinaryWriter): void;
2450
+ static deserializeBinary(bytes: Uint8Array): GetMsmpOrganizationListResponse;
2451
+ static deserializeBinaryFromReader(message: GetMsmpOrganizationListResponse, reader: jspb.BinaryReader): GetMsmpOrganizationListResponse;
2452
+ }
2453
+
2454
+ export namespace GetMsmpOrganizationListResponse {
2455
+ export type AsObject = {
2456
+ organizationsList: Array<GetMsmpOrganizationListResponse.MsmpOrganization.AsObject>,
2457
+ msmpPageInfo?: GetMsmpOrganizationListResponse.MsmpPageInfo.AsObject,
2458
+ }
2459
+
2460
+
2461
+ export class MsmpOrganization extends jspb.Message {
2462
+ getId(): string;
2463
+ setId(value: string): MsmpOrganization;
2464
+ getName(): string;
2465
+ setName(value: string): MsmpOrganization;
2466
+
2467
+ serializeBinary(): Uint8Array;
2468
+ toObject(includeInstance?: boolean): MsmpOrganization.AsObject;
2469
+ static toObject(includeInstance: boolean, msg: MsmpOrganization): MsmpOrganization.AsObject;
2470
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2471
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2472
+ static serializeBinaryToWriter(message: MsmpOrganization, writer: jspb.BinaryWriter): void;
2473
+ static deserializeBinary(bytes: Uint8Array): MsmpOrganization;
2474
+ static deserializeBinaryFromReader(message: MsmpOrganization, reader: jspb.BinaryReader): MsmpOrganization;
2475
+ }
2476
+
2477
+ export namespace MsmpOrganization {
2478
+ export type AsObject = {
2479
+ id: string,
2480
+ name: string,
2481
+ }
2482
+ }
2483
+
2484
+ export class MsmpPageInfo extends jspb.Message {
2485
+ getTotal(): number;
2486
+ setTotal(value: number): MsmpPageInfo;
2487
+ getOffset(): number;
2488
+ setOffset(value: number): MsmpPageInfo;
2489
+ getLimit(): number;
2490
+ setLimit(value: number): MsmpPageInfo;
2491
+ getHasNextPage(): boolean;
2492
+ setHasNextPage(value: boolean): MsmpPageInfo;
2493
+
2494
+ serializeBinary(): Uint8Array;
2495
+ toObject(includeInstance?: boolean): MsmpPageInfo.AsObject;
2496
+ static toObject(includeInstance: boolean, msg: MsmpPageInfo): MsmpPageInfo.AsObject;
2497
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2498
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2499
+ static serializeBinaryToWriter(message: MsmpPageInfo, writer: jspb.BinaryWriter): void;
2500
+ static deserializeBinary(bytes: Uint8Array): MsmpPageInfo;
2501
+ static deserializeBinaryFromReader(message: MsmpPageInfo, reader: jspb.BinaryReader): MsmpPageInfo;
2502
+ }
2503
+
2504
+ export namespace MsmpPageInfo {
2505
+ export type AsObject = {
2506
+ total: number,
2507
+ offset: number,
2508
+ limit: number,
2509
+ hasNextPage: boolean,
2510
+ }
2511
+ }
2512
+
2513
+ }
2514
+
2382
2515
  export enum SiteMode {
2383
2516
  UNESPECIFIED = 0,
2384
2517
  CLOUD_NATIVE = 1,