@lansweeper/multitenant-api-grpc 0.4.21 → 0.4.23

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.
@@ -34,6 +34,8 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
34
34
  updateSiteSubscription: IMultitenantService_IUpdateSiteSubscription;
35
35
  createTrialSiteAndInstaller: IMultitenantService_ICreateTrialSiteAndInstaller;
36
36
  getInstallationLicenseByClientId: IMultitenantService_IGetInstallationLicenseByClientId;
37
+ allProfilesExist: IMultitenantService_IAllProfilesExist;
38
+ allProfileExists: IMultitenantService_IAllProfileExists;
37
39
  }
38
40
 
39
41
  interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
@@ -270,6 +272,24 @@ interface IMultitenantService_IGetInstallationLicenseByClientId extends grpc.Met
270
272
  responseSerialize: grpc.serialize<multitenant_pb.GetInstallationLicenseByClientIdResponse>;
271
273
  responseDeserialize: grpc.deserialize<multitenant_pb.GetInstallationLicenseByClientIdResponse>;
272
274
  }
275
+ interface IMultitenantService_IAllProfilesExist extends grpc.MethodDefinition<multitenant_pb.AllProfilesExistRequest, multitenant_pb.AllProfilesExistResponse> {
276
+ path: "/lansweeper.multitenant.v1.Multitenant/AllProfilesExist";
277
+ requestStream: false;
278
+ responseStream: false;
279
+ requestSerialize: grpc.serialize<multitenant_pb.AllProfilesExistRequest>;
280
+ requestDeserialize: grpc.deserialize<multitenant_pb.AllProfilesExistRequest>;
281
+ responseSerialize: grpc.serialize<multitenant_pb.AllProfilesExistResponse>;
282
+ responseDeserialize: grpc.deserialize<multitenant_pb.AllProfilesExistResponse>;
283
+ }
284
+ interface IMultitenantService_IAllProfileExists extends grpc.MethodDefinition<multitenant_pb.AllProfileExistsRequest, multitenant_pb.AllProfileExistsResponse> {
285
+ path: "/lansweeper.multitenant.v1.Multitenant/AllProfileExists";
286
+ requestStream: false;
287
+ responseStream: false;
288
+ requestSerialize: grpc.serialize<multitenant_pb.AllProfileExistsRequest>;
289
+ requestDeserialize: grpc.deserialize<multitenant_pb.AllProfileExistsRequest>;
290
+ responseSerialize: grpc.serialize<multitenant_pb.AllProfileExistsResponse>;
291
+ responseDeserialize: grpc.deserialize<multitenant_pb.AllProfileExistsResponse>;
292
+ }
273
293
 
274
294
  export const MultitenantService: IMultitenantService;
275
295
 
@@ -300,6 +320,8 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
300
320
  updateSiteSubscription: grpc.handleUnaryCall<multitenant_pb.UpdateSiteSubscriptionRequest, multitenant_pb.UpdateSiteSubscriptionResponse>;
301
321
  createTrialSiteAndInstaller: grpc.handleUnaryCall<multitenant_pb.CreateTrialSiteAndInstallerRequest, multitenant_pb.CreateTrialSiteAndInstallerResponse>;
302
322
  getInstallationLicenseByClientId: grpc.handleUnaryCall<multitenant_pb.GetInstallationLicenseByClientIdRequest, multitenant_pb.GetInstallationLicenseByClientIdResponse>;
323
+ allProfilesExist: grpc.handleUnaryCall<multitenant_pb.AllProfilesExistRequest, multitenant_pb.AllProfilesExistResponse>;
324
+ allProfileExists: grpc.handleUnaryCall<multitenant_pb.AllProfileExistsRequest, multitenant_pb.AllProfileExistsResponse>;
303
325
  }
304
326
 
305
327
  export interface IMultitenantClient {
@@ -381,6 +403,12 @@ export interface IMultitenantClient {
381
403
  getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
382
404
  getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
383
405
  getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
406
+ allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
407
+ allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
408
+ allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
409
+ allProfileExists(request: multitenant_pb.AllProfileExistsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
410
+ allProfileExists(request: multitenant_pb.AllProfileExistsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
411
+ allProfileExists(request: multitenant_pb.AllProfileExistsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
384
412
  }
385
413
 
386
414
  export class MultitenantClient extends grpc.Client implements IMultitenantClient {
@@ -463,4 +491,10 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
463
491
  public getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
464
492
  public getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
465
493
  public getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
494
+ public allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
495
+ public allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
496
+ public allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
497
+ public allProfileExists(request: multitenant_pb.AllProfileExistsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
498
+ public allProfileExists(request: multitenant_pb.AllProfileExistsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
499
+ public allProfileExists(request: multitenant_pb.AllProfileExistsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
466
500
  }
@@ -4,6 +4,50 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var multitenant_pb = require('./multitenant_pb.js');
6
6
 
7
+ function serialize_lansweeper_multitenant_v1_AllProfileExistsRequest(arg) {
8
+ if (!(arg instanceof multitenant_pb.AllProfileExistsRequest)) {
9
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.AllProfileExistsRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_lansweeper_multitenant_v1_AllProfileExistsRequest(buffer_arg) {
15
+ return multitenant_pb.AllProfileExistsRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_lansweeper_multitenant_v1_AllProfileExistsResponse(arg) {
19
+ if (!(arg instanceof multitenant_pb.AllProfileExistsResponse)) {
20
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.AllProfileExistsResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_lansweeper_multitenant_v1_AllProfileExistsResponse(buffer_arg) {
26
+ return multitenant_pb.AllProfileExistsResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_lansweeper_multitenant_v1_AllProfilesExistRequest(arg) {
30
+ if (!(arg instanceof multitenant_pb.AllProfilesExistRequest)) {
31
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.AllProfilesExistRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_lansweeper_multitenant_v1_AllProfilesExistRequest(buffer_arg) {
37
+ return multitenant_pb.AllProfilesExistRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_lansweeper_multitenant_v1_AllProfilesExistResponse(arg) {
41
+ if (!(arg instanceof multitenant_pb.AllProfilesExistResponse)) {
42
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.AllProfilesExistResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_lansweeper_multitenant_v1_AllProfilesExistResponse(buffer_arg) {
48
+ return multitenant_pb.AllProfilesExistResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
7
51
  function serialize_lansweeper_multitenant_v1_AuthorizedSitesRequest(arg) {
8
52
  if (!(arg instanceof multitenant_pb.AuthorizedSitesRequest)) {
9
53
  throw new Error('Expected argument of type lansweeper.multitenant.v1.AuthorizedSitesRequest');
@@ -864,6 +908,28 @@ var MultitenantService = exports.MultitenantService = {
864
908
  responseSerialize: serialize_lansweeper_multitenant_v1_GetInstallationLicenseByClientIdResponse,
865
909
  responseDeserialize: deserialize_lansweeper_multitenant_v1_GetInstallationLicenseByClientIdResponse,
866
910
  },
911
+ allProfilesExist: {
912
+ path: '/lansweeper.multitenant.v1.Multitenant/AllProfilesExist',
913
+ requestStream: false,
914
+ responseStream: false,
915
+ requestType: multitenant_pb.AllProfilesExistRequest,
916
+ responseType: multitenant_pb.AllProfilesExistResponse,
917
+ requestSerialize: serialize_lansweeper_multitenant_v1_AllProfilesExistRequest,
918
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_AllProfilesExistRequest,
919
+ responseSerialize: serialize_lansweeper_multitenant_v1_AllProfilesExistResponse,
920
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_AllProfilesExistResponse,
921
+ },
922
+ allProfileExists: {
923
+ path: '/lansweeper.multitenant.v1.Multitenant/AllProfileExists',
924
+ requestStream: false,
925
+ responseStream: false,
926
+ requestType: multitenant_pb.AllProfileExistsRequest,
927
+ responseType: multitenant_pb.AllProfileExistsResponse,
928
+ requestSerialize: serialize_lansweeper_multitenant_v1_AllProfileExistsRequest,
929
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_AllProfileExistsRequest,
930
+ responseSerialize: serialize_lansweeper_multitenant_v1_AllProfileExistsResponse,
931
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_AllProfileExistsResponse,
932
+ },
867
933
  };
868
934
 
869
935
  exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
@@ -1806,6 +1806,96 @@ export namespace GetInstallationLicenseByClientIdResponse {
1806
1806
  }
1807
1807
  }
1808
1808
 
1809
+ export class AllProfileExistsRequest extends jspb.Message {
1810
+ getSiteId(): string;
1811
+ setSiteId(value: string): AllProfileExistsRequest;
1812
+ clearEmailsList(): void;
1813
+ getEmailsList(): Array<string>;
1814
+ setEmailsList(value: Array<string>): AllProfileExistsRequest;
1815
+ addEmails(value: string, index?: number): string;
1816
+
1817
+ serializeBinary(): Uint8Array;
1818
+ toObject(includeInstance?: boolean): AllProfileExistsRequest.AsObject;
1819
+ static toObject(includeInstance: boolean, msg: AllProfileExistsRequest): AllProfileExistsRequest.AsObject;
1820
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1821
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1822
+ static serializeBinaryToWriter(message: AllProfileExistsRequest, writer: jspb.BinaryWriter): void;
1823
+ static deserializeBinary(bytes: Uint8Array): AllProfileExistsRequest;
1824
+ static deserializeBinaryFromReader(message: AllProfileExistsRequest, reader: jspb.BinaryReader): AllProfileExistsRequest;
1825
+ }
1826
+
1827
+ export namespace AllProfileExistsRequest {
1828
+ export type AsObject = {
1829
+ siteId: string,
1830
+ emailsList: Array<string>,
1831
+ }
1832
+ }
1833
+
1834
+ export class AllProfileExistsResponse extends jspb.Message {
1835
+ getAll(): boolean;
1836
+ setAll(value: boolean): AllProfileExistsResponse;
1837
+
1838
+ serializeBinary(): Uint8Array;
1839
+ toObject(includeInstance?: boolean): AllProfileExistsResponse.AsObject;
1840
+ static toObject(includeInstance: boolean, msg: AllProfileExistsResponse): AllProfileExistsResponse.AsObject;
1841
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1842
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1843
+ static serializeBinaryToWriter(message: AllProfileExistsResponse, writer: jspb.BinaryWriter): void;
1844
+ static deserializeBinary(bytes: Uint8Array): AllProfileExistsResponse;
1845
+ static deserializeBinaryFromReader(message: AllProfileExistsResponse, reader: jspb.BinaryReader): AllProfileExistsResponse;
1846
+ }
1847
+
1848
+ export namespace AllProfileExistsResponse {
1849
+ export type AsObject = {
1850
+ all: boolean,
1851
+ }
1852
+ }
1853
+
1854
+ export class AllProfilesExistRequest extends jspb.Message {
1855
+ getSiteId(): string;
1856
+ setSiteId(value: string): AllProfilesExistRequest;
1857
+ clearEmailsList(): void;
1858
+ getEmailsList(): Array<string>;
1859
+ setEmailsList(value: Array<string>): AllProfilesExistRequest;
1860
+ addEmails(value: string, index?: number): string;
1861
+
1862
+ serializeBinary(): Uint8Array;
1863
+ toObject(includeInstance?: boolean): AllProfilesExistRequest.AsObject;
1864
+ static toObject(includeInstance: boolean, msg: AllProfilesExistRequest): AllProfilesExistRequest.AsObject;
1865
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1866
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1867
+ static serializeBinaryToWriter(message: AllProfilesExistRequest, writer: jspb.BinaryWriter): void;
1868
+ static deserializeBinary(bytes: Uint8Array): AllProfilesExistRequest;
1869
+ static deserializeBinaryFromReader(message: AllProfilesExistRequest, reader: jspb.BinaryReader): AllProfilesExistRequest;
1870
+ }
1871
+
1872
+ export namespace AllProfilesExistRequest {
1873
+ export type AsObject = {
1874
+ siteId: string,
1875
+ emailsList: Array<string>,
1876
+ }
1877
+ }
1878
+
1879
+ export class AllProfilesExistResponse extends jspb.Message {
1880
+ getAll(): boolean;
1881
+ setAll(value: boolean): AllProfilesExistResponse;
1882
+
1883
+ serializeBinary(): Uint8Array;
1884
+ toObject(includeInstance?: boolean): AllProfilesExistResponse.AsObject;
1885
+ static toObject(includeInstance: boolean, msg: AllProfilesExistResponse): AllProfilesExistResponse.AsObject;
1886
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1887
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1888
+ static serializeBinaryToWriter(message: AllProfilesExistResponse, writer: jspb.BinaryWriter): void;
1889
+ static deserializeBinary(bytes: Uint8Array): AllProfilesExistResponse;
1890
+ static deserializeBinaryFromReader(message: AllProfilesExistResponse, reader: jspb.BinaryReader): AllProfilesExistResponse;
1891
+ }
1892
+
1893
+ export namespace AllProfilesExistResponse {
1894
+ export type AsObject = {
1895
+ all: boolean,
1896
+ }
1897
+ }
1898
+
1809
1899
  export enum SiteMode {
1810
1900
  UNESPECIFIED = 0,
1811
1901
  CLOUD_NATIVE = 1,