@aceplus/smartace-api 3.6.0-alpha.19 → 3.6.0-alpha.20
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/package.json +1 -1
- package/auth.account_pb.d.ts +0 -582
- package/auth.account_pb.js +0 -4287
- package/auth.account_pb_service.d.ts +0 -340
- package/auth.account_pb_service.js +0 -637
- package/auth.account_two_factor_pb.d.ts +0 -159
- package/auth.account_two_factor_pb.js +0 -1184
- package/auth.account_two_factor_pb_service.d.ts +0 -121
- package/auth.account_two_factor_pb_service.js +0 -182
- package/auth.app_account_pb.d.ts +0 -156
- package/auth.app_account_pb.js +0 -1153
- package/auth.app_account_pb_service.d.ts +0 -160
- package/auth.app_account_pb_service.js +0 -263
- package/auth.app_authn_pb.d.ts +0 -172
- package/auth.app_authn_pb.js +0 -1233
- package/auth.app_authn_pb_service.d.ts +0 -140
- package/auth.app_authn_pb_service.js +0 -222
- package/auth.app_distribution_pb.d.ts +0 -174
- package/auth.app_distribution_pb.js +0 -1338
- package/auth.app_distribution_pb_service.d.ts +0 -120
- package/auth.app_distribution_pb_service.js +0 -181
- package/auth.authn_pb.d.ts +0 -95
- package/auth.authn_pb.js +0 -637
- package/auth.authn_pb_service.d.ts +0 -82
- package/auth.authn_pb_service.js +0 -101
- package/auth.cluster_pb.d.ts +0 -142
- package/auth.cluster_pb.js +0 -1050
- package/auth.cluster_pb_service.d.ts +0 -82
- package/auth.cluster_pb_service.js +0 -101
- package/auth.distribution_pb.d.ts +0 -233
- package/auth.distribution_pb.js +0 -1785
- package/auth.distribution_pb_service.d.ts +0 -82
- package/auth.distribution_pb_service.js +0 -101
- package/auth.email_pb.d.ts +0 -217
- package/auth.email_pb.js +0 -1508
- package/auth.email_pb_service.d.ts +0 -102
- package/auth.email_pb_service.js +0 -142
- package/auth.firmware_pb.d.ts +0 -256
- package/auth.firmware_pb.js +0 -1997
- package/auth.firmware_pb_service.d.ts +0 -120
- package/auth.firmware_pb_service.js +0 -181
- package/auth.push_notification_pb.d.ts +0 -69
- package/auth.push_notification_pb.js +0 -411
- package/auth.push_notification_pb_service.d.ts +0 -64
- package/auth.push_notification_pb_service.js +0 -62
- package/auth.sms_pb.d.ts +0 -79
- package/auth.sms_pb.js +0 -575
- package/auth.sms_pb_service.d.ts +0 -83
- package/auth.sms_pb_service.js +0 -102
- package/google/api/annotations_pb.d.ts +0 -9
- package/google/api/annotations_pb.js +0 -54
- package/google/api/annotations_pb_service.d.ts +0 -3
- package/google/api/annotations_pb_service.js +0 -3
- package/google/api/auth_pb.d.ts +0 -150
- package/google/api/auth_pb.js +0 -1160
- package/google/api/auth_pb_service.d.ts +0 -3
- package/google/api/auth_pb_service.js +0 -3
- package/google/api/backend_pb.d.ts +0 -59
- package/google/api/backend_pb.js +0 -448
- package/google/api/backend_pb_service.d.ts +0 -3
- package/google/api/backend_pb_service.js +0 -3
- package/google/api/billing_pb.d.ts +0 -54
- package/google/api/billing_pb.js +0 -416
- package/google/api/billing_pb_service.d.ts +0 -3
- package/google/api/billing_pb_service.js +0 -3
- package/google/api/client_pb.d.ts +0 -12
- package/google/api/client_pb.js +0 -104
- package/google/api/client_pb_service.d.ts +0 -3
- package/google/api/client_pb_service.js +0 -3
- package/google/api/config_change_pb.d.ts +0 -72
- package/google/api/config_change_pb.js +0 -489
- package/google/api/config_change_pb_service.d.ts +0 -3
- package/google/api/config_change_pb_service.js +0 -3
- package/google/api/consumer_pb.d.ts +0 -65
- package/google/api/consumer_pb.js +0 -430
- package/google/api/consumer_pb_service.d.ts +0 -3
- package/google/api/consumer_pb_service.js +0 -3
- package/google/api/context_pb.d.ts +0 -59
- package/google/api/context_pb.js +0 -463
- package/google/api/context_pb_service.d.ts +0 -3
- package/google/api/context_pb_service.js +0 -3
- package/google/api/control_pb.d.ts +0 -25
- package/google/api/control_pb.js +0 -176
- package/google/api/control_pb_service.d.ts +0 -3
- package/google/api/control_pb_service.js +0 -3
- package/google/api/distribution_pb.d.ts +0 -235
- package/google/api/distribution_pb.js +0 -1805
- package/google/api/distribution_pb_service.d.ts +0 -3
- package/google/api/distribution_pb_service.js +0 -3
- package/google/api/documentation_pb.d.ts +0 -103
- package/google/api/documentation_pb.js +0 -803
- package/google/api/documentation_pb_service.d.ts +0 -3
- package/google/api/documentation_pb_service.js +0 -3
- package/google/api/endpoint_pb.d.ts +0 -46
- package/google/api/endpoint_pb.js +0 -343
- package/google/api/endpoint_pb_service.d.ts +0 -3
- package/google/api/endpoint_pb_service.js +0 -3
- package/google/api/error_reason_pb.d.ts +0 -40
- package/google/api/error_reason_pb.js +0 -61
- package/google/api/error_reason_pb_service.d.ts +0 -3
- package/google/api/error_reason_pb_service.js +0 -3
- package/google/api/field_behavior_pb.d.ts +0 -20
- package/google/api/field_behavior_pb.js +0 -66
- package/google/api/field_behavior_pb_service.d.ts +0 -3
- package/google/api/field_behavior_pb_service.js +0 -3
- package/google/api/http_pb.d.ts +0 -136
- package/google/api/http_pb.js +0 -1012
- package/google/api/http_pb_service.d.ts +0 -3
- package/google/api/http_pb_service.js +0 -3
- package/google/api/httpbody_pb.d.ts +0 -38
- package/google/api/httpbody_pb.js +0 -292
- package/google/api/httpbody_pb_service.d.ts +0 -3
- package/google/api/httpbody_pb_service.js +0 -3
- package/google/api/label_pb.d.ts +0 -41
- package/google/api/label_pb.js +0 -246
- package/google/api/label_pb_service.d.ts +0 -3
- package/google/api/label_pb_service.js +0 -3
- package/google/api/launch_stage_pb.d.ts +0 -16
- package/google/api/launch_stage_pb.js +0 -37
- package/google/api/launch_stage_pb_service.d.ts +0 -3
- package/google/api/launch_stage_pb_service.js +0 -3
- package/google/api/log_pb.d.ts +0 -40
- package/google/api/log_pb.js +0 -298
- package/google/api/log_pb_service.d.ts +0 -3
- package/google/api/log_pb_service.js +0 -3
- package/google/api/logging_pb.d.ts +0 -60
- package/google/api/logging_pb.js +0 -469
- package/google/api/logging_pb_service.d.ts +0 -3
- package/google/api/logging_pb_service.js +0 -3
- package/google/api/metric_pb.d.ts +0 -100
- package/google/api/metric_pb.js +0 -629
- package/google/api/metric_pb_service.d.ts +0 -3
- package/google/api/metric_pb_service.js +0 -3
- package/google/api/monitored_resource_pb.d.ts +0 -93
- package/google/api/monitored_resource_pb.js +0 -723
- package/google/api/monitored_resource_pb_service.d.ts +0 -3
- package/google/api/monitored_resource_pb_service.js +0 -3
- package/google/api/monitoring_pb.d.ts +0 -60
- package/google/api/monitoring_pb.js +0 -469
- package/google/api/monitoring_pb_service.d.ts +0 -3
- package/google/api/monitoring_pb_service.js +0 -3
- package/google/api/policy_pb.d.ts +0 -64
- package/google/api/policy_pb.js +0 -502
- package/google/api/policy_pb_service.d.ts +0 -3
- package/google/api/policy_pb_service.js +0 -3
- package/google/api/quota_pb.d.ts +0 -112
- package/google/api/quota_pb.js +0 -873
- package/google/api/quota_pb_service.d.ts +0 -3
- package/google/api/quota_pb_service.js +0 -3
- package/google/api/resource_pb.d.ts +0 -99
- package/google/api/resource_pb.js +0 -684
- package/google/api/resource_pb_service.d.ts +0 -3
- package/google/api/resource_pb_service.js +0 -3
- package/google/api/routing_pb.d.ts +0 -54
- package/google/api/routing_pb.js +0 -416
- package/google/api/routing_pb_service.d.ts +0 -3
- package/google/api/routing_pb_service.js +0 -3
- package/google/api/service_pb.d.ts +0 -184
- package/google/api/service_pb.js +0 -1400
- package/google/api/service_pb_service.d.ts +0 -3
- package/google/api/service_pb_service.js +0 -3
- package/google/api/source_info_pb.d.ts +0 -28
- package/google/api/source_info_pb.js +0 -208
- package/google/api/source_info_pb_service.d.ts +0 -3
- package/google/api/source_info_pb_service.js +0 -3
- package/google/api/system_parameter_pb.d.ts +0 -81
- package/google/api/system_parameter_pb.js +0 -630
- package/google/api/system_parameter_pb_service.d.ts +0 -3
- package/google/api/system_parameter_pb_service.js +0 -3
- package/google/api/usage_pb.d.ts +0 -66
- package/google/api/usage_pb.js +0 -499
- package/google/api/usage_pb_service.d.ts +0 -3
- package/google/api/usage_pb_service.js +0 -3
- package/google/api/visibility_pb.d.ts +0 -64
- package/google/api/visibility_pb.js +0 -546
- package/google/api/visibility_pb_service.d.ts +0 -3
- package/google/api/visibility_pb_service.js +0 -3
- package/meta.client_pb.d.ts +0 -167
- package/meta.client_pb.js +0 -1266
- package/meta.client_pb_service.d.ts +0 -122
- package/meta.client_pb_service.js +0 -183
- package/meta.spic_config_pb.d.ts +0 -184
- package/meta.spic_config_pb.js +0 -1382
- package/meta.spic_config_pb_service.d.ts +0 -122
- package/meta.spic_config_pb_service.js +0 -183
- package/platform.activity_log_pb.d.ts +0 -177
- package/platform.activity_log_pb.js +0 -1294
- package/platform.activity_log_pb_service.d.ts +0 -82
- package/platform.activity_log_pb_service.js +0 -101
- package/platform.client_pb.d.ts +0 -350
- package/platform.client_pb.js +0 -2663
- package/platform.client_pb_service.d.ts +0 -158
- package/platform.client_pb_service.js +0 -261
- package/platform.group_pb.d.ts +0 -195
- package/platform.group_pb.js +0 -1476
- package/platform.group_pb_service.d.ts +0 -139
- package/platform.group_pb_service.js +0 -221
- package/platform.local_account_internal_pb.d.ts +0 -125
- package/platform.local_account_internal_pb.js +0 -933
- package/platform.local_account_internal_pb_service.d.ts +0 -121
- package/platform.local_account_internal_pb_service.js +0 -182
- package/platform.local_account_pb.d.ts +0 -446
- package/platform.local_account_pb.js +0 -3337
- package/platform.local_account_pb_service.d.ts +0 -331
- package/platform.local_account_pb_service.js +0 -623
- package/platform.local_distribution_pb.d.ts +0 -73
- package/platform.local_distribution_pb.js +0 -536
- package/platform.local_distribution_pb_service.d.ts +0 -63
- package/platform.local_distribution_pb_service.js +0 -61
- package/platform.location_pb.d.ts +0 -271
- package/platform.location_pb.js +0 -2046
- package/platform.location_pb_service.d.ts +0 -139
- package/platform.location_pb_service.js +0 -221
- package/platform.pagination_pb.d.ts +0 -45
- package/platform.pagination_pb.js +0 -276
- package/platform.pagination_pb_service.d.ts +0 -3
- package/platform.pagination_pb_service.js +0 -3
- package/spic.admin_alert_pb.d.ts +0 -91
- package/spic.admin_alert_pb.js +0 -666
- package/spic.admin_alert_pb_service.d.ts +0 -102
- package/spic.admin_alert_pb_service.js +0 -142
- package/spic.alarm_pb.d.ts +0 -344
- package/spic.alarm_pb.js +0 -2622
- package/spic.alarm_pb_service.d.ts +0 -101
- package/spic.alarm_pb_service.js +0 -141
- package/spic.asset_pb.d.ts +0 -652
- package/spic.asset_pb.js +0 -4669
- package/spic.asset_pb_service.d.ts +0 -197
- package/spic.asset_pb_service.js +0 -342
- package/spic.cabinet_pb.d.ts +0 -951
- package/spic.cabinet_pb.js +0 -6875
- package/spic.cabinet_pb_service.d.ts +0 -177
- package/spic.cabinet_pb_service.js +0 -301
- package/spic.config_pb.d.ts +0 -249
- package/spic.config_pb.js +0 -1891
- package/spic.config_pb_service.d.ts +0 -120
- package/spic.config_pb_service.js +0 -181
- package/spic.contractor_pb.d.ts +0 -195
- package/spic.contractor_pb.js +0 -1476
- package/spic.contractor_pb_service.d.ts +0 -139
- package/spic.contractor_pb_service.js +0 -221
- package/spic.history_pb.d.ts +0 -142
- package/spic.history_pb.js +0 -1130
- package/spic.history_pb_service.d.ts +0 -63
- package/spic.history_pb_service.js +0 -61
- package/spic.open_request_pb.d.ts +0 -237
- package/spic.open_request_pb.js +0 -1784
- package/spic.open_request_pb_service.d.ts +0 -101
- package/spic.open_request_pb_service.js +0 -141
|
@@ -1,177 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,301 +0,0 @@
|
|
|
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
|
-
|