@aceplus/smartace-api 3.7.0-alpha.1 → 3.7.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth.account_pb.d.ts +582 -0
- package/auth.account_pb.js +4287 -0
- package/auth.account_pb_service.d.ts +340 -0
- package/auth.account_pb_service.js +637 -0
- package/auth.account_two_factor_pb.d.ts +159 -0
- package/auth.account_two_factor_pb.js +1184 -0
- package/auth.account_two_factor_pb_service.d.ts +121 -0
- package/auth.account_two_factor_pb_service.js +182 -0
- package/auth.app_account_pb.d.ts +156 -0
- package/auth.app_account_pb.js +1153 -0
- package/auth.app_account_pb_service.d.ts +160 -0
- package/auth.app_account_pb_service.js +263 -0
- package/auth.app_authn_pb.d.ts +172 -0
- package/auth.app_authn_pb.js +1233 -0
- package/auth.app_authn_pb_service.d.ts +140 -0
- package/auth.app_authn_pb_service.js +222 -0
- package/auth.app_distribution_pb.d.ts +174 -0
- package/auth.app_distribution_pb.js +1338 -0
- package/auth.app_distribution_pb_service.d.ts +120 -0
- package/auth.app_distribution_pb_service.js +181 -0
- package/auth.authn_pb.d.ts +95 -0
- package/auth.authn_pb.js +637 -0
- package/auth.authn_pb_service.d.ts +82 -0
- package/auth.authn_pb_service.js +101 -0
- package/auth.cluster_pb.d.ts +142 -0
- package/auth.cluster_pb.js +1050 -0
- package/auth.cluster_pb_service.d.ts +82 -0
- package/auth.cluster_pb_service.js +101 -0
- package/auth.distribution_pb.d.ts +233 -0
- package/auth.distribution_pb.js +1785 -0
- package/auth.distribution_pb_service.d.ts +82 -0
- package/auth.distribution_pb_service.js +101 -0
- package/auth.email_pb.d.ts +217 -0
- package/auth.email_pb.js +1508 -0
- package/auth.email_pb_service.d.ts +102 -0
- package/auth.email_pb_service.js +142 -0
- package/auth.firmware_pb.d.ts +256 -0
- package/auth.firmware_pb.js +1997 -0
- package/auth.firmware_pb_service.d.ts +120 -0
- package/auth.firmware_pb_service.js +181 -0
- package/auth.push_notification_pb.d.ts +69 -0
- package/auth.push_notification_pb.js +411 -0
- package/auth.push_notification_pb_service.d.ts +64 -0
- package/auth.push_notification_pb_service.js +62 -0
- package/auth.sms_pb.d.ts +79 -0
- package/auth.sms_pb.js +575 -0
- package/auth.sms_pb_service.d.ts +83 -0
- package/auth.sms_pb_service.js +102 -0
- package/google/api/annotations_pb.d.ts +9 -0
- package/google/api/annotations_pb.js +54 -0
- package/google/api/annotations_pb_service.d.ts +3 -0
- package/google/api/annotations_pb_service.js +3 -0
- package/google/api/auth_pb.d.ts +150 -0
- package/google/api/auth_pb.js +1160 -0
- package/google/api/auth_pb_service.d.ts +3 -0
- package/google/api/auth_pb_service.js +3 -0
- package/google/api/backend_pb.d.ts +59 -0
- package/google/api/backend_pb.js +448 -0
- package/google/api/backend_pb_service.d.ts +3 -0
- package/google/api/backend_pb_service.js +3 -0
- package/google/api/billing_pb.d.ts +54 -0
- package/google/api/billing_pb.js +416 -0
- package/google/api/billing_pb_service.d.ts +3 -0
- package/google/api/billing_pb_service.js +3 -0
- package/google/api/client_pb.d.ts +12 -0
- package/google/api/client_pb.js +104 -0
- package/google/api/client_pb_service.d.ts +3 -0
- package/google/api/client_pb_service.js +3 -0
- package/google/api/config_change_pb.d.ts +72 -0
- package/google/api/config_change_pb.js +489 -0
- package/google/api/config_change_pb_service.d.ts +3 -0
- package/google/api/config_change_pb_service.js +3 -0
- package/google/api/consumer_pb.d.ts +65 -0
- package/google/api/consumer_pb.js +430 -0
- package/google/api/consumer_pb_service.d.ts +3 -0
- package/google/api/consumer_pb_service.js +3 -0
- package/google/api/context_pb.d.ts +59 -0
- package/google/api/context_pb.js +463 -0
- package/google/api/context_pb_service.d.ts +3 -0
- package/google/api/context_pb_service.js +3 -0
- package/google/api/control_pb.d.ts +25 -0
- package/google/api/control_pb.js +176 -0
- package/google/api/control_pb_service.d.ts +3 -0
- package/google/api/control_pb_service.js +3 -0
- package/google/api/distribution_pb.d.ts +235 -0
- package/google/api/distribution_pb.js +1805 -0
- package/google/api/distribution_pb_service.d.ts +3 -0
- package/google/api/distribution_pb_service.js +3 -0
- package/google/api/documentation_pb.d.ts +103 -0
- package/google/api/documentation_pb.js +803 -0
- package/google/api/documentation_pb_service.d.ts +3 -0
- package/google/api/documentation_pb_service.js +3 -0
- package/google/api/endpoint_pb.d.ts +46 -0
- package/google/api/endpoint_pb.js +343 -0
- package/google/api/endpoint_pb_service.d.ts +3 -0
- package/google/api/endpoint_pb_service.js +3 -0
- package/google/api/error_reason_pb.d.ts +40 -0
- package/google/api/error_reason_pb.js +61 -0
- package/google/api/error_reason_pb_service.d.ts +3 -0
- package/google/api/error_reason_pb_service.js +3 -0
- package/google/api/field_behavior_pb.d.ts +20 -0
- package/google/api/field_behavior_pb.js +66 -0
- package/google/api/field_behavior_pb_service.d.ts +3 -0
- package/google/api/field_behavior_pb_service.js +3 -0
- package/google/api/http_pb.d.ts +136 -0
- package/google/api/http_pb.js +1012 -0
- package/google/api/http_pb_service.d.ts +3 -0
- package/google/api/http_pb_service.js +3 -0
- package/google/api/httpbody_pb.d.ts +38 -0
- package/google/api/httpbody_pb.js +292 -0
- package/google/api/httpbody_pb_service.d.ts +3 -0
- package/google/api/httpbody_pb_service.js +3 -0
- package/google/api/label_pb.d.ts +41 -0
- package/google/api/label_pb.js +246 -0
- package/google/api/label_pb_service.d.ts +3 -0
- package/google/api/label_pb_service.js +3 -0
- package/google/api/launch_stage_pb.d.ts +16 -0
- package/google/api/launch_stage_pb.js +37 -0
- package/google/api/launch_stage_pb_service.d.ts +3 -0
- package/google/api/launch_stage_pb_service.js +3 -0
- package/google/api/log_pb.d.ts +40 -0
- package/google/api/log_pb.js +298 -0
- package/google/api/log_pb_service.d.ts +3 -0
- package/google/api/log_pb_service.js +3 -0
- package/google/api/logging_pb.d.ts +60 -0
- package/google/api/logging_pb.js +469 -0
- package/google/api/logging_pb_service.d.ts +3 -0
- package/google/api/logging_pb_service.js +3 -0
- package/google/api/metric_pb.d.ts +100 -0
- package/google/api/metric_pb.js +629 -0
- package/google/api/metric_pb_service.d.ts +3 -0
- package/google/api/metric_pb_service.js +3 -0
- package/google/api/monitored_resource_pb.d.ts +93 -0
- package/google/api/monitored_resource_pb.js +723 -0
- package/google/api/monitored_resource_pb_service.d.ts +3 -0
- package/google/api/monitored_resource_pb_service.js +3 -0
- package/google/api/monitoring_pb.d.ts +60 -0
- package/google/api/monitoring_pb.js +469 -0
- package/google/api/monitoring_pb_service.d.ts +3 -0
- package/google/api/monitoring_pb_service.js +3 -0
- package/google/api/policy_pb.d.ts +64 -0
- package/google/api/policy_pb.js +502 -0
- package/google/api/policy_pb_service.d.ts +3 -0
- package/google/api/policy_pb_service.js +3 -0
- package/google/api/quota_pb.d.ts +112 -0
- package/google/api/quota_pb.js +873 -0
- package/google/api/quota_pb_service.d.ts +3 -0
- package/google/api/quota_pb_service.js +3 -0
- package/google/api/resource_pb.d.ts +99 -0
- package/google/api/resource_pb.js +684 -0
- package/google/api/resource_pb_service.d.ts +3 -0
- package/google/api/resource_pb_service.js +3 -0
- package/google/api/routing_pb.d.ts +54 -0
- package/google/api/routing_pb.js +416 -0
- package/google/api/routing_pb_service.d.ts +3 -0
- package/google/api/routing_pb_service.js +3 -0
- package/google/api/service_pb.d.ts +184 -0
- package/google/api/service_pb.js +1400 -0
- package/google/api/service_pb_service.d.ts +3 -0
- package/google/api/service_pb_service.js +3 -0
- package/google/api/source_info_pb.d.ts +28 -0
- package/google/api/source_info_pb.js +208 -0
- package/google/api/source_info_pb_service.d.ts +3 -0
- package/google/api/source_info_pb_service.js +3 -0
- package/google/api/system_parameter_pb.d.ts +81 -0
- package/google/api/system_parameter_pb.js +630 -0
- package/google/api/system_parameter_pb_service.d.ts +3 -0
- package/google/api/system_parameter_pb_service.js +3 -0
- package/google/api/usage_pb.d.ts +66 -0
- package/google/api/usage_pb.js +499 -0
- package/google/api/usage_pb_service.d.ts +3 -0
- package/google/api/usage_pb_service.js +3 -0
- package/google/api/visibility_pb.d.ts +64 -0
- package/google/api/visibility_pb.js +546 -0
- package/google/api/visibility_pb_service.d.ts +3 -0
- package/google/api/visibility_pb_service.js +3 -0
- package/meta.client_pb.d.ts +167 -0
- package/meta.client_pb.js +1266 -0
- package/meta.client_pb_service.d.ts +122 -0
- package/meta.client_pb_service.js +183 -0
- package/meta.spic_config_pb.d.ts +184 -0
- package/meta.spic_config_pb.js +1382 -0
- package/meta.spic_config_pb_service.d.ts +122 -0
- package/meta.spic_config_pb_service.js +183 -0
- package/package.json +1 -1
- package/platform.activity_log_pb.d.ts +177 -0
- package/platform.activity_log_pb.js +1294 -0
- package/platform.activity_log_pb_service.d.ts +82 -0
- package/platform.activity_log_pb_service.js +101 -0
- package/platform.client_pb.d.ts +350 -0
- package/platform.client_pb.js +2663 -0
- package/platform.client_pb_service.d.ts +158 -0
- package/platform.client_pb_service.js +261 -0
- package/platform.group_pb.d.ts +195 -0
- package/platform.group_pb.js +1476 -0
- package/platform.group_pb_service.d.ts +139 -0
- package/platform.group_pb_service.js +221 -0
- package/platform.local_account_internal_pb.d.ts +125 -0
- package/platform.local_account_internal_pb.js +933 -0
- package/platform.local_account_internal_pb_service.d.ts +121 -0
- package/platform.local_account_internal_pb_service.js +182 -0
- package/platform.local_account_pb.d.ts +446 -0
- package/platform.local_account_pb.js +3337 -0
- package/platform.local_account_pb_service.d.ts +331 -0
- package/platform.local_account_pb_service.js +623 -0
- package/platform.local_distribution_pb.d.ts +73 -0
- package/platform.local_distribution_pb.js +536 -0
- package/platform.local_distribution_pb_service.d.ts +63 -0
- package/platform.local_distribution_pb_service.js +61 -0
- package/platform.location_pb.d.ts +271 -0
- package/platform.location_pb.js +2046 -0
- package/platform.location_pb_service.d.ts +139 -0
- package/platform.location_pb_service.js +221 -0
- package/platform.pagination_pb.d.ts +45 -0
- package/platform.pagination_pb.js +276 -0
- package/platform.pagination_pb_service.d.ts +3 -0
- package/platform.pagination_pb_service.js +3 -0
- package/spic.alarm_pb.d.ts +382 -0
- package/spic.alarm_pb.js +2915 -0
- package/spic.alarm_pb_service.d.ts +101 -0
- package/spic.alarm_pb_service.js +141 -0
- package/spic.asset_pb.d.ts +716 -0
- package/spic.asset_pb.js +5151 -0
- package/spic.asset_pb_service.d.ts +216 -0
- package/spic.asset_pb_service.js +382 -0
- package/spic.cabinet_pb.d.ts +1062 -0
- package/spic.cabinet_pb.js +7723 -0
- package/spic.cabinet_pb_service.d.ts +245 -0
- package/spic.cabinet_pb_service.js +437 -0
- package/spic.config_pb.d.ts +249 -0
- package/spic.config_pb.js +1891 -0
- package/spic.config_pb_service.d.ts +120 -0
- package/spic.config_pb_service.js +181 -0
- package/spic.contractor_pb.d.ts +195 -0
- package/spic.contractor_pb.js +1476 -0
- package/spic.contractor_pb_service.d.ts +139 -0
- package/spic.contractor_pb_service.js +221 -0
- package/spic.history_pb.d.ts +142 -0
- package/spic.history_pb.js +1130 -0
- package/spic.history_pb_service.d.ts +63 -0
- package/spic.history_pb_service.js +61 -0
- package/spic.open_request_pb.d.ts +237 -0
- package/spic.open_request_pb.js +1784 -0
- package/spic.open_request_pb_service.d.ts +101 -0
- package/spic.open_request_pb_service.js +141 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// package: Meta
|
|
2
|
+
// file: meta.spic_config.proto
|
|
3
|
+
|
|
4
|
+
import * as meta_spic_config_pb from "./meta.spic_config_pb";
|
|
5
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
+
import * as spic_asset_pb from "./spic.asset_pb";
|
|
7
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
8
|
+
|
|
9
|
+
type AssetMetaGRPCRetrieve = {
|
|
10
|
+
readonly methodName: string;
|
|
11
|
+
readonly service: typeof AssetMetaGRPC;
|
|
12
|
+
readonly requestStream: false;
|
|
13
|
+
readonly responseStream: false;
|
|
14
|
+
readonly requestType: typeof spic_asset_pb.AssetProto.RetrieveRequest;
|
|
15
|
+
readonly responseType: typeof meta_spic_config_pb.AssetLocationMeta;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type AssetMetaGRPCSetTemperatureConfiguration = {
|
|
19
|
+
readonly methodName: string;
|
|
20
|
+
readonly service: typeof AssetMetaGRPC;
|
|
21
|
+
readonly requestStream: false;
|
|
22
|
+
readonly responseStream: false;
|
|
23
|
+
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest;
|
|
24
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type AssetMetaGRPCCreateTemperatureConfigurationTemplate = {
|
|
28
|
+
readonly methodName: string;
|
|
29
|
+
readonly service: typeof AssetMetaGRPC;
|
|
30
|
+
readonly requestStream: false;
|
|
31
|
+
readonly responseStream: false;
|
|
32
|
+
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest;
|
|
33
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
type AssetMetaGRPCSearchTemperatureConfigurationTemplate = {
|
|
37
|
+
readonly methodName: string;
|
|
38
|
+
readonly service: typeof AssetMetaGRPC;
|
|
39
|
+
readonly requestStream: false;
|
|
40
|
+
readonly responseStream: false;
|
|
41
|
+
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest;
|
|
42
|
+
readonly responseType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export class AssetMetaGRPC {
|
|
46
|
+
static readonly serviceName: string;
|
|
47
|
+
static readonly Retrieve: AssetMetaGRPCRetrieve;
|
|
48
|
+
static readonly SetTemperatureConfiguration: AssetMetaGRPCSetTemperatureConfiguration;
|
|
49
|
+
static readonly CreateTemperatureConfigurationTemplate: AssetMetaGRPCCreateTemperatureConfigurationTemplate;
|
|
50
|
+
static readonly SearchTemperatureConfigurationTemplate: AssetMetaGRPCSearchTemperatureConfigurationTemplate;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
54
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
55
|
+
|
|
56
|
+
interface UnaryResponse {
|
|
57
|
+
cancel(): void;
|
|
58
|
+
}
|
|
59
|
+
interface ResponseStream<T> {
|
|
60
|
+
cancel(): void;
|
|
61
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
62
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
63
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
64
|
+
}
|
|
65
|
+
interface RequestStream<T> {
|
|
66
|
+
write(message: T): RequestStream<T>;
|
|
67
|
+
end(): void;
|
|
68
|
+
cancel(): void;
|
|
69
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
70
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
71
|
+
}
|
|
72
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
73
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
74
|
+
end(): void;
|
|
75
|
+
cancel(): void;
|
|
76
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
77
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
78
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class AssetMetaGRPCClient {
|
|
82
|
+
readonly serviceHost: string;
|
|
83
|
+
|
|
84
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
85
|
+
retrieve(
|
|
86
|
+
requestMessage: spic_asset_pb.AssetProto.RetrieveRequest,
|
|
87
|
+
metadata: grpc.Metadata,
|
|
88
|
+
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.AssetLocationMeta|null) => void
|
|
89
|
+
): UnaryResponse;
|
|
90
|
+
retrieve(
|
|
91
|
+
requestMessage: spic_asset_pb.AssetProto.RetrieveRequest,
|
|
92
|
+
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.AssetLocationMeta|null) => void
|
|
93
|
+
): UnaryResponse;
|
|
94
|
+
setTemperatureConfiguration(
|
|
95
|
+
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
96
|
+
metadata: grpc.Metadata,
|
|
97
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
98
|
+
): UnaryResponse;
|
|
99
|
+
setTemperatureConfiguration(
|
|
100
|
+
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
101
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
102
|
+
): UnaryResponse;
|
|
103
|
+
createTemperatureConfigurationTemplate(
|
|
104
|
+
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
|
|
105
|
+
metadata: grpc.Metadata,
|
|
106
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
107
|
+
): UnaryResponse;
|
|
108
|
+
createTemperatureConfigurationTemplate(
|
|
109
|
+
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
|
|
110
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
111
|
+
): UnaryResponse;
|
|
112
|
+
searchTemperatureConfigurationTemplate(
|
|
113
|
+
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
|
|
114
|
+
metadata: grpc.Metadata,
|
|
115
|
+
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply|null) => void
|
|
116
|
+
): UnaryResponse;
|
|
117
|
+
searchTemperatureConfigurationTemplate(
|
|
118
|
+
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
|
|
119
|
+
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply|null) => void
|
|
120
|
+
): UnaryResponse;
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
// package: Meta
|
|
2
|
+
// file: meta.spic_config.proto
|
|
3
|
+
|
|
4
|
+
var meta_spic_config_pb = require("./meta.spic_config_pb");
|
|
5
|
+
var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
|
|
6
|
+
var spic_asset_pb = require("./spic.asset_pb");
|
|
7
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
8
|
+
|
|
9
|
+
var AssetMetaGRPC = (function () {
|
|
10
|
+
function AssetMetaGRPC() {}
|
|
11
|
+
AssetMetaGRPC.serviceName = "Meta.AssetMetaGRPC";
|
|
12
|
+
return AssetMetaGRPC;
|
|
13
|
+
}());
|
|
14
|
+
|
|
15
|
+
AssetMetaGRPC.Retrieve = {
|
|
16
|
+
methodName: "Retrieve",
|
|
17
|
+
service: AssetMetaGRPC,
|
|
18
|
+
requestStream: false,
|
|
19
|
+
responseStream: false,
|
|
20
|
+
requestType: spic_asset_pb.AssetProto.RetrieveRequest,
|
|
21
|
+
responseType: meta_spic_config_pb.AssetLocationMeta
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
AssetMetaGRPC.SetTemperatureConfiguration = {
|
|
25
|
+
methodName: "SetTemperatureConfiguration",
|
|
26
|
+
service: AssetMetaGRPC,
|
|
27
|
+
requestStream: false,
|
|
28
|
+
responseStream: false,
|
|
29
|
+
requestType: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
30
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
AssetMetaGRPC.CreateTemperatureConfigurationTemplate = {
|
|
34
|
+
methodName: "CreateTemperatureConfigurationTemplate",
|
|
35
|
+
service: AssetMetaGRPC,
|
|
36
|
+
requestStream: false,
|
|
37
|
+
responseStream: false,
|
|
38
|
+
requestType: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
|
|
39
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
AssetMetaGRPC.SearchTemperatureConfigurationTemplate = {
|
|
43
|
+
methodName: "SearchTemperatureConfigurationTemplate",
|
|
44
|
+
service: AssetMetaGRPC,
|
|
45
|
+
requestStream: false,
|
|
46
|
+
responseStream: false,
|
|
47
|
+
requestType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
|
|
48
|
+
responseType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
exports.AssetMetaGRPC = AssetMetaGRPC;
|
|
52
|
+
|
|
53
|
+
function AssetMetaGRPCClient(serviceHost, options) {
|
|
54
|
+
this.serviceHost = serviceHost;
|
|
55
|
+
this.options = options || {};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
AssetMetaGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
59
|
+
if (arguments.length === 2) {
|
|
60
|
+
callback = arguments[1];
|
|
61
|
+
}
|
|
62
|
+
var client = grpc.unary(AssetMetaGRPC.Retrieve, {
|
|
63
|
+
request: requestMessage,
|
|
64
|
+
host: this.serviceHost,
|
|
65
|
+
metadata: metadata,
|
|
66
|
+
transport: this.options.transport,
|
|
67
|
+
debug: this.options.debug,
|
|
68
|
+
onEnd: function (response) {
|
|
69
|
+
if (callback) {
|
|
70
|
+
if (response.status !== grpc.Code.OK) {
|
|
71
|
+
var err = new Error(response.statusMessage);
|
|
72
|
+
err.code = response.status;
|
|
73
|
+
err.metadata = response.trailers;
|
|
74
|
+
callback(err, null);
|
|
75
|
+
} else {
|
|
76
|
+
callback(null, response.message);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
cancel: function () {
|
|
83
|
+
callback = null;
|
|
84
|
+
client.close();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
AssetMetaGRPCClient.prototype.setTemperatureConfiguration = function setTemperatureConfiguration(requestMessage, metadata, callback) {
|
|
90
|
+
if (arguments.length === 2) {
|
|
91
|
+
callback = arguments[1];
|
|
92
|
+
}
|
|
93
|
+
var client = grpc.unary(AssetMetaGRPC.SetTemperatureConfiguration, {
|
|
94
|
+
request: requestMessage,
|
|
95
|
+
host: this.serviceHost,
|
|
96
|
+
metadata: metadata,
|
|
97
|
+
transport: this.options.transport,
|
|
98
|
+
debug: this.options.debug,
|
|
99
|
+
onEnd: function (response) {
|
|
100
|
+
if (callback) {
|
|
101
|
+
if (response.status !== grpc.Code.OK) {
|
|
102
|
+
var err = new Error(response.statusMessage);
|
|
103
|
+
err.code = response.status;
|
|
104
|
+
err.metadata = response.trailers;
|
|
105
|
+
callback(err, null);
|
|
106
|
+
} else {
|
|
107
|
+
callback(null, response.message);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
return {
|
|
113
|
+
cancel: function () {
|
|
114
|
+
callback = null;
|
|
115
|
+
client.close();
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
AssetMetaGRPCClient.prototype.createTemperatureConfigurationTemplate = function createTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
|
|
121
|
+
if (arguments.length === 2) {
|
|
122
|
+
callback = arguments[1];
|
|
123
|
+
}
|
|
124
|
+
var client = grpc.unary(AssetMetaGRPC.CreateTemperatureConfigurationTemplate, {
|
|
125
|
+
request: requestMessage,
|
|
126
|
+
host: this.serviceHost,
|
|
127
|
+
metadata: metadata,
|
|
128
|
+
transport: this.options.transport,
|
|
129
|
+
debug: this.options.debug,
|
|
130
|
+
onEnd: function (response) {
|
|
131
|
+
if (callback) {
|
|
132
|
+
if (response.status !== grpc.Code.OK) {
|
|
133
|
+
var err = new Error(response.statusMessage);
|
|
134
|
+
err.code = response.status;
|
|
135
|
+
err.metadata = response.trailers;
|
|
136
|
+
callback(err, null);
|
|
137
|
+
} else {
|
|
138
|
+
callback(null, response.message);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
return {
|
|
144
|
+
cancel: function () {
|
|
145
|
+
callback = null;
|
|
146
|
+
client.close();
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
AssetMetaGRPCClient.prototype.searchTemperatureConfigurationTemplate = function searchTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
|
|
152
|
+
if (arguments.length === 2) {
|
|
153
|
+
callback = arguments[1];
|
|
154
|
+
}
|
|
155
|
+
var client = grpc.unary(AssetMetaGRPC.SearchTemperatureConfigurationTemplate, {
|
|
156
|
+
request: requestMessage,
|
|
157
|
+
host: this.serviceHost,
|
|
158
|
+
metadata: metadata,
|
|
159
|
+
transport: this.options.transport,
|
|
160
|
+
debug: this.options.debug,
|
|
161
|
+
onEnd: function (response) {
|
|
162
|
+
if (callback) {
|
|
163
|
+
if (response.status !== grpc.Code.OK) {
|
|
164
|
+
var err = new Error(response.statusMessage);
|
|
165
|
+
err.code = response.status;
|
|
166
|
+
err.metadata = response.trailers;
|
|
167
|
+
callback(err, null);
|
|
168
|
+
} else {
|
|
169
|
+
callback(null, response.message);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
return {
|
|
175
|
+
cancel: function () {
|
|
176
|
+
callback = null;
|
|
177
|
+
client.close();
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
exports.AssetMetaGRPCClient = AssetMetaGRPCClient;
|
|
183
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// package: Platform
|
|
2
|
+
// file: platform.activity_log.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
6
|
+
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
7
|
+
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
8
|
+
|
|
9
|
+
export class ActivityLogProto extends jspb.Message {
|
|
10
|
+
getId(): number;
|
|
11
|
+
setId(value: number): void;
|
|
12
|
+
|
|
13
|
+
hasDate(): boolean;
|
|
14
|
+
clearDate(): void;
|
|
15
|
+
getDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
16
|
+
setDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
17
|
+
|
|
18
|
+
getAdminId(): number;
|
|
19
|
+
setAdminId(value: number): void;
|
|
20
|
+
|
|
21
|
+
getAdminName(): string;
|
|
22
|
+
setAdminName(value: string): void;
|
|
23
|
+
|
|
24
|
+
getText(): string;
|
|
25
|
+
setText(value: string): void;
|
|
26
|
+
|
|
27
|
+
getType(): ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap];
|
|
28
|
+
setType(value: ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap]): void;
|
|
29
|
+
|
|
30
|
+
serializeBinary(): Uint8Array;
|
|
31
|
+
toObject(includeInstance?: boolean): ActivityLogProto.AsObject;
|
|
32
|
+
static toObject(includeInstance: boolean, msg: ActivityLogProto): ActivityLogProto.AsObject;
|
|
33
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
34
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
35
|
+
static serializeBinaryToWriter(message: ActivityLogProto, writer: jspb.BinaryWriter): void;
|
|
36
|
+
static deserializeBinary(bytes: Uint8Array): ActivityLogProto;
|
|
37
|
+
static deserializeBinaryFromReader(message: ActivityLogProto, reader: jspb.BinaryReader): ActivityLogProto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace ActivityLogProto {
|
|
41
|
+
export type AsObject = {
|
|
42
|
+
id: number,
|
|
43
|
+
date?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
44
|
+
adminId: number,
|
|
45
|
+
adminName: string,
|
|
46
|
+
text: string,
|
|
47
|
+
type: ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap],
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export class CreateRequest extends jspb.Message {
|
|
51
|
+
hasDate(): boolean;
|
|
52
|
+
clearDate(): void;
|
|
53
|
+
getDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
54
|
+
setDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
55
|
+
|
|
56
|
+
getAdminId(): number;
|
|
57
|
+
setAdminId(value: number): void;
|
|
58
|
+
|
|
59
|
+
getAdminName(): string;
|
|
60
|
+
setAdminName(value: string): void;
|
|
61
|
+
|
|
62
|
+
getText(): string;
|
|
63
|
+
setText(value: string): void;
|
|
64
|
+
|
|
65
|
+
getType(): ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap];
|
|
66
|
+
setType(value: ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap]): void;
|
|
67
|
+
|
|
68
|
+
serializeBinary(): Uint8Array;
|
|
69
|
+
toObject(includeInstance?: boolean): CreateRequest.AsObject;
|
|
70
|
+
static toObject(includeInstance: boolean, msg: CreateRequest): CreateRequest.AsObject;
|
|
71
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
72
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
73
|
+
static serializeBinaryToWriter(message: CreateRequest, writer: jspb.BinaryWriter): void;
|
|
74
|
+
static deserializeBinary(bytes: Uint8Array): CreateRequest;
|
|
75
|
+
static deserializeBinaryFromReader(message: CreateRequest, reader: jspb.BinaryReader): CreateRequest;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export namespace CreateRequest {
|
|
79
|
+
export type AsObject = {
|
|
80
|
+
date?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
81
|
+
adminId: number,
|
|
82
|
+
adminName: string,
|
|
83
|
+
text: string,
|
|
84
|
+
type: ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap],
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class SearchRequest extends jspb.Message {
|
|
89
|
+
getAdminId(): number;
|
|
90
|
+
setAdminId(value: number): void;
|
|
91
|
+
|
|
92
|
+
getAdminName(): string;
|
|
93
|
+
setAdminName(value: string): void;
|
|
94
|
+
|
|
95
|
+
getPage(): number;
|
|
96
|
+
setPage(value: number): void;
|
|
97
|
+
|
|
98
|
+
getCount(): number;
|
|
99
|
+
setCount(value: number): void;
|
|
100
|
+
|
|
101
|
+
hasDateFrom(): boolean;
|
|
102
|
+
clearDateFrom(): void;
|
|
103
|
+
getDateFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
104
|
+
setDateFrom(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
105
|
+
|
|
106
|
+
hasDateTo(): boolean;
|
|
107
|
+
clearDateTo(): void;
|
|
108
|
+
getDateTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
109
|
+
setDateTo(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
110
|
+
|
|
111
|
+
clearTypesList(): void;
|
|
112
|
+
getTypesList(): Array<ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap]>;
|
|
113
|
+
setTypesList(value: Array<ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap]>): void;
|
|
114
|
+
addTypes(value: ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap], index?: number): ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap];
|
|
115
|
+
|
|
116
|
+
serializeBinary(): Uint8Array;
|
|
117
|
+
toObject(includeInstance?: boolean): SearchRequest.AsObject;
|
|
118
|
+
static toObject(includeInstance: boolean, msg: SearchRequest): SearchRequest.AsObject;
|
|
119
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
120
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
121
|
+
static serializeBinaryToWriter(message: SearchRequest, writer: jspb.BinaryWriter): void;
|
|
122
|
+
static deserializeBinary(bytes: Uint8Array): SearchRequest;
|
|
123
|
+
static deserializeBinaryFromReader(message: SearchRequest, reader: jspb.BinaryReader): SearchRequest;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export namespace SearchRequest {
|
|
127
|
+
export type AsObject = {
|
|
128
|
+
adminId: number,
|
|
129
|
+
adminName: string,
|
|
130
|
+
page: number,
|
|
131
|
+
count: number,
|
|
132
|
+
dateFrom?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
133
|
+
dateTo?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
134
|
+
typesList: Array<ActivityLogProto.ActivityTypeMap[keyof ActivityLogProto.ActivityTypeMap]>,
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export class SearchReply extends jspb.Message {
|
|
139
|
+
clearActivitylogsList(): void;
|
|
140
|
+
getActivitylogsList(): Array<ActivityLogProto>;
|
|
141
|
+
setActivitylogsList(value: Array<ActivityLogProto>): void;
|
|
142
|
+
addActivitylogs(value?: ActivityLogProto, index?: number): ActivityLogProto;
|
|
143
|
+
|
|
144
|
+
hasPagination(): boolean;
|
|
145
|
+
clearPagination(): void;
|
|
146
|
+
getPagination(): platform_pagination_pb.PaginationProto | undefined;
|
|
147
|
+
setPagination(value?: platform_pagination_pb.PaginationProto): void;
|
|
148
|
+
|
|
149
|
+
serializeBinary(): Uint8Array;
|
|
150
|
+
toObject(includeInstance?: boolean): SearchReply.AsObject;
|
|
151
|
+
static toObject(includeInstance: boolean, msg: SearchReply): SearchReply.AsObject;
|
|
152
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
153
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
154
|
+
static serializeBinaryToWriter(message: SearchReply, writer: jspb.BinaryWriter): void;
|
|
155
|
+
static deserializeBinary(bytes: Uint8Array): SearchReply;
|
|
156
|
+
static deserializeBinaryFromReader(message: SearchReply, reader: jspb.BinaryReader): SearchReply;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export namespace SearchReply {
|
|
160
|
+
export type AsObject = {
|
|
161
|
+
activitylogsList: Array<ActivityLogProto.AsObject>,
|
|
162
|
+
pagination?: platform_pagination_pb.PaginationProto.AsObject,
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface ActivityTypeMap {
|
|
167
|
+
CABINET: 0;
|
|
168
|
+
GROUP: 1;
|
|
169
|
+
USER: 2;
|
|
170
|
+
ACCESS: 3;
|
|
171
|
+
ADMINISTRATOR: 4;
|
|
172
|
+
SNIFFER: 5;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export const ActivityType: ActivityTypeMap;
|
|
176
|
+
}
|
|
177
|
+
|