@lansweeper/multitenant-api-grpc 0.4.22 → 0.4.24

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,7 +34,9 @@ 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;
37
38
  allProfileExists: IMultitenantService_IAllProfileExists;
39
+ getSiteSubscription: IMultitenantService_IGetSiteSubscription;
38
40
  }
39
41
 
40
42
  interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
@@ -271,6 +273,15 @@ interface IMultitenantService_IGetInstallationLicenseByClientId extends grpc.Met
271
273
  responseSerialize: grpc.serialize<multitenant_pb.GetInstallationLicenseByClientIdResponse>;
272
274
  responseDeserialize: grpc.deserialize<multitenant_pb.GetInstallationLicenseByClientIdResponse>;
273
275
  }
276
+ interface IMultitenantService_IAllProfilesExist extends grpc.MethodDefinition<multitenant_pb.AllProfilesExistRequest, multitenant_pb.AllProfilesExistResponse> {
277
+ path: "/lansweeper.multitenant.v1.Multitenant/AllProfilesExist";
278
+ requestStream: false;
279
+ responseStream: false;
280
+ requestSerialize: grpc.serialize<multitenant_pb.AllProfilesExistRequest>;
281
+ requestDeserialize: grpc.deserialize<multitenant_pb.AllProfilesExistRequest>;
282
+ responseSerialize: grpc.serialize<multitenant_pb.AllProfilesExistResponse>;
283
+ responseDeserialize: grpc.deserialize<multitenant_pb.AllProfilesExistResponse>;
284
+ }
274
285
  interface IMultitenantService_IAllProfileExists extends grpc.MethodDefinition<multitenant_pb.AllProfileExistsRequest, multitenant_pb.AllProfileExistsResponse> {
275
286
  path: "/lansweeper.multitenant.v1.Multitenant/AllProfileExists";
276
287
  requestStream: false;
@@ -280,6 +291,15 @@ interface IMultitenantService_IAllProfileExists extends grpc.MethodDefinition<mu
280
291
  responseSerialize: grpc.serialize<multitenant_pb.AllProfileExistsResponse>;
281
292
  responseDeserialize: grpc.deserialize<multitenant_pb.AllProfileExistsResponse>;
282
293
  }
294
+ interface IMultitenantService_IGetSiteSubscription extends grpc.MethodDefinition<multitenant_pb.GetSiteSubscriptionRequest, multitenant_pb.GetSiteSubscriptionResponse> {
295
+ path: "/lansweeper.multitenant.v1.Multitenant/GetSiteSubscription";
296
+ requestStream: false;
297
+ responseStream: false;
298
+ requestSerialize: grpc.serialize<multitenant_pb.GetSiteSubscriptionRequest>;
299
+ requestDeserialize: grpc.deserialize<multitenant_pb.GetSiteSubscriptionRequest>;
300
+ responseSerialize: grpc.serialize<multitenant_pb.GetSiteSubscriptionResponse>;
301
+ responseDeserialize: grpc.deserialize<multitenant_pb.GetSiteSubscriptionResponse>;
302
+ }
283
303
 
284
304
  export const MultitenantService: IMultitenantService;
285
305
 
@@ -310,7 +330,9 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
310
330
  updateSiteSubscription: grpc.handleUnaryCall<multitenant_pb.UpdateSiteSubscriptionRequest, multitenant_pb.UpdateSiteSubscriptionResponse>;
311
331
  createTrialSiteAndInstaller: grpc.handleUnaryCall<multitenant_pb.CreateTrialSiteAndInstallerRequest, multitenant_pb.CreateTrialSiteAndInstallerResponse>;
312
332
  getInstallationLicenseByClientId: grpc.handleUnaryCall<multitenant_pb.GetInstallationLicenseByClientIdRequest, multitenant_pb.GetInstallationLicenseByClientIdResponse>;
333
+ allProfilesExist: grpc.handleUnaryCall<multitenant_pb.AllProfilesExistRequest, multitenant_pb.AllProfilesExistResponse>;
313
334
  allProfileExists: grpc.handleUnaryCall<multitenant_pb.AllProfileExistsRequest, multitenant_pb.AllProfileExistsResponse>;
335
+ getSiteSubscription: grpc.handleUnaryCall<multitenant_pb.GetSiteSubscriptionRequest, multitenant_pb.GetSiteSubscriptionResponse>;
314
336
  }
315
337
 
316
338
  export interface IMultitenantClient {
@@ -392,9 +414,15 @@ export interface IMultitenantClient {
392
414
  getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
393
415
  getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
394
416
  getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
417
+ allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
418
+ allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
419
+ allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
395
420
  allProfileExists(request: multitenant_pb.AllProfileExistsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
396
421
  allProfileExists(request: multitenant_pb.AllProfileExistsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
397
422
  allProfileExists(request: multitenant_pb.AllProfileExistsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
423
+ getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
424
+ getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
425
+ getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
398
426
  }
399
427
 
400
428
  export class MultitenantClient extends grpc.Client implements IMultitenantClient {
@@ -477,7 +505,13 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
477
505
  public getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
478
506
  public getInstallationLicenseByClientId(request: multitenant_pb.GetInstallationLicenseByClientIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallationLicenseByClientIdResponse) => void): grpc.ClientUnaryCall;
479
507
  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;
508
+ public allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
509
+ public allProfilesExist(request: multitenant_pb.AllProfilesExistRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfilesExistResponse) => void): grpc.ClientUnaryCall;
510
+ 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;
480
511
  public allProfileExists(request: multitenant_pb.AllProfileExistsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
481
512
  public allProfileExists(request: multitenant_pb.AllProfileExistsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.AllProfileExistsResponse) => void): grpc.ClientUnaryCall;
482
513
  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;
514
+ public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
515
+ public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
516
+ public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
483
517
  }
@@ -26,6 +26,28 @@ function deserialize_lansweeper_multitenant_v1_AllProfileExistsResponse(buffer_a
26
26
  return multitenant_pb.AllProfileExistsResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
27
  }
28
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
+
29
51
  function serialize_lansweeper_multitenant_v1_AuthorizedSitesRequest(arg) {
30
52
  if (!(arg instanceof multitenant_pb.AuthorizedSitesRequest)) {
31
53
  throw new Error('Expected argument of type lansweeper.multitenant.v1.AuthorizedSitesRequest');
@@ -356,6 +378,28 @@ function deserialize_lansweeper_multitenant_v1_GetPreviewAccountByIdResponse(buf
356
378
  return multitenant_pb.GetPreviewAccountByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
357
379
  }
358
380
 
381
+ function serialize_lansweeper_multitenant_v1_GetSiteSubscriptionRequest(arg) {
382
+ if (!(arg instanceof multitenant_pb.GetSiteSubscriptionRequest)) {
383
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteSubscriptionRequest');
384
+ }
385
+ return Buffer.from(arg.serializeBinary());
386
+ }
387
+
388
+ function deserialize_lansweeper_multitenant_v1_GetSiteSubscriptionRequest(buffer_arg) {
389
+ return multitenant_pb.GetSiteSubscriptionRequest.deserializeBinary(new Uint8Array(buffer_arg));
390
+ }
391
+
392
+ function serialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse(arg) {
393
+ if (!(arg instanceof multitenant_pb.GetSiteSubscriptionResponse)) {
394
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteSubscriptionResponse');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse(buffer_arg) {
400
+ return multitenant_pb.GetSiteSubscriptionResponse.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
359
403
  function serialize_lansweeper_multitenant_v1_GetUserPermissionsRequest(arg) {
360
404
  if (!(arg instanceof multitenant_pb.GetUserPermissionsRequest)) {
361
405
  throw new Error('Expected argument of type lansweeper.multitenant.v1.GetUserPermissionsRequest');
@@ -886,6 +930,17 @@ var MultitenantService = exports.MultitenantService = {
886
930
  responseSerialize: serialize_lansweeper_multitenant_v1_GetInstallationLicenseByClientIdResponse,
887
931
  responseDeserialize: deserialize_lansweeper_multitenant_v1_GetInstallationLicenseByClientIdResponse,
888
932
  },
933
+ allProfilesExist: {
934
+ path: '/lansweeper.multitenant.v1.Multitenant/AllProfilesExist',
935
+ requestStream: false,
936
+ responseStream: false,
937
+ requestType: multitenant_pb.AllProfilesExistRequest,
938
+ responseType: multitenant_pb.AllProfilesExistResponse,
939
+ requestSerialize: serialize_lansweeper_multitenant_v1_AllProfilesExistRequest,
940
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_AllProfilesExistRequest,
941
+ responseSerialize: serialize_lansweeper_multitenant_v1_AllProfilesExistResponse,
942
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_AllProfilesExistResponse,
943
+ },
889
944
  allProfileExists: {
890
945
  path: '/lansweeper.multitenant.v1.Multitenant/AllProfileExists',
891
946
  requestStream: false,
@@ -897,6 +952,17 @@ var MultitenantService = exports.MultitenantService = {
897
952
  responseSerialize: serialize_lansweeper_multitenant_v1_AllProfileExistsResponse,
898
953
  responseDeserialize: deserialize_lansweeper_multitenant_v1_AllProfileExistsResponse,
899
954
  },
955
+ getSiteSubscription: {
956
+ path: '/lansweeper.multitenant.v1.Multitenant/GetSiteSubscription',
957
+ requestStream: false,
958
+ responseStream: false,
959
+ requestType: multitenant_pb.GetSiteSubscriptionRequest,
960
+ responseType: multitenant_pb.GetSiteSubscriptionResponse,
961
+ requestSerialize: serialize_lansweeper_multitenant_v1_GetSiteSubscriptionRequest,
962
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteSubscriptionRequest,
963
+ responseSerialize: serialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse,
964
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse,
965
+ },
900
966
  };
901
967
 
902
968
  exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
@@ -1851,6 +1851,91 @@ export namespace AllProfileExistsResponse {
1851
1851
  }
1852
1852
  }
1853
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
+
1899
+ export class GetSiteSubscriptionRequest extends jspb.Message {
1900
+ getSiteId(): string;
1901
+ setSiteId(value: string): GetSiteSubscriptionRequest;
1902
+
1903
+ serializeBinary(): Uint8Array;
1904
+ toObject(includeInstance?: boolean): GetSiteSubscriptionRequest.AsObject;
1905
+ static toObject(includeInstance: boolean, msg: GetSiteSubscriptionRequest): GetSiteSubscriptionRequest.AsObject;
1906
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1907
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1908
+ static serializeBinaryToWriter(message: GetSiteSubscriptionRequest, writer: jspb.BinaryWriter): void;
1909
+ static deserializeBinary(bytes: Uint8Array): GetSiteSubscriptionRequest;
1910
+ static deserializeBinaryFromReader(message: GetSiteSubscriptionRequest, reader: jspb.BinaryReader): GetSiteSubscriptionRequest;
1911
+ }
1912
+
1913
+ export namespace GetSiteSubscriptionRequest {
1914
+ export type AsObject = {
1915
+ siteId: string,
1916
+ }
1917
+ }
1918
+
1919
+ export class GetSiteSubscriptionResponse extends jspb.Message {
1920
+ getType(): SubscriptionType;
1921
+ setType(value: SubscriptionType): GetSiteSubscriptionResponse;
1922
+
1923
+ serializeBinary(): Uint8Array;
1924
+ toObject(includeInstance?: boolean): GetSiteSubscriptionResponse.AsObject;
1925
+ static toObject(includeInstance: boolean, msg: GetSiteSubscriptionResponse): GetSiteSubscriptionResponse.AsObject;
1926
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1927
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1928
+ static serializeBinaryToWriter(message: GetSiteSubscriptionResponse, writer: jspb.BinaryWriter): void;
1929
+ static deserializeBinary(bytes: Uint8Array): GetSiteSubscriptionResponse;
1930
+ static deserializeBinaryFromReader(message: GetSiteSubscriptionResponse, reader: jspb.BinaryReader): GetSiteSubscriptionResponse;
1931
+ }
1932
+
1933
+ export namespace GetSiteSubscriptionResponse {
1934
+ export type AsObject = {
1935
+ type: SubscriptionType,
1936
+ }
1937
+ }
1938
+
1854
1939
  export enum SiteMode {
1855
1940
  UNESPECIFIED = 0,
1856
1941
  CLOUD_NATIVE = 1,