Initial commit.

This commit is contained in:
Orne Brocaar
2022-04-06 21:18:32 +01:00
commit 96fe672fc7
709 changed files with 335482 additions and 0 deletions

View File

@ -0,0 +1,536 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_application_pb from '../api/application_pb';
export class ApplicationServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_application_pb.CreateApplicationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.CreateApplicationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.CreateApplicationResponse>;
get(
request: api_application_pb.GetApplicationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetApplicationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetApplicationResponse>;
update(
request: api_application_pb.UpdateApplicationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
delete(
request: api_application_pb.DeleteApplicationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
list(
request: api_application_pb.ListApplicationsRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.ListApplicationsResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.ListApplicationsResponse>;
listIntegrations(
request: api_application_pb.ListIntegrationsRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.ListIntegrationsResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.ListIntegrationsResponse>;
createHttpIntegration(
request: api_application_pb.CreateHttpIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getHttpIntegration(
request: api_application_pb.GetHttpIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetHttpIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetHttpIntegrationResponse>;
updateHttpIntegration(
request: api_application_pb.UpdateHttpIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteHttpIntegration(
request: api_application_pb.DeleteHttpIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createInfluxDbIntegration(
request: api_application_pb.CreateInfluxDbIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getInfluxDbIntegration(
request: api_application_pb.GetInfluxDbIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetInfluxDbIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetInfluxDbIntegrationResponse>;
updateInfluxDbIntegration(
request: api_application_pb.UpdateInfluxDbIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteInfluxDbIntegration(
request: api_application_pb.DeleteInfluxDbIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createThingsBoardIntegration(
request: api_application_pb.CreateThingsBoardIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getThingsBoardIntegration(
request: api_application_pb.GetThingsBoardIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetThingsBoardIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetThingsBoardIntegrationResponse>;
updateThingsBoardIntegration(
request: api_application_pb.UpdateThingsBoardIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteThingsBoardIntegration(
request: api_application_pb.DeleteThingsBoardIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createMyDevicesIntegration(
request: api_application_pb.CreateMyDevicesIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getMyDevicesIntegration(
request: api_application_pb.GetMyDevicesIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetMyDevicesIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetMyDevicesIntegrationResponse>;
updateMyDevicesIntegration(
request: api_application_pb.UpdateMyDevicesIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteMyDevicesIntegration(
request: api_application_pb.DeleteMyDevicesIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createLoraCloudIntegration(
request: api_application_pb.CreateLoraCloudIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getLoraCloudIntegration(
request: api_application_pb.GetLoraCloudIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetLoraCloudIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetLoraCloudIntegrationResponse>;
updateLoraCloudIntegration(
request: api_application_pb.UpdateLoraCloudIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteLoraCloudIntegration(
request: api_application_pb.DeleteLoraCloudIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createGcpPubSubIntegration(
request: api_application_pb.CreateGcpPubSubIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getGcpPubSubIntegration(
request: api_application_pb.GetGcpPubSubIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetGcpPubSubIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetGcpPubSubIntegrationResponse>;
updateGcpPubSubIntegration(
request: api_application_pb.UpdateGcpPubSubIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteGcpPubSubIntegration(
request: api_application_pb.DeleteGcpPubSubIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createAwsSnsIntegration(
request: api_application_pb.CreateAwsSnsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getAwsSnsIntegration(
request: api_application_pb.GetAwsSnsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetAwsSnsIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetAwsSnsIntegrationResponse>;
updateAwsSnsIntegration(
request: api_application_pb.UpdateAwsSnsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteAwsSnsIntegration(
request: api_application_pb.DeleteAwsSnsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createAzureServiceBusIntegration(
request: api_application_pb.CreateAzureServiceBusIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getAzureServiceBusIntegration(
request: api_application_pb.GetAzureServiceBusIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetAzureServiceBusIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetAzureServiceBusIntegrationResponse>;
updateAzureServiceBusIntegration(
request: api_application_pb.UpdateAzureServiceBusIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteAzureServiceBusIntegration(
request: api_application_pb.DeleteAzureServiceBusIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
createPilotThingsIntegration(
request: api_application_pb.CreatePilotThingsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getPilotThingsIntegration(
request: api_application_pb.GetPilotThingsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GetPilotThingsIntegrationResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GetPilotThingsIntegrationResponse>;
updatePilotThingsIntegration(
request: api_application_pb.UpdatePilotThingsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deletePilotThingsIntegration(
request: api_application_pb.DeletePilotThingsIntegrationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
generateMqttIntegrationClientCertificate(
request: api_application_pb.GenerateMqttIntegrationClientCertificateRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_application_pb.GenerateMqttIntegrationClientCertificateResponse) => void
): grpcWeb.ClientReadableStream<api_application_pb.GenerateMqttIntegrationClientCertificateResponse>;
}
export class ApplicationServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_application_pb.CreateApplicationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.CreateApplicationResponse>;
get(
request: api_application_pb.GetApplicationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetApplicationResponse>;
update(
request: api_application_pb.UpdateApplicationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
delete(
request: api_application_pb.DeleteApplicationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
list(
request: api_application_pb.ListApplicationsRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.ListApplicationsResponse>;
listIntegrations(
request: api_application_pb.ListIntegrationsRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.ListIntegrationsResponse>;
createHttpIntegration(
request: api_application_pb.CreateHttpIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getHttpIntegration(
request: api_application_pb.GetHttpIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetHttpIntegrationResponse>;
updateHttpIntegration(
request: api_application_pb.UpdateHttpIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteHttpIntegration(
request: api_application_pb.DeleteHttpIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createInfluxDbIntegration(
request: api_application_pb.CreateInfluxDbIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getInfluxDbIntegration(
request: api_application_pb.GetInfluxDbIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetInfluxDbIntegrationResponse>;
updateInfluxDbIntegration(
request: api_application_pb.UpdateInfluxDbIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteInfluxDbIntegration(
request: api_application_pb.DeleteInfluxDbIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createThingsBoardIntegration(
request: api_application_pb.CreateThingsBoardIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getThingsBoardIntegration(
request: api_application_pb.GetThingsBoardIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetThingsBoardIntegrationResponse>;
updateThingsBoardIntegration(
request: api_application_pb.UpdateThingsBoardIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteThingsBoardIntegration(
request: api_application_pb.DeleteThingsBoardIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createMyDevicesIntegration(
request: api_application_pb.CreateMyDevicesIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getMyDevicesIntegration(
request: api_application_pb.GetMyDevicesIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetMyDevicesIntegrationResponse>;
updateMyDevicesIntegration(
request: api_application_pb.UpdateMyDevicesIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteMyDevicesIntegration(
request: api_application_pb.DeleteMyDevicesIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createLoraCloudIntegration(
request: api_application_pb.CreateLoraCloudIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getLoraCloudIntegration(
request: api_application_pb.GetLoraCloudIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetLoraCloudIntegrationResponse>;
updateLoraCloudIntegration(
request: api_application_pb.UpdateLoraCloudIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteLoraCloudIntegration(
request: api_application_pb.DeleteLoraCloudIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createGcpPubSubIntegration(
request: api_application_pb.CreateGcpPubSubIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getGcpPubSubIntegration(
request: api_application_pb.GetGcpPubSubIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetGcpPubSubIntegrationResponse>;
updateGcpPubSubIntegration(
request: api_application_pb.UpdateGcpPubSubIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteGcpPubSubIntegration(
request: api_application_pb.DeleteGcpPubSubIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createAwsSnsIntegration(
request: api_application_pb.CreateAwsSnsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getAwsSnsIntegration(
request: api_application_pb.GetAwsSnsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetAwsSnsIntegrationResponse>;
updateAwsSnsIntegration(
request: api_application_pb.UpdateAwsSnsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteAwsSnsIntegration(
request: api_application_pb.DeleteAwsSnsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createAzureServiceBusIntegration(
request: api_application_pb.CreateAzureServiceBusIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getAzureServiceBusIntegration(
request: api_application_pb.GetAzureServiceBusIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetAzureServiceBusIntegrationResponse>;
updateAzureServiceBusIntegration(
request: api_application_pb.UpdateAzureServiceBusIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteAzureServiceBusIntegration(
request: api_application_pb.DeleteAzureServiceBusIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
createPilotThingsIntegration(
request: api_application_pb.CreatePilotThingsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getPilotThingsIntegration(
request: api_application_pb.GetPilotThingsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GetPilotThingsIntegrationResponse>;
updatePilotThingsIntegration(
request: api_application_pb.UpdatePilotThingsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deletePilotThingsIntegration(
request: api_application_pb.DeletePilotThingsIntegrationRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
generateMqttIntegrationClientCertificate(
request: api_application_pb.GenerateMqttIntegrationClientCertificateRequest,
metadata?: grpcWeb.Metadata
): Promise<api_application_pb.GenerateMqttIntegrationClientCertificateResponse>;
}

File diff suppressed because it is too large Load Diff

1614
api/grpc-web/api/application_pb.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

236
api/grpc-web/api/device_grpc_web_pb.d.ts vendored Normal file
View File

@ -0,0 +1,236 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_device_pb from '../api/device_pb';
export class DeviceServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_device_pb.CreateDeviceRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
get(
request: api_device_pb.GetDeviceRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.GetDeviceResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceResponse>;
update(
request: api_device_pb.UpdateDeviceRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
delete(
request: api_device_pb.DeleteDeviceRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
list(
request: api_device_pb.ListDevicesRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.ListDevicesResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.ListDevicesResponse>;
createKeys(
request: api_device_pb.CreateDeviceKeysRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getKeys(
request: api_device_pb.GetDeviceKeysRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.GetDeviceKeysResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceKeysResponse>;
updateKeys(
request: api_device_pb.UpdateDeviceKeysRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteKeys(
request: api_device_pb.DeleteDeviceKeysRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
flushDevNonces(
request: api_device_pb.FlushDevNoncesRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
activate(
request: api_device_pb.ActivateDeviceRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deactivate(
request: api_device_pb.DeactivateDeviceRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getActivation(
request: api_device_pb.GetDeviceActivationRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.GetDeviceActivationResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceActivationResponse>;
getRandomDevAddr(
request: api_device_pb.GetRandomDevAddrRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.GetRandomDevAddrResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.GetRandomDevAddrResponse>;
getStats(
request: api_device_pb.GetDeviceStatsRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.GetDeviceStatsResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceStatsResponse>;
enqueue(
request: api_device_pb.EnqueueDeviceQueueItemRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.EnqueueDeviceQueueItemResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.EnqueueDeviceQueueItemResponse>;
flushQueue(
request: api_device_pb.FlushDeviceQueueRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getQueue(
request: api_device_pb.GetDeviceQueueItemsRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_pb.GetDeviceQueueItemsResponse) => void
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceQueueItemsResponse>;
}
export class DeviceServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_device_pb.CreateDeviceRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
get(
request: api_device_pb.GetDeviceRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.GetDeviceResponse>;
update(
request: api_device_pb.UpdateDeviceRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
delete(
request: api_device_pb.DeleteDeviceRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
list(
request: api_device_pb.ListDevicesRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.ListDevicesResponse>;
createKeys(
request: api_device_pb.CreateDeviceKeysRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getKeys(
request: api_device_pb.GetDeviceKeysRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.GetDeviceKeysResponse>;
updateKeys(
request: api_device_pb.UpdateDeviceKeysRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteKeys(
request: api_device_pb.DeleteDeviceKeysRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
flushDevNonces(
request: api_device_pb.FlushDevNoncesRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
activate(
request: api_device_pb.ActivateDeviceRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deactivate(
request: api_device_pb.DeactivateDeviceRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getActivation(
request: api_device_pb.GetDeviceActivationRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.GetDeviceActivationResponse>;
getRandomDevAddr(
request: api_device_pb.GetRandomDevAddrRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.GetRandomDevAddrResponse>;
getStats(
request: api_device_pb.GetDeviceStatsRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.GetDeviceStatsResponse>;
enqueue(
request: api_device_pb.EnqueueDeviceQueueItemRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.EnqueueDeviceQueueItemResponse>;
flushQueue(
request: api_device_pb.FlushDeviceQueueRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getQueue(
request: api_device_pb.GetDeviceQueueItemsRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_pb.GetDeviceQueueItemsResponse>;
}

File diff suppressed because it is too large Load Diff

879
api/grpc-web/api/device_pb.d.ts vendored Normal file
View File

@ -0,0 +1,879 @@
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
export class Device extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): Device;
getName(): string;
setName(value: string): Device;
getDescription(): string;
setDescription(value: string): Device;
getApplicationId(): string;
setApplicationId(value: string): Device;
getDeviceProfileId(): string;
setDeviceProfileId(value: string): Device;
getSkipFcntCheck(): boolean;
setSkipFcntCheck(value: boolean): Device;
getIsDisabled(): boolean;
setIsDisabled(value: boolean): Device;
getVariablesMap(): jspb.Map<string, string>;
clearVariablesMap(): Device;
getTagsMap(): jspb.Map<string, string>;
clearTagsMap(): Device;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Device.AsObject;
static toObject(includeInstance: boolean, msg: Device): Device.AsObject;
static serializeBinaryToWriter(message: Device, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Device;
static deserializeBinaryFromReader(message: Device, reader: jspb.BinaryReader): Device;
}
export namespace Device {
export type AsObject = {
devEui: string,
name: string,
description: string,
applicationId: string,
deviceProfileId: string,
skipFcntCheck: boolean,
isDisabled: boolean,
variablesMap: Array<[string, string]>,
tagsMap: Array<[string, string]>,
}
}
export class DeviceStatus extends jspb.Message {
getMargin(): number;
setMargin(value: number): DeviceStatus;
getExternalPowerSource(): boolean;
setExternalPowerSource(value: boolean): DeviceStatus;
getBatteryLevel(): number;
setBatteryLevel(value: number): DeviceStatus;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceStatus.AsObject;
static toObject(includeInstance: boolean, msg: DeviceStatus): DeviceStatus.AsObject;
static serializeBinaryToWriter(message: DeviceStatus, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceStatus;
static deserializeBinaryFromReader(message: DeviceStatus, reader: jspb.BinaryReader): DeviceStatus;
}
export namespace DeviceStatus {
export type AsObject = {
margin: number,
externalPowerSource: boolean,
batteryLevel: number,
}
}
export class DeviceListItem extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): DeviceListItem;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem;
hasCreatedAt(): boolean;
clearCreatedAt(): DeviceListItem;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem;
hasUpdatedAt(): boolean;
clearUpdatedAt(): DeviceListItem;
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem;
hasLastSeenAt(): boolean;
clearLastSeenAt(): DeviceListItem;
getName(): string;
setName(value: string): DeviceListItem;
getDescription(): string;
setDescription(value: string): DeviceListItem;
getDeviceProfileId(): string;
setDeviceProfileId(value: string): DeviceListItem;
getDeviceProfileName(): string;
setDeviceProfileName(value: string): DeviceListItem;
getDeviceStatus(): DeviceStatus | undefined;
setDeviceStatus(value?: DeviceStatus): DeviceListItem;
hasDeviceStatus(): boolean;
clearDeviceStatus(): DeviceListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceListItem.AsObject;
static toObject(includeInstance: boolean, msg: DeviceListItem): DeviceListItem.AsObject;
static serializeBinaryToWriter(message: DeviceListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceListItem;
static deserializeBinaryFromReader(message: DeviceListItem, reader: jspb.BinaryReader): DeviceListItem;
}
export namespace DeviceListItem {
export type AsObject = {
devEui: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
name: string,
description: string,
deviceProfileId: string,
deviceProfileName: string,
deviceStatus?: DeviceStatus.AsObject,
}
}
export class DeviceKeys extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): DeviceKeys;
getNwkKey(): string;
setNwkKey(value: string): DeviceKeys;
getAppKey(): string;
setAppKey(value: string): DeviceKeys;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceKeys.AsObject;
static toObject(includeInstance: boolean, msg: DeviceKeys): DeviceKeys.AsObject;
static serializeBinaryToWriter(message: DeviceKeys, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceKeys;
static deserializeBinaryFromReader(message: DeviceKeys, reader: jspb.BinaryReader): DeviceKeys;
}
export namespace DeviceKeys {
export type AsObject = {
devEui: string,
nwkKey: string,
appKey: string,
}
}
export class CreateDeviceRequest extends jspb.Message {
getDevice(): Device | undefined;
setDevice(value?: Device): CreateDeviceRequest;
hasDevice(): boolean;
clearDevice(): CreateDeviceRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateDeviceRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateDeviceRequest): CreateDeviceRequest.AsObject;
static serializeBinaryToWriter(message: CreateDeviceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateDeviceRequest;
static deserializeBinaryFromReader(message: CreateDeviceRequest, reader: jspb.BinaryReader): CreateDeviceRequest;
}
export namespace CreateDeviceRequest {
export type AsObject = {
device?: Device.AsObject,
}
}
export class GetDeviceRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): GetDeviceRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceRequest): GetDeviceRequest.AsObject;
static serializeBinaryToWriter(message: GetDeviceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceRequest;
static deserializeBinaryFromReader(message: GetDeviceRequest, reader: jspb.BinaryReader): GetDeviceRequest;
}
export namespace GetDeviceRequest {
export type AsObject = {
devEui: string,
}
}
export class GetDeviceResponse extends jspb.Message {
getDevice(): Device | undefined;
setDevice(value?: Device): GetDeviceResponse;
hasDevice(): boolean;
clearDevice(): GetDeviceResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetDeviceResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetDeviceResponse;
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse;
hasLastSeenAt(): boolean;
clearLastSeenAt(): GetDeviceResponse;
getDeviceStatus(): DeviceStatus | undefined;
setDeviceStatus(value?: DeviceStatus): GetDeviceResponse;
hasDeviceStatus(): boolean;
clearDeviceStatus(): GetDeviceResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceResponse): GetDeviceResponse.AsObject;
static serializeBinaryToWriter(message: GetDeviceResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceResponse;
static deserializeBinaryFromReader(message: GetDeviceResponse, reader: jspb.BinaryReader): GetDeviceResponse;
}
export namespace GetDeviceResponse {
export type AsObject = {
device?: Device.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
deviceStatus?: DeviceStatus.AsObject,
}
}
export class UpdateDeviceRequest extends jspb.Message {
getDevice(): Device | undefined;
setDevice(value?: Device): UpdateDeviceRequest;
hasDevice(): boolean;
clearDevice(): UpdateDeviceRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateDeviceRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateDeviceRequest): UpdateDeviceRequest.AsObject;
static serializeBinaryToWriter(message: UpdateDeviceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateDeviceRequest;
static deserializeBinaryFromReader(message: UpdateDeviceRequest, reader: jspb.BinaryReader): UpdateDeviceRequest;
}
export namespace UpdateDeviceRequest {
export type AsObject = {
device?: Device.AsObject,
}
}
export class DeleteDeviceRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): DeleteDeviceRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteDeviceRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteDeviceRequest): DeleteDeviceRequest.AsObject;
static serializeBinaryToWriter(message: DeleteDeviceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteDeviceRequest;
static deserializeBinaryFromReader(message: DeleteDeviceRequest, reader: jspb.BinaryReader): DeleteDeviceRequest;
}
export namespace DeleteDeviceRequest {
export type AsObject = {
devEui: string,
}
}
export class ListDevicesRequest extends jspb.Message {
getLimit(): number;
setLimit(value: number): ListDevicesRequest;
getOffset(): number;
setOffset(value: number): ListDevicesRequest;
getSearch(): string;
setSearch(value: string): ListDevicesRequest;
getApplicationId(): string;
setApplicationId(value: string): ListDevicesRequest;
getMulticastGroupId(): string;
setMulticastGroupId(value: string): ListDevicesRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListDevicesRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListDevicesRequest): ListDevicesRequest.AsObject;
static serializeBinaryToWriter(message: ListDevicesRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListDevicesRequest;
static deserializeBinaryFromReader(message: ListDevicesRequest, reader: jspb.BinaryReader): ListDevicesRequest;
}
export namespace ListDevicesRequest {
export type AsObject = {
limit: number,
offset: number,
search: string,
applicationId: string,
multicastGroupId: string,
}
}
export class ListDevicesResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListDevicesResponse;
getResultList(): Array<DeviceListItem>;
setResultList(value: Array<DeviceListItem>): ListDevicesResponse;
clearResultList(): ListDevicesResponse;
addResult(value?: DeviceListItem, index?: number): DeviceListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListDevicesResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListDevicesResponse): ListDevicesResponse.AsObject;
static serializeBinaryToWriter(message: ListDevicesResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListDevicesResponse;
static deserializeBinaryFromReader(message: ListDevicesResponse, reader: jspb.BinaryReader): ListDevicesResponse;
}
export namespace ListDevicesResponse {
export type AsObject = {
totalCount: number,
resultList: Array<DeviceListItem.AsObject>,
}
}
export class CreateDeviceKeysRequest extends jspb.Message {
getDeviceKeys(): DeviceKeys | undefined;
setDeviceKeys(value?: DeviceKeys): CreateDeviceKeysRequest;
hasDeviceKeys(): boolean;
clearDeviceKeys(): CreateDeviceKeysRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateDeviceKeysRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateDeviceKeysRequest): CreateDeviceKeysRequest.AsObject;
static serializeBinaryToWriter(message: CreateDeviceKeysRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateDeviceKeysRequest;
static deserializeBinaryFromReader(message: CreateDeviceKeysRequest, reader: jspb.BinaryReader): CreateDeviceKeysRequest;
}
export namespace CreateDeviceKeysRequest {
export type AsObject = {
deviceKeys?: DeviceKeys.AsObject,
}
}
export class GetDeviceKeysRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): GetDeviceKeysRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceKeysRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceKeysRequest): GetDeviceKeysRequest.AsObject;
static serializeBinaryToWriter(message: GetDeviceKeysRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceKeysRequest;
static deserializeBinaryFromReader(message: GetDeviceKeysRequest, reader: jspb.BinaryReader): GetDeviceKeysRequest;
}
export namespace GetDeviceKeysRequest {
export type AsObject = {
devEui: string,
}
}
export class GetDeviceKeysResponse extends jspb.Message {
getDeviceKeys(): DeviceKeys | undefined;
setDeviceKeys(value?: DeviceKeys): GetDeviceKeysResponse;
hasDeviceKeys(): boolean;
clearDeviceKeys(): GetDeviceKeysResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceKeysResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetDeviceKeysResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceKeysResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetDeviceKeysResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceKeysResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceKeysResponse): GetDeviceKeysResponse.AsObject;
static serializeBinaryToWriter(message: GetDeviceKeysResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceKeysResponse;
static deserializeBinaryFromReader(message: GetDeviceKeysResponse, reader: jspb.BinaryReader): GetDeviceKeysResponse;
}
export namespace GetDeviceKeysResponse {
export type AsObject = {
deviceKeys?: DeviceKeys.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class UpdateDeviceKeysRequest extends jspb.Message {
getDeviceKeys(): DeviceKeys | undefined;
setDeviceKeys(value?: DeviceKeys): UpdateDeviceKeysRequest;
hasDeviceKeys(): boolean;
clearDeviceKeys(): UpdateDeviceKeysRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateDeviceKeysRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateDeviceKeysRequest): UpdateDeviceKeysRequest.AsObject;
static serializeBinaryToWriter(message: UpdateDeviceKeysRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateDeviceKeysRequest;
static deserializeBinaryFromReader(message: UpdateDeviceKeysRequest, reader: jspb.BinaryReader): UpdateDeviceKeysRequest;
}
export namespace UpdateDeviceKeysRequest {
export type AsObject = {
deviceKeys?: DeviceKeys.AsObject,
}
}
export class DeleteDeviceKeysRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): DeleteDeviceKeysRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteDeviceKeysRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteDeviceKeysRequest): DeleteDeviceKeysRequest.AsObject;
static serializeBinaryToWriter(message: DeleteDeviceKeysRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteDeviceKeysRequest;
static deserializeBinaryFromReader(message: DeleteDeviceKeysRequest, reader: jspb.BinaryReader): DeleteDeviceKeysRequest;
}
export namespace DeleteDeviceKeysRequest {
export type AsObject = {
devEui: string,
}
}
export class DeviceActivation extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): DeviceActivation;
getDevAddr(): string;
setDevAddr(value: string): DeviceActivation;
getAppSKey(): string;
setAppSKey(value: string): DeviceActivation;
getNwkSEncKey(): string;
setNwkSEncKey(value: string): DeviceActivation;
getSNwkSIntKey(): string;
setSNwkSIntKey(value: string): DeviceActivation;
getFNwkSIntKey(): string;
setFNwkSIntKey(value: string): DeviceActivation;
getFCntUp(): number;
setFCntUp(value: number): DeviceActivation;
getNFCntDown(): number;
setNFCntDown(value: number): DeviceActivation;
getAFCntDown(): number;
setAFCntDown(value: number): DeviceActivation;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceActivation.AsObject;
static toObject(includeInstance: boolean, msg: DeviceActivation): DeviceActivation.AsObject;
static serializeBinaryToWriter(message: DeviceActivation, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceActivation;
static deserializeBinaryFromReader(message: DeviceActivation, reader: jspb.BinaryReader): DeviceActivation;
}
export namespace DeviceActivation {
export type AsObject = {
devEui: string,
devAddr: string,
appSKey: string,
nwkSEncKey: string,
sNwkSIntKey: string,
fNwkSIntKey: string,
fCntUp: number,
nFCntDown: number,
aFCntDown: number,
}
}
export class ActivateDeviceRequest extends jspb.Message {
getDeviceActivation(): DeviceActivation | undefined;
setDeviceActivation(value?: DeviceActivation): ActivateDeviceRequest;
hasDeviceActivation(): boolean;
clearDeviceActivation(): ActivateDeviceRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ActivateDeviceRequest.AsObject;
static toObject(includeInstance: boolean, msg: ActivateDeviceRequest): ActivateDeviceRequest.AsObject;
static serializeBinaryToWriter(message: ActivateDeviceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ActivateDeviceRequest;
static deserializeBinaryFromReader(message: ActivateDeviceRequest, reader: jspb.BinaryReader): ActivateDeviceRequest;
}
export namespace ActivateDeviceRequest {
export type AsObject = {
deviceActivation?: DeviceActivation.AsObject,
}
}
export class DeactivateDeviceRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): DeactivateDeviceRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeactivateDeviceRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeactivateDeviceRequest): DeactivateDeviceRequest.AsObject;
static serializeBinaryToWriter(message: DeactivateDeviceRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeactivateDeviceRequest;
static deserializeBinaryFromReader(message: DeactivateDeviceRequest, reader: jspb.BinaryReader): DeactivateDeviceRequest;
}
export namespace DeactivateDeviceRequest {
export type AsObject = {
devEui: string,
}
}
export class GetDeviceActivationRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): GetDeviceActivationRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceActivationRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceActivationRequest): GetDeviceActivationRequest.AsObject;
static serializeBinaryToWriter(message: GetDeviceActivationRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceActivationRequest;
static deserializeBinaryFromReader(message: GetDeviceActivationRequest, reader: jspb.BinaryReader): GetDeviceActivationRequest;
}
export namespace GetDeviceActivationRequest {
export type AsObject = {
devEui: string,
}
}
export class GetDeviceActivationResponse extends jspb.Message {
getDeviceActivation(): DeviceActivation | undefined;
setDeviceActivation(value?: DeviceActivation): GetDeviceActivationResponse;
hasDeviceActivation(): boolean;
clearDeviceActivation(): GetDeviceActivationResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceActivationResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceActivationResponse): GetDeviceActivationResponse.AsObject;
static serializeBinaryToWriter(message: GetDeviceActivationResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceActivationResponse;
static deserializeBinaryFromReader(message: GetDeviceActivationResponse, reader: jspb.BinaryReader): GetDeviceActivationResponse;
}
export namespace GetDeviceActivationResponse {
export type AsObject = {
deviceActivation?: DeviceActivation.AsObject,
}
}
export class GetRandomDevAddrRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): GetRandomDevAddrRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetRandomDevAddrRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetRandomDevAddrRequest): GetRandomDevAddrRequest.AsObject;
static serializeBinaryToWriter(message: GetRandomDevAddrRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrRequest;
static deserializeBinaryFromReader(message: GetRandomDevAddrRequest, reader: jspb.BinaryReader): GetRandomDevAddrRequest;
}
export namespace GetRandomDevAddrRequest {
export type AsObject = {
devEui: string,
}
}
export class GetRandomDevAddrResponse extends jspb.Message {
getDevAddr(): string;
setDevAddr(value: string): GetRandomDevAddrResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetRandomDevAddrResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetRandomDevAddrResponse): GetRandomDevAddrResponse.AsObject;
static serializeBinaryToWriter(message: GetRandomDevAddrResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrResponse;
static deserializeBinaryFromReader(message: GetRandomDevAddrResponse, reader: jspb.BinaryReader): GetRandomDevAddrResponse;
}
export namespace GetRandomDevAddrResponse {
export type AsObject = {
devAddr: string,
}
}
export class GetDeviceStatsRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): GetDeviceStatsRequest;
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceStatsRequest;
hasStart(): boolean;
clearStart(): GetDeviceStatsRequest;
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceStatsRequest;
hasEnd(): boolean;
clearEnd(): GetDeviceStatsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceStatsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceStatsRequest): GetDeviceStatsRequest.AsObject;
static serializeBinaryToWriter(message: GetDeviceStatsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceStatsRequest;
static deserializeBinaryFromReader(message: GetDeviceStatsRequest, reader: jspb.BinaryReader): GetDeviceStatsRequest;
}
export namespace GetDeviceStatsRequest {
export type AsObject = {
devEui: string,
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class GetDeviceStatsResponse extends jspb.Message {
getResultList(): Array<DeviceStats>;
setResultList(value: Array<DeviceStats>): GetDeviceStatsResponse;
clearResultList(): GetDeviceStatsResponse;
addResult(value?: DeviceStats, index?: number): DeviceStats;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceStatsResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceStatsResponse): GetDeviceStatsResponse.AsObject;
static serializeBinaryToWriter(message: GetDeviceStatsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceStatsResponse;
static deserializeBinaryFromReader(message: GetDeviceStatsResponse, reader: jspb.BinaryReader): GetDeviceStatsResponse;
}
export namespace GetDeviceStatsResponse {
export type AsObject = {
resultList: Array<DeviceStats.AsObject>,
}
}
export class DeviceStats extends jspb.Message {
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTime(value?: google_protobuf_timestamp_pb.Timestamp): DeviceStats;
hasTime(): boolean;
clearTime(): DeviceStats;
getRxPackets(): number;
setRxPackets(value: number): DeviceStats;
getGwRssi(): number;
setGwRssi(value: number): DeviceStats;
getGwSnr(): number;
setGwSnr(value: number): DeviceStats;
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
clearRxPacketsPerFrequencyMap(): DeviceStats;
getRxPacketsPerDrMap(): jspb.Map<number, number>;
clearRxPacketsPerDrMap(): DeviceStats;
getErrorsMap(): jspb.Map<string, number>;
clearErrorsMap(): DeviceStats;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceStats.AsObject;
static toObject(includeInstance: boolean, msg: DeviceStats): DeviceStats.AsObject;
static serializeBinaryToWriter(message: DeviceStats, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceStats;
static deserializeBinaryFromReader(message: DeviceStats, reader: jspb.BinaryReader): DeviceStats;
}
export namespace DeviceStats {
export type AsObject = {
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
rxPackets: number,
gwRssi: number,
gwSnr: number,
rxPacketsPerFrequencyMap: Array<[number, number]>,
rxPacketsPerDrMap: Array<[number, number]>,
errorsMap: Array<[string, number]>,
}
}
export class DeviceQueueItem extends jspb.Message {
getId(): string;
setId(value: string): DeviceQueueItem;
getDevEui(): string;
setDevEui(value: string): DeviceQueueItem;
getConfirmed(): boolean;
setConfirmed(value: boolean): DeviceQueueItem;
getFPort(): number;
setFPort(value: number): DeviceQueueItem;
getData(): Uint8Array | string;
getData_asU8(): Uint8Array;
getData_asB64(): string;
setData(value: Uint8Array | string): DeviceQueueItem;
getObject(): google_protobuf_struct_pb.Struct | undefined;
setObject(value?: google_protobuf_struct_pb.Struct): DeviceQueueItem;
hasObject(): boolean;
clearObject(): DeviceQueueItem;
getIsPending(): boolean;
setIsPending(value: boolean): DeviceQueueItem;
getFCntDown(): number;
setFCntDown(value: number): DeviceQueueItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceQueueItem.AsObject;
static toObject(includeInstance: boolean, msg: DeviceQueueItem): DeviceQueueItem.AsObject;
static serializeBinaryToWriter(message: DeviceQueueItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceQueueItem;
static deserializeBinaryFromReader(message: DeviceQueueItem, reader: jspb.BinaryReader): DeviceQueueItem;
}
export namespace DeviceQueueItem {
export type AsObject = {
id: string,
devEui: string,
confirmed: boolean,
fPort: number,
data: Uint8Array | string,
object?: google_protobuf_struct_pb.Struct.AsObject,
isPending: boolean,
fCntDown: number,
}
}
export class EnqueueDeviceQueueItemRequest extends jspb.Message {
getItem(): DeviceQueueItem | undefined;
setItem(value?: DeviceQueueItem): EnqueueDeviceQueueItemRequest;
hasItem(): boolean;
clearItem(): EnqueueDeviceQueueItemRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnqueueDeviceQueueItemRequest.AsObject;
static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemRequest): EnqueueDeviceQueueItemRequest.AsObject;
static serializeBinaryToWriter(message: EnqueueDeviceQueueItemRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemRequest;
static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemRequest, reader: jspb.BinaryReader): EnqueueDeviceQueueItemRequest;
}
export namespace EnqueueDeviceQueueItemRequest {
export type AsObject = {
item?: DeviceQueueItem.AsObject,
}
}
export class EnqueueDeviceQueueItemResponse extends jspb.Message {
getId(): string;
setId(value: string): EnqueueDeviceQueueItemResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnqueueDeviceQueueItemResponse.AsObject;
static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemResponse): EnqueueDeviceQueueItemResponse.AsObject;
static serializeBinaryToWriter(message: EnqueueDeviceQueueItemResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemResponse;
static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemResponse, reader: jspb.BinaryReader): EnqueueDeviceQueueItemResponse;
}
export namespace EnqueueDeviceQueueItemResponse {
export type AsObject = {
id: string,
}
}
export class FlushDeviceQueueRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): FlushDeviceQueueRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FlushDeviceQueueRequest.AsObject;
static toObject(includeInstance: boolean, msg: FlushDeviceQueueRequest): FlushDeviceQueueRequest.AsObject;
static serializeBinaryToWriter(message: FlushDeviceQueueRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FlushDeviceQueueRequest;
static deserializeBinaryFromReader(message: FlushDeviceQueueRequest, reader: jspb.BinaryReader): FlushDeviceQueueRequest;
}
export namespace FlushDeviceQueueRequest {
export type AsObject = {
devEui: string,
}
}
export class GetDeviceQueueItemsRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): GetDeviceQueueItemsRequest;
getCountOnly(): boolean;
setCountOnly(value: boolean): GetDeviceQueueItemsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceQueueItemsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsRequest): GetDeviceQueueItemsRequest.AsObject;
static serializeBinaryToWriter(message: GetDeviceQueueItemsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsRequest;
static deserializeBinaryFromReader(message: GetDeviceQueueItemsRequest, reader: jspb.BinaryReader): GetDeviceQueueItemsRequest;
}
export namespace GetDeviceQueueItemsRequest {
export type AsObject = {
devEui: string,
countOnly: boolean,
}
}
export class GetDeviceQueueItemsResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): GetDeviceQueueItemsResponse;
getResultList(): Array<DeviceQueueItem>;
setResultList(value: Array<DeviceQueueItem>): GetDeviceQueueItemsResponse;
clearResultList(): GetDeviceQueueItemsResponse;
addResult(value?: DeviceQueueItem, index?: number): DeviceQueueItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceQueueItemsResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsResponse): GetDeviceQueueItemsResponse.AsObject;
static serializeBinaryToWriter(message: GetDeviceQueueItemsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsResponse;
static deserializeBinaryFromReader(message: GetDeviceQueueItemsResponse, reader: jspb.BinaryReader): GetDeviceQueueItemsResponse;
}
export namespace GetDeviceQueueItemsResponse {
export type AsObject = {
totalCount: number,
resultList: Array<DeviceQueueItem.AsObject>,
}
}
export class FlushDevNoncesRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): FlushDevNoncesRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FlushDevNoncesRequest.AsObject;
static toObject(includeInstance: boolean, msg: FlushDevNoncesRequest): FlushDevNoncesRequest.AsObject;
static serializeBinaryToWriter(message: FlushDevNoncesRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FlushDevNoncesRequest;
static deserializeBinaryFromReader(message: FlushDevNoncesRequest, reader: jspb.BinaryReader): FlushDevNoncesRequest;
}
export namespace FlushDevNoncesRequest {
export type AsObject = {
devEui: string,
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,92 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_device_profile_pb from '../api/device_profile_pb';
export class DeviceProfileServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_device_profile_pb.CreateDeviceProfileRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_profile_pb.CreateDeviceProfileResponse) => void
): grpcWeb.ClientReadableStream<api_device_profile_pb.CreateDeviceProfileResponse>;
get(
request: api_device_profile_pb.GetDeviceProfileRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_profile_pb.GetDeviceProfileResponse) => void
): grpcWeb.ClientReadableStream<api_device_profile_pb.GetDeviceProfileResponse>;
update(
request: api_device_profile_pb.UpdateDeviceProfileRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
delete(
request: api_device_profile_pb.DeleteDeviceProfileRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
list(
request: api_device_profile_pb.ListDeviceProfilesRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_profile_pb.ListDeviceProfilesResponse) => void
): grpcWeb.ClientReadableStream<api_device_profile_pb.ListDeviceProfilesResponse>;
listAdrAlgorithms(
request: google_protobuf_empty_pb.Empty,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse) => void
): grpcWeb.ClientReadableStream<api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>;
}
export class DeviceProfileServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_device_profile_pb.CreateDeviceProfileRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_profile_pb.CreateDeviceProfileResponse>;
get(
request: api_device_profile_pb.GetDeviceProfileRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_profile_pb.GetDeviceProfileResponse>;
update(
request: api_device_profile_pb.UpdateDeviceProfileRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
delete(
request: api_device_profile_pb.DeleteDeviceProfileRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
list(
request: api_device_profile_pb.ListDeviceProfilesRequest,
metadata?: grpcWeb.Metadata
): Promise<api_device_profile_pb.ListDeviceProfilesResponse>;
listAdrAlgorithms(
request: google_protobuf_empty_pb.Empty,
metadata?: grpcWeb.Metadata
): Promise<api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse>;
}

View File

@ -0,0 +1,560 @@
/**
* @fileoverview gRPC-Web generated client stub for api
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
const grpc = {};
grpc.web = require('grpc-web');
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
var common_common_pb = require('../common/common_pb.js')
const proto = {};
proto.api = require('./device_profile_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.DeviceProfileServiceClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.DeviceProfileServicePromiseClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.CreateDeviceProfileRequest,
* !proto.api.CreateDeviceProfileResponse>}
*/
const methodDescriptor_DeviceProfileService_Create = new grpc.web.MethodDescriptor(
'/api.DeviceProfileService/Create',
grpc.web.MethodType.UNARY,
proto.api.CreateDeviceProfileRequest,
proto.api.CreateDeviceProfileResponse,
/**
* @param {!proto.api.CreateDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateDeviceProfileResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.CreateDeviceProfileRequest,
* !proto.api.CreateDeviceProfileResponse>}
*/
const methodInfo_DeviceProfileService_Create = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.CreateDeviceProfileResponse,
/**
* @param {!proto.api.CreateDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateDeviceProfileResponse.deserializeBinary
);
/**
* @param {!proto.api.CreateDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.CreateDeviceProfileResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateDeviceProfileResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.DeviceProfileServiceClient.prototype.create =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.DeviceProfileService/Create',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Create,
callback);
};
/**
* @param {!proto.api.CreateDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.CreateDeviceProfileResponse>}
* Promise that resolves to the response
*/
proto.api.DeviceProfileServicePromiseClient.prototype.create =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.DeviceProfileService/Create',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Create);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GetDeviceProfileRequest,
* !proto.api.GetDeviceProfileResponse>}
*/
const methodDescriptor_DeviceProfileService_Get = new grpc.web.MethodDescriptor(
'/api.DeviceProfileService/Get',
grpc.web.MethodType.UNARY,
proto.api.GetDeviceProfileRequest,
proto.api.GetDeviceProfileResponse,
/**
* @param {!proto.api.GetDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetDeviceProfileResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetDeviceProfileRequest,
* !proto.api.GetDeviceProfileResponse>}
*/
const methodInfo_DeviceProfileService_Get = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetDeviceProfileResponse,
/**
* @param {!proto.api.GetDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetDeviceProfileResponse.deserializeBinary
);
/**
* @param {!proto.api.GetDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetDeviceProfileResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetDeviceProfileResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.DeviceProfileServiceClient.prototype.get =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.DeviceProfileService/Get',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Get,
callback);
};
/**
* @param {!proto.api.GetDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetDeviceProfileResponse>}
* Promise that resolves to the response
*/
proto.api.DeviceProfileServicePromiseClient.prototype.get =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.DeviceProfileService/Get',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Get);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.UpdateDeviceProfileRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_DeviceProfileService_Update = new grpc.web.MethodDescriptor(
'/api.DeviceProfileService/Update',
grpc.web.MethodType.UNARY,
proto.api.UpdateDeviceProfileRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.UpdateDeviceProfileRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_DeviceProfileService_Update = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.UpdateDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.DeviceProfileServiceClient.prototype.update =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.DeviceProfileService/Update',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Update,
callback);
};
/**
* @param {!proto.api.UpdateDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.DeviceProfileServicePromiseClient.prototype.update =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.DeviceProfileService/Update',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Update);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.DeleteDeviceProfileRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_DeviceProfileService_Delete = new grpc.web.MethodDescriptor(
'/api.DeviceProfileService/Delete',
grpc.web.MethodType.UNARY,
proto.api.DeleteDeviceProfileRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.DeleteDeviceProfileRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_DeviceProfileService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteDeviceProfileRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.DeleteDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.DeviceProfileServiceClient.prototype.delete =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.DeviceProfileService/Delete',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Delete,
callback);
};
/**
* @param {!proto.api.DeleteDeviceProfileRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.DeviceProfileServicePromiseClient.prototype.delete =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.DeviceProfileService/Delete',
request,
metadata || {},
methodDescriptor_DeviceProfileService_Delete);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.ListDeviceProfilesRequest,
* !proto.api.ListDeviceProfilesResponse>}
*/
const methodDescriptor_DeviceProfileService_List = new grpc.web.MethodDescriptor(
'/api.DeviceProfileService/List',
grpc.web.MethodType.UNARY,
proto.api.ListDeviceProfilesRequest,
proto.api.ListDeviceProfilesResponse,
/**
* @param {!proto.api.ListDeviceProfilesRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListDeviceProfilesResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListDeviceProfilesRequest,
* !proto.api.ListDeviceProfilesResponse>}
*/
const methodInfo_DeviceProfileService_List = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListDeviceProfilesResponse,
/**
* @param {!proto.api.ListDeviceProfilesRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListDeviceProfilesResponse.deserializeBinary
);
/**
* @param {!proto.api.ListDeviceProfilesRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListDeviceProfilesResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListDeviceProfilesResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.DeviceProfileServiceClient.prototype.list =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.DeviceProfileService/List',
request,
metadata || {},
methodDescriptor_DeviceProfileService_List,
callback);
};
/**
* @param {!proto.api.ListDeviceProfilesRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListDeviceProfilesResponse>}
* Promise that resolves to the response
*/
proto.api.DeviceProfileServicePromiseClient.prototype.list =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.DeviceProfileService/List',
request,
metadata || {},
methodDescriptor_DeviceProfileService_List);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.google.protobuf.Empty,
* !proto.api.ListDeviceProfileAdrAlgorithmsResponse>}
*/
const methodDescriptor_DeviceProfileService_ListAdrAlgorithms = new grpc.web.MethodDescriptor(
'/api.DeviceProfileService/ListAdrAlgorithms',
grpc.web.MethodType.UNARY,
google_protobuf_empty_pb.Empty,
proto.api.ListDeviceProfileAdrAlgorithmsResponse,
/**
* @param {!proto.google.protobuf.Empty} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.google.protobuf.Empty,
* !proto.api.ListDeviceProfileAdrAlgorithmsResponse>}
*/
const methodInfo_DeviceProfileService_ListAdrAlgorithms = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListDeviceProfileAdrAlgorithmsResponse,
/**
* @param {!proto.google.protobuf.Empty} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary
);
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListDeviceProfileAdrAlgorithmsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListDeviceProfileAdrAlgorithmsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.DeviceProfileServiceClient.prototype.listAdrAlgorithms =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.DeviceProfileService/ListAdrAlgorithms',
request,
metadata || {},
methodDescriptor_DeviceProfileService_ListAdrAlgorithms,
callback);
};
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListDeviceProfileAdrAlgorithmsResponse>}
* Promise that resolves to the response
*/
proto.api.DeviceProfileServicePromiseClient.prototype.listAdrAlgorithms =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.DeviceProfileService/ListAdrAlgorithms',
request,
metadata || {},
methodDescriptor_DeviceProfileService_ListAdrAlgorithms);
};
module.exports = proto.api;

410
api/grpc-web/api/device_profile_pb.d.ts vendored Normal file
View File

@ -0,0 +1,410 @@
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as common_common_pb from '../common/common_pb';
export class DeviceProfile extends jspb.Message {
getId(): string;
setId(value: string): DeviceProfile;
getTenantId(): string;
setTenantId(value: string): DeviceProfile;
getName(): string;
setName(value: string): DeviceProfile;
getRegion(): common_common_pb.Region;
setRegion(value: common_common_pb.Region): DeviceProfile;
getMacVersion(): common_common_pb.MacVersion;
setMacVersion(value: common_common_pb.MacVersion): DeviceProfile;
getRegParamsRevision(): common_common_pb.RegParamsRevision;
setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfile;
getAdrAlgorithmId(): string;
setAdrAlgorithmId(value: string): DeviceProfile;
getPayloadCodecRuntime(): CodecRuntime;
setPayloadCodecRuntime(value: CodecRuntime): DeviceProfile;
getPayloadEncoderConfig(): string;
setPayloadEncoderConfig(value: string): DeviceProfile;
getPayloadDecoderConfig(): string;
setPayloadDecoderConfig(value: string): DeviceProfile;
getUplinkInterval(): number;
setUplinkInterval(value: number): DeviceProfile;
getDeviceStatusReqInterval(): number;
setDeviceStatusReqInterval(value: number): DeviceProfile;
getSupportsOtaa(): boolean;
setSupportsOtaa(value: boolean): DeviceProfile;
getSupportsClassB(): boolean;
setSupportsClassB(value: boolean): DeviceProfile;
getSupportsClassC(): boolean;
setSupportsClassC(value: boolean): DeviceProfile;
getClassBTimeout(): number;
setClassBTimeout(value: number): DeviceProfile;
getClassBPingSlotPeriod(): number;
setClassBPingSlotPeriod(value: number): DeviceProfile;
getClassBPingSlotDr(): number;
setClassBPingSlotDr(value: number): DeviceProfile;
getClassBPingSlotFreq(): number;
setClassBPingSlotFreq(value: number): DeviceProfile;
getClassCTimeout(): number;
setClassCTimeout(value: number): DeviceProfile;
getAbpRx1Delay(): number;
setAbpRx1Delay(value: number): DeviceProfile;
getAbpRx1DrOffset(): number;
setAbpRx1DrOffset(value: number): DeviceProfile;
getAbpRx2Dr(): number;
setAbpRx2Dr(value: number): DeviceProfile;
getAbpRx2Freq(): number;
setAbpRx2Freq(value: number): DeviceProfile;
getTagsMap(): jspb.Map<string, string>;
clearTagsMap(): DeviceProfile;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceProfile.AsObject;
static toObject(includeInstance: boolean, msg: DeviceProfile): DeviceProfile.AsObject;
static serializeBinaryToWriter(message: DeviceProfile, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceProfile;
static deserializeBinaryFromReader(message: DeviceProfile, reader: jspb.BinaryReader): DeviceProfile;
}
export namespace DeviceProfile {
export type AsObject = {
id: string,
tenantId: string,
name: string,
region: common_common_pb.Region,
macVersion: common_common_pb.MacVersion,
regParamsRevision: common_common_pb.RegParamsRevision,
adrAlgorithmId: string,
payloadCodecRuntime: CodecRuntime,
payloadEncoderConfig: string,
payloadDecoderConfig: string,
uplinkInterval: number,
deviceStatusReqInterval: number,
supportsOtaa: boolean,
supportsClassB: boolean,
supportsClassC: boolean,
classBTimeout: number,
classBPingSlotPeriod: number,
classBPingSlotDr: number,
classBPingSlotFreq: number,
classCTimeout: number,
abpRx1Delay: number,
abpRx1DrOffset: number,
abpRx2Dr: number,
abpRx2Freq: number,
tagsMap: Array<[string, string]>,
}
}
export class DeviceProfileListItem extends jspb.Message {
getId(): string;
setId(value: string): DeviceProfileListItem;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileListItem;
hasCreatedAt(): boolean;
clearCreatedAt(): DeviceProfileListItem;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileListItem;
hasUpdatedAt(): boolean;
clearUpdatedAt(): DeviceProfileListItem;
getName(): string;
setName(value: string): DeviceProfileListItem;
getRegion(): common_common_pb.Region;
setRegion(value: common_common_pb.Region): DeviceProfileListItem;
getMacVersion(): common_common_pb.MacVersion;
setMacVersion(value: common_common_pb.MacVersion): DeviceProfileListItem;
getRegParamsRevision(): common_common_pb.RegParamsRevision;
setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfileListItem;
getSupportsOtaa(): boolean;
setSupportsOtaa(value: boolean): DeviceProfileListItem;
getSupportsClassB(): boolean;
setSupportsClassB(value: boolean): DeviceProfileListItem;
getSupportsClassC(): boolean;
setSupportsClassC(value: boolean): DeviceProfileListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeviceProfileListItem.AsObject;
static toObject(includeInstance: boolean, msg: DeviceProfileListItem): DeviceProfileListItem.AsObject;
static serializeBinaryToWriter(message: DeviceProfileListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeviceProfileListItem;
static deserializeBinaryFromReader(message: DeviceProfileListItem, reader: jspb.BinaryReader): DeviceProfileListItem;
}
export namespace DeviceProfileListItem {
export type AsObject = {
id: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
name: string,
region: common_common_pb.Region,
macVersion: common_common_pb.MacVersion,
regParamsRevision: common_common_pb.RegParamsRevision,
supportsOtaa: boolean,
supportsClassB: boolean,
supportsClassC: boolean,
}
}
export class CreateDeviceProfileRequest extends jspb.Message {
getDeviceProfile(): DeviceProfile | undefined;
setDeviceProfile(value?: DeviceProfile): CreateDeviceProfileRequest;
hasDeviceProfile(): boolean;
clearDeviceProfile(): CreateDeviceProfileRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateDeviceProfileRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateDeviceProfileRequest): CreateDeviceProfileRequest.AsObject;
static serializeBinaryToWriter(message: CreateDeviceProfileRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileRequest;
static deserializeBinaryFromReader(message: CreateDeviceProfileRequest, reader: jspb.BinaryReader): CreateDeviceProfileRequest;
}
export namespace CreateDeviceProfileRequest {
export type AsObject = {
deviceProfile?: DeviceProfile.AsObject,
}
}
export class CreateDeviceProfileResponse extends jspb.Message {
getId(): string;
setId(value: string): CreateDeviceProfileResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateDeviceProfileResponse.AsObject;
static toObject(includeInstance: boolean, msg: CreateDeviceProfileResponse): CreateDeviceProfileResponse.AsObject;
static serializeBinaryToWriter(message: CreateDeviceProfileResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileResponse;
static deserializeBinaryFromReader(message: CreateDeviceProfileResponse, reader: jspb.BinaryReader): CreateDeviceProfileResponse;
}
export namespace CreateDeviceProfileResponse {
export type AsObject = {
id: string,
}
}
export class GetDeviceProfileRequest extends jspb.Message {
getId(): string;
setId(value: string): GetDeviceProfileRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceProfileRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceProfileRequest): GetDeviceProfileRequest.AsObject;
static serializeBinaryToWriter(message: GetDeviceProfileRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceProfileRequest;
static deserializeBinaryFromReader(message: GetDeviceProfileRequest, reader: jspb.BinaryReader): GetDeviceProfileRequest;
}
export namespace GetDeviceProfileRequest {
export type AsObject = {
id: string,
}
}
export class GetDeviceProfileResponse extends jspb.Message {
getDeviceProfile(): DeviceProfile | undefined;
setDeviceProfile(value?: DeviceProfile): GetDeviceProfileResponse;
hasDeviceProfile(): boolean;
clearDeviceProfile(): GetDeviceProfileResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetDeviceProfileResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetDeviceProfileResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDeviceProfileResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDeviceProfileResponse): GetDeviceProfileResponse.AsObject;
static serializeBinaryToWriter(message: GetDeviceProfileResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDeviceProfileResponse;
static deserializeBinaryFromReader(message: GetDeviceProfileResponse, reader: jspb.BinaryReader): GetDeviceProfileResponse;
}
export namespace GetDeviceProfileResponse {
export type AsObject = {
deviceProfile?: DeviceProfile.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class UpdateDeviceProfileRequest extends jspb.Message {
getDeviceProfile(): DeviceProfile | undefined;
setDeviceProfile(value?: DeviceProfile): UpdateDeviceProfileRequest;
hasDeviceProfile(): boolean;
clearDeviceProfile(): UpdateDeviceProfileRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateDeviceProfileRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateDeviceProfileRequest): UpdateDeviceProfileRequest.AsObject;
static serializeBinaryToWriter(message: UpdateDeviceProfileRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateDeviceProfileRequest;
static deserializeBinaryFromReader(message: UpdateDeviceProfileRequest, reader: jspb.BinaryReader): UpdateDeviceProfileRequest;
}
export namespace UpdateDeviceProfileRequest {
export type AsObject = {
deviceProfile?: DeviceProfile.AsObject,
}
}
export class DeleteDeviceProfileRequest extends jspb.Message {
getId(): string;
setId(value: string): DeleteDeviceProfileRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteDeviceProfileRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteDeviceProfileRequest): DeleteDeviceProfileRequest.AsObject;
static serializeBinaryToWriter(message: DeleteDeviceProfileRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteDeviceProfileRequest;
static deserializeBinaryFromReader(message: DeleteDeviceProfileRequest, reader: jspb.BinaryReader): DeleteDeviceProfileRequest;
}
export namespace DeleteDeviceProfileRequest {
export type AsObject = {
id: string,
}
}
export class ListDeviceProfilesRequest extends jspb.Message {
getLimit(): number;
setLimit(value: number): ListDeviceProfilesRequest;
getOffset(): number;
setOffset(value: number): ListDeviceProfilesRequest;
getSearch(): string;
setSearch(value: string): ListDeviceProfilesRequest;
getTenantId(): string;
setTenantId(value: string): ListDeviceProfilesRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListDeviceProfilesRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListDeviceProfilesRequest): ListDeviceProfilesRequest.AsObject;
static serializeBinaryToWriter(message: ListDeviceProfilesRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesRequest;
static deserializeBinaryFromReader(message: ListDeviceProfilesRequest, reader: jspb.BinaryReader): ListDeviceProfilesRequest;
}
export namespace ListDeviceProfilesRequest {
export type AsObject = {
limit: number,
offset: number,
search: string,
tenantId: string,
}
}
export class ListDeviceProfilesResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListDeviceProfilesResponse;
getResultList(): Array<DeviceProfileListItem>;
setResultList(value: Array<DeviceProfileListItem>): ListDeviceProfilesResponse;
clearResultList(): ListDeviceProfilesResponse;
addResult(value?: DeviceProfileListItem, index?: number): DeviceProfileListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListDeviceProfilesResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListDeviceProfilesResponse): ListDeviceProfilesResponse.AsObject;
static serializeBinaryToWriter(message: ListDeviceProfilesResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesResponse;
static deserializeBinaryFromReader(message: ListDeviceProfilesResponse, reader: jspb.BinaryReader): ListDeviceProfilesResponse;
}
export namespace ListDeviceProfilesResponse {
export type AsObject = {
totalCount: number,
resultList: Array<DeviceProfileListItem.AsObject>,
}
}
export class ListDeviceProfileAdrAlgorithmsResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListDeviceProfileAdrAlgorithmsResponse;
getResultList(): Array<AdrAlgorithmListItem>;
setResultList(value: Array<AdrAlgorithmListItem>): ListDeviceProfileAdrAlgorithmsResponse;
clearResultList(): ListDeviceProfileAdrAlgorithmsResponse;
addResult(value?: AdrAlgorithmListItem, index?: number): AdrAlgorithmListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListDeviceProfileAdrAlgorithmsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListDeviceProfileAdrAlgorithmsResponse): ListDeviceProfileAdrAlgorithmsResponse.AsObject;
static serializeBinaryToWriter(message: ListDeviceProfileAdrAlgorithmsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListDeviceProfileAdrAlgorithmsResponse;
static deserializeBinaryFromReader(message: ListDeviceProfileAdrAlgorithmsResponse, reader: jspb.BinaryReader): ListDeviceProfileAdrAlgorithmsResponse;
}
export namespace ListDeviceProfileAdrAlgorithmsResponse {
export type AsObject = {
totalCount: number,
resultList: Array<AdrAlgorithmListItem.AsObject>,
}
}
export class AdrAlgorithmListItem extends jspb.Message {
getId(): string;
setId(value: string): AdrAlgorithmListItem;
getName(): string;
setName(value: string): AdrAlgorithmListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AdrAlgorithmListItem.AsObject;
static toObject(includeInstance: boolean, msg: AdrAlgorithmListItem): AdrAlgorithmListItem.AsObject;
static serializeBinaryToWriter(message: AdrAlgorithmListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AdrAlgorithmListItem;
static deserializeBinaryFromReader(message: AdrAlgorithmListItem, reader: jspb.BinaryReader): AdrAlgorithmListItem;
}
export namespace AdrAlgorithmListItem {
export type AsObject = {
id: string,
name: string,
}
}
export enum CodecRuntime {
NONE = 0,
CAYENNE_LPP = 1,
JS = 2,
}

File diff suppressed because it is too large Load Diff

109
api/grpc-web/api/frame_log_pb.d.ts vendored Normal file
View File

@ -0,0 +1,109 @@
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as common_common_pb from '../common/common_pb';
import * as gw_gw_pb from '../gw/gw_pb';
export class UplinkFrameLog extends jspb.Message {
getPhyPayload(): Uint8Array | string;
getPhyPayload_asU8(): Uint8Array;
getPhyPayload_asB64(): string;
setPhyPayload(value: Uint8Array | string): UplinkFrameLog;
getTxInfo(): gw_gw_pb.UplinkTXInfo | undefined;
setTxInfo(value?: gw_gw_pb.UplinkTXInfo): UplinkFrameLog;
hasTxInfo(): boolean;
clearTxInfo(): UplinkFrameLog;
getRxInfoList(): Array<gw_gw_pb.UplinkRXInfo>;
setRxInfoList(value: Array<gw_gw_pb.UplinkRXInfo>): UplinkFrameLog;
clearRxInfoList(): UplinkFrameLog;
addRxInfo(value?: gw_gw_pb.UplinkRXInfo, index?: number): gw_gw_pb.UplinkRXInfo;
getMType(): common_common_pb.MType;
setMType(value: common_common_pb.MType): UplinkFrameLog;
getDevAddr(): string;
setDevAddr(value: string): UplinkFrameLog;
getDevEui(): string;
setDevEui(value: string): UplinkFrameLog;
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTime(value?: google_protobuf_timestamp_pb.Timestamp): UplinkFrameLog;
hasTime(): boolean;
clearTime(): UplinkFrameLog;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UplinkFrameLog.AsObject;
static toObject(includeInstance: boolean, msg: UplinkFrameLog): UplinkFrameLog.AsObject;
static serializeBinaryToWriter(message: UplinkFrameLog, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UplinkFrameLog;
static deserializeBinaryFromReader(message: UplinkFrameLog, reader: jspb.BinaryReader): UplinkFrameLog;
}
export namespace UplinkFrameLog {
export type AsObject = {
phyPayload: Uint8Array | string,
txInfo?: gw_gw_pb.UplinkTXInfo.AsObject,
rxInfoList: Array<gw_gw_pb.UplinkRXInfo.AsObject>,
mType: common_common_pb.MType,
devAddr: string,
devEui: string,
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class DownlinkFrameLog extends jspb.Message {
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTime(value?: google_protobuf_timestamp_pb.Timestamp): DownlinkFrameLog;
hasTime(): boolean;
clearTime(): DownlinkFrameLog;
getPhyPayload(): Uint8Array | string;
getPhyPayload_asU8(): Uint8Array;
getPhyPayload_asB64(): string;
setPhyPayload(value: Uint8Array | string): DownlinkFrameLog;
getTxInfo(): gw_gw_pb.DownlinkTXInfo | undefined;
setTxInfo(value?: gw_gw_pb.DownlinkTXInfo): DownlinkFrameLog;
hasTxInfo(): boolean;
clearTxInfo(): DownlinkFrameLog;
getDownlinkId(): string;
setDownlinkId(value: string): DownlinkFrameLog;
getGatewayId(): string;
setGatewayId(value: string): DownlinkFrameLog;
getMType(): common_common_pb.MType;
setMType(value: common_common_pb.MType): DownlinkFrameLog;
getDevAddr(): string;
setDevAddr(value: string): DownlinkFrameLog;
getDevEui(): string;
setDevEui(value: string): DownlinkFrameLog;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DownlinkFrameLog.AsObject;
static toObject(includeInstance: boolean, msg: DownlinkFrameLog): DownlinkFrameLog.AsObject;
static serializeBinaryToWriter(message: DownlinkFrameLog, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DownlinkFrameLog;
static deserializeBinaryFromReader(message: DownlinkFrameLog, reader: jspb.BinaryReader): DownlinkFrameLog;
}
export namespace DownlinkFrameLog {
export type AsObject = {
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
phyPayload: Uint8Array | string,
txInfo?: gw_gw_pb.DownlinkTXInfo.AsObject,
downlinkId: string,
gatewayId: string,
mType: common_common_pb.MType,
devAddr: string,
devEui: string,
}
}

View File

@ -0,0 +1,880 @@
// source: api/frame_log.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var common_common_pb = require('../common/common_pb.js');
goog.object.extend(proto, common_common_pb);
var gw_gw_pb = require('../gw/gw_pb.js');
goog.object.extend(proto, gw_gw_pb);
goog.exportSymbol('proto.api.DownlinkFrameLog', null, global);
goog.exportSymbol('proto.api.UplinkFrameLog', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.api.UplinkFrameLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.api.UplinkFrameLog.repeatedFields_, null);
};
goog.inherits(proto.api.UplinkFrameLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.api.UplinkFrameLog.displayName = 'proto.api.UplinkFrameLog';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.api.DownlinkFrameLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.api.DownlinkFrameLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.api.DownlinkFrameLog.displayName = 'proto.api.DownlinkFrameLog';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.api.UplinkFrameLog.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.api.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.api.UplinkFrameLog.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.api.UplinkFrameLog} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.api.UplinkFrameLog.toObject = function(includeInstance, msg) {
var f, obj = {
phyPayload: msg.getPhyPayload_asB64(),
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTXInfo.toObject(includeInstance, f),
rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(),
gw_gw_pb.UplinkRXInfo.toObject, includeInstance),
mType: jspb.Message.getFieldWithDefault(msg, 4, 0),
devAddr: jspb.Message.getFieldWithDefault(msg, 5, ""),
devEui: jspb.Message.getFieldWithDefault(msg, 6, ""),
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.api.UplinkFrameLog}
*/
proto.api.UplinkFrameLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.api.UplinkFrameLog;
return proto.api.UplinkFrameLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.api.UplinkFrameLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.api.UplinkFrameLog}
*/
proto.api.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPhyPayload(value);
break;
case 2:
var value = new gw_gw_pb.UplinkTXInfo;
reader.readMessage(value,gw_gw_pb.UplinkTXInfo.deserializeBinaryFromReader);
msg.setTxInfo(value);
break;
case 3:
var value = new gw_gw_pb.UplinkRXInfo;
reader.readMessage(value,gw_gw_pb.UplinkRXInfo.deserializeBinaryFromReader);
msg.addRxInfo(value);
break;
case 4:
var value = /** @type {!proto.common.MType} */ (reader.readEnum());
msg.setMType(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setDevAddr(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setDevEui(value);
break;
case 7:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setTime(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.api.UplinkFrameLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.api.UplinkFrameLog.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.api.UplinkFrameLog} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.api.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPhyPayload_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getTxInfo();
if (f != null) {
writer.writeMessage(
2,
f,
gw_gw_pb.UplinkTXInfo.serializeBinaryToWriter
);
}
f = message.getRxInfoList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
gw_gw_pb.UplinkRXInfo.serializeBinaryToWriter
);
}
f = message.getMType();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = message.getDevAddr();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getDevEui();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getTime();
if (f != null) {
writer.writeMessage(
7,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};
/**
* optional bytes phy_payload = 1;
* @return {string}
*/
proto.api.UplinkFrameLog.prototype.getPhyPayload = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes phy_payload = 1;
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {string}
*/
proto.api.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getPhyPayload()));
};
/**
* optional bytes phy_payload = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {!Uint8Array}
*/
proto.api.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPhyPayload()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.setPhyPayload = function(value) {
return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional gw.UplinkTXInfo tx_info = 2;
* @return {?proto.gw.UplinkTXInfo}
*/
proto.api.UplinkFrameLog.prototype.getTxInfo = function() {
return /** @type{?proto.gw.UplinkTXInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTXInfo, 2));
};
/**
* @param {?proto.gw.UplinkTXInfo|undefined} value
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.setTxInfo = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.clearTxInfo = function() {
return this.setTxInfo(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.api.UplinkFrameLog.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated gw.UplinkRXInfo rx_info = 3;
* @return {!Array<!proto.gw.UplinkRXInfo>}
*/
proto.api.UplinkFrameLog.prototype.getRxInfoList = function() {
return /** @type{!Array<!proto.gw.UplinkRXInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRXInfo, 3));
};
/**
* @param {!Array<!proto.gw.UplinkRXInfo>} value
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.setRxInfoList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.gw.UplinkRXInfo=} opt_value
* @param {number=} opt_index
* @return {!proto.gw.UplinkRXInfo}
*/
proto.api.UplinkFrameLog.prototype.addRxInfo = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRXInfo, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.clearRxInfoList = function() {
return this.setRxInfoList([]);
};
/**
* optional common.MType m_type = 4;
* @return {!proto.common.MType}
*/
proto.api.UplinkFrameLog.prototype.getMType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.common.MType} value
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.setMType = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
/**
* optional string dev_addr = 5;
* @return {string}
*/
proto.api.UplinkFrameLog.prototype.getDevAddr = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.setDevAddr = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string dev_eui = 6;
* @return {string}
*/
proto.api.UplinkFrameLog.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.setDevEui = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional google.protobuf.Timestamp time = 7;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.api.UplinkFrameLog.prototype.getTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.setTime = function(value) {
return jspb.Message.setWrapperField(this, 7, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.api.UplinkFrameLog} returns this
*/
proto.api.UplinkFrameLog.prototype.clearTime = function() {
return this.setTime(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.api.UplinkFrameLog.prototype.hasTime = function() {
return jspb.Message.getField(this, 7) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.api.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) {
return proto.api.DownlinkFrameLog.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.api.DownlinkFrameLog} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.api.DownlinkFrameLog.toObject = function(includeInstance, msg) {
var f, obj = {
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
phyPayload: msg.getPhyPayload_asB64(),
txInfo: (f = msg.getTxInfo()) && gw_gw_pb.DownlinkTXInfo.toObject(includeInstance, f),
downlinkId: jspb.Message.getFieldWithDefault(msg, 4, ""),
gatewayId: jspb.Message.getFieldWithDefault(msg, 5, ""),
mType: jspb.Message.getFieldWithDefault(msg, 6, 0),
devAddr: jspb.Message.getFieldWithDefault(msg, 7, ""),
devEui: jspb.Message.getFieldWithDefault(msg, 8, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.api.DownlinkFrameLog}
*/
proto.api.DownlinkFrameLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.api.DownlinkFrameLog;
return proto.api.DownlinkFrameLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.api.DownlinkFrameLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.api.DownlinkFrameLog}
*/
proto.api.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setTime(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPhyPayload(value);
break;
case 3:
var value = new gw_gw_pb.DownlinkTXInfo;
reader.readMessage(value,gw_gw_pb.DownlinkTXInfo.deserializeBinaryFromReader);
msg.setTxInfo(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setDownlinkId(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setGatewayId(value);
break;
case 6:
var value = /** @type {!proto.common.MType} */ (reader.readEnum());
msg.setMType(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setDevAddr(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setDevEui(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.api.DownlinkFrameLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.api.DownlinkFrameLog.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.api.DownlinkFrameLog} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.api.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTime();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getPhyPayload_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getTxInfo();
if (f != null) {
writer.writeMessage(
3,
f,
gw_gw_pb.DownlinkTXInfo.serializeBinaryToWriter
);
}
f = message.getDownlinkId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getGatewayId();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getMType();
if (f !== 0.0) {
writer.writeEnum(
6,
f
);
}
f = message.getDevAddr();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getDevEui();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
};
/**
* optional google.protobuf.Timestamp time = 1;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.api.DownlinkFrameLog.prototype.getTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setTime = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.clearTime = function() {
return this.setTime(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.api.DownlinkFrameLog.prototype.hasTime = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bytes phy_payload = 2;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getPhyPayload = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes phy_payload = 2;
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getPhyPayload()));
};
/**
* optional bytes phy_payload = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getPhyPayload()`
* @return {!Uint8Array}
*/
proto.api.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPhyPayload()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setPhyPayload = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional gw.DownlinkTXInfo tx_info = 3;
* @return {?proto.gw.DownlinkTXInfo}
*/
proto.api.DownlinkFrameLog.prototype.getTxInfo = function() {
return /** @type{?proto.gw.DownlinkTXInfo} */ (
jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTXInfo, 3));
};
/**
* @param {?proto.gw.DownlinkTXInfo|undefined} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setTxInfo = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.clearTxInfo = function() {
return this.setTxInfo(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.api.DownlinkFrameLog.prototype.hasTxInfo = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string downlink_id = 4;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getDownlinkId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setDownlinkId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string gateway_id = 5;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getGatewayId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setGatewayId = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional common.MType m_type = 6;
* @return {!proto.common.MType}
*/
proto.api.DownlinkFrameLog.prototype.getMType = function() {
return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {!proto.common.MType} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setMType = function(value) {
return jspb.Message.setProto3EnumField(this, 6, value);
};
/**
* optional string dev_addr = 7;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getDevAddr = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setDevAddr = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional string dev_eui = 8;
* @return {string}
*/
proto.api.DownlinkFrameLog.prototype.getDevEui = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.api.DownlinkFrameLog} returns this
*/
proto.api.DownlinkFrameLog.prototype.setDevEui = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
goog.object.extend(exports, proto.api);

View File

@ -0,0 +1,104 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_gateway_pb from '../api/gateway_pb';
export class GatewayServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_gateway_pb.CreateGatewayRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
get(
request: api_gateway_pb.GetGatewayRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_gateway_pb.GetGatewayResponse) => void
): grpcWeb.ClientReadableStream<api_gateway_pb.GetGatewayResponse>;
update(
request: api_gateway_pb.UpdateGatewayRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
delete(
request: api_gateway_pb.DeleteGatewayRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
list(
request: api_gateway_pb.ListGatewaysRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_gateway_pb.ListGatewaysResponse) => void
): grpcWeb.ClientReadableStream<api_gateway_pb.ListGatewaysResponse>;
generateClientCertificate(
request: api_gateway_pb.GenerateGatewayClientCertificateRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_gateway_pb.GenerateGatewayClientCertificateResponse) => void
): grpcWeb.ClientReadableStream<api_gateway_pb.GenerateGatewayClientCertificateResponse>;
getStats(
request: api_gateway_pb.GetGatewayStatsRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_gateway_pb.GetGatewayStatsResponse) => void
): grpcWeb.ClientReadableStream<api_gateway_pb.GetGatewayStatsResponse>;
}
export class GatewayServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_gateway_pb.CreateGatewayRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
get(
request: api_gateway_pb.GetGatewayRequest,
metadata?: grpcWeb.Metadata
): Promise<api_gateway_pb.GetGatewayResponse>;
update(
request: api_gateway_pb.UpdateGatewayRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
delete(
request: api_gateway_pb.DeleteGatewayRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
list(
request: api_gateway_pb.ListGatewaysRequest,
metadata?: grpcWeb.Metadata
): Promise<api_gateway_pb.ListGatewaysResponse>;
generateClientCertificate(
request: api_gateway_pb.GenerateGatewayClientCertificateRequest,
metadata?: grpcWeb.Metadata
): Promise<api_gateway_pb.GenerateGatewayClientCertificateResponse>;
getStats(
request: api_gateway_pb.GetGatewayStatsRequest,
metadata?: grpcWeb.Metadata
): Promise<api_gateway_pb.GetGatewayStatsResponse>;
}

View File

@ -0,0 +1,640 @@
/**
* @fileoverview gRPC-Web generated client stub for api
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
const grpc = {};
grpc.web = require('grpc-web');
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
var common_common_pb = require('../common/common_pb.js')
const proto = {};
proto.api = require('./gateway_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.GatewayServiceClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.GatewayServicePromiseClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.CreateGatewayRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_GatewayService_Create = new grpc.web.MethodDescriptor(
'/api.GatewayService/Create',
grpc.web.MethodType.UNARY,
proto.api.CreateGatewayRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.CreateGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.CreateGatewayRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_GatewayService_Create = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.CreateGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.CreateGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.GatewayServiceClient.prototype.create =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.GatewayService/Create',
request,
metadata || {},
methodDescriptor_GatewayService_Create,
callback);
};
/**
* @param {!proto.api.CreateGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.GatewayServicePromiseClient.prototype.create =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.GatewayService/Create',
request,
metadata || {},
methodDescriptor_GatewayService_Create);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GetGatewayRequest,
* !proto.api.GetGatewayResponse>}
*/
const methodDescriptor_GatewayService_Get = new grpc.web.MethodDescriptor(
'/api.GatewayService/Get',
grpc.web.MethodType.UNARY,
proto.api.GetGatewayRequest,
proto.api.GetGatewayResponse,
/**
* @param {!proto.api.GetGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetGatewayResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetGatewayRequest,
* !proto.api.GetGatewayResponse>}
*/
const methodInfo_GatewayService_Get = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetGatewayResponse,
/**
* @param {!proto.api.GetGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetGatewayResponse.deserializeBinary
);
/**
* @param {!proto.api.GetGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetGatewayResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetGatewayResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.GatewayServiceClient.prototype.get =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.GatewayService/Get',
request,
metadata || {},
methodDescriptor_GatewayService_Get,
callback);
};
/**
* @param {!proto.api.GetGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetGatewayResponse>}
* Promise that resolves to the response
*/
proto.api.GatewayServicePromiseClient.prototype.get =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.GatewayService/Get',
request,
metadata || {},
methodDescriptor_GatewayService_Get);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.UpdateGatewayRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_GatewayService_Update = new grpc.web.MethodDescriptor(
'/api.GatewayService/Update',
grpc.web.MethodType.UNARY,
proto.api.UpdateGatewayRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.UpdateGatewayRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_GatewayService_Update = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.UpdateGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.GatewayServiceClient.prototype.update =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.GatewayService/Update',
request,
metadata || {},
methodDescriptor_GatewayService_Update,
callback);
};
/**
* @param {!proto.api.UpdateGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.GatewayServicePromiseClient.prototype.update =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.GatewayService/Update',
request,
metadata || {},
methodDescriptor_GatewayService_Update);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.DeleteGatewayRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_GatewayService_Delete = new grpc.web.MethodDescriptor(
'/api.GatewayService/Delete',
grpc.web.MethodType.UNARY,
proto.api.DeleteGatewayRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.DeleteGatewayRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_GatewayService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteGatewayRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.DeleteGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.GatewayServiceClient.prototype.delete =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.GatewayService/Delete',
request,
metadata || {},
methodDescriptor_GatewayService_Delete,
callback);
};
/**
* @param {!proto.api.DeleteGatewayRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.GatewayServicePromiseClient.prototype.delete =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.GatewayService/Delete',
request,
metadata || {},
methodDescriptor_GatewayService_Delete);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.ListGatewaysRequest,
* !proto.api.ListGatewaysResponse>}
*/
const methodDescriptor_GatewayService_List = new grpc.web.MethodDescriptor(
'/api.GatewayService/List',
grpc.web.MethodType.UNARY,
proto.api.ListGatewaysRequest,
proto.api.ListGatewaysResponse,
/**
* @param {!proto.api.ListGatewaysRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListGatewaysResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListGatewaysRequest,
* !proto.api.ListGatewaysResponse>}
*/
const methodInfo_GatewayService_List = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListGatewaysResponse,
/**
* @param {!proto.api.ListGatewaysRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListGatewaysResponse.deserializeBinary
);
/**
* @param {!proto.api.ListGatewaysRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListGatewaysResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListGatewaysResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.GatewayServiceClient.prototype.list =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.GatewayService/List',
request,
metadata || {},
methodDescriptor_GatewayService_List,
callback);
};
/**
* @param {!proto.api.ListGatewaysRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListGatewaysResponse>}
* Promise that resolves to the response
*/
proto.api.GatewayServicePromiseClient.prototype.list =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.GatewayService/List',
request,
metadata || {},
methodDescriptor_GatewayService_List);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GenerateGatewayClientCertificateRequest,
* !proto.api.GenerateGatewayClientCertificateResponse>}
*/
const methodDescriptor_GatewayService_GenerateClientCertificate = new grpc.web.MethodDescriptor(
'/api.GatewayService/GenerateClientCertificate',
grpc.web.MethodType.UNARY,
proto.api.GenerateGatewayClientCertificateRequest,
proto.api.GenerateGatewayClientCertificateResponse,
/**
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GenerateGatewayClientCertificateResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GenerateGatewayClientCertificateRequest,
* !proto.api.GenerateGatewayClientCertificateResponse>}
*/
const methodInfo_GatewayService_GenerateClientCertificate = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GenerateGatewayClientCertificateResponse,
/**
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GenerateGatewayClientCertificateResponse.deserializeBinary
);
/**
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GenerateGatewayClientCertificateResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GenerateGatewayClientCertificateResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.GatewayServiceClient.prototype.generateClientCertificate =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.GatewayService/GenerateClientCertificate',
request,
metadata || {},
methodDescriptor_GatewayService_GenerateClientCertificate,
callback);
};
/**
* @param {!proto.api.GenerateGatewayClientCertificateRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GenerateGatewayClientCertificateResponse>}
* Promise that resolves to the response
*/
proto.api.GatewayServicePromiseClient.prototype.generateClientCertificate =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.GatewayService/GenerateClientCertificate',
request,
metadata || {},
methodDescriptor_GatewayService_GenerateClientCertificate);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GetGatewayStatsRequest,
* !proto.api.GetGatewayStatsResponse>}
*/
const methodDescriptor_GatewayService_GetStats = new grpc.web.MethodDescriptor(
'/api.GatewayService/GetStats',
grpc.web.MethodType.UNARY,
proto.api.GetGatewayStatsRequest,
proto.api.GetGatewayStatsResponse,
/**
* @param {!proto.api.GetGatewayStatsRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetGatewayStatsResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetGatewayStatsRequest,
* !proto.api.GetGatewayStatsResponse>}
*/
const methodInfo_GatewayService_GetStats = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetGatewayStatsResponse,
/**
* @param {!proto.api.GetGatewayStatsRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetGatewayStatsResponse.deserializeBinary
);
/**
* @param {!proto.api.GetGatewayStatsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetGatewayStatsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetGatewayStatsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.GatewayServiceClient.prototype.getStats =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.GatewayService/GetStats',
request,
metadata || {},
methodDescriptor_GatewayService_GetStats,
callback);
};
/**
* @param {!proto.api.GetGatewayStatsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetGatewayStatsResponse>}
* Promise that resolves to the response
*/
proto.api.GatewayServicePromiseClient.prototype.getStats =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.GatewayService/GetStats',
request,
metadata || {},
methodDescriptor_GatewayService_GetStats);
};
module.exports = proto.api;

425
api/grpc-web/api/gateway_pb.d.ts vendored Normal file
View File

@ -0,0 +1,425 @@
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as common_common_pb from '../common/common_pb';
export class Gateway extends jspb.Message {
getGatewayId(): string;
setGatewayId(value: string): Gateway;
getName(): string;
setName(value: string): Gateway;
getDescription(): string;
setDescription(value: string): Gateway;
getLocation(): common_common_pb.Location | undefined;
setLocation(value?: common_common_pb.Location): Gateway;
hasLocation(): boolean;
clearLocation(): Gateway;
getTenantId(): string;
setTenantId(value: string): Gateway;
getTagsMap(): jspb.Map<string, string>;
clearTagsMap(): Gateway;
getPropertiesMap(): jspb.Map<string, string>;
clearPropertiesMap(): Gateway;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Gateway.AsObject;
static toObject(includeInstance: boolean, msg: Gateway): Gateway.AsObject;
static serializeBinaryToWriter(message: Gateway, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Gateway;
static deserializeBinaryFromReader(message: Gateway, reader: jspb.BinaryReader): Gateway;
}
export namespace Gateway {
export type AsObject = {
gatewayId: string,
name: string,
description: string,
location?: common_common_pb.Location.AsObject,
tenantId: string,
tagsMap: Array<[string, string]>,
propertiesMap: Array<[string, string]>,
}
}
export class GatewayListItem extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): GatewayListItem;
getGatewayId(): string;
setGatewayId(value: string): GatewayListItem;
getName(): string;
setName(value: string): GatewayListItem;
getDescription(): string;
setDescription(value: string): GatewayListItem;
getLocation(): common_common_pb.Location | undefined;
setLocation(value?: common_common_pb.Location): GatewayListItem;
hasLocation(): boolean;
clearLocation(): GatewayListItem;
getPropertiesMap(): jspb.Map<string, string>;
clearPropertiesMap(): GatewayListItem;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem;
hasCreatedAt(): boolean;
clearCreatedAt(): GatewayListItem;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GatewayListItem;
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem;
hasLastSeenAt(): boolean;
clearLastSeenAt(): GatewayListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GatewayListItem.AsObject;
static toObject(includeInstance: boolean, msg: GatewayListItem): GatewayListItem.AsObject;
static serializeBinaryToWriter(message: GatewayListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GatewayListItem;
static deserializeBinaryFromReader(message: GatewayListItem, reader: jspb.BinaryReader): GatewayListItem;
}
export namespace GatewayListItem {
export type AsObject = {
tenantId: string,
gatewayId: string,
name: string,
description: string,
location?: common_common_pb.Location.AsObject,
propertiesMap: Array<[string, string]>,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class CreateGatewayRequest extends jspb.Message {
getGateway(): Gateway | undefined;
setGateway(value?: Gateway): CreateGatewayRequest;
hasGateway(): boolean;
clearGateway(): CreateGatewayRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateGatewayRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateGatewayRequest): CreateGatewayRequest.AsObject;
static serializeBinaryToWriter(message: CreateGatewayRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateGatewayRequest;
static deserializeBinaryFromReader(message: CreateGatewayRequest, reader: jspb.BinaryReader): CreateGatewayRequest;
}
export namespace CreateGatewayRequest {
export type AsObject = {
gateway?: Gateway.AsObject,
}
}
export class GetGatewayRequest extends jspb.Message {
getGatewayId(): string;
setGatewayId(value: string): GetGatewayRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewayRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewayRequest): GetGatewayRequest.AsObject;
static serializeBinaryToWriter(message: GetGatewayRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewayRequest;
static deserializeBinaryFromReader(message: GetGatewayRequest, reader: jspb.BinaryReader): GetGatewayRequest;
}
export namespace GetGatewayRequest {
export type AsObject = {
gatewayId: string,
}
}
export class GetGatewayResponse extends jspb.Message {
getGateway(): Gateway | undefined;
setGateway(value?: Gateway): GetGatewayResponse;
hasGateway(): boolean;
clearGateway(): GetGatewayResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetGatewayResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetGatewayResponse;
getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse;
hasLastSeenAt(): boolean;
clearLastSeenAt(): GetGatewayResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewayResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewayResponse): GetGatewayResponse.AsObject;
static serializeBinaryToWriter(message: GetGatewayResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewayResponse;
static deserializeBinaryFromReader(message: GetGatewayResponse, reader: jspb.BinaryReader): GetGatewayResponse;
}
export namespace GetGatewayResponse {
export type AsObject = {
gateway?: Gateway.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class UpdateGatewayRequest extends jspb.Message {
getGateway(): Gateway | undefined;
setGateway(value?: Gateway): UpdateGatewayRequest;
hasGateway(): boolean;
clearGateway(): UpdateGatewayRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateGatewayRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateGatewayRequest): UpdateGatewayRequest.AsObject;
static serializeBinaryToWriter(message: UpdateGatewayRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateGatewayRequest;
static deserializeBinaryFromReader(message: UpdateGatewayRequest, reader: jspb.BinaryReader): UpdateGatewayRequest;
}
export namespace UpdateGatewayRequest {
export type AsObject = {
gateway?: Gateway.AsObject,
}
}
export class DeleteGatewayRequest extends jspb.Message {
getGatewayId(): string;
setGatewayId(value: string): DeleteGatewayRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteGatewayRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteGatewayRequest): DeleteGatewayRequest.AsObject;
static serializeBinaryToWriter(message: DeleteGatewayRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteGatewayRequest;
static deserializeBinaryFromReader(message: DeleteGatewayRequest, reader: jspb.BinaryReader): DeleteGatewayRequest;
}
export namespace DeleteGatewayRequest {
export type AsObject = {
gatewayId: string,
}
}
export class ListGatewaysRequest extends jspb.Message {
getLimit(): number;
setLimit(value: number): ListGatewaysRequest;
getOffset(): number;
setOffset(value: number): ListGatewaysRequest;
getSearch(): string;
setSearch(value: string): ListGatewaysRequest;
getTenantId(): string;
setTenantId(value: string): ListGatewaysRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListGatewaysRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListGatewaysRequest): ListGatewaysRequest.AsObject;
static serializeBinaryToWriter(message: ListGatewaysRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListGatewaysRequest;
static deserializeBinaryFromReader(message: ListGatewaysRequest, reader: jspb.BinaryReader): ListGatewaysRequest;
}
export namespace ListGatewaysRequest {
export type AsObject = {
limit: number,
offset: number,
search: string,
tenantId: string,
}
}
export class ListGatewaysResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListGatewaysResponse;
getResultList(): Array<GatewayListItem>;
setResultList(value: Array<GatewayListItem>): ListGatewaysResponse;
clearResultList(): ListGatewaysResponse;
addResult(value?: GatewayListItem, index?: number): GatewayListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListGatewaysResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListGatewaysResponse): ListGatewaysResponse.AsObject;
static serializeBinaryToWriter(message: ListGatewaysResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListGatewaysResponse;
static deserializeBinaryFromReader(message: ListGatewaysResponse, reader: jspb.BinaryReader): ListGatewaysResponse;
}
export namespace ListGatewaysResponse {
export type AsObject = {
totalCount: number,
resultList: Array<GatewayListItem.AsObject>,
}
}
export class GenerateGatewayClientCertificateRequest extends jspb.Message {
getGatewayId(): string;
setGatewayId(value: string): GenerateGatewayClientCertificateRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GenerateGatewayClientCertificateRequest.AsObject;
static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateRequest): GenerateGatewayClientCertificateRequest.AsObject;
static serializeBinaryToWriter(message: GenerateGatewayClientCertificateRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateRequest;
static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateRequest, reader: jspb.BinaryReader): GenerateGatewayClientCertificateRequest;
}
export namespace GenerateGatewayClientCertificateRequest {
export type AsObject = {
gatewayId: string,
}
}
export class GenerateGatewayClientCertificateResponse extends jspb.Message {
getTlsCert(): string;
setTlsCert(value: string): GenerateGatewayClientCertificateResponse;
getTlsKey(): string;
setTlsKey(value: string): GenerateGatewayClientCertificateResponse;
getCaCert(): string;
setCaCert(value: string): GenerateGatewayClientCertificateResponse;
getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): GenerateGatewayClientCertificateResponse;
hasExpiresAt(): boolean;
clearExpiresAt(): GenerateGatewayClientCertificateResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GenerateGatewayClientCertificateResponse.AsObject;
static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateResponse): GenerateGatewayClientCertificateResponse.AsObject;
static serializeBinaryToWriter(message: GenerateGatewayClientCertificateResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateResponse;
static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateResponse, reader: jspb.BinaryReader): GenerateGatewayClientCertificateResponse;
}
export namespace GenerateGatewayClientCertificateResponse {
export type AsObject = {
tlsCert: string,
tlsKey: string,
caCert: string,
expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class GetGatewayStatsRequest extends jspb.Message {
getGatewayId(): string;
setGatewayId(value: string): GetGatewayStatsRequest;
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayStatsRequest;
hasStart(): boolean;
clearStart(): GetGatewayStatsRequest;
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayStatsRequest;
hasEnd(): boolean;
clearEnd(): GetGatewayStatsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewayStatsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewayStatsRequest): GetGatewayStatsRequest.AsObject;
static serializeBinaryToWriter(message: GetGatewayStatsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewayStatsRequest;
static deserializeBinaryFromReader(message: GetGatewayStatsRequest, reader: jspb.BinaryReader): GetGatewayStatsRequest;
}
export namespace GetGatewayStatsRequest {
export type AsObject = {
gatewayId: string,
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class GetGatewayStatsResponse extends jspb.Message {
getResultList(): Array<GatewayStats>;
setResultList(value: Array<GatewayStats>): GetGatewayStatsResponse;
clearResultList(): GetGatewayStatsResponse;
addResult(value?: GatewayStats, index?: number): GatewayStats;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewayStatsResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewayStatsResponse): GetGatewayStatsResponse.AsObject;
static serializeBinaryToWriter(message: GetGatewayStatsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewayStatsResponse;
static deserializeBinaryFromReader(message: GetGatewayStatsResponse, reader: jspb.BinaryReader): GetGatewayStatsResponse;
}
export namespace GetGatewayStatsResponse {
export type AsObject = {
resultList: Array<GatewayStats.AsObject>,
}
}
export class GatewayStats extends jspb.Message {
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTime(value?: google_protobuf_timestamp_pb.Timestamp): GatewayStats;
hasTime(): boolean;
clearTime(): GatewayStats;
getRxPackets(): number;
setRxPackets(value: number): GatewayStats;
getTxPackets(): number;
setTxPackets(value: number): GatewayStats;
getTxPacketsPerFrequencyMap(): jspb.Map<number, number>;
clearTxPacketsPerFrequencyMap(): GatewayStats;
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
clearRxPacketsPerFrequencyMap(): GatewayStats;
getTxPacketsPerDrMap(): jspb.Map<number, number>;
clearTxPacketsPerDrMap(): GatewayStats;
getRxPacketsPerDrMap(): jspb.Map<number, number>;
clearRxPacketsPerDrMap(): GatewayStats;
getTxPacketsPerStatusMap(): jspb.Map<string, number>;
clearTxPacketsPerStatusMap(): GatewayStats;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GatewayStats.AsObject;
static toObject(includeInstance: boolean, msg: GatewayStats): GatewayStats.AsObject;
static serializeBinaryToWriter(message: GatewayStats, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GatewayStats;
static deserializeBinaryFromReader(message: GatewayStats, reader: jspb.BinaryReader): GatewayStats;
}
export namespace GatewayStats {
export type AsObject = {
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
rxPackets: number,
txPackets: number,
txPacketsPerFrequencyMap: Array<[number, number]>,
rxPacketsPerFrequencyMap: Array<[number, number]>,
txPacketsPerDrMap: Array<[number, number]>,
rxPacketsPerDrMap: Array<[number, number]>,
txPacketsPerStatusMap: Array<[string, number]>,
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,170 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_internal_pb from '../api/internal_pb';
export class InternalServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
login(
request: api_internal_pb.LoginRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.LoginResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.LoginResponse>;
profile(
request: google_protobuf_empty_pb.Empty,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.ProfileResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.ProfileResponse>;
globalSearch(
request: api_internal_pb.GlobalSearchRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.GlobalSearchResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.GlobalSearchResponse>;
createApiKey(
request: api_internal_pb.CreateApiKeyRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.CreateApiKeyResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.CreateApiKeyResponse>;
deleteApiKey(
request: api_internal_pb.DeleteApiKeyRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
listApiKeys(
request: api_internal_pb.ListApiKeysRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.ListApiKeysResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.ListApiKeysResponse>;
settings(
request: google_protobuf_empty_pb.Empty,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.SettingsResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.SettingsResponse>;
openIdConnectLogin(
request: api_internal_pb.OpenIdConnectLoginRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.OpenIdConnectLoginResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.OpenIdConnectLoginResponse>;
getDevicesSummary(
request: api_internal_pb.GetDevicesSummaryRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.GetDevicesSummaryResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.GetDevicesSummaryResponse>;
getGatewaysSummary(
request: api_internal_pb.GetGatewaysSummaryRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_internal_pb.GetGatewaysSummaryResponse) => void
): grpcWeb.ClientReadableStream<api_internal_pb.GetGatewaysSummaryResponse>;
streamGatewayFrames(
request: api_internal_pb.StreamGatewayFramesRequest,
metadata?: grpcWeb.Metadata
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceFrames(
request: api_internal_pb.StreamDeviceFramesRequest,
metadata?: grpcWeb.Metadata
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceEvents(
request: api_internal_pb.StreamDeviceEventsRequest,
metadata?: grpcWeb.Metadata
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
}
export class InternalServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
login(
request: api_internal_pb.LoginRequest,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.LoginResponse>;
profile(
request: google_protobuf_empty_pb.Empty,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.ProfileResponse>;
globalSearch(
request: api_internal_pb.GlobalSearchRequest,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.GlobalSearchResponse>;
createApiKey(
request: api_internal_pb.CreateApiKeyRequest,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.CreateApiKeyResponse>;
deleteApiKey(
request: api_internal_pb.DeleteApiKeyRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
listApiKeys(
request: api_internal_pb.ListApiKeysRequest,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.ListApiKeysResponse>;
settings(
request: google_protobuf_empty_pb.Empty,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.SettingsResponse>;
openIdConnectLogin(
request: api_internal_pb.OpenIdConnectLoginRequest,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.OpenIdConnectLoginResponse>;
getDevicesSummary(
request: api_internal_pb.GetDevicesSummaryRequest,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.GetDevicesSummaryResponse>;
getGatewaysSummary(
request: api_internal_pb.GetGatewaysSummaryRequest,
metadata?: grpcWeb.Metadata
): Promise<api_internal_pb.GetGatewaysSummaryResponse>;
streamGatewayFrames(
request: api_internal_pb.StreamGatewayFramesRequest,
metadata?: grpcWeb.Metadata
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceFrames(
request: api_internal_pb.StreamDeviceFramesRequest,
metadata?: grpcWeb.Metadata
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
streamDeviceEvents(
request: api_internal_pb.StreamDeviceEventsRequest,
metadata?: grpcWeb.Metadata
): grpcWeb.ClientReadableStream<api_internal_pb.LogItem>;
}

File diff suppressed because it is too large Load Diff

631
api/grpc-web/api/internal_pb.d.ts vendored Normal file
View File

@ -0,0 +1,631 @@
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_user_pb from '../api/user_pb';
export class ApiKey extends jspb.Message {
getId(): string;
setId(value: string): ApiKey;
getName(): string;
setName(value: string): ApiKey;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): ApiKey;
getTenantId(): string;
setTenantId(value: string): ApiKey;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ApiKey.AsObject;
static toObject(includeInstance: boolean, msg: ApiKey): ApiKey.AsObject;
static serializeBinaryToWriter(message: ApiKey, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ApiKey;
static deserializeBinaryFromReader(message: ApiKey, reader: jspb.BinaryReader): ApiKey;
}
export namespace ApiKey {
export type AsObject = {
id: string,
name: string,
isAdmin: boolean,
tenantId: string,
}
}
export class CreateApiKeyRequest extends jspb.Message {
getApiKey(): ApiKey | undefined;
setApiKey(value?: ApiKey): CreateApiKeyRequest;
hasApiKey(): boolean;
clearApiKey(): CreateApiKeyRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateApiKeyRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateApiKeyRequest): CreateApiKeyRequest.AsObject;
static serializeBinaryToWriter(message: CreateApiKeyRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateApiKeyRequest;
static deserializeBinaryFromReader(message: CreateApiKeyRequest, reader: jspb.BinaryReader): CreateApiKeyRequest;
}
export namespace CreateApiKeyRequest {
export type AsObject = {
apiKey?: ApiKey.AsObject,
}
}
export class CreateApiKeyResponse extends jspb.Message {
getId(): string;
setId(value: string): CreateApiKeyResponse;
getToken(): string;
setToken(value: string): CreateApiKeyResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateApiKeyResponse.AsObject;
static toObject(includeInstance: boolean, msg: CreateApiKeyResponse): CreateApiKeyResponse.AsObject;
static serializeBinaryToWriter(message: CreateApiKeyResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateApiKeyResponse;
static deserializeBinaryFromReader(message: CreateApiKeyResponse, reader: jspb.BinaryReader): CreateApiKeyResponse;
}
export namespace CreateApiKeyResponse {
export type AsObject = {
id: string,
token: string,
}
}
export class DeleteApiKeyRequest extends jspb.Message {
getId(): string;
setId(value: string): DeleteApiKeyRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteApiKeyRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteApiKeyRequest): DeleteApiKeyRequest.AsObject;
static serializeBinaryToWriter(message: DeleteApiKeyRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteApiKeyRequest;
static deserializeBinaryFromReader(message: DeleteApiKeyRequest, reader: jspb.BinaryReader): DeleteApiKeyRequest;
}
export namespace DeleteApiKeyRequest {
export type AsObject = {
id: string,
}
}
export class ListApiKeysRequest extends jspb.Message {
getLimit(): number;
setLimit(value: number): ListApiKeysRequest;
getOffset(): number;
setOffset(value: number): ListApiKeysRequest;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): ListApiKeysRequest;
getTenantId(): string;
setTenantId(value: string): ListApiKeysRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListApiKeysRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListApiKeysRequest): ListApiKeysRequest.AsObject;
static serializeBinaryToWriter(message: ListApiKeysRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListApiKeysRequest;
static deserializeBinaryFromReader(message: ListApiKeysRequest, reader: jspb.BinaryReader): ListApiKeysRequest;
}
export namespace ListApiKeysRequest {
export type AsObject = {
limit: number,
offset: number,
isAdmin: boolean,
tenantId: string,
}
}
export class ListApiKeysResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListApiKeysResponse;
getResultList(): Array<ApiKey>;
setResultList(value: Array<ApiKey>): ListApiKeysResponse;
clearResultList(): ListApiKeysResponse;
addResult(value?: ApiKey, index?: number): ApiKey;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListApiKeysResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListApiKeysResponse): ListApiKeysResponse.AsObject;
static serializeBinaryToWriter(message: ListApiKeysResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListApiKeysResponse;
static deserializeBinaryFromReader(message: ListApiKeysResponse, reader: jspb.BinaryReader): ListApiKeysResponse;
}
export namespace ListApiKeysResponse {
export type AsObject = {
totalCount: number,
resultList: Array<ApiKey.AsObject>,
}
}
export class UserTenantLink extends jspb.Message {
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserTenantLink;
hasCreatedAt(): boolean;
clearCreatedAt(): UserTenantLink;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserTenantLink;
hasUpdatedAt(): boolean;
clearUpdatedAt(): UserTenantLink;
getTenantId(): string;
setTenantId(value: string): UserTenantLink;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): UserTenantLink;
getIsDeviceAdmin(): boolean;
setIsDeviceAdmin(value: boolean): UserTenantLink;
getIsGatewayAdmin(): boolean;
setIsGatewayAdmin(value: boolean): UserTenantLink;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UserTenantLink.AsObject;
static toObject(includeInstance: boolean, msg: UserTenantLink): UserTenantLink.AsObject;
static serializeBinaryToWriter(message: UserTenantLink, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UserTenantLink;
static deserializeBinaryFromReader(message: UserTenantLink, reader: jspb.BinaryReader): UserTenantLink;
}
export namespace UserTenantLink {
export type AsObject = {
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
tenantId: string,
isAdmin: boolean,
isDeviceAdmin: boolean,
isGatewayAdmin: boolean,
}
}
export class LoginRequest extends jspb.Message {
getEmail(): string;
setEmail(value: string): LoginRequest;
getPassword(): string;
setPassword(value: string): LoginRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LoginRequest.AsObject;
static toObject(includeInstance: boolean, msg: LoginRequest): LoginRequest.AsObject;
static serializeBinaryToWriter(message: LoginRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): LoginRequest;
static deserializeBinaryFromReader(message: LoginRequest, reader: jspb.BinaryReader): LoginRequest;
}
export namespace LoginRequest {
export type AsObject = {
email: string,
password: string,
}
}
export class LoginResponse extends jspb.Message {
getJwt(): string;
setJwt(value: string): LoginResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LoginResponse.AsObject;
static toObject(includeInstance: boolean, msg: LoginResponse): LoginResponse.AsObject;
static serializeBinaryToWriter(message: LoginResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): LoginResponse;
static deserializeBinaryFromReader(message: LoginResponse, reader: jspb.BinaryReader): LoginResponse;
}
export namespace LoginResponse {
export type AsObject = {
jwt: string,
}
}
export class ProfileResponse extends jspb.Message {
getUser(): api_user_pb.User | undefined;
setUser(value?: api_user_pb.User): ProfileResponse;
hasUser(): boolean;
clearUser(): ProfileResponse;
getTenantsList(): Array<UserTenantLink>;
setTenantsList(value: Array<UserTenantLink>): ProfileResponse;
clearTenantsList(): ProfileResponse;
addTenants(value?: UserTenantLink, index?: number): UserTenantLink;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ProfileResponse.AsObject;
static toObject(includeInstance: boolean, msg: ProfileResponse): ProfileResponse.AsObject;
static serializeBinaryToWriter(message: ProfileResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ProfileResponse;
static deserializeBinaryFromReader(message: ProfileResponse, reader: jspb.BinaryReader): ProfileResponse;
}
export namespace ProfileResponse {
export type AsObject = {
user?: api_user_pb.User.AsObject,
tenantsList: Array<UserTenantLink.AsObject>,
}
}
export class GlobalSearchRequest extends jspb.Message {
getSearch(): string;
setSearch(value: string): GlobalSearchRequest;
getLimit(): number;
setLimit(value: number): GlobalSearchRequest;
getOffset(): number;
setOffset(value: number): GlobalSearchRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GlobalSearchRequest.AsObject;
static toObject(includeInstance: boolean, msg: GlobalSearchRequest): GlobalSearchRequest.AsObject;
static serializeBinaryToWriter(message: GlobalSearchRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GlobalSearchRequest;
static deserializeBinaryFromReader(message: GlobalSearchRequest, reader: jspb.BinaryReader): GlobalSearchRequest;
}
export namespace GlobalSearchRequest {
export type AsObject = {
search: string,
limit: number,
offset: number,
}
}
export class GlobalSearchResponse extends jspb.Message {
getResultList(): Array<GlobalSearchResult>;
setResultList(value: Array<GlobalSearchResult>): GlobalSearchResponse;
clearResultList(): GlobalSearchResponse;
addResult(value?: GlobalSearchResult, index?: number): GlobalSearchResult;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GlobalSearchResponse.AsObject;
static toObject(includeInstance: boolean, msg: GlobalSearchResponse): GlobalSearchResponse.AsObject;
static serializeBinaryToWriter(message: GlobalSearchResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GlobalSearchResponse;
static deserializeBinaryFromReader(message: GlobalSearchResponse, reader: jspb.BinaryReader): GlobalSearchResponse;
}
export namespace GlobalSearchResponse {
export type AsObject = {
resultList: Array<GlobalSearchResult.AsObject>,
}
}
export class GlobalSearchResult extends jspb.Message {
getKind(): string;
setKind(value: string): GlobalSearchResult;
getScore(): number;
setScore(value: number): GlobalSearchResult;
getTenantId(): string;
setTenantId(value: string): GlobalSearchResult;
getTenantName(): string;
setTenantName(value: string): GlobalSearchResult;
getApplicationId(): string;
setApplicationId(value: string): GlobalSearchResult;
getApplicationName(): string;
setApplicationName(value: string): GlobalSearchResult;
getDeviceDevEui(): string;
setDeviceDevEui(value: string): GlobalSearchResult;
getDeviceName(): string;
setDeviceName(value: string): GlobalSearchResult;
getGatewayId(): string;
setGatewayId(value: string): GlobalSearchResult;
getGatewayName(): string;
setGatewayName(value: string): GlobalSearchResult;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GlobalSearchResult.AsObject;
static toObject(includeInstance: boolean, msg: GlobalSearchResult): GlobalSearchResult.AsObject;
static serializeBinaryToWriter(message: GlobalSearchResult, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GlobalSearchResult;
static deserializeBinaryFromReader(message: GlobalSearchResult, reader: jspb.BinaryReader): GlobalSearchResult;
}
export namespace GlobalSearchResult {
export type AsObject = {
kind: string,
score: number,
tenantId: string,
tenantName: string,
applicationId: string,
applicationName: string,
deviceDevEui: string,
deviceName: string,
gatewayId: string,
gatewayName: string,
}
}
export class SettingsResponse extends jspb.Message {
getOpenidConnect(): OpenIdConnect | undefined;
setOpenidConnect(value?: OpenIdConnect): SettingsResponse;
hasOpenidConnect(): boolean;
clearOpenidConnect(): SettingsResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SettingsResponse.AsObject;
static toObject(includeInstance: boolean, msg: SettingsResponse): SettingsResponse.AsObject;
static serializeBinaryToWriter(message: SettingsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): SettingsResponse;
static deserializeBinaryFromReader(message: SettingsResponse, reader: jspb.BinaryReader): SettingsResponse;
}
export namespace SettingsResponse {
export type AsObject = {
openidConnect?: OpenIdConnect.AsObject,
}
}
export class OpenIdConnect extends jspb.Message {
getEnabled(): boolean;
setEnabled(value: boolean): OpenIdConnect;
getLoginUrl(): string;
setLoginUrl(value: string): OpenIdConnect;
getLoginLabel(): string;
setLoginLabel(value: string): OpenIdConnect;
getLogoutUrl(): string;
setLogoutUrl(value: string): OpenIdConnect;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): OpenIdConnect.AsObject;
static toObject(includeInstance: boolean, msg: OpenIdConnect): OpenIdConnect.AsObject;
static serializeBinaryToWriter(message: OpenIdConnect, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): OpenIdConnect;
static deserializeBinaryFromReader(message: OpenIdConnect, reader: jspb.BinaryReader): OpenIdConnect;
}
export namespace OpenIdConnect {
export type AsObject = {
enabled: boolean,
loginUrl: string,
loginLabel: string,
logoutUrl: string,
}
}
export class OpenIdConnectLoginRequest extends jspb.Message {
getCode(): string;
setCode(value: string): OpenIdConnectLoginRequest;
getState(): string;
setState(value: string): OpenIdConnectLoginRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): OpenIdConnectLoginRequest.AsObject;
static toObject(includeInstance: boolean, msg: OpenIdConnectLoginRequest): OpenIdConnectLoginRequest.AsObject;
static serializeBinaryToWriter(message: OpenIdConnectLoginRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginRequest;
static deserializeBinaryFromReader(message: OpenIdConnectLoginRequest, reader: jspb.BinaryReader): OpenIdConnectLoginRequest;
}
export namespace OpenIdConnectLoginRequest {
export type AsObject = {
code: string,
state: string,
}
}
export class OpenIdConnectLoginResponse extends jspb.Message {
getToken(): string;
setToken(value: string): OpenIdConnectLoginResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): OpenIdConnectLoginResponse.AsObject;
static toObject(includeInstance: boolean, msg: OpenIdConnectLoginResponse): OpenIdConnectLoginResponse.AsObject;
static serializeBinaryToWriter(message: OpenIdConnectLoginResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginResponse;
static deserializeBinaryFromReader(message: OpenIdConnectLoginResponse, reader: jspb.BinaryReader): OpenIdConnectLoginResponse;
}
export namespace OpenIdConnectLoginResponse {
export type AsObject = {
token: string,
}
}
export class GetDevicesSummaryRequest extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): GetDevicesSummaryRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDevicesSummaryRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetDevicesSummaryRequest): GetDevicesSummaryRequest.AsObject;
static serializeBinaryToWriter(message: GetDevicesSummaryRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryRequest;
static deserializeBinaryFromReader(message: GetDevicesSummaryRequest, reader: jspb.BinaryReader): GetDevicesSummaryRequest;
}
export namespace GetDevicesSummaryRequest {
export type AsObject = {
tenantId: string,
}
}
export class GetDevicesSummaryResponse extends jspb.Message {
getActiveCount(): number;
setActiveCount(value: number): GetDevicesSummaryResponse;
getInactiveCount(): number;
setInactiveCount(value: number): GetDevicesSummaryResponse;
getDrCountMap(): jspb.Map<number, number>;
clearDrCountMap(): GetDevicesSummaryResponse;
getNeverSeenCount(): number;
setNeverSeenCount(value: number): GetDevicesSummaryResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetDevicesSummaryResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetDevicesSummaryResponse): GetDevicesSummaryResponse.AsObject;
static serializeBinaryToWriter(message: GetDevicesSummaryResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryResponse;
static deserializeBinaryFromReader(message: GetDevicesSummaryResponse, reader: jspb.BinaryReader): GetDevicesSummaryResponse;
}
export namespace GetDevicesSummaryResponse {
export type AsObject = {
activeCount: number,
inactiveCount: number,
drCountMap: Array<[number, number]>,
neverSeenCount: number,
}
}
export class GetGatewaysSummaryRequest extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): GetGatewaysSummaryRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewaysSummaryRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewaysSummaryRequest): GetGatewaysSummaryRequest.AsObject;
static serializeBinaryToWriter(message: GetGatewaysSummaryRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryRequest;
static deserializeBinaryFromReader(message: GetGatewaysSummaryRequest, reader: jspb.BinaryReader): GetGatewaysSummaryRequest;
}
export namespace GetGatewaysSummaryRequest {
export type AsObject = {
tenantId: string,
}
}
export class GetGatewaysSummaryResponse extends jspb.Message {
getActiveCount(): number;
setActiveCount(value: number): GetGatewaysSummaryResponse;
getInactiveCount(): number;
setInactiveCount(value: number): GetGatewaysSummaryResponse;
getNeverSeenCount(): number;
setNeverSeenCount(value: number): GetGatewaysSummaryResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetGatewaysSummaryResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetGatewaysSummaryResponse): GetGatewaysSummaryResponse.AsObject;
static serializeBinaryToWriter(message: GetGatewaysSummaryResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryResponse;
static deserializeBinaryFromReader(message: GetGatewaysSummaryResponse, reader: jspb.BinaryReader): GetGatewaysSummaryResponse;
}
export namespace GetGatewaysSummaryResponse {
export type AsObject = {
activeCount: number,
inactiveCount: number,
neverSeenCount: number,
}
}
export class LogItem extends jspb.Message {
getId(): string;
setId(value: string): LogItem;
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTime(value?: google_protobuf_timestamp_pb.Timestamp): LogItem;
hasTime(): boolean;
clearTime(): LogItem;
getDescription(): string;
setDescription(value: string): LogItem;
getBody(): string;
setBody(value: string): LogItem;
getPropertiesMap(): jspb.Map<string, string>;
clearPropertiesMap(): LogItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LogItem.AsObject;
static toObject(includeInstance: boolean, msg: LogItem): LogItem.AsObject;
static serializeBinaryToWriter(message: LogItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): LogItem;
static deserializeBinaryFromReader(message: LogItem, reader: jspb.BinaryReader): LogItem;
}
export namespace LogItem {
export type AsObject = {
id: string,
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
description: string,
body: string,
propertiesMap: Array<[string, string]>,
}
}
export class StreamGatewayFramesRequest extends jspb.Message {
getGatewayId(): string;
setGatewayId(value: string): StreamGatewayFramesRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StreamGatewayFramesRequest.AsObject;
static toObject(includeInstance: boolean, msg: StreamGatewayFramesRequest): StreamGatewayFramesRequest.AsObject;
static serializeBinaryToWriter(message: StreamGatewayFramesRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StreamGatewayFramesRequest;
static deserializeBinaryFromReader(message: StreamGatewayFramesRequest, reader: jspb.BinaryReader): StreamGatewayFramesRequest;
}
export namespace StreamGatewayFramesRequest {
export type AsObject = {
gatewayId: string,
}
}
export class StreamDeviceFramesRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): StreamDeviceFramesRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StreamDeviceFramesRequest.AsObject;
static toObject(includeInstance: boolean, msg: StreamDeviceFramesRequest): StreamDeviceFramesRequest.AsObject;
static serializeBinaryToWriter(message: StreamDeviceFramesRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StreamDeviceFramesRequest;
static deserializeBinaryFromReader(message: StreamDeviceFramesRequest, reader: jspb.BinaryReader): StreamDeviceFramesRequest;
}
export namespace StreamDeviceFramesRequest {
export type AsObject = {
devEui: string,
}
}
export class StreamDeviceEventsRequest extends jspb.Message {
getDevEui(): string;
setDevEui(value: string): StreamDeviceEventsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StreamDeviceEventsRequest.AsObject;
static toObject(includeInstance: boolean, msg: StreamDeviceEventsRequest): StreamDeviceEventsRequest.AsObject;
static serializeBinaryToWriter(message: StreamDeviceEventsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StreamDeviceEventsRequest;
static deserializeBinaryFromReader(message: StreamDeviceEventsRequest, reader: jspb.BinaryReader): StreamDeviceEventsRequest;
}
export namespace StreamDeviceEventsRequest {
export type AsObject = {
devEui: string,
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,140 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_multicast_group_pb from '../api/multicast_group_pb';
export class MulticastGroupServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_multicast_group_pb.CreateMulticastGroupRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_multicast_group_pb.CreateMulticastGroupResponse) => void
): grpcWeb.ClientReadableStream<api_multicast_group_pb.CreateMulticastGroupResponse>;
get(
request: api_multicast_group_pb.GetMulticastGroupRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_multicast_group_pb.GetMulticastGroupResponse) => void
): grpcWeb.ClientReadableStream<api_multicast_group_pb.GetMulticastGroupResponse>;
update(
request: api_multicast_group_pb.UpdateMulticastGroupRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
delete(
request: api_multicast_group_pb.DeleteMulticastGroupRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
list(
request: api_multicast_group_pb.ListMulticastGroupsRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_multicast_group_pb.ListMulticastGroupsResponse) => void
): grpcWeb.ClientReadableStream<api_multicast_group_pb.ListMulticastGroupsResponse>;
addDevice(
request: api_multicast_group_pb.AddDeviceToMulticastGroupRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
removeDevice(
request: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
enqueue(
request: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse) => void
): grpcWeb.ClientReadableStream<api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>;
flushQueue(
request: api_multicast_group_pb.FlushMulticastGroupQueueRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
listQueue(
request: api_multicast_group_pb.ListMulticastGroupQueueRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_multicast_group_pb.ListMulticastGroupQueueResponse) => void
): grpcWeb.ClientReadableStream<api_multicast_group_pb.ListMulticastGroupQueueResponse>;
}
export class MulticastGroupServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_multicast_group_pb.CreateMulticastGroupRequest,
metadata?: grpcWeb.Metadata
): Promise<api_multicast_group_pb.CreateMulticastGroupResponse>;
get(
request: api_multicast_group_pb.GetMulticastGroupRequest,
metadata?: grpcWeb.Metadata
): Promise<api_multicast_group_pb.GetMulticastGroupResponse>;
update(
request: api_multicast_group_pb.UpdateMulticastGroupRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
delete(
request: api_multicast_group_pb.DeleteMulticastGroupRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
list(
request: api_multicast_group_pb.ListMulticastGroupsRequest,
metadata?: grpcWeb.Metadata
): Promise<api_multicast_group_pb.ListMulticastGroupsResponse>;
addDevice(
request: api_multicast_group_pb.AddDeviceToMulticastGroupRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
removeDevice(
request: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
enqueue(
request: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest,
metadata?: grpcWeb.Metadata
): Promise<api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse>;
flushQueue(
request: api_multicast_group_pb.FlushMulticastGroupQueueRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
listQueue(
request: api_multicast_group_pb.ListMulticastGroupQueueRequest,
metadata?: grpcWeb.Metadata
): Promise<api_multicast_group_pb.ListMulticastGroupQueueResponse>;
}

View File

@ -0,0 +1,882 @@
/**
* @fileoverview gRPC-Web generated client stub for api
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
const grpc = {};
grpc.web = require('grpc-web');
var google_api_annotations_pb = require('../google/api/annotations_pb.js')
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
var common_common_pb = require('../common/common_pb.js')
const proto = {};
proto.api = require('./multicast_group_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.MulticastGroupServiceClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.MulticastGroupServicePromiseClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.CreateMulticastGroupRequest,
* !proto.api.CreateMulticastGroupResponse>}
*/
const methodDescriptor_MulticastGroupService_Create = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/Create',
grpc.web.MethodType.UNARY,
proto.api.CreateMulticastGroupRequest,
proto.api.CreateMulticastGroupResponse,
/**
* @param {!proto.api.CreateMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateMulticastGroupResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.CreateMulticastGroupRequest,
* !proto.api.CreateMulticastGroupResponse>}
*/
const methodInfo_MulticastGroupService_Create = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.CreateMulticastGroupResponse,
/**
* @param {!proto.api.CreateMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateMulticastGroupResponse.deserializeBinary
);
/**
* @param {!proto.api.CreateMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.CreateMulticastGroupResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateMulticastGroupResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.create =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/Create',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Create,
callback);
};
/**
* @param {!proto.api.CreateMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.CreateMulticastGroupResponse>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.create =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/Create',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Create);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GetMulticastGroupRequest,
* !proto.api.GetMulticastGroupResponse>}
*/
const methodDescriptor_MulticastGroupService_Get = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/Get',
grpc.web.MethodType.UNARY,
proto.api.GetMulticastGroupRequest,
proto.api.GetMulticastGroupResponse,
/**
* @param {!proto.api.GetMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetMulticastGroupResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetMulticastGroupRequest,
* !proto.api.GetMulticastGroupResponse>}
*/
const methodInfo_MulticastGroupService_Get = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetMulticastGroupResponse,
/**
* @param {!proto.api.GetMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetMulticastGroupResponse.deserializeBinary
);
/**
* @param {!proto.api.GetMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetMulticastGroupResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetMulticastGroupResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.get =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/Get',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Get,
callback);
};
/**
* @param {!proto.api.GetMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetMulticastGroupResponse>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.get =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/Get',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Get);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.UpdateMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_MulticastGroupService_Update = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/Update',
grpc.web.MethodType.UNARY,
proto.api.UpdateMulticastGroupRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.UpdateMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_MulticastGroupService_Update = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.UpdateMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.update =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/Update',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Update,
callback);
};
/**
* @param {!proto.api.UpdateMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.update =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/Update',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Update);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.DeleteMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_MulticastGroupService_Delete = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/Delete',
grpc.web.MethodType.UNARY,
proto.api.DeleteMulticastGroupRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.DeleteMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_MulticastGroupService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.DeleteMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.delete =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/Delete',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Delete,
callback);
};
/**
* @param {!proto.api.DeleteMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.delete =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/Delete',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Delete);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.ListMulticastGroupsRequest,
* !proto.api.ListMulticastGroupsResponse>}
*/
const methodDescriptor_MulticastGroupService_List = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/List',
grpc.web.MethodType.UNARY,
proto.api.ListMulticastGroupsRequest,
proto.api.ListMulticastGroupsResponse,
/**
* @param {!proto.api.ListMulticastGroupsRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListMulticastGroupsResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListMulticastGroupsRequest,
* !proto.api.ListMulticastGroupsResponse>}
*/
const methodInfo_MulticastGroupService_List = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListMulticastGroupsResponse,
/**
* @param {!proto.api.ListMulticastGroupsRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListMulticastGroupsResponse.deserializeBinary
);
/**
* @param {!proto.api.ListMulticastGroupsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListMulticastGroupsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListMulticastGroupsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.list =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/List',
request,
metadata || {},
methodDescriptor_MulticastGroupService_List,
callback);
};
/**
* @param {!proto.api.ListMulticastGroupsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListMulticastGroupsResponse>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.list =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/List',
request,
metadata || {},
methodDescriptor_MulticastGroupService_List);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.AddDeviceToMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_MulticastGroupService_AddDevice = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/AddDevice',
grpc.web.MethodType.UNARY,
proto.api.AddDeviceToMulticastGroupRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.AddDeviceToMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_MulticastGroupService_AddDevice = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.addDevice =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/AddDevice',
request,
metadata || {},
methodDescriptor_MulticastGroupService_AddDevice,
callback);
};
/**
* @param {!proto.api.AddDeviceToMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.addDevice =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/AddDevice',
request,
metadata || {},
methodDescriptor_MulticastGroupService_AddDevice);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.RemoveDeviceFromMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_MulticastGroupService_RemoveDevice = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/RemoveDevice',
grpc.web.MethodType.UNARY,
proto.api.RemoveDeviceFromMulticastGroupRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.RemoveDeviceFromMulticastGroupRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_MulticastGroupService_RemoveDevice = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.removeDevice =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/RemoveDevice',
request,
metadata || {},
methodDescriptor_MulticastGroupService_RemoveDevice,
callback);
};
/**
* @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.removeDevice =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/RemoveDevice',
request,
metadata || {},
methodDescriptor_MulticastGroupService_RemoveDevice);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.EnqueueMulticastGroupQueueItemRequest,
* !proto.api.EnqueueMulticastGroupQueueItemResponse>}
*/
const methodDescriptor_MulticastGroupService_Enqueue = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/Enqueue',
grpc.web.MethodType.UNARY,
proto.api.EnqueueMulticastGroupQueueItemRequest,
proto.api.EnqueueMulticastGroupQueueItemResponse,
/**
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.EnqueueMulticastGroupQueueItemRequest,
* !proto.api.EnqueueMulticastGroupQueueItemResponse>}
*/
const methodInfo_MulticastGroupService_Enqueue = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.EnqueueMulticastGroupQueueItemResponse,
/**
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinary
);
/**
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.EnqueueMulticastGroupQueueItemResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.EnqueueMulticastGroupQueueItemResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.enqueue =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/Enqueue',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Enqueue,
callback);
};
/**
* @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.EnqueueMulticastGroupQueueItemResponse>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.enqueue =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/Enqueue',
request,
metadata || {},
methodDescriptor_MulticastGroupService_Enqueue);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.FlushMulticastGroupQueueRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_MulticastGroupService_FlushQueue = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/FlushQueue',
grpc.web.MethodType.UNARY,
proto.api.FlushMulticastGroupQueueRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.FlushMulticastGroupQueueRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.FlushMulticastGroupQueueRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_MulticastGroupService_FlushQueue = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.FlushMulticastGroupQueueRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.FlushMulticastGroupQueueRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.flushQueue =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/FlushQueue',
request,
metadata || {},
methodDescriptor_MulticastGroupService_FlushQueue,
callback);
};
/**
* @param {!proto.api.FlushMulticastGroupQueueRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.flushQueue =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/FlushQueue',
request,
metadata || {},
methodDescriptor_MulticastGroupService_FlushQueue);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.ListMulticastGroupQueueRequest,
* !proto.api.ListMulticastGroupQueueResponse>}
*/
const methodDescriptor_MulticastGroupService_ListQueue = new grpc.web.MethodDescriptor(
'/api.MulticastGroupService/ListQueue',
grpc.web.MethodType.UNARY,
proto.api.ListMulticastGroupQueueRequest,
proto.api.ListMulticastGroupQueueResponse,
/**
* @param {!proto.api.ListMulticastGroupQueueRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListMulticastGroupQueueResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListMulticastGroupQueueRequest,
* !proto.api.ListMulticastGroupQueueResponse>}
*/
const methodInfo_MulticastGroupService_ListQueue = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListMulticastGroupQueueResponse,
/**
* @param {!proto.api.ListMulticastGroupQueueRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListMulticastGroupQueueResponse.deserializeBinary
);
/**
* @param {!proto.api.ListMulticastGroupQueueRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListMulticastGroupQueueResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListMulticastGroupQueueResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.MulticastGroupServiceClient.prototype.listQueue =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.MulticastGroupService/ListQueue',
request,
metadata || {},
methodDescriptor_MulticastGroupService_ListQueue,
callback);
};
/**
* @param {!proto.api.ListMulticastGroupQueueRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListMulticastGroupQueueResponse>}
* Promise that resolves to the response
*/
proto.api.MulticastGroupServicePromiseClient.prototype.listQueue =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.MulticastGroupService/ListQueue',
request,
metadata || {},
methodDescriptor_MulticastGroupService_ListQueue);
};
module.exports = proto.api;

466
api/grpc-web/api/multicast_group_pb.d.ts vendored Normal file
View File

@ -0,0 +1,466 @@
import * as jspb from 'google-protobuf'
import * as google_api_annotations_pb from '../google/api/annotations_pb';
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as common_common_pb from '../common/common_pb';
export class MulticastGroup extends jspb.Message {
getId(): string;
setId(value: string): MulticastGroup;
getName(): string;
setName(value: string): MulticastGroup;
getApplicationId(): string;
setApplicationId(value: string): MulticastGroup;
getRegion(): common_common_pb.Region;
setRegion(value: common_common_pb.Region): MulticastGroup;
getMcAddr(): string;
setMcAddr(value: string): MulticastGroup;
getMcNwkSKey(): string;
setMcNwkSKey(value: string): MulticastGroup;
getMcAppSKey(): string;
setMcAppSKey(value: string): MulticastGroup;
getFCnt(): number;
setFCnt(value: number): MulticastGroup;
getGroupType(): MulticastGroupType;
setGroupType(value: MulticastGroupType): MulticastGroup;
getDr(): number;
setDr(value: number): MulticastGroup;
getFrequency(): number;
setFrequency(value: number): MulticastGroup;
getClassBPingSlotPeriod(): number;
setClassBPingSlotPeriod(value: number): MulticastGroup;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MulticastGroup.AsObject;
static toObject(includeInstance: boolean, msg: MulticastGroup): MulticastGroup.AsObject;
static serializeBinaryToWriter(message: MulticastGroup, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): MulticastGroup;
static deserializeBinaryFromReader(message: MulticastGroup, reader: jspb.BinaryReader): MulticastGroup;
}
export namespace MulticastGroup {
export type AsObject = {
id: string,
name: string,
applicationId: string,
region: common_common_pb.Region,
mcAddr: string,
mcNwkSKey: string,
mcAppSKey: string,
fCnt: number,
groupType: MulticastGroupType,
dr: number,
frequency: number,
classBPingSlotPeriod: number,
}
}
export class MulticastGroupListItem extends jspb.Message {
getId(): string;
setId(value: string): MulticastGroupListItem;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): MulticastGroupListItem;
hasCreatedAt(): boolean;
clearCreatedAt(): MulticastGroupListItem;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): MulticastGroupListItem;
hasUpdatedAt(): boolean;
clearUpdatedAt(): MulticastGroupListItem;
getName(): string;
setName(value: string): MulticastGroupListItem;
getRegion(): common_common_pb.Region;
setRegion(value: common_common_pb.Region): MulticastGroupListItem;
getGroupType(): MulticastGroupType;
setGroupType(value: MulticastGroupType): MulticastGroupListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MulticastGroupListItem.AsObject;
static toObject(includeInstance: boolean, msg: MulticastGroupListItem): MulticastGroupListItem.AsObject;
static serializeBinaryToWriter(message: MulticastGroupListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): MulticastGroupListItem;
static deserializeBinaryFromReader(message: MulticastGroupListItem, reader: jspb.BinaryReader): MulticastGroupListItem;
}
export namespace MulticastGroupListItem {
export type AsObject = {
id: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
name: string,
region: common_common_pb.Region,
groupType: MulticastGroupType,
}
}
export class CreateMulticastGroupRequest extends jspb.Message {
getMulticastGroup(): MulticastGroup | undefined;
setMulticastGroup(value?: MulticastGroup): CreateMulticastGroupRequest;
hasMulticastGroup(): boolean;
clearMulticastGroup(): CreateMulticastGroupRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateMulticastGroupRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateMulticastGroupRequest): CreateMulticastGroupRequest.AsObject;
static serializeBinaryToWriter(message: CreateMulticastGroupRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupRequest;
static deserializeBinaryFromReader(message: CreateMulticastGroupRequest, reader: jspb.BinaryReader): CreateMulticastGroupRequest;
}
export namespace CreateMulticastGroupRequest {
export type AsObject = {
multicastGroup?: MulticastGroup.AsObject,
}
}
export class CreateMulticastGroupResponse extends jspb.Message {
getId(): string;
setId(value: string): CreateMulticastGroupResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateMulticastGroupResponse.AsObject;
static toObject(includeInstance: boolean, msg: CreateMulticastGroupResponse): CreateMulticastGroupResponse.AsObject;
static serializeBinaryToWriter(message: CreateMulticastGroupResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupResponse;
static deserializeBinaryFromReader(message: CreateMulticastGroupResponse, reader: jspb.BinaryReader): CreateMulticastGroupResponse;
}
export namespace CreateMulticastGroupResponse {
export type AsObject = {
id: string,
}
}
export class GetMulticastGroupRequest extends jspb.Message {
getId(): string;
setId(value: string): GetMulticastGroupRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMulticastGroupRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetMulticastGroupRequest): GetMulticastGroupRequest.AsObject;
static serializeBinaryToWriter(message: GetMulticastGroupRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetMulticastGroupRequest;
static deserializeBinaryFromReader(message: GetMulticastGroupRequest, reader: jspb.BinaryReader): GetMulticastGroupRequest;
}
export namespace GetMulticastGroupRequest {
export type AsObject = {
id: string,
}
}
export class GetMulticastGroupResponse extends jspb.Message {
getMulticastGroup(): MulticastGroup | undefined;
setMulticastGroup(value?: MulticastGroup): GetMulticastGroupResponse;
hasMulticastGroup(): boolean;
clearMulticastGroup(): GetMulticastGroupResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetMulticastGroupResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetMulticastGroupResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetMulticastGroupResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetMulticastGroupResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMulticastGroupResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetMulticastGroupResponse): GetMulticastGroupResponse.AsObject;
static serializeBinaryToWriter(message: GetMulticastGroupResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetMulticastGroupResponse;
static deserializeBinaryFromReader(message: GetMulticastGroupResponse, reader: jspb.BinaryReader): GetMulticastGroupResponse;
}
export namespace GetMulticastGroupResponse {
export type AsObject = {
multicastGroup?: MulticastGroup.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class UpdateMulticastGroupRequest extends jspb.Message {
getMulticastGroup(): MulticastGroup | undefined;
setMulticastGroup(value?: MulticastGroup): UpdateMulticastGroupRequest;
hasMulticastGroup(): boolean;
clearMulticastGroup(): UpdateMulticastGroupRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateMulticastGroupRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateMulticastGroupRequest): UpdateMulticastGroupRequest.AsObject;
static serializeBinaryToWriter(message: UpdateMulticastGroupRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateMulticastGroupRequest;
static deserializeBinaryFromReader(message: UpdateMulticastGroupRequest, reader: jspb.BinaryReader): UpdateMulticastGroupRequest;
}
export namespace UpdateMulticastGroupRequest {
export type AsObject = {
multicastGroup?: MulticastGroup.AsObject,
}
}
export class DeleteMulticastGroupRequest extends jspb.Message {
getId(): string;
setId(value: string): DeleteMulticastGroupRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteMulticastGroupRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteMulticastGroupRequest): DeleteMulticastGroupRequest.AsObject;
static serializeBinaryToWriter(message: DeleteMulticastGroupRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteMulticastGroupRequest;
static deserializeBinaryFromReader(message: DeleteMulticastGroupRequest, reader: jspb.BinaryReader): DeleteMulticastGroupRequest;
}
export namespace DeleteMulticastGroupRequest {
export type AsObject = {
id: string,
}
}
export class ListMulticastGroupsRequest extends jspb.Message {
getLimit(): number;
setLimit(value: number): ListMulticastGroupsRequest;
getOffset(): number;
setOffset(value: number): ListMulticastGroupsRequest;
getSearch(): string;
setSearch(value: string): ListMulticastGroupsRequest;
getApplicationId(): string;
setApplicationId(value: string): ListMulticastGroupsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListMulticastGroupsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListMulticastGroupsRequest): ListMulticastGroupsRequest.AsObject;
static serializeBinaryToWriter(message: ListMulticastGroupsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsRequest;
static deserializeBinaryFromReader(message: ListMulticastGroupsRequest, reader: jspb.BinaryReader): ListMulticastGroupsRequest;
}
export namespace ListMulticastGroupsRequest {
export type AsObject = {
limit: number,
offset: number,
search: string,
applicationId: string,
}
}
export class ListMulticastGroupsResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListMulticastGroupsResponse;
getResultList(): Array<MulticastGroupListItem>;
setResultList(value: Array<MulticastGroupListItem>): ListMulticastGroupsResponse;
clearResultList(): ListMulticastGroupsResponse;
addResult(value?: MulticastGroupListItem, index?: number): MulticastGroupListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListMulticastGroupsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListMulticastGroupsResponse): ListMulticastGroupsResponse.AsObject;
static serializeBinaryToWriter(message: ListMulticastGroupsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsResponse;
static deserializeBinaryFromReader(message: ListMulticastGroupsResponse, reader: jspb.BinaryReader): ListMulticastGroupsResponse;
}
export namespace ListMulticastGroupsResponse {
export type AsObject = {
totalCount: number,
resultList: Array<MulticastGroupListItem.AsObject>,
}
}
export class AddDeviceToMulticastGroupRequest extends jspb.Message {
getMulticastGroupId(): string;
setMulticastGroupId(value: string): AddDeviceToMulticastGroupRequest;
getDevEui(): string;
setDevEui(value: string): AddDeviceToMulticastGroupRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AddDeviceToMulticastGroupRequest.AsObject;
static toObject(includeInstance: boolean, msg: AddDeviceToMulticastGroupRequest): AddDeviceToMulticastGroupRequest.AsObject;
static serializeBinaryToWriter(message: AddDeviceToMulticastGroupRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AddDeviceToMulticastGroupRequest;
static deserializeBinaryFromReader(message: AddDeviceToMulticastGroupRequest, reader: jspb.BinaryReader): AddDeviceToMulticastGroupRequest;
}
export namespace AddDeviceToMulticastGroupRequest {
export type AsObject = {
multicastGroupId: string,
devEui: string,
}
}
export class RemoveDeviceFromMulticastGroupRequest extends jspb.Message {
getMulticastGroupId(): string;
setMulticastGroupId(value: string): RemoveDeviceFromMulticastGroupRequest;
getDevEui(): string;
setDevEui(value: string): RemoveDeviceFromMulticastGroupRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): RemoveDeviceFromMulticastGroupRequest.AsObject;
static toObject(includeInstance: boolean, msg: RemoveDeviceFromMulticastGroupRequest): RemoveDeviceFromMulticastGroupRequest.AsObject;
static serializeBinaryToWriter(message: RemoveDeviceFromMulticastGroupRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): RemoveDeviceFromMulticastGroupRequest;
static deserializeBinaryFromReader(message: RemoveDeviceFromMulticastGroupRequest, reader: jspb.BinaryReader): RemoveDeviceFromMulticastGroupRequest;
}
export namespace RemoveDeviceFromMulticastGroupRequest {
export type AsObject = {
multicastGroupId: string,
devEui: string,
}
}
export class MulticastGroupQueueItem extends jspb.Message {
getMulticastGroupId(): string;
setMulticastGroupId(value: string): MulticastGroupQueueItem;
getFCnt(): number;
setFCnt(value: number): MulticastGroupQueueItem;
getFPort(): number;
setFPort(value: number): MulticastGroupQueueItem;
getData(): Uint8Array | string;
getData_asU8(): Uint8Array;
getData_asB64(): string;
setData(value: Uint8Array | string): MulticastGroupQueueItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MulticastGroupQueueItem.AsObject;
static toObject(includeInstance: boolean, msg: MulticastGroupQueueItem): MulticastGroupQueueItem.AsObject;
static serializeBinaryToWriter(message: MulticastGroupQueueItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): MulticastGroupQueueItem;
static deserializeBinaryFromReader(message: MulticastGroupQueueItem, reader: jspb.BinaryReader): MulticastGroupQueueItem;
}
export namespace MulticastGroupQueueItem {
export type AsObject = {
multicastGroupId: string,
fCnt: number,
fPort: number,
data: Uint8Array | string,
}
}
export class EnqueueMulticastGroupQueueItemRequest extends jspb.Message {
getMulticastGroupQueueItem(): MulticastGroupQueueItem | undefined;
setMulticastGroupQueueItem(value?: MulticastGroupQueueItem): EnqueueMulticastGroupQueueItemRequest;
hasMulticastGroupQueueItem(): boolean;
clearMulticastGroupQueueItem(): EnqueueMulticastGroupQueueItemRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemRequest.AsObject;
static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemRequest): EnqueueMulticastGroupQueueItemRequest.AsObject;
static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemRequest;
static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemRequest, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemRequest;
}
export namespace EnqueueMulticastGroupQueueItemRequest {
export type AsObject = {
multicastGroupQueueItem?: MulticastGroupQueueItem.AsObject,
}
}
export class EnqueueMulticastGroupQueueItemResponse extends jspb.Message {
getFCnt(): number;
setFCnt(value: number): EnqueueMulticastGroupQueueItemResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemResponse.AsObject;
static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemResponse): EnqueueMulticastGroupQueueItemResponse.AsObject;
static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemResponse;
static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemResponse, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemResponse;
}
export namespace EnqueueMulticastGroupQueueItemResponse {
export type AsObject = {
fCnt: number,
}
}
export class FlushMulticastGroupQueueRequest extends jspb.Message {
getMulticastGroupId(): string;
setMulticastGroupId(value: string): FlushMulticastGroupQueueRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FlushMulticastGroupQueueRequest.AsObject;
static toObject(includeInstance: boolean, msg: FlushMulticastGroupQueueRequest): FlushMulticastGroupQueueRequest.AsObject;
static serializeBinaryToWriter(message: FlushMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FlushMulticastGroupQueueRequest;
static deserializeBinaryFromReader(message: FlushMulticastGroupQueueRequest, reader: jspb.BinaryReader): FlushMulticastGroupQueueRequest;
}
export namespace FlushMulticastGroupQueueRequest {
export type AsObject = {
multicastGroupId: string,
}
}
export class ListMulticastGroupQueueRequest extends jspb.Message {
getMulticastGroupId(): string;
setMulticastGroupId(value: string): ListMulticastGroupQueueRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListMulticastGroupQueueRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueRequest): ListMulticastGroupQueueRequest.AsObject;
static serializeBinaryToWriter(message: ListMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueRequest;
static deserializeBinaryFromReader(message: ListMulticastGroupQueueRequest, reader: jspb.BinaryReader): ListMulticastGroupQueueRequest;
}
export namespace ListMulticastGroupQueueRequest {
export type AsObject = {
multicastGroupId: string,
}
}
export class ListMulticastGroupQueueResponse extends jspb.Message {
getItemsList(): Array<MulticastGroupQueueItem>;
setItemsList(value: Array<MulticastGroupQueueItem>): ListMulticastGroupQueueResponse;
clearItemsList(): ListMulticastGroupQueueResponse;
addItems(value?: MulticastGroupQueueItem, index?: number): MulticastGroupQueueItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListMulticastGroupQueueResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueResponse): ListMulticastGroupQueueResponse.AsObject;
static serializeBinaryToWriter(message: ListMulticastGroupQueueResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueResponse;
static deserializeBinaryFromReader(message: ListMulticastGroupQueueResponse, reader: jspb.BinaryReader): ListMulticastGroupQueueResponse;
}
export namespace ListMulticastGroupQueueResponse {
export type AsObject = {
itemsList: Array<MulticastGroupQueueItem.AsObject>,
}
}
export enum MulticastGroupType {
CLASS_C = 0,
CLASS_B = 1,
}

File diff suppressed because it is too large Load Diff

140
api/grpc-web/api/tenant_grpc_web_pb.d.ts vendored Normal file
View File

@ -0,0 +1,140 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_tenant_pb from '../api/tenant_pb';
export class TenantServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_tenant_pb.CreateTenantRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_tenant_pb.CreateTenantResponse) => void
): grpcWeb.ClientReadableStream<api_tenant_pb.CreateTenantResponse>;
get(
request: api_tenant_pb.GetTenantRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_tenant_pb.GetTenantResponse) => void
): grpcWeb.ClientReadableStream<api_tenant_pb.GetTenantResponse>;
update(
request: api_tenant_pb.UpdateTenantRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
delete(
request: api_tenant_pb.DeleteTenantRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
list(
request: api_tenant_pb.ListTenantsRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_tenant_pb.ListTenantsResponse) => void
): grpcWeb.ClientReadableStream<api_tenant_pb.ListTenantsResponse>;
addUser(
request: api_tenant_pb.AddTenantUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
getUser(
request: api_tenant_pb.GetTenantUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_tenant_pb.GetTenantUserResponse) => void
): grpcWeb.ClientReadableStream<api_tenant_pb.GetTenantUserResponse>;
updateUser(
request: api_tenant_pb.UpdateTenantUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
deleteUser(
request: api_tenant_pb.DeleteTenantUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
listUsers(
request: api_tenant_pb.ListTenantUsersRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_tenant_pb.ListTenantUsersResponse) => void
): grpcWeb.ClientReadableStream<api_tenant_pb.ListTenantUsersResponse>;
}
export class TenantServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_tenant_pb.CreateTenantRequest,
metadata?: grpcWeb.Metadata
): Promise<api_tenant_pb.CreateTenantResponse>;
get(
request: api_tenant_pb.GetTenantRequest,
metadata?: grpcWeb.Metadata
): Promise<api_tenant_pb.GetTenantResponse>;
update(
request: api_tenant_pb.UpdateTenantRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
delete(
request: api_tenant_pb.DeleteTenantRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
list(
request: api_tenant_pb.ListTenantsRequest,
metadata?: grpcWeb.Metadata
): Promise<api_tenant_pb.ListTenantsResponse>;
addUser(
request: api_tenant_pb.AddTenantUserRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
getUser(
request: api_tenant_pb.GetTenantUserRequest,
metadata?: grpcWeb.Metadata
): Promise<api_tenant_pb.GetTenantUserResponse>;
updateUser(
request: api_tenant_pb.UpdateTenantUserRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
deleteUser(
request: api_tenant_pb.DeleteTenantUserRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
listUsers(
request: api_tenant_pb.ListTenantUsersRequest,
metadata?: grpcWeb.Metadata
): Promise<api_tenant_pb.ListTenantUsersResponse>;
}

View File

@ -0,0 +1,878 @@
/**
* @fileoverview gRPC-Web generated client stub for api
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
const grpc = {};
grpc.web = require('grpc-web');
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
const proto = {};
proto.api = require('./tenant_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.TenantServiceClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.TenantServicePromiseClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.CreateTenantRequest,
* !proto.api.CreateTenantResponse>}
*/
const methodDescriptor_TenantService_Create = new grpc.web.MethodDescriptor(
'/api.TenantService/Create',
grpc.web.MethodType.UNARY,
proto.api.CreateTenantRequest,
proto.api.CreateTenantResponse,
/**
* @param {!proto.api.CreateTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateTenantResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.CreateTenantRequest,
* !proto.api.CreateTenantResponse>}
*/
const methodInfo_TenantService_Create = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.CreateTenantResponse,
/**
* @param {!proto.api.CreateTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateTenantResponse.deserializeBinary
);
/**
* @param {!proto.api.CreateTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.CreateTenantResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateTenantResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.create =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/Create',
request,
metadata || {},
methodDescriptor_TenantService_Create,
callback);
};
/**
* @param {!proto.api.CreateTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.CreateTenantResponse>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.create =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/Create',
request,
metadata || {},
methodDescriptor_TenantService_Create);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GetTenantRequest,
* !proto.api.GetTenantResponse>}
*/
const methodDescriptor_TenantService_Get = new grpc.web.MethodDescriptor(
'/api.TenantService/Get',
grpc.web.MethodType.UNARY,
proto.api.GetTenantRequest,
proto.api.GetTenantResponse,
/**
* @param {!proto.api.GetTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetTenantResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetTenantRequest,
* !proto.api.GetTenantResponse>}
*/
const methodInfo_TenantService_Get = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetTenantResponse,
/**
* @param {!proto.api.GetTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetTenantResponse.deserializeBinary
);
/**
* @param {!proto.api.GetTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetTenantResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetTenantResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.get =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/Get',
request,
metadata || {},
methodDescriptor_TenantService_Get,
callback);
};
/**
* @param {!proto.api.GetTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetTenantResponse>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.get =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/Get',
request,
metadata || {},
methodDescriptor_TenantService_Get);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.UpdateTenantRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_TenantService_Update = new grpc.web.MethodDescriptor(
'/api.TenantService/Update',
grpc.web.MethodType.UNARY,
proto.api.UpdateTenantRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.UpdateTenantRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_TenantService_Update = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.UpdateTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.update =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/Update',
request,
metadata || {},
methodDescriptor_TenantService_Update,
callback);
};
/**
* @param {!proto.api.UpdateTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.update =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/Update',
request,
metadata || {},
methodDescriptor_TenantService_Update);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.DeleteTenantRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_TenantService_Delete = new grpc.web.MethodDescriptor(
'/api.TenantService/Delete',
grpc.web.MethodType.UNARY,
proto.api.DeleteTenantRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.DeleteTenantRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_TenantService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteTenantRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.DeleteTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.delete =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/Delete',
request,
metadata || {},
methodDescriptor_TenantService_Delete,
callback);
};
/**
* @param {!proto.api.DeleteTenantRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.delete =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/Delete',
request,
metadata || {},
methodDescriptor_TenantService_Delete);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.ListTenantsRequest,
* !proto.api.ListTenantsResponse>}
*/
const methodDescriptor_TenantService_List = new grpc.web.MethodDescriptor(
'/api.TenantService/List',
grpc.web.MethodType.UNARY,
proto.api.ListTenantsRequest,
proto.api.ListTenantsResponse,
/**
* @param {!proto.api.ListTenantsRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListTenantsResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListTenantsRequest,
* !proto.api.ListTenantsResponse>}
*/
const methodInfo_TenantService_List = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListTenantsResponse,
/**
* @param {!proto.api.ListTenantsRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListTenantsResponse.deserializeBinary
);
/**
* @param {!proto.api.ListTenantsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListTenantsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListTenantsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.list =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/List',
request,
metadata || {},
methodDescriptor_TenantService_List,
callback);
};
/**
* @param {!proto.api.ListTenantsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListTenantsResponse>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.list =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/List',
request,
metadata || {},
methodDescriptor_TenantService_List);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.AddTenantUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_TenantService_AddUser = new grpc.web.MethodDescriptor(
'/api.TenantService/AddUser',
grpc.web.MethodType.UNARY,
proto.api.AddTenantUserRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.AddTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.AddTenantUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_TenantService_AddUser = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.AddTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.AddTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.addUser =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/AddUser',
request,
metadata || {},
methodDescriptor_TenantService_AddUser,
callback);
};
/**
* @param {!proto.api.AddTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.addUser =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/AddUser',
request,
metadata || {},
methodDescriptor_TenantService_AddUser);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GetTenantUserRequest,
* !proto.api.GetTenantUserResponse>}
*/
const methodDescriptor_TenantService_GetUser = new grpc.web.MethodDescriptor(
'/api.TenantService/GetUser',
grpc.web.MethodType.UNARY,
proto.api.GetTenantUserRequest,
proto.api.GetTenantUserResponse,
/**
* @param {!proto.api.GetTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetTenantUserResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetTenantUserRequest,
* !proto.api.GetTenantUserResponse>}
*/
const methodInfo_TenantService_GetUser = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetTenantUserResponse,
/**
* @param {!proto.api.GetTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetTenantUserResponse.deserializeBinary
);
/**
* @param {!proto.api.GetTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetTenantUserResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetTenantUserResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.getUser =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/GetUser',
request,
metadata || {},
methodDescriptor_TenantService_GetUser,
callback);
};
/**
* @param {!proto.api.GetTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetTenantUserResponse>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.getUser =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/GetUser',
request,
metadata || {},
methodDescriptor_TenantService_GetUser);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.UpdateTenantUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_TenantService_UpdateUser = new grpc.web.MethodDescriptor(
'/api.TenantService/UpdateUser',
grpc.web.MethodType.UNARY,
proto.api.UpdateTenantUserRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.UpdateTenantUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_TenantService_UpdateUser = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.UpdateTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.updateUser =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/UpdateUser',
request,
metadata || {},
methodDescriptor_TenantService_UpdateUser,
callback);
};
/**
* @param {!proto.api.UpdateTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.updateUser =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/UpdateUser',
request,
metadata || {},
methodDescriptor_TenantService_UpdateUser);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.DeleteTenantUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_TenantService_DeleteUser = new grpc.web.MethodDescriptor(
'/api.TenantService/DeleteUser',
grpc.web.MethodType.UNARY,
proto.api.DeleteTenantUserRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.DeleteTenantUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_TenantService_DeleteUser = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteTenantUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.DeleteTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.deleteUser =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/DeleteUser',
request,
metadata || {},
methodDescriptor_TenantService_DeleteUser,
callback);
};
/**
* @param {!proto.api.DeleteTenantUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.deleteUser =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/DeleteUser',
request,
metadata || {},
methodDescriptor_TenantService_DeleteUser);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.ListTenantUsersRequest,
* !proto.api.ListTenantUsersResponse>}
*/
const methodDescriptor_TenantService_ListUsers = new grpc.web.MethodDescriptor(
'/api.TenantService/ListUsers',
grpc.web.MethodType.UNARY,
proto.api.ListTenantUsersRequest,
proto.api.ListTenantUsersResponse,
/**
* @param {!proto.api.ListTenantUsersRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListTenantUsersResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListTenantUsersRequest,
* !proto.api.ListTenantUsersResponse>}
*/
const methodInfo_TenantService_ListUsers = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListTenantUsersResponse,
/**
* @param {!proto.api.ListTenantUsersRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListTenantUsersResponse.deserializeBinary
);
/**
* @param {!proto.api.ListTenantUsersRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListTenantUsersResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListTenantUsersResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.TenantServiceClient.prototype.listUsers =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.TenantService/ListUsers',
request,
metadata || {},
methodDescriptor_TenantService_ListUsers,
callback);
};
/**
* @param {!proto.api.ListTenantUsersRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListTenantUsersResponse>}
* Promise that resolves to the response
*/
proto.api.TenantServicePromiseClient.prototype.listUsers =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.TenantService/ListUsers',
request,
metadata || {},
methodDescriptor_TenantService_ListUsers);
};
module.exports = proto.api;

528
api/grpc-web/api/tenant_pb.d.ts vendored Normal file
View File

@ -0,0 +1,528 @@
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
export class Tenant extends jspb.Message {
getId(): string;
setId(value: string): Tenant;
getName(): string;
setName(value: string): Tenant;
getDescription(): string;
setDescription(value: string): Tenant;
getCanHaveGateways(): boolean;
setCanHaveGateways(value: boolean): Tenant;
getMaxGatewayCount(): number;
setMaxGatewayCount(value: number): Tenant;
getMaxDeviceCount(): number;
setMaxDeviceCount(value: number): Tenant;
getPrivateGateways(): boolean;
setPrivateGateways(value: boolean): Tenant;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Tenant.AsObject;
static toObject(includeInstance: boolean, msg: Tenant): Tenant.AsObject;
static serializeBinaryToWriter(message: Tenant, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Tenant;
static deserializeBinaryFromReader(message: Tenant, reader: jspb.BinaryReader): Tenant;
}
export namespace Tenant {
export type AsObject = {
id: string,
name: string,
description: string,
canHaveGateways: boolean,
maxGatewayCount: number,
maxDeviceCount: number,
privateGateways: boolean,
}
}
export class TenantListItem extends jspb.Message {
getId(): string;
setId(value: string): TenantListItem;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantListItem;
hasCreatedAt(): boolean;
clearCreatedAt(): TenantListItem;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantListItem;
hasUpdatedAt(): boolean;
clearUpdatedAt(): TenantListItem;
getName(): string;
setName(value: string): TenantListItem;
getCanHaveGateways(): boolean;
setCanHaveGateways(value: boolean): TenantListItem;
getPrivateGateways(): boolean;
setPrivateGateways(value: boolean): TenantListItem;
getMaxGatewayCount(): number;
setMaxGatewayCount(value: number): TenantListItem;
getMaxDeviceCount(): number;
setMaxDeviceCount(value: number): TenantListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TenantListItem.AsObject;
static toObject(includeInstance: boolean, msg: TenantListItem): TenantListItem.AsObject;
static serializeBinaryToWriter(message: TenantListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): TenantListItem;
static deserializeBinaryFromReader(message: TenantListItem, reader: jspb.BinaryReader): TenantListItem;
}
export namespace TenantListItem {
export type AsObject = {
id: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
name: string,
canHaveGateways: boolean,
privateGateways: boolean,
maxGatewayCount: number,
maxDeviceCount: number,
}
}
export class CreateTenantRequest extends jspb.Message {
getTenant(): Tenant | undefined;
setTenant(value?: Tenant): CreateTenantRequest;
hasTenant(): boolean;
clearTenant(): CreateTenantRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateTenantRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateTenantRequest): CreateTenantRequest.AsObject;
static serializeBinaryToWriter(message: CreateTenantRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateTenantRequest;
static deserializeBinaryFromReader(message: CreateTenantRequest, reader: jspb.BinaryReader): CreateTenantRequest;
}
export namespace CreateTenantRequest {
export type AsObject = {
tenant?: Tenant.AsObject,
}
}
export class CreateTenantResponse extends jspb.Message {
getId(): string;
setId(value: string): CreateTenantResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateTenantResponse.AsObject;
static toObject(includeInstance: boolean, msg: CreateTenantResponse): CreateTenantResponse.AsObject;
static serializeBinaryToWriter(message: CreateTenantResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateTenantResponse;
static deserializeBinaryFromReader(message: CreateTenantResponse, reader: jspb.BinaryReader): CreateTenantResponse;
}
export namespace CreateTenantResponse {
export type AsObject = {
id: string,
}
}
export class GetTenantRequest extends jspb.Message {
getId(): string;
setId(value: string): GetTenantRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetTenantRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetTenantRequest): GetTenantRequest.AsObject;
static serializeBinaryToWriter(message: GetTenantRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetTenantRequest;
static deserializeBinaryFromReader(message: GetTenantRequest, reader: jspb.BinaryReader): GetTenantRequest;
}
export namespace GetTenantRequest {
export type AsObject = {
id: string,
}
}
export class GetTenantResponse extends jspb.Message {
getTenant(): Tenant | undefined;
setTenant(value?: Tenant): GetTenantResponse;
hasTenant(): boolean;
clearTenant(): GetTenantResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetTenantResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetTenantResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetTenantResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetTenantResponse): GetTenantResponse.AsObject;
static serializeBinaryToWriter(message: GetTenantResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetTenantResponse;
static deserializeBinaryFromReader(message: GetTenantResponse, reader: jspb.BinaryReader): GetTenantResponse;
}
export namespace GetTenantResponse {
export type AsObject = {
tenant?: Tenant.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class UpdateTenantRequest extends jspb.Message {
getTenant(): Tenant | undefined;
setTenant(value?: Tenant): UpdateTenantRequest;
hasTenant(): boolean;
clearTenant(): UpdateTenantRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateTenantRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateTenantRequest): UpdateTenantRequest.AsObject;
static serializeBinaryToWriter(message: UpdateTenantRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateTenantRequest;
static deserializeBinaryFromReader(message: UpdateTenantRequest, reader: jspb.BinaryReader): UpdateTenantRequest;
}
export namespace UpdateTenantRequest {
export type AsObject = {
tenant?: Tenant.AsObject,
}
}
export class DeleteTenantRequest extends jspb.Message {
getId(): string;
setId(value: string): DeleteTenantRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteTenantRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteTenantRequest): DeleteTenantRequest.AsObject;
static serializeBinaryToWriter(message: DeleteTenantRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteTenantRequest;
static deserializeBinaryFromReader(message: DeleteTenantRequest, reader: jspb.BinaryReader): DeleteTenantRequest;
}
export namespace DeleteTenantRequest {
export type AsObject = {
id: string,
}
}
export class ListTenantsRequest extends jspb.Message {
getLimit(): number;
setLimit(value: number): ListTenantsRequest;
getOffset(): number;
setOffset(value: number): ListTenantsRequest;
getSearch(): string;
setSearch(value: string): ListTenantsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListTenantsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListTenantsRequest): ListTenantsRequest.AsObject;
static serializeBinaryToWriter(message: ListTenantsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListTenantsRequest;
static deserializeBinaryFromReader(message: ListTenantsRequest, reader: jspb.BinaryReader): ListTenantsRequest;
}
export namespace ListTenantsRequest {
export type AsObject = {
limit: number,
offset: number,
search: string,
}
}
export class ListTenantsResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListTenantsResponse;
getResultList(): Array<TenantListItem>;
setResultList(value: Array<TenantListItem>): ListTenantsResponse;
clearResultList(): ListTenantsResponse;
addResult(value?: TenantListItem, index?: number): TenantListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListTenantsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListTenantsResponse): ListTenantsResponse.AsObject;
static serializeBinaryToWriter(message: ListTenantsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListTenantsResponse;
static deserializeBinaryFromReader(message: ListTenantsResponse, reader: jspb.BinaryReader): ListTenantsResponse;
}
export namespace ListTenantsResponse {
export type AsObject = {
totalCount: number,
resultList: Array<TenantListItem.AsObject>,
}
}
export class TenantUser extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): TenantUser;
getUserId(): string;
setUserId(value: string): TenantUser;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): TenantUser;
getIsDeviceAdmin(): boolean;
setIsDeviceAdmin(value: boolean): TenantUser;
getIsGatewayAdmin(): boolean;
setIsGatewayAdmin(value: boolean): TenantUser;
getEmail(): string;
setEmail(value: string): TenantUser;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TenantUser.AsObject;
static toObject(includeInstance: boolean, msg: TenantUser): TenantUser.AsObject;
static serializeBinaryToWriter(message: TenantUser, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): TenantUser;
static deserializeBinaryFromReader(message: TenantUser, reader: jspb.BinaryReader): TenantUser;
}
export namespace TenantUser {
export type AsObject = {
tenantId: string,
userId: string,
isAdmin: boolean,
isDeviceAdmin: boolean,
isGatewayAdmin: boolean,
email: string,
}
}
export class TenantUserListItem extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): TenantUserListItem;
getUserId(): string;
setUserId(value: string): TenantUserListItem;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantUserListItem;
hasCreatedAt(): boolean;
clearCreatedAt(): TenantUserListItem;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantUserListItem;
hasUpdatedAt(): boolean;
clearUpdatedAt(): TenantUserListItem;
getEmail(): string;
setEmail(value: string): TenantUserListItem;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): TenantUserListItem;
getIsDeviceAdmin(): boolean;
setIsDeviceAdmin(value: boolean): TenantUserListItem;
getIsGatewayAdmin(): boolean;
setIsGatewayAdmin(value: boolean): TenantUserListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TenantUserListItem.AsObject;
static toObject(includeInstance: boolean, msg: TenantUserListItem): TenantUserListItem.AsObject;
static serializeBinaryToWriter(message: TenantUserListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): TenantUserListItem;
static deserializeBinaryFromReader(message: TenantUserListItem, reader: jspb.BinaryReader): TenantUserListItem;
}
export namespace TenantUserListItem {
export type AsObject = {
tenantId: string,
userId: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
email: string,
isAdmin: boolean,
isDeviceAdmin: boolean,
isGatewayAdmin: boolean,
}
}
export class AddTenantUserRequest extends jspb.Message {
getTenantUser(): TenantUser | undefined;
setTenantUser(value?: TenantUser): AddTenantUserRequest;
hasTenantUser(): boolean;
clearTenantUser(): AddTenantUserRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AddTenantUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: AddTenantUserRequest): AddTenantUserRequest.AsObject;
static serializeBinaryToWriter(message: AddTenantUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AddTenantUserRequest;
static deserializeBinaryFromReader(message: AddTenantUserRequest, reader: jspb.BinaryReader): AddTenantUserRequest;
}
export namespace AddTenantUserRequest {
export type AsObject = {
tenantUser?: TenantUser.AsObject,
}
}
export class GetTenantUserRequest extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): GetTenantUserRequest;
getUserId(): string;
setUserId(value: string): GetTenantUserRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetTenantUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetTenantUserRequest): GetTenantUserRequest.AsObject;
static serializeBinaryToWriter(message: GetTenantUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetTenantUserRequest;
static deserializeBinaryFromReader(message: GetTenantUserRequest, reader: jspb.BinaryReader): GetTenantUserRequest;
}
export namespace GetTenantUserRequest {
export type AsObject = {
tenantId: string,
userId: string,
}
}
export class GetTenantUserResponse extends jspb.Message {
getTenantUser(): TenantUser | undefined;
setTenantUser(value?: TenantUser): GetTenantUserResponse;
hasTenantUser(): boolean;
clearTenantUser(): GetTenantUserResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantUserResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetTenantUserResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantUserResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetTenantUserResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetTenantUserResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetTenantUserResponse): GetTenantUserResponse.AsObject;
static serializeBinaryToWriter(message: GetTenantUserResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetTenantUserResponse;
static deserializeBinaryFromReader(message: GetTenantUserResponse, reader: jspb.BinaryReader): GetTenantUserResponse;
}
export namespace GetTenantUserResponse {
export type AsObject = {
tenantUser?: TenantUser.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class UpdateTenantUserRequest extends jspb.Message {
getTenantUser(): TenantUser | undefined;
setTenantUser(value?: TenantUser): UpdateTenantUserRequest;
hasTenantUser(): boolean;
clearTenantUser(): UpdateTenantUserRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateTenantUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateTenantUserRequest): UpdateTenantUserRequest.AsObject;
static serializeBinaryToWriter(message: UpdateTenantUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateTenantUserRequest;
static deserializeBinaryFromReader(message: UpdateTenantUserRequest, reader: jspb.BinaryReader): UpdateTenantUserRequest;
}
export namespace UpdateTenantUserRequest {
export type AsObject = {
tenantUser?: TenantUser.AsObject,
}
}
export class DeleteTenantUserRequest extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): DeleteTenantUserRequest;
getUserId(): string;
setUserId(value: string): DeleteTenantUserRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteTenantUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteTenantUserRequest): DeleteTenantUserRequest.AsObject;
static serializeBinaryToWriter(message: DeleteTenantUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteTenantUserRequest;
static deserializeBinaryFromReader(message: DeleteTenantUserRequest, reader: jspb.BinaryReader): DeleteTenantUserRequest;
}
export namespace DeleteTenantUserRequest {
export type AsObject = {
tenantId: string,
userId: string,
}
}
export class ListTenantUsersRequest extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): ListTenantUsersRequest;
getLimit(): number;
setLimit(value: number): ListTenantUsersRequest;
getOffset(): number;
setOffset(value: number): ListTenantUsersRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListTenantUsersRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListTenantUsersRequest): ListTenantUsersRequest.AsObject;
static serializeBinaryToWriter(message: ListTenantUsersRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListTenantUsersRequest;
static deserializeBinaryFromReader(message: ListTenantUsersRequest, reader: jspb.BinaryReader): ListTenantUsersRequest;
}
export namespace ListTenantUsersRequest {
export type AsObject = {
tenantId: string,
limit: number,
offset: number,
}
}
export class ListTenantUsersResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListTenantUsersResponse;
getResultList(): Array<TenantUserListItem>;
setResultList(value: Array<TenantUserListItem>): ListTenantUsersResponse;
clearResultList(): ListTenantUsersResponse;
addResult(value?: TenantUserListItem, index?: number): TenantUserListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListTenantUsersResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListTenantUsersResponse): ListTenantUsersResponse.AsObject;
static serializeBinaryToWriter(message: ListTenantUsersResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListTenantUsersResponse;
static deserializeBinaryFromReader(message: ListTenantUsersResponse, reader: jspb.BinaryReader): ListTenantUsersResponse;
}
export namespace ListTenantUsersResponse {
export type AsObject = {
totalCount: number,
resultList: Array<TenantUserListItem.AsObject>,
}
}

File diff suppressed because it is too large Load Diff

92
api/grpc-web/api/user_grpc_web_pb.d.ts vendored Normal file
View File

@ -0,0 +1,92 @@
import * as grpcWeb from 'grpc-web';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as api_user_pb from '../api/user_pb';
export class UserServiceClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_user_pb.CreateUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_user_pb.CreateUserResponse) => void
): grpcWeb.ClientReadableStream<api_user_pb.CreateUserResponse>;
get(
request: api_user_pb.GetUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_user_pb.GetUserResponse) => void
): grpcWeb.ClientReadableStream<api_user_pb.GetUserResponse>;
update(
request: api_user_pb.UpdateUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
delete(
request: api_user_pb.DeleteUserRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
list(
request: api_user_pb.ListUsersRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: api_user_pb.ListUsersResponse) => void
): grpcWeb.ClientReadableStream<api_user_pb.ListUsersResponse>;
updatePassword(
request: api_user_pb.UpdateUserPasswordRequest,
metadata: grpcWeb.Metadata | undefined,
callback: (err: grpcWeb.Error,
response: google_protobuf_empty_pb.Empty) => void
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
}
export class UserServicePromiseClient {
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: any; });
create(
request: api_user_pb.CreateUserRequest,
metadata?: grpcWeb.Metadata
): Promise<api_user_pb.CreateUserResponse>;
get(
request: api_user_pb.GetUserRequest,
metadata?: grpcWeb.Metadata
): Promise<api_user_pb.GetUserResponse>;
update(
request: api_user_pb.UpdateUserRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
delete(
request: api_user_pb.DeleteUserRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
list(
request: api_user_pb.ListUsersRequest,
metadata?: grpcWeb.Metadata
): Promise<api_user_pb.ListUsersResponse>;
updatePassword(
request: api_user_pb.UpdateUserPasswordRequest,
metadata?: grpcWeb.Metadata
): Promise<google_protobuf_empty_pb.Empty>;
}

View File

@ -0,0 +1,558 @@
/**
* @fileoverview gRPC-Web generated client stub for api
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
const grpc = {};
grpc.web = require('grpc-web');
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
const proto = {};
proto.api = require('./user_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.UserServiceClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @constructor
* @struct
* @final
*/
proto.api.UserServicePromiseClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.CreateUserRequest,
* !proto.api.CreateUserResponse>}
*/
const methodDescriptor_UserService_Create = new grpc.web.MethodDescriptor(
'/api.UserService/Create',
grpc.web.MethodType.UNARY,
proto.api.CreateUserRequest,
proto.api.CreateUserResponse,
/**
* @param {!proto.api.CreateUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateUserResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.CreateUserRequest,
* !proto.api.CreateUserResponse>}
*/
const methodInfo_UserService_Create = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.CreateUserResponse,
/**
* @param {!proto.api.CreateUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateUserResponse.deserializeBinary
);
/**
* @param {!proto.api.CreateUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.CreateUserResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateUserResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.UserServiceClient.prototype.create =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.UserService/Create',
request,
metadata || {},
methodDescriptor_UserService_Create,
callback);
};
/**
* @param {!proto.api.CreateUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.CreateUserResponse>}
* Promise that resolves to the response
*/
proto.api.UserServicePromiseClient.prototype.create =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.UserService/Create',
request,
metadata || {},
methodDescriptor_UserService_Create);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.GetUserRequest,
* !proto.api.GetUserResponse>}
*/
const methodDescriptor_UserService_Get = new grpc.web.MethodDescriptor(
'/api.UserService/Get',
grpc.web.MethodType.UNARY,
proto.api.GetUserRequest,
proto.api.GetUserResponse,
/**
* @param {!proto.api.GetUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetUserResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetUserRequest,
* !proto.api.GetUserResponse>}
*/
const methodInfo_UserService_Get = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetUserResponse,
/**
* @param {!proto.api.GetUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetUserResponse.deserializeBinary
);
/**
* @param {!proto.api.GetUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetUserResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetUserResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.UserServiceClient.prototype.get =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.UserService/Get',
request,
metadata || {},
methodDescriptor_UserService_Get,
callback);
};
/**
* @param {!proto.api.GetUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetUserResponse>}
* Promise that resolves to the response
*/
proto.api.UserServicePromiseClient.prototype.get =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.UserService/Get',
request,
metadata || {},
methodDescriptor_UserService_Get);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.UpdateUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_UserService_Update = new grpc.web.MethodDescriptor(
'/api.UserService/Update',
grpc.web.MethodType.UNARY,
proto.api.UpdateUserRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.UpdateUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_UserService_Update = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.UpdateUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.UserServiceClient.prototype.update =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.UserService/Update',
request,
metadata || {},
methodDescriptor_UserService_Update,
callback);
};
/**
* @param {!proto.api.UpdateUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.UserServicePromiseClient.prototype.update =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.UserService/Update',
request,
metadata || {},
methodDescriptor_UserService_Update);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.DeleteUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_UserService_Delete = new grpc.web.MethodDescriptor(
'/api.UserService/Delete',
grpc.web.MethodType.UNARY,
proto.api.DeleteUserRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.DeleteUserRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_UserService_Delete = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteUserRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.DeleteUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.UserServiceClient.prototype.delete =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.UserService/Delete',
request,
metadata || {},
methodDescriptor_UserService_Delete,
callback);
};
/**
* @param {!proto.api.DeleteUserRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.UserServicePromiseClient.prototype.delete =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.UserService/Delete',
request,
metadata || {},
methodDescriptor_UserService_Delete);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.ListUsersRequest,
* !proto.api.ListUsersResponse>}
*/
const methodDescriptor_UserService_List = new grpc.web.MethodDescriptor(
'/api.UserService/List',
grpc.web.MethodType.UNARY,
proto.api.ListUsersRequest,
proto.api.ListUsersResponse,
/**
* @param {!proto.api.ListUsersRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListUsersResponse.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListUsersRequest,
* !proto.api.ListUsersResponse>}
*/
const methodInfo_UserService_List = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListUsersResponse,
/**
* @param {!proto.api.ListUsersRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListUsersResponse.deserializeBinary
);
/**
* @param {!proto.api.ListUsersRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListUsersResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListUsersResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.api.UserServiceClient.prototype.list =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.UserService/List',
request,
metadata || {},
methodDescriptor_UserService_List,
callback);
};
/**
* @param {!proto.api.ListUsersRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListUsersResponse>}
* Promise that resolves to the response
*/
proto.api.UserServicePromiseClient.prototype.list =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.UserService/List',
request,
metadata || {},
methodDescriptor_UserService_List);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.api.UpdateUserPasswordRequest,
* !proto.google.protobuf.Empty>}
*/
const methodDescriptor_UserService_UpdatePassword = new grpc.web.MethodDescriptor(
'/api.UserService/UpdatePassword',
grpc.web.MethodType.UNARY,
proto.api.UpdateUserPasswordRequest,
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateUserPasswordRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.UpdateUserPasswordRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_UserService_UpdatePassword = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.UpdateUserPasswordRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.UpdateUserPasswordRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
*/
proto.api.UserServiceClient.prototype.updatePassword =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/api.UserService/UpdatePassword',
request,
metadata || {},
methodDescriptor_UserService_UpdatePassword,
callback);
};
/**
* @param {!proto.api.UpdateUserPasswordRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
*/
proto.api.UserServicePromiseClient.prototype.updatePassword =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/api.UserService/UpdatePassword',
request,
metadata || {},
methodDescriptor_UserService_UpdatePassword);
};
module.exports = proto.api;

316
api/grpc-web/api/user_pb.d.ts vendored Normal file
View File

@ -0,0 +1,316 @@
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
export class User extends jspb.Message {
getId(): string;
setId(value: string): User;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): User;
getIsActive(): boolean;
setIsActive(value: boolean): User;
getEmail(): string;
setEmail(value: string): User;
getNote(): string;
setNote(value: string): User;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): User.AsObject;
static toObject(includeInstance: boolean, msg: User): User.AsObject;
static serializeBinaryToWriter(message: User, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): User;
static deserializeBinaryFromReader(message: User, reader: jspb.BinaryReader): User;
}
export namespace User {
export type AsObject = {
id: string,
isAdmin: boolean,
isActive: boolean,
email: string,
note: string,
}
}
export class UserListItem extends jspb.Message {
getId(): string;
setId(value: string): UserListItem;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserListItem;
hasCreatedAt(): boolean;
clearCreatedAt(): UserListItem;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserListItem;
hasUpdatedAt(): boolean;
clearUpdatedAt(): UserListItem;
getEmail(): string;
setEmail(value: string): UserListItem;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): UserListItem;
getIsActive(): boolean;
setIsActive(value: boolean): UserListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UserListItem.AsObject;
static toObject(includeInstance: boolean, msg: UserListItem): UserListItem.AsObject;
static serializeBinaryToWriter(message: UserListItem, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UserListItem;
static deserializeBinaryFromReader(message: UserListItem, reader: jspb.BinaryReader): UserListItem;
}
export namespace UserListItem {
export type AsObject = {
id: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
email: string,
isAdmin: boolean,
isActive: boolean,
}
}
export class UserTenant extends jspb.Message {
getTenantId(): string;
setTenantId(value: string): UserTenant;
getIsAdmin(): boolean;
setIsAdmin(value: boolean): UserTenant;
getIsDeviceAdmin(): boolean;
setIsDeviceAdmin(value: boolean): UserTenant;
getIsGatewayAdmin(): boolean;
setIsGatewayAdmin(value: boolean): UserTenant;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UserTenant.AsObject;
static toObject(includeInstance: boolean, msg: UserTenant): UserTenant.AsObject;
static serializeBinaryToWriter(message: UserTenant, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UserTenant;
static deserializeBinaryFromReader(message: UserTenant, reader: jspb.BinaryReader): UserTenant;
}
export namespace UserTenant {
export type AsObject = {
tenantId: string,
isAdmin: boolean,
isDeviceAdmin: boolean,
isGatewayAdmin: boolean,
}
}
export class CreateUserRequest extends jspb.Message {
getUser(): User | undefined;
setUser(value?: User): CreateUserRequest;
hasUser(): boolean;
clearUser(): CreateUserRequest;
getPassword(): string;
setPassword(value: string): CreateUserRequest;
getTenantsList(): Array<UserTenant>;
setTenantsList(value: Array<UserTenant>): CreateUserRequest;
clearTenantsList(): CreateUserRequest;
addTenants(value?: UserTenant, index?: number): UserTenant;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateUserRequest): CreateUserRequest.AsObject;
static serializeBinaryToWriter(message: CreateUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateUserRequest;
static deserializeBinaryFromReader(message: CreateUserRequest, reader: jspb.BinaryReader): CreateUserRequest;
}
export namespace CreateUserRequest {
export type AsObject = {
user?: User.AsObject,
password: string,
tenantsList: Array<UserTenant.AsObject>,
}
}
export class CreateUserResponse extends jspb.Message {
getId(): string;
setId(value: string): CreateUserResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateUserResponse.AsObject;
static toObject(includeInstance: boolean, msg: CreateUserResponse): CreateUserResponse.AsObject;
static serializeBinaryToWriter(message: CreateUserResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateUserResponse;
static deserializeBinaryFromReader(message: CreateUserResponse, reader: jspb.BinaryReader): CreateUserResponse;
}
export namespace CreateUserResponse {
export type AsObject = {
id: string,
}
}
export class GetUserRequest extends jspb.Message {
getId(): string;
setId(value: string): GetUserRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetUserRequest): GetUserRequest.AsObject;
static serializeBinaryToWriter(message: GetUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetUserRequest;
static deserializeBinaryFromReader(message: GetUserRequest, reader: jspb.BinaryReader): GetUserRequest;
}
export namespace GetUserRequest {
export type AsObject = {
id: string,
}
}
export class GetUserResponse extends jspb.Message {
getUser(): User | undefined;
setUser(value?: User): GetUserResponse;
hasUser(): boolean;
clearUser(): GetUserResponse;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetUserResponse;
hasCreatedAt(): boolean;
clearCreatedAt(): GetUserResponse;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetUserResponse;
hasUpdatedAt(): boolean;
clearUpdatedAt(): GetUserResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetUserResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetUserResponse): GetUserResponse.AsObject;
static serializeBinaryToWriter(message: GetUserResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetUserResponse;
static deserializeBinaryFromReader(message: GetUserResponse, reader: jspb.BinaryReader): GetUserResponse;
}
export namespace GetUserResponse {
export type AsObject = {
user?: User.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class UpdateUserRequest extends jspb.Message {
getUser(): User | undefined;
setUser(value?: User): UpdateUserRequest;
hasUser(): boolean;
clearUser(): UpdateUserRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateUserRequest): UpdateUserRequest.AsObject;
static serializeBinaryToWriter(message: UpdateUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateUserRequest;
static deserializeBinaryFromReader(message: UpdateUserRequest, reader: jspb.BinaryReader): UpdateUserRequest;
}
export namespace UpdateUserRequest {
export type AsObject = {
user?: User.AsObject,
}
}
export class DeleteUserRequest extends jspb.Message {
getId(): string;
setId(value: string): DeleteUserRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteUserRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteUserRequest): DeleteUserRequest.AsObject;
static serializeBinaryToWriter(message: DeleteUserRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteUserRequest;
static deserializeBinaryFromReader(message: DeleteUserRequest, reader: jspb.BinaryReader): DeleteUserRequest;
}
export namespace DeleteUserRequest {
export type AsObject = {
id: string,
}
}
export class ListUsersRequest extends jspb.Message {
getLimit(): number;
setLimit(value: number): ListUsersRequest;
getOffset(): number;
setOffset(value: number): ListUsersRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListUsersRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListUsersRequest): ListUsersRequest.AsObject;
static serializeBinaryToWriter(message: ListUsersRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListUsersRequest;
static deserializeBinaryFromReader(message: ListUsersRequest, reader: jspb.BinaryReader): ListUsersRequest;
}
export namespace ListUsersRequest {
export type AsObject = {
limit: number,
offset: number,
}
}
export class ListUsersResponse extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): ListUsersResponse;
getResultList(): Array<UserListItem>;
setResultList(value: Array<UserListItem>): ListUsersResponse;
clearResultList(): ListUsersResponse;
addResult(value?: UserListItem, index?: number): UserListItem;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListUsersResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListUsersResponse): ListUsersResponse.AsObject;
static serializeBinaryToWriter(message: ListUsersResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListUsersResponse;
static deserializeBinaryFromReader(message: ListUsersResponse, reader: jspb.BinaryReader): ListUsersResponse;
}
export namespace ListUsersResponse {
export type AsObject = {
totalCount: number,
resultList: Array<UserListItem.AsObject>,
}
}
export class UpdateUserPasswordRequest extends jspb.Message {
getUserId(): string;
setUserId(value: string): UpdateUserPasswordRequest;
getPassword(): string;
setPassword(value: string): UpdateUserPasswordRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateUserPasswordRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateUserPasswordRequest): UpdateUserPasswordRequest.AsObject;
static serializeBinaryToWriter(message: UpdateUserPasswordRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateUserPasswordRequest;
static deserializeBinaryFromReader(message: UpdateUserPasswordRequest, reader: jspb.BinaryReader): UpdateUserPasswordRequest;
}
export namespace UpdateUserPasswordRequest {
export type AsObject = {
userId: string,
password: string,
}
}

2623
api/grpc-web/api/user_pb.js Normal file

File diff suppressed because it is too large Load Diff