@aceplus/smartace-api 3.6.0-alpha.17 → 3.6.0-alpha.19
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.admin_alert_pb.d.ts +91 -0
- package/spic.admin_alert_pb.js +666 -0
- package/spic.admin_alert_pb_service.d.ts +102 -0
- package/spic.admin_alert_pb_service.js +142 -0
- package/spic.alarm_pb.d.ts +344 -0
- package/spic.alarm_pb.js +2622 -0
- package/spic.alarm_pb_service.d.ts +101 -0
- package/spic.alarm_pb_service.js +141 -0
- package/spic.asset_pb.d.ts +652 -0
- package/spic.asset_pb.js +4669 -0
- package/spic.asset_pb_service.d.ts +197 -0
- package/spic.asset_pb_service.js +342 -0
- package/spic.cabinet_pb.d.ts +951 -0
- package/spic.cabinet_pb.js +6875 -0
- package/spic.cabinet_pb_service.d.ts +177 -0
- package/spic.cabinet_pb_service.js +301 -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,177 @@
|
|
|
1
|
+
// package: Spic
|
|
2
|
+
// file: spic.cabinet.proto
|
|
3
|
+
|
|
4
|
+
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type CabinetGRPCRetrieve = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof CabinetGRPC;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.RetrieveRequest;
|
|
13
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetWithLocation;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type CabinetGRPCSearch = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof CabinetGRPC;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.SearchRequest;
|
|
22
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto.SearchReply;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type CabinetGRPCLocationSearch = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof CabinetGRPC;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.LocationSearchRequest;
|
|
31
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto.LocationSearchReply;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type CabinetGRPCSearchStates = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof CabinetGRPC;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.State.SearchRequest;
|
|
40
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto.State.SearchReply;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type CabinetGRPCStateExcelReport = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof CabinetGRPC;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.State.ExcelReportRequest;
|
|
49
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto.State.ExcelReportReply;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type CabinetGRPCSearchEvents = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof CabinetGRPC;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.Event.SearchRequest;
|
|
58
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto.Event.SearchReply;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type CabinetGRPCCreateOpenRequest = {
|
|
62
|
+
readonly methodName: string;
|
|
63
|
+
readonly service: typeof CabinetGRPC;
|
|
64
|
+
readonly requestStream: false;
|
|
65
|
+
readonly responseStream: false;
|
|
66
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest;
|
|
67
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export class CabinetGRPC {
|
|
71
|
+
static readonly serviceName: string;
|
|
72
|
+
static readonly Retrieve: CabinetGRPCRetrieve;
|
|
73
|
+
static readonly Search: CabinetGRPCSearch;
|
|
74
|
+
static readonly LocationSearch: CabinetGRPCLocationSearch;
|
|
75
|
+
static readonly SearchStates: CabinetGRPCSearchStates;
|
|
76
|
+
static readonly StateExcelReport: CabinetGRPCStateExcelReport;
|
|
77
|
+
static readonly SearchEvents: CabinetGRPCSearchEvents;
|
|
78
|
+
static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
82
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
83
|
+
|
|
84
|
+
interface UnaryResponse {
|
|
85
|
+
cancel(): void;
|
|
86
|
+
}
|
|
87
|
+
interface ResponseStream<T> {
|
|
88
|
+
cancel(): void;
|
|
89
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
90
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
91
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
92
|
+
}
|
|
93
|
+
interface RequestStream<T> {
|
|
94
|
+
write(message: T): RequestStream<T>;
|
|
95
|
+
end(): void;
|
|
96
|
+
cancel(): void;
|
|
97
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
98
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
99
|
+
}
|
|
100
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
101
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
102
|
+
end(): void;
|
|
103
|
+
cancel(): void;
|
|
104
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
105
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
106
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export class CabinetGRPCClient {
|
|
110
|
+
readonly serviceHost: string;
|
|
111
|
+
|
|
112
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
113
|
+
retrieve(
|
|
114
|
+
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
115
|
+
metadata: grpc.Metadata,
|
|
116
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetWithLocation|null) => void
|
|
117
|
+
): UnaryResponse;
|
|
118
|
+
retrieve(
|
|
119
|
+
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
120
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetWithLocation|null) => void
|
|
121
|
+
): UnaryResponse;
|
|
122
|
+
search(
|
|
123
|
+
requestMessage: spic_cabinet_pb.CabinetProto.SearchRequest,
|
|
124
|
+
metadata: grpc.Metadata,
|
|
125
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.SearchReply|null) => void
|
|
126
|
+
): UnaryResponse;
|
|
127
|
+
search(
|
|
128
|
+
requestMessage: spic_cabinet_pb.CabinetProto.SearchRequest,
|
|
129
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.SearchReply|null) => void
|
|
130
|
+
): UnaryResponse;
|
|
131
|
+
locationSearch(
|
|
132
|
+
requestMessage: spic_cabinet_pb.CabinetProto.LocationSearchRequest,
|
|
133
|
+
metadata: grpc.Metadata,
|
|
134
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.LocationSearchReply|null) => void
|
|
135
|
+
): UnaryResponse;
|
|
136
|
+
locationSearch(
|
|
137
|
+
requestMessage: spic_cabinet_pb.CabinetProto.LocationSearchRequest,
|
|
138
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.LocationSearchReply|null) => void
|
|
139
|
+
): UnaryResponse;
|
|
140
|
+
searchStates(
|
|
141
|
+
requestMessage: spic_cabinet_pb.CabinetProto.State.SearchRequest,
|
|
142
|
+
metadata: grpc.Metadata,
|
|
143
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.State.SearchReply|null) => void
|
|
144
|
+
): UnaryResponse;
|
|
145
|
+
searchStates(
|
|
146
|
+
requestMessage: spic_cabinet_pb.CabinetProto.State.SearchRequest,
|
|
147
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.State.SearchReply|null) => void
|
|
148
|
+
): UnaryResponse;
|
|
149
|
+
stateExcelReport(
|
|
150
|
+
requestMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportRequest,
|
|
151
|
+
metadata: grpc.Metadata,
|
|
152
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportReply|null) => void
|
|
153
|
+
): UnaryResponse;
|
|
154
|
+
stateExcelReport(
|
|
155
|
+
requestMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportRequest,
|
|
156
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportReply|null) => void
|
|
157
|
+
): UnaryResponse;
|
|
158
|
+
searchEvents(
|
|
159
|
+
requestMessage: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
160
|
+
metadata: grpc.Metadata,
|
|
161
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Event.SearchReply|null) => void
|
|
162
|
+
): UnaryResponse;
|
|
163
|
+
searchEvents(
|
|
164
|
+
requestMessage: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
165
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Event.SearchReply|null) => void
|
|
166
|
+
): UnaryResponse;
|
|
167
|
+
createOpenRequest(
|
|
168
|
+
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
|
|
169
|
+
metadata: grpc.Metadata,
|
|
170
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest|null) => void
|
|
171
|
+
): UnaryResponse;
|
|
172
|
+
createOpenRequest(
|
|
173
|
+
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
|
|
174
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest|null) => void
|
|
175
|
+
): UnaryResponse;
|
|
176
|
+
}
|
|
177
|
+
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
// package: Spic
|
|
2
|
+
// file: spic.cabinet.proto
|
|
3
|
+
|
|
4
|
+
var spic_cabinet_pb = require("./spic.cabinet_pb");
|
|
5
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
6
|
+
|
|
7
|
+
var CabinetGRPC = (function () {
|
|
8
|
+
function CabinetGRPC() {}
|
|
9
|
+
CabinetGRPC.serviceName = "Spic.CabinetGRPC";
|
|
10
|
+
return CabinetGRPC;
|
|
11
|
+
}());
|
|
12
|
+
|
|
13
|
+
CabinetGRPC.Retrieve = {
|
|
14
|
+
methodName: "Retrieve",
|
|
15
|
+
service: CabinetGRPC,
|
|
16
|
+
requestStream: false,
|
|
17
|
+
responseStream: false,
|
|
18
|
+
requestType: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
19
|
+
responseType: spic_cabinet_pb.CabinetWithLocation
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
CabinetGRPC.Search = {
|
|
23
|
+
methodName: "Search",
|
|
24
|
+
service: CabinetGRPC,
|
|
25
|
+
requestStream: false,
|
|
26
|
+
responseStream: false,
|
|
27
|
+
requestType: spic_cabinet_pb.CabinetProto.SearchRequest,
|
|
28
|
+
responseType: spic_cabinet_pb.CabinetProto.SearchReply
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
CabinetGRPC.LocationSearch = {
|
|
32
|
+
methodName: "LocationSearch",
|
|
33
|
+
service: CabinetGRPC,
|
|
34
|
+
requestStream: false,
|
|
35
|
+
responseStream: false,
|
|
36
|
+
requestType: spic_cabinet_pb.CabinetProto.LocationSearchRequest,
|
|
37
|
+
responseType: spic_cabinet_pb.CabinetProto.LocationSearchReply
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
CabinetGRPC.SearchStates = {
|
|
41
|
+
methodName: "SearchStates",
|
|
42
|
+
service: CabinetGRPC,
|
|
43
|
+
requestStream: false,
|
|
44
|
+
responseStream: false,
|
|
45
|
+
requestType: spic_cabinet_pb.CabinetProto.State.SearchRequest,
|
|
46
|
+
responseType: spic_cabinet_pb.CabinetProto.State.SearchReply
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
CabinetGRPC.StateExcelReport = {
|
|
50
|
+
methodName: "StateExcelReport",
|
|
51
|
+
service: CabinetGRPC,
|
|
52
|
+
requestStream: false,
|
|
53
|
+
responseStream: false,
|
|
54
|
+
requestType: spic_cabinet_pb.CabinetProto.State.ExcelReportRequest,
|
|
55
|
+
responseType: spic_cabinet_pb.CabinetProto.State.ExcelReportReply
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
CabinetGRPC.SearchEvents = {
|
|
59
|
+
methodName: "SearchEvents",
|
|
60
|
+
service: CabinetGRPC,
|
|
61
|
+
requestStream: false,
|
|
62
|
+
responseStream: false,
|
|
63
|
+
requestType: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
64
|
+
responseType: spic_cabinet_pb.CabinetProto.Event.SearchReply
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
CabinetGRPC.CreateOpenRequest = {
|
|
68
|
+
methodName: "CreateOpenRequest",
|
|
69
|
+
service: CabinetGRPC,
|
|
70
|
+
requestStream: false,
|
|
71
|
+
responseStream: false,
|
|
72
|
+
requestType: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
|
|
73
|
+
responseType: spic_cabinet_pb.CabinetProto.OpenRequest
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
exports.CabinetGRPC = CabinetGRPC;
|
|
77
|
+
|
|
78
|
+
function CabinetGRPCClient(serviceHost, options) {
|
|
79
|
+
this.serviceHost = serviceHost;
|
|
80
|
+
this.options = options || {};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
CabinetGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
84
|
+
if (arguments.length === 2) {
|
|
85
|
+
callback = arguments[1];
|
|
86
|
+
}
|
|
87
|
+
var client = grpc.unary(CabinetGRPC.Retrieve, {
|
|
88
|
+
request: requestMessage,
|
|
89
|
+
host: this.serviceHost,
|
|
90
|
+
metadata: metadata,
|
|
91
|
+
transport: this.options.transport,
|
|
92
|
+
debug: this.options.debug,
|
|
93
|
+
onEnd: function (response) {
|
|
94
|
+
if (callback) {
|
|
95
|
+
if (response.status !== grpc.Code.OK) {
|
|
96
|
+
var err = new Error(response.statusMessage);
|
|
97
|
+
err.code = response.status;
|
|
98
|
+
err.metadata = response.trailers;
|
|
99
|
+
callback(err, null);
|
|
100
|
+
} else {
|
|
101
|
+
callback(null, response.message);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return {
|
|
107
|
+
cancel: function () {
|
|
108
|
+
callback = null;
|
|
109
|
+
client.close();
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
CabinetGRPCClient.prototype.search = function search(requestMessage, metadata, callback) {
|
|
115
|
+
if (arguments.length === 2) {
|
|
116
|
+
callback = arguments[1];
|
|
117
|
+
}
|
|
118
|
+
var client = grpc.unary(CabinetGRPC.Search, {
|
|
119
|
+
request: requestMessage,
|
|
120
|
+
host: this.serviceHost,
|
|
121
|
+
metadata: metadata,
|
|
122
|
+
transport: this.options.transport,
|
|
123
|
+
debug: this.options.debug,
|
|
124
|
+
onEnd: function (response) {
|
|
125
|
+
if (callback) {
|
|
126
|
+
if (response.status !== grpc.Code.OK) {
|
|
127
|
+
var err = new Error(response.statusMessage);
|
|
128
|
+
err.code = response.status;
|
|
129
|
+
err.metadata = response.trailers;
|
|
130
|
+
callback(err, null);
|
|
131
|
+
} else {
|
|
132
|
+
callback(null, response.message);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
return {
|
|
138
|
+
cancel: function () {
|
|
139
|
+
callback = null;
|
|
140
|
+
client.close();
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
CabinetGRPCClient.prototype.locationSearch = function locationSearch(requestMessage, metadata, callback) {
|
|
146
|
+
if (arguments.length === 2) {
|
|
147
|
+
callback = arguments[1];
|
|
148
|
+
}
|
|
149
|
+
var client = grpc.unary(CabinetGRPC.LocationSearch, {
|
|
150
|
+
request: requestMessage,
|
|
151
|
+
host: this.serviceHost,
|
|
152
|
+
metadata: metadata,
|
|
153
|
+
transport: this.options.transport,
|
|
154
|
+
debug: this.options.debug,
|
|
155
|
+
onEnd: function (response) {
|
|
156
|
+
if (callback) {
|
|
157
|
+
if (response.status !== grpc.Code.OK) {
|
|
158
|
+
var err = new Error(response.statusMessage);
|
|
159
|
+
err.code = response.status;
|
|
160
|
+
err.metadata = response.trailers;
|
|
161
|
+
callback(err, null);
|
|
162
|
+
} else {
|
|
163
|
+
callback(null, response.message);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
return {
|
|
169
|
+
cancel: function () {
|
|
170
|
+
callback = null;
|
|
171
|
+
client.close();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
CabinetGRPCClient.prototype.searchStates = function searchStates(requestMessage, metadata, callback) {
|
|
177
|
+
if (arguments.length === 2) {
|
|
178
|
+
callback = arguments[1];
|
|
179
|
+
}
|
|
180
|
+
var client = grpc.unary(CabinetGRPC.SearchStates, {
|
|
181
|
+
request: requestMessage,
|
|
182
|
+
host: this.serviceHost,
|
|
183
|
+
metadata: metadata,
|
|
184
|
+
transport: this.options.transport,
|
|
185
|
+
debug: this.options.debug,
|
|
186
|
+
onEnd: function (response) {
|
|
187
|
+
if (callback) {
|
|
188
|
+
if (response.status !== grpc.Code.OK) {
|
|
189
|
+
var err = new Error(response.statusMessage);
|
|
190
|
+
err.code = response.status;
|
|
191
|
+
err.metadata = response.trailers;
|
|
192
|
+
callback(err, null);
|
|
193
|
+
} else {
|
|
194
|
+
callback(null, response.message);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
return {
|
|
200
|
+
cancel: function () {
|
|
201
|
+
callback = null;
|
|
202
|
+
client.close();
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
CabinetGRPCClient.prototype.stateExcelReport = function stateExcelReport(requestMessage, metadata, callback) {
|
|
208
|
+
if (arguments.length === 2) {
|
|
209
|
+
callback = arguments[1];
|
|
210
|
+
}
|
|
211
|
+
var client = grpc.unary(CabinetGRPC.StateExcelReport, {
|
|
212
|
+
request: requestMessage,
|
|
213
|
+
host: this.serviceHost,
|
|
214
|
+
metadata: metadata,
|
|
215
|
+
transport: this.options.transport,
|
|
216
|
+
debug: this.options.debug,
|
|
217
|
+
onEnd: function (response) {
|
|
218
|
+
if (callback) {
|
|
219
|
+
if (response.status !== grpc.Code.OK) {
|
|
220
|
+
var err = new Error(response.statusMessage);
|
|
221
|
+
err.code = response.status;
|
|
222
|
+
err.metadata = response.trailers;
|
|
223
|
+
callback(err, null);
|
|
224
|
+
} else {
|
|
225
|
+
callback(null, response.message);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
return {
|
|
231
|
+
cancel: function () {
|
|
232
|
+
callback = null;
|
|
233
|
+
client.close();
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
CabinetGRPCClient.prototype.searchEvents = function searchEvents(requestMessage, metadata, callback) {
|
|
239
|
+
if (arguments.length === 2) {
|
|
240
|
+
callback = arguments[1];
|
|
241
|
+
}
|
|
242
|
+
var client = grpc.unary(CabinetGRPC.SearchEvents, {
|
|
243
|
+
request: requestMessage,
|
|
244
|
+
host: this.serviceHost,
|
|
245
|
+
metadata: metadata,
|
|
246
|
+
transport: this.options.transport,
|
|
247
|
+
debug: this.options.debug,
|
|
248
|
+
onEnd: function (response) {
|
|
249
|
+
if (callback) {
|
|
250
|
+
if (response.status !== grpc.Code.OK) {
|
|
251
|
+
var err = new Error(response.statusMessage);
|
|
252
|
+
err.code = response.status;
|
|
253
|
+
err.metadata = response.trailers;
|
|
254
|
+
callback(err, null);
|
|
255
|
+
} else {
|
|
256
|
+
callback(null, response.message);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
return {
|
|
262
|
+
cancel: function () {
|
|
263
|
+
callback = null;
|
|
264
|
+
client.close();
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
CabinetGRPCClient.prototype.createOpenRequest = function createOpenRequest(requestMessage, metadata, callback) {
|
|
270
|
+
if (arguments.length === 2) {
|
|
271
|
+
callback = arguments[1];
|
|
272
|
+
}
|
|
273
|
+
var client = grpc.unary(CabinetGRPC.CreateOpenRequest, {
|
|
274
|
+
request: requestMessage,
|
|
275
|
+
host: this.serviceHost,
|
|
276
|
+
metadata: metadata,
|
|
277
|
+
transport: this.options.transport,
|
|
278
|
+
debug: this.options.debug,
|
|
279
|
+
onEnd: function (response) {
|
|
280
|
+
if (callback) {
|
|
281
|
+
if (response.status !== grpc.Code.OK) {
|
|
282
|
+
var err = new Error(response.statusMessage);
|
|
283
|
+
err.code = response.status;
|
|
284
|
+
err.metadata = response.trailers;
|
|
285
|
+
callback(err, null);
|
|
286
|
+
} else {
|
|
287
|
+
callback(null, response.message);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
return {
|
|
293
|
+
cancel: function () {
|
|
294
|
+
callback = null;
|
|
295
|
+
client.close();
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
exports.CabinetGRPCClient = CabinetGRPCClient;
|
|
301
|
+
|